Proof by contrapositive


A proof by contrapositive is an indirect proof that proves a theorem is true by showing that the negation of its conclusion implies the negation of its hypotheses. Proving the contrapositive \(\lnot q \rightarrow \lnot p\) of a conditional statement \(p \rightarrow q\) is the same as proving the conditional statement itself, because they are logically equivalent.

This kind of proof is preferred over a direct proof when the negation of the conclusion is a much simpler assumption than the hypotheses. When I say "much simpler," I mean that assuming the negation of the conclusion should provide you with either a less complicated expression to work with, or an expression to work with in the first place.

Proofs by contrapositive especially shine when dealing with irrational numbers. The statement "\(r\) is irrational" does not give you a clear expression to work with, but its negation allows you to use the definition of a rational number.

To negate the hypotheses and conclusion, you'll probably need to use De Morgan's laws.

⚠ Proofs by contrapositive can only be used on theorems that are conditional statements of the form "if ... then ..." Proofs by contradiction do not have this limitation. Really, a proof by contrapositive is a proof by contradiction where the contradiction is between the hypotheses and the negation of the hypotheses.
Contents

With multiple hypotheses


If you want to use a proof by contrapositive to prove a theorem that has multiple hypotheses, you need to show that the negation of one of the hypotheses results from assuming the other hypotheses (not their negations!) and the negation of the conclusion. Since this can quickly get complicated, it is best to write out exactly what you are assuming and what you are trying to prove.

In a direct proof with multiple hypotheses, you assume the hypotheses \(h_1 ... h_n\) and show the conclusion \(c\):

\((h_1 \land ... \land h_n) \rightarrow c\)

In a proof by contrapositive, you assume the negation of the conclusion and show the negation of the hypotheses:

\(\lnot c \rightarrow \lnot (h_1 \land ... \land h_n)\)

By De Morgan's law:

\(\lnot c \rightarrow (\lnot h_1 \lor ... \lor \lnot h_n)\)

As you can see, proving the contrapositive with multiple hypotheses means showing that the negation of the conclusion implies that at least one of the negated hypotheses are true. (Remember that just one proposition in a disjunction has to be true for the whole disjunction to be true!) In other words, you are allowed to assume all but one hypothesis is true. This statement then becomes:

\((\lnot c \land (h_2 \land ... \land h_n)) \rightarrow \lnot h_1\)

In this statement, \(h_1\) is the hypothesis you have chosen to prove the negation of. It could be any of the hypotheses. Just make sure you assume the rest are true.

Logic & Proofs
IntegerRational numberInequalityReal numberTheoremProofStatementProof by exhaustionUniversal generalizationCounterexampleExistence proofExistential instantiationAxiomLogicTruthPropositionCompound propositionLogical operationLogical equivalenceTautologyContradictionLogic lawPredicateDomainQuantifierArgumentRule of inferenceLogical proofDirect proofProof by contrapositiveIrrational numberProof by contradictionProof by casesSummationDisjunctive normal form
Set Theory
SetElementEmpty setUniversal setSubsetPower setCartesian productStringBinary stringEmpty stringSet operationSet identitySet proof
Functions
FunctionFloor functionCeiling functionInverse function
Algorithms
AlgorithmPseudocodeCommandAsymptotic notationTime complexityAtomic operationBrute-force algorithm
Relations
RelationReflexive relationSymmetric relationTransitive relationRelation compositionEquivalence relationEquivalence class
Number Theory
Integer divisionLinear combinationDivision algorithmModular arithmeticPrime factorizationGreatest common divisorLeast common multiplePrimality testFactoring algorithmEuclid's theoremPrime number theoremEuclidean algorithm
Induction
Proof by inductionFibonacci sequenceProof by strong inductionWell-ordering principleSequenceFactorialRecursive definition
Combinatorics
Rule of productRule of sumBijection rulePermutationCombinationComplement ruleExperimentOutcomeSample spaceEventProbabilityProbability distributionUniform distributionMultisetSixfold wayInclusion-exclusion principlePigeonhole principle
Graph Theory
GraphWalkSubgraphRegular graphComplete graphEmpty graphCycle graphHypercube graphBipartite graphComponentEulerian circuitEulerian trailHamiltonian cycleHamiltonian pathTreeHuffman treeSubstringForestPath graphStarSpanning treeWeighted graphMinimum spanning treeGreedy algorithmPrim's algorithm
Recursion
RecursionRecursive algorithmCorrectness proofDivide-and-conquer algorithmSorting algorithmMerge sort