Logical Equivalences and Laws

GATE DA — Very High Importance

🎯 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

Definition: 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

PQP ∧ Q¬(P ∧ Q)¬P¬Q¬P ∨ ¬Q
TTTFFFF
TFFTFTT
FTFTTFT
FFFTTTT

Columns 4 and 7 are identical in every row. ✅ Therefore ¬(P ∧ Q) ≡ ¬P ∨ ¬Q.

Proof: Material Implication P → Q ≡ ¬P ∨ Q

PQP → Q¬P¬P ∨ Q
TTTFT
TFFFF
FTTTT
FFTTT

Columns 3 and 5 match in all rows. ✅ Therefore P → Q ≡ ¬P ∨ Q.

4. Simplification Using Equivalences

Example: Simplify ¬(P → Q) ∨ Q

  1. Apply material implication to inner formula: ¬(¬P ∨ Q) ∨ Q
  2. Apply De Morgan's to ¬(¬P ∨ Q): (¬¬P ∧ ¬Q) ∨ Q
  3. Double negation: (P ∧ ¬Q) ∨ Q
  4. Distribution: (P ∨ Q) ∧ (¬Q ∨ Q)
  5. Complement law: (P ∨ Q) ∧ ⊤
  6. Identity law: P ∨ Q

¬(P → Q) ∨ Q ≡ P ∨ Q

Example: Simplify (P ∧ Q) ∨ (P ∧ ¬Q)

  1. Factor out P (distribution in reverse): P ∧ (Q ∨ ¬Q)
  2. Complement law: P ∧ ⊤
  3. Identity law: P

(P ∧ Q) ∨ (P ∧ ¬Q) ≡ P

5. GATE Exam Tips

🎯 Most Tested Equivalences in GATE

  1. De Morgan's Laws — appears in almost every year
  2. Material Implication P → Q ≡ ¬P ∨ Q — critical for CNF conversion
  3. Contrapositive P → Q ≡ ¬Q → ¬P — frequently tested
  4. Distributive Laws — needed for normal form conversions
  5. Absorption Laws — often used as distractors in simplification questions