ArticleslgStudy

mathematics

Contraposition

Contraposition is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Contraposition rather than just read about it. In short: In logic and mathematics, contraposition, or transposition, refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as § Proof by contrapositive. The contrapositive of a statement has its antecedent and consequent negated and swapped.

Contraposition — main illustration
Contraposition — illustration

Key takeaways

  • Contraposition belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Contraposition to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Contraposition from memory before moving on to harder problems.

Reference excerpt

In logic and mathematics, contraposition, or transposition, refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as § Proof by contrapositive. The contrapositive of a statement has its antecedent and consequent negated and swapped. 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.

Formal definition A proposition Q is implicated by a proposition P when the following relationship holds: (P→Q) This states that, "if P, then Q", or, "if Socrates is a man, then Socrates is human." In a conditional such as this, P is the antecedent, and Q is the consequent. One statement is the contrapositive of the other only when its antecedent is the negated consequent of the other, and vice versa. Thus a contrapositive generally takes the form of: (¬Q→¬P). That is, "If not-Q, then not-P", or, more clearly, "If Q is not the case, then P is not the case." Using our example, this is rendered as "If Socrates is not human, then Socrates is not a man." This statement is said to be contraposed to the original and is logically equivalent to it. Due to their logical equivalence, stating one effectively states the other; when one is true, the other is also true, and when one is false, the other is also false. Strictly speaking, a contraposition can only exist in two simple conditionals. However, a contraposition may also exist in two complex, universal conditionals, if they are similar. Thus, ∀x(Px→Qx), or "All Ps are Qs," is contraposed to ∀x(¬Qx→¬Px), or "All non-Qs are non-Ps."

Sequent notation The transposition rule may be expressed as a sequent: (P→Q)⊢(¬Q→¬P), where ⊢ is a metalogical symbol meaning that (¬Q→¬P) is a syntactic consequence of (P→Q) in some logical system; or as a rule of inference: P→Q∴¬Q→¬P, where the rule is that wherever an instance of "P→Q" appears on a line of a proof, it can be replaced with "¬Q→¬P"; or as the statement of a truth-functional tautology or theorem of propositional logic. The principle was stated as a theorem of propositional logic by Russell and Whitehead in Principia Mathematica as (P→Q)→(¬Q→¬P), where P and Q are propositions expressed in some formal system.

Proofs

Simple proof by definition of a conditional In first-order logic, the conditional is defined as: A→B↔¬A∨B which can be made equivalent to its contrapositive, as follows: ¬A∨B↔B∨¬A↔¬B→¬A

Simple proof by contradiction Let: (A→B)∧¬B It is given that, if A is true, then B is true, and it is also given that B is not true. We can then show that A must not be true by contradiction. For if A were true, then B would have to also be true (by Modus Ponens). However, it is given that B is not true, so we have a contradiction. Therefore, A is not true (assuming that we are dealing with bivalent statements that are either true or false): (A→B)→(¬B→¬A) We can apply the same process the other way round, starting with the assumptions that: (¬B→¬A)∧A Here, we also know that B is either true or not true. If B is not true, then A is also not true. However, it is given that A is true, so the assumption that B is not true leads to a contradiction, which means that it is not the case that B is not true. Therefore, B must be true: (¬B→¬A)→(A→B) Combining the two proved statements together, we obtain the sought-after logical equivalence between a conditional and its contrapositive: (A→B)≡(¬B→¬A)

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Contraposition

Start with the simplest possible case. Write down what Contraposition claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Contraposition before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Contraposition ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Contraposition

In research
Contraposition appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Contraposition in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Contraposition is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical logic, Theorems in propositional logic, so understanding it makes those chapters shorter.
In everyday life
Look for Contraposition outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Contraposition” →

How to study Contraposition in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Contraposition means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Contraposition out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Contraposition in simple terms?

In logic and mathematics, contraposition, or transposition, refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as § Proof by contrapositive. The contrapositive of a statement has its antecedent and consequ…

Why does Contraposition matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Contraposition?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Contraposition.

Tags

  • Mathematical logic
  • Theorems in propositional logic

Keep exploring