Loading lessons...
Logical Equivalence, Tautologies & Normal Forms
1. Tautology, Contradiction, Contingency
| Type | Truth table column | Example |
|---|---|---|
| Tautology (valid) | all T | p ∨ ¬p |
| Contradiction (unsatisfiable) | all F | p ∧ ¬p |
| Contingency | mix of T and F | p → q |
| Satisfiable | at least one T | any tautology or contingency |
A tautology is always satisfiable, but a satisfiable formula need not be a tautology.
Two formulas are logically equivalent, P ≡ Q, when P ↔ Q is a tautology (identical truth tables).
2. Laws of Logic
| Law | Form 1 | Form 2 |
|---|---|---|
| Identity | p ∧ T ≡ p | p ∨ F ≡ p |
| Domination | p ∨ T ≡ T | p ∧ F ≡ F |
| Idempotent | p ∨ p ≡ p | p ∧ p ≡ p |
| Double negation | ¬(¬p) ≡ p | |
| Commutative | p ∨ q ≡ q ∨ p | p ∧ q ≡ q ∧ p |
| Associative | (p ∨ q) ∨ r ≡ p ∨ (q ∨ r) | (p ∧ q) ∧ r ≡ p ∧ (q ∧ r) |
| Distributive | p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) | p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) |
| De Morgan | ¬(p ∧ q) ≡ ¬p ∨ ¬q | ¬(p ∨ q) ≡ ¬p ∧ ¬q |
| Absorption | p ∨ (p ∧ q) ≡ p | p ∧ (p ∨ q) ≡ p |
| Negation | p ∨ ¬p ≡ T | p ∧ ¬p ≡ F |
Conditional laws (memorise these):
- p → q ≡ ¬p ∨ q
- p → q ≡ ¬q → ¬p
- ¬(p → q) ≡ p ∧ ¬q
- p ↔ q ≡ (p → q) ∧ (q → p) ≡ (p ∧ q) ∨ (¬p ∧ ¬q)
- (p → q) ∧ (r → q) ≡ (p ∨ r) → q
- p → (q → r) ≡ (p ∧ q) → r
3. Proving Equivalences with Laws
Solved 1. Show ¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬q. ¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬(¬p ∧ q) - De Morgan ≡ ¬p ∧ (p ∨ ¬q) - De Morgan, double negation ≡ (¬p ∧ p) ∨ (¬p ∧ ¬q) - distributive ≡ F ∨ (¬p ∧ ¬q) ≡ ¬p ∧ ¬q. ∎
Solved 2. Show (p ∧ q) → (p ∨ q) is a tautology. ≡ ¬(p ∧ q) ∨ (p ∨ q) ≡ (¬p ∨ ¬q) ∨ (p ∨ q) ≡ (¬p ∨ p) ∨ (¬q ∨ q) ≡ T ∨ T ≡ T. ∎
Solved 3. Show ¬(¬p ∧ q) ∧ (p ∨ q) ≡ p. ≡ (p ∨ ¬q) ∧ (p ∨ q) ≡ p ∨ (¬q ∧ q) ≡ p ∨ F ≡ p. ∎
4. Duality
The dual of a formula (containing only ∧, ∨, ¬) swaps ∧ ↔ ∨ and T ↔ F.
- Dual of (p ∧ ¬q) ∨ r is (p ∨ ¬q) ∧ r.
- Dual of p ∨ T is p ∧ F.
Principle of duality: if two formulas are equivalent, so are their duals. That is why every law above comes in pairs.
5. Normal Forms
For n variables a truth table has 2ⁿ rows, which becomes impractical. Normal forms give a standard shape that lets us decide tautology or contradiction by inspection.
- Literal: a variable or its negation (p, ¬q).
- Elementary product: a conjunction of literals (p ∧ ¬q).
- Elementary sum: a disjunction of literals (p ∨ ¬q ∨ r).
| Form | Shape | Called |
|---|---|---|
| DNF | sum (∨) of elementary products | Disjunctive Normal Form |
| CNF | product (∧) of elementary sums | Conjunctive Normal Form |
| PDNF | sum of minterms (every variable in every term) | Principal DNF |
| PCNF | product of maxterms | Principal CNF |
Procedure to obtain DNF/CNF
- Eliminate ↔ and → (p → q ≡ ¬p ∨ q).
- Push ¬ inward with De Morgan and double negation.
- Apply the distributive law (∧ over ∨ for DNF, ∨ over ∧ for CNF).
DNF example. ¬(p → (q ∧ r)) ≡ ¬(¬p ∨ (q ∧ r)) ≡ p ∧ ¬(q ∧ r) ≡ p ∧ (¬q ∨ ¬r) ≡ (p ∧ ¬q) ∨ (p ∧ ¬r).
CNF example. A → (B ∧ C) ≡ ¬A ∨ (B ∧ C) ≡ (¬A ∨ B) ∧ (¬A ∨ C).
A CNF is a tautology iff every elementary sum contains some p together with ¬p. A DNF is a contradiction iff every elementary product contains some p together with ¬p.
6. PDNF and PCNF
Reading PDNF from the T rows and PCNF from the F rows of a truth table
Method 1-Truth table
- PDNF: for every row where the formula is T, write the minterm (p if T, ¬p if F) and join with ∨.
- PCNF: for every row where the formula is F, write the maxterm with literals negated (¬p if T, p if F) and join with ∧.
Example. f = (¬p → r) ∧ (q ↔ p)
| p | q | r | f |
|---|---|---|---|
| T | T | T | T |
| T | T | F | T |
| T | F | T | F |
| T | F | F | F |
| F | T | T | F |
| F | T | F | F |
| F | F | T | T |
| F | F | F | F |
- PDNF = (p ∧ q ∧ r) ∨ (p ∧ q ∧ ¬r) ∨ (¬p ∧ ¬q ∧ r)
- PCNF = (¬p ∨ q ∨ ¬r) ∧ (¬p ∨ q ∨ r) ∧ (p ∨ ¬q ∨ ¬r) ∧ (p ∨ ¬q ∨ r) ∧ (p ∨ q ∨ r)
Check: 3 minterms + 5 maxterms = 2³ = 8. ✅
Method 2-Missing-factor (algebraic)
Multiply each term by (x ∨ ¬x) for every missing variable x.
Example. PDNF of p → q: p → q ≡ ¬p ∨ q ≡ (¬p ∧ (q ∨ ¬q)) ∨ (q ∧ (p ∨ ¬p)) ≡ (¬p ∧ q) ∨ (¬p ∧ ¬q) ∨ (p ∧ q) - duplicates removed.
Example. PCNF of p ∧ q: p ≡ p ∨ (q ∧ ¬q) ≡ (p ∨ q) ∧ (p ∨ ¬q); similarly q ≡ (p ∨ q) ∧ (¬p ∨ q). So p ∧ q ≡ (p ∨ q) ∧ (p ∨ ¬q) ∧ (¬p ∨ q).
> The PDNF of a tautology contains all 2ⁿ minterms: q ∨ (p ∨ ¬q) has PDNF (p ∧ q) ∨ (p ∧ ¬q) ∨ (¬p ∧ q) ∨ (¬p ∧ ¬q).
📝 IPU End-Term Exam Corner (5-10 Marks)
- Q1. Obtain the PDNF and PCNF of (¬p → r) ∧ (p ↔ q). (10 Marks)
- Write: full 8-row truth table, minterms from T rows, maxterms from F rows (as above).
- Q2. Without truth tables, prove (p → q) ↔ (¬q → ¬p) is a tautology. (5 Marks)
- Write: p → q ≡ ¬p ∨ q and ¬q → ¬p ≡ q ∨ ¬p; equal, so the biconditional is T.
- Q3. Define tautology, contradiction, contingency with one example each; state the principle of duality. (5 Marks)