Chapter 13 ▶ Proof by cases

Our third method of proof is called proof by cases. Proving something by cases is very similar to proving something by exhaustion.

13.1 Steps

The steps in a proof by cases are similar to those in a proof by exhaustion:

  1. Perform a partition of \(P\) into cases.
    Note that a partition of \(P\) into “cases” is similar to the list of possibilities you create for a proof by exhaustion, except that cases are generally more broad (usually containing multiple elements) than each single possibility in a proof by exhaustion.

  2. Show that the conjecture is true for each of the cases on your list.
    In a proof by exhaustion, you had to show that the conjecture was true for each possibility, which usually required testing just a single number. Similarly for a proof by cases, you need to show that \(P \rightarrow Q\) for each case, but as cases generally contain more elements, something like a direct proof will be needed for each case.

Here are some examples of how you might split up a proof into cases (Step 1), depending on what type of number the conjecture concerns:

Family Possible cases
\(a \in \mathbb Z\) Case 1: \(a\) is even
Case 2: \(a\) is odd

Case 1: \(a = 3k\)
Case 2: \(a = 3k + 1\)
Case 3: \(a = 3k + 2\)
with \(k \in \mathbb Z\)
In other words, every integer is either a multiple of \(3\), one more than a multiple of \(3\), or two more than a multiple of \(3\).

Case 1: \(a\) is positive
Case 2: \(a\) is negative
Case 3: \(a\) = 0
\(a \in \mathbb R\) Case 1: \(a\) is rational
Case 2: \(a\) is irrational

Case 1: \(|a| > 1\)
Case 2: \(|a| \leq 1\)

Case 1: \(a\) is positive
Case 2: \(a\) is negative
Case 3: \(a\) = 0
Pairs of numbers \(a, b\) Case 1: both \(a, b > 0\)
Case 2: both \(a, b < 0\)
Case 3: \(a > 0\) and \(b < 0\) (w.l.o.g.37)
Case 4: at least one of \(a\) and \(b\) equals 0

Case 1: \(a,b \neq 0\)
Case 2: at least one of \(a\) and \(b\) equals 0

13.2 Formal definition

To prove “If \(P\) then \(Q\)” by cases, show that

If \(P_1\) then \(Q\).

If \(P_2\) then \(Q\).

\(\vdots\)

If \(P_n\) then \(Q\).

where \(P_1\), \(P_2\), …, \(P_n\) is a partition of \(P\).

13.3 Exhaustion versus cases

Let’s compare a couple of conjectures we previously proved by exhaustion and a couple which can be proved using cases, to see the difference between “possibilities” in a proof by exhaustion and “cases” in a proof by cases.

Conjecture Proof by exhaustion Proof by cases
Conjecture 11.4 (from Chapter 11) The video solution identified four possible divisors of \(97\) (using some clever reasoning about prime numbers and the square root of \(97\) to not identify more possibilities than necessary) and then checked them all. Finding none divided \(97\), and being satisfied that this list of candidate divisors was complete, the conjecture was declared true.
List of possibilities: \(2, 3, 5, 7\).
Conjecture 11.3 (from Chapter 11) In the video solution, the list of possibilities was identified as the integers \(0, 1, 2, 3, ..., 9\). Again, this list was long enough to ensure completeness but not longer than it needed to be.
List of possibilities: \(0,1,2,3,4,5,6,7,8,9\).
Conjecture 13.1 : Integers retain their parity when squared. We should first check the conjecture is true for even integers, then check it’s true for odd integers.
Partition of \(a \in \mathbb Z\) into cases:
Case 1: All even integers.
Case 2: All odd integers.
Conjecture 13.2 : There is no integer \(a\) such that \(a^2 + a^3 = 100\). Partition of \(a \in \mathbb Z\) into cases:
Case 1: \(a \in \mathbb Z^-\)
Case 2: \(a=0\)
Case 3: \(1 \leq a \leq 4\)
Case 4: \(a \geq 5\)
Conjecture 13.3 : For \(a, b \in \mathbb R\), \(|a + b| \leq |a| + |b|\). As we’re dealing with the modulus function39, it makes sense to build cases by varying the sign of \(a\) and \(b\).
Partition of \(a \in \mathbb R\) into cases:
Case 1: \(a\) and \(b\) both \(\geq 0\).
Case 2: \(a\) and \(b\) both \(< 0\).
Case 3: \(a \geq 0\), \(b <0\), \(|a| \geq |b|\).
Case 4: \(a \geq 0\), \(b <0\), \(|a| < |b|\).
Conjecture 13.4 : All perfect squares are either a multiple of \(3\) or one more than a multiple of \(3\). See Exercise 13.3 below.

13.4 Conjectures


Solutions:


Conjecture 13.1: First, we rewrite the conjecture,

If \(a\) is an even integer, then \(a^2\) is an even integer.
If \(a\) is an odd integer, then \(a^2\) is an odd integer.

Now we’re ready for a proof by cases. We’ll use a direct proof within each of the two cases.


Conjecture 13.2: First, we rewrite the conjecture,

If \(a \in \mathbb Z\), then \(a^2 + a^3 \neq 100\).

Now we’re ready for a proof by cases.


Conjecture 13.3: First, we rewrite the conjecture,

If \(a, b \in \mathbb R\), then \(|a + b| \leq |a| + |b|\).

Now we’re ready for a proof by cases.


Conjecture 13.4: First, we rewrite the conjecture,

If \(a\) is a perfect square, then \(a\) is either a multiple of \(3\) or one more than a multiple of \(3\).

Now we’re ready for a proof by cases.



  1. See Chapter 14 for more on w.l.o.g.↩︎

  2. The first proof of the Four Colour Theorem used 1936 cases. Since then, mathematicians have managed to reduce this number to close to 600, which is still a lot, but less than 1936!
    The Four Colour Theorem states that any map, like a map of the states of the U.S. or countries of the world, can be coloured using only four colours in such a way that regions sharing a common boundary (other than a single point) do not share the same colour. In other words, a cartographer knows that she needs only four colours to colour any map. See https://www.cantorsparadise.com/the-four-color-theorem-8eece6ab6b12.↩︎

  3. Recall the modulus function: \(|a| = a\) for \(a \geq 0\), and \(|a| = -a\) for \(a < 0\).↩︎