Logic & ProofsTopic #2 of 40

Logical Equivalences

De Morgan's laws, distributive laws, absorption, and other equivalence rules for simplifying logical expressions.

Fundamental Equivalences

Identity Laws

p∧T≡pp \land T \equiv p p∨F≡pp \lor F \equiv p

Domination Laws

p∨T≡Tp \lor T \equiv T p∧F≡Fp \land F \equiv F

Idempotent Laws

p∨p≡pp \lor p \equiv p p∧p≡pp \land p \equiv p

Double Negation Law

¬(¬p)≡p\neg(\neg p) \equiv p

Commutative Laws

p∨q≡q∨pp \lor q \equiv q \lor p p∧q≡q∧pp \land q \equiv q \land 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)

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)

De Morgan's Laws

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

Generalized De Morgan's Laws

¬(p1∧p2∧⋯∧pn)≡¬p1∨¬p2∨⋯∨¬pn\neg(p_1 \land p_2 \land \cdots \land p_n) \equiv \neg p_1 \lor \neg p_2 \lor \cdots \lor \neg p_n ¬(p1∨p2∨⋯∨pn)≡¬p1∧¬p2∧⋯∧¬pn\neg(p_1 \lor p_2 \lor \cdots \lor p_n) \equiv \neg p_1 \land \neg p_2 \land \cdots \land \neg p_n

Absorption Laws

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

Negation Laws

p∨¬p≡Tp \lor \neg p \equiv T p∧¬p≡Fp \land \neg p \equiv F

Implication Equivalences

p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q p→q≡¬q→¬p (contrapositive)p \rightarrow q \equiv \neg q \rightarrow \neg p \text{ (contrapositive)} ¬(p→q)≡p∧¬q\neg(p \rightarrow q) \equiv p \land \neg q

Biconditional Equivalences

p↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p) p↔q≡(p∧q)∨(¬p∧¬q)p \leftrightarrow q \equiv (p \land q) \lor (\neg p \land \neg q) p↔q≡¬(p⊕q)p \leftrightarrow q \equiv \neg(p \oplus q)

Exclusive OR Equivalences

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

Proving Equivalences

Method 1: Truth Tables

Show both sides have identical truth values for all inputs.

Method 2: Chain of Equivalences

Transform one side to the other using known equivalences.

Example: Prove ¬(p→q)≡p∧¬q\neg(p \rightarrow q) \equiv p \land \neg q

¬(p→q)\neg(p \rightarrow q) ≡¬(¬p∨q) (implication equivalence)\equiv \neg(\neg p \lor q) \text{ (implication equivalence)} ≡¬(¬p)∧¬q (De Morgan’s law)\equiv \neg(\neg p) \land \neg q \text{ (De Morgan's law)} ≡p∧¬q (double negation)\equiv p \land \neg q \text{ (double negation)}

Simplification Examples

Example 1

Simplify: (p∧q)∨(p∧¬q)(p \land q) \lor (p \land \neg q)

=p∧(q∨¬q) (distributive law)= p \land (q \lor \neg q) \text{ (distributive law)} =p∧T (negation law)= p \land T \text{ (negation law)} =p (identity law)= p \text{ (identity law)}

Example 2

Simplify: ¬(p∨(¬p∧q))\neg(p \lor (\neg p \land q))

=¬p∧¬(¬p∧q) (De Morgan’s)= \neg p \land \neg(\neg p \land q) \text{ (De Morgan's)} =¬p∧(p∨¬q) (De Morgan’s)= \neg p \land (p \lor \neg q) \text{ (De Morgan's)} =(¬p∧p)∨(¬p∧¬q) (distributive)= (\neg p \land p) \lor (\neg p \land \neg q) \text{ (distributive)} =F∨(¬p∧¬q) (negation law)= F \lor (\neg p \land \neg q) \text{ (negation law)} =¬p∧¬q (identity law)= \neg p \land \neg q \text{ (identity law)}

Normal Forms

Disjunctive Normal Form (DNF)

A disjunction of conjunctions of literals: (p∧q)∨(¬p∧r)∨(p∧¬q∧r)(p \land q) \lor (\neg p \land r) \lor (p \land \neg q \land r)

Conjunctive Normal Form (CNF)

A conjunction of disjunctions of literals: (p∨q)∧(¬p∨r)∧(p∨¬q∨r)(p \lor q) \land (\neg p \lor r) \land (p \lor \neg q \lor r)

Every proposition can be converted to both DNF and CNF.