Proof of the Erdős–Szekeres theorem by the pigeonhole principle
Builds on Pigeonhole principleRule of product
Proof
We argue by contradiction, with the pigeonhole principle.
- Let be integers, let , and let be distinct real numbers.
- A subsequence of length is given by indices . It is increasing if , and decreasing if . It ends at .
- For each index , let be the largest length of an increasing subsequence that ends at . Let be the largest length of a decreasing subsequence that ends at .
- These maxima exist, because lengths are at most . Also and , because the single term is both increasing and decreasing.
- Let . We claim that . Since the terms are distinct, either or .
- If , take an increasing subsequence of length that ends at . Appending gives an increasing subsequence of length that ends at . So .
- If , the same argument with a decreasing subsequence gives .
- In both cases the pairs differ. So the map on is injective.
- Suppose, for a contradiction, that there is no increasing subsequence of length and no decreasing subsequence of length .
- Then for all . Otherwise an increasing subsequence of length exists, and its last terms form one of length .
- In the same way, for all .
- By steps 4, 10 and 11, maps into .
- By the rule of product, .
- By the pigeonhole principle, is not injective. This contradicts step 8.
- Hence the sequence has an increasing subsequence of length or a decreasing subsequence of length .
Idea
Label each term by the lengths of the longest increasing and decreasing runs that end there. A later term always improves one of the two labels, so all labels differ. If both kinds of subsequence were short, there would be too few labels for terms.
Reading path
To understand this page from the ground up, read these 44 pages in order. The foundations come first. The path takes the proofs Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof of the rule of product, Proof of the complement principle, Proof of the pigeonhole principle, Proof that a composition of surjections is surjective, Proof of the rule of sum, Proof of the bijection principle.
- Cardinality of a finite set definition
- Element definition
- Proposition concept
- Set definition
- Conjunction definition
- Implication definition
- Predicate definition
- Empty set object
- Ordered pair definition
- Intersection definition
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Disjoint sets definition
- Subset definition
- Uniqueness quantifier definition
- Binary relation definition
- Function definition
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Image of a set definition
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Proof that a composition of surjections is surjective proof
- Bijective function definition
- Composition of injections is injective statement
- Composition of surjections is surjective statement
- Proof of the rule of sum proof
- Proof that a function is bijective iff it has a two-sided inverse proof
- Rule of sum statement
- Bijective iff it has a two-sided inverse statement
- Proof of the complement principle proof
- Proof of the rule of product proof
- Proof of the bijection principle proof
- Complement principle statement
- Rule of product statement
- Bijection principle statement
- Proof of the pigeonhole principle proof
- Pigeonhole principle statement
- Proof of the Erdős–Szekeres theorem by the pigeonhole principle proof
Where this leads
1 page builds on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Erdős–Szekeres_theorem, Proofs, Pigeonhole principle
About this page
| Tag | 22G1VPJW6Y |
|---|---|
| URI | m2://22G1VPJW6Y |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A05 |
| Proves | Erdős–Szekeres theorem |
| Uses | Pigeonhole principle, Rule of product |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.