Title:Ramsey numbers
Statement:The open problem: determine the Ramsey number .
It is known that .
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Tags: | question |
| Cite as: | NS.08343 [math.CO] · NS.08343v1 for this version |
| Declaration: | RamseyNumbers.ramsey_number_five_five |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 36d0764d496b8a96b5dd9eaa804dfe4fccffbf8cb4744b9de146cfdaa9def43d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/RamseyNumbers.lean |
Formal statement
theorem ramsey_number_five_five :
R(5, 5) = ramsey_number_five_five.answerShow the full Challenge.lean (202 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Ramsey numbers
The (graph) Ramsey number $R(k,\ell)$ is the least natural number $n$ such that every simple graph
on $n$ vertices contains either a clique of size $k$ or an independent set of size $\ell$
(equivalently, the complement graph contains a clique of size $\ell$).
We formalize the classical open problem of determining $R(5,5)$, together with the currently best
known bounds $43 \le R(5,5) \le 46$.
Note: the diagonal Ramsey number $R(n,n)$ can also be formulated in terms of 2-colorings of
$2$-subsets, as `Combinatorics.hypergraphRamsey 2 n` (see `FormalConjecturesForMathlib/Combinatorics/Ramsey.lean`).
*References:*
- [Wikipedia: Ramsey number](https://en.wikipedia.org/wiki/Ramsey_number)
- [Rad] S. P. Radziszowski, *Small Ramsey Numbers*, Electronic Journal of Combinatorics, Dynamic
Survey DS1. (Updated periodically.) https://www.combinatorics.org/ojs/index.php/eljc/article/view/DS1
- [Exoo89] G. Exoo, *A lower bound for* $R(5,5)$, Journal of Graph Theory 13 (1989), 97–98.
DOI: 10.1002/jgt.3190130113
- [AM24] V. Angeltveit and B. McKay, *$R(5,5) \le 46$*, arXiv:2409.15709 (2024).
- [OEIS A212954](https://oeis.org/A212954)
- [MathWorld: Ramsey Number](https://mathworld.wolfram.com/RamseyNumber.html)
-/
@[expose] public section
namespace RamseyNumbers
/--
`IsGraphRamsey n k l` means that for every simple graph `G` on `n` vertices, either
- `G` contains a clique of size `k`, or
- the complement graph `Gᶜ` contains a clique of size `l` (equivalently, `G` contains an
independent set of size `l`).
-/
def IsGraphRamsey (n k l : ℕ) : Prop :=
∀ G : SimpleGraph (Fin n), ¬ (G.CliqueFree k ∧ (Gᶜ).CliqueFree l)
/-- Monotonicity in the number of vertices. -/
@[category API, AMS 5]
theorem IsGraphRamsey.succ (n k l : ℕ) :
IsGraphRamsey n k l → IsGraphRamsey (n + 1) k l := by
intro h G
-- Restrict to the induced subgraph on the first `n` vertices.
let H : SimpleGraph (Fin n) := G.comap (Fin.castSuccEmb : Fin n ↪ Fin (n + 1))
have emb : H ↪g G := SimpleGraph.Embedding.comap (Fin.castSuccEmb : Fin n ↪ Fin (n + 1)) G
have embc : (Hᶜ) ↪g (Gᶜ) := (SimpleGraph.Embedding.complEquiv (G := H) (H := G)).toFun emb
rintro ⟨hG, hGc⟩
have hH : H.CliqueFree k := SimpleGraph.CliqueFree.comap emb.isContained hG
have hHc : (Hᶜ).CliqueFree l := SimpleGraph.CliqueFree.comap embc.isContained hGc
exact (h H) ⟨hH, hHc⟩
/-- Symmetry in the clique / independent set sizes. -/
@[category API, AMS 5]
theorem IsGraphRamsey.symm (n k l : ℕ) :
IsGraphRamsey n k l ↔ IsGraphRamsey n l k := by
constructor <;> intro h G
· simpa [IsGraphRamsey, and_comm, and_left_comm, and_assoc] using h (Gᶜ)
· simpa [IsGraphRamsey, and_comm, and_left_comm, and_assoc] using h (Gᶜ)
/-- The shared Ramsey number agrees with the clique-free formulation. -/
@[category API, AMS 5]
theorem classicalRamsey_eq_sInf (k l : ℕ) :
SimpleGraph.classicalRamsey k l = sInf {n : ℕ | IsGraphRamsey n k l} := by
classical
simp only [SimpleGraph.classicalRamsey, SimpleGraph.graphRamsey,
IsGraphRamsey, not_and_or, SimpleGraph.not_cliqueFree_iff_top_isContained]
-- Notation used in the literature.
local notation "R(" k ", " l ")" => SimpleGraph.classicalRamsey k l
def ramsey_number_five_five.answer : ℕ := sorry
/--
The open problem: determine the Ramsey number $R(5,5)$.
It is known that $43 \le R(5,5) \le 46$.
-/
@[category research open, question value, AMS 5]
theorem ramsey_number_five_five :
R(5, 5) = ramsey_number_five_five.answer := by
sorry
/--
Lower bound $43 \le R(5,5)$, equivalently: there exists a graph on $42$ vertices with no
$5$-clique and no independent set of size $5$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-14-000020"]
theorem ramsey_number_five_five_lower_bound :
∃ G : SimpleGraph (Fin 42), G.CliqueFree 5 ∧ (Gᶜ).CliqueFree 5 := by
sorry
/--
Upper bound $R(5,5) \le 46$, i.e. every graph on $46$ vertices contains a $5$-clique or an
independent set of size $5$.
-/
@[category research solved, AMS 5]
theorem ramsey_number_five_five_upper_bound :
IsGraphRamsey 46 5 5 := by
sorry
/- ## Other small Ramsey numbers
Besides $R(5,5)$, several small Ramsey numbers are known exactly, while others (such as $R(6,6)$)
remain open. The values below are collected in the dynamic survey [Rad] (see also
[OEIS A212954]): the exact diagonal value $R(4,4) = 18$, the exact off-diagonal values $R(3,k)$
for $3 \le k \le 9$, and $R(4,5) = 25$. -/
/-- $R(3,3) = 6$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_three : R(3, 3) = 6 := by
sorry
/-- $R(3,4) = 9$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_four : R(3, 4) = 9 := by
sorry
/-- $R(3,5) = 14$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_five : R(3, 5) = 14 := by
sorry
/-- $R(3,6) = 18$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_six : R(3, 6) = 18 := by
sorry
/-- $R(3,7) = 23$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_seven : R(3, 7) = 23 := by
sorry
/-- $R(3,8) = 28$. -/
@[category research solved, AMS 5]
theorem ramsey_number_three_eight : R(3, 8) = 28 := by
sorry
/-- $R(3,9) = 36$ (Grinstead–Roberts). -/
@[category research solved, AMS 5]
theorem ramsey_number_three_nine : R(3, 9) = 36 := by
sorry
/-- The diagonal Ramsey number $R(4,4) = 18$. -/
@[category research solved, AMS 5]
theorem ramsey_number_four_four : R(4, 4) = 18 := by
sorry
/-- $R(4,5) = 25$ (McKay–Radziszowski). -/
@[category research solved, AMS 5]
theorem ramsey_number_four_five : R(4, 5) = 25 := by
sorry
def ramsey_number_six_six.answer : ℕ := sorry
/--
The diagonal Ramsey number $R(6,6)$ is unknown. The best known bounds recorded in [Rad] are
$102 \le R(6,6) \le 165$.
-/
@[category research open, question value, AMS 5]
theorem ramsey_number_six_six : R(6, 6) = ramsey_number_six_six.answer := by
sorry
/--
Lower bound $102 \le R(6,6)$, equivalently: there exists a graph on $101$ vertices with no
$6$-clique and no independent set of size $6$.
-/
@[category research solved, AMS 5]
theorem ramsey_number_six_six_lower_bound :
∃ G : SimpleGraph (Fin 101), G.CliqueFree 6 ∧ (Gᶜ).CliqueFree 6 := by
sorry
/--
Upper bound $R(6,6) \le 165$, i.e. every graph on $165$ vertices contains a $6$-clique or an
independent set of size $6$.
-/
@[category research solved, AMS 5]
theorem ramsey_number_six_six_upper_bound :
IsGraphRamsey 165 6 6 := by
sorry
end RamseyNumbers
To prove it: keep every definition of Challenge.lean unchanged and prove RamseyNumbers.ramsey_number_five_five with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_ramsey_number_five_five : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch wikipedia-ramseynumbers nosorry submit wikipedia-ramseynumbers nosorry/wikipedia-ramseynumbers/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- ramsey-number-five-five-lower-bound — known result
- ramsey-number-five-five-upper-bound — known result
- ramsey-number-three-three — known result
- ramsey-number-three-four — known result
- ramsey-number-three-five — known result
- ramsey-number-three-six — known result
- ramsey-number-three-seven — known result
- ramsey-number-three-eight — known result
- ramsey-number-three-nine — known result
- ramsey-number-four-four — known result
- ramsey-number-four-five — known result
- ramsey-number-six-six — open
- ramsey-number-six-six-lower-bound — known result
- ramsey-number-six-six-upper-bound — known result
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.