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.
Table of Contents
1. What Are Ramsey Numbers in Graph Theory?
The complete graph on 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, denotes a cycle on exactly vertices and a complete graph on 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 is the least host order that forces a red copy of or a blue copy of in every coloring. Here, order means vertex count. For a path, length means edge count.
| Key Fact | What the Paper Establishes |
|---|---|
| Targets | A red cycle of exact order or a blue clique of order . |
| Threshold | for , except the triangle pair. |
| Triangle Pair | . |
| Finite Reduction | 3,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 , 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 for an absolute constant . The logarithmic threshold grows more slowly than , so for all sufficiently large clique sizes it covers every cycle size at least . Each smaller clique size leaves only finitely many possible gaps. OpenAI’s proof derives an explicit finite reduction without needing a numerical value of .
3. The Exact Ramsey Number Formula Established by OpenAI
Theorem 1.1 of the September 25, 2026 preprint gives the following result for integers other than .
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, . 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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

Take groups of vertices. Color every edge within a group red and every edge between groups blue. Each red connected component has only vertices, so no red cycle can visit 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 .
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 and . If the upper bound fails, the red graph has vertices, no , and independence number at most . The independence number is the maximum size of an independent set. Fix and choose the smallest failing among . An independence bound of zero forces an empty graph. A bound of one forces a clique, which can have at most vertices without containing the forbidden cycle.
Let be a nonempty independent set and its closed neighborhood, consisting of and every vertex adjacent to at least one of its members. Any independent set outside that neighborhood can be joined to . The graph left after deletion therefore has independence number at most . By minimality and the two base cases, it has at most vertices. Subtracting from the total yields Lemma 2.2.
Apply the inequality to a single vertex. Its closed neighborhood contains that vertex and its neighbors, so the minimum degree is at least . 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 for the order of a maximum clique. An elementary triangle Ramsey bound gives , and a larger clique than would already contain . Theorem 3.1 strengthens the lower bound.
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 , 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 steps below that ancestor, endpoints in opposite classes have a tree path of length . The paper chooses a layer path with edges, so the two paths meet only at their ends and close an exact . 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

Fix a maximum clique . A detour here starts and ends at distinct clique vertices, has a nonempty interior outside , 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 count the total interior vertices in the system and count the clique vertices incident to its auxiliary edges. The expanded chains already use vertices. Add exactly 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.
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 below , using the fewest detours among systems tied for that amount. A proposed rerouting can then fail for two reasons. Below 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 and 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 , 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 , 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

The remaining clique orders are three through eight. The earlier clique bound forces , with 42 admissible pairs of 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.
| Outcome | Instances |
|---|---|
| Contradiction in the initial packing test | 3,049 |
| Contradiction after further deductions | 50 |
| Unresolved after both implementations | 0 |
| Total parameter-pattern instances | 3,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.
