This is part of a new sequence of posts titled,
My favorite example of: ,
for different values of . Today,
is the pigeonhole principle.
The Erdös-Szekeres Theorem: Consider any sequence of distinct numbers. There must exist a subsequence
of
numbers such that
is either entirely increasing or entirely decreasing.
The Erdös-Szekeres Theorem is a classic result in permutation combinatorics. Although the theorem was first presented in 1935, the proof I’m going to describe appears in the 1959 paper “A simple proof of a theorem of Erdös and Szekeres”, written by Abraham Seidenberg. Seidenberg’s proof is arguably one of the slickest applications of the pigeonhole principle ever.
The Proof.
Consider a sequence of
distinct numbers. For each number
, define
and define
For example, if , then
is the length of the longest increasing subsequence ending in
and
is the length of the longest decreasing subsequence ending in
.
In order to prove the theorem, Seidenberg made one crucial observation:
Observation: If then either
or
.
To see why the observation holds, consider the case where . Then for any increasing subsequence
that ends in
, the longer subsequence
is an increasing subsequence that ends in
. This implies that
and thus that
. A similar argument can be used in the case where
to show that
, and thus that
. In both cases, the observation holds.
In order to prove the theorem, our goal is to show that there is some for which either
or
. Seidenberg realized that he could prove this with a simple application of the pigeonhole principle.
Suppose for conradiction that and
for all
. Then there are fewer than
possibilities for each pair
. It follows by the pigeonhole principle that at least two of the pairs
are equal to one-another. That is, there exists such that
. But this contradicts Seidenberg’s observation, and thus completes the proof.









