Lecture 3 - Logic Equivalences and Soundness
Lecture 3 - Logic Equivalences and Soundness
DISCRETE STRUCTURES
P ¬p p ∨¬p p ∧¬p
T F T F
F T T F
Logically Equivalent
p q ¬p ¬p ∨ q p→ q
T T F T T
T F F F F
F T T T T
F F T T T
Logically Equivalent
p q ¬p ¬q p→q ¬q → ¬p
1 1 0 0 1 1
1 0 0 1 0 0
0 1 1 0 1 1
0 0 1 1 1 1
Equivalent statements are important for logical reasoning since they can
be substituted and can help us to make a logical argument.
De Morgan’s Laws
Augustus De Morgan
1806-1871
Equivalences can be used in proofs. A proposition or its part can be transformed using
equivalences and some conclusion can be reached.
p q p∧q (p ∧ q) → p
1 1 1 1
1 0 0 1
0 1 0 1
0 0 0 1
Using logical equivalences: Proofs
Therefore, proven
Using logical equivalences: Proofs
o Example
o CNF : p ∧ (q ∨ r)
How to obtain DNF?
Using Logical Laws
o A ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C) Rule I
o (A ∨ B ) ∧ C ≡ (A ∧ C) ∨ (B ∧ C) Rule II
DNF: Using Logical Laws
Example: Convert the following expression into DNF
? A ∨ (B ∧ C) ≡ (A ∨ B) ∧ (A ∨ C) Rule I
? (A ∧ B ) ∨ C ≡ (A ∨ C) ∧ (B ∨ C) Rule II
CNF: Using Logical Laws
Example: Convert the following expression into CNF
p q r (p ∧ q) ¬r (p ∧ q)→¬r
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Exercise (DNF)
2 With the aid of a truth table, convert the expression (¬p q) ∧ (¬q ∨ r) into
Disjunction Normal Form (DNF)
p q r ¬p ¬q ¬p → q ¬qvr f
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0