29-04 — Proof by Cases and Pigeonhole Arguments

Phase: 29 — Proof Techniques Subject: 29-04 Prerequisites: 29-01 (Direct Proof), 29-02 (Proof by Contradiction), 26-05 (Pigeonhole Principle) Next subject: 29-05 — Reading and Writing Proofs


Learning Objectives

By the end of this subject, you will be able to:

  1. Structure a proof by cases (exhaustive case analysis)
  2. Apply the pigeonhole principle in counting and existence proofs
  3. Combine case analysis with contradiction and contrapositive
  4. Use the extremal principle (choose the largest/smallest element)
  5. Recognise when case analysis is the most natural proof strategy

Core Content

1. Proof by Cases (Exhaustive Case Analysis)

Proof by cases splits a statement into multiple mutually exclusive scenarios and proves each separately.

Template:

We prove P(x) for all x by considering all possible cases.

Case 1: [Condition A]
[Prove P(x) for x satisfying A]

Case 2: [Condition B]
[Prove P(x) for x satisfying B]

...

Since every x satisfies exactly one of these cases, P(x) holds for all x. ∎

Key requirements: - Cases must be exhaustive (cover all possibilities) - Cases must be mutually exclusive (no overlap) - Each case must be proved independently

2. The Pigeonhole Principle

Basic form: If $n$ items are placed into $m$ containers and $n > m$, then at least one container holds more than one item.

Generalised form: If $n$ items are placed into $m$ containers, at least one container holds at least $\lceil n/m \rceil$ items.

Why it's powerful: It converts counting into existence statements — "there must exist..." without constructing the object.

3. The Extremal Principle

The extremal principle says: "Consider the largest/smallest/best/worst element." This extremal element often has special properties that make the proof easier.

Template:

Among all objects satisfying [condition], choose one with the [maximum/minimum] [property].
[Show this extremal object has a contradiction or special structure]

Example: In any finite set of points in the plane, not all on a line, there is a line through exactly two points. Choose the pair of points with the smallest distance. The line through them cannot contain a third point (otherwise that point would be closer to one of them).

4. Combining Techniques

Case analysis works well with: - Contradiction: Assume $P$ is false, derive contradictions in each case - Contrapositive: Prove $\neg Q \implies \neg P$ by cases on $\neg Q$ - Pigeonhole: Use cases to define the "pigeonholes"


Worked Examples

Example 1: Pigeonhole — Birthday Problem

Problem: Show that among 13 people, at least two were born in the same month.

Solution:

13 people (pigeons) into 12 months (pigeonholes). Since $13 > 12$, by the pigeonhole principle, at least one month contains at least $\lceil 13/12 \rceil = 2$ people.

Answer: At least two people share a birth month.


Example 2: Case Analysis — Absolute Value

Problem: Prove that for all real $x$, $|x| \geq 0$ and $|x| = 0 \iff x = 0$.

Solution:

By definition: $|x| = x$ if $x \geq 0$, and $|x| = -x$ if $x < 0$.

Case 1: $x > 0$. Then $|x| = x > 0$. ✓ Case 2: $x = 0$. Then $|x| = 0$ by either definition. ✓ Case 3: $x < 0$. Then $|x| = -x > 0$ (since $x < 0$ implies $-x > 0$). ✓

All cases give $|x| \geq 0$. For $|x| = 0$: - If $x \geq 0$: $|x| = x = 0 \implies x = 0$. - If $x < 0$: $|x| = -x > 0$, so $|x| \neq 0$.

Thus $|x| = 0 \iff x = 0$. ∎


Example 3: Extremal Principle — Convex Hull

Problem: Prove that any set of $n \geq 3$ points in the plane, not all collinear, has at least three points that form a triangle containing no other points of the set in its interior.

Solution:

Consider all triangles formed by triples of points from the set. Choose one with the smallest area (exists since finite set).

Claim: This triangle contains no other points of the set in its interior.

Proof: Suppose some point $P$ of the set lies inside this minimum-area triangle $ABC$. Then $P$ divides $ABC$ into three smaller triangles $PAB, PBC, PCA$, each with area less than $\text{Area}(ABC)$. But each of these triangles has vertices from our set, contradicting the minimality of $\text{Area}(ABC)$.

Answer: By the extremal principle (minimum area), such a triangle exists.


Practice Problems

Problem 1: Use the pigeonhole principle to show that among any 10 positive integers, there exist two whose difference is divisible by 9.

Problem 2: Prove by cases: For any integer $n$, $n^2 \equiv 0$ or $1 \pmod{4}$.

Problem 3: Use the extremal principle: In any group of $n$ people, there are two people with the same number of friends in the group.

Problem 4: Prove by cases: For all real $x, y$, $|x - y| \leq |x| + |y|$ (triangle inequality for real numbers).

Problem 5: Show that among any 52 integers, there exist two with the same last digit.


Summary

  1. Proof by cases exhausts all mutually exclusive possibilities and proves the statement in each
  2. Pigeonhole principle converts "more items than containers" into "some container has multiple items"
  3. Extremal principle picks the largest/smallest element to exploit its special properties
  4. Case analysis combines naturally with contradiction and contrapositive
  5. These techniques are essential for combinatorics, graph theory, and existence proofs

Key Terms



Pitfalls

Quiz

  1. Overlapping cases. Cases should be mutually exclusive and collectively exhaustive (MECE). If cases overlap, you're double-counting or missing edge cases.
  2. Missing the 'extreme' case. Pigeonhole proofs often fail because the edge case (e.g., n-1 pigeons in n holes) is overlooked. Test boundaries.
  3. Counting holes incorrectly. The pigeonhole principle says: if n items into m containers and n > m, then at least one container has ≥ 2 items. Don't confuse n and m.
  4. Using pigeonhole when a direct construction works. Sometimes the extremal principle (construct the worst case) is cleaner than pigeonhole.
  5. Forgetting to prove the bound is tight. Saying 'at least 2' is true, but can you achieve exactly 2? If not, the bound might be loose. Prove tightness when relevant.
  6. Confusing ordered and unordered cases. When splitting into cases, be clear whether order matters. 'Case 1: x is even' is different from 'Case 1: x is the smallest element'.

Q1: A proof by cases requires:

A) Only one case B) Cases that are exhaustive and mutually exclusive C) Exactly three cases D) Cases that all lead to the same contradiction

Correct: B)


Q2: The pigeonhole principle states that if $n$ items are in $m$ containers with $n > m$:

A) Every container has at least one item B) At least one container has more than one item C) Exactly one container is empty D) All containers have the same number of items

Correct: B)


Q3: The generalised pigeonhole principle says that with $n$ items in $m$ containers, some container has at least:

A) $n/m$ items B) $\lceil n/m \rceil$ items C) $n - m$ items D) $m/n$ items

Correct: B)


Q4: The extremal principle is useful because:

A) It always gives the answer directly B) The extremal element (largest/smallest) often has special properties that simplify the proof C) It avoids the need for any proof D) It only works for finite sets

Correct: B)


Q5: In the extremal principle proof that "among $n$ people there are two with the same number of friends," the "extremal" element is:

A) The person with the most friends B) The person with the fewest friends C) The total number of friendships D) Any person chosen arbitrarily

Correct: B)


Q6: For the statement "any $n \geq 3$ non-collinear points contain a triangle with no interior points," the extremal principle uses:

A) The triangle with the largest area B) The triangle with the smallest area C) The triangle with the most vertices D) Any triangle containing points

Correct: B)


Q7: To prove $n^2 \equiv 0$ or $1 \pmod{4}$ for all integers $n$, we use cases based on:

A) Whether $n$ is prime or composite B) Whether $n$ is even or odd C) Whether $n > 0$ or $n < 0$ D) The number of digits in $n$

Correct: B)


Q8: Which proof technique is most natural for "there exist two people with the same number of friends"?

A) Direct proof B) Proof by contradiction C) Pigeonhole principle D) Mathematical induction

Correct: C)


Next Steps

Continue to 29-05 — Reading and Writing Proofs to consolidate all proof techniques and learn how to read, structure, and write complete mathematical proofs.