Unit 3 Topic 6 Resolution
Unit 3 Topic 6 Resolution
1
Basic
• 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 is used, if there are various statements
are given, and we need to prove a conclusion of
those statements. Unification is a key concept in
proofs by resolutions. Resolution is a single
inference rule which can efficiently operate on
the conjunctive normal form or clausal form.
• Clause: Disjunction of literals (an atomic sentence)
is called a clause. It is also known as a unit clause.
2
resolution inference rule
• The resolution rule for first-order logic is simply a
lifted version of the propositional rule. Resolution
can resolve two clauses if they contain
complementary literals, which are assumed to be
standardized apart so that they share no variables.
3
Conti….
Example
• We can resolve two clauses which are given below:
[Animal (g(x) V Loves (f(x), x)] and
[ ¬ Loves(a, b) V ¬ Kills(a, b)]
• Where two complimentary literals are:
Loves (f(x), x) and ¬ Loves (a, b)
• These literals can be unified with unifier
θ= [a/f(x), and b/x]
and it will generate a resolvent clause:
[Animal (g(x) V ¬ Kills(f(x), x)].
4
Steps for Resolution
• Conversion of facts into first-order logic.
• Convert FOL statements into CNF
• Negate the statement which needs to prove (proof
by contradiction)
• Draw resolution graph (unification).
• To better understand all the above steps, we will
take an example in which we will apply resolution.
5
Conti…
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.
6
Conti…
• Step-1: Conversion of Facts into FOL
• In the first step we will convert all the given statements
into its first order logic.
7
Conti…
• Step-2: Conversion of FOL into CNF
• In First order logic resolution, it is required to convert the FOL into CNF as CNF form makes easier for resolution proofs.
• food(Apple) Λ food(vegetables)
• ∀x ¬ eats(Anil, x) V eats(Harry, x)
• ∀x ¬ alive(x) V ¬ killed(x)
• likes(John, Peanuts).
8
Conti…
• Move negation (¬)inwards and rewrite∀x ¬ food(x)
V likes(John, x)
• food(Apple) Λ food(vegetables)
• ∀x ∀y ¬ eats(x, y) V killed(x) V food(y)
• eats (Anil, Peanuts) Λ alive(Anil)
• ∀x ¬ eats(Anil, x) V eats(Harry, x)
• ∀x ¬killed(x) ] V alive(x)
• ∀x ¬ alive(x) V ¬ killed(x)
• likes(John, Peanuts).
9
Conti…
• Rename variables or standardize variables∀x ¬
food(x) V likes(John, x)
• food(Apple) Λ food(vegetables)
• ∀y ∀z ¬ eats(y, z) V killed(y) V food(z)
• eats (Anil, Peanuts) Λ alive(Anil)
• ∀w¬ eats(Anil, w) V eats(Harry, w)
• ∀g ¬killed(g) ] V alive(g)
• ∀k ¬ alive(k) V ¬ killed(k)
• likes(John, Peanuts).
10
Conti…
• Eliminate existential instantiation quantifier by
elimination.
11
Conti…
• Drop Universal quantifiers.
In this step we will drop all universal quantifier since all the statements
are not implicitly quantified so we don't need it.¬ food(x) V likes(John, x)
• food(Apple)
• food(vegetables)
• ¬ eats(y, z) V killed(y) V food(z)
• eats (Anil, Peanuts)
• alive(Anil)
• ¬ eats(Anil, w) V eats(Harry, w)
• killed(g) V alive(g)
• ¬ alive(k) V ¬ killed(k)
• likes(John, Peanuts).
• Distribute conjunction ∧ over disjunction ¬.
This step will not make any change in this problem.
12
Conti…
• Step-3: Negate the statement to be proved
• In this statement, we will apply negation to the conclusion statements,
which will be written as ¬likes(John, Peanuts)
13
Conti…
• Step-4: Draw Resolution graph:
• Now in this step, we will solve the problem by resolution tree using
substitution. For the above problem, it will be given as follows:
15
Thanks
16