numberAug 30, 2026

Erdős–Szekeres theorem on monotone subsequences

I
idriss-bado
Member · Research discussion
Votes
2
Answers
1
Views
7
2

Exercise

Let a,b≥1a,b\geq 1 be integers. Prove that every sequence of ab+1ab+1 distinct real numbers contains either

a+1 a+1

terms forming an increasing subsequence, or

b+1 b+1

terms forming a decreasing subsequence.

Replies

1 answer
1
I
idriss-bado
Research member
Aug 30, 2026

proof via partial orders

Let

x1,x2,…,xab+1 x_1,x_2,\ldots,x_{ab+1}

be ab+1ab+1 distinct real numbers.

Define a partial order on the indices

{1,2,…,ab+1} \{1,2,\ldots,ab+1\}

by

i≺j⟺i<j and xi<xj. i\prec j \quad\Longleftrightarrow\quad i<j \text{ and } x_i<x_j.

A chain

i1≺i2≺⋯≺ir i_1\prec i_2\prec\cdots\prec i_r

is exactly an increasing subsequence

xi1<xi2<⋯<xir. x_{i_1}<x_{i_2}<\cdots<x_{i_r}.

Assume that there is no increasing subsequence of length a+1a+1. Thus every chain has length at most aa.

For each index ii, let

r(i) r(i)

be the length of the longest chain ending at ii.

Then

1≤r(i)≤a. 1\le r(i)\le a.

For k=1,…,ak=1,\ldots,a, define

Ak={i:r(i)=k}. A_k=\{i:r(i)=k\}.

These sets partition the ab+1ab+1 indices:

{1,…,ab+1}=A1⊔A2⊔⋯⊔Aa. \{1,\ldots,ab+1\} = A_1\sqcup A_2\sqcup\cdots\sqcup A_a.

Since there are ab+1ab+1 elements distributed among only aa sets, the pigeonhole principle gives some kk such that

∣Ak∣≥b+1. |A_k|\ge b+1.

We claim that the terms corresponding to AkA_k, when read in their original order, form a decreasing subsequence.

Indeed, let

i<j,i,j∈Ak. i<j,\qquad i,j\in A_k.

If we had

xi<xj, x_i<x_j,

then i≺ji\prec j. Any longest chain ending at ii could then be extended by jj, giving

r(j)≥r(i)+1=k+1, r(j)\ge r(i)+1=k+1,

contradicting

r(j)=k. r(j)=k.

Therefore

xi>xj. x_i>x_j.

Hence, if

i1<i2<⋯<im i_1<i_2<\cdots<i_m

are the elements of AkA_k, then

xi1>xi2>⋯>xim, x_{i_1}>x_{i_2}>\cdots>x_{i_m},

where

m=∣Ak∣≥b+1. m=|A_k|\ge b+1.

Thus there is a decreasing subsequence of length at least b+1b+1.

Consequently, every sequence of ab+1ab+1 distinct numbers contains either an increasing subsequence of length at least a+1a+1, or a decreasing subsequence of length at least b+1b+1.

Erdo˝s–Szekeres \boxed{\text{Erdős--Szekeres}}

Your answer

You need a verified account to contribute. Create an account or log in to join the discussion.