Sheet 5
Sheet 5
Solution
Notice that all the statements are compound statements, and that they
have the following patterns:
1. A→B
2. C
3. A.
Statement A appears twice; in lines (1) and (3). Looking at Modus Ponens, we
see that we can deduce B = r ~s from these lines.
1. (p q)→(r ~s) Premise
2. ~r→s Premise
3. p q Premise
4. r (~s) 1,3 Modus Ponens
r (~s) Conclusion
1. (p q)→(r ~s)
2. ~(r ~s)
3. (p q)→p
Solution
Looking at the given premises, we see the pattern:
1. A→B
2. ~B
3. A→C
A→B
~B
~A
1. (p q)→(r ~s) Premise
2. ~(r ~s) Premise
3. (p q)→p Premise
4. ~(p q) 1,2 Modus Tollens
solution
Exercise 1:
ans
In the first step we will convert all the given statements into its first order logic.
In this step we will drop all universal quantifier since all the statements are
not implicitly quantified so we don't need it.
a. ¬ food(x) V likes(John, x)
b. food(Apple)
c. food(vegetables)
d. ¬ eats(y, z) V killed(y) V food(z)
e. eats (Anil, Peanuts)
f. alive(Anil)
g. ¬ eats(Anil, w) V eats(Harry, w)
h. killed(g) V alive(g)
i. ¬ alive(k) V ¬ killed(k)
j. likes(John, Peanuts).
o Step-3: Negate the statement to be proved
In this statement, we will apply negation to the conclusion statements,
which will be written as ¬likes(John, Peanuts)