What is a Logical Equivalence?

4. Laws of Logical Equivalence: Complete Guide with Examples

In this lesson, you’ll learn how to simplify complex logical expressions using established rules. In this guide, you’ll use the laws of logical equivalence, fundamental tools for transforming and simplifying propositions without changing their truth value.

What is a Logical Equivalence?

Two propositions are logically equivalent when they have exactly the same truth values for all possible combinations of their variables.

Formal Definition

We say that p ≡ q (p is equivalent to q) if and only if p ↔ q is a tautology.

In other words, p and q are equivalent when the biconditional between them is always true.

Equivalence Symbols

SymbolUsage
Logical equivalence (most common)
Some textbooks
Alternative notation

What are equivalences used for?

The laws of equivalence allow you to:

  1. Simplify complex logical expressions
  2. Prove that two expressions are equal without using truth tables
  3. Transform an expression into a more convenient form
  4. Verify logical arguments

Fundamental Laws of Equivalence

1. Identity Law

A proposition combined with certain constant values maintains its identity (remains the same proposition):

LawFormulaExplanation
Identity with Tp ∧ T ≡ p“p AND true” is simply p
Identity with Fp ∨ F ≡ p“p OR false” is simply p

Example:

  • “Today is Monday AND it’s true that 2+2=4” ≡ “Today is Monday”
  • “It’s raining OR it’s false that pigs fly” ≡ “It’s raining”

2. Domination Law (Absorbing Element)

Certain constant values dominate or absorb the proposition, making the result solely that constant value (the proposition “disappears”):

LawFormulaExplanation
Domination with Tp ∨ T ≡ T“p OR true” is always true
Domination with Fp ∧ F ≡ F“p AND false” is always false

Example:

  • “I’m a millionaire OR 2+2=4” ≡ T (always true)
  • “I’m a millionaire AND 2+2=5” ≡ F (always false)

3. Idempotent Law

A proposition repeated with the same connective gives the same proposition:

LawFormula
Idempotence of ∧p ∧ p ≡ p
Idempotence of ∨p ∨ p ≡ p

Example:

  • “It’s raining AND it’s raining” ≡ “It’s raining”
  • “It’s cold OR it’s cold” ≡ “It’s cold”

4. Double Negation Law

Negating a proposition twice returns it to its original state:

LawFormula
Double Negation¬(¬p) ≡ p

Example:

  • “It’s not false that it’s raining” ≡ “It’s raining”
  • “It’s not true that I didn’t pass” ≡ “I passed”

5. Complement Law (Excluded Middle and Contradiction)

LawFormulaName
p ∨ ¬p ≡ TExcluded MiddleA proposition or its negation is true
p ∧ ¬p ≡ FContradictionA proposition cannot be T and F at the same time

Example:

  • “Today is Monday OR today is not Monday” ≡ T (always true)
  • “Today is Monday AND today is not Monday” ≡ F (always false)

Laws of Operations Between Propositions

6. Commutative Law

The order of propositions does not affect the result:

LawFormula
Commutativity of ∧p ∧ q ≡ q ∧ p
Commutativity of ∨p ∨ q ≡ q ∨ p
Commutativity of ↔p ↔ q ≡ q ↔ p

Example:

  • “It’s raining AND it’s cold” ≡ “It’s cold AND it’s raining”
  • “John is tall OR Peter is short” ≡ “Peter is short OR John is tall”

Note: The conditional (→) is NOT commutative. “If it rains, I get wet” is NOT equivalent to “If I get wet, it rains.”

7. Associative Law

The grouping of propositions does not affect the result:

LawFormula
Associativity of ∧(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
Associativity of ∨(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)

Example:

  • “(A AND B) AND C” ≡ “A AND (B AND C)”
  • We can simply write: A ∧ B ∧ C

8. Distributive Law

One connective can be “distributed” over another:

LawFormula
∧ distributes over ∨p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
∨ distributes over ∧p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)

Example:

  • “I study AND (I pass OR I fail)” ≡ “(I study AND I pass) OR (I study AND I fail)”

Analogy with algebra: Similar to a × (b + c) = ab + ac

9. Absorption Law

A proposition “absorbs” another when they are connected in a certain way:

LawFormula
Absorption 1p ∧ (p ∨ q) ≡ p
Absorption 2p ∨ (p ∧ q) ≡ p

Example:

  • “It’s raining AND (it’s raining OR it’s sunny)” ≡ “It’s raining”
  • “John passes OR (John passes AND studies)” ≡ “John passes”

Explanation:

  • In the first case: if p is T, the whole expression is T (because of p). If p is F, (p ∨ q) could be T, but p ∧ (something) would be F.
  • In both cases, the result matches p.

De Morgan’s Laws

De Morgan’s Laws are perhaps the most important and useful in logic. They allow you to “pass” a negation through a conjunction or disjunction.

Formulation

LawFormulaIn words
De Morgan 1\( \neg ( \mathrm{p} ∧ \mathrm{q} ) ≡ \neg \mathrm{p} ∨ \neg \mathrm{q} \)“NOT (p AND q)” equals “NOT p OR NOT q”
De Morgan 2\( \neg (\mathrm{p} ∨ \mathrm{q} ) ≡ \neg \mathrm{p} ∧ \neg \mathrm{q} \)“NOT (p OR q)” equals “NOT p AND NOT q”

Mnemonic Rule

When negating an expression: change ∧ to ∨ (and vice versa) and negate each component.

Detailed Examples

Example 1: Negate “It’s raining AND it’s cold”

  • ¬(Raining ∧ Cold)
  • ≡ ¬Raining ∨ ¬Cold
  • = “It’s not raining OR it’s not cold”

Example 2: Negate “John is a student OR is a worker”

  • ¬(Student ∨ Worker)
  • ≡ ¬Student ∧ ¬Worker
  • = “John is not a student AND is not a worker”

Example 3: In programming

In languages like JavaScript, Java, or C, logical operators are written differently:

LogicProgrammingMeaning
¬!Negation (NOT)
&&Conjunction (AND)
`

Applying De Morgan, these two conditions are equivalent:

// Form 1: Negate the entire conjunction
if (!(x > 5 && y < 10)) { ... }

// Form 2: Negate each part and change && to ||
if (x <= 5 || y >= 10) { ... }

Explanation:

  • !(x > 5) becomes x <= 5 (negating “greater than” is “less than or equal”)
  • !(y < 10) becomes y >= 10 (negating “less than” is “greater than or equal”)
  • The && (AND) becomes || (OR)

Extended Application

De Morgan’s Laws also apply to multiple propositions:

ExpressionEquivalent
¬(p ∧ q ∧ r)¬p ∨ ¬q ∨ ¬r
¬(p ∨ q ∨ r)¬p ∧ ¬q ∧ ¬r

Conditional Equivalences

The conditional (→) has several very important equivalent forms.

10. Material Implication

The conditional can be expressed using only negation and disjunction:

LawFormula
Material Implicationp → q ≡ ¬p ∨ q

Interpretation: “If p then q” is the same as “Not p, OR q”

Example:

  • “If it rains, I get wet” ≡ “It doesn’t rain OR I get wet”
  • “If you study, you pass” ≡ “You don’t study OR you pass”

11. Contraposition Law (Contrapositive)

The conditional is equivalent to its contrapositive:

LawFormula
Contrapositionp → q ≡ ¬q → ¬p

Example:

  • “If it rains, the street gets wet” ≡ “If the street is NOT wet, it’s NOT raining”
  • “If you’re a mammal, you’re a vertebrate” ≡ “If you’re NOT a vertebrate, you’re NOT a mammal”

Important: The contrapositive always has the same truth value as the original proposition. This is very useful in mathematical proofs.

12. Negation of the Conditional

To negate a conditional, affirm the antecedent and negate the consequent:

LawFormula
Conditional Negation¬(p → q) ≡ p ∧ ¬q

Example:

  • Negate “If you study, you pass”
  • ≡ “You study AND you do NOT pass”

Explanation: The only case where p → q is FALSE is when p is T and q is F.

13. Other Conditional Equivalences

EquivalenceFormula
Using negationp → q ≡ ¬(p ∧ ¬q)
Multiple transpositionp → q ≡ ¬q → ¬p ≡ ¬(p ∧ ¬q) ≡ ¬p ∨ q

Biconditional Equivalences

14. Definition as Double Conditional

The biconditional is the conjunction of two opposite conditionals:

LawFormula
Biconditionalp ↔ q ≡ (p → q) ∧ (q → p)

Interpretation: “p if and only if q” means “If p then q” AND “If q then p”

15. Alternative Form

The biconditional can also be expressed as:

LawFormula
Biconditional (alt)p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q)

Interpretation: “p ↔ q” is true when “both are true OR both are false”

16. Negation of the Biconditional

LawFormula
Negation ↔¬(p ↔ q) ≡ p ⊻ q

The negation of the biconditional is the exclusive disjunction (XOR).

17. Equivalence of Negations

LawFormula
Equivalent negationsp ↔ q ≡ ¬p ↔ ¬q

Example: “You pass if and only if you score 60%” ≡ “You don’t pass if and only if you don’t score 60%”

18. Exportation Law

This law relates nested conjunctions with conditionals:

LawFormula
Exportation(p ∧ q) → r ≡ p → (q → r)

Example:

  • “If (you study AND practice), you pass” ≡ “If you study, then (if you practice, you pass)”

Equivalence Summary Table

NameFormula
1. Identityp ∧ T ≡ p
p ∨ F ≡ p
2. Dominationp ∨ T ≡ T
p ∧ F ≡ F
3. Idempotencep ∧ p ≡ p
p ∨ p ≡ p
4. Double Negation¬(¬p) ≡ p
5. Complementp ∨ ¬p ≡ T
p ∧ ¬p ≡ F
6. Commutativityp ∧ q ≡ q ∧ p
p ∨ q ≡ q ∨ p
7. Associativity(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
8. Distributivity\( \mathrm{p} ∧ ( \mathrm{q} ∨ \mathrm{r} ) ≡ ( \mathrm{p} ∧ \mathrm{q} ) ∨ ( \mathrm{p} ∧ \mathrm{r} ) \)
9. Absorptionp ∧ (p ∨ q) ≡ p
p ∨ (p ∧ q) ≡ p
10. De Morgan¬(p ∧ q) ≡ ¬p ∨ ¬q
¬(p ∨ q) ≡ ¬p ∧ ¬q
11. Material Implicationp → q ≡ ¬p ∨ q
12. Contrapositionp → q ≡ ¬q → ¬p
13. Conditional Negation¬(p → q) ≡ p ∧ ¬q
14. Biconditionalp ↔ q ≡ (p → q) ∧ (q → p)
15. Biconditional (alt)p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q)
16. Biconditional Negation¬(p ↔ q) ≡ p ⊻ q
17. Negation Equivalencep ↔ q ≡ ¬p ↔ ¬q
18. Exportation(p ∧ q) → r ≡ p → (q → r)

Application: Simplifying Expressions

Example 1: Simplify:
¬(p ∨ ¬q)

  1. Apply De Morgan: ¬p ∧ ¬(¬q)
  2. Apply Double Negation: ¬p ∧ q

Result: ¬(p ∨ ¬q) ≡ ¬p ∧ q

Example 2: Simplify:
(p ∧ q) ∨ (p ∧ ¬q)

  1. Factor out common term (reverse Distributive): p ∧ (q ∨ ¬q)
  2. Apply Excluded Middle: p ∧ T
  3. Apply Identity: p

Result: (p ∧ q) ∨ (p ∧ ¬q) ≡ p

Example 3: Prove that:
p → q ≡ ¬q → ¬p

StepExpressionLaw applied
1p → qInitial expression
2¬p ∨ qMaterial Implication
3q ∨ ¬pCommutativity
4¬(¬q) ∨ ¬pDouble Negation
5¬q → ¬pMaterial Implication (reverse)

Practice Exercises

Exercise 1: Simplification

Simplify the following expressions using the laws of equivalence:

  1. p ∧ (p ∨ q)
  2. ¬(¬p ∧ ¬q)
  3. (p → q) ∧ (p → ¬q)
  4. p ∨ (¬p ∧ q)

Exercise 2: Proof

Prove the following equivalences step by step:

  1. ¬(p → q) ≡ p ∧ ¬q
  2. p → (q → r) ≡ (p ∧ q) → r
  3. p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q)

Exercise 3: Negation

Negate the following propositions and simplify:

  1. “If it rains, then it’s cold AND there are clouds”
  2. “You pass if and only if you study”
  3. “It’s not true that (p OR q)”

Answers

Answers to Exercise 1

  1. p ∧ (p ∨ q) ≡ p (Absorption)
  2. ¬(¬p ∧ ¬q) ≡ p ∨ q (De Morgan)
  3. (p → q) ∧ (p → ¬q):
    • ≡ (¬p ∨ q) ∧ (¬p ∨ ¬q) (Material Implication)
    • ≡ ¬p ∨ (q ∧ ¬q) (Distributive)
    • ≡ ¬p ∨ F (Contradiction)
    • ≡ ¬p (Identity)
  4. p ∨ (¬p ∧ q):
    • ≡ (p ∨ ¬p) ∧ (p ∨ q) (Distributive)
    • ≡ T ∧ (p ∨ q) (Excluded Middle)
    • ≡ p ∨ q (Identity)

Answers to Exercise 2

  1. ¬(p → q) ≡ p ∧ ¬q:
    • ¬(p → q)
    • ≡ ¬(¬p ∨ q) (Material Implication)
    • ≡ ¬(¬p) ∧ ¬q (De Morgan)
    • ≡ p ∧ ¬q (Double Negation) ✓
  2. p → (q → r) ≡ (p ∧ q) → r:
    • p → (q → r)
    • ≡ p → (¬q ∨ r) (Material Implication)
    • ≡ ¬p ∨ (¬q ∨ r) (Material Implication)
    • ≡ (¬p ∨ ¬q) ∨ r (Associativity)
    • ≡ ¬(p ∧ q) ∨ r (De Morgan)
    • ≡ (p ∧ q) → r (Material Implication) ✓
  3. p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q):
    • p ↔ q
    • ≡ (p → q) ∧ (q → p) (Biconditional Definition)
    • ≡ (¬p ∨ q) ∧ (¬q ∨ p) (Material Implication, twice)
    • ≡ [(¬p ∨ q) ∧ ¬q] ∨ [(¬p ∨ q) ∧ p] (Distributive)
    • ≡ [(¬p ∧ ¬q) ∨ (q ∧ ¬q)] ∨ [(¬p ∧ p) ∨ (q ∧ p)] (Distributive)
    • ≡ [(¬p ∧ ¬q) ∨ F] ∨ [F ∨ (p ∧ q)] (Contradiction)
    • ≡ (¬p ∧ ¬q) ∨ (p ∧ q) (Identity)
    • ≡ (p ∧ q) ∨ (¬p ∧ ¬q) (Commutativity) ✓

Answers to Exercise 3

  1. Negate “If it rains, then (it’s cold AND there are clouds)”:
    • ¬(Rains → (Cold ∧ Clouds))
    • ≡ Rains ∧ ¬(Cold ∧ Clouds)
    • ≡ Rains ∧ (¬Cold ∨ ¬Clouds)
    • = “It rains AND (it’s not cold OR there are no clouds)”
  2. Negate “You pass if and only if you study”:
    • ¬(Pass ↔ Study)
    • ≡ Pass ⊻ Study
    • = “You pass OR you study, but not both” (XOR)
  3. Negate “It’s not true that (p OR q)”:
    • ¬(¬(p ∨ q))
    • ≡ p ∨ q (Double Negation)

What’s Next?

In the next article, we’ll study what logical inference is, its notable laws, and the abbreviated method.

Did you find this post useful? Leave me a comment with your questions or suggestions! And don’t forget to check out the next installment of this series on mathematical logic.

Leave a Comment

Your email address will not be published. Required fields are marked *