📋 Quick Revision Notes: Propositional Logic

📝 How to Use These Notes

These are condensed revision notes covering all key formulas, laws, and facts for GATE preparation. Review these before the exam!

1. Connectives Truth Table Summary

PQ¬PP∧QP∨QP→QP↔Q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

🧠 Mnemonics

  • AND (∧): True only when BOTH true — "strict gatekeeper"
  • OR (∨): False only when BOTH false — "generous gatekeeper"
  • IMPLIES (→): False ONLY when T→F — "a broken promise"
  • IFF (↔): True when SAME values — "agreement checker"

2. Operator Precedence

¬ > ∧ > ∨ > → > ↔

(Highest to Lowest)

🧠 Mnemonic: "Not And Or Implies Iff" — NAOII

→ is right-associative: P → Q → R means P → (Q → R)

3. Complete Equivalence Laws Table

LawEquivalence
IdentityP ∧ ⊤ ≡ P  |  P ∨ ⊥ ≡ P
DominationP ∨ ⊤ ≡ ⊤  |  P ∧ ⊥ ≡ ⊥
IdempotentP ∨ P ≡ P  |  P ∧ P ≡ P
Double Negation¬(¬P) ≡ P
CommutativeP ∧ Q ≡ Q ∧ P  |  P ∨ 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's¬(P∧Q) ≡ ¬P∨¬Q  |  ¬(P∨Q) ≡ ¬P∧¬Q
AbsorptionP∨(P∧Q) ≡ P  |  P∧(P∨Q) ≡ P
ComplementP∨¬P ≡ ⊤  |  P∧¬P ≡ ⊥
Material Impl.P → Q ≡ ¬P ∨ Q
ContrapositiveP → Q ≡ ¬Q → ¬P
BiconditionalP ↔ Q ≡ (P→Q)∧(Q→P) ≡ (P∧Q)∨(¬P∧¬Q)
Exportation(P∧Q)→R ≡ P→(Q→R)

4. All Inference Rules

RulePremisesConclusion
Modus PonensP → Q, PQ
Modus TollensP → Q, ¬Q¬P
Hypothetical SyllogismP → Q, Q → RP → R
Disjunctive SyllogismP ∨ Q, ¬PQ
AdditionPP ∨ Q
SimplificationP ∧ QP
ConjunctionP, QP ∧ Q
ResolutionP ∨ α, ¬P ∨ βα ∨ β
Constructive Dilemma(P→Q)∧(R→S), P∨RQ ∨ S

⚠️ Common Fallacies (INVALID!)

  • Affirming the Consequent: P → Q, Q ⊬ P
  • Denying the Antecedent: P → Q, ¬P ⊬ ¬Q

5. Normal Forms

FormStructureConversion
CNFAND of ORs: (l₁∨l₂)∧(l₃∨l₄)∧...Distribute ∨ over ∧
DNFOR of ANDs: (l₁∧l₂)∨(l₃∧l₄)∨...Distribute ∧ over ∨

📝 CNF Conversion Steps

  1. Eliminate ↔: α ↔ β → (α→β) ∧ (β→α)
  2. Eliminate →: α → β → ¬α ∨ β
  3. Push ¬ inward (De Morgan's, Double Negation)
  4. Distribute ∨ over ∧

6. Key Formulas & Complexity

FactFormula/Value
Interpretations for n variables2n
Distinct Boolean functions of n vars22n
SAT complexityNP-complete
2-SAT complexityO(n + m) — polynomial
3-SAT complexityNP-complete
Horn-SAT complexityO(n) — linear
ResolutionSound and refutation-complete
Forward/Backward chainingSound + complete for Horn clauses

7. Formula Classification

TypeTrue inSatisfiable?Test
TautologyALL interpretationsYesCan't make it false
ContingencySOME interpretationsYesSome T, some F
ContradictionNO interpretationsNoCan't make it true

α is tautology ⟺ ¬α is contradiction

α ⊨ β ⟺ α ∧ ¬β is unsatisfiable

8. Horn Clauses Quick Reference

TypePositive LiteralsExample
Definite clauseExactly 1¬A ∨ ¬B ∨ C (= A∧B→C)
FactExactly 1 (no negatives)A
Goal clause0¬A ∨ ¬B

9. Common GATE Patterns

🎯 Most Frequently Tested Topics

  1. Identify tautology/contradiction — Use falsification method
  2. Count satisfying assignments — Build truth table, count T rows
  3. Apply De Morgan's and Material Implication — Simplification questions
  4. Convert to CNF — Follow 4-step algorithm
  5. Resolution proof — Negate goal, convert to clauses, resolve to □
  6. Identify valid inference — Modus Ponens/Tollens vs fallacies
  7. Complexity: 2-SAT vs 3-SAT — P vs NP boundary
  8. Horn clause identification — Count positive literals ≤ 1

10. Resolution Proof Quick Steps

📝 Resolution Checklist

  1. ✅ Convert KB to CNF
  2. ✅ Negate the goal and convert to clauses
  3. ✅ Add negated goal clauses to KB clauses
  4. ✅ Find pairs with complementary literals
  5. ✅ Resolve and add resolvents
  6. ✅ If empty clause □ derived → proved!
  7. ✅ If no new resolvents possible → not provable