Outline: - First-Order Inference Rules: Modus Ponens, Modus Tollens - Resolution
Outline: - First-Order Inference Rules: Modus Ponens, Modus Tollens - Resolution
• By Modus Ponens, you can conclude that you will get a grade
p
pq
q
pq
qr
pr
q
pq
p
P(x) = x + 5 > x
variable predicate
Subst({v/g}, )
for any variable v and ground term g (Subst(x,y) = substitution of y by x)
Subst({v/k}, )
Crown(C1) OnHead(C1,John)
Inference procedures:
o propositionalization (Universal and Existential
elimination; convert to Propositional Logic; apply
prop logic inference)
o lifted inference rules, and in particular
refutation/resolution proof for FOL
o forward/backward chaining for definite clauses
Dr. M. S. Uddin, CSE Dept, JU
16
Propositionalization
• Problem: with function symbols, there are infinitely many ground
terms,
– e.g., Father(Father(Father(John)))
• Theorem: Herbrand (1930). If a sentence α is entailed by an FOL
KB, it is entailed by a finite subset of the propositionalized KB
• Idea: For n = 0 to ∞ do
– create a propositional KB by instantiating with depth-n terms
– see if α is entailed in this KB (e.g. using refutation)
• Problem: works if α is entailed, loops if α is not entailed
• Theorem: Turing (1936), Church (1936) Entailment for FOL is
semi-decidable (algorithms exist that say yes to every entailed
sentence, but no algorithm exists that also says no to every non-
entailed sentence.)
By the GMP rule, when the first sentence (1) matches the premise
of (2) exactly we can infer Subst(,q).
This follows immediately from Modus Ponens.
Example:
Animal(F(x)) Loves(G(x),x) and Loves(u,v) Kills(u,v)
take unifier ={u/G(x), v/x}, and get resolvent clause:
Animal(F(x)) Kills(G(x),x)