The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Proof by Contradiction and Contrapositive - Lecture 10 (Discrete Math)

Overview

This lecture introduces two new proof techniques to add to the direct proof you have used so far: proof by contrapositive and proof by contradiction. Both are built on logical equivalences you can verify with a truth table, and both give you an alternative route when a direct proof gets stuck. Proof by contrapositive proves α⇒β\alpha \Rightarrow \beta by instead proving ¬β⇒¬α\lnot\beta \Rightarrow \lnot\alpha, while proof by contradiction proves α⇒β\alpha \Rightarrow \beta by assuming α\alpha and ¬β\lnot\beta together and deriving an impossible statement. These are not single-section tricks — they recur throughout this course and in every advanced math course beyond it, so it is worth getting comfortable with the logic now.

Key Concepts

Direct proof (review). To prove an implication α⇒β\alpha \Rightarrow \beta directly, you assume the antecedent α\alpha and show that the consequent β\beta must follow. This is the structure you have used up to now.

Proof by contrapositive. Instead of proving α⇒β\alpha \Rightarrow \beta, you prove its contrapositive ¬β⇒¬α\lnot\beta \Rightarrow \lnot\alpha. These two statements are logically equivalent:

Proof by contradiction. To prove β\beta (under hypothesis α\alpha), assume α\alpha together with ¬β\lnot\beta and show this leads to a contradiction — a statement that is always false. Since α∧¬β\alpha \land \lnot\beta is impossible, α⇒β\alpha \Rightarrow \beta must hold:

Truth-table confirmation. Both equivalences can be checked column-by-column:

α⇒β  ≡  ¬β⇒¬αα⇒β  ≡  (α∧¬β)⇒F\begin{aligned} &\alpha \Rightarrow \beta \;\equiv\; \lnot\beta \Rightarrow \lnot\alpha \\ &\alpha \Rightarrow \beta \;\equiv\; (\alpha \land \lnot\beta) \Rightarrow \text{F} \end{aligned}

Supporting definitions used in the examples.

Choosing a style. You are never forced to use a particular proof style — pick whichever makes the reasoning easiest. Proof by contradiction is frequently the most natural choice. Other styles exist too (e.g. induction, the pumping lemma, pigeonhole), but contrapositive and contradiction are ubiquitous.

Worked Example

Claim: If x∈Zx \in \mathbb{Z}, then xx is not both even and odd. (Proof by contradiction.)

Here α\alpha is "x∈Zx \in \mathbb{Z}" and β\beta is "xx is not both even and odd." Assume by way of contradiction α∧¬β\alpha \land \lnot\beta: that xx is an integer and xx is both even and odd. By the definitions of even and odd there exist integers a,ba, b with x=2ax = 2a and x=2b+1x = 2b + 1. Setting the two expressions equal and solving:

2a=2b+12a−2b=1a−b=12\begin{aligned} 2a &= 2b + 1 \\ 2a - 2b &= 1 \\ a - b &= \tfrac{1}{2} \end{aligned}

But a−ba - b is a difference of integers, so a−b∈Za - b \in \mathbb{Z}, while 12∉Z\tfrac{1}{2} \notin \mathbb{Z}. So a−ba - b is simultaneously an integer and not an integer — a contradiction (⇒ ⁣⇐)(\Rightarrow\!\Leftarrow). Therefore xx cannot be both even and odd. ■\blacksquare

Second example (proof by contrapositive). Let RR be an equivalence relation on AA and let a,b∈Aa, b \in A. Claim: if aR̸ba \not\mathrel{R} b then [a]∩[b]=∅[a] \cap [b] = \varnothing. Rather than unraveling "aa is not related to bb," prove the contrapositive: assume ¬β\lnot\beta, i.e. [a]∩[b]≠∅[a] \cap [b] \neq \varnothing. Then there exists x∈[a]∩[b]x \in [a] \cap [b], so xRax \mathrel{R} a and xRbx \mathrel{R} b. By symmetry, xRax \mathrel{R} a gives aRxa \mathrel{R} x; combining aRxa \mathrel{R} x and xRbx \mathrel{R} b by transitivity gives aRba \mathrel{R} b — which is ¬α\lnot\alpha. Having shown ¬β⇒¬α\lnot\beta \Rightarrow \lnot\alpha, the original statement α⇒β\alpha \Rightarrow \beta holds. ■\blacksquare

Summary