Let be a sequence of distinct numbers. A subsequence is a sequence where . Here is called as length of the subsequence. The subsequence is increasing (resp. decreasing) if (resp. ).
Let be a sequence of distinct numbers. If then there exists an increasin subsequence of length or a decreasing subsequence of length .
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].
(Seidenberg, 1959) Let be the length of the longest increasing subsequence ending at and be the length of the longest increasing subsequence starting at . Suppose for . Say and . Then the longest increasing subsequence ending at can be extended to and so . If then by the above reasoning. Thus for all . Consider the grid formed by . Put in cell . By above argument, ’s fall into distinct cells and since there are many of them, at least one of them falls outside . Say falls outside . Then or which proves the theorem. ∎
A partial order on a set is a transitive and irreflexive binary relation i.e., and implies and further and cannot hold simultaneously. We say and are comparable if or . denotes that either or holds. A chain is a subset such that any two of its elements are comparable. A anti-chain is a subset such that no two of its elements are comparable. Observe that any chain has a greatest and smallest element.
In any partially ordered set of elements there exists a chain of size or an anti-chain of size .
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.
Let be a partially ordered set. If has no chain of length , then is a union of at most anti-chains.
We will prove by induction. If , it is trivial. Let and assume that the theorem holds for . Suppose has not chain of length elements. Let be the set of all maximal elements in . Clearly is an anti-chain. Suppose has a chain . Then this would be a maximal chain in as well and so , a contradiction. Thus has no chain of length . By induction hypothesis, is a union of at most anti-chains. Thus is at most a untion of chains. ∎
Suppose has no chain of size . Then by Lemma 5.3, is a union of at most anti-chains. Since , one of the anti-chains has size at least thereby proving the theorem. ∎
We will give a second proof using pigeonhole principle directly mimicking the argument of Erdös-Szekeres lemma. Suppose are the elements of . Let us consider boxes. Put in box if the length of the longest chain starting at is . Suppose that belong to the th box for some . If and are comparable, say WLOG, then the longest chain starting at will be at least . Thus if lie in the same box, they are not comparable. If there exists no chain of length , then all the elements lie in boxes and so by pigeonhole principle elements fall in one of the boxes. Thus, these elements form an anti-chain by the above observation. ∎