2 · Proof techniques
Direct proof, contradiction, contrapositive and induction, with fill-in skeletons.
In one sentence
A proof is an argument that leaves no case uncovered. Four templates cover almost every proof in this course: direct, contradiction, contraposition and induction.
Everyday analogy
- Direct proof = following road signs. Start from what you know and take one justified step at a time until you reach the claim.
- Contradiction = a detective's alibi check. "Suppose the butler did it… then he was in two places at 9 pm. Impossible. So the butler didn't do it."
- Contraposition = proving the reverse, negated. "If it rained, the ground is wet" is the same claim as "if the ground is dry, it didn't rain."
- Induction = dominoes. Show the first domino falls (base case), and that any falling domino knocks over the next (inductive step). Then they all fall.
The four templates
| Technique | To prove | You write |
|---|---|---|
| Direct | Assume . … therefore . | |
| Contradiction | Assume not . … reach something impossible. So . | |
| Contraposition | Assume not . … therefore not . | |
| Induction | for all | Base: . Step: assume , prove . |
| Counterexample | " is false" | Show one case where fails. |
Strong induction
In the step you may assume (all smaller cases), not just . This is useful for recursive algorithms that split into pieces of any smaller size.
Induction as dominoes
Which technique? A decision picture
Contrapositive truth check
| Statement | Form | Same truth as the original? |
|---|---|---|
| If is divisible by 4 then is even | original (true) | |
| If is odd then is not divisible by 4 | ✅ contrapositive: equivalent, also true | |
| If is even then is divisible by 4 | ⚠️ converse: a different claim, and false () |
Common mistakes
- Circular induction: assuming and "showing" it's true.
- Forgetting the base case. The steps alone don't start the dominoes falling.
- Converse ≠ contrapositive. is a different claim from .
- In contradiction, not saying what the contradiction is. Name the two facts that clash.
Mastery check
Solve without hints, then explain your choice of technique
Prove for all : .
Base : ✓. Hypothesis: the sum up to equals . Step: add the next term : ✓ ∎
Your mastery check
Not startedSolve the problem above with no hints, close the page and explain it out loud. Tick each step honestly.
Status
Tick all six steps to unlock “Mastered”.
Which study mode worked for you?
Saved in this browser onlySee all my progress →
References
- Supplementary Notes: Proof techniques (6 pp.): direct proof (p. 1), contradiction and contraposition (p. 2), induction and strong induction (p. 3), worked induction examples incl. a recurrence (pp. 4–6).
- 04 Correctness & Space: Slide 17 (induction for recursive algorithms).
- CLRS 4e Appendix A (induction used on summations) and §4.3 (induction used to verify recurrences).