COMP 10070: Transformational Proofs - Logical Laws

Propositional Logic Fundamentals

  • Logical Equivalence: Two formulae are said to be logically equivalent (pqp \equiv q) if and only if their equivalence is a tautology (identical in meaning), allowing one to replace the other without changing the meaning.

  • Logical Implication: A formula pp logically implies a formula qq (pqp \Rightarrow q) if and only if their implication (pqp \Rightarrow q) is a tautology.

Key Logical Laws

  • Commutative Laws:

    • pqqpp \land q \equiv q \land p

    • pqqpp \lor q \equiv q \lor p

  • Associative Laws:

    • p(qr)(pq)rp \land (q \land r) \equiv (p \land q) \land r

    • p(qr)(pq)rp \lor (q \lor r) \equiv (p \lor q) \lor r

  • Distributive Laws:

    • p(qr)(pq)(pr)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)

    • p(qr)(pq)(pr)p \land (q \lor r) \equiv (p \land q) \lor (p \land r)

  • De Morgan's Laws:

    • ¬(pq)¬p¬q\neg(p \land q) \equiv \neg p \lor \neg q

    • ¬(pq)¬p¬q\neg(p \lor q) \equiv \neg p \land \neg q

  • Law of Negation (Involution): ¬(¬p)p\neg(\neg p) \equiv p

  • Complement Laws:

    • Law of Excluded Middle: p¬ptruep \lor \neg p \equiv \text{true}

    • Law of Contradiction: p¬pfalsep \land \neg p \equiv \text{false}

  • Implication and Equivalence Laws:

    • Law of Implication: pq¬pqp \Rightarrow q \equiv \neg p \lor q

    • Contrapositive Law: pq¬q¬pp \Rightarrow q \equiv \neg q \Rightarrow \neg p

    • Law of Equivalence: (pq)(pq)(qp)(p \Leftrightarrow q) \equiv (p \Rightarrow q) \land (q \Rightarrow p)

  • Idempotence Laws:

    • pppp \lor p \equiv p

    • pppp \land p \equiv p

  • Laws of Simplification (Identity Laws):

    • ptruepp \land \text{true} \equiv p

    • ptruetruep \lor \text{true} \equiv \text{true}

    • pfalsefalsep \land \text{false} \equiv \text{false}

    • pfalsepp \lor \text{false} \equiv p

    • p(pq)pp \lor (p \land q) \equiv p

    • p(pq)pp \land (p \lor q) \equiv p

Rules for Transformational Proofs

  • Rule of Substitution: A logically equivalent formula can always replace a subformula within a larger formula without changing its meaning.

  • Rule of Transitivity: If pqp \equiv q and qrq \equiv r then prp \equiv r.