DS - W3 - Lecture 3
DS - W3 - Lecture 3
Definition
Two proposition form are called logically equivalent if
and only if they have identical truth values for each
possible substitution of propositions for their
proposition variable.
Solution
p ¬p ¬ (¬p)
T F T
F T F
p ¬p p ¬p p ¬p
T F T F
F T T F
1. ¬(pq) ≡ ¬p¬q
2. ¬(pq) ≡ ¬p¬q
Truth Table For De Morgan’s Law
p q pq ¬(p q) ¬p ¬q ¬p ¬q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
Truth Tables For Compound Propositions
Operator Precedence
¬ 1
2
3
→ 4
↔ 5
Truth Table of (p v ~q) → (p q)
T T F T T T
T F T T F F
F T F F F T
F F T T F F
1. Commutative laws
pq ≡ qp ; pq ≡ qp
2. Associative laws
p (q r) ≡ (p q) r ; p(q r) ≡ (pq)r
3. Distributive laws
p (q r ) ≡ (p q) (p r)
p (q r) ≡ (p q) (p r)
Laws of Logic
4. Identity laws
p t ≡ p ; pc ≡ p
5. Negation laws
p ¬p ≡ t ; p ¬p ≡ c
7. Idempotent laws
p p ≡ p ; pp ≡ p
Laws of Logic
9. Absorption laws
p (p q) ≡ p ; p (p q) ≡ p
p (q r) ≡ (p q) (p r)
Applying Laws of Logic
Simplify ~ (~ (p q) ~ q) ?
Lecture Summary
• Logical Equivalence
• Equivalence Check
• Tautologies and Contradictions
• Laws of Logic