The exact value of the Ramsey number R(5,5)
On this page20 sections
Difficulty 67: the upper bound moved 49 → 48 → 46 over 30 years with ever larger computations, the lower bound 43 has stood since 1989, and closing even one unit needs either a far larger certified search or a structural idea nobody has; harder than the finite seven-gon question (45) and kissing number five (64), below the asymptotic diagonal Ramsey problem (78), which needs new ideas at every k. Application value 4: a benchmark for SAT and certified-search methods. Leverage 12: determines one number with spillover to a few small Ramsey values, below the asymptotic question (46).
The problem
How many people guarantee five who all know each other or five who are all strangers? Between 43 and 46.
- 1Pairs know each other or not
- 2Which party size forces five-in-a-row?
- 342 can dodge it, 46 cannot
- 443 to 46 is open
Graphs. A graph is a set of points (vertices) with some pairs joined by edges. A clique is a set of vertices that are all joined to each other; an independent set is one with no edges among its vertices.
Definition. is the least such that every graph on vertices contains a -clique or an independent set of size (equivalently every red/blue colouring of the edges of has a red or a blue ).
Known. , , . For : . Lower bound: Exoo (1989) gave a colouring of with no monochromatic . Upper bound: Angeltveit–McKay (2024; arXiv:2409.15709) proved with linear programming plus a large computer-checked case analysis, each author implementing it independently.
Conjecture. McKay and Radziszowski conjectured on computational evidence about the structure of -graphs on 42 vertices.
Obstacle. Closing the gap from above means classifying or excluding all colourings on 43 to 45 vertices, a huge search; from below, a colouring of would have to exist outside all known structures. There is no theoretical reason in sight for 43.
Lean formulation. The Formal Conjectures file defines IsGraphRamsey n 5 5 := ∀ G : SimpleGraph (Fin n), ¬ (G.CliqueFree 5 ∧ Gᶜ.CliqueFree 5) from Mathlib's graph library; the bound is IsGraphRamsey 46 5 5; an improvement to 45 is IsGraphRamsey 45 5 5. A lower-bound improvement is a graph on 43 vertices.
Check. A certificate: an adjacency matrix, or a replayed SAT/LP proof, plus an independent second implementation.
Why the numbers grow so fast. For the best known bounds are exponential in (a lower bound of order from Erdős's probabilistic argument, and an upper bound of the form ). For small , exact values rise rapidly: 6, 18, then somewhere from 43 to 46. A graph on vertices has edge colourings; for that is about , so any exhaustive search must exploit symmetry and strong pruning.
How a certificate would be used. A lower-bound certificate is an adjacency matrix: its checking (no 5-clique in the graph or its complement) takes a few seconds. An upper-bound certificate is a long proof object (a case tree or a SAT refutation), whose size is the practical obstacle.
Go deeper
The full technical text.
is the least such that every graph on vertices contains either a clique of size 5 or an independent set of size 5. Determine it. Currently .
The Formal Conjectures corpus states the question as RamseyNumbers.ramsey_number_five_five : R(5, 5) = answer (an open "value" question), together with the two known bounds as theorems, using this definition from the same file (built only on Mathlib's SimpleGraph and CliqueFree):
def IsGraphRamsey (n k l : ℕ) : Prop :=
∀ G : SimpleGraph (Fin n), ¬ (G.CliqueFree k ∧ Gᶜ.CliqueFree l)
Then an upper-bound improvement to 45 is the statement IsGraphRamsey 45 5 5, and a lower-bound improvement to 44 is ∃ G : SimpleGraph (Fin 43), G.CliqueFree 5 ∧ Gᶜ.CliqueFree 5.
Words on this page (6)
- Ramsey number
- The smallest party size that forces a group of given size where all know each other or none do.
- clique
- A group of vertices in a graph all joined to each other.
- independent set
- A group of vertices with no edges among them.
- graph
- Dots joined by lines, used to model who is connected to whom.
- linear programming
- A method for optimising a linear function under linear limits.
- diagonal Ramsey numbers
- The Ramsey numbers R(k,k), whose growth rate is a major open question.
New to this? Read first (3)
- Ramsey's theorem (Wikipedia)The idea and the small known values.
- Small Ramsey Numbers (survey)The standard table of known bounds.
- R(5,5) ≤ 46The latest improvement.
Path to understanding
foundations → problemThe research entries this problem rests on, in the order to read them. Each links to its explainer.
- Start with
- Step 2
- Step 3
- SAT solving (CDCL)Algorithm
- Step 4
- Extremal and probabilistic combinatoricsTheory · host
- Then
- The exact value of the Ramsey number R(5,5)The problem
State of the art
Upper bound 46: Angeltveit and McKay (arXiv:2409.15709, 2024, revised September 2025) proved by combining linear programming with a large computer-checked case analysis, each author implementing the computation independently; the previous upper bound was 48 (Angeltveit and McKay, arXiv:1703.08768, 2017). Lower bound 43: an explicit 2-colouring of the edges of with no monochromatic is known (Exoo, 1989). McKay and Radziszowski conjectured on the evidence that many such colourings of exist but none appear to extend. The gap is closed from above by exhaustive search only if a very large search space shrinks, and from below only by an unexpected colouring of .
Realistic applications
None directly. Small Ramsey numbers are used as benchmarks for SAT and exhaustive-search methods, and the techniques (symmetry breaking, certified large case analyses) are reused in verification.
What counts as solved
A certificate: either an explicit graph on 43 vertices with no 5-clique and no independent 5-set (a lower-bound improvement, checkable by decide or reflection), or a Lean-checkable proof that every graph on 45 (or 44) vertices has one (an upper-bound improvement, plausibly via a verified SAT or LP certificate).
How it gets verified
To verify: Bound / recordA numeric bound or record checked from a certificate or recomputation.
Current record: (lower bound Exoo 1989, upper bound Angeltveit–McKay, arXiv:2409.15709, summarized in the Small Ramsey Numbers survey). An improvement is a finite certificate. Lower bound to 44: a graph on 43 vertices, given as an adjacency matrix, with no 5-clique in it or its complement; this is checkable by a short program and, in Lean, by a decision procedure on SimpleGraph (Fin 43) with decidable adjacency (the corpus states the current bound as ramsey_number_five_five_lower_bound on 42 vertices). Upper bound to 45: the Lean statement IsGraphRamsey 45 5 5, where IsGraphRamsey is defined in the corpus file Wikipedia/RamseyNumbers.lean from Mathlib's SimpleGraph.CliqueFree (Combinatorics.SimpleGraph.Clique); the current bound is ramsey_number_five_five_upper_bound : IsGraphRamsey 46 5 5, and SimpleGraph.classicalRamsey lives in the corpus' Ramsey.lean. A claimed upper-bound proof must come with a machine-checkable certificate (for instance a verified SAT/DRAT or LP proof replayed in Lean, or checked by a verified checker); an independent recomputation by a second implementation, as Angeltveit and McKay did, is the minimum for acceptance.
Claims
No claimed results on this problem.
Where the work is
The upper bound came from LP plus a huge exhaustive case analysis; the lower bound would need a lucky colouring or a proof that none exists.
Connected problems
- This problem is related to Exponential rate of diagonal Ramsey numbers: closing the gap between (√2)k and 3.8kR(5,5) is a single diagonal Ramsey number, whereas the linked problem asks for the exponential rate of R(k,k) as k grows.
Progress
- Sep 24, 2024R(5,5) ≤ 46source
Angeltveit and McKay improve the upper bound from 48 by LP and large computer-checked case analysis (preprint; revised 1 September 2025).