{
  "id": "2639",
  "ident": "NS.02639",
  "slug": "erdos-626",
  "title": "Erdős Problem 626",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $k \\geq 4$ and let $g_k(n)$ denote the largest $m$ such that there is a graph on $n$\nvertices with chromatic number $k$ and girth $> m$ (i.e. containing no cycle of length\n$\\leq m$). Does\n$$\\lim_{n\\to\\infty}\\frac{g_k(n)}{\\log n}$$\nexist?\n\nBy `Erdos626.erdos_626.variants.kostochka` and `Erdos626.erdos_626.variants.erdos_upper`, the\nlimit, if it exists, is a positive real number.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos626.erdos_626.parts.i",
  "statement_lean": "theorem erdos_626.parts.i :\n    ∀ k : ℕ, 4 ≤ k → ∃ L : ℝ,\n      Tendsto (fun n : ℕ ↦ (g k n : ℝ) / Real.log n) atTop (𝓝 L)",
  "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 626\n\n*References:*\n- [erdosproblems.com/626](https://www.erdosproblems.com/626)\n- [Er59b] Erdős, P., *Graph theory and probability*. Canadian J. Math. (1959), 34-38.\n- [Er62b] Erdős, P., *On circuits and subgraphs of chromatic graphs*. Mathematika (1962),\n  170-175.\n- [Er69b] Erdős, P., *Problems and results in chromatic graph theory*. Proof Techniques in Graph\n  Theory (Proc. Second Ann Arbor Graph Theory Conf., Ann Arbor, Mich., 1968) (1969), 27-35.\n- [Ko88] Kostochka, A. V., *Upper bounds on the chromatic number of graphs*. Trudy Inst. Mat.\n  (Novosibirsk) (1988), 204-226, 265.\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Topology\n\nnamespace Erdos626\n\n/--\n`g k n` is $g_k(n)$: the largest $m$ such that some graph on $n$ vertices has chromatic number\nexactly $k$ and girth $> m$, that is, no cycle of length $\\leq m$.\n\nThe girth is `SimpleGraph.egirth`, which is `⊤` for an acyclic graph. The value `sSup ∅ = 0`\nfor $n < k$ affects only finitely many $n$. For $k \\leq 2$ the set is unbounded whenever an\nacyclic graph on $n$ vertices with chromatic number $k$ exists, and then `sSup` is also $0$; this\ncase is not used below, where $k \\geq 4$.\n-/\nnoncomputable def g (k n : ℕ) : ℕ :=\n  sSup {m : ℕ | ∃ G : SimpleGraph (Fin n), G.chromaticNumber = k ∧ (m : ℕ∞) < G.egirth}\n\n/--\n`h m n` is $h^{(m)}(n)$: the largest chromatic number of a graph on $n$ vertices with girth\n$> m$.\n-/\nnoncomputable def h (m n : ℕ) : ℕ :=\n  sSup {c : ℕ | ∃ G : SimpleGraph (Fin n), (m : ℕ∞) < G.egirth ∧ G.chromaticNumber = c}\n\n/-- Every cycle has length at least $3$, so for $m \\leq 2$ the girth condition is vacuous and\n$h^{(m)}(n) = n$. -/\n@[category test, AMS 5]\ntheorem h_of_le_two (m n : ℕ) (hm : m ≤ 2) : h m n = n := by\n  unfold h\n  apply IsGreatest.csSup_eq\n  refine ⟨⟨⊤, ?_, by simp [SimpleGraph.chromaticNumber_top]⟩, ?_⟩\n  · exact lt_of_lt_of_le (by exact_mod_cast (by omega : m < 3))\n      (⊤ : SimpleGraph (Fin n)).three_le_egirth\n  · rintro c ⟨G, -, hG⟩\n    have hle := G.chromaticNumber_le_card\n    rw [hG, Fintype.card_fin] at hle\n    exact_mod_cast hle\n\n/--\nLet $k \\geq 4$ and let $g_k(n)$ denote the largest $m$ such that there is a graph on $n$\nvertices with chromatic number $k$ and girth $> m$ (i.e. containing no cycle of length\n$\\leq m$). Does\n$$\\lim_{n\\to\\infty}\\frac{g_k(n)}{\\log n}$$\nexist?\n\nBy `Erdos626.erdos_626.variants.kostochka` and `Erdos626.erdos_626.variants.erdos_upper`, the\nlimit, if it exists, is a positive real number.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_626.parts.i :\n    ∀ k : ℕ, 4 ≤ k → ∃ L : ℝ,\n      Tendsto (fun n : ℕ ↦ (g k n : ℝ) / Real.log n) atTop (𝓝 L) := by\n  sorry\n\n/--\nKostochka [Ko88] proved that for $k \\geq 4$\n$$g_k(n) \\geq \\frac{1}{4\\log k}\\log n.$$\nKostochka's theorem gives this lower bound for the girth itself, and $g_k(n)$ is one less than the\nlargest possible girth, so the inequality above holds only up to $1$. The statement below is a\nconsequence of his theorem, not the theorem itself: for every $\\varepsilon > 0$ and all\nsufficiently large $n$, $g_k(n) \\geq \\left(\\frac{1}{4\\log k} - \\varepsilon\\right)\\log n$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_626.variants.kostochka :\n    ∀ k : ℕ, 4 ≤ k → ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (1 / (4 * Real.log k) - ε) * Real.log n ≤ (g k n : ℝ) := by\n  sorry\n\n/--\nErdős [Er59b] proved that for $k \\geq 4$\n$$g_k(n) \\leq \\frac{2}{\\log(k-2)}\\log n + 1.$$\nWe state it for all sufficiently large $n$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-19-000004\"]\ntheorem erdos_626.variants.erdos_upper :\n    ∀ k : ℕ, 4 ≤ k → ∀ᶠ n : ℕ in atTop,\n      (g k n : ℝ) ≤ 2 * Real.log n / Real.log ((k : ℝ) - 2) + 1 := by\n  sorry\n\n/--\nLet $h^{(m)}(n)$ be the maximal chromatic number of a graph on $n$ vertices with girth $> m$.\nDoes\n$$\\lim_{n\\to\\infty}\\frac{\\log h^{(m)}(n)}{\\log n}$$\nexist, and what is its value? The value is asked for in\n`Erdos626.erdos_626.variants.h_odd_conjecture` and `Erdos626.erdos_626.variants.h_even_conjecture`.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_626.parts.ii :\n    ∀ m : ℕ, ∃ L : ℝ,\n      Tendsto (fun n : ℕ ↦ Real.log (h m n : ℝ) / Real.log n) atTop (𝓝 L) := by\n  sorry\n\n/--\nErdős [Er59b] proved that\n$$\\lim_{n\\to\\infty}\\frac{\\log h^{(m)}(n)}{\\log n} \\gg \\frac{1}{m}.$$\nThe existence of the limit is open, so we state the lower bound for the lower limit: there is\nan absolute constant $c > 0$ such that for every $m \\geq 1$ and $\\varepsilon > 0$, eventually\n$h^{(m)}(n) \\geq n^{c/m - \\varepsilon}$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_626.variants.h_lower :\n    ∃ c > (0 : ℝ), ∀ m : ℕ, 1 ≤ m → ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (n : ℝ) ^ (c / (m : ℝ) - ε) ≤ (h m n : ℝ) := by\n  sorry\n\n/--\nErdős [Er59b] proved that for odd $m$\n$$\\lim_{n\\to\\infty}\\frac{\\log h^{(m)}(n)}{\\log n} \\leq \\frac{2}{m+1}.$$\nThe existence of the limit is open, so we state the bound for the upper limit: for every\n$\\varepsilon > 0$, eventually $h^{(m)}(n) \\leq n^{2/(m+1) + \\varepsilon}$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_626.variants.h_upper_odd :\n    ∀ m : ℕ, Odd m → ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (h m n : ℝ) ≤ (n : ℝ) ^ (2 / ((m : ℝ) + 1) + ε) := by\n  sorry\n\n/--\nErdős conjectured that the bound in `Erdos626.erdos_626.variants.h_upper_odd` is sharp: for\nodd $m$,\n$$\\lim_{n\\to\\infty}\\frac{\\log h^{(m)}(n)}{\\log n} = \\frac{2}{m+1}.$$\n-/\n@[category research open, AMS 5]\ntheorem erdos_626.variants.h_odd_conjecture :\n    ∀ m : ℕ, Odd m → Tendsto (fun n : ℕ ↦ Real.log (h m n : ℝ) / Real.log n) atTop\n      (𝓝 (2 / ((m : ℝ) + 1))) := by\n  sorry\n\n/--\nFor even $m$, Erdős had no good guess for the value of the limit, other than that it should\nlie in $\\left[\\frac{2}{m+2}, \\frac{2}{m}\\right]$. He could not prove this even for $m = 4$.\n\nThe existence of the limit is open, so we state the claim for the lower and upper limits: for\nevery $\\varepsilon > 0$, eventually\n$n^{2/(m+2) - \\varepsilon} \\leq h^{(m)}(n) \\leq n^{2/m + \\varepsilon}$. We require $m \\geq 2$,\nsince $2/m$ is undefined for $m = 0$. The upper half is known: girth $> m$ implies girth\n$> m - 1$, so $h^{(m)}(n) \\leq h^{(m-1)}(n)$, and `Erdos626.erdos_626.variants.h_upper_odd` for\nthe odd number $m - 1$ gives the exponent $2/m$.\n-/\n@[category research open, AMS 5]\ntheorem erdos_626.variants.h_even_conjecture :\n    ∀ m : ℕ, Even m → 2 ≤ m → ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (n : ℝ) ^ (2 / ((m : ℝ) + 2) - ε) ≤ (h m n : ℝ) ∧\n        (h m n : ℝ) ≤ (n : ℝ) ^ (2 / (m : ℝ) + ε) := by\n  sorry\n\nend Erdos626\n",
  "statement_hash": "d3036080b247ab690f7f99ab287ad7f33066828b67525d55260c60609f357316",
  "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."
}