Competition mathematics and problem solving
Proof by contradiction
A proof technique that assumes the opposite of what is claimed and derives a contradiction.
IntuitionAssume the opposite, then watch it collapse
Suppose a detective wants to prove a suspect was at the scene of a crime. Instead of finding direct evidence, the detective says: "Suppose the suspect was not there. Then they could not have left this footprint, which only they could make. But the footprint is right here — contradiction. So the suspect must have been there." This is exactly the shape of proof by contradiction: to prove a statement , assume its opposite , follow the logical consequences faithfully, and show they collide with something already known to be true. Since a false assumption is the only way to reach an impossible conclusion, must be false, so holds.
SchoolThe logical shape of a contradiction proof
Definition: Proof by contradiction
To prove a statement by contradiction, assume (the opposite of ), and derive from it, using only valid logical steps and facts already established, some statement together with its negation . Since is always false, the assumption that led to it must be false, so is true.
Here is the statement we want to prove, and is any statement whose truth and falsity we can both derive from — often is a fact already known to be true (like "") whose negation we accidentally derive. Once is established and is impossible, logic forces itself to be impossible, i.e. holds.
This second line is the concrete assumption used to open the classic proof that is irrational: here and are integers with , and requiring means the fraction is already written in lowest terms. The proof (given in full below) shows this assumption forces both and to be even, contradicting .
| Method | Assumption | Goal |
|---|---|---|
| Direct proof | Derive directly from using known facts | |
| Contradiction | Derive both and from | |
| Infinite descent | A minimal counterexample exists | Construct a strictly smaller counterexample, contradicting minimality |
UndergraduateTwo classical contradiction proofs
is irrational, that is, there are no integers with such that .
Why is it true?
There is no direct algebraic way to show a number is not a ratio of integers, since that would mean checking infinitely many fractions; contradiction sidesteps this by assuming such a fraction exists in lowest terms and mining that single assumption for an impossible parity fact.
Proof
Suppose, for contradiction, that is rational. Then we can write for integers with , and by cancelling common factors we may assume (the fraction is in lowest terms).
Squaring both sides gives , so . This means is even. Since the square of an odd number is odd, itself must be even; write for some integer .
Substituting back, , so , which simplifies to . This means is even, so by the same reasoning must also be even.
But now both and are even, so divides both of them, contradicting the assumption that . This contradiction shows that the original assumption — that can be written as — must be false. Therefore is irrational.
There are infinitely many prime numbers.
Why is it true?
It is impossible to directly list infinitely many primes to verify the claim, so contradiction instead assumes a finite complete list exists and manufactures, from that very list, a number that exposes the list as incomplete.
Proof
Suppose, for contradiction, that there are only finitely many primes, and let be the complete list of all of them.
Consider the number . Since , it must have at least one prime divisor; call it (every integer greater than has a prime factor).
By assumption, is the list of all primes, so must equal for some . In particular, divides the product .
But also divides . If divides both and , then divides their difference: .
No prime number can divide , since every prime is greater than . This is a contradiction. Therefore the original assumption — that there are only finitely many primes — must be false, so there are infinitely many primes.
UndergraduateReal-World Applications and Worked Examples
Proof by contradiction is a working tool far beyond competition math: computer scientists use it to prove impossibility results (no algorithm can solve the halting problem, no comparison sort beats in the worst case), cryptographers rely on it to argue that breaking a scheme would imply solving a problem believed to be hard, and engineers use it to argue safety-critical impossibility claims ("if the pressure exceeded this value, the seal would have failed, but the seal is intact, so the pressure never exceeded it"). Infinite descent, a variant that assumes a minimal counterexample and shrinks it, is especially common in number theory and algorithm-termination arguments. The two examples below show contradiction and infinite descent applied to concrete combinatorics problems.
Example: The deficient chessboard: a contradiction in tiling
An chessboard has its two opposite corner squares removed, leaving squares. Prove that this board cannot be completely covered by dominoes, each covering exactly adjacent squares.
Solution
Suppose, for contradiction, that such a tiling by dominoes exists.
Color the chessboard in the usual alternating black and white pattern, so it has black and white squares. Every domino, since it covers two adjacent squares, always covers exactly one black square and one white square (adjacent squares always have opposite colors).
Therefore, a tiling using dominoes would cover exactly black squares and white squares — squares total, split evenly by color.
However, the two opposite corners of a standard chessboard are always the same color (this is a property of the standard coloring). Removing them removes squares of one color, leaving squares of that color and squares of the other color.
This means the board actually has squares of one color and of the other, which cannot be split into -and- by any tiling. This contradicts the count from Step 3 (exactly of each color), so the assumed tiling cannot exist.
Example: Infinite descent: no nontrivial solution to
Use infinite descent to prove that the equation has no solution in positive integers .
Solution
Suppose, for contradiction, that a positive integer solution exists. Among all positive integer solutions , choose one with as small as possible — this is possible because the positive integers are well-ordered (any nonempty set of positive integers has a smallest element).
From , the right side is even, so is even, and hence itself is even (the square of an odd number is odd). Write for some positive integer .
Substituting, gives , so . By the same reasoning as before, is even, so is even; write .
Substituting again, , so . This means is also a positive integer solution of the same equation , and since , we have .
This contradicts the choice of as the solution with smallest possible , since is a solution with an even smaller second coordinate. This contradiction shows that no positive integer solution to can exist.
Proof by contradiction proves a proposition by assuming and deriving a contradiction of the form:
In the classic proof that is irrational, assuming in lowest terms and squaring gives . What is immediately concluded about ?
In Euclid's proof, assuming primes are all the primes, the number leads to a contradiction because:
For the deficient chessboard with two opposite corners removed, the contradiction in the domino-tiling proof arises because a tiling would need: