Logical Equivalences and Laws
🎯 Learning Objectives
- State and apply all major logical equivalence laws
- Simplify complex formulas using equivalences
- Prove equivalences using truth tables
- Recognize and apply De Morgan's laws, distribution, and material implication
1. Definition of Logical Equivalence
Two propositional formulas α and β are logically equivalent, written α ≡ β, if and only if they have the same truth value under every possible interpretation. Equivalently, α ↔ β is a tautology.
α ≡ β ⟺ (α ↔ β) is a tautology
📝 Notation
The symbol ≡ denotes meta-logical equivalence (a relationship between formulas), while ↔ is a connective within the logic. In GATE papers, both notations may appear.
2. Complete List of Equivalence Laws
2.1 Identity Laws
P ∧ ⊤ ≡ P
P ∨ ⊥ ≡ P
2.2 Domination Laws
P ∨ ⊤ ≡ ⊤
P ∧ ⊥ ≡ ⊥
2.3 Idempotent Laws
P ∨ P ≡ P
P ∧ P ≡ P
2.4 Double Negation Law
¬(¬P) ≡ P
2.5 Commutative Laws
P ∧ Q ≡ Q ∧ P
P ∨ Q ≡ Q ∨ P
2.6 Associative Laws
(P ∧ Q) ∧ R ≡ P ∧ (Q ∧ R)
(P ∨ Q) ∨ R ≡ P ∨ (Q ∨ R)
2.7 Distributive Laws
P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
P ∨ (Q ∧ R) ≡ (P ∨ Q) ∧ (P ∨ R)
⚠️ GATE Alert: Distribution of ∨ over ∧
Unlike arithmetic (where + does not distribute over ×), in logic disjunction distributes over conjunction. This is commonly tested in GATE. Both directions of distribution hold!
2.8 De Morgan's Laws
De Morgan's Laws (CRITICAL for GATE)
¬(P ∧ Q) ≡ ¬P ∨ ¬Q
¬(P ∨ Q) ≡ ¬P ∧ ¬Q
In words: The negation of an AND becomes an OR of negations, and vice versa.
2.9 Absorption Laws
P ∨ (P ∧ Q) ≡ P
P ∧ (P ∨ Q) ≡ P
2.10 Complement Laws
P ∨ ¬P ≡ ⊤ (Law of Excluded Middle)
P ∧ ¬P ≡ ⊥ (Law of Contradiction)
2.11 Material Implication
Material Implication (Very Important)
P → Q ≡ ¬P ∨ Q
This is arguably the most important equivalence for converting implications to a form suitable for CNF conversion and resolution.
2.12 Contrapositive
P → Q ≡ ¬Q → ¬P
The contrapositive is logically equivalent to the original implication. However, the converse (Q → P) and the inverse (¬P → ¬Q) are not equivalent.
2.13 Biconditional Equivalences
P ↔ Q ≡ (P → Q) ∧ (Q → P)
P ↔ Q ≡ (P ∧ Q) ∨ (¬P ∧ ¬Q)
P ↔ Q ≡ ¬(P ⊕ Q) (complement of XOR)
2.14 Exportation
(P ∧ Q) → R ≡ P → (Q → R)
3. Proving Equivalence via Truth Tables
Proof: De Morgan's Law ¬(P ∧ Q) ≡ ¬P ∨ ¬Q
| P | Q | P ∧ Q | ¬(P ∧ Q) | ¬P | ¬Q | ¬P ∨ ¬Q |
|---|---|---|---|---|---|---|
| T | T | T | F | F | F | F |
| T | F | F | T | F | T | T |
| F | T | F | T | T | F | T |
| F | F | F | T | T | T | T |
Columns 4 and 7 are identical in every row. ✅ Therefore ¬(P ∧ Q) ≡ ¬P ∨ ¬Q.
Proof: Material Implication P → Q ≡ ¬P ∨ Q
| P | Q | P → Q | ¬P | ¬P ∨ Q |
|---|---|---|---|---|
| T | T | T | F | T |
| T | F | F | F | F |
| F | T | T | T | T |
| F | F | T | T | T |
Columns 3 and 5 match in all rows. ✅ Therefore P → Q ≡ ¬P ∨ Q.
4. Simplification Using Equivalences
Example: Simplify ¬(P → Q) ∨ Q
- Apply material implication to inner formula: ¬(¬P ∨ Q) ∨ Q
- Apply De Morgan's to ¬(¬P ∨ Q): (¬¬P ∧ ¬Q) ∨ Q
- Double negation: (P ∧ ¬Q) ∨ Q
- Distribution: (P ∨ Q) ∧ (¬Q ∨ Q)
- Complement law: (P ∨ Q) ∧ ⊤
- Identity law: P ∨ Q
¬(P → Q) ∨ Q ≡ P ∨ Q
Example: Simplify (P ∧ Q) ∨ (P ∧ ¬Q)
- Factor out P (distribution in reverse): P ∧ (Q ∨ ¬Q)
- Complement law: P ∧ ⊤
- Identity law: P
(P ∧ Q) ∨ (P ∧ ¬Q) ≡ P
5. GATE Exam Tips
🎯 Most Tested Equivalences in GATE
- De Morgan's Laws — appears in almost every year
- Material Implication P → Q ≡ ¬P ∨ Q — critical for CNF conversion
- Contrapositive P → Q ≡ ¬Q → ¬P — frequently tested
- Distributive Laws — needed for normal form conversions
- Absorption Laws — often used as distractors in simplification questions