Proof Techniques
Direct proof chains forward, contradiction assumes the opposite and breaks it, and induction topples an infinite ladder from one anchored rung.
Why Does This Exist?
Every correctness argument in ML answers one question: why should anyone believe this claim holds beyond the examples shown. A convergence proof, a complexity bound, a loop invariant. Each uses one of three shapes, and reaching for the wrong shape wastes hours. Chaining forward when the denial would collapse faster. Checking infinite cases one by one. Hand waving a universal statement that induction would settle in two moves.
Knowing the shapes also means spotting where each silently fails. A direct chain with one weak link. A contradiction that ends in surprise instead of impossibility. An induction with a missing base. This page teaches the three shapes and their contracts. The language of claims and quantifiers underneath lives in sets, logic and proofs. The complexity bounds these techniques certify live in computational complexity for ML.
The one idea you need first
A proof is a finite chain of checkable steps from agreed starting points, axioms and definitions and already proven results, to the conclusion. The technique is the shape of that chain. Forward construction. Opposite assumption demolition. Rung by rung climb. Shape first, details second, because the shape tells you what you owe the reader before you write a symbol.
Think of It Like This
Three ways to certify a ladder holds everyone
You need to certify a tall ladder. Direct proof climbs it, foot on each rung, narrating every safe move from the ground to the top. Contradiction hires a skeptic who insists the top cannot be reached, then shows that insistence forces something absurd, like the skeptic standing on the top rung while denying it exists. Induction checks the first rung holds and checks the rungs are linked, then declares the whole ladder sound without climbing every rung.
Short ladders suit climbing. Claims whose denial explodes suit skeptics. Infinite ladders suit linkage, since nobody can climb them all. Each ladder part maps to a proof part: rungs are cases, linkage is the inductive step, the anchor is the base case.
Where it stops: real ladders still need reinspection after storms, while a correct proof never needs rechecking. Physical certainty wears out. Logical certainty does not.
How It Actually Works
The three shapes, each with its contract:
- Direct. Assume the premises, unfold definitions, apply valid inferences forward, arrive at the conclusion. Best when definitions point at the goal. Standard shape: an even number means for some integer , so the sum of two evens is , visibly even. No detour needed.
- Contradiction. Assume the premises plus the denial of the conclusion, derive something impossible, a statement like or a number both even and odd, and conclude the denial was wrong. Best when the denial is explosive. Classic: is irrational, because writing it as a reduced fraction forces that fraction to be reducible forever, which no finite fraction can be.
- Induction. Prove a base case at , then prove the step: if the claim holds for then it holds for . The two together topple every positive integer like dominoes. Best for claims about all natural numbers, loop correctness, and recurrences. The contract is strict. Base without step proves one case. Step without base proves a chain floating in air. Both halves are mandatory, and the step must genuinely use the hypothesis for .
Worked example
Prove by induction, then evaluate at .
Base at : the left side is and the formula gives . Anchored.
Step: assume . Then . That is exactly the formula with in place of . Linked.
Conclusion: the formula holds for every positive integer. At : .
Independent check by pairing: gives pairs each summing to , and . The small cases march , , , , , each matching . Two routes, one number. The ladder stands.
Watch Out For
Induction with an asserted base case
The step from to is vacuously safe when nothing is ever true. It proves a chain of nothings. The classic joke that all horses are the same color hides its failure in a base case that is announced rather than computed, usually where the step silently needs two overlapping elements and supplies only one.
Symptom: a slick step nobody can fault plus a base waved through in one line. Fix: compute the base by hand, visibly, before admiring the step. If the base needs the step machinery, the argument is circular.
Contradiction that ends in surprise instead of absurdity
Deriving something unexpected, like finding that must be negative, is not a contradiction unless negativity was already ruled out. Many failed attempts end at a weird but possible statement and declare victory, proving nothing.
Symptom: the final line surprises but violates no premise. Fix: name the impossibility in advance. Which axiom or premise does the derived statement break. If the answer is none, the assumption survives and a different technique is needed.
The Quick Version
- Direct proof assumes the premises and chains definitions forward to the goal.
- Contradiction assumes the denial and derives a named impossibility, not a surprise.
- Induction proves a base case plus a genuine to step, covering all integers.
- by induction, confirmed independently by pairs of .
- Partial sums , , , and each equal at through .
- Base without step, or step without base, proves nothing. Both are mandatory.