01 / 20
\( p \)
\( q \)
\( \equiv \)

Logical
Equivalences

Master De Morgan's Laws and implication forms: the essential tools for transforming and simplifying logical statements in discrete mathematics.

Discrete Math

What Is a Logical Equivalence?

Two propositions \( p \) and \( q \) are logically equivalent (written \( p \equiv q \)) when they have the same truth value in every possible scenario. No matter what values the variables take, both expressions always agree: both true, or both false.

Why Equivalences Matter

Simplify Proofs
Replace complex expressions with simpler equivalent forms to make proofs more readable.
Circuit Design
Minimize Boolean circuits by rewriting gate configurations using equivalent logic.
Program Correctness
Verify that conditional branches in code behave as intended by testing logical equivalences.

Quick Refresher: Connectives

\( \neg p \)
Negation: "not p." Flips the truth value.
\( p \land q \)
Conjunction: "p and q." True only when both are true.
\( p \lor q \)
Disjunction: "p or q." True when at least one is true.
\( p \to q \)
Implication: "if p then q." False only when p is true and q is false.

De Morgan's Laws

\( \neg(p \land q) \)
\( \equiv \)
\( \neg p \lor \neg q \)
\( \neg(p \lor q) \)
\( \equiv \)
\( \neg p \land \neg q \)

Truth Table: De Morgan's Law 1

\( p \) \( q \) \( p \land q \) \( \neg(p \land q) \) \( \neg p \) \( \neg q \) \( \neg p \lor \neg q \)
TTTFFFF
TFFTFTT
FTFTTFT
FFFTTTT

The Implication Equivalence

\( p \to q \)
\( \equiv \)
\( \neg p \lor q \)

"If p, then q" is the same as "either p is false, or q is true." The only way the implication fails is when \( p \) is true and \( q \) is false: exactly the situation \( \neg p \lor q \) also covers.

Contrapositive, Converse, & Inverse

Form Expression Equivalent to \( p \to q \)?
Original \( p \to q \) Yes (itself)
Contrapositive \( \neg q \to \neg p \) Yes
Converse \( q \to p \) No
Inverse \( \neg p \to \neg q \) No

De Morgan's vs. Implication

De Morgan's Laws
Move a negation across a connective: distribute \( \neg \) over \( \land \) or \( \lor \), flipping the connective. Used when you see \( \neg( \cdots \land \cdots ) \) or \( \neg( \cdots \lor \cdots ) \).
Implication Form
Rewrite \( \to \) as a disjunction: \( p \to q \equiv \neg p \lor q \). Used when you need to eliminate the arrow and work purely with \( \neg, \land, \lor \).

How to Simplify Step by Step

1
Eliminate arrows: Replace every \( p \to q \) with \( \neg p \lor q \). Replace \( p \leftrightarrow q \) with \( (p \to q) \land (q \to p) \).
2
Push negations inward: Use De Morgan's Laws to distribute \( \neg \) through \( \land \) and \( \lor \). Apply double negation: \( \neg \neg p \equiv p \).
3
Simplify: Use idempotent, identity, domination, absorption, and complement laws to reduce the expression.
4
Verify: Build a truth table or check key rows to confirm the simplified form matches the original.

Example 1: Applying De Morgan's

Simplify \( \neg(p \land \neg q) \).

1
Apply De Morgan's Law: \( \neg(p \land \neg q) \equiv \neg p \lor \neg(\neg q) \)
2
Double negation: \( \neg(\neg q) \equiv q \)
3
Result: \( \neg p \lor q \)

Example 2: Rewriting an Implication

Show that \( \neg(p \to q) \equiv p \land \neg q \).

1
Replace the arrow: \( \neg(p \to q) \equiv \neg(\neg p \lor q) \)
2
Apply De Morgan's: \( \neg(\neg p \lor q) \equiv \neg(\neg p) \land \neg q \)
3
Double negation: \( \neg(\neg p) \equiv p \)
4
Final result: \( p \land \neg q \) ✓

Example 3: Chained Simplification

Simplify \( \neg(p \to (q \land r)) \).

1
Eliminate \( \to \): \( \neg(\neg p \lor (q \land r)) \)
2
De Morgan's: \( \neg(\neg p) \land \neg(q \land r) \)
3
Double neg + De Morgan's again: \( p \land (\neg q \lor \neg r) \)

Other Key Equivalences

Law Equivalence
Double Negation \( \neg \neg p \equiv p \)
Contrapositive \( p \to q \equiv \neg q \to \neg p \)
Biconditional \( p \leftrightarrow q \equiv (p \to q) \land (q \to p) \)
Exportation \( (p \land q) \to r \equiv p \to (q \to r) \)
Absorption \( p \lor (p \land q) \equiv p \)

Common Mistakes

✕ Forgetting to Swap
Writing \( \neg(p \land q) \) as \( \neg p \land \neg q \) instead of \( \neg p \lor \neg q \). De Morgan's requires you to flip the connective.
✕ Converse = Original
Assuming \( q \to p \) is the same as \( p \to q \). The converse is not equivalent; only the contrapositive is.
✕ Distributing \( \neg \) Like Algebra
Writing \( \neg(p \to q) \) as \( \neg p \to \neg q \). Negating an implication requires converting to \( \neg p \lor q \) first, then applying De Morgan's.

Summary of Equivalences

Original Equivalent Form Rule Used
\( \neg(p \land q) \) \( \neg p \lor \neg q \) De Morgan's 1
\( \neg(p \lor q) \) \( \neg p \land \neg q \) De Morgan's 2
\( p \to q \) \( \neg p \lor q \) Implication
\( p \to q \) \( \neg q \to \neg p \) Contrapositive
\( \neg(p \to q) \) \( p \land \neg q \) Negated Implication

Question 1 of 5

Which expression is logically equivalent to \( \neg(p \lor q) \)?

Question 2 of 5

The implication \( p \to q \) is logically equivalent to which of the following?

Question 3 of 5

Which is the contrapositive of \( p \to q \)?

Question 4 of 5

Simplify \( \neg(\neg p \lor q) \) using De Morgan's Law.

Question 5 of 5

Which of the following is NOT logically equivalent to the others?