Documente Academic
Documente Profesional
Documente Cultură
Propositional Resolution
Resolution rule:
avb
b v g
avg
Resolution refutation:
Propositional resolution
Propositional theorem proving
Unification
Lecture 7 1
Lecture 7 2
Step
Formula
Derivation
Step
Formula
Derivation
Prove R
Given
Prove R
Given
1 PvQ
2 PR
QvR
PvQ
PvR
Given
1 PvQ
PvQ
PvR
Given
Negated
conclusion
QvR
Given
2 PR
QvR
P
1,2
Negated
conclusion
3,4
QvR
P
1,2
false v R
5,7
R v false
3,4
4,8
false v false
5,7
4,8
3 QR
3 QR
2,4
Given
2,4
Lecture 7 3
Lecture 7 4
Formula
Derivation
Prove R
Prove Z
Step
Formula
Derivation
PvQ
PvR
Given
1 PvQ
Given
1 P
Given
2 PR
QvR
Given
2 P
P
P
Negated
conclusion
1,2
3 QR
Given
Negated
conclusion
QvR
P
1,2
R v false
3,4
false v false
5,7
4,8
false v R
2,4
Lecture 7 5
Lecture 7 6
Example Problem
Example Problem
Convert to CNF
Prove R
(P Q) Q
(P P) R
(R S) (S Q)
Convert to CNF
Prove R
( P v Q) v Q
(P Q) v Q
(P Q) Q
(P v Q)
(P P) R
(R S) (S Q)
(P v Q) ( Q v Q)
( P v Q) v Q
(P Q) v Q
(P v Q) ( Q v Q)
(P v Q)
( P v P) v R
(P P) v R
(P v R) ( P v R)
Lecture 7 7
Lecture 7 8
Example Problem
PvQ
Prove R
PvR
(P Q) v Q
1 (P Q) Q
3
4
PvR
(P v Q)
2 (P P) R
Convert to CNF
Prove R
1
2
3
(P Q) Q
(P P) R
(R S) (S Q)
( P v Q) v Q
(P v Q) ( Q v Q)
(R S)
( P v P) v R
3 (S
(P P) v R
Q)
(P v R) ( P v R)
RvS
RvQ
SvQ
( R v S) v ( S v Q)
(R S) v (S Q)
(R v S) ( S v S) (R v Q) ( S v Q)
(R v S) (R v Q) ( S v Q)
Lecture 7 9
PvQ
PvR
PvR
Prove R
1 (P Q) Q
2 (P P) R
(R S)
3 (S
Q)
Neg
Lecture 7 10
Proof Strategies
Unit preference: prefer a resolution step involving
an unit clause (clause with one literal).
Produces a shorter clause which is good since we are
trying to produce a zero-length clause, that is, a
contradiction.
RvS
RvQ
SvQ
Neg
4,7
S
Q
10
1,9
11
3,10
12
7,11
6,8
Lecture 7 11
Lecture 7 12
Recitation Problems
First-Order Resolution
x. P(x) Q(x)
P(A)
Q(A)
(P Q) (S T )
(P Q) (R S)
(P S) (R Q)
(T Q)
U (T (S P))
U
x. P(x) v Q(x)
P(A)
Q(A)
P(A) v Q(A)
Substitution
{v1 /t1,, vn /tn}
Comment
P(z, F(w), B)
{x/z, y/w}
Alphabetic
variant
P(x, F(A), B)
{y/A}
{x/C, y/A}
lowercase letters:
variables
Substitute A for
x, still true
then
Propositional
resolution
Lecture 7 14
Unification
Substitution
instances
P(C, F(A), B)
uppercase letters:
constants
Equivalent by
definition of
implication
P(A)
Substitutions
P(x, F(y), B) : an atomic sentence
{x/G(z), y/A}
Q(A)
Lecture 7 13
P(G(z), F(A), B)
Syllogism:
Ground instance
Applying a substitution:
w1 s
w2 s
{y/x}
{x/y}
{x/F(F(A)), y/F(F(A))}
F(F(A))
F(F(A))
{x/A, y/A}
Unification Algorithm
w2
MGU
P(x)
P(A)
{x/A}
P(F(x), y, G(x))
P(F(x), y, G(y))
P(x, B, B)
P(A, y, z)
{x/G(F(v)), u/F(v)}
P(x, F(x))
No MGU!
P(x, x)
Lecture 7 16
Lecture 7 17
Lecture 7 18
Unify-var subroutine
Unification Problems
Lecture 7 19
Lecture 7 21