Lecture # 02
Lecture # 02
p q ~p ~pq
T T F F
T F F F
F T T T
F F T F
Truth table for ~ p (q ~ r)
p q r ~r q~r ~p ~ p (q ~ r)
T T T F T F F
T T F T T F F
T F T F F F F
T F F T T F F
F T T F T T T
F T F T T T T
F F T F F T F
F F F T T T T
Truth table for (p q) ~ (p q)
p q p q p q ~ (pq) (p q) ~ (p q)
T T T T F F
T F T F T T
F T T F T T
F F F F T F
Double Negative Property ~(~p) p
p ~p ~(~p)
T F T
F T F
Example:
“It is not true that I am not happy”
Prove it double negation property for the above
statement ~ (~p) p
Solution:
Let p = “I am happy”
Then ~p = “I am not happy”
and ~(~ p) = “It is not true that I am not happy”
Since ~ (~p) p
Hence the given statement is equivalent to:
“I am happy”