













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to resolution and refutation proofs in artificial intelligence. It covers topics such as substitutions, unification, generalized modus ponens, resolution definition, refutation proofs, true-or-false questions, and resolution properties. The document also includes examples of forward and backward chaining, as well as instructions for converting first-order logic to canonical conjunctive normal form (cnf) and applying skolemization.
Typology: Study notes
1 / 21
This page cannot be seen from the preview
Don't miss anything!














White: Facts added in turn
-^
Yellow:
The result of implication of rules.
Pig(y)
Faster(x, y)
Slug(z)
Faster(y, z)
Faster(y, z)
Faster(x, z)
[ Unifies with 1-a ]
[ Unifies with 1-b, GMP Fires ][ Unifies with 2-a ]
[ Unifies with 3-a, 3-b ]
[ Unifies with 2-b, GMP Fires ]
[ Unifies with 3-b and with 6,GMP Fires ]
-^
-^
-^
-^
p
can be unified withj
qk
, then we can apply the resolution rule: p^1
p
∨j
p
m
q^1
q
∨k
q
n
Subst(
θ, (p
p
j-
p
j+
p
m^
q^1
q
k-
q
k+
q
))n
θ
= Unify (
pj
qk
-^
Rich(x)
Unhappy(x)
Rich(Me)
Substitution:
θ^
x/Me
Conclusion:
Unhappy(Me)
Literal = (possibly negated) atomic sentence,
e.g.,
Rich(Me)
Clause = disjunction of literals, e.g.,
Rich(Me)
Unhappy(Me)
The KB is a conjunction of clauses
-^
Any FOL sentence can be converted to CNF as follows:1. Replace
by
inwards to literals,
e.g.,
x P
becomes
x^
x P)
∃x Q)
becomes (
x P)
∃y Q)
x P
y Q
becomes
x^
∃y P
by Skolemization (next slide)
over
, e.g.,
becomes
-^
-^
-^
-^
p^1
∨ …
∨
p
∨j …
∨
p
m
q^1
∨ …
∨
q
∨k …
∨
q
n
Subst(
θ, (p
∨ 1 …
∨
p
j-
∨ p
j+
∨ …
∨
p
m^
∨q
∨ 1 …
∨
q
k-
∨ q
k+
∨ …
∨
q
))n
To prove
α
Negate
α
Convert to CNF.
-^
Add to CNF KB.
-^
Infer contradiction using the resolution rule (a contradiction isdetected when resolution derives the empty clause).
E.g., to prove
Rich(Me),
add
Rich(Me)
to the CNF KB, then:
PhD(x)
HighlyQualified(x)
PhD(x)
EarlySalary(x)
HighlyQualified(x)
Rich(x)
EarlySalary(x)
Rich(x)
¬
Rich(Me) ¬
PhD(x)
∨
HighlyQualified(x)
PhD(x)
∨
EarlySalary(x)
¬
HighlyQualified(x)
∨
Rich(x)
¬
EarlySalary(x)
∨
Rich(x)
¬
Rich(Me) ¬
PhD(x)
∨
HighlyQualified(x)
PhD(x)
∨
EarlySalary(x)
¬
HighlyQualified(x)
∨
Rich(x)
¬
EarlySalary(x)
∨
Rich(x)
¬
Rich(Me) ¬
PhD(x)
∨
HighlyQualified(x)
PhD(x)
∨
EarlySalary(x)
¬
HighlyQualified(x)
∨
Rich(x)
¬
EarlySalary(x)
∨
Rich(x)
n^
n^
1
-^
-^
-^