Lably
Skip to content

Contraposition

Mathematical logic concept

  • 20 min read
  • 9 chapters

Related on Lably

Through Logic, Mathematics and Inference

Conditional statement P→Q. In formulas: the contrapositive of P→Q is ¬Q→¬P.

If P, Then Q. — If not Q, Then not P. "If it is raining, then I wear my coat." — "If I don't wear my coat, then it isn't raining."

The law of contraposition says that a conditional statement is true if, and only if, its contrapositive is true.

Contraposition (¬Q→¬P) can be compared with three other operations:

Inversion (the inverse), ¬P→¬Q
"If it is not raining, then I don't wear my coat." Unlike the contrapositive, the inverse's truth value is not at all dependent on whether or not the original proposition was true, as evidenced here.
Conversion (the converse), Q→P
"If I wear my coat, then it is raining." The converse is actually the contrapositive of the inverse, and so always has the same truth value as the inverse (which as stated earlier does not always share the same truth value as that of the original proposition).
Negation (the logical complement), ¬(P→Q)
"It is not the case that if it is raining then I wear my coat.", or equivalently, "Sometimes, when it is raining, I don't wear my coat." If the negation is true, then the original proposition (and by extension the contrapositive) is false.

Note that if P→Q is true and one is given that Q is false (i.e., ¬Q), then it can logically be concluded that P must be also false (i.e., ¬P). This is often called the law of contrapositive, or the modus tollens rule of inference.

Intuitive explanation

In the Euler diagram shown, if something is in A, it must be in B as well. So we can interpret "all of A is in B" as:

A→B

It is also clear that anything that is not within B (the blue region) cannot be within A, either. This statement, which can be expressed as: ¬B→¬A is the contrapositive of the above statement. Therefore, one can say that (A→B)↔(¬B→¬A).

In practice, this equivalence can be used to make proving a statement easier. For example, if one wishes to prove that every girl in the United States (A) has brown hair (B), one can either try to directly prove A→B by checking that all girls in the United States do indeed have brown hair, or try to prove ¬B→¬A by checking that all girls without brown hair are indeed all outside the US. In particular, if one were to find at least one girl without brown hair within the US, then one would have disproved ¬B→¬A, and equivalently A→B.

In general, for any statement where A implies B, not B always implies not A. As a result, proving or disproving either one of these statements automatically proves or disproves the other, as they are logically equivalent to each other.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Foundations