Proof by Contradiction
Can a rational number squared ever equal exactly 2? Every attempt to build such a fraction from smaller pieces seems to collapse under its own weight. Turning that collapse into an airtight argument is the heart of proof by contradiction. This technique lets us prove a statement is true by showing that supposing it false leads logic into a wall. Specifically, it derives some proposition and its negation simultaneously. It matters because many of the deepest facts in mathematics have no known direct proof. Examples include the infinitude of primes and the uncountability of the real numbers. These rely only on an indirect proof built on this hinge. The big picture is that classical logic treats "false" as a single failure state. If assuming forces us into an outright contradiction, then cannot be true. This holds in a world where classical logic holds, so must be true. This is a stronger tool than Proof by Contrapositive. Contrapositive only rearranges an implication into . Contradiction can attack a bare standalone statement with no visible implication structure at all. It can also attack existence claims, uniqueness claims, and universal claims uniformly. This article gives the precise logical definition of proof by contradiction. It proves that this is a sound rule of inference under classical logic. It shows exactly where the method's power and its abuse both come from. We separate proof by contradiction from the closely related but logically weaker technique of contrapositive. We are also careful about what "leads to a contradiction" formally means. This ties back to Tautologies and Contradictions. By the end you will be able to state the rule precisely. You will apply it correctly to prove irrationality and infinitude results. You will recognize the single most common structural error. This error is forgetting to negate a quantified statement correctly, tied to Negating Quantified Statements. You will also see how the method opens the door to Existence and Uniqueness Proofs and the Well-Ordering Principle.
- Proof by contradiction proves by assuming and deriving a statement of the form .
- It is justified because is a tautology in classical logic.
- It is strictly more general than Proof by Contrapositive, which only reproves conditionals, not bare statements.
- The single most common error is misnegating a quantified hypothesis, so double-check with Negating Quantified Statements.
- Classic examples: irrationality of , infinitude of primes, nonexistence of a largest natural number.
- Key idea: if denying a claim forces logic to contradict itself, classical logic leaves no room for the denial to be true.
Where this lives today
Proof by contradiction is a workhorse across essentially all of pure mathematics: Cantor's diagonal argument establishing the uncountability of the real numbers is a contradiction proof (assume a bijection exists, construct a real number not in its range); the irrationality of and , the non-existence of a rational number whose square is any non-perfect-square integer, and Gödel's own incompleteness theorems (assuming completeness and deriving a self-referential contradiction) all rely on it. In computer science, many undecidability results (the Halting Problem is undecidable) are contradiction proofs: assume a deciding algorithm exists, construct a diagonal program that contradicts its own claimed output. In cryptography, security proofs frequently argue "if an efficient adversary broke this scheme, we could use it to solve a hard problem (like factoring), contradicting its assumed hardness" — a reduction that is itself a disguised proof by contradiction. In statistics, hypothesis testing is philosophically modeled on the same shape: assume the null hypothesis, show the observed data would be extremely improbable under it, and treat that near-impossibility as grounds to reject the assumption (though this is a probabilistic, not strict logical, contradiction). In physics and engineering, impossibility results — no perpetual motion machine, no signal traveling faster than light in special relativity without violating causality — are argued by assuming the forbidden device or process exists and deriving a violation of a conservation law or an established physical law treated as background axiom.
Ask the tutor: How does combining proof by contradiction with the Well-Ordering Principle produce a "minimal counterexample" argument, and how is that different from ordinary induction?
Let be a statement in a system built on classical (two-valued) logic. A proof of by contradiction is an argument of the following form. 1. Assume (the negation of ) as a hypothesis. 2. From , together with previously established axioms and theorems, derive some statement and also derive its negation , for some statement (chosen by the prover; need not appear in at all). 3. Conclude that the conjunction — a contradiction, i.e. a statement that is a logical falsehood, false under every assignment of truth values to its atomic components — has been derived from . 4. Conclude . The inference from steps 1–3 to step 4 is licensed by the fact that
is a tautology (true under every assignment of truth values), which is proved as the central theorem below. A common special case takes to be itself, giving the pattern "assume , derive ," but is frequently an unrelated auxiliary fact (e.g. "6 is both even and odd").
Intuition
Think of all statements as living in a two-valued world: every proposition is either True or False, with no third option — this is the Law of Excluded Middle baked into classical logic. Proof by contradiction exploits this rigid binary structure like a wall with only two rooms. If you can show that being in the "False" room for (that is, assuming ) forces you into a room that is simultaneously lit and dark — a statement that is both true and false — then the "False" room must not have been accessible after all. Since there are only two rooms, must be in the "True" room. It helps to picture this as a decision tree that terminates in an impossible leaf. You start at the root with the assumption . You walk down branches of valid logical deduction. If every possible path from that root eventually hits a leaf labeled " and ," the entire subtree rooted at is logically poisoned — nothing consistent can grow from it — so the root itself must be pruned as a live possibility, leaving as the only surviving branch.
The picture also explains why the auxiliary statement can be anything: the contradiction does not need to be about directly. It only needs to be a genuine logical impossibility, because the tautology powering the method treats as a free, arbitrary placeholder. This is precisely what makes contradiction more flexible than Proof by Contrapositive, which is locked into rearranging a specific conditional and cannot touch a bare, implication-free claim like " is irrational."
Let and be any statements (propositional variables, or more complex well-formed formulas built from propositional variables). Then the formula
is a tautology: it evaluates to True under every assignment of truth values True/False to the atomic components of and . Consequently, if in a proof system extending classical propositional logic we can derive from the hypothesis (together with any fixed background axioms/theorems that are themselves already established as true), then is a valid consequence of .
We give two proofs: first a direct semantic (truth-table) verification that the displayed formula is a tautology, which is the primary justification; second, a purely syntactic derivation using only the deduction theorem and basic classical inference rules, to show the reasoning is not circular and does not secretly presuppose contradiction itself.
Part 1: Semantic proof. Let and denote the truth values (True , False ) of and respectively; by the semantics of classical propositional logic every statement has exactly one of these two values (this bivalence is the background assumption of "classical logic," distinguishing it from intuitionistic systems). We must check the formula
is for both possible values of , and (where relevant) both values of . Case . Then is true, so the consequent of the outer conditional is true, and a conditional with a true consequent is true regardless of its antecedent. Hence . Case . Then is true. We must evaluate . For any truth value of , exactly one of is true and the other is false, so is false in both subcases ( gives ; gives ). So the inner conditional has a true antecedent () and a false consequent (), hence it is false. A conditional with a false antecedent, itself, is then true, since , and any conditional with a false antecedent is true by the definition of material implication. Both cases give , and since ranges over the only two possible truth values in classical logic and this covers every possible value of as well, is true under every assignment. Hence is a tautology. (for the tautology claim)
Part 2: Syntactic derivation (no circularity check). We re-derive the same fact using only: (i) the deduction theorem — if then , and conversely if then ; (ii) conjunction elimination: from infer and infer separately; (iii) the classical rule of double negation elimination, , which is itself justified purely semantically (if is true then is false, so is true, by bivalence) and does not depend on the present theorem; (iv) ex falso is not needed — we derive directly rather than assuming explosion, to keep the chain minimal. Suppose for some statements (background axioms), . By (ii), and . Consider the assumption together with : we have both and derivable. Now argue semantically that cannot hold simultaneously with being true: if some valuation satisfies , then by soundness of the derivation rules that valuation must also satisfy and satisfy , which is impossible for any single valuation since a valuation assigns exactly one truth value. Hence no valuation satisfies (where is itself true), i.e. . By soundness and completeness of classical propositional logic (that iff — a standing background fact about the logic itself, not part of what we are proving here), . By double negation elimination (iii), . This matches the semantic content of Part 1 and shows the inference " derives a contradiction, hence " rests only on: bivalence of truth values, the definition of , and double-negation elimination — none of which presuppose the proof-by-contradiction rule itself, so the justification is non-circular.
Conclusion. Given background theorems/axioms already established as true, if a derivation shows , then by the above (with ) we get , i.e. is a valid consequence of the background theory. This is exactly the inference pattern used in every proof by contradiction.
∎Let be statements. Any proof of by contrapositive (assume , derive ) can be re-expressed as a proof by contradiction of the statement : assume , which is logically equivalent to (see negation of conditionals); from derive exactly as in the contrapositive argument, obtaining the contradiction .
Recall is logically equivalent to : a conditional is false exactly when its antecedent is true and consequent false, which is precisely the truth condition for ; both formulas take value only in the row and in the other three rows of the truth table, so they are equivalent. A contrapositive proof of is a derivation (from background axioms). Given the assumption , equivalent to , extract by conjunction elimination, run the contrapositive derivation to get , and then conjoin with the extracted to get , a contradiction of the required form with . By the Theorem, this derivation of a contradiction from establishes .
∎Worked examples
Example 1: is irrational. Claim. There is no rational number with . Proof. Suppose, for contradiction, that is rational. Then there exist integers with such that , and we may choose so that (any fraction can be reduced to lowest terms). Squaring both sides gives
Hence is even. If were odd, say , then would be odd, contradicting that is even; so must be even. Write for some integer . Substituting,
So is even, and by the same parity argument is even. But then both and are even, so divides , contradicting . We have derived "" (assumed at the outset, hence still true) and "" (just derived), giving . By the Theorem, our assumption that is rational is false; is irrational. Note the structure: is " is irrational," an atomic statement with no visible conditional to contrapose, which is exactly the setting where contradiction is essential rather than merely convenient.
Example 2: There are infinitely many prime numbers (Euclid). Claim. The set of prime numbers is infinite. Proof. Suppose, for contradiction, that there are only finitely many primes, say exactly of them, listed as with no repeats and (by the assumption of finiteness) this list is exhaustive — every prime equals some . Consider the integer
Since each , we have (checking the smallest possible case ; in general is at least ), so . By the Fundamental Theorem of Arithmetic (every integer greater than has a prime divisor), has some prime divisor . Because the list is exhaustive, for some index . Since divides , and also divides the product (as is one of its factors), divides the difference:
So . But is prime, hence , and no integer divides (the only positive divisor of is itself). This gives "" and "" (since ), a contradiction of the form . By the Theorem, the assumption that the primes are finite in number is false. Hence there are infinitely many primes. Here the contradiction is about an auxiliary object that never appears in the original statement = "there are infinitely many primes," illustrating that is a free choice, not a rephrasing of .
The Theorem's proof used, at the critical step, that every statement is either True or False (bivalence) and that double negation elimination, , holds. Drop this hypothesis and work instead in intuitionistic logic, where a statement's truth requires an explicit constructive proof/witness and is not a valid principle (only holds in general). Consider the statement
A classical proof by contradiction-flavored case analysis goes: consider . Either is rational, in which case we are done directly (witnesses ); or is irrational, in which case set and , so that
which is rational, and is irrational by the case assumption. Either way holds. This argument is classically valid: it uses the Law of Excluded Middle (" is rational, or it is not") as an unproved dichotomy on a proposition with no known decision procedure at the time of the classical argument. In intuitionistic logic this proof is rejected: excluded middle "" is not a theorem for arbitrary , precisely because asserting requires either a proof of or a proof of , and the argument above supplies neither — it only shows that whichever holds, follows, without exhibiting which one actually holds. Consequently is proved classically, but the classical proof gives no explicit pair — an inherently non-constructive output. (It happens is in fact irrational, even transcendental, by the Gelfond–Schneider theorem, so a fully constructive proof does exist using giving — but the classical disjunction-based proof above does not tell you this; it only proves existence abstractly.) This shows precisely what breaks without bivalence/double-negation-elimination: proof by contradiction (and case-split-on-excluded-middle arguments generally) can certify that an object exists while providing no method to construct it, a feature intuitionistic logic refuses to allow as a proof of existence at all.
Scope, edge cases & common traps
| Situation | What to watch for |
|---|---|
| is a universal statement | is , not ; see Negating Quantified Statements |
| is a conditional | is , not "" or "" |
| is an existence claim | is ; contradiction here often shows non-existence, foreshadowing Existence and Uniqueness Proofs |
| Choosing | can be any auxiliary true-and-false pair (e.g. parity facts) — it need not mention |
| Well-founded search arguments | "assume a counterexample exists, take a minimal one, contradict minimality" combines contradiction with the Well-Ordering Principle |
| Constructive contexts | Existence conclusions from contradiction may be non-constructive; see the counterexample above |
The mathematician behind it
Origins · 1 minEuclid of Alexandria and how this was discovered
Euclid compiled the Elements, the axiomatic treatise that shaped mathematical rigor for over two thousand years. Book IX, Proposition 20 gives the proof that primes are infinite in number, using precisely the reductio ad absurdum structure formalized in this article: assume a finite complete list of primes, construct a number causing an impossibility, conclude the list cannot have been complete. Euclid's version, along with the earlier Pythagorean-school proof of the irrationality of , are the two oldest surviving fully rigorous instances of proof by contradiction in mathematics, and both are still taught essentially unchanged today.
Is proof by contradiction the same as proof by contrapositive?
No. Contrapositive proves a conditional by proving instead; it only rearranges a conditional's hypothesis and conclusion, and both proofs stay entirely inside "positive" reasoning with no contradiction ever explicitly derived. Contradiction can prove any statement, including bare non-conditional claims like " is irrational," by assuming the negation and deriving an outright logical impossibility . Every contrapositive proof can be repackaged as a contradiction proof (shown in the Corollary above), but not vice versa — contradiction is the strictly more general tool, while contrapositive is a specialized, often clearer, special case for conditionals.
Do I always need to introduce a totally new auxiliary statement R?
No — very often is just itself, giving the simple pattern "assume , derive ," and the contradiction is directly. This is common in short proofs. But many of the richest proofs (Euclid's primes proof, Cantor diagonalization) instead derive a contradiction about some newly constructed object — a number , a divisor , a diagonal sequence — that has nothing to do with 's original vocabulary. The freedom to pick any convenient is exactly what the soundness theorem licenses, and is often what makes contradiction proofs feel almost miraculous.
Can proof by contradiction be used to prove a proof technique is invalid, i.e. is it self-justifying?
The soundness of the method (shown in the Theorem) is proved using only truth tables and the deduction theorem plus double negation elimination, none of which presuppose "if you assume and reach a contradiction, then " as an unproved axiom; it is derived from more basic semantic facts about classical logic's bivalence. So the justification is not circular. Some individual applications of contradiction can go wrong (misnegating a quantifier, as in the Warning box), but that is an error in executing the method, not evidence against the method's underlying soundness.
Why is proof by contradiction considered "non-constructive," and is that always a problem?
When contradiction is used to prove an existence statement , the classical proof often only shows that assuming "no such exists" is impossible, without ever exhibiting a specific . This is non-constructive: the proof certifies existence without providing a method to find a witness, as illustrated in the counterexample above. It is not always a "problem" — for pure mathematics, existence alone is often all that is needed, and many important theorems (uncountability of , existence of transcendental numbers via a counting argument) are only known via such non-constructive routes. It becomes a genuine limitation in computer science and constructive mathematics, where an algorithm producing the witness is the actual goal.
How does negating a quantified statement correctly interact with contradiction proofs?
Almost every contradiction proof of a universal claim begins "suppose not, so there exists with ," using the rule from Negating Quantified Statements. Symmetrically, negating an existence claim gives . Getting this flip wrong — for instance writing "suppose for all , fails" when the original claim was existential — silently proves a different, usually much stronger, statement than intended, and any contradiction found afterward does not establish the original . This is the single most common structural bug in student-written contradiction proofs.
Is "assume the opposite and reach an absurdity" the same in everyday reasoning as in formal logic?
Informally yes, and this is exactly why the technique is intuitive even to people with no formal logic training — it mirrors ordinary "reductio ad absurdum" argumentation used since antiquity in rhetoric and philosophy. Formally, though, the everyday version is made precise by pinning down exactly what "absurdity" means (a formula of the shape ), exactly what "assume the opposite" means (the syntactically correct negation , respecting quantifier and conditional negation rules), and by grounding the final inference in a proved tautology rather than an appeal to intuition. That precision is what separates a rigorous mathematical proof by contradiction from an informal rhetorical reductio.
When should I prefer contradiction over a direct proof if both are available?
Prefer a direct proof when one is available and reasonably short, since direct proofs tend to be more informative (often yielding explicit constructions) and easier for readers to verify step by step without holding a hypothetical world in mind. Reach for contradiction when the direct route is unclear, when the statement is a pure non-conditional existence-denial (like irrationality claims), or when negating hands you a strong, concrete extra hypothesis (such as "assume is in lowest terms") that is awkward to obtain directly. Many textbook theorems, including the two worked examples above, are difficult or unknown to prove any other way.