Pigeonhole Principle

Definition. The pigeonhole principle: if n+1n + 1 or more objects are placed into nn boxes, some box receives at least two. Equivalently, there is no injective function from a finite set into a strictly smaller finite set.

Proved by induction plus contradiction in Lecture 2, Example 14. Lecture 3 uses it to bound the number of states a DFA needs, and Lecture 4 uses it to prove the pumping lemma: a machine with nn states reading a string of length at least nn must repeat a state, and the symbols read between the two visits can be repeated.

Created · Updated
Copyright © 2026 Jared Coleman. All rights reserved.