← Logic for the TMUA

The Contrapositive

What you'll get from this section. A second way to read every implication — by turning it to its "absence" side. You'll see why PQP \Rightarrow Q says exactly the same thing as ¬Q¬P\neg Q \Rightarrow \neg P, where that comes from, and the new family of phrasings it brings with it.

From "necessary" to the contrapositive

Recall from Section 2 one of the ways to say PQP \Rightarrow Q: QQ is necessary for PP. That is, QQ is a requirement of PPPP cannot hold unless QQ holds too.

Now turn that requirement around. If QQ is genuinely required for PP, then without QQ, you cannot have PP. Take away QQ, and PP is impossible. Written out, "no QQ means no PP" is

¬Q¬P.\neg Q \Rightarrow \neg P.

So PQP \Rightarrow Q and ¬Q¬P\neg Q \Rightarrow \neg P are the very same statement, looked at from two sides:

PQis the same as¬Q¬P.P \Rightarrow Q \quad\text{is the same as}\quad \neg Q \Rightarrow \neg P.

This flipped-and-negated form, ¬Q¬P\neg Q \Rightarrow \neg P, is called the contrapositive of PQP \Rightarrow Q. It is not a consequence of the original, nor a near-relative of it — it is the original, reworded.

Seeing it in examples

The contrapositive always sounds just as true as the statement it came from, because it is it.

  • "If it is a dog, then it is a mammal" has contrapositive "if it is not a mammal, then it is not a dog." Clearly the same fact.
  • "If nn is a multiple of 44, then nn is even" has contrapositive "if nn is not even (i.e. nn is odd), then nn is not a multiple of 44." An odd number can't be a multiple of 44 — same fact again.
  • "If it is raining, the ground is wet" has contrapositive "if the ground is not wet, then it is not raining."

There's a clean picture behind this. To say "every dog is a mammal" is to say the dogs all sit inside the mammals. Equivalently, everything outside the mammals must sit outside the dogs — the non-mammals are all non-dogs. One containment, viewed from the inside or from the outside.

The contrapositive family

Here's the useful part. The contrapositive ¬Q¬P\neg Q \Rightarrow \neg P is itself an implication, so every phrasing from Section 2 applies to it — just with ¬Q\neg Q playing the old role of PP, and ¬P\neg P playing the old role of QQ. All of the following therefore say the same thing as PQP \Rightarrow Q:

  • if not QQ, then not PP
  • not QQ only if not PP
  • not QQ is sufficient for not PP
  • not PP is necessary for not QQ
  • not PP is an inevitable consequence of not QQ

Watch them work on a concrete statement. Let PP be "nn is a multiple of 44" and QQ be "nn is even", so ¬P\neg P is "nn is not a multiple of 44" and ¬Q\neg Q is "nn is odd". The family reads:

  • if nn is odd, then nn is not a multiple of 44
  • nn is odd only if nn is not a multiple of 44
  • nn being odd is sufficient for nn not being a multiple of 44
  • nn not being a multiple of 44 is necessary for nn being odd
  • nn not being a multiple of 44 is an inevitable consequence of nn being odd

They get clunky with the double negatives, but every one is true and every one says exactly what "a multiple of 44 is even" says.

Two families, one statement

Put this beside Section 2 and a tidy picture emerges. A single implication PQP \Rightarrow Q can be expressed in two families of phrasings:

  • the forward family (Section 2), keeping the arrow as PQP \Rightarrow Q;
  • the contrapositive family (this section), flipping it to ¬Q¬P\neg Q \Rightarrow \neg P.

Every phrasing in both families is the same statement. Choosing between them is just a matter of which side — the presence of things, or their absence — is easier to reason about for the problem in front of you.

Common mistakes

1. Negate and flip — not one or the other. The contrapositive does both. Do only one and you get a statement that is not equivalent:

  • the converse QPQ \Rightarrow P (flipped, not negated), and

  • the inverse ¬P¬Q\neg P \Rightarrow \neg Q (negated, not flipped).

    "If it is a dog, it is a mammal" is true, but its converse "if it is a mammal, it is a dog" is false (a cat), and its inverse "if it is not a dog, it is not a mammal" is also false (again, a cat). Only the contrapositive "if it is not a mammal, it is not a dog" is guaranteed to match the original.

2. Negating the two parts carelessly. Forming the contrapositive means negating PP and QQ correctly — use the rules from Section 3. The contrapositive of "if x>3x > 3 then …" starts "if x3x \leq 3 …", not "if x<3x < 3 …".

Summary

  • The contrapositive of PQP \Rightarrow Q is ¬Q¬P\neg Q \Rightarrow \neg P, and the two are the same statement.
  • It follows directly from "QQ is necessary for PP": if QQ is required for PP, then no QQ means no PP.
  • Applying Section 2's phrasings to ¬Q¬P\neg Q \Rightarrow \neg P gives a whole second family of equivalent forms (e.g. "not PP is necessary for not QQ").
  • Negate-and-flip gives the equivalent contrapositive; flip-only (the converse) and negate-only (the inverse) do not.

Next: Section 5 — Proof by contradiction.