{
  "id": "3088",
  "ident": "NS.03088",
  "slug": "erdos-751",
  "title": "Erdős Problem 751",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $G$ be a graph with chromatic number $\\chi(G)=4$. If $m_1<m_2<\\cdots$ are the lengths of the\ncycles in $G$ then can $\\min(m_{i+1}-m_i)$ be arbitrarily large?\n\nThe answer is no: Bondy and Vince [BoVi98] proved that every graph with minimum degree at least $3$\nhas two cycles whose lengths differ by at most $2$, and hence the same is true for every graph with\nchromatic number $4$.\n\n`erdos_751.variants.finite` below carries the Lean proof. It assumes a finite vertex type,\nwhere this quantifies over any `V : Type`, and the two are joined by de Bruijn-Erdős: a graph\nthat is not $3$-colourable has a finite subgraph that is not $3$-colourable, and cycles of that\nsubgraph are cycles of the whole. Mathlib does not have de Bruijn-Erdős, so that step is not\nformalised here.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos751.erdos_751.parts.i",
  "statement_lean": "theorem erdos_751.parts.i :\n    ¬ ∀ k : ℕ, ∃ (V : Type) (G : SimpleGraph V), G.chromaticNumber = 4 ∧\n      ∀ m ∈ G.cycleLengths, ∀ m' ∈ G.cycleLengths, m < m' → m + k ≤ m'",
  "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# Erdős Problem 751\n\n*References:*\n- [erdosproblems.com/751](https://www.erdosproblems.com/751)\n- [Er94b] Erdős, Paul, Some problems in number theory, combinatorics and combinatorial geometry.\n  Math. Pannon. (1994), 261--269.\n- [BoVi98] Bondy, J. A. and Vince, A., Cycles in a graph whose lengths differ by one or two.\n  J. Graph Theory (1998), 11--15.\n-/\n\n@[expose] public section\n\nnamespace Erdos751\n\n/--\nLet $G$ be a graph with chromatic number $\\chi(G)=4$. If $m_1<m_2<\\cdots$ are the lengths of the\ncycles in $G$ then can $\\min(m_{i+1}-m_i)$ be arbitrarily large?\n\nThe answer is no: Bondy and Vince [BoVi98] proved that every graph with minimum degree at least $3$\nhas two cycles whose lengths differ by at most $2$, and hence the same is true for every graph with\nchromatic number $4$.\n\n`erdos_751.variants.finite` below carries the Lean proof. It assumes a finite vertex type,\nwhere this quantifies over any `V : Type`, and the two are joined by de Bruijn-Erdős: a graph\nthat is not $3$-colourable has a finite subgraph that is not $3$-colourable, and cycles of that\nsubgraph are cycles of the whole. Mathlib does not have de Bruijn-Erdős, so that step is not\nformalised here.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_751.parts.i :\n    ¬ ∀ k : ℕ, ∃ (V : Type) (G : SimpleGraph V), G.chromaticNumber = 4 ∧\n      ∀ m ∈ G.cycleLengths, ∀ m' ∈ G.cycleLengths, m < m' → m + k ≤ m' := by\n  sorry\n\n/--\nLet $G$ be a graph with chromatic number $\\chi(G)=4$. If $m_1<m_2<\\cdots$ are the lengths of the\ncycles in $G$ then can $\\min(m_{i+1}-m_i)$ be arbitrarily large? Can this happen if the girth of\n$G$ is large?\n\nThe answer is no: Bondy and Vince [BoVi98] proved that every graph with minimum degree at least $3$\nhas two cycles whose lengths differ by at most $2$, and hence the same is true for every graph with\nchromatic number $4$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_751.parts.ii :\n    ¬ ∀ k g : ℕ, ∃ (V : Type) (G : SimpleGraph V), G.chromaticNumber = 4 ∧ g ≤ G.girth ∧\n      ∀ m ∈ G.cycleLengths, ∀ m' ∈ G.cycleLengths, m < m' → m + k ≤ m' := by\n  sorry\n\n/--\nBondy and Vince [BoVi98] proved that every graph with minimum degree at least $3$ has two cycles\nwhose lengths differ by at most $2$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_751.variants.bondy_vince {V : Type*} [Fintype V] (G : SimpleGraph V)\n    [DecidableRel G.Adj] (hG : 3 ≤ G.minDegree) :\n    ∃ m ∈ G.cycleLengths, ∃ m' ∈ G.cycleLengths, m < m' ∧ m' ≤ m + 2 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe finite case of `erdos_751.parts.i`, which is what the Lean proof establishes: a finite graph\nwith chromatic number at least $4$ has two cycles whose lengths differ by $1$ or $2$.\n\nThe proof reaches this through a $4$-critical subgraph, which supplies the $2$-connectivity and\nthe vertex count its Bondy-Vince step needs on top of minimum degree $3$. Those extra hypotheses\nare why it does not also settle `erdos_751.variants.bondy_vince`, which asks for minimum degree\n$3$ alone.\n\nThis was formalized in Lean by SpringSense Innovation Institute using ChatGPT.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n\"https://github.com/SpringSense-Innovation-Institute/ai-for-math-lean/blob/ae3ead960a494cf81b28541c477e50997cb03999/erdos-problems/erdos751/Erdos751/Main.lean#L40-L69\"]\ntheorem erdos_751.variants.finite {V : Type*} [Fintype V] (G : SimpleGraph V)\n    [DecidableRel G.Adj] (hG : (4 : ℕ∞) ≤ G.chromaticNumber) :\n    ∃ m ∈ G.cycleLengths, ∃ m' ∈ G.cycleLengths, m < m' ∧ m' ≤ m + 2 := by\n  sorry\n\nend Erdos751\n",
  "statement_hash": "ab22aa8b5516048de21eccca912cd9b4031fa02d59ea4312c43c350b03742a8d",
  "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."
}