Proof by Contrapositive
Suppose you want to prove that every integer whose square is even must itself be even. Trying to reason forward leads to an awkward case analysis. This means assuming is even and unpacking what that means about . But there is a cleaner route: assume is odd and show is odd. This sidestep works for a specific reason. The statement "if is even then is even" is logically equivalent to "if is odd then is odd." The second is far easier to prove directly. This swap is the essence of proof by contrapositive. The technique matters because many implications are structurally hostile to direct attack. The hypothesis gives too little to work with. Meanwhile, the negated conclusion gives a concrete foothold. Proof by contrapositive converts an implication about affirmative properties into one about their negations. It often turns "there exists no obstruction" into "here is a witness." That is exactly the kind of statement direct methods handle well. It is a genuine change of proof strategy, not a stylistic rewrite. The logical content of the implication is preserved exactly. But the psychological and combinatorial difficulty of the proof can change dramatically. The big picture is this: classical logic gives us several statements built from an implication . These include its converse , its inverse , and its contrapositive . Only the contrapositive is logically equivalent to the original. This equivalence is a theorem of propositional logic, provable by a truth table. It licenses replacing the goal "prove " with the goal "prove ." This replacement carries no loss or gain of truth. Recognizing when this replacement helps is a core skill in mathematical proof-writing. It typically helps when the conclusion has a rigid, checkable negation, while the hypothesis is diffuse. This article gives the precise definition of contrapositive equivalence. It proves it rigorously via a truth table and via natural deduction. It works through two asymmetric examples in number theory and analysis. It shows exactly what fails if you (mistakenly) argue from the inverse instead. It closes by placing the technique in its natural family. This family includes Direct Proof and its close relative Proof by Contradiction.
- Proof by contrapositive proves by proving the logically equivalent statement .
- The equivalence is a tautology, verifiable by truth table.
- It is not the same as proving the inverse , which is logically independent of .
- Best used when is a concrete, structured condition and itself is diffuse or existential.
- The technique is a special, purely logical case of the broader strategy behind Proof by Contradiction.
- Key idea: to prove "if then ," it suffices — and is fully equivalent — to prove "if not then not ."
Where this lives today
Proof by contrapositive is a working tool across mathematics whenever a conclusion's negation is more tractable than its hypothesis. In elementary number theory it converts parity and divisibility claims (as in the worked example) into direct computations. In real analysis, many "if convergent/continuous/differentiable then (property)" theorems are proved contrapositively, exactly as in the boundedness example, because definitions like convergence and continuity are naturally forward-usable while their negations ("unbounded," "discontinuous") are not. In topology, proofs that a space is not compact, not connected, or not Hausdorff routinely proceed by assuming the negation of the desired conclusion and deriving a violation of a hypothesis. In computer science and formal verification, contrapositive reasoning underlies the correctness proofs of many algorithms: to show "if the algorithm outputs 'reject' then the input is invalid," one often assumes the input is valid and shows the algorithm outputs 'accept.' In cryptography, security reductions frequently take the contrapositive form: "if an adversary can break the scheme (breaks 's negation), then the adversary can solve a presumed-hard problem (breaks 's negation)" — precisely a contrapositive framing of "if the hard problem is infeasible, the scheme is secure." In statistics and hypothesis testing, the logic of rejecting a null hypothesis when data are "too extreme" mirrors contrapositive reasoning: assuming the null is true (a structured, forward-usable hypothesis) to derive a rare-event conclusion, whose failure supports rejecting the null. Finally, in circuit design and digital logic, De Morgan's laws combined with contraposition let engineers rewrite control conditions into equivalent, more efficient gate structures.
Ask the tutor: Can you show me how a proof by contrapositive turns into a proof by contradiction, step by step, using the same example?
Let and be statements. The contrapositive of the conditional statement is the statement
A proof by contrapositive of consists of: 1. Assuming (the negation of the conclusion) as a hypothesis. 2. Deriving (the negation of the original hypothesis) through a valid chain of inferences. 3. Concluding, by the logical equivalence , that holds. This is distinct from proving the inverse (assume , derive ), which is not logically equivalent to and does not constitute a valid proof of it.
Intuition
Think of as a promise: "whenever 's territory is entered, 's territory is guaranteed." The promise is broken only in one way — being in but not in . Saying "if then " is just describing the same forbidden zone from the opposite corner: being outside forces you outside , which is exactly the statement that the forbidden combination (in , outside ) never occurs. Nothing about the promise has changed; we have only relabeled which corner of the picture we walk through first. Picture the universe of objects split into four regions by membership in and in . The implication forbids exactly the region " true, false." The contrapositive forbids exactly the region " false, true" — the identical region, described by entering through the door instead of the door. The inverse and converse, by contrast, forbid different regions, which is why they carry different, independent truth content.
The contrapositive as a tautology
For any statements and ,
meaning the biconditional is a tautology: it takes the truth value true under every assignment of truth values to and . Consequently, for any statements : a proof that is a valid proof that .
We use the method of truth tables, which is valid because a conditional statement's truth value in classical (two-valued) logic is completely determined by the truth values of its components, and there are only finitely many () assignments to check. Recall the defining truth table for the conditional : it is false exactly when is true and is false, and true in the other three cases. We tabulate all four truth-value assignments to , and compute and side by side.
| T | T | F | F | T | T |
| T | F | F | T | F | F |
| F | T | T | F | T | T |
| F | F | T | T | T | T |
Row 1 (=T, =T): =F, =F. is T (true hypothesis, true conclusion). is F F, which is T since a conditional with a false antecedent is always true. Row 2 (=T, =F): =F, =T. is F (true hypothesis, false conclusion — the only falsifying case for a conditional). is T F, which is F, the only falsifying case for that conditional too. Row 3 (=F, =T): =T, =F. is T (false antecedent). is F T, true since the antecedent is false. Row 4 (=F, =F): =T, =T. is T (false antecedent). is T T, true since both sides are true. In every row, the column for and the column for carry identical truth values. Since these four rows exhaust all possible truth-value assignments to the two propositional variables and , the biconditional is true under every assignment, i.e. it is a tautology. This proves the equivalence. For the consequence: fix any statements (not variables now, but concrete mathematical assertions, each with a definite though possibly unknown truth value). By the tautology just established, whichever of the four truth-value combinations actually holds for , the values of and agree. Hence if we establish is true (by any valid method — direct argument, further contrapositive steps, case analysis, etc.), the equivalence forces to also be true.
∎If a valid proof establishes from the axioms and previously established results, then is also validly established, using no additional assumptions beyond those used to prove .
Immediate from Contrapositive Equivalence: since and are logically equivalent, any proof of one, combined with the equivalence itself (a tautology requiring no extra hypotheses), yields the other via modus ponens applied to the biconditional. No additional axioms about or are needed beyond the tautology, which holds unconditionally in classical propositional logic.
∎An alternative, non-truth-table justification, useful for readers who prefer natural deduction: assume and suppose we have a proof of . To show , argue by cases on whether or holds (law of excluded middle). If holds we are done. If holds, then by the assumed we get , contradicting the assumption ; from a contradiction, follows by ex falso quodlibet. Either way is derived, so . This derivation uses the law of excluded middle and ex falso, both valid in classical logic, confirming the equivalence without an explicit truth table.
Worked examples
Example 1 (Number theory: an asymmetric divisibility claim). Claim. Let be an integer. If is odd, then is even. Here is " is odd" and is " is even." A direct attack assumes odd and must somehow extract parity information about from a cubic expression — awkward. The contrapositive reverses this: assume , namely is odd, and derive , namely is even. Parity of propagates very cleanly through polynomial arithmetic, so this direction is easy. Proof by contrapositive. Suppose is odd, i.e. for some integer . Compute
Actually, let's compute directly and transparently. With :
So
Every term on the right is divisible by , in particular by :
Since is an integer, is even. This is exactly : the negation of " is odd." We have shown , namely " odd even." By Contrapositive Equivalence, this proves : if is odd, then is even. Note the asymmetry deliberately built in: the original hypothesis involves a cubic expression, not a simple parity statement, which is precisely why arguing forward from is unattractive and arguing backward from is natural.
Example 2 (Real analysis: an – style claim). Claim. Let be a sequence of real numbers, and suppose is bounded, meaning there exists with for all . Let be a real number. If it is not the case that , one cannot in general conclude is unbounded — that's false and not our claim. Instead, consider a genuinely useful contrapositive-flavored claim: Claim (correct version). Let be a sequence of real numbers. If is unbounded, then does not converge to any real number . Here is " is unbounded" and is " does not converge to " for an arbitrary fixed real . Equivalently we prove the contrapositive: , i.e., "if then is bounded." This is the natural direction because the definition of convergence hands us a concrete and to work with, while "unbounded" as a hypothesis gives no starting point for producing a limit. Proof by contrapositive. Assume : for some real number . By the definition of convergence, taking , there exists such that for all ,
By the triangle inequality, for all ,
Now let
a well-defined real number since it is the maximum of a finite set of real numbers. For we have by construction (it's one of the finitely many terms in the max), and for we showed . So for every . This means is bounded, which is exactly . We have proven : convergence implies boundedness. By Contrapositive Equivalence, this proves : unboundedness implies non-convergence (to , and since was an arbitrary real number, non-convergence to any real number). This example illustrates the same asymmetry principle: "unbounded" is a purely negative, hard-to-use hypothesis (it says a universally quantified boundedness statement fails, without pointing to any particular structure), whereas "convergent" is richly structured (it hands you an for any ), so proving the contrapositive is far more tractable than a direct assault on the original statement.
The entire validity of proof by contrapositive rests on the specific tautology . If a student instead proves the inverse and mistakes it for a proof of , the argument is invalid, because the inverse is not logically equivalent to the original implication. Here is a concrete instance where is true, its inverse is false, and treating a proof of the inverse as a proof of the original would smuggle in a false conclusion. Let range over integers, and let
The implication , i.e. "if then is even," is true (in fact vacuously easy: is even). Its contrapositive is : "if is odd, then ." This is true — indeed trivially, since is even, so no odd number equals — and correctly proves the original implication via Contrapositive Equivalence. Its inverse is : "if , then is not even." Test : certainly , so the hypothesis holds. But is even, so (i.e. " is not even") is false. Hence the inverse statement is false — it fails at . If someone believed "proving the inverse proves the original," they would have "shown" both that is true (correctly, via the contrapositive) and would be tempted to treat the false inverse as equally valid support — but worse, in a case where only the inverse seemed provable and the original conditional were in fact false, believing the inverse-equals-original fallacy would certify a false theorem. Concretely: consider instead and . Here is true (). The inverse is : "if then " — manifestly false (take ). So a proof attempt that establishes the inverse cannot be substituted for a proof of : in this case the inverse isn't even true, despite the original conditional being true, showing the two statements carry logically independent truth content. Dropping the requirement of using the contrapositive specifically (as opposed to the inverse, converse, or any other transformation of ) breaks the method entirely.
Scope, edge cases & common traps
| Situation | What to do | Why |
|---|---|---|
| is a negative/universal statement (e.g. "is not rational") | Consider contrapositive; becomes affirmative and concrete | Negating a negative often yields a workable positive hypothesis |
| is diffuse or hard to unpack (e.g. "is unbounded," "is not injective") | Consider contrapositive; (e.g. "is bounded," "is injective") is often structurally rich | Positive/definitional hypotheses are easier to use than their negations |
| Student proves inverse instead | Invalid — does not establish | Inverse is logically independent of the original, per truth table rows 2–3 asymmetry |
| where is a disjunction, e.g. | Contrapositive hypothesis becomes (De Morgan) | Negating a disjunction correctly requires De Morgan's laws, easy to misapply |
| Statement is a biconditional | Contrapositive method applies to each directional half separately | A biconditional is two implications; contrapositive attacks one at a time |
The mathematician behind it
Origins · 1 minAristotle and how this was discovered
Aristotle's Prior Analytics systematized valid patterns of inference — syllogisms — and implicitly recognized relationships among a categorical statement and its contrary, converse, and what would later be called its contrapositive. While Aristotle did not use modern propositional notation, his logical square of opposition laid groundwork later formalized by medieval logicians (notably in the Latin scholastic tradition, which coined "contrapositio") and ultimately by 19th- and 20th-century symbolic logicians such as Boole, Frege, and Russell, who gave the truth-functional account used today.
Is proof by contrapositive the same as proof by contradiction?
No, though they are closely related and contrapositive can be seen as a restrained special case of the contradiction strategy. In proof by contrapositive, you assume exactly and derive exactly , then invoke the tautology . In Proof by Contradiction, you typically assume (the hypothesis together with the negated conclusion) and derive any contradiction at all — not necessarily specifically — such as or a violation of some unrelated known fact. Every contrapositive proof can be recast as a contradiction proof (assume and , derive , contradicting ), but not every contradiction proof has the clean contrapositive shape.
Why is proving the inverse not a valid substitute for proving the implication?
Because and its inverse are logically independent — the truth table computed in the main proof shows they can differ (see rows where is false: both are automatically true there, but the real divergence shows up when comparing genuinely distinct statements, as in the counterexample with , , whose inverse fails while the original holds). Logical equivalence, not vague "relatedness," is exactly what licenses substituting one statement's proof for another's; only the contrapositive enjoys that equivalence with the original conditional.
How do I recognize when a proof calls for the contrapositive rather than a direct proof?
Look at the conclusion : if it is negative, existential-in-disguise, or otherwise hard to "build" directly (e.g. "is not equal to," "is unbounded," "has no root," "is not injective"), its negation is often a clean, structured, affirmative statement (e.g. "is equal to," "is bounded," "has a root," "is injective") that hands you concrete objects to manipulate. If looks easier to use as a hypothesis than does, contrapositive is likely the better strategy.
Does proof by contrapositive require classical (two-valued) logic?
Yes, in an essential way. The truth-table proof of the equivalence relies on bivalence (every proposition is exactly true or false) and on the classical truth table for . In intuitionistic logic, which does not assume the law of excluded middle, the implication still implies its contrapositive (this direction survives constructively), but the converse implication — recovering from — is generally not constructively valid. So in intuitionistic settings, contrapositive reasoning is a one-way, weaker tool.
Can proof by contrapositive be applied to statements with quantifiers, like "for all , "?
Yes, directly. To prove , fix an arbitrary (universal generalization) and prove for that fixed using contrapositive: assume , derive . Since was arbitrary, the implication holds for all , and hence so does the universally quantified statement. Care is needed only in correctly negating when itself involves further quantifiers — apply De Morgan's laws for quantifiers (, and dually) precisely.
What is a common mistake when negating the conclusion before starting a contrapositive proof?
The most common mistake is negating incorrectly when has internal logical structure — for instance, forgetting De Morgan's laws when (whose correct negation is , not ), or mishandling quantifiers inside . A second common mistake, addressed at length in the counterexample above, is accidentally proving the inverse by swapping which side gets negated first, which does not prove the original statement at all.
Where does proof by contrapositive fit relative to direct proof and proof by contradiction in a first course?
It sits between them. Direct Proof assumes and derives in one forward pass; contrapositive assumes and derives , which is really a direct proof of a different but equivalent statement, so it uses no extra logical machinery beyond the equivalence itself. Proof by Contradiction is more permissive: it assumes and allows deriving any contradiction, not just . Pedagogically, contrapositive is often introduced as the disciplined middle step before the fuller freedom (and slightly higher risk of circularity) of general contradiction arguments.