{
  "id": "680",
  "ident": "NS.00680",
  "slug": "erdos-1104",
  "title": "Erdős Problem 1104",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Lower bound (Hefty–Horn–King–Pfender 2025).\n$$\n(1 - o(1)) \\sqrt{\\frac{n}{\\log n}} \\le f(n),\n$$\nwhere $f(n)$ denotes the maximum chromatic number of a triangle-free graph on\n$n$ vertices, formalized as `triangleFreeMaxChromatic n`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1104.erdos_1104.variants.lower",
  "statement_lean": "theorem erdos_1104.variants.lower :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (1 - ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ))\n        ≤ (triangleFreeMaxChromatic n : ℝ)",
  "challenge_source": "/-\nCopyright 2025 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 1104\n\n*Reference:* https://www.erdosproblems.com/1104\n-/\n\n@[expose] public section\n\nnamespace Erdos1104\n\nopen Filter SimpleGraph\nopen scoped Real\n\n/-- Maximum chromatic number of a triangle-free graph on `n` vertices. -/\nnoncomputable def triangleFreeMaxChromatic (n : ℕ) : ℕ :=\n  sSup {χ | ∃ G : SimpleGraph (Fin n), G.CliqueFree 3 ∧ G.chromaticNumber = χ}\n\n-- TODO: Add erdos_1104.\n\n/--\nLower bound (Hefty–Horn–King–Pfender 2025).\n$$\n(1 - o(1)) \\sqrt{\\frac{n}{\\log n}} \\le f(n),\n$$\nwhere $f(n)$ denotes the maximum chromatic number of a triangle-free graph on\n$n$ vertices, formalized as `triangleFreeMaxChromatic n`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1104.variants.lower :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (1 - ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ))\n        ≤ (triangleFreeMaxChromatic n : ℝ) := by\n  sorry\n\n/--\nUpper bound (Davies–Illingworth 2022).\n$$\nf(n) \\le (2 + o(1)) \\sqrt{\\frac{n}{\\log n}},\n$$\nwhere $f(n)$ denotes the maximum chromatic number of a triangle-free graph on\n$n$ vertices, formalized as `triangleFreeMaxChromatic n`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1104.variants.upper :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (triangleFreeMaxChromatic n : ℝ)\n        ≤ (2 + ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ)) := by\n  sorry\n\nend Erdos1104\n",
  "statement_hash": "2e188367edfe50822be973e28323c8387142fb91226ec924d8e7bdc7501388bb",
  "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."
}