Consider the following KB:
• John likes all kinds of food.
• Apples are food.
• Chicken is food.
• Anything anyone eats and isn’t killed by is food.
• Bill eats peanuts and is still alive.
• Sue eats everything Bill eats.
i. Translate these sentences into formulas in FOPC.
ii. Convert the formulas into clause form.
iii. Use resolution to prove that John likes peanuts.
iv. Use resolution to answer the question, “What food does Sue eat?”
v.
(a) Translate these sentences into formulas in FOPC.
1. ∀x F ood(x) → Likes(John, x)
2. F ood(Apples)
3. F ood(Chicken)
4. ∀x∃y Eats(y, x) ∧ ¬KilledBy(y, x) → F ood(x)
5. Eats(Bill, P eanuts) ∧ ¬KilledBy(Bill, P eanuts)
6. ∀x Eats(Bill, x) → Eats(Sue, x)
(c) Convert the formulas of part (a) into clause form.
1. ¬F ood(x) ∨ Likes(John, x)
2. F ood(Apples)
3. F ood(Chicken)
4. ¬Eats(y, x) ∨ KilledBy(y, x) ∨ F ood(x)
5. Eats(Bill, P eanuts)
6. ¬KilledBy(Bill, P eanuts)
7. ¬Eats(Bill, x) ∨ Eats(Sue, x)
(d) Use resolution to prove that John likes peanuts.
8. ¬Likes(John, P eanuts) negated conclusion
9. ¬F ood(P eanuts) 1 and 8
10. ¬Eats(y, P eanuts) ∨ KilledBy(y, P eanuts) 4 and 9
11. KilledBy(Bill, P eanuts) 5 and 10
12. ⊥ 6 and 11
(e) Use resolution to answer the question, “What food does Sue eat?”
13. ¬Eats(Sue, x) negated query
14. ¬Eats(Bill, x) 7 and 13
15. ⊥ 5 and 14, unifying P eanuts/x
Thanks and Regards
Fathima Shemim KS ,
Assistant Professor ,
Department of Computer Science and Engineering,
Adi Shankara Institute of engineering and Technology, Kalady
Ph : 9745304681