{
  "id": "2987",
  "ident": "NS.02987",
  "slug": "erdos-717",
  "title": "Erdős Problem 717",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $G$ be a graph on $n$ vertices with chromatic number $\\chi(G)$ and let $\\sigma(G)$ be the\nmaximal $k$ such that $G$ contains a subdivision of $K_k$. Is it true that\n$$\\chi(G) \\ll \\frac{n^{1/2}}{\\log n}\\sigma(G)?$$\n\nThe answer is yes, proved by Fox, Lee, and Sudakov [FLS13, Theorem 1.1]. We read $\\ll$ as: there\nis an absolute constant $C > 0$ with this inequality for all graphs on $n \\geq 2$ vertices\n(for $n = 1$, $\\log n = 0$).",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos717.erdos_717",
  "statement_lean": "theorem erdos_717 :\n    ∃ C : ℝ, 0 < C ∧\n      ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n        2 ≤ Fintype.card V →\n        (G.chromaticNumber.toNat : ℝ) ≤\n          C * (Real.sqrt (Fintype.card V : ℝ) / Real.log (Fintype.card V : ℝ)) *\n            (cliqueSubdivisionNumber G : ℝ)",
  "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 717\n\n*References:*\n- [erdosproblems.com/717](https://www.erdosproblems.com/717)\n- [ErFa81] Erdős, Paul and Fajtlowicz, Siemion, *On the conjecture of Hajós*. Combinatorica 1\n  (1981), 141-143. [PDF](https://www.renyi.hu/~p_erdos/1981-17.pdf)\n- [FLS13] Fox, Jacob and Lee, Choongbum and Sudakov, Benny, *Chromatic number, clique\n  subdivisions, and the conjectures of Hajós and Erdős-Fajtlowicz*. Combinatorica 33 (2013),\n  181-197. [arXiv:1107.1920](https://arxiv.org/abs/1107.1920)\n-/\n\n@[expose] public section\n\nopen Filter Topology\n\nnamespace Erdos717\n\n/-- The edges of $K_r$ on `Fin r`, each written as a pair `(i, j)` with `i < j`. -/\nabbrev CliqueEdge (r : ℕ) := {e : Fin r × Fin r // e.1 < e.2}\n\n/-- The vertices of a walk other than its two endpoints. -/\ndef walkInteriorSet {V : Type*} {G : SimpleGraph V} {u v : V} (p : G.Walk u v) : Set V :=\n  {x | x ∈ p.support ∧ x ≠ u ∧ x ≠ v}\n\n/--\nA subdivision of the complete graph $K_r$ in `G`: `r` distinct branch vertices, and for each\nedge `(i, j)` of $K_r$ a path in `G` from the `i`th to the `j`th branch vertex. The interiors of\nthese paths are pairwise disjoint and contain no branch vertex.\n-/\nstructure CliqueSubdivision {V : Type*} (G : SimpleGraph V) (r : ℕ) where\n  branch : Fin r ↪ V\n  path : ∀ e : CliqueEdge r, G.Walk (branch e.1.1) (branch e.1.2)\n  path_isPath : ∀ e, (path e).IsPath\n  interior_avoids_branch : ∀ e, Disjoint (walkInteriorSet (path e)) (Set.range branch)\n  interior_pairwise : Pairwise fun e f =>\n    Disjoint (walkInteriorSet (path e)) (walkInteriorSet (path f))\n\n/-- `G` contains a subdivision of the complete graph $K_r$. -/\ndef ContainsCliqueSubdivision {V : Type*} (G : SimpleGraph V) (r : ℕ) : Prop :=\n  Nonempty (CliqueSubdivision G r)\n\nopen scoped Classical in\n/--\n$\\sigma(G)$: the largest `r` such that `G` contains a subdivision of $K_r$.\n\nA subdivision of $K_r$ has `r` distinct branch vertices, so it is enough to search `r ≤ |V|`.\nEvery graph contains a subdivision of $K_0$, so $\\sigma(G) = 0$ only if `V` is empty.\n-/\nnoncomputable def cliqueSubdivisionNumber {V : Type*} [Fintype V] (G : SimpleGraph V) : ℕ :=\n  Nat.findGreatest (ContainsCliqueSubdivision G) (Fintype.card V)\n\n/-- The complete graph $K_1$ has no edges. -/\n@[category API, AMS 5]\ntheorem CliqueEdge.isEmpty_one : IsEmpty (CliqueEdge 1) :=\n  ⟨fun e => (lt_irrefl e.1.1) (Subsingleton.elim e.1.2 e.1.1 ▸ e.2)⟩\n\n/-- A single vertex is a subdivision of $K_1$. -/\n@[category test, AMS 5]\ntheorem containsCliqueSubdivision_one {V : Type*} (G : SimpleGraph V) (v : V) :\n    ContainsCliqueSubdivision G 1 := by\n  have := CliqueEdge.isEmpty_one\n  exact ⟨{\n    branch := ⟨fun _ => v, fun a b _ => Subsingleton.elim a b⟩\n    path := fun e => isEmptyElim e\n    path_isPath := fun e => isEmptyElim e\n    interior_avoids_branch := fun e => isEmptyElim e\n    interior_pairwise := fun e => isEmptyElim e }⟩\n\n/-- A subdivision of $K_r$ has `r` distinct branch vertices, so `r ≤ |V|`. -/\n@[category API, AMS 5]\ntheorem card_le_of_containsCliqueSubdivision {V : Type*} [Fintype V] {G : SimpleGraph V}\n    {r : ℕ} (h : ContainsCliqueSubdivision G r) : r ≤ Fintype.card V := by\n  obtain ⟨S⟩ := h\n  simpa using Fintype.card_le_of_injective S.branch S.branch.injective\n\n/-- If `G` contains a subdivision of $K_r$, then $r \\leq \\sigma(G)$. -/\n@[category API, AMS 5]\ntheorem le_cliqueSubdivisionNumber {V : Type*} [Fintype V] {G : SimpleGraph V} {r : ℕ}\n    (h : ContainsCliqueSubdivision G r) : r ≤ cliqueSubdivisionNumber G := by\n  classical\n  exact Nat.le_findGreatest (card_le_of_containsCliqueSubdivision h) h\n\n/-- Every graph with a vertex has $\\sigma(G) \\geq 1$. -/\n@[category test, AMS 5]\ntheorem one_le_cliqueSubdivisionNumber {V : Type*} [Fintype V] [Nonempty V]\n    (G : SimpleGraph V) : 1 ≤ cliqueSubdivisionNumber G :=\n  le_cliqueSubdivisionNumber (containsCliqueSubdivision_one G (Classical.choice inferInstance))\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $G$ be a graph on $n$ vertices with chromatic number $\\chi(G)$ and let $\\sigma(G)$ be the\nmaximal $k$ such that $G$ contains a subdivision of $K_k$. Is it true that\n$$\\chi(G) \\ll \\frac{n^{1/2}}{\\log n}\\sigma(G)?$$\n\nThe answer is yes, proved by Fox, Lee, and Sudakov [FLS13, Theorem 1.1]. We read $\\ll$ as: there\nis an absolute constant $C > 0$ with this inequality for all graphs on $n \\geq 2$ vertices\n(for $n = 1$, $\\log n = 0$).\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n    \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos717.lean#L573\"]\ntheorem erdos_717 :\n    ∃ C : ℝ, 0 < C ∧\n      ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n        2 ≤ Fintype.card V →\n        (G.chromaticNumber.toNat : ℝ) ≤\n          C * (Real.sqrt (Fintype.card V : ℝ) / Real.log (Fintype.card V : ℝ)) *\n            (cliqueSubdivisionNumber G : ℝ) := by\n  sorry\n\n/--\nErdős and Fajtlowicz [ErFa81, Theorem 3] showed that for almost all graphs on $n$ vertices\n$$\\chi(G) \\gg \\frac{n^{1/2}}{\\log n}\\sigma(G).$$\nAs in [ErFa81, p. 141], \"almost all\" means all but $o(2^{\\binom{n}{2}})$ labelled graphs on $n$\nvertices.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_717.variants.erdos_fajtlowicz :\n    ∃ C : ℝ, 0 < C ∧\n      Tendsto (fun n : ℕ =>\n        (Nat.card {G : SimpleGraph (Fin n) //\n          ¬ (C * (Real.sqrt n / Real.log n) * (cliqueSubdivisionNumber G : ℝ) <\n            (G.chromaticNumber.toNat : ℝ))} : ℝ) / 2 ^ n.choose 2) atTop (𝓝 0) := by\n  sorry\n\nend Erdos717\n",
  "statement_hash": "07d772eceeb2208bc174e49bc925bc7acca0e3fba23013c287e3830fdd4bcb81",
  "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."
}