Resolution Method: Presented By: Gunjan Chhabra
Resolution Method: Presented By: Gunjan Chhabra
Presented by:
Gunjan Chhabra
Resolution
• Resolution is a theorem proving technique that proceeds by building
refutation proofs, i.e., proofs by contradictions. It was invented by a
Mathematician John Alan Robinson in the year 1965.
• Resolution method is an inference rule which is used in both
Propositional as well as First-order Predicate Logic in different ways.
• Resolution yields a complete inference algorithm when coupled with
any complete search algorithm.
• Resolution makes use of the inference rules. Resolution performs
deductive inference.
• One can perform Resolution from a Knowledge Base. A Knowledge Base
is a collection of facts or one can even call it a database with all facts.
Proof by Refutation
• The key idea for the resolution method is to use the knowledge base and negated
goal to obtain null clause(which indicates contradiction). Resolution method is
also called Proof by Refutation.
• Since the knowledge base itself is consistent, the contradiction must be
introduced by a negated goal. As a result, we have to conclude that the original
goal is true.
• Then the resolution rule is applied to the resulting clauses. Each clause that
contains complementary literals is resolved to produce a two new clause, which
can be added to the set of facts (if it is not already present).This process continues
until one of the two things happen:
• There are no new clauses that can be added
• An application of the resolution rule derives the empty clause
• An empty clause shows that the negation of the conclusion is a complete
contradiction ,hence the negation of the conclusion is invalid or false or the
assertion is completely valid or true.
Steps for Resolution:
1. Conversion of facts into first-order logic.
2. Convert FOL statements into CNF
3. Negate the statement which needs to prove (proof by contradiction)
4. Draw resolution graph (unification).
Steps for CNF:
1. Eliminate and <-> if available.
2. Move ‘negation symbol inside
3. Rename Variables or standardize variables
4. Eliminate existential instantiation quantifier by elimination. This process
is known as Skolemization.
5. Drop Universal Quantifier.
Example
• John likes all kind of food.
• Apple and vegetable are food
• Anything anyone eats and not killed is food.
• Anil eats peanuts and still alive
• Harry eats everything that Anil eats.
• Prove by resolution that:
• John likes peanuts.
Example
Example
•In the first step of resolution graph, ¬likes(John, Peanuts) , and likes(John, x) get resolved(canceled) by
substitution of {Peanuts/x}, and we are left with ¬ food(Peanuts)
•In the second step of the resolution graph, ¬ food(Peanuts) , and food(z) get resolved (canceled) by
substitution of { Peanuts/z}, and we are left with ¬ eats(y, Peanuts) V killed(y)
•In the third step of the resolution graph, ¬ eats(y, Peanuts) and eats (Anil, Peanuts) get resolved by
substitution {Anil/y}, and we are left with Killed(Anil)
•In the fourth step of the resolution graph, Killed(Anil) and ¬ killed(k) get resolve by substitution {Anil/k},
and we are left with ¬ alive(Anil)
•In the last step of the resolution graph ¬ alive(Anil) and alive(Anil) get resolved.
Example 2
Example 2
Example 2
CNF rules
• Eliminate -> and <-> Skelomization:
• a-> b = ~a ˅ b ∃x Rich(x) = Rich (G)
• a<->b = a->b ˄ b->a
• Move ~ inwards
• ~ (∀x P (x))= ∃x ~P(x)
• ~ (∃x P(x))= ∀x ~P(x)
• ~(a ˅ b) = ~a ˄ ~b
• ~ (a ˄ b) = ~ a ˅ ~b
• ~(~a) = a