Create your own
Lesson illustration

Proving Implications by Contraposition

Hello. In the previous lesson, you practiced direct proof: assume the hypothesis, unpack definitions, and build the conclusion. For instance, from an odd integer , you derived that is odd.

Sometimes, however, the hypothesis gives an awkward starting point. This lesson introduces a logically equivalent route: rather than proving directly, prove that failure of forces failure of . By the end, you should be able to write a complete proof by contraposition and recognize when this method is strategically useful.


The contrapositive: reverse and negate

Given an implication

its contrapositive is

To form it, do two things:

  1. Reverse the order of the statements.
  2. Negate both statements.

The key fact is that an implication and its contrapositive always have the same truth value.

TrueTrueTrueTrue
TrueFalseFalseFalse
FalseTrueTrueTrue
FalseFalseTrueTrue

Both implications fail in precisely the same situation: is true while is false. Thus, once you prove the contrapositive, you have proved the original statement.

This is not a trick or a weaker substitute for a direct proof. It is a proof of a genuinely equivalent statement.

Consider the claim:

Let

and

The contrapositive is:

Since every integer is either even or odd, but not both, this becomes the much more useful statement

That is exactly the result proved directly in the previous lesson. Therefore, the original claim follows.

Notice why the direct route is unattractive. Starting with

does not naturally produce an expression of the form . Taking square roots does not help: it introduces , which has no obvious connection to the definition of evenness. The contrapositive instead begins with the usable form

The method changes the direction of reasoning to one where the definitions cooperate.

Discrete Math - 1.7.2 Proof by Contraposition

Watch “Discrete Math - 1.7.2 Proof by Contraposition” from SawFin Mathematics for a compact visual introduction to the logical move and a fully worked parity proof.

Watch the method to connect an implication with its contrapositive. Then watch the example, paying attention to the distinction between the original hypothesis and the assumption actually made in a contrapositive proof.


The proof structure

For a universally quantified statement,

a proof by contraposition has this structure:

Proof. We prove the contrapositive. Let be arbitrary in . Assume .
[Use definitions, hypotheses, and prior results to derive .]
Therefore . Hence .

The middle of the proof is still a direct proof. You assume the antecedent of the contrapositive and derive its consequent. What makes the overall method indirect is that the statement being directly proved is the contrapositive rather than the theorem as initially stated.

A useful planning table is:

Original implicationContrapositive proof
Assume Assume
Prove Prove
May be algebraically awkwardMay reveal a useful definition or factorization

Before writing any calculations, state the contrapositive in complete words. This prevents a very common error: reversing an implication but forgetting to negate it.

For example, the contrapositive of

would be

That statement happens to be false, since is not odd but is divisible by . The original implication is consequently false too. Contraposition preserves truth, so it also preserves falsity.


Example: if a square is even, the integer is even

Let us write the earlier idea as a complete proof.

Claim. For every integer , if is even, then is even.

Proof. We prove the contrapositive. Let be an arbitrary integer, and suppose that is not even. Since every integer is either even or odd, is odd. Therefore, for some integer ,

Then

Since is an integer, is odd. Hence is not even.

We have proved that if is not even, then is not even. This is the contrapositive of the original implication. Therefore, if is even, then is even.

The proof relies on three precise facts:

  • The negation of “ is even,” for an integer , is “ is odd.”
  • The previous direct proof established that the square of an odd integer is odd.
  • The contrapositive is logically equivalent to the original implication.

You may sometimes shorten the final two sentences by writing “Thus is not even, proving the contrapositive.” In early proof writing, though, it is worth explicitly naming the logical equivalence until the structure becomes automatic.

3.2 Proofs

Read the “Proof by Contrapositive” subsection in 3.2 Proofs. It develops the same logical structure and shows why the parity example is much easier after rewriting the theorem.

In the subsection “Proof by Contrapositive,” begin with the central principle. Then read Examples 3.2.4 and 3.2.5 in full. In Example 3.2.4, focus on the moment the statement about an even square is replaced by the odd-square claim. In Example 3.2.5, track the use of De Morgan’s law when negating “a is odd or b is odd.”


Negating compound conclusions

Contraposition becomes especially valuable when the conclusion contains “and” or “or.” You must negate such conclusions carefully.

The two De Morgan laws are:

In words:

  • “Not or ” means “not and not .”
  • “Not and ” means “not or not .”

Consider the theorem:

A direct proof begins with information about the sum , but the conclusion asks for information about the separate integers and . That separation is inconvenient.

Set

and

The contrapositive has the form

Now simplify each negation. The negation of “ is odd or is odd” is

Because and are integers, that means both are even. Similarly, “ is not odd” means that is even. Thus the useful contrapositive is:

This is now a natural direct proof.

Proof. We prove the contrapositive. Let and be arbitrary integers, and suppose that both and are even. Then there exist integers and such that

and

Therefore,

Since , the integer is even. We have proved the contrapositive. Hence, if is odd, then is odd or is odd.

The original conclusion uses an inclusive “or”: at least one of and is odd. It does not claim that exactly one is odd, although the latter is also true when their sum is odd.


Choosing contraposition and avoiding logical look-alikes

Contraposition is particularly promising when the negation of the conclusion gives a concrete, usable form. In elementary number theory, common signals include:

  • The conclusion says an integer is even; its negation may let you write it as .
  • The conclusion says a number is odd; its negation may let you write it as .
  • The conclusion is an “or” statement; its negation gives an “and” statement, which may supply two usable assumptions.
  • The conclusion is a divisibility statement, and its failure can be interpreted through remainders or prime factors.

It is less useful to apply contraposition mechanically. First ask whether offers better raw material than .

Three ideas that are often confused should remain distinct:

NameStarting assumptionTargetRelation to
Direct proofProves the original implication
Contrapositive proofProves an equivalent implication
ConverseA different statement; may be false

For example, from

the contrapositive is

The converse, by contrast, is

The converse is true, and it has a simple direct proof, but it is not the reason the original theorem is true. A theorem and its converse must always be assessed independently.

One further distinction will matter in the next lesson. In contraposition, you assume only and aim to prove . You do not also assume . Assuming both and and deriving an impossibility is a proof by contradiction, a related but differently organized method.


A concise writing checklist

When you use contraposition, audit your proof in this order:

  1. Identify the original and .
  2. Write before beginning calculations.
  3. Simplify negations correctly, using parity facts or De Morgan’s laws where appropriate.
  4. Keep the same domain. If the theorem concerns integers, your parity simplifications depend on that fact.
  5. Prove the contrapositive directly from its assumed antecedent.
  6. State the final logical step: the original statement holds because it is equivalent to its contrapositive.

A proof by contraposition should still read forward. Its special feature is not mysterious backward reasoning; it is the deliberate choice of a more workable, logically equivalent starting point.


Key takeaways

To prove

by contraposition, prove instead

This works because the two implications have exactly the same truth value. The method is especially effective when the negation of the conclusion has a clean algebraic or definitional description.

In the parity examples:

is proved by showing

and

is proved by showing

Next, you will study proof by contradiction. It also uses negation, but instead of proving a contrapositive directly, it assumes a statement fails and derives an impossibility.

Can't find a good explanation? Sign up and we'll make it for you

Sign up