Skip to content
DAH

The exact value of the Ramsey number R(5,5)

OpenTo verify: Bound / recordPosed by Frank Ramsey, 1930 (the specific number: open since at least the 1960s)
AI-reviewed
On this page20 sections
Difficulty
67/100Research-grade
How far from a resolution. P vs NP = 100
Application value
4/100Theoretical
Realistic practical impact if resolved. P vs NP = 100
Leverage
12/100Isolated
How much other knowledge hinges on it. P vs NP = 100

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.

  1. 1Pairs know each other or not
  2. 2Which party size forces five-in-a-row?
  3. 342 can dodge it, 46 cannot
  4. 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. R(k,l)R(k,l) is the least nn such that every graph on nn vertices contains a kk-clique or an independent set of size ll (equivalently every red/blue colouring of the edges of KnK_n has a red KkK_k or a blue KlK_l).

Known. R(3,3)=6R(3,3)=6, R(4,4)=18R(4,4)=18, R(4,5)=25R(4,5)=25. For R(5,5)R(5,5): 43≤R(5,5)≤4643\le R(5,5)\le46. Lower bound: Exoo (1989) gave a colouring of K42K_{42} with no monochromatic K5K_5. Upper bound: Angeltveit–McKay (2024; arXiv:2409.15709) proved R(5,5)≤46R(5,5)\le46 with linear programming plus a large computer-checked case analysis, each author implementing it independently.

Conjecture. McKay and Radziszowski conjectured R(5,5)=43R(5,5)=43 on computational evidence about the structure of (5,5)(5,5)-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 K43K_{43} 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 R(5,5)≤46R(5,5)\le46 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 R(k,k)R(k,k) the best known bounds are exponential in kk (a lower bound of order 2 k\sqrt2^{\,k} from Erdős's probabilistic argument, and an upper bound of the form (4−ϵ)k(4-\epsilon)^k). For small kk, exact values rise rapidly: 6, 18, then somewhere from 43 to 46. A graph on nn vertices has 2(n2)2^{\binom n2} edge colourings; for n=43n=43 that is about 29032^{903}, 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.

R(5,5)R(5,5) is the least nn such that every graph on nn vertices contains either a clique of size 5 or an independent set of size 5. Determine it. Currently 43≤R(5,5)≤4643 \le R(5,5) \le 46.

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)
Words on this page
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)
New to this? Read first

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Step 3
  4. Step 4
  5. 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 R(5,5)≤46R(5,5) \le 46 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 K42K_{42} with no monochromatic K5K_5 is known (Exoo, 1989). McKay and Radziszowski conjectured R(5,5)=43R(5,5)=43 on the evidence that many such colourings of K42K_{42} 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 K43K_{43}.

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 / record

A numeric bound or record checked from a certificate or recomputation.

Current record: 43≤R(5,5)≤4643 \le R(5,5) \le 46 (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

Theory
15%
New mathematical or conceptual ideas
Engineering
10%
Building instruments, chips, systems, software, formal proofs
Compute
75%
Raw computation, search, simulation
Empirical
0%
Observation, experiment, data collection

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

Progress

  1. Sep 24, 2024
    R(5,5) ≤ 46

    Angeltveit and McKay improve the upper bound from 48 by LP and large computer-checked case analysis (preprint; revised 1 September 2025).

    source