Artificial Intelligence: Inference in First-Order Logic
Artificial Intelligence: Inference in First-Order Logic
INTELLIGENCE
Inference in First-Order Logic
The Story So Far
◦ Propositional logic
◦ First order logic (FOL)
◦ Variables
◦ Functions
◦ Quantifiers
◦ Etc.
◦ Now: Inference in FOL
Outline
◦ Reducing first-order inference to propositional inference
◦ Unification
◦ Generalized Modus Ponens
◦ Forward chaining
◦ Backward chaining
◦ Resolution
Universal instantiation (UI)
◦ Every instantiation of a universally quantified sentence is entailed by it:
◦
v α
Subst({v/g}, α)
Crown(C1) OnHead(C1,John)
p q θ
Knows(John,x) Knows(John,Jane) {x/Jane}}
Knows(John,x) Knows(y,OJ) {x/OJ,y/John}}
Knows(John,x) Knows(y,Mother(y))
Knows(John,x) Knows(x,OJ)
Missile(x) Weapon(x)
Example knowledge base
contd.
An enemy of America counts as "hostile“:
Enemy(x,America) Hostile(x)
West, who is American …
American(West)
The country Nono, an enemy of America …
Enemy(Nono,America)