
HOMEWORK 6
Propositional Logic (PL)
1. Transform the following formulas into conjunctive normal form (CNF)
(a) A⇐⇒ B
(b) A∧B⇐⇒ A∨B
(c) A∧(A=⇒B)=⇒B
2. Given a knowledge base as follows
KB ={A∧B=⇒C, D ∧E=⇒B , F =⇒A, E =⇒A, E, D}
Prove that the sentence Cis entailed by KB by using
(a) Forward chaining
(b) Backward chaining
3. If the criminal had an accomplice, then he came in a car. The criminal had no accomplice
and did not have the key, or he had the key and an accomplice. The criminal had the key.
Using a resolution inference to answer the question “Did the criminal come in a car?”
First-Order Logic (FOL)
4. For each English sentence below, write the FOL sentence that best expresses its intended
meaning using the following predicates Cat(x)for “xis a cat,” Mouse(x)for “xis a mouse,”
and Chases(x, y)for “xchases y.”
(a) Every cat chases every mouse.
(b) For every cat, there is a mouse that the cat chases.
1