{
  "id": "2616",
  "ident": "NS.02616",
  "slug": "erdos-615",
  "title": "Erdős Problem 615",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does there exist some constant $c > 0$ such that for all sufficiently large $n$, if $G$ is a\ngraph with $n$ vertices and at least $(1/8 - c)n^2$ edges then $G$ must contain either a $K_4$\nor an independent set on at least $n/\\log n$ vertices?\n\nThe answer is no, as shown by Fox, Loh, and Zhao [FLZ15].",
  "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": "Erdos615.erdos_615",
  "statement_lean": "theorem erdos_615 :\n    ¬ ∃ c : ℝ, 0 < c ∧ ∀ᶠ (n : ℕ) in atTop,\n      ∀ G : SimpleGraph (Fin n), (1 / 8 - c) * n ^ 2 ≤ G.edgeFinset.card →\n        ¬ G.CliqueFree 4 ∨ (n : ℝ) / Real.log n ≤ G.indepNum",
  "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 615\n\nA Ramsey–Turán problem of Erdős, Hajnal, Simonovits, Sós, and Szemerédi [EHSSS93]: does there\nexist a constant $c > 0$ such that every graph on $n$ vertices with at least $(1/8 - c)n^2$\nedges contains either a $K_4$ or an independent set on at least $n/\\log n$ vertices? In the\nnotation of Ramsey–Turán theory this asks whether\n$$\\mathrm{rt}(n; 4, n/\\log n) < (1/8 - c)n^2.$$\n\nThis was disproved by Fox, Loh, and Zhao [FLZ15], who showed that\n$\\mathrm{rt}(n; 4, ne^{-f(n)}) \\geq (1/8 - o(1))n^2$ whenever\n$f(n) = o(\\sqrt{\\log n/\\log\\log n})$. In the other direction Sudakov [Su03] had shown that\n$\\mathrm{rt}(n; 4, ne^{-f(n)}) = o(n^2)$ whenever $f(n)/\\sqrt{\\log n} \\to \\infty$.\n\n*References:*\n* [erdosproblems.com/615](https://www.erdosproblems.com/615)\n* [EHSSS93] Erdős, P., Hajnal, A., Simonovits, M., Sós, V. T., and Szemerédi, E.,\n  *Turán-Ramsey theorems and simple asymptotically extremal structures*. Combinatorica 13\n  (1993), 31--56.\n* [Su03] Sudakov, B., *A few remarks on Ramsey-Turán-type problems*. J. Combin. Theory Ser. B\n  88 (2003), 99--106.\n* [FLZ15] Fox, J., Loh, P.-S., and Zhao, Y., *The critical window for the classical\n  Ramsey-Turán problem*. Combinatorica 35 (2015), 435--476.\n-/\n\n@[expose] public section\n\nopen Filter SimpleGraph\n\nnamespace Erdos615\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes there exist some constant $c > 0$ such that for all sufficiently large $n$, if $G$ is a\ngraph with $n$ vertices and at least $(1/8 - c)n^2$ edges then $G$ must contain either a $K_4$\nor an independent set on at least $n/\\log n$ vertices?\n\nThe answer is no, as shown by Fox, Loh, and Zhao [FLZ15].\n-/\n@[category research solved, question, AMS 5,\n  formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/dfe2d78128b493c572cf525b1b8edf4897fb7664/src/latest/ErdosProblems/Erdos615.lean#L492\"]\ntheorem erdos_615 :\n    ¬ ∃ c : ℝ, 0 < c ∧ ∀ᶠ (n : ℕ) in atTop,\n      ∀ G : SimpleGraph (Fin n), (1 / 8 - c) * n ^ 2 ≤ G.edgeFinset.card →\n        ¬ G.CliqueFree 4 ∨ (n : ℝ) / Real.log n ≤ G.indepNum := by\n  sorry\n\nopen scoped Classical in\n/--\nThe result of Fox, Loh, and Zhao [FLZ15] disproving the problem: if $f(n) \\geq 0$ satisfies\n$f(n) = o(\\sqrt{\\log n/\\log\\log n})$, then for every $\\epsilon > 0$ and all sufficiently\nlarge $n$ there is a $K_4$-free graph on $n$ vertices with independence number at most\n$ne^{-f(n)}$ and at least $(1/8 - \\epsilon)n^2$ edges; that is,\n$\\mathrm{rt}(n; 4, ne^{-f(n)}) \\geq (1/8 - o(1))n^2$. Applied with\n$f(n) = \\log\\log n$, this disproves the headline problem, since\n$ne^{-f(n)} = n/\\log n = o(n)$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_615.variants.fox_loh_zhao (f : ℕ → ℝ) (hf : ∀ n, 0 ≤ f n)\n    (hfo : Tendsto (fun n : ℕ => f n / Real.sqrt (Real.log n / Real.log (Real.log n)))\n      atTop (nhds 0)) (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ (n : ℕ) in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n        (G.indepNum : ℝ) ≤ n * Real.exp (-f n) ∧\n        (1 / 8 - ε) * n ^ 2 ≤ G.edgeFinset.card := by\n  sorry\n\nopen scoped Classical in\n/--\nThe complementary result of Sudakov [Su03]: if $f(n)/\\sqrt{\\log n} \\to \\infty$ then\n$\\mathrm{rt}(n; 4, ne^{-f(n)}) = o(n^2)$; that is, for every $\\epsilon > 0$ and all\nsufficiently large $n$, every $K_4$-free graph on $n$ vertices with independence number at\nmost $ne^{-f(n)}$ has at most $\\epsilon n^2$ edges.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_615.variants.sudakov (f : ℕ → ℝ)\n    (hf : Tendsto (fun n : ℕ => f n / Real.sqrt (Real.log n)) atTop atTop)\n    (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ (n : ℕ) in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 4 →\n        (G.indepNum : ℝ) ≤ n * Real.exp (-f n) →\n        (G.edgeFinset.card : ℝ) ≤ ε * n ^ 2 := by\n  sorry\n\n/--\nA sanity check for `erdos_615`: the empty graph on $n \\geq 3$ vertices contains an independent\nset on at least $n/\\log n$ vertices (namely the whole vertex set), so it satisfies the\nconclusion of the implication in the problem statement.\n-/\n@[category test, AMS 5]\ntheorem erdos_615.variants.test_bot (n : ℕ) (hn : 3 ≤ n) :\n    (n : ℝ) / Real.log n ≤ (⊥ : SimpleGraph (Fin n)).indepNum := by\n  have hn' : (3 : ℝ) ≤ n := by exact_mod_cast hn\n  have h1 : (1 : ℝ) ≤ Real.log n := by\n    rw [Real.le_log_iff_exp_le (by linarith)]\n    calc Real.exp 1 ≤ 3 := by\n          have := Real.exp_one_lt_d9\n          linarith\n      _ ≤ n := hn'\n  have h2 : (n : ℝ) / Real.log n ≤ n := div_le_self (by positivity) h1\n  have h3 : (Finset.univ : Finset (Fin n)).card ≤ (⊥ : SimpleGraph (Fin n)).indepNum :=\n    SimpleGraph.IsIndepSet.card_le_indepNum (by simp [SimpleGraph.isIndepSet_iff, Set.Pairwise])\n  have h4 : (n : ℝ) ≤ (⊥ : SimpleGraph (Fin n)).indepNum := by exact_mod_cast by simpa using h3\n  exact h2.trans h4\n\nend Erdos615\n",
  "statement_hash": "275b01dfb6617619dd2608690727c505d5ba96b73567fd4b8397c2b3cdedd672",
  "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."
}