Knowledge Base:
Everyone who loves all animals is loved by someone.
Anyone who kills animals is loved by noone.
Jack loves all animals
Either curiosity or Jack killed the cat, who is named
Tuna.
Query: Did curiosity kill the cat?
Inference procedure:
1. Express sentence in FOL
2. Eliminate existential quantifier
3. Convert to CNF and negated query.
Answer: The first order equivalent sentences for given sentences are
∀x [∀y Animal(y) ⇒ Loves(x,y)] ⇒ [∃y Loves(y,x)]
∀x [∃z Animal(z)∧Kills(x,z)] ⇒ [∀y ¬Loves(y,x)]
∀ x Animal (x) ⇒ Loves (Jack , x)
Kills(Jack,Tuna)∨Kills(Curiosity,Tuna)
Cat(Tuna)
∀ x Cat (x) ⇒ Animal (x)
Negated goal query=>¬Kills(Curiosity, Tuna)
Eliminating existential quantifiers(∀,∃) and the CNF Form is:
Animal (F (x)) ∨ Loves (G(x), x)
¬Loves (x, F (x)) ∨ Loves (G(x), x)
¬Loves(y,x)∨¬Animal(z)∨¬Kills(x,z)
¬Animal (x) ∨ Loves (Jack , x)
Kills(Jack,Tuna)∨Kills(Curiosity,Tuna)
Cat(Tuna)
¬Cat (x) ∨ Animal (x)
¬Kills(Curiosity, Tuna)
Knowledge Base: Everyone who loves all animals is loved by someone. Anyone who kills animals is...