index

Ramsey Numbers and Extremal Graphs: Two Combinatorics Results

The last two chapters of OpenAI’s collection of ten results sit in extremal combinatorics.1 They are the most classical problems in the set: one asks how many colours you need before a triangle becomes unavoidable, the other asks how many edges a graph can carry while avoiding a fixed subgraph.

Both chapters answer questions that Erdős posed and, in two cases, attached prize money to. Neither answer is a small improvement to a constant. The Ramsey chapter closes a gap between an exponential lower bound and a factorial upper bound that had stood since the 1950s. The extremal chapter produces explicit graphs that falsify two conjectures about how extremal numbers should behave.

The multicolour Ramsey function

Write Rk(3)R_k(3) for the least NN such that every colouring of the edges of the complete graph KNK_N with kk colours contains a monochromatic triangle. For k=2k = 2 the answer is 6: the edges of K5K_5 split into an outer pentagon and an inner pentagram, each a five-cycle and therefore triangle-free, while no two-colouring of K6K_6 escapes.

Two colours run out of room at six verticesR2(3) = 6: five vertices can be coloured without a monochromatic triangle, six cannot.
K5: a good colouring The complete graph on five vertices, two-coloured so that colour one forms the outer pentagon and colour two forms the inner pentagram. Neither colour class contains a triangle. Each colour class is a five-cycle. A five-cycle has no triangle, so no colour wins.
K6: every colouring fails The complete graph on six vertices with the same two-colouring extended by a central vertex. Three edges of colour one meet at the centre, forcing a monochromatic triangle, which is highlighted. The sixth vertex sends five edges into two colours, so some colour takes at least three. Here colour one closes a triangle.
colour onecolour twomonochromatic triangleRk(3) asks the same question with k colours instead of two.

The pigeonhole argument behind K6K_6 generalises. Pick a vertex, look at its N1N-1 edges, and note that some colour appears on at least (N1)/k(N-1)/k of them. If that neighbourhood contains an edge of the same colour you have a triangle; otherwise you have reduced to a (k1)(k-1)-colour problem on a smaller vertex set. Iterating the recurrence gives the Erdős–Szekeres-style bound, which after successive refinements stands at

Rk(3)(e16)k!+1(k4).R_k(3) \le \left(e - \tfrac{1}{6}\right)k! + 1 \qquad (k \ge 4).

Factorial growth. Written in the form Rk(3)=kθkR_k(3) = k^{\theta k}, this says θ1\theta \to 1.

Lower bounds worked from the other side, by exhibiting triangle-free colourings. The standard tool is a product construction: a triangle-free kk-colouring on N1N_1 vertices and a triangle-free \ell-colouring on N2N_2 vertices combine into a triangle-free (k+)(k+\ell)-colouring on N1N2N_1 N_2 vertices, so

Rk+(3)1(Rk(3)1)(R(3)1).R_{k+\ell}(3) - 1 \ge \bigl(R_k(3) - 1\bigr)\bigl(R_\ell(3) - 1\bigr).

Tensoring a good small colouring with itself is efficient, but it is inherently exponential: the best you can extract is ckc^k for whatever base cc your seed colouring supplies. Decades of work on sum-free partitions and hand-found colourings pushed that base up, ending at Rk(3)380k/5O(1)R_k(3) \ge 380^{k/5} - O(1).

The gap was not a constant factor

An exponential lower bound against a factorial upper bound is a widening gap, not a stubborn constant. Fekete’s lemma applied to the product construction shows the limit

L=limkRk(3)1/kL = \lim_{k \to \infty} R_k(3)^{1/k}

exists in [1,][1, \infty], and the open question was whether it is finite at all. Erdős offered $250 for the value of LL and $100 for deciding whether it is finite. Graham, Rothschild and Spencer recorded the superexponential growth question in their textbook; Conlon, Fox and Sudakov flagged the exponential-versus-factorial gap again in their survey.2

Plotting the exponent θ\theta makes the shape of the gap visible. The old lower bound’s exponent decays like 1/logk1/\log k, so it certified nothing at all in the limit.

The old lower bound had a vanishing exponentWrite the bounds as R = k^(θk) and plot θ. An exponential bound gives θ → 0.
Exponent θ in R_k(3) = k^(θk) plotted against the number of colours on a logarithmic axis. The factorial upper bound rises toward 1, the classical exponential lower bound decays toward 0, and the new lower bound climbs toward 1/3. 11/30101e41e71e10number of colours kexponent θupper: θ → 1new lower: θ → 1/3old lower: θ → 0Leading-order shapes with absolute constants suppressed
Upper bound (classical)
Rk(3) ≤ (e − 1/6)·k! + 1 for k ≥ 4
k(1+o(1))k, factorial growth
Lower bound (before)
Rk(3) ≥ 380k/5 − O(1)
purely exponential; θ decays like 1/log k
Lower bound (this work)
Rk(3) ≥ (c·k1/3 / log k)k
k(1/3−o(1))k, superexponential, so Rk(3) = kΘ(k)

Chapter 9 proves the following.

Theorem. c>0  k2:Rk(3)    (ck1/3logk) ⁣k.\textbf{Theorem. } \exists\, c > 0 \ \ \forall k \ge 2: \quad R_k(3) \;\ge\; \left(\frac{c\,k^{1/3}}{\log k}\right)^{\!k}.

Combined with the factorial upper bound this gives

k(1/3o(1))k    Rk(3)    k(1+o(1))k,soRk(3)=kΘ(k),k^{(1/3 - o(1))k} \;\le\; R_k(3) \;\le\; k^{(1 + o(1))k}, \qquad\text{so}\qquad R_k(3) = k^{\Theta(k)} ,

and in particular L=+L = +\infty. The growth rate is now pinned to within a constant factor in the exponent’s exponent, which is the coarse question that had been open. The exact constant, whether θ\theta is 1/31/3, 11, or something between, remains open.

How the colouring is built

The construction is recursive and its invariant is stronger than triangle-freeness: at stage jj, each colour class is required to be properly (j+1)(j+1)-colourable as a graph.

Vertices are grouped into blocks. Each block carries a palette PP, a subset of the available colours, recording exactly which colours are missing from that block; the rest are active there. Inside a block sits a relabelled copy of the previous stage’s colouring, using only the active colours, so every active colour arrives with a proper vertex labelling.

The work is in colouring edges between two blocks. Because the palettes were chosen by a maximal packing, distinct palettes differ in many colours in each direction, so for blocks PQP \ne Q there are colours a1,,asQPa_1,\dots,a_s \in Q \setminus P and b1,,bsPQb_1,\dots,b_s \in P \setminus Q. A vertex’s internal labels in those colours form a word in [H]s[H]^s. The choice of cross-edge colour is then made by a pair of fixed maps f,g:[H]s[H]sf, g : [H]^s \to [H]^s with the property that for all words x,yx, y there is a coordinate dd with

xd=f(y)doryd=g(x)d.x_d = f(y)_d \quad\text{or}\quad y_d = g(x)_d .

Such maps come from a saturated matrix: a random s×Hms \times H^m matrix over HH colours in which any m+1m+1 columns contain a row displaying every colour, which a union bound supplies for mHlogHm \asymp H\log H and sH2log2Hs \asymp H^2 \log^2 H. This ingredient is adapted from work of Alon, Ben-Eliezer, Shangguan and Tamo on zero-error list decoding; the chapter’s contribution is applying it to R(3,,3)R(3,\dots,3).

Two consequences do the combinatorial work. Every cross-edge colour is active at exactly one endpoint’s block and missing at the other, and the proper label at the active endpoint is determined by the opposite endpoint. Triangles spanning two blocks die because two same-coloured edges from an outside vertex force equal internal labels, so the edge between their endpoints cannot carry that colour. Triangles spanning three blocks die by a parity argument on symmetric differences: a colour would have to lie in PQP \triangle Q, QRQ \triangle R and PRP \triangle R simultaneously, which is impossible.

Multiplying palette-family sizes over HH stages yields a triangle-free colouring with kHH3log3Hk_H \asymp H^3 \log^3 H colours on at least (c0H)kH(c_0 H)^{k_H} vertices. Since Hk1/3/logkH \gg k^{1/3}/\log k, that is the theorem.

A corollary about Shannon capacity

The Ramsey–Shannon correspondence, implicit in Erdős, McEliece and Taylor and made explicit by Alon and Orlitsky, converts the bound into a statement about information theory.3 Given a triangle-free kk-colouring of KNK_N, let HiH_i be the graph of colour ii and take the complete join G=H1HkG = H_1 \vee \cdots \vee H_k. Then α(G)=2\alpha(G) = 2, while the NN diagonal words form an independent set in the kk-fold strong power, so the Shannon capacity satisfies Θ(G)N1/k\Theta(G) \ge N^{1/k}.

Setting N=Rk(3)1N = R_k(3) - 1 and using limkRk(3)1/k=\lim_k R_k(3)^{1/k} = \infty produces graphs with independence number 2 and arbitrarily large Shannon capacity. Shannon capacity therefore cannot be bounded above by any function of the independence number.

Turán-type extremal numbers

Chapter 10 changes the question. For a family F\mathcal{F} of graphs, the extremal number is

ex(n,F):=max{E(G):V(G)=n, G is F-free},\operatorname{ex}(n, \mathcal{F}) := \max\bigl\{\,|E(G)| : |V(G)| = n,\ G \text{ is } \mathcal{F}\text{-free}\,\bigr\},

where F\mathcal{F}-free means containing no member of F\mathcal{F} as a subgraph. For a single graph one writes ex(n,H)\operatorname{ex}(n, H). When HH is bipartite the answer is a polynomial n2γn^{2-\gamma} for some exponent, and determining those exponents is the central open programme of the subject.

Two extremal conjectures, two constructed counterexamplesEach row states the claim, the object that refutes it, and the gap the object opens.
The claim
A family behaves like one of its membersFor a finite family 𝓕 of graphs each containing a cycle, some F ∈ 𝓕 satisfies ex(n, F) ≤ C·ex(n, 𝓕).
Degeneracy fixes the exponentEvery fixed bipartite r-degenerate graph H satisfies ex(n, H) = O(n2−1/r).
Read as
Forbidding a family can only beat the best single member by a constant factor.
A sparse local structure should force a low global edge density.
Counterexample
A family built from subdivided K3,k𝓕 = {C4, C6} together with admissible quotients of two templates, all connected and bipartite.
A layered 2-degenerate graphEach layer adjoins one vertex per pair of vertices in the layer below, keeping H connected, bipartite and 2-degenerate.
Lower bound from
Incidence graphs of generalized quadrangles, one field characteristic per forbidden graph F.
A bipartite Hamming-ball graph with vertices independently retained, plus a second-moment count.
Upper bound from
Counting short paths in any 𝓕-free host graph.
Not needed: an entropy potential rises by a fixed amount per layer, so H cannot embed.
Separation
ex(n, 𝓕) = O(n4/3−1/48) while ex(n, F) = Ω(n4/3) for every FA polynomial gap, not a constant factor. Compactness fails.
ex(n, H) ≥ c·n3/2+ε for a 2-degenerate HAbove the predicted n3/2 by a polynomial factor. The r = 2 case fails.

Compactness: does a family reduce to one member?

Forbidding more graphs can only lower the extremal number. Erdős and Simonovits conjectured that it cannot lower it by much.4 The original formulation has easy counterexamples. The family {K1,2,2K2}\{K_{1,2}, 2K_2\} has ex(n,F)=1\operatorname{ex}(n, \mathcal{F}) = 1 while its members have extremal numbers n/2\lfloor n/2 \rfloor and n1n-1, so the corrected statement restricts to families whose members all contain a cycle:

For every finite nonempty family F\mathcal{F} of graphs, each containing a cycle, do there exist FFF \in \mathcal{F} and C>0C > 0 with ex(n,F)Cex(n,F)\operatorname{ex}(n, F) \le C \operatorname{ex}(n, \mathcal{F}) for all large nn?

The chapter answers no, and does so with a family whose members are all connected and bipartite.

Theorem.  F finite, connected, bipartite, each with a cycle:ex(n,F)=O ⁣(n4/31/48),ex(n,F)=Ω ⁣(n4/3)  (FF).\textbf{Theorem. } \exists\ \mathcal{F} \text{ finite, connected, bipartite, each with a cycle:}\quad \operatorname{ex}(n, \mathcal{F}) = O\!\left(n^{4/3 - 1/48}\right),\quad \operatorname{ex}(n, F) = \Omega\!\left(n^{4/3}\right)\ \ (F \in \mathcal{F}).

The construction takes F={C4,C6}JK\mathcal{F} = \{C_4, C_6\} \cup \mathcal{J} \cup \mathcal{K}. The two extra pieces come from templates built out of subdivided complete bipartite graphs, where SkS_k is K3,kK_{3,k} with every edge replaced by a two-edge path, glued in the style of Bukh and Conlon’s rooted-power construction, then closed under admissible quotients: identifications of vertices that respect the proper two-colouring and stay injective on distinguished subgraphs. Closing under quotients is what makes the family finite and what makes it hard to avoid.

The two bounds come from opposite directions.

  • Upper. Counting short paths in any F\mathcal{F}-free host graph forces ex(n,F)=O(n21/16)\operatorname{ex}(n, \mathcal{F}) = O(n^{21/16}), and 21/16=4/31/4821/16 = 4/3 - 1/48.
  • Lower. For each individual FFF \in \mathcal{F}, the incidence graph of a generalized quadrangle is FF-free and has Ω(n4/3)\Omega(n^{4/3}) edges. Crucially, the field characteristic is allowed to depend on which FF is being avoided, so a single host does not have to work for the whole family.

That asymmetry is the whole idea. Every member is individually easy to avoid at density n4/3n^{4/3}, but no single algebraic host avoids all of them at once, and the gap is polynomial rather than a constant factor.

Degeneracy: does local sparsity fix the exponent?

A graph is rr-degenerate if every nonempty subgraph has a vertex of degree at most rr. Erdős conjectured in 1967 that this local sparsity determines the extremal exponent for bipartite graphs:

H bipartite and r-degenerate    ex(n,H)=O ⁣(n21/r).H \text{ bipartite and } r\text{-degenerate} \;\Longrightarrow\; \operatorname{ex}(n, H) = O\!\left(n^{2 - 1/r}\right).

The conjecture is true in several restricted settings: when one bipartition class has maximum degree at most rr, for rr-degenerate blow-ups of trees, and for grids at r=2r = 2. Alon, Krivelevich and Sudakov proved the weaker general estimate ex(n,H)=O(n21/(4r))\operatorname{ex}(n, H) = O(n^{2 - 1/(4r)}).5 A companion conjecture of Erdős asserted that HH is 2-degenerate if and only if ex(n,H)=O(n3/2)\operatorname{ex}(n, H) = O(n^{3/2}); Janzer disproved the reverse implication in 2021 by building 3-regular bipartite graphs with extremal number O(n4/3+η)O(n^{4/3 + \eta}), but the forward implication, the r=2r = 2 case above, stayed open.6

Chapter 10 kills it.

Theorem.  H connected, bipartite, 2-degenerate, and c,ε>0:ex(n,H)cn3/2+ε  for all large n.\textbf{Theorem. } \exists\ H \text{ connected, bipartite, 2-degenerate, and } c, \varepsilon > 0:\quad \operatorname{ex}(n, H) \ge c\,n^{3/2 + \varepsilon}\ \text{ for all large } n.

The counterexample HH is built in layers. Start with a layer V0V_0 of L0L_0 vertices; for each subsequent layer, add one new vertex for every pair of vertices in the previous layer, joined to exactly those two parents. Every new vertex has degree 2 at birth, so HH is 2-degenerate, connected and bipartite by construction, with ss layers as a tunable depth.

The lower bound comes from a random host. Take the two sides to be copies of {0,1}m\{0,1\}^m, join opposite vertices whose Hamming distance is at most k=τmk = \lfloor \tau m \rfloor, then independently retain each vertex with probability p=2βmp = 2^{-\beta m}. A second-moment computation shows the sampled graph still has Ω(n3/2+ε)\Omega(n^{3/2 + \varepsilon}) edges for suitable τ\tau and β\beta, and padding extends it to every large order.

Showing that HH does not embed is where the layered design pays off. Each candidate embedding is scored by an entropy potential: for a parent array uu and child array zz, the quantity

E(u,z):=1mj=1mH(ZjXj,Yj)E(u,z) := \frac{1}{m}\sum_{j=1}^{m} H\bigl(Z_j \mid X_j, Y_j\bigr)

measures how much conditional entropy a child bit carries given its two parent bits at a random coordinate. Low-entropy arrays are too numerous to survive sampling: a counting argument shows that arrays with E(u,z)βδE(u,z) \le \beta - \delta are excluded with high probability, at every layer and on both sides. So any embedding must raise EE by a fixed amount per layer, and EE is bounded above by 1. After enough layers that is impossible, so HH has no copy in the host. Choosing the depth ss large enough to exhaust the potential is exactly the role of the parameter thresholds A(τ)<β<C(τ)A(\tau) < \beta < C(\tau).

The Erdős ledger

Both of these chapters land on problems from Erdős’s list, as does OpenAI’s separately reported May 2026 result on the unit-distance problem in discrete geometry.7 That is not incidental. Erdős problems are unusually good targets for a search process: each is a self-contained combinatorial statement with a crisp yes-or-no answer, a documented history of partial results to calibrate against, and, in the counterexample direction, a certificate that is a finite object one can check.

What the three results have in common on the mathematical side is that the winning move was construction rather than argument. A superexponential Ramsey lower bound is a colouring. A refutation of compactness is a family of graphs. A refutation of the degeneracy conjecture is one bipartite graph plus a random host. In each case the difficulty was in finding an object with several tightly coupled properties, not in reasoning about objects already in hand.

The upper bounds, meanwhile, have barely moved. Rk(3)R_k(3) is still bracketed between k(1/3o(1))kk^{(1/3-o(1))k} and k(1+o(1))kk^{(1+o(1))k}, and the value of limkRk(3)1/k\lim_k R_k(3)^{1/k}, Erdős’s $250 question, is untouched. Deciding whether it is finite was the $100 question, and that one is now answered.

References

Footnotes

  1. OpenAI, “Ten Advances in Mathematics and Theoretical Computer Science,” 2026. https://cdn.openai.com/pdf/ten-proofs-oai.pdf

  2. David Conlon, Jacob Fox, and Benny Sudakov, “Recent developments in graph Ramsey theory,” Surveys in Combinatorics, 2015. https://arxiv.org/abs/1501.02474

  3. Noga Alon and Alon Orlitsky, “Repeated communication and Ramsey graphs,” IEEE Transactions on Information Theory, 1995. https://ieeexplore.ieee.org/document/412701

  4. Paul Erdős and Miklós Simonovits, “Compactness results in extremal graph theory,” Combinatorica, 1982. https://link.springer.com/article/10.1007/BF02579234

  5. Noga Alon, Michael Krivelevich, and Benny Sudakov, “Turán numbers of bipartite graphs and related Ramsey-type questions,” Combinatorics, Probability and Computing, 2003. https://www.cs.tau.ac.il/~nogaa/PDFS/turanr3.pdf

  6. Oliver Janzer, “Disproof of a conjecture of Erdős and Simonovits on the Turán number of graphs with minimum degree 3,” International Mathematics Research Notices, 2023. https://arxiv.org/abs/2109.06110

  7. OpenAI, “An OpenAI model has disproved a central conjecture in discrete geometry,” 2026. https://openai.com/index/model-disproves-discrete-geometry-conjecture/