                                                                     Convex polytopes from fewer points
                                                                        Cosmin Pohoata                 Dmitrii Zakharov
arXiv:2208.04878v1 [math.CO] 9 Aug 2022




                                                                                             Abstract
                                                    Let ESd (n) be the smallest integer such that any set of ESd (n) points in Rd in general position
                                                contains n points in convex position. In 1960, Erdős and Szekeres showed that ES2 (n) ⩾ 2n−2 + 1
                                                holds, and famously conjectured that their construction is optimal. This was nearly settled by Suk
                                                in 2017, who showed that ES2 (n) ⩽ 2n+o(n) . In this paper, we prove that

                                                                                          ESd (n) = 2o(n)

                                                holds for all d ⩾ 3. In particular, this establishes that, in higher dimensions, substantially fewer
                                                points are needed in order to ensure the presence of a convex polytope on n vertices, compared to
                                                how many are required in the plane.


                                          1    Introduction
                                          For d ⩾ 2, a set of points X in Rd with |X| ⩾ d + 1 is said to be in general position if no d + 1 points
                                          from X lie on the same (d − 1)-dimensional hyperplane. A set of points P is in convex position if the
                                          points from P represent the vertices of a convex polytope.
                                          In their seminal 1935 paper, Erdős and Szekeres [10] proved that for every integer n ⩾ 3 there exists a
                                          smallest integer ES2 (n) such that any set of ES2 (n) points in the plane in general position must contain
                                          n points in convex position. Their paper contains two different proofs for the existence of ES2 (n),
                                          both of which have generated remarkable bodies of work in several directions over the years. Their
                                          first argument from [10] showed that ES2 (n) ⩽ R4 (5, n), and used a quantitative version of Ramsey’s
                                          Theorem (see [27] or [14, Theorem 4.18]) to obtain a rather poor bound for ES2 (n). Here Rk (s, n)
                                          denotes the standard 2-color Ramsey number for k-uniform hypergraphs, namely the minimum N
                                          such that every red-blue coloring of the unordered k-tuples of an N -element set contains a red set of
                                          size s or a blue set of size n, where a set is called red (blue) if all k-tuples from this set are red (blue).
                                          Their second argument was more geometric in nature and showed a much more refined estimate
                                                                                                             
                                                                                                       2n − 4
                                                                              ES2 (n) ⩽ f (n, n) =               + 1,
                                                                                                        n−2

                                          where f (k, ℓ) denotes the smallest integer N such that any planar point set of size N in general position
                                          must always contain a k-cup or an ℓ-cap. We refer to [20] for a nice exposition of both approaches.
                                          In 1960, Erdős and Szekeres showed that ES2 (n) ⩾ 2n−2 + 1 holds, and famously conjectured that
                                          their construction is optimal. After a long series of improvements (e.g. [5], [18], [30], [31], [22]),
                                          this was nearly settled by Suk [29] in 2017, where he showed that ES2 (n) ⩽ 2n+o(n) . The best
                                          known quantitative bound is due to Holmsen, Mojarrad, Pach, and Tardos [13], who optimized (and
                                                                                                                    1/2
                                          generalized) the argument from [29] and showed that ES2 (n) ⩽ 2n+O(n log n) . Here and throughout
                                          the rest of the paper all asymptotic notation is in the n → ∞ regime.


                                                                                                 1
Despite a lot of activity around this problem, the higher dimensional story has managed to remain
quite mysterious during all this time. As Erdős and Szekeres note themselves in [10], the existence
of ESd (n) also follows from Ramsey’s theorem, applied in the same vein as in their first proof. By
Carathéodory’s theorem [4], it is easy to see that for every d ⩾ 2, any configuration of d + 3 points in
general position in Rd must contain at least d + 2 points in convex position, so the general estimate
ESd (n) ⩽ Rd+2 (d + 3, n) holds. See also [7] or [12] for more detailed discussions. Similarly, this only
yields a very modest quantitative upper bound for ESd (n), which in fact even becomes worse and
worse as the dimension, and thus also the uniformity of the Ramsey number in question, increases.
We refer to [6] and [24] for the state of the art on these particular hypergraph Ramsey numbers (and
several others).
On the other hand, a simple projection argument, originally due to Valtr [32] (cf. [23]), defies the
implicit higher uniformity of the problem in Rd . By considering a set of ESd−1 (n) points in general
position in Rd , projecting onto a generic (d − 1)-dimensional hyperplane, finding a convex subset
inside the projection, and then ultimately lifting this set back to get a convex subset in the original
configuration, it immediately follows that ESd (n) ⩽ ESd−1 (n) must hold for every d ⩾ 3, i.e.

                                   ESd (n) ⩽ ESd−1 (n) ⩽ . . . ⩽ ES2 (n).                                    (1)

In particular, any upper bound for the two-dimensional problem yields an upper bound for the ESd (n),
which means that Suk’s theorem automatically implies that ESd (n) ⩽ 2n+o(n) holds for all d ⩾ 2. The
previously best known result for d ⩾ 3 is only a technical refinement of the above projection argument.
By projecting onto a generic (d − 1)-dimensional hyperplane from a fixed point of the configuration
rather than from infinity, Károlyi [15] observed that ESd (n) ⩽ ESd−1 (n − 1) + 1 holds. Nevertheless,
this clearly only gives an upper bound of the same (asymptotic) quality as (1) for ESd (n) when d ⩾ 3.
The question of whether ES3 (n) could potentially be asymptotically smaller than ES2 (n) has been
raised by several researchers in various forms, and even conflicting conjectures have been proposed over
the years. See for example [20, Chapter 3.1, page 33] and the beautiful survey [23] for nice accounts.
In this paper, we address this problem and confirm that in higher dimensions substantially fewer points
are needed in order to ensure the presence of a convex polytope on n vertices, compared to how many
are required in the plane. This is already true starting with d = 3.
Our main new result is in fact the following subexponential upper bound for the Erdős-Szekeres
function in 3-space.

Theorem 1.1 For any ǫ > 0, there exists n0 (ǫ) such that for every n ⩾ n0 (ǫ), the following holds: if
X ⊂ R3 is a set of points in general position with |X| ⩾ 2ǫn , then X must always contain n points in
convex position. In other words,
                                            ES3 (n) = 2o(n) .

Together with the inequality chain from (1), Theorem 1.1 implies that ESd (n) = 2o(n) holds for
                                   disproves the prediction of Morris and Soltan from [23], who
all d ⩾ 3. Among other things, this
conjectured that ESd (n) = Ω 22n/d , and in fact also ESd (n) = 4ESd (n − d) − 3, should hold for all
d ⩾ 2 and n > ⌊(3d + 1)/2⌋.
Our second result is a quantitative version of the so-called positive fraction Erdős-Szekeres theorem
in R3 . We say that a collection of sets X1 , . . . , Xn ⊂ Rd is in convex position if for every i = 1, . . . , n
                                      S
the convex hulls conv(Xi ) and conv( j6=i Xj ) are disjoint. Note that this is a stronger condition than
just to require that for any x1 ∈ X1 , . . . , xn ∈ Xn the set {x1 , . . . , xn } is in convex position.

                                                       2
Theorem 1.2 There exist a sufficiently large positive integer n0 such that for all n ⩾ n0 the following
holds: any set in general position X ⊂ R3 with |X | ⩾ ES3 (8n) must contain a collection of subsets
X1 , . . . , Xn ⊂ X in convex position such that
                                                             |X |
                                                 |Xi | ⩾
                                                           ES3 (8n)8
for every i = 1, . . . , n.

It follows from Theorem 1.1 and Theorem 1.2 that for every n ⩾ 3, there is ǫn = (1/2)o(n) such that
every set X ⊂ R3 in general position must contain n subsets X1 , . . . , Xn ⊂ X with |Xi | ⩾ ǫn |X |, for all
i = 1, . . . , n, and such that for every choice of x1 ∈ X1 , . . . , xk ∈ Xk , the set {x1 , . . . , xk } is in convex
position. By a projection argument in the same style with the one behind (1), it is easy to see that
this further implies the following quantitative version of the positive fraction Erdős-Szekeres theorem
in Rd .

Theorem 1.3 For every d ⩾ 3 and n ⩾ 3, there exists ǫn = (1/2)o(n) such that the following holds:
any set X ⊂ Rd in general position and of size |X | ⩾ ES3 (8n) must contain a collection of n subsets
X1 , . . . , Xn in convex position with |Xi | ⩾ ǫn |X |, for all i = 1, . . . , n.

The first such result was established by Bárány and Valtr in [2] in R2 for all sets X ⊂ R2 satisfying
|X | ⩾ ES2 (n), with an ǫ−1   n doubly exponential in n. This was later refined by Pach and Solymosi in
[25], and then by Por and Valtr in [26], who showed that the planar version of the above statement
holds with ǫn = n · 2−32n . This is in      √ some sense sharp, because on the other hand it can be shown
that there exists a constant κ ≈ 1/ 2 and a set X ⊂ R2 for which there is no collection of subsets
X1 , . . . , Xn with |Xi | ⩾ κn |X | for all i = 1, . . . , n, and with the required property. See [26, Section 6.2]
for more details. In contrast, Theorem 1.3 shows that for all d ⩾ 3 the positive fraction Erdős-Szekeres
theorem holds with an ǫ−1    n which is subexponential in n.



2     Preliminaries
In this section, we collect several results and preliminary lemmas that we will need for the proof of
Theorem 1.1.

Two-dimensional prerequisites. The first theorem is a well-known result from [10], commonly
referred to as the Erdős-Szekeres cups-vs-caps theorem. Let P ⊂ R2 be a set of points in general
position, and let |P | = a. We say that P is an a-cap (a-cup) if P is in convex position and its convex
hull is bounded from below (above) by a single edge. Equivalently, note that P is a cup if and only if
for every point p ∈ P , there is a line ℓ containing p such that all p′ ∈ p, p′ 6= p lie above ℓ. Similarly
Q ⊂ R2 is a cap if and only if for every q ∈ Q, there is a line γ containing q such that all q ′ ∈ Q,
q ′ 6= q lie below γ.

Theorem 2.1 Let a, b ⩾ 2 be positive integers, and let f (a, b) be the smallest N such that any set of
points X ⊂ R2 in general position and with |X| ⩾ N must always contain an a-cap or a b-cup. Then,
                                                        
                                                 a+b−4
                                    f (a, b) =              + 1.
                                                  a−2

                                                           3
The next theorem is the planar positive fraction Erdős-Szekeres theorem due to Pór and Valtr [26],
discussed above. We record its statement below together with some terminology.

Theorem 2.2 Let k ⩾ 3 and let X ⊂ R2 be a finite point set in general position such that |X| ⩾ 240k .
Then there is a k-element subset P ⊂ X such that either a k + 1-cap or a k + 1-cup, and the regions
T1 . . . , Tk from the support of X satisfy |Ti ∩ X| ⩾ |X|/240k . In particular, every k-tuple obtained by
selecting one point from each Ti ∩ X, i = 1, . . . , k is in a convex position.

Given a k + 1-cap or k + 1-cup P = {x1 , . . . , xk+1 }, where the points are sorted from left to right
according to some coordinate system, the support of P is the collection of regions {T1 , . . . , Tk }, where Ti
is the region outside of conv(P ) is bounded by the segments xi xi+1 and by lines xi−1 xi and xi+1 xi+2
(where the indices are taken modulo k + 1 at the endpoints). Given X ⊂ R2 and the structure
induced by Theorem 2.2, we shall also sometimes call P the supporting polygon of the configuration
and the edges {x1 x2 , . . . , xk xk+1 }, which are incident to its support, as the supporting edges of P . It
is perhaps important to also emphasize that the version of Theorem 2.2 cited above is not quite the
original theorem of Pór and Valtr from [26], but rather a quick consequence. We refer to [29] for more
details about how Theorem 2.2 follows from [26, Theorem 4].
Both Theorem 2.1 and Theorem 2.2 played a crucial in Suk’s proof from [29], and, despite their
two-dimensional nature, will also play an important role in the proof of Theorem 1.1.

Cups-vs-caps in R3 . Our next preliminary result is a simple three-dimensional generalization of
Theorem 2.1, and which may be of independent interest. The statement requires a little bit of setup.
Given a convex set C ⊂ R3 , we say that a set X ⊂ R3 is C-free if for any distinct x, y ∈ X the line
l = xy does not intersect C. A set Y ⊂ R3 is called a C-cap if any point y ∈ Y does not belong to the
set conv(C ∪ (Y \ {y})).

Proposition 2.1 Let P be a polytope and let X ⊂ R3 be a finite P -free set in general position. Let
                                                                                 e(P )
e(P ) denote the number of edges of P . If for some a, b ⩾ 1 we have |X| > a+b−4
                                                                            a−2         , then either X
contains a P -cap of size a or a convex set of size b.


Proof: First observe that for any line l such that l ∩ P = ∅ there exists an edge e of P such that the
projections of l and P along e are disjoint. Indeed, let us consider the projection π : R3 → R2 along
l. Then π(l) is a point and it is disjoint from the polygon π(P ). So there exists an edge e′ of π(P )
such that the line (e′ ) spanned by e′ separates π(l) from π(P ). Let e be an edge of P in the preimage
π −1 (e′ ); it is then easy to see that e satisfies the desired condition.
Let e be an edge of P , denote by πe the projection along e. Define a partial order ≺e on X as follows:
for x, y ∈ X we have y ≺e x if and only if πe (y) ∈ conv (πe (P ) ∪ {πe (x)}). Clearly, ≺e is a partial
order on X. The observation above implies that any points x, y ∈ X are incomparable with respect
to ≺e for at least one edge e of P . Dilworth’s theorem [9] then implies that there exists a set X ′ ⊂ X
of size at least |X|1/e(P ) which is an antichain with respect to the partial order ≺e , for some edge e
of P . Indeed, if there is no such large antichain with respect to any of the partial orders ≺e , then
for every edge e of P there must exist a partition of X into < |X|1/e(P ) chains with respect to ≺e .
Superimposing these e(P ) partitions of X gives a decomposition of X into < |X| sets, where each set
is a chain with respect to all partial orders ≺e , e ∈ e(P ). But such a decomposition is impossible: at


                                                      4
least two distinct elements x, y of X must fall into the same set, while on the other hand x and y must
incomparable with respect to ≺e for at least one edge e of P .
By Theorem 2.1, applied to the projection πe (X ′ ) with parameters a, b and an appropriately chosen
coordinate system, we conclude that either πe (X ′ ) contains a πe (P )-cap of size a or a convex set on
the plane of size b. Lifting either of these sets to R3 gives us a P -cap of size a or a convex set of size
b in X ′ ⊂ X, respectively.                                                                              ✷

Above and below in space. Let π : R3 → R2 be the projection onto the first 2 coordinates. For
two disjoint line segments ab, cd ⊂ R3 whose projections π(ab) and π(cd) intersect at a point x ∈ R2 ,
we say that ab lies above (below) cd if the third coordinate of the point ab ∩ π −1 (x) is larger (smaller)
than the third coordinate of the point cd ∩ π −1 (x).

Proposition 2.2 For any k ⩾ 4 there exists a number AB(k) such that the following holds for any
N ⩾ AB(k). Let x1 , . . . , xN ∈ R3 be points in general position such that the projections π(xi ),
i = 1, . . . , N , are consecutive vertices of a convex polygon in R2 . Then there is a k-element set
S ⊂ [N ] such that either for any indices i < i′ < j < j ′ ∈ S the segment xi xj is above xi′ xj ′ or the
same condition holds with ‘above’ replaced by ‘below’.


Proof: Consider the following 2-coloringn        of theo 4-element subsets of {x1 , . . . , xN }: for every 4-tuple
                 ′          ′                 ′      ′
1 ⩽ i < i < j < j ⩽ N , say xi , xi , xj , xj is red if the segment xi xj is above xi′ xj ′ , and say
n                    o
  xi , x′i , xj , x′j is blue otherwise. Since the points x1 , . . . , xN are in general position, note that the
latter happens precisely if and only if the segment xi xj is below xi′ xj ′ .
The conclusion thus follows from Ramsey’s theorem (see [27] or [14, Theorem 4.18]): any number
AB(k) ⩾ R4 (k, k) satisfies the statement.                                                  ✷


Proposition 2.3 Let X1 , X2 , X3 , X4 ⊂ R3 be pairwise disjoints sets such that X1 ∪ X2 ∪ X3 ∪ X4 is
in general position and for any xi ∈ Xi , i = 1, . . . , 4 the segment x1 x3 is above x2 x4 (in particular,
their projections on R2 intersect). Then convex hulls conv(X1 ∪ X3 ) and conv(X2 ∪ X4 ) are disjoint.


Proof: The proof is based on the following classical result known as Kirchberger’s theorem [17]. See
also [1] for an excellent exposition.

Theorem 2.3 Let A, B ⊂ Rd be arbitrary non-empty sets such that conv(A) ∩ conv(B) 6= ∅. Then
there exists a subset A′ ⊂ A and a subset B ′ ⊂ B such that conv(A′ ) ∩ conv(B ′ ) 6= ∅ and |A′ | + |B ′ | ⩽
d + 2.

Now we prove Proposition 2.3. Suppose that convex hulls of sets X1 ∪ X3 and X2 ∪ X4 intersect.
Then by Theorem 2.3 we can find sets A ⊂ X1 ∪ X3 and B ⊂ X2 ∪ X4 such that |A| + |B| = 5 and
conv(A) ∩ conv(B) 6= ∅.
Let Yi = π(Xi ), i = 1, . . . , 4. By assumption, for any yi ∈ Yi the segments y1 y3 and y2 y4 intersect.
Then it is easy to see that the collection Y1 , Y2 , Y3 , Y4 is in convex position. This implies that neither
of the sets A, B is fully contained in any set Xi , i = 1, . . . , 4. Without loss of generality, we may
assume that A = {x1 , x3 }, B = {x2 , x4 , x′4 } where x1 ∈ X1 , x2 ∈ X2 , x3 ∈ X3 and x4 , x′4 ∈ X4 . By

                                                        5
assumption, both segments x2 x4 and x2 x′4 are below x1 x3 . This means that the segment x1 x3 and the
triangle conv(x2 , x4 , x′4 ) are disjoint. But this contradicts the assumption that conv(A) ∩ conv(B) 6= ∅.
✷

Combining these two propositions we obtain:

Corollary 2.4 Let X ⊂ R3 be a set of points in general position such that the projection π(X) is in
convex position. If N ⩾ AB(k) then there are points x1 , . . . , xk ∈ X such that π(x1 ), . . . , π(xk ) are
consecutive vertices of a convex polygon on the plane and for any 1 ⩽ a ⩽ b ⩽ c ⩽ k the convex hulls
of the sets

                  {x1 , . . . , xa−1 } ∪ {xb , . . . , xc−1 }   and   {xa , . . . , xb−1 } ∪ {xc , . . . , xk }

are disjoint.

As a sidenote, we believe that finding the smallest value AB(k) for which the conclusion of Proposition
2.2 holds for all N ⩾ AB(k) might be an interesting problem for its own sake. For example, without too
much effort, one can readily note that the 2-coloring from the proof of Proposition 2.2 is semialgebraic
and of low complexity, which means that the improved quantitative bounds for semi-algebraic Ramsey
numbers (e.g. [28]) immediately yield better information about AB(k) than the proof of Proposition
2.2 does. Nevertheless, such improvements only seem to have a rather immaterial effect on our o(n)
term in Theorem 1.1, see also the remark at the end of Section 3 for more details.

2-Separability. We call a collection of sets X1 , . . . , Xk ⊂ R3 2-separated if for any set of indices
i, j, i′ , j ′ ∈ [k] such that {i, j} ∩ {i′ , j ′ } = ∅ we have

                                       conv(Xi ∪ Xj ) ∩ conv(Xi′ ∪ Xj ′ ) = ∅.

                                                                                                                  3
Proposition 2.5 Let X1 , . . . , Xk ⊂ R3 be finite pairwise disjoint sets of size at least 2k such that
                                                                                         3
X1 ∪ . . . ∪ Xk is in general position. Then, there exist Yi ⊂ Xi such that |Yi | ⩾ 2−k |Xi | for every
i = 1, . . . , k, and the collection Y1 , . . . , Yk is 2-separated.

The proof of Theorem 2.5 rests upon the observation that for every 1 ⩽ i1 < i2 < i3 < i4 ⩽ k, there
exist subsets Yij ⊂ Xij with |Yij | ⩾ |Xij |/2 for all j = 1, . . . , 4, and such that the convex hulls of
sets Yi1 ∪ Yi2 and Yi3 ∪ Yi4 are disjoint. This in turn follows from the following consequence of the
so-called ham sandwich theorem from topology, which was originally conjectured by Steinhaus, proved
by Banach in 1938, and subsequently generalized by Stone and Tukey in 1942. See for example [3]
and the references therein.
For a hyperplane H ⊂ Rd we denote by H + and H − the two closed half-spaces with boundary H. Note
that in order for the half-spaces H + and H − to be properly defined one also has to fix an orientation
on H: otherwise, there will be no way to distinguish between H + and H − . So whenever we talk about
half-spaces corresponding to a given hyperplane H we implicitly assume that H is oriented.

Lemma 2.6 Let d and r be integers such that 1 ⩽ r ⩽ d. Let X1 , . . . , Xd+1 ⊂ Rd be arbitrary finite
sets. Then there exists a hyperplane H such that the closed half-space H + intersects the sets X1 , . . . , Xr
in at least half of the elements and the closed half-space H − intersects the sets Xr+1 , . . . , Xd+1 in at
least half of the elements.

                                                                6
Proof: By the discrete version of the ham sandwich theorem [21, Theorem 3.1.2], there exists a
hyperplane H such that for any i = 1, . . . , d we have |H + ∩ Xi |, |H − ∩ Xi | ⩾ |Xi |/2. For the last
set Xd+1 we have either |H + ∩ Xd+1 | ⩾ |Xd+1 |/2 or |H − ∩ Xd+1 | ⩾ |Xd+1 |/2, so after choosing an
appropriate orientation of H we obtain the claim.                                                     ✷

Proof of Proposition 2.5: By Lemma 2.6, applied in R3 and with r = 2, it follows that for every
1 ⩽ i1 < i2 < i3 < i4 ⩽ k, there exist subsets Yij ⊂ Xij with |Yij | ⩾ |Xij |/2 for all j = 1, . . . , 4, and
such that the convex hulls of sets Yi1 ∪ Yi2 , Yi3 ∪ Yi4 are disjoint. Indeed, this is because one can take
Yi1 and Yi2 to be the subsets of Xi1 and Xi2 that are in H + and Yi3 ⊂ Xi3 and Yi4 ⊂ Xi4 to be the
subsets in H − . Since the union Yi1 ∪ Yi2 ∪ Yi3 ∪ Yi4 is in general position we can slightly perturb the
hyperplane H to ensure that sets Yij , j = 1, . . . , 4 are disjoint from H and are still contained in the
respective half-spaces. Clearly, in this case we must have
                             conv(Yi1 ∪ Yi2 ) ∩ conv(Yi3 ∪ Yi4 ) ⊂ H + ∩ H − = H,
and it follows that the convex hulls are indeed disjoint.
                                                                                  [k]                            k
We apply this fact repeatedly, in stages, as follows. Label elements of            4 by numbers from 1 to         4
arbitrarily. At stage 0, we have the initial list of (original) sets
                                            (0)                 (0)
                                          X1      := X1 , . . . , Xk := Xk ,
which we will be updating from step to step.
For every r = 1, . . . , k4 , the list of sets at the end of stage r will consist of k − 4 of the sets from
                           

the list at stage r − 1 together with 4 new sets corresponding to the r-th 4-tuple in [k]
                                                                                                       
                                                                                                     4   . More
                                                         [k]        (r)     (r−1)
precisely, if ℓ1 < ℓ2 < ℓ3 < ℓ4 is the r-th 4-tuple in 4 , then Xu = Xk            for all u 6∈ {ℓ1 , ℓ2 , ℓ3 , ℓ4 },
and the 4 new sets are obtained by applying Lemma 2.6 in the three different ways to the sets
  (r−1)    (r−1)    (r−1)    (r−1)                                            (r−1)
Xℓ1 , Xℓ2 , Xℓ3 , Xℓ4              from step r − 1. The subsets Yℓj ⊂ Xℓj           thus obtained for each
                                                          (r)
j = 1, . . . , 4 are then added to the new list as Xℓj . At the end of this process, the collection of sets
{Yu ⊂ Xu : u =     1, . . . , k} from   the final list is 2-separated, by design. Moreover, each u is involved in
precisely k−1   3   4-tuples     in  [k]
                                      4 , so it is easy to see that each final set Yu satisfies
                                                        |Xu |   |Xu |
                                             |Yu | ⩾      k−1 >       .
                                                       23( 3 )   2k3
                                                                                                                   ✷

Separable sets in convex position. An important property of 2-separated sets that we will take
advantage of in the proof of Theorem 1.1 is given by the following.

Proposition 2.7 Let X1 , . . . , Xk ⊂ R3 be a 2-separated collection of sets in convex position. Fix
arbitrary xi ∈ Xi and consider any plane H ⊂ R3 which does not contain any of the points xi . Then
there exists another plane H̃ ⊂ R3 such that for any i ∈ [k] we have Xi ⊂ H̃ + if xi ∈ H + and Xi ⊂ H̃ −
if xi ∈ H − .

Proof: Let S + ⊂ [k] be the set of indices i such that xi ∈ H + and let S − = [k] \ S + . Then the
existence of the plane H̃ satisfying the desired condition is equivalent to showing that
                                                               
                                        [                  [
                                conv       Xi  ∩ conv       Xi  = ∅.
                                           i∈S +                  i∈S −


                                                           7
Suppose that this is not the case and apply Theorem 2.3 to sets X + = i∈S + Xi and X − = i∈S − Xi .
                                                                         S                   S

Let A+ ⊂ X + and A− ⊂ X − be the sets of size r and 5 − r such that conv(A+ ) ∩ conv(A− ) 6= ∅. Note
that r 6= 1, 4 since that would contradict the convex position of the sets X1 , . . . , Xk .
So we have r = 2 or 3. Let us consider r = 2, the other case can be obtained by interchanging
the roles of X − and X + . Let A+ = {y1 , y2 } and A− = {y3 , y4 , y5 }. For each j = 1, . . . , 5 let
zj ∈ {x1 , . . . , xk } be an element such that yj and zj belong to the same set Xij for some ij ∈ [k].
Let B + = {z1 , z2 } and B − = {z3 , z4 , z5 }. Then the sets B + and B − are separated by the plane
H and so conv(B + ) ∩ conv(B − ) = ∅. By a continuity argument we conclude that one can choose
points wj on the segment [yj , zj ] such that the segment [w1 , w2 ] intersects the boundary of the triangle
conv(w3 , w4 , w5 ). By symmetry, we may assume that the intersection point lies on the edge [w3 , w4 ].
But this implies that
                                   conv(Xi1 ∪ Xi2 ) ∩ conv(Xi3 ∪ Xi4 ) 6= ∅,
and since the points xi1 , xi2 and xi3 , xi4 lie on different sides of H, we must have {i1 , i2 } ∩ {i3 , i4 } = ∅.
This contradicts the condition that sets X1 , . . . , Xk are 2-separated.                                        ✷



3    Proof of Theorem 1.1
Fix ǫ > 0, and let X ⊂ R3 be an arbitrary set in general position with |X| ⩾ 2ǫn . We will show that
for n sufficiently large, the set X must always contain a convex polytope with n vertices.
Suppose otherwise, and let π : R3 → R2 denote a projection along a generic direction. Denote
Y = π(X). Apply Theorem 2.2 to Y with parameter k0 = n1/4 , and denote by P the supporting
convex polygon (a (k0 + 1)-cap or (k0 + 1)-cup). Denote by T1 , . . . , Tk0 its support, and let e1 , . . . , ek0
be the corresponding supporting edges. For each i = 1, . . . , k0 , let Yi = Ti ∩ Y be the set of points in
Y clustered in the triangular region Ti . With this notation, Theorem 2.2 states that |Yi | > 2−40k0 |X|
holds for each i = 1, . . . , k0 . Last but not least, let us also denote by Xi′ the preimage of Yi in X.
By Theorem 2.5, one can choose subsets Xi ⊂ Xi′ so that the collection X1 , . . . , Xk0 is 2-separated.
We have
                                 3             3                  3
                      |Xi | ⩾ 2−k0 |Xi′ | = 2−k0 |Yi | ⩾ 2−40k0 −k0 |X| ⩾ |X|1−δ ,
for some δ = δ(ǫ) → 0 as n → ∞. For every i = 1, . . . , k0 pick an arbitrary point xi ∈ Xi and note that
the projections π(x1 ), . . . , π(xk0 ) are consecutive vertices of a convex polygon. Let k be the largest
number such that AB(k) < k0 . Apply Corollary 2.4 to the points x1 , . . . , xk0 and denote the resulting
set of indices by {i1 , . . . , ik }. For simplicity let us relabel indices so that i1 = 1, . . . , ik = k.

Proposition 3.1 Let J = {j1 < j2 < j3 } ⊂ [k]. There exist (unbounded) polytopes PJ1 , PJ2 with at
most 3 edges each such that for j ∈ [k] we have
                                       (
                                         PJ1 , if j ∈ [1, j1 ) ∪ (j2 , j3 ],
                                Xj ⊂
                                         PJ2 , if j ∈ [j1 , j2 ) ∪ (j3 , k],

and such that sets PJ1 , PJ2 , conv(Xj2 ) are in convex position. Equivalently, no line l ⊂ R3 intersects all
3 sets PJ1 , PJ2 , conv(Xj2 ) at once.




                                                        8
Proof: Denote

                                                   Z1 = X1 ∪ . . . ∪ Xj1 −1 ,
                                                   Z2 = Xj1 ∪ . . . ∪ Xj2 −1 ,
                                                   Z3 = Xj2 +1 ∪ . . . ∪ Xj3 ,
                                                   Z4 = Xj3 +1 ∪ . . . ∪ Xk .

The conclusion of Corollary 2.4 implies that the convex hulls of the sets

                {x1 , . . . , xj1 −1 } ∪ {xj2 +1 , . . . , xj3 }   and {xj1 , . . . , xj2 } ∪ {xj3 +1 , . . . , xk }

are disjoint, so by Proposition 2.7 there must exist a plane H1 which also separates Z1 ∪ Z3 from
Z2 ∪ Z4 ∪ Xj2 . Similarly, the conclusion of Corollary 2.4 also implies that the convex hulls of the sets

                {x1 , . . . , xj1 −1 } ∪ {xj2 , . . . , xj3 } and      {xj1 , . . . , xj2 −1 } ∪ {xj3 +1 , . . . , xk }

are disjoint, so by Proposition 2.7 we must also have a plane H2 which separates Z1 ∪ Z3 ∪ Xj2 from
Z2 ∪ Z4 . Last but not least, let H0 be the plane spanned by the set π −1 (ej2 ). Clearly, H0 separates
Xj2 from Z1 ∪ Z2 ∪ Z3 ∪ Z4 .
Choose the orientations of planes H0 , H1 , H2 so that Xj2 ⊂ H0+ , Z1 ⊂ H1+ and Z2 ⊂ H2+ . Now we
define
                                       PJ1 = H0− ∩ H1+ ∩ H2+ ,
                                                    PJ2 = H0− ∩ H1− ∩ H2− .
Then Xj2 is separated from PJ1 ∪ PJ2 by the plane H0 , and the polytope PJǫ , ǫ ∈ {1, 2}, is separated
from PJ3−ǫ ∪ Xj2 by the plane Hǫ .
Clearly, PJǫ is an intersection of 3 half-spaces and so it has at most 3 edges.                              ✷

Fix J = {j1 < j2 < j3 } ∈ [k]                                                                  ′
                                  
                                3 , and define a partial order on Xj2 as follows. For x, x ∈ Xj2 we say
that x ≺J x′ if x ∈ conv({x′ } ∪ PJ1 ). Observe that an ≺J -antichain is a PJ1 -free set and by Proposition
3.1 a ≺J -chain is a PJ2 -free set. Let us color the triple J red if there is a PJ1 -free subset in Xj2 of size
|Xj2 |1/2 and blue if there is a PJ2 -free subset of size |Xj2 |1/2 . By Dilworth’s theorem [9], note that this
represents a well-defined red-blue coloring of the set of triples [k]
                                                                          
                                                                         3 .
By Ramsey’s theorem [27], it follows that for some t ≫k 1, we can find a monochromatic clique
{j1 , . . . , jt } ⊂ [k]. Without loss of generality, let us assume that it is a red clique. Then for any l ∈ [t],
we have                                          [
                                                         Xjm ⊂ Pj1l−1 ,jl ,jt
                                                 m: m6=l,l−1

and since {jl−1 , jl , jt } is red, we can choose a Pj1l−1 ,jl ,jt -free set Zl ⊂ Xjl of size |Xjl |1/2 ⩾ |X|1/2(1−δ) .
                      3
If |Zl | > n+2n/t2n/t
                         , then Proposition 2.1 ensures that Zl contains either a convex subset of size n or
  1
Pjl−1 ,jl ,jt -cap of size 2n/t.
However, if our original set X ⊂ R3 does not contain convex sets of size n, the former case is automat-
ically impossible for every l ∈ [t]. On the other hand, if each set Zj contains a Pj1l−1 ,jl ,jt -cap Kl ⊂ Zl
of size 2n/t, for every l ∈ [t], then it is easy to see that K = K1 ∪ K3 ∪ . . . ∪ K2⌈t/2⌉−1 is a convex set
of size at least n. Indeed, on one hand, for any l ⩽ t/2, a point x ∈ K2j+1 can’t lie in the convex hull

                                            conv(Pj12l ,j2l+1 ,jt ∪ (K2j+1 \ {x})),

                                                                   9
whereas, on the other hand, we have K2r+1 ⊂ Pj12l ,j2l+1 ,jt for any r 6= l; therefore, the point x also does
not lie in the convex hull
                                                            
                                [
                         conv  K2r+1 ∪ (K2l+1 \ {x}) = conv(K \ {x}).
                                     r6=l

This implies that the set K is in convex position.
We conclude that if X does not contain a convex set of size n then

                                                 n + 2n/t 6/(1−δ)
                                                        
                                     2/(1−δ)
                          |X| ⩽ |Zl |        ⩽                    ⩽ tCn/t ,
                                                   2n/t

for some constant C > 0 and all sufficiently large n. Since t → ∞ as n → ∞, this implies |X| = 2o(n) .
This completes the proof of Theorem 1.1.

Remark: One can verify that our argument produces an o(n) term which is of the form log n n ,
                                                                                                                   (5)
where log(k) denotes the k-th iterated logarithm function. As already alluded to in the comment made
after Corollary 2.4, several slight optimizations are possible. For example, one can save a log in the
upper bound of the above-below function AB(k) by using its semialgebraic nature, and then relying
on improved quantitative bounds for semialgebraic Ramsey numbers. Another improvement can come
from a closer attention to the last application of Ramsey’s theorem in this section; the red/blue coloring
of [k]
     3 constructed in the proof of Theorem 1.1 has an additional monotonicity property: for any set
of indices j1 ⩽ j2 < j3 < j4 ⩽ j5 , if the triple {j1 , j3 , j4 } is red then the triple {j2 , j3 , j5 } is also red. If
                                                                         [k]
Rm (t) denotes the smallest k such that any such coloring of 3 contains a monochromatic clique of
size t, one can show that Rm (t) is exponential in t, which in turn yields a superior dependence between
our parameters t and k than the double exponential upper bound on R3 (n) provides. Since all such
refinements only get to reduce the number of iterations of the logarithm in the ultimate bound (at the
price of substantial technicalities), we decided to not pursue these in any more detail in the current
paper in order to maximize the clarity of the main new ideas.


4     Proof of Theorem 1.2
Let P ⊂ Rd be a convex polytope. For i = 0, . . . , d we denote by Fi (P ) the set of faces of P of
dimension i. For a subset of faces S ⊂ Fd−1 (P ) let R(P, S) be the set of points x ∈ Rd such that a
face F ∈ Fd−1 (P ) separates x from P if and only if F ∈ S. For i = 0, . . . , d we denote fi (P ) = |Fi (P )|.

Proposition 4.1 For any simplicial polytope P ⊂ Rd and any t ⩾ 1 the number of sets S ⊂ Fd−1 (P )
of size t such that R(P, S) is non-empty is at most dtt fd−1 (P ).


Proof: Let G(P ) = (V, E) be the adjacency graph of (d − 1)-dimensional faces of P . This is a graph
with V = Fd−1 (P ), where two faces F, F ′ are adjacent if their intersection is a (d − 2)-dimensional face
of P . Let S ⊂ Fd−1 (P ) be such that R(P, S) is non-empty and contains a point x ∈ Rd . We claim
that then S is connected in G. If x ∈ P then S = ∅ is connected. Now suppose that x 6∈ P and denote
S = {F1 , . . . , Fk }, k ⩾ 1. Let H be a hyperplane separating x from P . Let P ′ be the projection of P
on the plane H through the point x. In other words, P ′ = conv(P ∪ {x}) ∩ H.

                                                          10
Let φ : P ′ → P be a function which maps a point y ∈ P ′ to the first point of intersection of the line
(x, y) with P . We claim that the image of φ is precisely the union U = F1 ∪ . . . ∪ Fk . Indeed, suppose
that F ∈ Fd−1 (P ) contains the point φ(y) for some y ∈ P ′ . Then it is clear that F separates P from
x and so F ∈ S, which implies φ(y) ∈ U . Conversely, if z ∈ Fi for some i = 1, . . . , k then Fi separates
P from x and so the interval [x, z] does not contain any other points of P and so z = φ(y), where y is
the point of intersection of H with [x, z].
Since the sets Fi′ = φ−1 (Fi ) form a decomposition (up to polyhedra of smaller dimension) of a convex
polytope P ′ into convex polytopes, the adjacency graph of Fi′ -s is connected. On the other hand, for
any i, j we have dim Fi′ ∩ Fj′ = dim Fi ∩ Fj , which implies that the adjacency graphs of Fi -s and Fi′ -s
are isomorphic and so S is connected as well.
The statement now follows from the following graph theoretic fact.
Lemma 4.2 Let G be a graph with maximum degree d, and let t ⩾ 1. Then the number of connected
                                       1     dt
subgraphs in G of size t is at most (d−1)t+1  t |V (G)|.

                                                                                              1     dt
Proof of Lemma 4.2: Given any vertex v ∈ V , we claim that there are at most N = (d−1)t+1            t
connected subgraphs in G containing v. Indeed, we claim that the maximal number of connected
subgraphs of a given size t containing a fixed vertex is attained when G is the infinite d-regular tree
Td . Let Pv (G) be the set of paths p in G starting from v which do not contain ‘turning points’, i.e.
no edge of G appears in p twice in a row. Say that two paths p, p′ ∈ Pv (G) are connected by an edge
if one can be obtained from another by adding one edge at the end. Note that this defines a graph on
Pv (G), which is in fact an infinite tree with maximum degree d. Moreover, note that the assignment
                                p 7→ the end vertex of p which is not v
defines a graph homomorphism f : Pv (G) → G. For any connected set S ⊂ V (G) containing v we
can construct a connected subset S ′ ⊂ Pv (G) as follows: let T be a spanning tree of S in G, then for
x ∈ S consider the unique path x′ from x to v in T and let S ′ be the set of all such paths.
Clearly, we have f (S ′ ) = S, so each connected set S ⊂ V (G) defines a unique connected set S ′ ⊂ Pv (G)
of the same size. Thus, the number of connected subgraphs of size t in G containing v is at most the
number of connected subgraphs in Pv (G) containing the empty path. Next, since the maximal degree
in Pv (G) is d, we can embed it into the infinite d-regular tree Td . Since the number of subtrees in Td
of size t containing a fixed vertex is precisely N (see for example [19]), the conclusion follows.       ✷
The maximum degree of the adjacency graph of our polytope P ⊂ Rd is at most d and the sets
S ⊂ Fd−1 (P ) of size t such that R(P, S) is non-empty induce connected subgraphs of G of size t, so
Lemma 4.2 applied for G(P ) shows that the number of sets S ⊂ Fd−1 (P ) of size t with R(P, S) 6= ∅
is indeed at most dtt fd−1 (P ).                                                                  ✷
For a convex polytope P and a point x in Rd let S(P, x) ⊂ Fd−1 (P ) be the set of faces which separate
x from P .

Lemma 4.3 Let x1 , . . . , xk ∈ Rd \ P be such that sets S(P, xi ) are pairwise disjoint. Then points
x1 , . . . , xk are in convex position.

Proof: Indeed, take any F ∈ S(P, xi ), then xi is separated by F from P . But for any j 6= i we have
F 6∈ S(P, xj ) and so xj and P are on the same side from F . This implies that F separates xi from all
the points xj , j 6= i, and so x1 , . . . , xk are in convex position.                              ✷


                                                   11
Lemma 4.4 Let X ⊂ R3 be a finite set in convex position. Then there is a set Y ⊂ X of size at least
|X|/4 such that the sets S(conv(X \ Y ), x), x ∈ Y , are pairwise disjoint.


Proof: Let GX be the usual graph of the polytope conv(X). Since GX is planar, the Four Color
Theorem states that its vertices X can be colored with 4 colors in a way such that no edge of GX
connects vertices of the same color, or, in other words, that the chromatic number of GX , which we
denote as usual by χ(GX ), is at most 4 (see for example [8, Chapter 5] and the references therein). In
particular, this implies that the so-called independence number α(GX ) satisfies the inequality

                                                               |X|     |X|
                                                   α(GX ) ⩾          ⩾     .
                                                              χ(GX )    4

Hence there must exist an independent set Y ⊂ X of size at least |X|/4 in GX . We claim that such
a set Y has the required property that all the sets in the collection {S(conv(X \ Y ), x) : x ∈ Y } are
pairwise disjoint. Indeed, denote P = conv(X \ Y ), and suppose for the sake of contradiction that for
some x, y ∈ Y the sets S(P, x), S(P, y) have a common element F . Let H be the plane containing F
such that P ⊂ H + . Clearly, the set Z = X \ H + is contained in Y and contains at least 2 elements
x, y. Note that if a half-space contains at least 2 vertices of a polytope then it contains an edge of this
polytope. Applying this to the polytope conv(X) and the open half-space H − we conclude that Z is
not an independent set in the graph of conv(X). But Z ⊂ Y and Y is independent, which represents
a contradiction.                                                                                         ✷

Now we can prove Theorem 1.2. Let X ⊂ R3 be a set of size N ⩾ ES3 (8n) in general position. Then
by a standard double counting argument X contains at least
                                      N                  8n
                                      8n            N
                                    ES3 (8n)
                                              ⩾
                                                  ES3 (8n)
                                                      8n

8n-element subsets in convex position. Given a convex 8n-element set X ⊂ X , apply Lemma 4.4 and
let YX ⊂ X be the resulting set of size 2n. Let ZX = X \ YX . By the pigeonhole principle there is a
6n-element subset Z ⊂ X such that Z = ZX holds for at least
                                        −1             8n
                                         N          N
                                         6n      ES3 (8n)

convex 8n-element subsets X ⊂ X . Denote P = conv(Z). Now for each X with ZX = Z, consider the
following arrangement of 2n disjoint sets

                                                  SX = {S(P, x) | x ∈ YX }.

By [20, Section 5, Proposition 5.5.3], note that P has f2 (P ) ⩽ 2f0 (P ) = 12n faces. Fix a sequence of
numbers a1 , . . . , a2n ⩾ 1 such that a1 + . . . + a2n ⩽ 12n. By Proposition 4.1 the number of ways to
choose sets S1 , . . . , S2n such that |Si | = ai and Si = S(P, x) for some x ∈ R3 is at most
                        2n                   
                        Y               3ai
                              12n                 ⩽ (12n)2n (3e)a1 +...+a2n ⩽ 122n (3e)12n n2n .
                                         ai
                        i=1




                                                               12
The number of ways to choose the sequence (a1 , . . . , a2n ) is 12n
                                                                       
                                                                     2n . By the pigeonhole principle there
exists a collection of sets S = {S1 , . . . , S2n } such that SX = S for at least
            12n −1 −2n
                                            −1               8n
                                                                         N 2n     n4n     N 2n
               
                              −12n −2n N                   N
                    12    (3e)    n                                 ⩾                 ⩾                 (2)
             2n                               6n       ES3 (8n)       ES3 (8n)8n C n    ES3 (8n)8n
convex 8n-element sets X ⊂ X . Here C > 0 is an absolute constant and the last inequality holds for
sufficiently large n.
Now recall that for x ∈ X we have S(P, x) = Si if and only if x ∈ R(P, Si ). So a set
                                                  X = Y ∪ {x1 , . . . , x2n }
satisfies SX = S if and only if after a permutation of indices we have xi ∈ R(P, Si ) for i = 1, . . . , 2n. By
Lemma 4.3 any arrangement of points xi ∈ R(P, Si ) is in convex position, so the number of 8n-element
sets X ⊂ X in convex position such that SX = S is equal to
                                        |X ∩ R(P, S1 )| · . . . · |X ∩ R(P, S2n )|.
Using (2) and the upper bound |X ∩ R(P, Si )| ⩽ N , we can find indices i1 , . . . , in ∈ [2n] such that
                                                                          N
                                              |X ∩ R(P, Sij )| ⩾
                                                                       ES3 (8n)8
holds for any j = 1, . . . , n. Then the sets Xj = X ∩ R(P, Sij ) clearly satisfy the statement of the
theorem.


5    Concluding remarks
In this paper, we proved that ESd (n) = 2o(n) holds for all d ⩾ 3, thus showing that in space and in
higher dimensional Euclidean spaces only subexponentially many points are needed in order to ensure
the presence of a convex polytope on n vertices.
The best known lower bound for ESd (n) is due to Károlyi and Valtr [16], who showed that there exists
                  1
                 d−1
a set of 2cd n         points in Rd in general position which contains no convex subset of size n, namely
                                                                          1
                                                                         d−1
                                                     ESd (n) ⩾ 2cd n           .
Here cd > 0 is a constant which depends solely on the dimension d. The construction begins with a
singleton set X0 , and Xi+1 is obtained from Xi by replacing each point x ∈ Xi with the pair of points
                                 x + (ǫdi , ǫd−1
                                             i   , . . . , ǫi ) and x − (ǫdi , ǫd−1
                                                                                i   , . . . , ǫi ),
with ǫi > 0 sufficiently small, and then perturbing the set slightly so that Xi+1 remains also in general
position. At each step we have |Xi | = 2i , and the main observation is that
                                          mc(Xi+1 ) ⩽ mc(Xi ) + mc(π(Xi )),
where mc(X) represents the maximum size of a subset of X in convex position, and π is the projection
to the hyperplane xd = 0. We would like to conclude this paper by sharing our belief (also an
unpublished conjecture of Füredi, cf. [16]) that this construction may very well be optimal for all
d ⩾ 3, apart from the precise value of the constant cd in the exponent.

Acknowledgements. We would like to thank Karim Adiprasito, Boris Bukh, and David Conlon for
helpful discussions.

                                                                13
References
 [1] I. Bárány, Combinatorial Convexity, AMS University Lecture Series 77, 2021.

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

 [3] W. A. Beyer, A. Zardecki, The early history of the Ham Sandwich Theorem, Amer. Math. Monthly
     111 (2004), 58–61.

 [4] C. Carathéodory, Über den Variabilitätsbereich der Koeffizienten von Potenzreihen, Math. An-
     nalen, 64 (1907), 95–115.

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

 [6] D. Conlon, J. Fox, B. Sudakov, Hypergraph Ramsey numbers, J. Amer. Math. Soc. 23 (2010),
     247–266.

 [7] L. Danzer, B. Grunbaum, V. Klee, Helly’s theorem and its relatives, pp. 101–179. Convexity
     (Seattle, 1961), Proc. Symp. Pure Math. Vol. VII. Amer. Math. Soc., Providence, R.I., 1963. MR
     28:524

 [8] R. Diestel, Graph theory, 3rd Ed., Springer Verlag, 2005.

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

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

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

[12] B. Grunbaum, Convex Polytopes, Wiley, New York, 1967.

[13] A. F. Holmsen, H. N. Mojarrad, J. Pach, G. Tardos, Two extensions of the Erdős–Szekeres
     problem, Journal of the European Mathematical Society, 22(12): 3981–3995, 2020.

[14] S. Jukna, Extremal combinatorics: with applications in computer science, Springer Science, 2011.

[15] G. Károlyi, Ramsey-remainder for convex sets and the Erdős-Szekeres Theorem, Discr. Appl.
     Math., Volume 109, April 2001, Issues 1–2, 163–175.

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

[17] P. Kirchberger, Über Tchebychefsche Annäherungsmethoden, Math. Annalen, 57 (1903): 509–
     540.

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



                                                 14
[19] D. Knuth, The Art of Computer Programming, Vol. I, Addison Wesley, London, 1969, p. 396
     (Exercise 11).

[20] J. Matoušek, Lectures on discrete geometry, Graduate Texts in Mathematics, 212, Springer-Verlag,
     New York (2002).

[21] J. Matoušek, Using the Borsuk-Ulam Theorem: Lectures on Topological Methods in Combinatorics
     and Geometry, Springer Publishing Company, Incorporated, 2007.

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

[23] W. Morris, V. Soltan. The Erdős–Szekeres problem on points in convex position—a survey. Bull.
     Amer. Math. Soc. (N.S.), 37(4):437–458, 2000.

[24] D. Mubayi, A. Suk, Constructions in Ramsey theory, J. London Math. Soc. 97 (2018), 247–257.

[25] J. Pah, J. Solymosi, Canonial theorems for onvex sets, Discrete Comput. Geom. 19 (1998), 427–
     435.

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

[27] F. P. Ramsey, On a problem of formal logic, Proc. London Math. Soc., 30 (1930), 264–286.

[28] A. Suk, Semi-algebraic Ramsey numbers, J. Combin. Theory Ser. B., 116 (2016), 465–483.

[29] A, Suk, On the Erdős–Szekeres convex polygon problem, J. Am. Math. Soc. 30 (2017), 1047–1053.

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

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

[32] P. Valtr, Several results related to the Erdős-Szekeres theorem, Doctoral Dissertation, Charles
     University, Prague, 1996.

School of Mathematics, Institute for Advanced Study, Princeton, NJ 08540, USA
Email address: cosmin.pohoata@gmail.com

Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139, USA
Email address: zakharov2k@gmail.com




                                                 15
