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

pTpp \land T \equiv p pFpp \lor F \equiv p

Domination Laws

pTTp \lor T \equiv T pFFp \land F \equiv F

Idempotent Laws

pppp \lor p \equiv p pppp \land p \equiv p

Double Negation Law

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

Commutative Laws

pqqpp \lor q \equiv q \lor p pqqpp \land q \equiv q \land p

Associative Laws

(pq)rp(qr)(p \lor q) \lor r \equiv p \lor (q \lor r) (pq)rp(qr)(p \land q) \land r \equiv p \land (q \land 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

Generalized De Morgan's Laws

¬(p1p2pn)¬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 ¬(p1p2pn)¬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(pq)pp \lor (p \land q) \equiv p p(pq)pp \land (p \lor q) \equiv p

Negation Laws

p¬pTp \lor \neg p \equiv T p¬pFp \land \neg p \equiv F

Implication Equivalences

pq¬pqp \rightarrow q \equiv \neg p \lor q pq¬q¬p (contrapositive)p \rightarrow q \equiv \neg q \rightarrow \neg p \text{ (contrapositive)} ¬(pq)p¬q\neg(p \rightarrow q) \equiv p \land \neg q

Biconditional Equivalences

pq(pq)(qp)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p) pq(pq)(¬p¬q)p \leftrightarrow q \equiv (p \land q) \lor (\neg p \land \neg q) pq¬(pq)p \leftrightarrow q \equiv \neg(p \oplus q)

Exclusive OR Equivalences

pq(pq)¬(pq)p \oplus q \equiv (p \lor q) \land \neg(p \land q) pq(p¬q)(¬pq)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 ¬(pq)p¬q\neg(p \rightarrow q) \equiv p \land \neg q

¬(pq)\neg(p \rightarrow q) ¬(¬pq) (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: (pq)(p¬q)(p \land q) \lor (p \land \neg q)

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

Example 2

Simplify: ¬(p(¬pq))\neg(p \lor (\neg p \land q))

=¬p¬(¬pq) (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)} =(¬pp)(¬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: (pq)(¬pr)(p¬qr)(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: (pq)(¬pr)(p¬qr)(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.