Lecture 3 - Propositional Logic Laws

Tautology and Contradiction

  • A tautology is a compound proposition that is always true.

  • A contradiction is a compound proposition that is always false.

  • Truth table basics:

    • If a proposition evaluates to true for all possible truth assignments, it is a tautology.

    • If a proposition evaluates to false for all possible truth assignments, it is a contradiction.

  • Example truth table (from transcript):

    • Columns: p, ¬p, p ∨ ¬p, p ∧ ¬p

    • Rows:

    • p = T, ¬p = F → p ∨ ¬p = T, p ∧ ¬p = F

    • p = F, ¬p = T → p ∨ ¬p = T, p ∧ ¬p = F

    • Conclusion: po<br>egpp o <br>eg p is not the focus here; rather, p2˘228<br>egpp \u2228 <br>eg p is always true, and p2˘227<br>egpp \u2227 <br>eg p is always false.

  • Summary relationships:

    • p∨¬p≡⊤p \lor \neg p \equiv \top (Law of excluded middle in this context)

    • p∧¬p≡⊥p \land \neg p \equiv \bot

Truth-table-based example: (p → q) ∨ p

  • We can determine tautology/contingency by evaluating the expression under all combinations of p and q.

  • Expression: (p→q)∨p(p \rightarrow q) \lor p

  • Using the truth table:

    • p = T, q = T: p → q = T; (p → q) ∨ p = T

    • p = T, q = F: p → q = F; (p → q) ∨ p = T

    • p = F, q = T: p → q = T; (p → q) ∨ p = T

    • p = F, q = F: p → q = T; (p → q) ∨ p = T

  • Since the value is always true, the expression is a tautology.

Logical Equivalences

  • Two compound propositions p and q are logically equivalent if they always have the same truth value.

  • Denoted as: p≡qp \equiv q or sometimes p⇔qp \Leftrightarrow q.

  • Significance:

    • Enables replacing a subformula with an equivalent one to simplify expressions or prove properties (tautology/contradiction/equivalence).

  • Example from transcript:

    • Prove that \boldsymbol{\diameter} p \lor q (interpreted as a certain expression in transcript) is equivalent to p→qp \to q by comparing truth tables across all assignments.

    • Truth table shows: for all assignments, the two expressions have identical truth values, so they are logically equivalent.

Example: Prove the equivalence Øp Ú q ≡ p → q

  • Given truth table (p, q, ¬p, ¬p ∨ q, p → q):

    • p q | ¬p | ¬p ∨ q | p → q

    • T T | F | T | T

    • T F | F | F | F

    • F T | T | T | T

    • F F | T | T | T

  • Observation: The column for ¬p ∨ q matches p → q in every row.

  • Conclusion: Øp Ú q is logically equivalent to p → q (as per transcript's notation and truth table).

  • Note: In the transcript, "Øp Ú q" is presented in a way that aligns with ¬p ∨ q; the key takeaway is that the two expressions share identical truth values across all possible p, q.

Laws of Propositional Logic

  • Purpose: Provide a toolkit to simplify propositions, prove logical equivalence, tautology, or contradiction.

  • Common laws (Expression 1 ↔ Expression 2):

    • Idempotent laws:

    • p∨p≡pp \lor p \equiv p

    • p∧p≡pp \land p \equiv p

    • Associative laws:

    • (p∨q)∨r≡p∨(q∨r)(p \lor q) \lor r \equiv p \lor (q \lor r)

    • (p∧q)∧r≡p∧(q∧r)(p \land q) \land r \equiv p \land (q \land r)

    • Commutative laws:

    • p∨q≡q∨pp \lor q \equiv q \lor p

    • p∧q≡q∧pp \land q \equiv q \land p

    • Distributive laws:

    • p∨(q∧r)≡(p∨q)∧(p∨r)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)

    • p∧(q∨r)≡(p∧q)∨(p∧r)p \land (q \lor r) \equiv (p \land q) \lor (p \land r)

    • Identity laws:

    • p∨⊥≡pp \lor \bot \equiv p

    • p∧⊤≡pp \land \top \equiv p

    • Domination laws:

    • p∨⊤≡⊤p \lor \top \equiv \top

    • p∧⊥≡⊥p \land \bot \equiv \bot

    • Double negation law:

    • ¬¬p≡p\neg\neg p \equiv p

    • Complement laws (the principle of excluded middle and contradiction):

    • p∨¬p≡⊤p \lor \neg p \equiv \top

    • p∧¬p≡⊥p \land \neg p \equiv \bot

    • De Morgan’s laws:

    • ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q

    • ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q

    • Absorption laws:

    • p∨(p∧q)≡pp \lor (p \land q) \equiv p

    • p∧(p∨q)≡pp \land (p \lor q) \equiv p

    • Conditional identities:

    • p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q

    • Biconditional: (optional from transcript discussion)

    • p↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p)

How to use the laws

  • Purpose: Use the laws to simplify a compound proposition, and to prove logical equivalence, tautology, or contradiction.

  • Rules of thumb:

    • Remove a biconditional (↔) by applying the conditional identity: p↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p) and/or transform implications.

    • Remove implications (→) by using the identity: p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q.

    • Apply De Morgan’s laws to move a negation inside: ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q and ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q.

    • Apply other laws (idempotent, associative, commutative, distributive, etc.) as needed to reach the desired form (e.g., a tautology, contradiction, or a simpler equivalent expression).

Example: Prove p ∨ (p → q) is a tautology

  • Target: Prove p∨(p→q)p \lor (p \rightarrow q) is a tautology.

  • Steps:

    • Use conditional identity: p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q

    • Then p∨(¬p∨q)p \lor (\neg p \lor q)

    • By associativity: (p∨¬p)∨q(p \lor \neg p) \lor q

    • By complement law: ⊤∨q\top \lor q

    • By domination law: ⊤\top

  • Conclusion: p∨(p→q)p \lor (p \rightarrow q) is a tautology.

Example: Prove ¬p → (q → r) ≡ q → (p ∨ r)

  • Target: Show ¬p→(q→r)≡q→(p∨r)\neg p \rightarrow (q \rightarrow r) \equiv q \rightarrow (p \lor r)

  • Steps (as in transcript):

    • Start with left: ¬p→(q→r)\neg p \rightarrow (q \rightarrow r)

    • Apply conditional identity: ¬p→(q→r)≡p∨(q→r)\neg p \rightarrow (q \rightarrow r) \equiv p \lor (q \rightarrow r)

    • Replace inner implication: p∨(¬q∨r)p \lor (\neg q \lor r)

    • Reassess with associativity/commutativity to form (¬q∨p)∨r(\neg q \lor p) \lor r or equivalently ¬q∨(p∨r)\neg q \lor (p \lor r)

    • Recognize that q→(p∨r)≡¬q∨(p∨r)q \rightarrow (p \lor r) \equiv \neg q \lor (p \lor r)

  • Therefore: ¬p→(q→r)≡q→(p∨r)\neg p \rightarrow (q \rightarrow r) \equiv q \rightarrow (p \lor r)

  • Note: This derivation aligns with the transcript’s final equivalence and uses standard transformation steps.

Connections to foundational principles

  • These topics underpin boolean algebra, digital logic design, and automated theorem proving.

  • Logical equivalence, tautology, and contradiction form the basis for simplifying expressions and for proving properties about logical systems.

  • The laws provide a finite and systematic toolkit to transform and reason about propositional formulas.

Practical implications and context

  • In computer science, these concepts underpin circuit design, compiler optimizations, and verification; proving a circuit is a tautology corresponds to showing it always outputs true.

  • In mathematics, logical equivalences enable proving theorems via rewrite rules.

  • In philosophy, these ideas relate to formal epistemology and the study of valid arguments.

Quick reference of key formulas (LaTeX)

  • Tautology/Contradiction:

    • p∨¬p≡⊤p \lor \neg p \equiv \top

    • p∧¬p≡⊥p \land \neg p \equiv \bot

  • Implication:

    • p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q

  • De Morgan:

    • ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q

    • ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q

  • Identity/Domination:

    • p∨⊥≡pp \lor \bot \equiv p

    • p∧⊤≡pp \land \top \equiv p

    • p∨⊤≡⊤p \lor \top \equiv \top

    • p∧⊥≡⊥p \land \bot \equiv \bot

  • Absorption:

    • p∨(p∧q)≡pp \lor (p \land q) \equiv p

    • p∧(p∨q)≡pp \land (p \lor q) \equiv p

  • Equivalences:

    • p≡qp \equiv q (logical equivalence)

    • p↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p)

  • Example results:

    • p∨(p→q)≡⊤p \lor (p \rightarrow q) \equiv \top

    • ¬p→(q→r)≡q→(p∨r)\neg p \rightarrow (q \rightarrow r) \equiv q \rightarrow (p \lor r)