The contrapositive is a legal detour
Back in the Implication lesson we proved, with a truth table, that These are the same statement — identical in every row. That equivalence wasn't a curiosity; it's a proof strategy. Since proving establishes the very same fact as , you're allowed to prove whichever one is easier. That's proof by contrapositive.
The recipe: to prove "if then ," instead assume and derive . When you arrive at , you've proven , which is . Same theorem, different door.
When is the contrapositive door easier? Whenever the negated hypothesis is more concrete than the original. " is even" is awkward as hell to unwrap — it gives you , and you can't easily extract . But its negation in the contrapositive, " is odd," hands you directly, a clean witness you can compute with. The contrapositive trades a hard handle for an easy one. Same fucking result, better door.
Classic: if n² is even then n is even
Claim. For every integer : if is even, then is even.
The direct attempt is mud. Assume is even, so . Now what? To conclude is even you'd need to be an even integer, and square roots are not something our integer definitions handle. Dead end.
The contrapositive is two lines. The contrapositive of "if even then even" is "if is not even then is not even" — i.e., "if is odd then is odd."
Proof (by contrapositive). Assume is odd. Then for some integer . So Since is an integer, has the form , so is odd. This proves the contrapositive, which is logically equivalent to the original. Therefore: if is even, then is even.
Two lines of clean algebra versus an impassable swamp. Remember this lemma — " even even" — because it is the exact tool that detonates the √2 proof in the very next lesson like a small beautiful bomb. We're sharpening the knife now; next lesson we gut the proof with it.
Iff proofs are TWO proofs
Recall from Implication: (" if and only if ") means both and hold. So to prove a biconditional you must prove two implications, full stop. No shortcuts, no "well the other direction is obvious," no implicit bullshit. Two proofs:
- the forward direction (): assume , prove ;
- the backward direction (): assume , prove .
Each is its own little proof, with its own assumption and its own conclusion. Skipping one is not "mostly done" — it's half a theorem, which is worth exactly nothing. The forward direction can be true while the backward is false (that's just "converse original" from the Implication lesson), so proving one tells you nothing about the other. You prove both, or you prove neither.
Claim. For every integer : is even if and only if is even.
Proof. () Assume is even, so . Then , and is an integer, so is even.
() Assume is even. We want even. This is exactly the contrapositive result above — we proved that even forces even. So is even.
Both directions hold, so is even is even.
See how the backward direction reused our contrapositive lemma? That's the point of building tools: you sharpen them in one proof and spend them in the next. Nothing in this lab is wasted.
Choosing your weapon
You now own three direct-style techniques — straight direct proof, and contrapositive — and you'll add contradiction next lesson. Here are the heuristics for when contrapositive beats a head-on direct proof:
- The conclusion is a "non-existence" or "not" statement. Negating it () turns a slippery "there is no…" into a concrete "there is a…" you can grab a witness from.
- The hypothesis is hard to unwrap but is easy. The -even case is the poster child: " odd" is a far better starting handle than " even."
- is "" or "". Often the negation gives you an inequality (or equality) you can manipulate directly.
If the direct proof flows, use it — don't reach for the contrapositive out of goddamn habit; it's a detour, and detours are only smart when the main road is blocked. The skill isn't memorizing which to use; it's trying the direct road, noticing the swamp, and calmly switching doors. Now go pick some locks.