Math 2.0

Mathematical logic and foundations Proof

Proof that an implication is equivalent to its contrapositive by a truth table

Builds on PropositionNegationImplicationLogical equivalenceTruth table

Proof

We compare the truth tables of p→qp \to q and ¬q→¬p\neg q \to \neg p.

  1. Let pp and qq be propositions. In classical logic, each of them is true or false, so there are four rows: TT, TF, FT and FF.
  2. By the definition of implication, p→qp \to q is false exactly when pp is true and qq is false, that is, only in the row TF.
  3. Again by the definition of implication, ¬q→¬p\neg q \to \neg p is false exactly when ¬q\neg q is true and ¬p\neg p is false.
  4. By the definition of negation, ¬q\neg q is true exactly when qq is false, and ¬p\neg p is false exactly when pp is true.
  5. By steps 3 and 4, ¬q→¬p\neg q \to \neg p is false exactly when pp is true and qq is false, that is, only in the row TF.
  6. The table is this.
pp qq ¬q\neg q ¬p\neg p p→qp \to q ¬q→¬p\neg q \to \neg p
T T F F T T
T F T F F F
F T F T T T
F F T T T T
  1. By steps 2 and 5, the two implications have the same truth value in each row. So they are logically equivalent: p→q≡¬q→¬pp \to q \equiv \neg q \to \neg p.

Idea

An implication fails in only one situation: a true hypothesis with a false conclusion. For ¬q→¬p\neg q \to \neg p this situation is "qq false and pp true". This is the very same situation in which p→qp \to q fails.

Reading path

To understand this page from the ground up, read these 11 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Proposition concept
  2. Conjunction definition
  3. Disjunction definition
  4. Implication definition
  5. Negation definition
  6. Biconditional definition
  7. Truth table concept
  8. Propositional logic concept
  9. Tautology definition
  10. Logical equivalence definition
  11. Proof that an implication is equivalent to its contrapositive by a truth table proof

Where this leads

2 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Contraposition, Proof by contrapositive
About this page
TagSWH5EJP8PS
URIm2://SWH5EJP8PS
Kindproof
WritingW0 stub
MSC03B05
ProvesContrapositive
UsesProposition, Negation, Implication, Logical equivalence, Truth table
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.