Erdős–Szekeres theorem on monotone subsequences
Exercise
Let be integers. Prove that every sequence of distinct real numbers contains either
terms forming an increasing subsequence, or
terms forming a decreasing subsequence.
Let be integers. Prove that every sequence of distinct real numbers contains either
terms forming an increasing subsequence, or
terms forming a decreasing subsequence.
Let
be distinct real numbers.
Define a partial order on the indices
by
A chain
is exactly an increasing subsequence
Assume that there is no increasing subsequence of length . Thus every chain has length at most .
For each index , let
be the length of the longest chain ending at .
Then
For , define
These sets partition the indices:
Since there are elements distributed among only sets, the pigeonhole principle gives some such that
We claim that the terms corresponding to , when read in their original order, form a decreasing subsequence.
Indeed, let
If we had
then . Any longest chain ending at could then be extended by , giving
contradicting
Therefore
Hence, if
are the elements of , then
where
Thus there is a decreasing subsequence of length at least .
Consequently, every sequence of distinct numbers contains either an increasing subsequence of length at least , or a decreasing subsequence of length at least .
You need a verified account to contribute. Create an account or log in to join the discussion.