{
  "id": "3617",
  "ident": "NS.03617",
  "slug": "erdos-917",
  "title": "Erdős Problem 917",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $k\\geq 4$ and $f_k(n)$ be the largest number of edges in a graph on $n$ vertices which has\nchromatic number $k$ and is critical (i.e. deleting any edge reduces the chromatic number).\n\nIs it true that\n$$f_k(n) \\gg_k n^2?$$\n\nThis is the first part. It was proved by Toft [To70]. We read $\\gg_k$ as: for each $k$ there is\n$c > 0$ with $f_k(n) \\geq cn^2$ for all large $n$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos917.erdos_917.parts.i",
  "statement_lean": "theorem erdos_917.parts.i :\n    ∀ k : ℕ, 4 ≤ k → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, c * (n : ℝ) ^ 2 ≤ (f k n : ℝ)",
  "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 917\n\n*References:*\n- [erdosproblems.com/917](https://www.erdosproblems.com/917)\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  [PDF](https://www.renyi.hu/~p_erdos/1969-13.pdf)\n- [Er93] Erdős, P., *Some of my favorite solved and unsolved problems in graph theory*.\n  Quaestiones Math. 16 (1993), 333-350.\n- [Di52] Dirac, G. A., *A property of $4$-chromatic graphs and some remarks on critical graphs*.\n  J. London Math. Soc. 27 (1952), 85-92.\n- [To70] Toft, B., *On the maximal number of edges of critical $k$-chromatic graphs*. Studia Sci.\n  Math. Hungar. 5 (1970), 461-470.\n- [St87] Stiebitz, M., *Subgraphs of colour-critical graphs*. Combinatorica 7 (1987), 303-312.\n- [LMY23] Luo, C., Ma, J. and Yang, T., *On the maximum number of edges in $k$-critical graphs*.\n  Combin. Probab. Comput. 32 (2023), 900-911.\n  [arXiv:2301.01656](https://arxiv.org/abs/2301.01656)\n\nThe question is due to Erdős [Er69b, p. 28]; see also [Er93, p. 341]. See also\n[erdosproblems.com/944](https://www.erdosproblems.com/944) and\n[erdosproblems.com/1032](https://www.erdosproblems.com/1032).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos917\n\n/-- A graph `G` is `k`-critical if it has chromatic number `k` and every proper subgraph has\nchromatic number less than `k`. For a finite graph a proper subgraph misses a vertex or an edge, so\nthis holds iff `G.IsCritical k` (deleting any vertex lowers the chromatic number) and deleting any\nedge lowers the chromatic number.\n\nThe definition of Dirac quoted in [Er69b] uses only the edge condition. That would allow isolated\nvertices, and then $f_k(n)$ below would be a running maximum. We use the standard notion, which is\nalso the one in [LMY23]. -/\ndef IsKCritical {V : Type*} (G : SimpleGraph V) (k : ℕ) : Prop :=\n  G.IsCritical k ∧ ∀ e ∈ G.edgeSet, G.IsCriticalEdge e\n\n/-- $f_k(n)$ is the largest number of edges of a `k`-critical graph on `n` vertices. A graph on `n`\nvertices has at most $\\binom{n}{2}$ edges, so the `sSup` is a maximum whenever such a graph exists.\nIf there is none (for example if $n < k$), the value is `0`. -/\nnoncomputable def f (k n : ℕ) : ℕ :=\n  sSup {m : ℕ | ∃ G : SimpleGraph (Fin n), IsKCritical G k ∧ G.edgeSet.ncard = m}\n\n/-- A `k`-critical graph on `n` vertices has at most `f k n` edges. -/\n@[category API, AMS 5]\ntheorem edgeSet_ncard_le_f {k n : ℕ} {G : SimpleGraph (Fin n)} (hG : IsKCritical G k) :\n    G.edgeSet.ncard ≤ f k n := by\n  unfold f\n  refine le_csSup ⟨Nat.card (Sym2 (Fin n)), ?_⟩ ⟨G, hG, rfl⟩\n  rintro m ⟨H, -, rfl⟩\n  exact Set.ncard_le_card _\n\n/-- The conjectured value $\\frac{1}{2}\\left(1-\\frac{1}{\\lfloor k/3\\rfloor}\\right)n^2$ of $f_k(n)$\nfor $k \\geq 6$. It is also used for $k = 3$ in `erdos_917.variants.erdos_three_dvd`, where it is\n$0$. -/\nnoncomputable def conjecturedValue (k n : ℕ) : ℝ :=\n  1 / 2 * (1 - 1 / ((k / 3 : ℕ) : ℝ)) * (n : ℝ) ^ 2\n\n/-- For $k = 6$ the conjectured value is $n^2/4$. -/\n@[category test, AMS 5]\ntheorem conjecturedValue_six (n : ℕ) : conjecturedValue 6 n = (n : ℝ) ^ 2 / 4 := by\n  have h : ((6 / 3 : ℕ) : ℝ) = 2 := by norm_num\n  rw [conjecturedValue, h]\n  ring\n\n/-- The constant $\\delta_k$ of the constructions below: $\\delta_k = 0$ if $k \\equiv 0 \\pmod 3$,\n$\\delta_k = 1/7$ if $k \\equiv 1 \\pmod 3$ and $\\delta_k = 24/69$ if $k \\equiv 2 \\pmod 3$. -/\nnoncomputable def delta (k : ℕ) : ℝ :=\n  if k % 3 = 0 then 0 else if k % 3 = 1 then 1 / 7 else 24 / 69\n\n/--\nLet $k\\geq 4$ and $f_k(n)$ be the largest number of edges in a graph on $n$ vertices which has\nchromatic number $k$ and is critical (i.e. deleting any edge reduces the chromatic number).\n\nIs it true that\n$$f_k(n) \\gg_k n^2?$$\n\nThis is the first part. It was proved by Toft [To70]. We read $\\gg_k$ as: for each $k$ there is\n$c > 0$ with $f_k(n) \\geq cn^2$ for all large $n$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_917.parts.i :\n    ∀ k : ℕ, 4 ≤ k → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, c * (n : ℝ) ^ 2 ≤ (f k n : ℝ) := by\n  sorry\n\n/--\nLet $k\\geq 4$ and $f_k(n)$ be the largest number of edges in a graph on $n$ vertices which has\nchromatic number $k$ and is critical (i.e. deleting any edge reduces the chromatic number).\n\nIs it true that\n$$f_6(n)\\sim n^2/4?$$\n\nThis is the second part.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_917.parts.ii :\n    (fun n : ℕ ↦ (f 6 n : ℝ)) ~[atTop] (fun n : ℕ ↦ (n : ℝ) ^ 2 / 4) := by\n  sorry\n\n/--\nLet $k\\geq 4$ and $f_k(n)$ be the largest number of edges in a graph on $n$ vertices which has\nchromatic number $k$ and is critical (i.e. deleting any edge reduces the chromatic number).\n\nMore generally, is it true that, for $k\\geq 6$,\n$$f_k(n) \\sim \\frac{1}{2}\\left(1-\\frac{1}{\\lfloor k/3\\rfloor}\\right)n^2?$$\n\nThis is the third part. It has a negative answer: the constructions in\n`erdos_917.variants.lower_construction` disprove it for $k \\not\\equiv 0 \\pmod 3$\n(see `erdos_917.variants.not_asymptotic`).\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_917.parts.iii :\n    ¬ ∀ k : ℕ, 6 ≤ k → (fun n : ℕ ↦ (f k n : ℝ)) ~[atTop] conjecturedValue k := by\n  sorry\n\n/--\nConstructions of Stiebitz [St87] show that, for $k\\geq 6$, there exist infinitely many values of\n$n$ such that\n$$f_k(n) \\geq \\frac{1}{2}\\left(1-\\frac{1}{\\lfloor k/3\\rfloor+\\delta_k}\\right)n^2$$\nwhere $\\delta_k=0$ if $k\\equiv 0\\pmod{3}$, $\\delta_k=1/7$ if $k\\equiv 1\\pmod{3}$, and\n$\\delta_k = 24/69$ if $k\\equiv 2\\pmod{3}$.\n\n[LMY23] state the same bound in the form $(\\frac12-\\frac{3}{2k-\\delta_k'})n^2$ with\n$\\delta_k'=0,8/7,44/23$, and credit the constructions to Toft [To70].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.lower_construction (k : ℕ) (hk : 6 ≤ k) :\n    ∃ᶠ n : ℕ in atTop,\n      1 / 2 * (1 - 1 / (((k / 3 : ℕ) : ℝ) + delta k)) * (n : ℝ) ^ 2 ≤ (f k n : ℝ) := by\n  sorry\n\n/--\nThe constructions in `erdos_917.variants.lower_construction` disprove Erdős' conjectured asymptotic\n$f_k(n) \\sim \\frac{1}{2}\\left(1-\\frac{1}{\\lfloor k/3\\rfloor}\\right)n^2$ for $k\\not\\equiv 0\\pmod{3}$,\n$k \\geq 6$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.not_asymptotic (k : ℕ) (hk : 6 ≤ k) (h3 : ¬ 3 ∣ k) :\n    ¬ (fun n : ℕ ↦ (f k n : ℝ)) ~[atTop] conjecturedValue k := by\n  sorry\n\n/--\nThe remaining case of the third question: is it true that, for $k\\geq 6$ with $3 \\mid k$,\n$$f_k(n) \\sim \\frac{1}{2}\\left(1-\\frac{1}{\\lfloor k/3\\rfloor}\\right)n^2?$$\nFor $k = 6$ this is `erdos_917.parts.ii`.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_917.variants.three_dvd :\n    ∀ k : ℕ, 6 ≤ k → 3 ∣ k → (fun n : ℕ ↦ (f k n : ℝ)) ~[atTop] conjecturedValue k := by\n  sorry\n\n/--\nIn fact Dirac [Di52] proved\n$$f_6(4n+2) \\geq 4n^2+8n+3,$$\nas witnessed by taking two disjoint copies of $C_{2n+1}$ and adding all edges between them.\n\nWe take $n \\geq 1$, so that $C_{2n+1}$ is a cycle.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.dirac (n : ℕ) (hn : 1 ≤ n) :\n    4 * n ^ 2 + 8 * n + 3 ≤ f 6 (4 * n + 2) := by\n  sorry\n\n/--\nErdős [Er69b] observed that Dirac's construction generalises to show that, if $3\\mid k$, there are\ninfinitely many values of $n$ (those of the shape $mk/3$ where $m$ is odd) such that\n$$f_k(n) \\geq \\frac{1}{2}\\left(1-\\frac{1}{k/3}\\right)n^2 + n.$$\n\nWe take $m \\geq 3$, so that the cycle $C_m$ exists.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.erdos_three_dvd (k : ℕ) (hk : 3 ≤ k) (h3 : 3 ∣ k) (m : ℕ)\n    (hm : Odd m) (hm3 : 3 ≤ m) :\n    conjecturedValue k (m * (k / 3)) + ((m * (k / 3) : ℕ) : ℝ) ≤ (f k (m * (k / 3)) : ℝ) := by\n  sorry\n\n/--\nStiebitz also proved the general upper bound\n$$f_k(n) < \\mathrm{ex}(n;K_{k-1})\\sim \\frac{1}{2}\\left(1-\\frac{1}{k-2}\\right)n^2$$\nfor large $n$.\n\nHere $k \\geq 4$, as in [LMY23].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.stiebitz_upper (k : ℕ) (hk : 4 ≤ k) :\n    ∀ᶠ n : ℕ in atTop,\n      f k n < SimpleGraph.extremalNumber n (SimpleGraph.completeGraph (Fin (k - 1))) := by\n  sorry\n\n/--\nLuo, Ma, and Yang [LMY23] have improved this upper bound to\n$$f_k(n) \\leq \\frac{1}{2}\\left(1-\\frac{1}{k-2}-\\frac{1}{36(k-1)^2}+o(1)\\right)n^2.$$\n\n[LMY23, Theorem 1.1] proves the stronger bound\n$f_k(n) \\leq \\mathrm{ex}(n;K_{k-1}) - \\frac{n^2}{36(k-1)^2}$ for $k \\geq 4$ and all large $n$, where\n$\\mathrm{ex}(n;K_{k-1})$ is the number of edges of the Turán graph $T_{k-2}(n)$. We state this form.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_917.variants.luo_ma_yang (k : ℕ) (hk : 4 ≤ k) :\n    ∀ᶠ n : ℕ in atTop, (f k n : ℝ) ≤\n      (SimpleGraph.extremalNumber n (SimpleGraph.completeGraph (Fin (k - 1))) : ℝ) -\n        (n : ℝ) ^ 2 / (36 * ((k : ℝ) - 1) ^ 2) := by\n  sorry\n\nend Erdos917\n",
  "statement_hash": "a3381c7b92f5771c1025d43c7dd9801de85967e67e59eabd62f984107fe91e0e",
  "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."
}