edubun
English

Conditionals and the contrapositive

“If it rains, the match is cancelled” can be broken in only one way: it rains and the match goes ahead.

The everyday sentences in this unit (ads, headlines, messages) are made up for teaching. They do not quote any real company, newspaper or person.

If p, then q

A conditional joins two statements with if ... then. In p → q, read “if p, then q”, the part after if is the antecedent and the part after then is the consequent. Think of a conditional as a promise. A parent says, “If you score 90 on the test, I will buy you a bicycle.” When has the parent broken the promise? Only when the child scores 90 and no bicycle arrives. If the child scores 90 and gets the bicycle, the promise was kept. If the child scores 80, the promise said nothing about that case, so whether a bicycle turns up or not, nobody can say the parent lied.

That gives the truth table of the conditional used in logic, often called the material conditional: p → q is false in exactly one row, where p is true and q is false, and true in the other three. The two rows with a false antecedent feel odd at first. “If the Moon is made of cheese, then 2 + 2 = 4” comes out true. Logic accepts this because the sentence is never caught out: there is no situation where its antecedent holds and its consequent fails. Everyday “if” sometimes carries more, such as a cause or a link in meaning, but the material conditional keeps only the part that can be checked.

The conditional is false only in the outlined row: p true, q false.

Converse, inverse and contrapositive

From one conditional you can build three relatives. Start with “If an animal is a whale, then it is a mammal” (p → q). The converse swaps the parts: “If an animal is a mammal, then it is a whale” (q → p). The inverse negates both parts: “If an animal is not a whale, then it is not a mammal” (¬p → ¬q). The contrapositive swaps and negates: “If an animal is not a mammal, then it is not a whale” (¬q → ¬p).

Only the contrapositive is guaranteed to have the same truth value as the original. The original is true, and so is its contrapositive: anything that is not a mammal cannot be a whale. The converse and the inverse are both false, because a dog is a mammal and not a whale. Notice also that the converse and the inverse are contrapositives of each other, so they always agree with each other. When you need to prove p → q and a direct proof is awkward, proving ¬q → ¬p instead is a standard move in mathematics.

Top left: the original. Arrow 1 swaps the parts (converse, top right). Arrow 2 negates both (inverse, bottom left). Doing both gives the contrapositive (bottom right). The orange dashed line joins the pair that always agree; the grey line joins the converse and the inverse, which also always agree with each other.

Only if, unless, necessary and sufficient

English hides conditionals in other words. forall x points out that “p only if q” is symbolised as p → q, not q → p. “You may board only if you have a ticket” says that boarding requires a ticket: board → ticket. It does not promise that a ticket gets you on the plane. In the conditional p → q, p is called a sufficient condition for q, and q a necessary condition for p. Having a ticket is necessary for boarding; it is not sufficient, because you also need a passport and a seat. “q if and only if p” claims both directions and is written p ↔ q, the biconditional.

BackgroundIn 1966 the psychologist Peter Wason showed people four cards, E, K, 4 and 7, and told them each card had a letter on one side and a number on the other. The rule to test was “If a card has a vowel on one side, then it has an even number on the other.” Most people turned over E alone, or E and 4. The right answer is E and 7: the 7 card would break the rule if a vowel were on its back, while the 4 card cannot break it whatever is behind it. Wason read the result as a sign that people look for cases that confirm a rule rather than cases that could prove it false. When the same structure was dressed up as a familiar social rule, far more people solved it.

A conditional and its contrapositive always have the same truth value. The converse and the inverse do not follow from it.

  1. In “If the alarm rings, I wake up”, the antecedent is
    • the alarm rings
    • I wake up
  2. When is p → q false?
    • p true, q true
    • p true, q false
    • p false, q true
    • p false, q false
  3. p is false and q is false. Is p → q true?
    • True
    • False
  4. What is the contrapositive of “If it is a square, then it has four sides”?
    • If it has four sides, it is a square.
    • If it is not a square, it does not have four sides.
    • If it does not have four sides, it is not a square.
  5. The converse of the same sentence is
    • If it has four sides, it is a square.
    • If it does not have four sides, it is not a square.
    • It is a square and has four sides.
  6. If p → q is true, its converse q → p must be true.
    • True
    • False
  7. “You can vote only if you are registered.” In symbols (V: you can vote, R: you are registered)
    • V → R
    • R → V
    • V ∧ R
  8. Having a ticket is ___ for boarding a train, if you cannot board without one.
    • a necessary condition
    • a sufficient condition
  9. Wason’s cards show E, K, 4, 7. Rule: if a vowel on one side, then an even number on the other. Which must you turn over?
    • E and 4
    • E and 7
    • E only
    • all four
  10. The converse and the inverse of a conditional always have the same truth value as each other.
    • True
    • False
  11. Out of the four rows of p and q, in how many is p → q true?
Key points
  • p → q is false only when p is true and q is false.
  • Converse q → p and inverse ¬p → ¬q do not follow.
  • Contrapositive ¬q → ¬p always matches the original.
  • “p only if q” is p → q; q is necessary for p, p is sufficient for q.
Sources for this course (9)
  • P. D. Magnus, Tim Button, Aaron Thomas-Bolduc, Richard Zach, forall x: Calgary , chapters 1 to 6 on sentences, arguments, validity, soundness, connectives and truth tables (forallx.openlogicproject.org/html/)
  • Stanford Encyclopedia of Philosophy, Robin Smith, "Aristotle's Logic" (plato.stanford.edu/entries/aristotle-logic/)
  • definition of deduction from Prior Analytics I.2 24b18-20, the three figures and the medieval names Barbara and Celarent
  • Aristotle, On Interpretation 17a, E. M. Edghill translation (classics.mit.edu/Aristotle/interpretation.1.1.html)
  • "a prayer is a sentence, but is neither true nor false"
  • Irving H. Anellis, "Peirce's Truth-functional Analysis and the Origin of Truth Tables" (arxiv.org/abs/1108.2429): Peirce manuscript of 1893, Shosky's 1997 find on a 1912 Russell typescript
  • Emil Post, "Introduction to a general theory of elementary propositions", American Journal of Mathematics 43 (1921)
  • Wittgenstein, Tractatus Logico-Philosophicus (1921, English 1922)
  • 4.31. Everyday example sentences are made up for teaching.

Checked: 2026-10-17