Today: Proof by Contradiction — the 4-step framework
Pass 1 of proof writing. We add a single, devastating move: "Suppose the conclusion is false." From there, every great irrationality proof, every "infinitely many primes" argument, every $p^2 \text{ even} \Rightarrow p \text{ even}$ collapse follows the same 4-step shape.
📌 What you will learn today
How this lesson is structured
- Phase 0 (Steps 2–3): Prerequisites — the contrapositive law, and what counts as a "contradiction".
- Phase 1 (Steps 4–5): Two visual pictures — the "assume wrong → derive nonsense → therefore right" flowchart, and the four-route map.
- Phase 1.5 (Step 6): Formula handbook — sentence templates plus the four standard contradiction routes.
- Phase 2 (Steps 7–8): Two guided derivations — full $\sqrt{2}$ irrationality proof, and Euclid's infinite primes proof.
- Phase 3 (Steps 9–13): Five worked examples ⭐⭐⭐ → ⭐⭐⭐⭐⭐.
- Phase 4 (Step 14): Four practice problems (P1–P4) with Hint / Answer / Solution.
- Phase 5 (Step 15): AIMO 2018 Q9 — partial-mark target with
gradeProofrubric scoring. - Phase 5.5 (Step 16): Synthesis problem — Pythagorean triples mod 4.
- Steps 17–18: Atomic-skill matrix + 4 micro-validations.
- Steps 19–21: Cheat sheet, ⭐ self-assessment, error book.
- Steps 22–23: Wrap-up + bridge to Part 3 (Geometric Proof Writing).
Prerequisite ① — The contrapositive law
Every "if $P$ then $Q$" statement has a logical twin: "if not-$Q$ then not-$P$". They are equivalent. This is the engine behind contradiction.
The dictionary
- Statement: $P \Rightarrow Q$. ("If it rains, the ground is wet.")
- Contrapositive: $\neg Q \Rightarrow \neg P$. ("If the ground is not wet, it did not rain.")
- Converse (NOT equivalent!): $Q \Rightarrow P$. ("If the ground is wet, it rained." — could be a sprinkler.)
- Negation of $P \Rightarrow Q$: $P$ is true and $Q$ is false. (To disprove an implication, find one such case.)
The contrapositive is logically identical to the original. So proving "if not-$Q$ then not-$P$" is the same as proving "if $P$ then $Q$" — just a different way in.
(A) If $x \le 0$ then $x^2 \le 0$. (B) If $x^2 \le 0$ then $x \le 0$. (C) If $x^2 > 0$ then $x > 0$.
Enter A, B, or C as 1, 2, 3.
Prerequisite ② — What counts as a "contradiction"?
A contradiction is any statement of the form $A \wedge \neg A$ — something you have proved is both true and false simultaneously. In olympiad practice, four routes show up overwhelmingly often.
The four standard contradiction routes
- R1. Integer = non-integer. "We derived that some quantity equals a non-integer fraction $p/q$ with $q \ne \pm 1$, but the same quantity was set to be an integer." (Powers $\sqrt{2}$ proof.)
- R2. $p \mid a$ and $p \nmid a$. "We derived that some prime $p$ divides $a$ from one chain of reasoning, and does not divide $a$ from another." (Powers Euclid's primes proof.)
- R3. Finite vs infinite. "We assumed only finitely many objects exist, then constructed a new one outside the list." (Powers infinitude of primes.)
- R4. Min/max contradiction. "We assumed $n$ is the minimal counterexample, then constructed a smaller one." (Powers Fermat-style descent.)
Pass 1 today focuses on R1, R2, R3. R4 (descent / extremal) is deferred to W15 Pass 2.
Four standard contradiction routes. Today (Pass 1) we drill R1, R2, R3. R4 (extremal / descent) is the deeper Pass 2 technique.
Visual ① — "假定我们错了 → 推出荒唐 → 所以我们是对的"
The whole machinery of contradiction in one flowchart. Memorise the shape — every proof you write today follows it.
The 4-step contradiction framework. Steps 1, 3, 4 are mostly writing: opening line, contradiction line, closing line. Step 2 is where the real maths lives.
Visual ② — Map of the four routes
Once you have assumed the negation, the real question is: which contradiction will you ride to? The four routes are not equally common — and recognising which one fits is half the battle.
From a single assumption, four diverging routes. In Pass 1 we focus on R1 (irrationality), R2 (divisibility), and R3 (Euclid). R4 (descent / minimal-counterexample) is the W15 specialty.
Sentence templates + four contradiction routes
These are the exact sentences you will paste into your proofs today. Memorise them — they are worth marks even when the algebra is incomplete.
The four standard contradiction routes — when to use each
| Route | Trigger words in goal | Negation produces | Ride to |
|---|---|---|---|
| R1 · int = frac | "irrational", "$\sqrt{n}$", "ratio cannot equal..." | $\sqrt{n} = p/q$ in lowest terms | $p, q$ both even ⇒ contradicts lowest-terms |
| R2 · $p \mid a$ and $p \nmid a$ | "divides", "even / odd", "multiple of $k$" | some integer relation | derive both $p \mid x$ and $p \nmid x$ for the same $x$ |
| R3 · finite vs infinite | "infinitely many", "no largest", "unbounded" | "only finitely many: $a_1, \dots, a_N$" | construct $a_{N+1}$ outside the list |
| R4 · min/max (W15) | "smallest counterexample", "descent" | "let $n$ be minimal..." | build a smaller counterexample $n' < n$ |
F5 · Contrapositive transformation (the silent twin)
Derivation ① — $\sqrt{2}$ is irrational (route R1)
The most famous contradiction proof in mathematics. We walk through every line so you can re-execute it from memory.
Goal
Prove that $\sqrt{2}$ is irrational, i.e. cannot be written as $p/q$ with $p, q$ integers.
Step 1 — Assume the contrary
Sentence: "Suppose, for contradiction, that $\sqrt{2}$ is rational. Then we may write $\sqrt{2} = p/q$ where $p, q$ are positive integers with $\gcd(p, q) = 1$ (lowest terms)."
Step 2 — Derive a clean consequence
Step 3 — Hit the contradiction (R1: divisibility clash with assumption)
Both $p$ and $q$ are even. So $2 \mid \gcd(p, q)$. But we assumed $\gcd(p, q) = 1$. Contradiction.
Step 4 — Conclude
Sentence: "The supposition that $\sqrt{2}$ is rational is therefore false. Hence $\sqrt{2}$ is irrational. ∎"
Derivation ② — There are infinitely many primes (Euclid, route R3)
The most elegant contradiction in number theory. Same 4-step shape, this time riding route R3 (finite vs infinite).
Goal
Prove that there are infinitely many prime numbers.
Step 1 — Assume the contrary
Sentence: "Suppose, for contradiction, that there are only finitely many primes, namely $p_1, p_2, \dots, p_N$ (the complete list)."
Step 2 — Derive a clean consequence (the construction)
Step 3 — Hit the contradiction (R2-flavoured: $q \mid M$ and $q \nmid M$)
Step 4 — Conclude
Sentence: "The supposition that the list of primes was finite is therefore false. Hence there are infinitely many primes. ∎"
WE 1 — Prove $\sqrt{3}$ is irrational
⭐⭐⭐ · P2-A1 + P2-A2 · mirror $\sqrt{2}$
Read the structure
Goal of the form "$\sqrt{n}$ is irrational" → route R1, mirror the $\sqrt{2}$ proof. The key lemma changes from "$p^2$ even ⇒ $p$ even" to "$3 \mid p^2 \Rightarrow 3 \mid p$".
Step 1 — Assume
Suppose, for contradiction, that $\sqrt{3} = p/q$ where $p, q$ are positive integers with $\gcd(p, q) = 1$.
Step 2 — Derive
Lemma: If $3 \mid p^2$ then $3 \mid p$. Proof (contrapositive): if $3 \nmid p$ then $p \equiv \pm 1 \pmod 3$, so $p^2 \equiv 1 \pmod 3$, so $3 \nmid p^2$. ✓
Step 3 — Contradict
Both $p$ and $q$ are divisible by $3$. So $3 \mid \gcd(p, q)$. But we assumed $\gcd(p, q) = 1$. Contradiction.
Step 4 — Conclude
Therefore $\sqrt{3}$ is irrational. ∎
Self-check (using gradeProof): Re-write the proof in the box below. Award yourself one mark per keyword the rubric finds (max 5).
suppose, contradiction, assume, derive, contradict, therefore, thus, hence, qed. Score = number of distinct keywords matched (max 5).
WE 2 — Prove no largest prime exists (Euclid full)
⭐⭐⭐⭐ · P2-A2 · Euclid construction
Read the structure
Equivalent to "infinitely many primes". Route R3 (finite vs infinite). Construct a number that forces a prime outside any supposed largest one.
Step 1 — Assume
Suppose, for contradiction, that there is a largest prime $P$. Then the complete list of primes is $p_1 = 2, p_2 = 3, \dots, p_N = P$ (some finite list ending at $P$).
Step 2 — Derive
Step 3 — Contradict
Case A: $q \in \{p_1, \dots, p_N\}$. Then $q \mid \prod p_i$. Also $q \mid M = \prod p_i + 1$. Subtracting, $q \mid 1$. But $q$ is prime, so $q \ge 2$ — impossible. Contradiction.
Case B: $q$ is a prime not in the list. Then $q > P$ (since the list contained every prime up to $P$). So $q$ is a prime larger than $P$ — contradicting "$P$ is the largest prime". Contradiction.
Step 4 — Conclude
Either case gives a contradiction. Hence no largest prime exists; the primes are infinite. ∎
Self-check:
WE 3 — If $p^2$ is even then $p$ is even (contrapositive)
⭐⭐⭐⭐ · P2-A3 · contrapositive
Read the structure
Goal is "$P \Rightarrow Q$" where $P$ = "$p^2$ is even" and $Q$ = "$p$ is even". The direct proof is awkward (we'd have to factor an unknown $p^2$). The contrapositive $\neg Q \Rightarrow \neg P$ becomes: "if $p$ is odd, then $p^2$ is odd" — and this is a one-line algebra exercise.
Switch to the contrapositive
Sentence: "We prove the contrapositive: if $p$ is odd, then $p^2$ is odd."
Direct proof of the contrapositive
Conclude (contrapositive logic)
Since "$p$ odd $\Rightarrow$ $p^2$ odd" is the contrapositive of "$p^2$ even $\Rightarrow$ $p$ even", and the contrapositive is logically equivalent to the original, we have proved: if $p^2$ is even then $p$ is even. ∎
Self-check:
WE 4 — Among 3 consecutive integers, at least one is divisible by 3
⭐⭐⭐⭐ · P2-A1 + pigeonhole · contradiction OR direct
Read the structure
Two valid approaches. Path A (contradiction): assume none is divisible by 3, then derive a contradiction via mod 3. Path B (direct, pigeonhole): the three consecutive residues $n, n+1, n+2$ mod 3 are $\{0, 1, 2\}$ in some order — one of them is $0$.
Path A — Contradiction
Step 1 (Assume): Let $n, n+1, n+2$ be three consecutive integers. Suppose, for contradiction, that none of them is divisible by 3.
Step 2 (Derive): Then $n \not\equiv 0 \pmod 3$, $n+1 \not\equiv 0 \pmod 3$, $n+2 \not\equiv 0 \pmod 3$.
Step 3 (Contradict): In every case, the supposition forces one of the three to be $\equiv 0$, contradicting the supposition.
Step 4 (Conclude): Therefore at least one of $n, n+1, n+2$ is divisible by 3. ∎
Path B — Direct via pigeonhole
The residues $\{n \bmod 3, (n+1) \bmod 3, (n+2) \bmod 3\}$ are three consecutive residues mod 3. They cover all three residue classes $\{0, 1, 2\}$ in some order. Hence exactly one of them is $\equiv 0 \pmod 3$, i.e. divisible by 3. ∎
Self-check (try Path A):
WE 5 — Prove $\sqrt{2} + \sqrt{3}$ is irrational
⭐⭐⭐⭐⭐ · P2-A1 + P2-A2 · combined
Read the structure
This is the queen of irrationality proofs. We assume $\sqrt{2} + \sqrt{3}$ is rational, square to extract $\sqrt{6}$, then derive that $\sqrt{6}$ is rational — contradicting a fact we'll prove (or cite from the $\sqrt{2}$/$\sqrt{3}$ template).
Step 1 — Assume
Suppose, for contradiction, that $\sqrt{2} + \sqrt{3} = r$ for some rational number $r$.
Step 2 — Derive (square it!)
Sub-lemma: $\sqrt{6}$ is irrational
Suppose for contradiction $\sqrt{6} = p/q$ in lowest terms. Squaring: $6q^2 = p^2$. So $2 \mid p^2$, hence $2 \mid p$. Write $p = 2k$: $6q^2 = 4k^2$, so $3q^2 = 2k^2$. Then $2 \mid 3q^2$. Since $\gcd(2, 3) = 1$, $2 \mid q^2$, hence $2 \mid q$. So $2 \mid \gcd(p, q)$, contradicting lowest terms. Hence $\sqrt{6}$ is irrational.
Step 3 — Contradict
We derived "$\sqrt{6}$ is rational" from the supposition. But the sub-lemma says $\sqrt{6}$ is irrational. Contradiction.
Step 4 — Conclude
The supposition that $\sqrt{2} + \sqrt{3}$ is rational is false. Therefore $\sqrt{2} + \sqrt{3}$ is irrational. ∎
Self-check:
Four practice problems
Mix of P2-A1 (4-step framework), P2-A2 (classics), P2-A3 (contrapositive). 8–15 minutes each.
AIMO 2018 Q9 — Even integers as sum of two odd composites
Pass 1 target: write the setup + verify several even integers $\le 38$ are NOT expressible (and several $> 38$ ARE) → bank 2–3 of 5 partial marks. Full proof needs the "add 6" or "add 10" induction trick — we will outline both.
Suggested time: 25–30 minutes. No calculator. Pass 1 target: 2–3 / 5.
Your proof (write here, scored by rubric)
suppose, composite, odd, 38, 40, 42, 44, add 6, induction, therefore, contradict. Score = $\min(\text{distinct matches}, 5)$.
- Keywords: "largest even integer", "NOT the sum", "two positive odd composite numbers".
- Translation: (a) show $38$ has no representation $38 = c_1 + c_2$ with $c_1, c_2$ odd composite; (b) show every even $n \ge 40$ has such a representation.
- Knowns: Odd composites $< 38$: $9, 15, 21, 25, 27, 33, 35$. Smallest odd composite is $9$.
- Equation candidates: For (b), express $n$ as a known small even minus 6, then peel off $6$ as $9 + (-3)$ (no!) — use the additive trick: $n = 6 + (n - 6)$, where $n - 6$ has a known representation with one summand divisible by 3.
- Sanity: $40 = 15 + 25$, $42 = 9 + 33$, $44 = 9 + 35$. Three base cases, then "add 6" propagates.
- Half (a): List all odd composites less than 38: $\{9, 15, 21, 25, 27, 33, 35\}$. Enumerate all pairs whose sum is 38: $9+29$ (29 prime), $15+23$ (23 prime), $21+17$ (17 prime), $25+13$ (prime), $27+11$ (prime), $33+5$ (5 prime), $35+3$ (3 prime). None work. So 38 is NOT a sum.
- Half (b) base cases: $40 = 15 + 25$, $42 = 9 + 33$, $44 = 9 + 35$. Each summand odd composite, and at least one summand is a multiple of $3$.
- Half (b) inductive step: If $n \ge 40$ is even and $n = a + b$ with $a, b$ odd composite and (say) $a$ a multiple of 3, then $n + 6 = (a + 6) + b$. Now $a + 6$ is also an odd multiple of 3 with $a + 6 \ge 9 + 6 = 15$, so $a + 6$ is an odd composite. Hence $n + 6$ has the same property. By induction (with base cases $40, 42, 44$ covering all residues mod 6 among evens), every even $n \ge 40$ is expressible.
- Combine: 38 fails; all $n \ge 40$ succeed. Hence 38 is the largest exception.
- Always write: "The odd composites less than 38 are: 9, 15, 21, 25, 27, 33, 35." (+1 mark)
- Always write: "We check all pairs summing to 38: $9+29, 15+23, 21+17, 25+13, 27+11, 33+5, 35+3$. Each second summand (29, 23, 17, 13, 11, 5, 3) is prime, not composite. So 38 is NOT a sum of two odd composites." (+1 mark)
- Always write: "We verify 40 = 15+25, 42 = 9+33, 44 = 9+35 (each summand odd composite, at least one a multiple of 3)." (+1 mark)
- If time: "By 'adding 6 to a multiple of 3' we propagate to every even integer $\ge 40$." (+1 mark)
- If time: Full inductive write-up with mod-6 case split. (+1 mark, full 5/5)
Full Solution (5 / 5)
Half (a) — 38 is not expressible
The odd composites less than 38 are $\{9, 15, 21, 25, 27, 33, 35\}$. We check each pair $(c, 38 - c)$ where $c$ is in this set:
No two odd composites sum to 38.
Half (b) — every even integer $\ge 40$ is expressible
Base cases (each summand odd composite, at least one is a multiple of 3):
Inductive step. Suppose $n \ge 40$ is even and $n = a + b$ where $a, b$ are odd composite and $a$ is a multiple of 3. Then $a + 6$ is also an odd composite multiple of 3 (odd + even = odd; mult of 3 + mult of 3 = mult of 3; $a + 6 \ge 15 > 3$ ensures composite). So $n + 6 = (a + 6) + b$ has the same property. By induction starting from base cases $40, 42, 44$ (which cover the three even residues mod 6, namely $40 \equiv 4$, $42 \equiv 0$, $44 \equiv 2 \pmod 6$), every even integer $\ge 40$ is expressible.
Combining
From (a), 38 is NOT expressible. From (b), every even integer $\ge 40$ IS expressible. Hence 38 is the largest even integer not expressible as the sum of two positive odd composite numbers. ∎
Source: AIMO 2018, Question 9 (5 marks). Official solution offers two equivalent approaches — adding 6 (multiples of 3) or adding 10 (multiples of 5).
Synthesis — Pythagorean triples mod 4
A combined contradiction + mod-4 analysis. Shows how the 4-step framework lands cleanly on a number-theory parity question.
Read the structure
Goal: "at least one of $a, b$ is even". Negation: "both $a$ and $b$ are odd". So we suppose both are odd and ride to a mod-4 contradiction.
Step 1 — Assume
Suppose, for contradiction, that both $a$ and $b$ are odd.
Step 2 — Derive (mod 4 analysis)
Step 3 — Contradict
What residues can a square take mod 4? If $c$ is even, $c = 2m \Rightarrow c^2 = 4m^2 \equiv 0 \pmod 4$. If $c$ is odd, $c^2 \equiv 1 \pmod 4$ (lemma). So $c^2 \in \{0, 1\} \pmod 4$ — never $2$.
But we derived $c^2 \equiv 2 \pmod 4$. Contradiction.
Step 4 — Conclude
The assumption that both $a$ and $b$ are odd is false. Therefore at least one of $a, b$ is even. ∎
Self-check:
Atomic skill matrix + 4 micro-validations
Three new skills today. Each row gives the trigger, the proof shape, and an estimated mastery time. Below: 4 micro-validations to confirm pattern recognition.
| ID | Skill | Trigger | Proof shape | Time |
|---|---|---|---|---|
P2-A1 |
4-step contradiction framework | Goal phrased "Prove that...", direct attack hard | Assume ¬Q → Derive → Contradict → Conclude | 15 min |
P2-A2 |
Classic templates ($\sqrt{2}$, primes, Euclid) | "Irrational", "infinitely many", "no largest" | Apply standard 4-step skeleton; recognise the family | 20 min |
P2-A3 |
Contrapositive transformation | $P \Rightarrow Q$ where $\neg Q$ is concrete and $\neg P$ is easy | Replace with $\neg Q \Rightarrow \neg P$; prove that directly | 10 min |
Micro-validations
Quick drill — pick the contradiction route
For each goal, decide which route (R1–R4) is the cleanest entry. Spend 30 seconds per row.
| Goal | Route? | Reasoning |
|---|---|---|
| "Prove $\sqrt{7}$ is irrational" | R1 | "Irrational" → assume $= p/q$, derive prime divides both |
| "Prove there are infinitely many primes of the form $4k+3$" | R3 | "Infinitely many" → assume finitely many, build a new one (a Euclid-style construction with a clever sign) |
| "Prove no integer $n$ satisfies $n^2 \equiv 3 \pmod 4$" | R2 | Suppose such $n$ exists; squares mod 4 are only $\{0, 1\}$, contradiction |
| "Prove $\log_2 3$ is irrational" | R1 | Assume $\log_2 3 = p/q$; rewrite as $2^p = 3^q$; left side even, right side odd — contradiction |
| "Prove the equation $x^2 - 3y^2 = -1$ has no integer solutions" | R2 | Mod 3 analysis: $x^2 \equiv -1 \equiv 2 \pmod 3$, but squares mod 3 are $\{0, 1\}$ — contradiction |
| "Prove if $a + b\sqrt{2} = 0$ with $a, b \in \mathbb{Q}$ then $a = b = 0$" | R1 | Suppose $b \ne 0$; then $\sqrt{2} = -a/b$ is rational — contradicts $\sqrt{2}$ irrational |
Part 2 cheat sheet — five cards to live in your head
How confident are you on each atomic skill?
Click stars (1–5). Aim for ≥ 4 on every row before you move to Part 3.
Your Part-2 error book
Every micro-validation, worked-example or AIMO problem you got wrong is logged here. Re-attempt them at the end of the week.
sessionStorage.aimoErrors_W11_P2. They persist across page reloads in the same tab, but clear when the tab closes. Copy them somewhere if you want a permanent record.
Part 2 complete — what you nailed today
What you nailed today
- The 4-step framework: Assume ¬Q → Derive → Contradict → Conclude. Worth marks even when the algebra is incomplete.
- The four standard contradiction routes: R1 int=frac, R2 divisibility clash, R3 finite vs infinite, R4 min/max (deferred).
- Two foundational classics: $\sqrt{2}$ irrational (Step 7) and Euclid's infinitude of primes (Step 8).
- The contrapositive law $(P \Rightarrow Q) \Leftrightarrow (\neg Q \Rightarrow \neg P)$ — and the $p^2$-even-$\Rightarrow$-$p$-even lemma family it powers.
- Five worked examples covering ⭐⭐⭐ → ⭐⭐⭐⭐⭐: $\sqrt{3}$, no-largest-prime, $p^2$ even, three-consecutive divisibility, $\sqrt{2} + \sqrt{3}$.
- AIMO 2018 Q9 — the partial-mark recipe to bank 2-3 / 5 even without a full induction.
- Synthesis: in any Pythagorean triple, at least one of $a, b$ is even — combining contradiction with mod-4 analysis.
Part 2 — sealed in. Onwards to Part 3.
Atomic skills consolidated today (3)
P2-A1— 4-step contradiction framework (15 min mastery).P2-A2— classic templates: $\sqrt{2}$, $\sqrt{3}$, Euclid's primes (20 min).P2-A3— contrapositive transformation (10 min).