{
  "id": "8343",
  "ident": "NS.08343",
  "slug": "wikipedia-ramseynumbers",
  "title": "Ramsey numbers",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "The open problem: determine the Ramsey number $R(5,5)$.\n\nIt is known that $43 \\le R(5,5) \\le 46$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "RamseyNumbers.ramsey_number_five_five",
  "statement_lean": "theorem ramsey_number_five_five :\n    R(5, 5) = ramsey_number_five_five.answer",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Ramsey numbers\n\nThe (graph) Ramsey number $R(k,\\ell)$ is the least natural number $n$ such that every simple graph\non $n$ vertices contains either a clique of size $k$ or an independent set of size $\\ell$\n(equivalently, the complement graph contains a clique of size $\\ell$).\n\nWe formalize the classical open problem of determining $R(5,5)$, together with the currently best\nknown bounds $43 \\le R(5,5) \\le 46$.\n\nNote: the diagonal Ramsey number $R(n,n)$ can also be formulated in terms of 2-colorings of\n$2$-subsets, as `Combinatorics.hypergraphRamsey 2 n` (see `FormalConjecturesForMathlib/Combinatorics/Ramsey.lean`).\n\n*References:*\n- [Wikipedia: Ramsey number](https://en.wikipedia.org/wiki/Ramsey_number)\n- [Rad] S. P. Radziszowski, *Small Ramsey Numbers*, Electronic Journal of Combinatorics, Dynamic\n  Survey DS1. (Updated periodically.) https://www.combinatorics.org/ojs/index.php/eljc/article/view/DS1\n- [Exoo89] G. Exoo, *A lower bound for* $R(5,5)$, Journal of Graph Theory 13 (1989), 97–98.\n  DOI: 10.1002/jgt.3190130113\n- [AM24] V. Angeltveit and B. McKay, *$R(5,5) \\le 46$*, arXiv:2409.15709 (2024).\n- [OEIS A212954](https://oeis.org/A212954)\n- [MathWorld: Ramsey Number](https://mathworld.wolfram.com/RamseyNumber.html)\n-/\n\n@[expose] public section\n\nnamespace RamseyNumbers\n\n/--\n`IsGraphRamsey n k l` means that for every simple graph `G` on `n` vertices, either\n- `G` contains a clique of size `k`, or\n- the complement graph `Gᶜ` contains a clique of size `l` (equivalently, `G` contains an\n  independent set of size `l`).\n-/\ndef IsGraphRamsey (n k l : ℕ) : Prop :=\n  ∀ G : SimpleGraph (Fin n), ¬ (G.CliqueFree k ∧ (Gᶜ).CliqueFree l)\n\n/-- Monotonicity in the number of vertices. -/\n@[category API, AMS 5]\ntheorem IsGraphRamsey.succ (n k l : ℕ) :\n    IsGraphRamsey n k l → IsGraphRamsey (n + 1) k l := by\n  intro h G\n  -- Restrict to the induced subgraph on the first `n` vertices.\n  let H : SimpleGraph (Fin n) := G.comap (Fin.castSuccEmb : Fin n ↪ Fin (n + 1))\n  have emb : H ↪g G := SimpleGraph.Embedding.comap (Fin.castSuccEmb : Fin n ↪ Fin (n + 1)) G\n  have embc : (Hᶜ) ↪g (Gᶜ) := (SimpleGraph.Embedding.complEquiv (G := H) (H := G)).toFun emb\n  rintro ⟨hG, hGc⟩\n  have hH : H.CliqueFree k := SimpleGraph.CliqueFree.comap emb.isContained hG\n  have hHc : (Hᶜ).CliqueFree l := SimpleGraph.CliqueFree.comap embc.isContained hGc\n  exact (h H) ⟨hH, hHc⟩\n\n/-- Symmetry in the clique / independent set sizes. -/\n@[category API, AMS 5]\ntheorem IsGraphRamsey.symm (n k l : ℕ) :\n    IsGraphRamsey n k l ↔ IsGraphRamsey n l k := by\n  constructor <;> intro h G\n  · simpa [IsGraphRamsey, and_comm, and_left_comm, and_assoc] using h (Gᶜ)\n  · simpa [IsGraphRamsey, and_comm, and_left_comm, and_assoc] using h (Gᶜ)\n\n/-- The shared Ramsey number agrees with the clique-free formulation. -/\n@[category API, AMS 5]\ntheorem classicalRamsey_eq_sInf (k l : ℕ) :\n    SimpleGraph.classicalRamsey k l = sInf {n : ℕ | IsGraphRamsey n k l} := by\n  classical\n  simp only [SimpleGraph.classicalRamsey, SimpleGraph.graphRamsey,\n    IsGraphRamsey, not_and_or, SimpleGraph.not_cliqueFree_iff_top_isContained]\n\n-- Notation used in the literature.\nlocal notation \"R(\" k \", \" l \")\" => SimpleGraph.classicalRamsey k l\n\ndef ramsey_number_five_five.answer : ℕ := sorry\n\n/--\nThe open problem: determine the Ramsey number $R(5,5)$.\n\nIt is known that $43 \\le R(5,5) \\le 46$.\n-/\n@[category research open, question value, AMS 5]\ntheorem ramsey_number_five_five :\n    R(5, 5) = ramsey_number_five_five.answer := by\n  sorry\n\n/--\nLower bound $43 \\le R(5,5)$, equivalently: there exists a graph on $42$ vertices with no\n$5$-clique and no independent set of size $5$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-14-000020\"]\ntheorem ramsey_number_five_five_lower_bound :\n    ∃ G : SimpleGraph (Fin 42), G.CliqueFree 5 ∧ (Gᶜ).CliqueFree 5 := by\n  sorry\n\n/--\nUpper bound $R(5,5) \\le 46$, i.e. every graph on $46$ vertices contains a $5$-clique or an\nindependent set of size $5$.\n-/\n@[category research solved, AMS 5]\ntheorem ramsey_number_five_five_upper_bound :\n    IsGraphRamsey 46 5 5 := by\n  sorry\n\n/- ## Other small Ramsey numbers\n\nBesides $R(5,5)$, several small Ramsey numbers are known exactly, while others (such as $R(6,6)$)\nremain open. The values below are collected in the dynamic survey [Rad] (see also\n[OEIS A212954]): the exact diagonal value $R(4,4) = 18$, the exact off-diagonal values $R(3,k)$\nfor $3 \\le k \\le 9$, and $R(4,5) = 25$. -/\n\n/-- $R(3,3) = 6$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_three : R(3, 3) = 6 := by\n  sorry\n\n/-- $R(3,4) = 9$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_four : R(3, 4) = 9 := by\n  sorry\n\n/-- $R(3,5) = 14$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_five : R(3, 5) = 14 := by\n  sorry\n\n/-- $R(3,6) = 18$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_six : R(3, 6) = 18 := by\n  sorry\n\n/-- $R(3,7) = 23$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_seven : R(3, 7) = 23 := by\n  sorry\n\n/-- $R(3,8) = 28$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_eight : R(3, 8) = 28 := by\n  sorry\n\n/-- $R(3,9) = 36$ (Grinstead–Roberts). -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_three_nine : R(3, 9) = 36 := by\n  sorry\n\n/-- The diagonal Ramsey number $R(4,4) = 18$. -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_four_four : R(4, 4) = 18 := by\n  sorry\n\n/-- $R(4,5) = 25$ (McKay–Radziszowski). -/\n@[category research solved, AMS 5]\ntheorem ramsey_number_four_five : R(4, 5) = 25 := by\n  sorry\n\ndef ramsey_number_six_six.answer : ℕ := sorry\n\n/--\nThe diagonal Ramsey number $R(6,6)$ is unknown. The best known bounds recorded in [Rad] are\n$102 \\le R(6,6) \\le 165$.\n-/\n@[category research open, question value, AMS 5]\ntheorem ramsey_number_six_six : R(6, 6) = ramsey_number_six_six.answer := by\n  sorry\n\n/--\nLower bound $102 \\le R(6,6)$, equivalently: there exists a graph on $101$ vertices with no\n$6$-clique and no independent set of size $6$.\n-/\n@[category research solved, AMS 5]\ntheorem ramsey_number_six_six_lower_bound :\n    ∃ G : SimpleGraph (Fin 101), G.CliqueFree 6 ∧ (Gᶜ).CliqueFree 6 := by\n  sorry\n\n/--\nUpper bound $R(6,6) \\le 165$, i.e. every graph on $165$ vertices contains a $6$-clique or an\nindependent set of size $6$.\n-/\n@[category research solved, AMS 5]\ntheorem ramsey_number_six_six_upper_bound :\n    IsGraphRamsey 165 6 6 := by\n  sorry\n\nend RamseyNumbers\n",
  "statement_hash": "36d0764d496b8a96b5dd9eaa804dfe4fccffbf8cb4744b9de146cfdaa9def43d",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}