Lesson 3 +30 XP

Logical Equivalence, Tautologies & Normal Forms

1. Tautology, Contradiction, Contingency

TypeTruth table columnExample
Tautology (valid)all Tp ∨ ¬p
Contradiction (unsatisfiable)all Fp ∧ ¬p
Contingencymix of T and Fp → q
Satisfiableat least one Tany 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

LawForm 1Form 2
Identityp ∧ T ≡ pp ∨ F ≡ p
Dominationp ∨ T ≡ Tp ∧ F ≡ F
Idempotentp ∨ p ≡ pp ∧ p ≡ p
Double negation¬(¬p) ≡ p
Commutativep ∨ q ≡ q ∨ pp ∧ q ≡ q ∧ p
Associative(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
Distributivep ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
De Morgan¬(p ∧ q) ≡ ¬p ∨ ¬q¬(p ∨ q) ≡ ¬p ∧ ¬q
Absorptionp ∨ (p ∧ q) ≡ pp ∧ (p ∨ q) ≡ p
Negationp ∨ ¬p ≡ Tp ∧ ¬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).
FormShapeCalled
DNFsum (∨) of elementary productsDisjunctive Normal Form
CNFproduct (∧) of elementary sumsConjunctive Normal Form
PDNFsum of minterms (every variable in every term)Principal DNF
PCNFproduct of maxtermsPrincipal CNF

Procedure to obtain DNF/CNF

  1. Eliminate ↔ and → (p → q ≡ ¬p ∨ q).
  2. Push ¬ inward with De Morgan and double negation.
  3. 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).

💡 Tip

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 tableReading 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)

pqrf
TTTT
TTFT
TFTF
TFFF
FTTF
FTFF
FFTT
FFFF
  • 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).

🎯 END-TERM EXAM PREP

📝 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)