{
  "id": "371",
  "ident": "NS.00371",
  "slug": "erdos-1013",
  "title": "Erdős Problem 1013",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $h_3(k)$ be the minimal $n$ such that there exists a triangle-free graph on $n$ vertices with\nchromatic number $k$. Find an asymptotic for $h_3(k)$, and also prove\n$$\\lim_{k\\to \\infty}\\frac{h_3(k+1)}{h_3(k)}=1.$$\n\nThis is the first part.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1013.erdos_1013.parts.i",
  "statement_lean": "theorem erdos_1013.parts.i :\n    (fun k ↦ (h3 k : ℝ)) ~[atTop] erdos_1013.parts.i.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# Erdős Problem 1013\n\n*References:*\n- [erdosproblems.com/1013](https://www.erdosproblems.com/1013)\n- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.\n  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.\n- [GrYa68] Graver, J. E. and Yackel, J., *Some graph theoretic results associated with Ramsey's\n  theorem*. J. Combinatorial Theory 4 (1968), 125-175.\n- [DaIl22] Davies, E. and Illingworth, F., *The $\\chi$-Ramsey problem for triangle-free graphs*.\n  SIAM J. Discrete Math. 36 (2022), 1124-1134.\n- [HHKP25] Hefty, Z., Horn, P., King, D. and Pfender, F., *Improving $R(3,k)$ in just two bites*.\n  [arXiv:2510.19718](https://arxiv.org/abs/2510.19718) (2025).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos1013\n\n/-- $h_3(k)$ is the least $n$ such that some triangle-free graph on $n$ vertices has chromatic\nnumber $k$. Triangle-free graphs of every chromatic number exist (Mycielski), so the set is\nnonempty and `sInf` is a true minimum. -/\nnoncomputable def h3 (k : ℕ) : ℕ :=\n  sInf {n : ℕ | ∃ G : SimpleGraph (Fin n), G.CliqueFree 3 ∧ G.chromaticNumber = k}\n\n/-- A triangle-free graph on $m$ vertices with chromatic number $k$ gives $h_3(k) \\leq m$. -/\n@[category API, AMS 5]\ntheorem h3_le {k m : ℕ} (G : SimpleGraph (Fin m)) (hG : G.CliqueFree 3)\n    (hk : G.chromaticNumber = k) : h3 k ≤ m :=\n  Nat.sInf_le ⟨G, hG, hk⟩\n\n/-- The graph on one vertex is triangle-free with chromatic number $1$, so $h_3(1) \\leq 1$. -/\n@[category test, AMS 5]\ntheorem h3_one_le : h3 1 ≤ 1 :=\n  h3_le (⊥ : SimpleGraph (Fin 1)) (SimpleGraph.cliqueFree_bot (by norm_num))\n    (by exact_mod_cast SimpleGraph.chromaticNumber_bot (V := Fin 1))\n\ndef erdos_1013.parts.i.answer : ℕ → ℝ := sorry\n\n/--\nLet $h_3(k)$ be the minimal $n$ such that there exists a triangle-free graph on $n$ vertices with\nchromatic number $k$. Find an asymptotic for $h_3(k)$, and also prove\n$$\\lim_{k\\to \\infty}\\frac{h_3(k+1)}{h_3(k)}=1.$$\n\nThis is the first part.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_1013.parts.i :\n    (fun k ↦ (h3 k : ℝ)) ~[atTop] erdos_1013.parts.i.answer := by\n  sorry\n\n/--\nLet $h_3(k)$ be the minimal $n$ such that there exists a triangle-free graph on $n$ vertices with\nchromatic number $k$. Find an asymptotic for $h_3(k)$, and also prove\n$$\\lim_{k\\to \\infty}\\frac{h_3(k+1)}{h_3(k)}=1.$$\n\nThis is the second part.\n-/\n@[category research open, AMS 5]\ntheorem erdos_1013.parts.ii :\n    Tendsto (fun k : ℕ ↦ (h3 (k + 1) : ℝ) / h3 k) atTop (nhds 1) := by\n  sorry\n\n/--\nGraver and Yackel [GrYa68] proved\n$$h_3(k)\\gg \\frac{\\log k}{\\log\\log k}k^2.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1013.variants.graver_yackel :\n    ∃ c > (0 : ℝ), ∀ᶠ k : ℕ in atTop,\n      c * (Real.log k / Real.log (Real.log k)) * k ^ 2 ≤ (h3 k : ℝ) := by\n  sorry\n\n/--\nThe upper bound $f(n) \\leq (2+o(1))(n/\\log n)^{1/2}$ of Davies and Illingworth [DaIl22] for the\nfunction $f$ of [1104] gives\n$$\\left(\\frac{1}{2}-o(1)\\right)k^2\\log k\\leq h_3(k).$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1013.variants.lower :\n    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop,\n      (1 / 2 - ε) * k ^ 2 * Real.log k ≤ (h3 k : ℝ) := by\n  sorry\n\n/--\nThe lower bound $f(n) \\geq (1-o(1))(n/\\log n)^{1/2}$ for the function $f$ of [1104], which follows\nfrom the construction of Hefty, Horn, King, and Pfender [HHKP25], gives\n$$h_3(k) \\leq (2+o(1))k^2\\log k.$$\nThe site states $(1+o(1))k^2\\log k$, but the bounds recorded in [1104] give only $2+o(1)$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1013.variants.upper :\n    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop,\n      (h3 k : ℝ) ≤ (2 + ε) * k ^ 2 * Real.log k := by\n  sorry\n\nend Erdos1013\n",
  "statement_hash": "f5a5db9e5fbf46688222641e23986430040553af3626765535bdffc764f42bde",
  "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."
}