5.1 Erdös-Szekeres lemma and Dilworth’s theorem

Let a1,,an be a sequence of distinct numbers. A subsequence is a sequence ai1,,aim where i1<i2<im. Here m is called as length of the subsequence. The subsequence is increasing (resp. decreasing) if ai1<<aim (resp. ai1>>aim).

Theorem 5.1 (Erdös-Szekeres, 1935 ).

Let a1,,an be a sequence of distinct numbers. If nrs+1 then there exists an increasin subsequence of length s+1 or a decreasing subsequence of length r+1.

The study of longest increasing subsequences touches upon combinatorics, probability, analysis, linear algebra and operator theory, differential equations, special functions, representation theory, and more; see [Romik 2015].

Proof.

(Seidenberg, 1959) Let xi be the length of the longest increasing subsequence ending at ai and yi be the length of the longest increasing subsequence starting at ai. Suppose (xi,yi)=(xj,yj) for ij. Say i<j and ai<aj. Then the longest increasing subsequence ending at ai can be extended to aj and so xj>xi. If ai>aj then yi>yj by the above reasoning. Thus (xi,yi)(xj,yj) for all ij. Consider the grid formed by [n]×[n]. Put ai in cell (xi,yj). By above argument, ai’s fall into distinct cells and since there are n many of them, at least one of them falls outside [s]×[r]. Say ak falls outside [s]×[r]. Then xks+1 or ykr+1 which proves the theorem. ∎

A partial order on a set P is a transitive and irreflexive binary relation < i.e., x<y and y<z implies x<z and further x<y and y<x cannot hold simultaneously. We say x and y are comparable if xy or yx. denotes that either < or = holds. A chain CP is a subset such that any two of its elements are comparable. A anti-chain CP is a subset such that no two of its elements are comparable. Observe that any chain has a greatest and smallest element.

Theorem 5.2 (Dilworth’s theorem, 1950 ).

In any partially ordered set P of nsr+1 elements there exists a chain of size s+1 or an anti-chain of size r+1.

It will be an exercise to show that Dilowrth’s theorem implies Erdös-Szekeres lemma. We will prove a slightly stronger claim leading to Dilworth’s theorem.

Lemma 5.3 (Mirsky, 1971).

Let P be a partially ordered set. If P has no chain of length m+1, then P is a union of at most m anti-chains.

Proof.

We will prove by induction. If m=1, it is trivial. Let m2 and assume that the theorem holds for m1. Suppose P has not chain of length m+1 elements. Let M be the set of all maximal elements in P. Clearly M is an anti-chain. Suppose PM has a chain x1<<xm. Then this would be a maximal chain in P as well and so xmM, a contradiction. Thus PM has no chain of length m. By induction hypothesis, PM is a union of at most m1 anti-chains. Thus P is at most a untion of m chains. ∎

Proof of Theorem 5.2.

Suppose P has no chain of size s+1. Then by Lemma 5.3, P is a union of at most s anti-chains. Since nsr+1, one of the anti-chains has size at least r+1 thereby proving the theorem. ∎

Second proof of Theorem 5.2.

We will give a second proof using pigeonhole principle directly mimicking the argument of Erdös-Szekeres lemma. Suppose pi,i=1,,n are the elements of P. Let us consider n boxes. Put pi in box k if the length of the longest chain starting at pi is k. Suppose that pi,pj belong to the kth box for some k[n]. If pi and pj are comparable, say pi<pj WLOG, then the longest chain starting at pi will be at least k+1. Thus if pi,pj lie in the same box, they are not comparable. If there exists no chain of length s+1, then all the n elements lie in boxes 1,,s and so by pigeonhole principle r+1 elements fall in one of the boxes. Thus, these r+1 elements form an anti-chain by the above observation. ∎