Lecture 6
Lecture 6
p ¬p ¬(¬p)
T F T
F T F
p ≡ ¬(¬p)
p →q ≡ ¬ p q
p q ¬p p →q ¬pvq
T T F T T
T F F F F
F T T T T
F F T T T
Rewrite the following statement in if-then
form.
You will pass the exam if you work
hard.
Let p = I work hard.
q = I will pass the exam.
p ¬p p ¬p p ¬p
T F T F
F T T F
p t c p t p c
T T F T F
F T F F F
Equivalence Name
p t≡p Identity laws
p c≡p
p t≡t Domination laws
p c≡c
p p≡p Idempotent laws
p p≡p
¬(¬p) ≡ p Double negation law
p q≡q p Commutative laws
p q≡q p
(p q) r≡p (q r) Associative laws
(p q) r≡p (q r)
p (q r) ≡ (p q) (p r) Distributive laws
p (q r) ≡ (p q) (p r)
¬(p q) ≡ ¬p ¬q De Morgan’s laws
¬(p q) ≡ ¬p ¬q
p (p q) ≡ p Absorption laws
p (p q) ≡ p
p ¬p ≡ t Negation laws
p ¬p ≡ c
The negation of “if p then q” is logically equivalent to “p
and not q.”
¬(p →q) ≡ p ¬q
Exercise: