                                                             On the Erdős-Szekeres convex polygon problem
                                                                                            Andrew Suk∗
arXiv:1604.08657v2 [math.CO] 27 Aug 2016




                                                                                              Abstract
                                                      Let ES(n) be the smallest integer such that any set of ES(n) points in the plane in general
                                                   position contains n points in convex position. In their seminal 1935 paper, Erdős and Szekeres
                                                   showed that ES(n) ≤ 2n−4n−2 + 1 = 4
                                                                                         n−o(n)
                                                                                                . In 1960, they showed that ES(n) ≥ 2n−2 + 1 and
                                                   conjectured this to be optimal. In this paper, we nearly settle the Erdős-Szekeres conjecture by
                                                   showing that ES(n) = 2n+o(n) .


                                           1       Introduction
                                           In their classic 1935 paper, Erdős and Szekeres [7] proved that, for every integer n ≥ 3, there is a
                                           minimal integer ES(n), such that any set of ES(n) points in the plane in general position1 contains
                                           n points in convex position, that is, they are the vertices of a convex n-gon.
                                               Erdős and Szekeres gave two proofs of the existence of ES(n). Their first proof used a quanti-
                                           tative version of Ramsey’s Theorem, which gave a very poor upper       bound for ES(n). The second
                                           proof was more geometric and showed that ES(n) ≤ 2n−4
                                                                                                           
                                                                                                       n−2   +  1 (see Theorem 2.2 in the next
                                           section). On the other hand, they showed that ES(n) ≥ 2          n−2 + 1 and conjectured this to be
                                           sharp [8].
                                                                                                                       4n
                                               Small improvements have been made on the upper bound 2n−4
                                                                                                                
                                                                                                            n−2 +1 ≈ n by various researchers
                                                                                                                       √

                                           [3, 13, 22, 23, 17, 18], but no improvement in the order of magnitude has ever been made. The
                                           most recent upper bound, due to Norin and Yuditsky [18] and Mojarrad and Vlachos [17], says
                                           that

                                                                                              ES(n)     7
                                                                                       lim sup 2n−4 ≤ 16 .
                                                                                           n→∞ n−2

                                           In the present paper, we prove the following.
                                                                                                                                                2/3 log n
                                           Theorem 1.1. For all n ≥ n0 , where n0 is a large absolute constant, ES(n) ≤ 2n+6n                               .

                                               The study of ES(n) and its variants2 has generated a lot of research over the past several
                                           decades. For a more thorough history on the subject, we refer the interested reader to [15, 2, 22].
                                           All logarithms are to base 2.
                                               ∗
                                                 University of Illinois, Chicago, IL. Supported by NSF grant DMS-1500153. Email: suk@uic.edu.
                                               1
                                                 No three of the points are on a line.
                                               2
                                                 Higher dimensions [11, 12, 21], for families of convex bodies in the plane [9, 5], etc.




                                                                                                   1
                     00
                     11                                                        0
                                                                               1
                     00
                     11                                                        1
                                                                               0
                                                                       1
                                                                       0
                                                                       0
                                                                       1               0
                                                                                       1
                                             11
                                             00                                        0
                                                                                       1
                                             00
                                             11

                          00
                          11                                       0
                                                                   1
                          00
                          11                                       0
                                                                   1
                                   00
                                   11
                                   00
                                   11                                                      1
                                                                                           0
                                                                                           0
                                                                                           1

                                       Figure 1: A 4-cup and a 5-cap.



2    Notation and tools
In this section, we recall several results that will be used in the proof of Theorem 1.1. We start
with the following simple lemma.

Lemma 2.1 (See Theorem 1.2.3 in [14]). Let X be a finite point set in the plane in general position
such that every four members in X are in convex position. Then X is in convex position.

    The next theorem is a well-known result from [7], which is often referred to as the Erdős-Szekeres
cups-caps theorem. Let X be a k-element point set in the plane in general position. We say that X
forms a k-cup (k-cap) if X is in convex position and its convex hull is bounded above (below) by a
single edge. In other words, X is a cup (cap) if and only if for every point p ∈ X, there is a line L
passing through it such that all of the other points in X lie on or above (below) L. See Figure 1.

Theorem 2.2 ([7]). Let f (k, ℓ) be the smallest integer N such that any N -element planar point
set in the plane in general position contains a k-cup or an ℓ-cap. Then
                                                        
                                                  k+ℓ−4
                                     f (k, ℓ) =            + 1.
                                                   k−2
    The next theorem is a combinatorial reformulation of Theorem 2.2 observed by Hubard et
al. [10] (see also [9, 16]). A transitive 2-coloring of the triples of {1, 2, . . . , N } is a 2-coloring, say
with colors red and blue, such that, for i1 < i2 < i3 < i4 , if triples (i1 , i2 , i3 ) and (i2 , i3 , i4 ) are red
(blue), then (i1 , i2 , i4 ) and (i1 , i3 , i4 ) are also red (blue).

Theorem 2.3 ([7]). Let g(k, ℓ) denote the minimum integer N such that, for every transitive 2-
coloring on the triples of {1, 2, . . . , N }, there exists a red clique of size k or a blue clique of size ℓ.
Then
                                                                     
                                                            k+ℓ−4
                                   g(k, ℓ) = f (k, ℓ) =                 + 1.
                                                              k−2
    The next theorem is due to Pór and Valtr [20], and is often referred to as the positive-fraction
Erdős-Szekeres theorem (see also [1, 19]). Given a k-cap (k-cup) X = {x1 , . . . , xk }, where the
points appear in order from left to right, we define the support of X to be the collection of open
regions C = {T1 , . . . , Tk }, where Ti is the region outside of conv(X) bounded by the segment xi xi+1
and by the lines xi−1 xi , xi+1 xi+2 (where xk+1 = x1 , xk+2 = x2 , etc.). See Figure 2.

Theorem 2.4 (Proof of Theorem 4 in [20]). Let k ≥ 3 and let P be a finite point set in the plane
in general position such that |P | ≥ 232k . Then there is a k-element subset X ⊂ P such that X is

                                                        2
                                                       T3     11
                                                              00
                                                              11
                                                              00
                                                              11
                                                              00
                                               00
                                               11
                                               11
                                               00
                                               11
                                               00             x4   T4
                                          T2    x3
                                                                        11
                                                                        00
                                                                        11
                                                                        00
                                     00
                                     11
                                     00
                                     11                                 11
                                                                        00
                                     11
                                     00
                                          x2           B3          x5

                                  T1 x1
                                    00
                                    11
                                    11
                                    00
                                    00
                                    11
                                                                                  T5
                                                                        x6
                                                                             00
                                                                             11
                                                                             00
                                                                             11
                                                                             00
                                                                             11




                                                         T6




         Figure 2: Regions T1 , . . . , T6 in the support of X = {x1 , . . . , x6 }, and segment B3 .



either a k-cup or a k-cap, and the regions T1 , . . . , Tk−1 from the support of X satisfy |Ti ∩ P | ≥ 2|P |
                                                                                                         32k .
In particular, every (k − 1)-tuple obtained by selecting one point from each Ti ∩ P , i = 1, . . . , k − 1,
is in convex position.

    Note that Theorem 2.4 does not say anything about the points inside region Tk . Let us also
remark that in the proof of Theorem 2.4 in [20], the authors find a 2k-element set X ⊂ P , such that
k of the regions in the support of X each contain at least 2|P |
                                                             32k points from P , and therefore these
regions may not be consecutive. However, by appropriately selecting a k-element subset X ′ ⊂ X,
we obtain Theorem 2.4.


3    Proof of Theorem 1.1
                                                                                                        2/3
Let P be an N -element planar point set in the plane in general position, where N = ⌊2n+6n log n ⌋
and n ≥ n0 , where n0 is a sufficiently large absolute constant. Set k = ⌈n2/3 ⌉. We apply Theo-
rem 2.4 to P with parameter k + 3, and obtain a subset X = {x1 , . . . , xk+3 } ⊂ P such that X is a
cup or a cap, and the points in X appear in order from left to right. Moreover since k = ⌈n2/3 ⌉ is
large, regions T1 , . . . , Tk+2 in the support of X satisfy

                                                         N
                                                    |Ti ∩ P | ≥
                                                             .
                                                        240k
Set Pi = Ti ∩ P for i = 1, . . . , k + 2. We will assume that X is a cap, since a symmetric argument
would apply. We say that the two regions Ti and Tj are adjacent if i and j are consecutive indices.
   Consider the subset Pi ⊂ P and the region Ti , for some fixed i ∈ {2, . . . , k + 1}. Let Bi be the
segment xi−1 xi+2 . See Figure 2. The point set Pi naturally comes with a partial order ≺, where
p ≺ q if p 6= q and q ∈ conv(Bi ∪ p). Set α = 3n−1/3 log n. By Dilworth’s Theorem [4], Pi contains


                                                              3
either a chain of size at least |Pi |1−α or an antichain of size at least |Pi |α with respect to ≺. The
proof now falls into two cases.
                                             1/3
Case 1. Suppose there are t = ⌈ n 2 ⌉ parts Pi in the collection F = {P2 , P3 , . . . , Pk+1 }, such that
no two of them are in adjacent regions, and each such part contains a subset Qi of size at least
|Pi |α such that Qi is an antichain with respect to ≺. Let Qj1 , Qj2 , . . . , Qjt be the selected subsets.
     For each Qjr , r ∈ {1, . . . , t}, the line spanned by any two points in Qjr does not intersect
the segment Bjr , and therefore, does not intersect region Tjw for w 6= r (by the non-adjacency
property). Since n is sufficiently large, we have 40k < n2/3 log n, and therefore

                                  α
                                                                               n + ⌈2n2/3 ⌉ − 4
                                                                                              
                 α          N              3n2/3 log n+15n1/3 log2 n
    |Qjr | ≥ |Pi | ≥                   ≥2                              ≥                          + 1 = f (n, ⌈2n2/3 ⌉).
                           240k                                                     n−2
Theorem 2.2 implies that Qjr contains either an n-cup or a ⌈2n2/3 ⌉-cap. If we are in the former
case for any r ∈ {1, . . . , t}, then we are done. Therefore we can assume Qjr contains a subset Sjr
that is a ⌈2n2/3 ⌉-cap, for all r ∈ {1, . . . , t}.
   We claim that S = Sj1 ∪ · · · ∪ Sjt is a cap, and therefore S is in convex position. Let p ∈ Sjr .
Since |Sjr | ≥ 2, there is a point q ∈ Sjr such that the line L supported by the segment pq has the
property that all of the other points in Sjr lie below L. Since L does not intersect Bjr , all of the
points in S \ {p, q} must lie below L. Hence, S is a cap and

                                                                       n1/3
                                       |S| = |Sj1 ∪ · · · ∪ Sjt | ≥         (2n2/3 ) = n.
                                                                        2
Case 2. Suppose we are not in Case 1. Then there are ⌈n1/3 ⌉ consecutive indices j, j + 1, j + 2, . . . ,
such that each such part Pj+r contains a subset Qj+r such that Qj+r is a chain of length at least
|Pj+r |1−α with respect to ≺. For simplicity, we can relabel these sets Q1 , Q2 , Q3 , . . ..
    Consider the subset Qi inside the region Ti , and order the elements in Qi = {p1 , p2 , p3 , . . .} with
respect to ≺. We say that Y ⊂ Qi is a right-cap if xi ∪ Y is in convex position, and we say that
Y is a left-cap if xi+1 ∪ Y is in convex position. Notice that left-caps and right-caps correspond
to the standard notion of cups and caps after applying an appropriate rotation to the plane so
that the segment xi xi+1 is vertical. Since Qi is a chain with respect to ≺, every triple in Qi is
either a left-cap or a right-cap, but not both. Moreover, for i1 < i2 < i3 < i4 , if (pi1 , pi2 , pi3 )
and (pi2 , pi3 , pi4 ) are right-caps (left-caps), then (pi1 , pi2 , pi4 ) and (pi1 , pi3 , pi4 ) are both right-caps
(left-caps). By Theorem 2.3, if |Qi | ≥ f (k, ℓ), then Qi contains either a k-left-cap or an ℓ-right-cap.
We make the following observation.
Observation 3.1. Consider the (adjacent) sets Qi−1 and Qi . If Qi−1 contains a k-left-cap Yi−1 ,
and Qi contains an ℓ-right-cap Yi , then Yi−1 ∪ Yi forms k + ℓ points in convex position.
Proof. By Lemma 2.1, it suffices to show every four points in Yi−1 ∪ Yi are in convex position. If
all four points lie in Yi , then they are in convex position. Likewise if they all lie in Yi−1 , they are in
convex position. Suppose we take two points p1 , p2 ∈ Yi−1 and two points p3 , p4 ∈ Yi . Since Qi−1
and Qi are both chains with respect to ≺, the line spanned by p1 , p2 does not intersect the region Ti ,
and the line spanned by p3 , p4 does not intersect the region Ti−1 . Hence p1 , p2 , p3 , p4 are in convex
position. Now suppose we have p1 , p2 , p3 ∈ Yi−1 and p4 ∈ Yi . Since the three lines L1 , L2 , L3
spanned by p1 , p2 , p3 all intersect the segment Bi−1 , both xi and p4 lie in the same region in the
arrangement of L1 ∪ L2 ∪ L3 . Therefore p1 , p2 , p3 , p4 are in convex position. The same argument
follows in the case that p1 ∈ Yi−1 and p2 , p3 , p4 ∈ Yi . See Figure 3.

                                                               4
                                                                  11
                                                                  00

                                         0
                                         1                         1
                                                                   0
                                         0
                                         1                         0
                                                                   1
                                                                   1
                                                                   0
                                        1
                                        0                     00
                                                              11
                                                              00
                                                              11
                                         1
                                         0
                                         0
                                         1            xi

                                        xi−1                           xi+1




 Figure 3: A 3-left-cap in Qi−1 and a 4-right-cap in Qi , which forms 7 points in convex position.



We have for i ∈ {1, . . . , ⌈n1/3 ⌉},
                                                           1−α
                                    (1−α)             N                       2/3 log n−15n1/3 log2 n
                        |Qi | ≥ |Pi |        ≥                     ≥ 2n+2n                              .   (1)
                                                     240k
    Set K = ⌈n2/3 ⌉. Since n is sufficiently large, we have
                                                    
                                           n+K −4
                                |Q1 | ≥                + 1 = f (K, n),
                                             K−2

which implies that Q1 either contains an n-right-cap, or a K-left-cap. In the former case we are
done, so we can assume that Q1 contains a K-left-cap. Likewise, |Q2 | ≥ n+K−4
                                                                         2K−2 +1 = f (2K, n−K),
which implies Q2 contains either an (n − K)-right-cap, or a (2K)-left-cap. In the former case we
are done since Observation 3.1 implies that the K-left-cap in Q1 and the (n − K)-right-cap in Q2
form n points in convex position. Therefore we can assume Q2 contains a (2K)-left-cap.
    In general, if we know that Qi−1 contains an (iK − K)-left-cap, then we can conclude that Qi
contains an (iK)-left-cap. Indeed, for all i ≤ ⌈n1/3 ⌉ we have
                                               
                                     n+K−4                 2/3
                                                   ≤ 2n+⌈n ⌉−4 .                              (2)
                                       iK − 2
Since n is sufficiently large, (1) and (2) imply that
                                                             
                      n+2n2/3 log n−15n1/3 log2 n     n+K −4
             |Qi | ≥ 2                            ≥             + 1 = f (iK, n − iK + K).
                                                       iK − 2
Therefore, Qi contains either an (n − iK + K)-right-cap or an (iK)-left-cap. In the former case
we are done by Observation 3.1 (recall that we assumed Qi−1 contains an (iK − K)-left-cap), and
therefore we can assume Qi contains an (iK)-left-cap. Hence for i = ⌈n1/3 ⌉, we can conclude that
Q⌈n1/3 ⌉ contains an n-left-cap. This completes the proof of Theorem 1.1.




                                                              5
4    Concluding remarks
                                                                            √ Gábor Tardos has
Following the initial publication of this work on arXiv, we have learned that
improved the lower order term in the exponent, showing that ES(n) = 2  n+O(   n log n) .



Acknowledgments. I would like to thank János Pach, Gábor Tardos, and Géza Tóth for numerous
helpful comments.


References
 [1] I. Bárány and P. Valtr, A positive fraction Erdős-Szekeres theorem, Discrete Comput. Geom.
     19 (1998), 335–342.

 [2] P. Brass, W. Moser, and J. Pach, Convex polygons and the Erdős Szekeres problem, Chapter
     8.2 in Research problems in discrete geometry, Springer, (2005).

 [3] F. R. K. Chung and R. L. Graham, Forced convex n-gons in the plane, Discrete Comput.
     Geom. 19 (1998), 367–371.

 [4] R. Dilworth, A decomposition theorem for partially ordered sets, Ann. of Math. 51 (1950),
     161–166.

 [5] M. Dobbins, A. Holmsen, and A. Hubard, The Erdős-Szekeres problem for non-crossing convex
     sets, Mathematika 60 (2014), 463–484.

 [6] P. Erdős, Some of my favorite problems and results, The Mathematics of Paul Erdős, Vol. I
     (R. L. Graham and J. Nesetril, eds.), Springer-Verlag, Berlin, 1997, 47–67.

 [7] P. Erdős and G. Szekeres, A combinatorial problem in geometry, Compos. Math. 2 (1935),
     463–470.

 [8] P. Erdős and G. Szekeres, On some extremum problems in elementary geometry, Ann. Univ.
     Sci. Budapest. Eötvös Sect. Math. 3-4 (1960/1961), 53–62.

 [9] J. Fox, J. Pach, B. Sudakov, and A. Suk, Erdős-Szekeres-type theorems for monotone paths
     and convex bodies, Proc. Lond. Math. Soc. 105 (2012), 953–982.

[10] A. Hubard, L. Montejano, E. Mora, and A. Suk, Order types of convex bodies, Order 28
     (2011), 121–130.

[11] G. Károlyi, Ramsey-remainder for convex sets and the Erdős-Szekeres theorem, Discrete Appl.
     Math. 109 (2001), 163–175.

[12] G. Károlyi and P. Valtr, Point configurations in d-space without large subsets in convex posi-
     tion, Discrete Comput. Geom. 30 (2003) 277–286.

[13] D. Kleitman and L. Pachter, Finding convex sets among points in the plane, Discrete Comput.
     Geom. 19 (1998), 405–410.

[14] J. Matoušek, Lectures on Discrete Geometry, Springer-Verlag New York, Inc., 2002.


                                                 6
[15] W. Morris and V. Soltan, The Erdős-Szekeres problem on points in convex position - a survey,
     Bull. Amer. Math. Soc. 37 (2000), 437–458.

[16] G. Moshkovitz and A. Shapira, Ramsey Theory, integer partitions and a new proof of the
     Erdős-Szekeres Theorem, Adv. Math. 262 (2014), 1107–1129.

[17] H. Mojarrad and G. Vlachos, On the Erdős-Szekeres conjecture, Discrete Comput. Geom. 56
     (2016), 165–180.

[18] S. Norin and Y. Yuditsky, Erdős-Szekeres without induction, http://arxiv.org/abs/1509.03332,
     (2015).

[19] J. Pach and J. Solymosi, Canonical theorems for convex sets, Discrete Comput. Geom. 19
     (1998), 427–435.

[20] A. Pór and P. Valtr, The partitioned version of the Erdős-Szekeres theorem, Discrete Comput.
     Geom. 28 (2002), 625–637.

[21] A. Suk, A note on order-type homogeneous point sets, Mathematika 60 (2014), 37–42.

[22] G. Tóth and P. Valtr, The Erdős-Szekeres theorem: Upper bounds and related results, Combi-
     natorial and Computational Geometry (J.E. Goodman et al., eds.), Publ. M.S.R.I. 52 (2006)
     557–568.

[23] G. Tóth and P. Valtr, Note on the Erdős-Szekeres theorem, Discrete Comput. Geom. 19 (1998),
     457–459.




                                                7
