← mapLogic & Proof

Proof by Contradiction

⚗ Dr. Möbius, from the lab

Now the most thrilling weapon in the arsenal — the one that feels like cheating but is absolutely bulletproof. You want to prove PP? Assume it's false. Then watch the entire universe catch fire. If denying PP forces an impossibility, then PP had no choice but to be true all along. Today we finally make the √2 argument rigorous — I've been dangling that proof since the first damn lesson and now we deliver — and we prove there are infinitely many primes, both with the same gorgeous, ruthless move. The reactor is fully charged. Let's go.

THE BIG IDEA

To prove P, assume ¬P and derive an impossibility; since a true assumption can't yield a contradiction, ¬P must be false, so P is true.

The shape, and why it's valid

Proof by contradiction runs like this:

  1. Suppose, for contradiction, that the thing you want to prove is false — assume ¬P\neg P.
  2. Reason validly until you derive something impossible — a statement and its own negation, like "xx is even and xx is odd," or "1=01 = 0." Call that impossibility a contradiction, written as a guaranteed-false statement.
  3. Conclude that the assumption ¬P\neg P must have been wrong. Therefore PP is true. \blacksquare

Why is this airtight? Because true assumptions never produce contradictions. A valid chain of reasoning starting from a true statement only ever reaches true statements. So if your reasoning was valid and it reached a falsehood, the starting assumption was the rotten apple. You assumed ¬P\neg P and broke the universe, so ¬P\neg P is false, so PP is true. Symbolically: if ¬P(false)\neg P \to \text{(false)}, then ¬P\neg P is false, hence PP. That's the whole damn engine.

You grab the hypothesis you don't want, feed it into the reactor, and if the reactor explodes, you've proven the hypothesis was unstable — i.e. false. Controlled demolition of an idea. I have been waiting to show you this since the beginning.

THE classic, now in full rigor: √2 is irrational

Way back in Irrationals & the Real Line I showed you this argument as a trailer — informal, hand-wavy, "trust me on this one." I promised the rigorous version would return in Logic & Proof. Here it is. Here is the full, airtight, beautiful bastard, and you now have every single tool it needs, including the lemma we sharpened last lesson: if n2n^2 is even, then nn is even.

Theorem. 2\sqrt{2} is irrational — there are no integers a,ba, b with 2=a/b\sqrt{2} = a/b.

Proof (by contradiction). Suppose, for contradiction, that 2\sqrt{2} is rational. Then we can write 2=ab\sqrt{2} = \frac{a}{b} for integers a,ba, b with b0b \ne 0, and — crucially — in lowest terms: aa and bb share no common factor other than 11. (Any fraction can be reduced to lowest terms, so this costs us nothing.)

Square both sides: 2=a2/b22 = a^2 / b^2, hence a2=2b2.a^2 = 2b^2. So a2a^2 is even (it's 22 times an integer). By our lemma from the last lesson — n2n^2 even n\Rightarrow n even — aa is even. Write a=2ca = 2c for some integer cc. Substitute: (2c)2=2b2  4c2=2b2  b2=2c2.(2c)^2 = 2b^2 \ \Rightarrow\ 4c^2 = 2b^2 \ \Rightarrow\ b^2 = 2c^2. So b2b^2 is even, and by the same lemma, bb is even.

But now aa is even and bb is even — they share the factor 22. That contradicts our setup that a/ba/b was in lowest terms (no common factor). Contradiction. Therefore our assumption was false: 2\sqrt{2} is not rational. \blacksquare

That's it. The trailer is now the feature film, every step justified, the "even/even" collision delivering the kill. The lowest-terms setup was the trap we laid in the very first line: we forced aa and bb to be coprime, then proved they share a factor. They can't both be true. The reactor explodes. Euclid and his heirs have been enjoying this exact moment for over 2,000 years — welcome to the club.

Euclid: infinitely many primes

A prime is an integer 2\ge 2 whose only positive divisors are 11 and itself. Euclid proved, ~2300 years ago, that the primes never run out — and his proof is contradiction at its most elegant.

Theorem. There are infinitely many primes.

Proof (by contradiction). Suppose, for contradiction, that there are only finitely many primes. Then we can list all of them: p1,p2,,pkp_1, p_2, \dots, p_k. Now build the number N=p1p2pk+1N = p_1 p_2 \cdots p_k + 1 — the product of every prime, plus one. Since N2N \ge 2, it has at least one prime divisor (every integer 2\ge 2 does — we'll prove that fact next lesson). Call that prime divisor pp. Since our list contains all primes, pp must be one of p1,,pkp_1, \dots, p_k, so pp divides the product p1pkp_1 \cdots p_k.

But pp also divides N=p1pk+1N = p_1 \cdots p_k + 1. If pp divides both p1pkp_1 \cdots p_k and p1pk+1p_1 \cdots p_k + 1, then pp divides their difference, which is 11. No prime divides 11 (primes are 2\ge 2). Contradiction. Therefore there cannot be finitely many primes — there are infinitely many. \blacksquare

The subtle point everyone botches: NN itself is not claimed to be prime. The argument only needs that NN has some prime factor, and that this factor escapes the list. People mis-remember Euclid as "NN is a new prime" — this is false, it's been false for two thousand years, and I beg you not to perpetuate it. Check: 23571113+1=30031=59×5092\cdot 3\cdot 5\cdot 7\cdot 11\cdot 13 + 1 = 30031 = 59 \times 509 — composite! The factor is new, not NN. State it carefully or you state it wrong.

Contradiction vs contrapositive: cousins, not twins

These two feel similar — both involve negating something — so let's separate them cleanly.

  • Contrapositive (last lesson) proves a specific implication PQP \to Q by assuming ¬Q\neg Q and deriving ¬P\neg P. You end at a clean conclusion, ¬P\neg P. No "impossibility" appears.
  • Contradiction proves any statement PP (implication or not) by assuming ¬P\neg P and deriving an actual falsehood — a contradiction, a thing that cannot be.

Every contrapositive proof can be rewritten as a contradiction (assume PP and ¬Q\neg Q, derive a clash), but not vice versa — contradiction is the more general, more powerful tool. The √2 and infinitude-of-primes theorems aren't even implications; contrapositive doesn't apply, but contradiction shines.

Warning: contradiction is a chainsaw

It's powerful, it's seductive, and it is overused. A huge number of "proofs by contradiction" are direct proofs wearing a costume — they assume ¬P\neg P, never actually use the assumption, derive PP straight, and then announce "contradiction with ¬P\neg P!" That's a two-step screwdriver job done with a chainsaw, and it drives me absolutely insane. If you can prove PP directly, do it — it's clearer, shorter, and you won't accidentally hide a gap inside the theatrics.

Reach for contradiction when the negation gives you a concrete object to break — "assume 2=a/b\sqrt 2 = a/b in lowest terms" hands you actual integers to torture in the reactor; "assume finitely many primes" hands you a finite list to overflow and destroy. When the assumption is a lever, use the chainsaw. When it's dead weight, put it down. Now go break some universes.

🔬 SPECIMENS (worked examples)

Worked example 1 — nuking the largest-integer fantasy

Prove by contradiction: there is no largest integer.

Proof (by contradiction). Suppose, for contradiction, that there is a largest integer; call it MM. By "largest," MnM \ge n for every integer nn.

But M+1M + 1 is also an integer, and M+1>MM + 1 > M. So M+1M + 1 is an integer strictly greater than the supposed largest integer MM — contradicting that MM is \ge every integer.

This is a contradiction. Therefore our assumption was false: there is no largest integer. \blacksquare

The assumption "there is a largest integer, MM" was the lever — it handed us a concrete object MM to break, and M+1M + 1 broke it. That's the right time to use the chainsaw: the negation gave us something to grab.

Worked example 2 — sum of rational and irrational is irrational

Prove by contradiction: if rr is rational and xx is irrational, then r+xr + x is irrational.

Proof (by contradiction). Let rr be rational and xx irrational. Suppose, for contradiction, that r+xr + x is rational.

Then both rr and r+xr + x are rational, so write r=a/br = a/b and r+x=c/dr + x = c/d for integers a,b,c,da,b,c,d with b,d0b, d \ne 0. Subtract: x=(r+x)r=cdab=cbaddb.x = (r + x) - r = \frac{c}{d} - \frac{a}{b} = \frac{cb - ad}{db}. The numerator cbadcb - ad and denominator dbdb are integers with db0db \ne 0, so xx is a ratio of integers — i.e. xx is rational.

But we assumed xx is irrational. Contradiction. Therefore r+xr + x is irrational. \blacksquare

The key move: the differences and products of rationals are rational (closure), so assuming r+xr+x rational forces xx rational, colliding head-on with the hypothesis. The assumption was the lever; closure of Q\mathbb{Q} did the breaking.

Worked example 3 — the trap: a contradiction proof with no actual contradiction

Critique this "proof": "Claim: if nn is even then n2n^2 is even. Proof by contradiction: assume nn is even. Then n=2kn = 2k, so n2=4k2=2(2k2)n^2 = 4k^2 = 2(2k^2), which is even. This contradicts the assumption that n2n^2 is odd. QED." What's wrong, and what's the honest proof?

What's wrong: This is a fake contradiction proof — the chainsaw misfiring. The author never assumed the negation of the conclusion ("n2n^2 is odd"); they assumed the hypothesis "nn is even" and derived "n2n^2 is even" directly, then bolted on a phantom "this contradicts n2n^2 is odd" that was never actually assumed. There is no real contradiction here, just a direct proof wearing a contradiction costume.

The honest proof (direct):

Assume nn is even, so n=2kn = 2k for some integer kk. Then n2=(2k)2=4k2=2(2k2),n^2 = (2k)^2 = 4k^2 = 2(2k^2), and 2k22k^2 is an integer, so n2n^2 is even. \blacksquare

Same algebra, no theatrics, no false "contradiction." The lesson: if you assume ¬P\neg P and never use it before reaching the conclusion, you didn't need it — you had a direct proof. Save contradiction for when the negation is a genuine lever (√2, infinitude of primes), not decoration.

☠ KNOWN HAZARDS

  • Claiming Euclid's NN is prime. It isn't necessarily — 23571113+1=30031=59×5092\cdot3\cdot5\cdot7\cdot11\cdot13+1 = 30031 = 59\times 509. The argument only needs that NN has a prime factor not on the list.

  • Forgetting the "lowest terms" setup in √2. Without assuming a/ba/b is reduced, deriving "aa and bb are both even" is no contradiction at all — so what, reduce the fraction. The coprimality is the trap we deliberately lay; without it the proof is just arithmetic going nowhere.

  • Fake contradiction proofs. If you assume ¬P\neg P, prove PP directly without ever using ¬P\neg P, then yell "contradiction!", you wrote a direct proof in a costume. Use the assumption or drop it.

  • Deriving a contradiction from a logic error, not the assumption. If your "impossibility" came from a bad algebra step, you've proven nothing about PP. The reasoning chain must be valid; only then does the falsehood indict ¬P\neg P.

TL;DR

  • The shape: to prove PP, assume ¬P\neg P, derive an impossibility (a contradiction), conclude PP. Valid because true assumptions never yield falsehoods.

  • √2 is irrational: assume 2=a/b\sqrt2 = a/b in lowest terms; a2=2b2a^2 = 2b^2 forces aa even, then bb even, so they share factor 22 — contradicting lowest terms. (Uses the "n2n^2 even n\Rightarrow n even" lemma.)

  • Infinitely many primes (Euclid): assume a finite list p1,,pkp_1,\dots,p_k; N=p1pk+1N = p_1\cdots p_k + 1 has a prime factor that can't be on the list. Note NN need NOT be prime.

  • Contradiction vs contrapositive: contrapositive proves PQP\to Q via ¬Q¬P\neg Q \to \neg P (no falsehood); contradiction proves any PP via ¬P\neg P \to (false). Contradiction is the more general tool.

  • Don't overuse it: if the assumption ¬P\neg P is never used, you had a direct proof. Reach for contradiction only when negating PP hands you a concrete object to break.