Ramsey Numbers: OpenAI’s Proof Solves a 48-Year-Old Cycle–Clique Conjecture

Imagine a complete graph with 50 vertices. Color each edge red or blue. However you color it, you will find either a red cycle through exactly eight vertices or eight vertices whose mutual edges are all blue. At 49 vertices, you can avoid both. OpenAI’s proof of the 1978 cycle–clique conjecture shows that this one-vertex transition follows a simple rule for an entire family of Ramsey numbers. Take one less than the cycle size, multiply by one less than the clique size, then add one. The rule holds when the cycle is at least as large as the clique and both sizes are at least three. Two target triangles are the exception and require six vertices.

1. What Are Ramsey Numbers in Graph Theory?

The complete graph on NN vertices has an edge between every pair of distinct vertices. A red–blue edge coloring assigns a color to each edge. A clique is a set of vertices with every pair joined, while an independent set has no edges between its vertices. Keep only the red edges and a blue clique becomes an independent set in the resulting red graph. This change turns a basic question in graph theory into one about degrees and neighborhoods.

For cycle–clique Ramsey numbers, CmC_m denotes a cycle on exactly mm vertices and KnK_n a complete graph on nn vertices. The cycle uses distinct vertices before returning to its start. Extra edges between its vertices are allowed, so a cycle can have chords. The Ramsey number R(Cm,Kn)R(C_m,K_n) is the least host order that forces a red copy of CmC_m or a blue copy of KnK_n in every coloring. Here, order means vertex count. For a path, length means edge count.

Cycle–Clique Ramsey Numbers at a Glance
Key FactWhat the Paper Establishes
TargetsA red cycle of exact order mm or a blue clique of order nn.
Threshold(m−1)(n−1)+1(m-1)(n-1)+1 for m≥n≥3m\ge n\ge 3, except the triangle pair.
Triangle PairR(C3,K3)=6R(C_3,K_3)=6.
Finite Reduction3,099 weighted path-system instances across 42 parameter pairs.

2. The 1978 Cycle–Clique Conjecture and Its Unresolved Cases

Paul Erdős, Ralph Faudree, Cecil Rousseau and Richard Schelp conjectured the exact threshold in 1978 for what earlier papers often call cycle-complete Ramsey numbers. Earlier work by Bondy and Erdős had proved the formula when m≥n2−2m\ge n^2-2, well away from the boundary where the two requested patterns have the same order. Subsequent results settled the full conjectured range for clique sizes three through seven, with the triangle exception, and covered several cases for clique size eight.

Keevash, Long and Skokan later proved the exact formula when m≥Clog2⁡nlog2⁡log2⁡nm\ge C\frac{\log_2 n}{\log_2\log_2 n} for an absolute constant CC. The logarithmic threshold grows more slowly than nn, so for all sufficiently large clique sizes it covers every cycle size at least nn. Each smaller clique size leaves only finitely many possible gaps. OpenAI’s proof derives an explicit finite reduction without needing a numerical value of CC.

3. The Exact Ramsey Number Formula Established by OpenAI

Theorem 1.1 of the September 25, 2026 preprint gives the following result for integers m≥n≥3m\ge n\ge 3 other than (m,n)=(3,3)(m,n)=(3,3).

𝑹(𝑪𝒎,𝑲𝒏)=(𝒎−1)(𝒏−1)+1\boldsymbol{R(C_m,K_n)=(m-1)(n-1)+1}

The same Ramsey number formula gives 13 for a five-cycle versus a four-clique and 82 for a ten-cycle versus a ten-clique.

For the exceptional pair, R(C3,K3)=6R(C_3,K_3)=6. A pentagon and its complement are both five-cycles, so five vertices can avoid monochromatic triangles. On six vertices, pick any vertex. At least three of its five incident edges have the same color. An edge of that color among their three other endpoints completes a triangle with the chosen vertex. If all three edges among the endpoints have the opposite color, those endpoints form the triangle themselves.

4. OpenAI’s Complete Proof Strategy in Six Stages

OpenAI’s release attributes the research results to an internal frontier model. The roadmap follows the logic of the published proof.

  1. Build a coloring that falls one vertex short. Put vertices into red cliques with blue edges across groups. Their sizes prevent the red cycle, and their number prevents the blue clique.
  2. Make a hypothetical counterexample expand. Choose the smallest failing clique-size parameter at a fixed cycle length. Removing an independent set and its neighbors leaves a smaller problem, which bounds how many vertices can lie outside that neighborhood.
  3. Force a large red clique. If all cliques were too small, expansion would yield a layer containing a path that closes through a tree into exactly the forbidden cycle. Four- and five-cycles receive direct arguments.
  4. Use the largest clique to close detours. Connect clique vertices by paths that run outside it. Choose the strongest system below the cycle-closing threshold so candidate improvements become restrictions on outside paths.
  5. Turn those restrictions into independent sets. Separated outside neighborhoods can contribute independent vertices simultaneously. When the largest clique has at least nine vertices, their combined contribution exceeds the allowed limit.
  6. Eliminate the remaining patterns. Smaller cliques bound the cycle length. The proof then enumerates weighted arrangements of detours and rejects them with exact inference rules.

5. Constructing the Sharp Lower Bound

Ramsey numbers example showing three red groups of four vertices and a threshold of 13.
Ramsey numbers example showing three red groups of four vertices and a threshold of 13.

Take n−1n-1 groups of m−1m-1 vertices. Color every edge within a group red and every edge between groups blue. Each red connected component has only m−1m-1 vertices, so no red cycle can visit mm distinct vertices. A blue clique can choose at most one vertex per group, since any two vertices in the same group share a red edge. It therefore has order at most n−1n-1.

Twelve vertices in three red four-cliques Each group draws all six red edges among its four vertices. All blue edges between groups are implied. This coloring has no red five-cycle and no blue four-clique. Group 1 Group 2 Group 3 Blue edges connect different groups
The 12-vertex lower-bound coloring for a five-cycle versus a four-clique. The diagram draws all within-group edges and omits the blue edges between groups for clarity.

Three red groups of four show why 12 vertices are insufficient for a five-cycle versus a four-clique. The upper bound must explain why the guarantee holds at 13.

6. Minimal Counterexamples and Independent-Set Expansion

Set k=m−1k=m-1 and a=n−1a=n-1. If the upper bound fails, the red graph GG has ka+1ka+1 vertices, no Ck+1C_{k+1}, and independence number α(G)\alpha(G) at most aa. The independence number is the maximum size of an independent set. Fix kk and choose the smallest failing aa among 2≤a≤k2\le a\le k. An independence bound of zero forces an empty graph. A bound of one forces a clique, which can have at most kk vertices without containing the forbidden cycle.

Let II be a nonempty independent set and NG[I]N_G[I] its closed neighborhood, consisting of II and every vertex adjacent to at least one of its members. Any independent set outside that neighborhood can be joined to II. The graph left after deletion therefore has independence number at most a−|I|a-\lvert I\rvert. By minimality and the two base cases, it has at most k(a−|I|)k(a-\lvert I\rvert) vertices. Subtracting from the total yields Lemma 2.2.

|𝑵𝑮[𝑰]|≥𝒌|𝑰|+1\boldsymbol{\lvert N_G[I]\rvert\ge k\lvert I\rvert+1}

Apply the inequality to a single vertex. Its closed neighborhood contains that vertex and its neighbors, so the minimum degree is at least kk. Expansion is stronger than minimum degree because it also limits how much the neighborhoods of several nonadjacent vertices can overlap.

7. Finding Large Cliques Through Breadth-First Trees and Path Rotations

Write tt for the order of a maximum clique. An elementary triangle Ramsey bound gives t≥3t\ge 3, and a larger clique than kk would already contain Ck+1C_{k+1}. Theorem 3.1 strengthens the lower bound.

max⁡{3,⌊𝒌/2⌋}≤𝒕≤𝒌\boldsymbol{\max\{3,\lfloor k/2\rfloor\}\le t\le k}

A breadth-first tree groups vertices in one component by distance from a root. Edges can join vertices in the same layer or adjacent layers. Independent sets in alternate layers can therefore be combined. Their total is capped by kk, while their closed neighborhoods must expand. If the presumed clique bound fails, comparing these demands yields a connected, nonbipartite subgraph in one layer with enough internal expansion for the prescribed-length path lemma.

A long path alone could give a cycle of the wrong length. In the lemma, a Pósa rotation keeps the first vertex fixed. If the last vertex is adjacent to an earlier vertex on the path, that edge lets the path reverse its tail and end at a different vertex. All possible endpoints obtainable by reordering the chosen longest path on its vertex set must be adjacent to one another. Two nonadjacent endpoints would have too small a joint neighborhood, because neither can extend a longest path. Rotations control how that clique attaches to the rest of the graph. The attachment then lets the proof build a path of the prescribed length across a two-class partition of the layer.

The two classes come from child branches of a common tree ancestor. If the layer is pp steps below that ancestor, endpoints in opposite classes have a tree path of length 2p2p. The paper chooses a layer path with k+1−2pk+1-2p edges, so the two paths meet only at their ends and close an exact Ck+1C_{k+1}. When all layer vertices have the ancestor as their parent, a long layer path can instead be trimmed and closed through that parent. For four-cycles and five-cycles, Section 4 uses short paths between vertices of a triangle or a four-clique to constrain their exterior neighborhoods directly.

8. Optimal Path Systems and the Forbidden Cycle

	Ramsey numbers diagram showing how three clique edges join two detours and one vertex into a red eight-cycle.
Ramsey numbers diagram showing how three clique edges join two detours and one vertex into a red eight-cycle.

Fix a maximum clique QQ. A detour here starts and ends at distinct clique vertices, has a nonempty interior outside QQ, and shares no interior vertices with other chosen detours. Draw an auxiliary edge between the endpoints of each detour. Require these edges to form a linear forest, meaning disjoint chains that include any unused clique vertices as singletons. The rule lets several detours concatenate without branching or closing prematurely.

Let qq count the total interior vertices in the system and vv count the clique vertices incident to its auxiliary edges. The expanded chains already use q+vq+v vertices. Add exactly k+1−q−vk+1-q-v unused clique vertices and connect the paths end to end with clique edges. The lower bound in Lemma 6.1 ensures there are enough unused clique vertices to reach the target. The upper bound ensures the expanded chains have not already exceeded it.

𝒉≤𝒒≤𝒌+1−𝒗\boldsymbol{h\le q\le k+1-v}
Two detours close into an eight-cycle The cycle visits q1, a, q2, q3, b, c, q4, and q5 in order, then returns to q1. The five q vertices form a clique. The three other vertices are outside it. Unused clique edges are omitted. q₁ a q₂ q₃ b c q₄ q₅ Outside detour Clique edge
Exact eight-cycle closure. Five clique vertices plus three detour interiors give eight distinct vertices. Both stroke styles represent edges of the red graph.

For instance, with five clique vertices, two disjoint detours can contribute three interior vertices. Use two clique edges through the fifth clique vertex and one directly between the detours to make an eight-cycle. In a counterexample the proof instead chooses the greatest possible total amount LL below h=k+1−th=k+1-t, using the fewest detours among systems tied for that amount. A proposed rerouting can then fail for two reasons. Below h=k+1−th=k+1-t it can beat the selected system. Within the closure interval it creates the forbidden cycle.

9. How Independent-Set Packing Eliminates Large Cliques

Orient the chains. Each clique vertex is represented by itself if it starts a chain, or by the first interior vertex of its incoming detour. An outside path between two representatives can splice pieces of their detours together. If such a replacement would violate optimality or close the forbidden cycle, the outside path cannot exist. With enough short paths ruled out, the representatives’ outside neighborhoods stay separate. An overlap or an edge between two neighborhoods would provide one of the forbidden connections.

Lemma 5.3 turns neighborhood size into a usable lower bound on independence. Any vertex set larger than both kk and 2t2t contains three pairwise nonadjacent vertices. Otherwise, the paper uses the clique bound to rule out disconnection and cut vertices, obtains a Hamiltonian cycle in the induced subgraph, and shortens it step by step to the forbidden order. A Hamiltonian cycle visits every vertex of its graph.

When t≥9t\ge 9, the short paths that could exist force one of three configurations of the optimal system. In each, restrictions on the endpoints and lengths of outside paths let the proof pack independent sets from separated neighborhoods. In the configuration with (t,k)=(9,19)(t,k)=(9,19), four neighborhoods supply triples and five supply pairs. Their union has 22 independent vertices, exceeding the cap of 19. The other configurations also exceed the cap, ruling out every maximum clique of order at least nine. The clique bound now caps the cycle lengths the computation has to consider.

10. Why 3,099 Finite Cases Complete the Ramsey Number Proof

	Ramsey numbers finite check showing all 3,099 path-system instances ruled out across 42 parameter pairs.
Ramsey numbers finite check showing all 3,099 path-system instances ruled out across 42 parameter pairs.

The remaining clique orders are three through eight. The earlier clique bound forces 5≤k≤175\le k\le 17, with 42 admissible pairs of (k,t)(k,t) after imposing all the inequalities. The proof records each detour chain by its ordered counts of interior vertices. It identifies a chain with its reversal and sorts the resulting chain types, including empty tuples for singleton clique vertices. This preserves every distinct weighted forest while removing repetitions caused by orientation or component order.

The program starts from the required clique and detour edges for each pattern. It uses the closure and optimality rules to infer which outside paths are forbidden between specified vertices. Those prohibitions certify which neighborhoods can contribute independent vertices together. When the initial tests do not decide a pattern, the program can temporarily require an edge or a two-edge outside path through one new vertex. A contradiction makes the temporary requirement a new prohibition. Every rule is justified in the paper, and two separate exact implementations agree on the results.

Results of the Finite Check (Paper, Table 2)
OutcomeInstances
Contradiction in the initial packing test3,049
Contradiction after further deductions50
Unresolved after both implementations0
Total parameter-pattern instances3,099

The appendix describes a deduction trace for each instance, recording the successful deductions and the final witness. In the supplied run, every final witness is an independent-set packing contradiction. OpenAI’s Lean documentation separately states that its formalization proves Theorem 1.1 over its complete parameter range, including the exceptional triangle case.

11. What the Cycle–Clique Proof Changes and What Remains Open

The proof gives exact Ramsey numbers across the conjectured range, down to the difference between the last avoidable coloring and the first unavoidable one. The result closes the historical gap by extracting structure from every hypothetical counterexample and reducing the small-clique range to a finite proof.

The cycle–clique theorem relies on the clique edges to join detours at will and on the cycle target to make the vertex count decisive. For two clique targets, including the diagonal problem where both cliques have the same order, there is no comparable general formula. Research on Ramsey number bounds measures the gap between constructions and guarantees for those Ramsey numbers. Cycle sizes smaller than the clique size also fall outside the stated theorem. The proof shows how restricting exact cycles can force independent vertices to accumulate. Explore more proofs in Binary Verse AI’s mathematics coverage.

What are Ramsey numbers in graph theory?

A Ramsey number is the smallest number of vertices that guarantees one of two specified graph patterns. In a two-color setting, every red–blue edge coloring of a complete graph of that size contains the specified red subgraph or the specified blue subgraph.

What is the formula for cycle–clique Ramsey numbers?

OpenAI’s proof establishes R(Cm, Kn) = (m − 1)(n − 1) + 1 for all integers m ≥ n ≥ 3, except m = n = 3, where the Ramsey number equals six.

Why is R(C3, K3) = 6 an exception?

The five-vertex complete graph can be colored so that each color forms a five-cycle, avoiding monochromatic triangles. With six vertices, some vertex has three edges of one color to three others. Those four vertices contain a monochromatic triangle.

Why are exact Ramsey numbers so difficult to calculate?

The number of possible edge colorings grows exponentially with the number of vertex pairs. An exact value needs both a coloring that avoids the two patterns one vertex below the threshold and a proof that every coloring at the threshold contains at least one pattern.

Did OpenAI use brute force to prove the cycle–clique conjecture?

The proof uses neighborhood expansion, large cliques and optimal path systems to reduce the problem to 3,099 structural instances. Two separate exact implementations applied proved inference rules to eliminate every instance. The finite search enumerated path-system patterns.

Has OpenAI’s Ramsey number proof been formally verified?

Yes. OpenAI’s Lean documentation says the formalization proves the paper’s main theorem over its full parameter range, including the triangle exception.

Leave a Comment