Tutorial 2: Predicate Logics
Tutorial 2: Predicate Logics
Solution:
(a) Let r (p) stand for “p is a prime”, s(p) stand for “p is odd”.
The statement is: ∀p ∈ Z + (r (p) → (s(p) ∨ p = 2)).
(b) ∃p ∈ Z + (r (p) ∧ ¬s(p) ∧ p 6= 2)).
Solution:
(a) (ii)
(b) (iv)
(c) (ii)
Solution:
Using the facts:
* ¬∀x ∈ U (p(x)) is equivalent to ∃x ∈ U (¬p(x))
* ¬∃x ∈ U (p(x)) is equivalent to ∀x ∈ U (¬p(x))
* DeMorgan’s laws
we get
Solution:
No. Consider the following counterexample.
Set U = Z + , p(x) =“x is even” and q(x) =“x is odd”.