Lecture 8 - Knowledge
Lecture 8 - Knowledge
Resolution
Dr. Firas Omari
Resolution Theorem Proving
is a technique for proving theorems in the predicate logic using the resolution by
refutation algorithm. The resolution refutation proof procedure answers a query or
deduces a new result by reducing the set of clauses to a contradiction.
Solution:
1. Remove (→)
• ∀X (ךpass(X,ai_exam) ^ win(X,lottery))˅ happy(X)
• ∀X (ךstudy(X)˅lucky(X)) ˅ ∀E pass(X,E)
• ךstudy(john) ^ lucky(john)
• ∀X (ךlucky(X))˅ win(X,lottery)
2. Reduce ך
• ∀X (ךpass(X,ai_exam) ˅ ךwin(X,lottery)) ˅ happy(X)
• ∀X (ךstudy(X)^^ךlucky(X)) ˅ ∀E pass(X,E)
• ךstudy(john) ^lucky(john)
• ∀X ךlucky(X)˅win(X,lottery)
3. Standardize Variables
• ∀X (ךpass(X,ai_exam)˅ךwin(X,lottery))˅ happy(X)
• ∀Y (ךstudy(Y)^ךlucky(Y))˅ ∀E pass(Y,E)
• ךstudy(john) ^lucky(john)
• ∀Z ךlucky(Z)˅win(Z,lottery)
5. Remove ∃
• Nothing to do here.
6. Remove ∀
• (ךpass(X,ai_exam) ˅ךwin(X,lottery))˅ happy(X)
• (ךstudy(Y)^ךlucky(Y)) ˅ pass(Y,E)
• ךstudy(john) ^ lucky(john)
• ךlucky(Z) ˅ win(Z,lottery)
7. CNF
• ךpass(X,ai_exam)˅ךwin(X,lottery)˅ happy(X)
•(ךstudy(Y)^ךlucky(Y))˅ pass(Y,E) ≡ The second
statement becomes:
pass(Y,E)˅ךstudy(Y)^pass(Y,E)˅ךlucky(Y)
• ךstudy(john)^lucky(john)
• ךlucky(Z)˅win(Z,lottery)
8. Split 𝖠
• ךpass(X,ai_exam)˅ךwin(X,lottery)˅ happy(X)
• pass(Y,E)˅ךstudy(Y)
• pass(Y,E)˅ךlucky(Y)
• ךstudy(john)
• lucky(john)
• ךlucky(Z)˅win(Z,lottery)
9. Standardize Variables
• ךpass(X,ai_exam)˅ךwin(X,lottery)˅ happy(X)
• pass(Y,E)˅ךstudy(Y)
• pass(M,G)˅ךlucky(M)
• ךstudy(john)
• lucky(john)
• ךlucky(Z)˅win(Z,lottery)
C. Add the negation of what is to be proved to the clause form.
• ךhappy(john).
added it to the other six clauses and shown below:
• ךpass(X,ai_exam)˅ךwin(X,lottery)˅happy(X)
• pass(Y,E)˅ךstudy(Y)
• pass(M,G)˅ךlucky(M)
• ךstudy(john)
• lucky(john)
• ךlucky(Z)˅win(Z,lottery)
• ךhappy(john).
• There are two types of resolution, the first one is backward resolution
and the second is forward resolution.
d_1) Backward Resolution
The proving for happy(john) using Backward Resolution is shown as follows:
d_2) Forward Resolution
The proving for happy(john) using Forward Resolution is shown as
follows:
Example2: Given the following Predicate logic statements, prove
∃W¬ s(W) using Backward resolution:
(1) ∀X[ (∀Y s(Y) ^ v(X, Y)) ⇒ ((∃Z ¬ t(X, Z)) ^ v(X, X)) ]
(2) ∀X∀Y s(Y) ⇒ t(X,Y) ^v (X,Y)
Solution:
(1) ∀X[ (∀Y s(Y) ^ v(X, Y)) ⇒ ((∃Z ¬ t(X, Z)) ^ v(X, X)) ]