Mathwords logoMathwords

Law of the Excluded Middle — Definition & Example

The law of the excluded middle is the logic rule that every statement is either true or false, with no third option. For any statement, "it is true or it is not true" is always correct.

In classical logic, for every proposition PP, the disjunction P∨¬PP \lor \neg P is a tautology: it is true under every truth assignment. Intuitionistic (constructive) logic does not accept it as a general law.

Key Formula

P∨¬PP \lor \neg P
Where:
  • PP = Any proposition (a statement that has a truth value)
  • ∨\lor = Disjunction, read "or"
  • ¬\neg = Negation, read "not"

Worked Example

Problem: Prove that there exist irrational numbers aa and bb such that aba^b is rational. You may use the fact that 2\sqrt{2} is irrational.
Step 1: Let PP be the statement "22\sqrt{2}^{\sqrt{2}} is rational." By the law of the excluded middle, P∨¬PP \lor \neg P holds, so exactly one of two cases occurs.
22 is rational  ∨  22 is irrational\sqrt{2}^{\sqrt{2}} \text{ is rational} \;\lor\; \sqrt{2}^{\sqrt{2}} \text{ is irrational}
Step 2: Case 1: if 22\sqrt{2}^{\sqrt{2}} is rational, take a=b=2a = b = \sqrt{2}. Both are irrational, and aba^b is rational. You are done.
a=2,b=2a = \sqrt{2},\quad b = \sqrt{2}
Step 3: Case 2: if 22\sqrt{2}^{\sqrt{2}} is irrational, take a=22a = \sqrt{2}^{\sqrt{2}} and b=2b = \sqrt{2}. Use the power-of-a-power rule.
(22)2=22⋅2=22=2\left(\sqrt{2}^{\sqrt{2}}\right)^{\sqrt{2}} = \sqrt{2}^{\sqrt{2}\cdot\sqrt{2}} = \sqrt{2}^{2} = 2
Answer: In either case, irrational numbers aa and bb exist with aba^b rational. The proof never decides which case is true. The law of the excluded middle guarantees that one of them is, and that is enough.

Why It Matters

Proof by contradiction depends on this law: when you assume ¬P\neg P, reach a contradiction, and conclude PP, you are using it. In constructive mathematics and some proof assistants used in computer science, the law is not built in. There, a proof like the one above does not count until you show which case actually holds.

Common Mistakes

Mistake: Treating any two-option claim as an instance of the law, such as "x>0x > 0 or x<0x < 0."
Correction: The law only covers a statement and its exact negation. The negation of x>0x > 0 is x≤0x \le 0, so the correct instance is "x>0x > 0 or x≤0x \le 0." Leaving out x=0x = 0 creates a false dichotomy.

Related Terms

  • Absorption Law — Another Boolean logic identity for simplifying statements
  • Disjunction — The "or" connective that forms P or not P
  • Conjunction — The "and" connective; P and not P is always false (law of noncontradiction)
  • Axiom — Classical logic adopts this law as a basic axiom
  • Contrapositive — Full equivalence with the conditional relies on classical logic
  • Negation — Defines the "not true" half of the law
  • Truth Value — Law says every statement has exactly one truth value
  • Proof by Contradiction — Proof method that relies on this law