{
  "id": "1377",
  "ident": "NS.01377",
  "slug": "erdos-22",
  "title": "Erdős Problem 22",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\epsilon > 0$ and let $n$ be sufficiently large depending on $\\epsilon$. Is there a graph\non $n$ vertices with at least $n^2/8$ many edges which contains no $K_4$, such that the largest\nindependent set has size at most $\\epsilon n$?\n\nThis is true, as proved 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": "Erdos22.erdos_22",
  "statement_lean": "theorem erdos_22 :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n        (G.indepNum : ℝ) ≤ ε * n ∧ (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card",
  "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 22\n\nThe central problem of Ramsey–Turán theory: writing $\\mathrm{rt}(n; k, \\ell)$ for the maximum\nnumber of edges of a $K_k$-free graph on $n$ vertices whose largest independent set has size\nless than $\\ell$, is it true that for every $\\epsilon > 0$ and all sufficiently large $n$\n$$\\mathrm{rt}(n; 4, \\epsilon n) \\geq n^2/8?$$\n\nConjectured by Bollobás and Erdős [BoEr76], who constructed such a graph with\n$(1/8 + o(1))n^2$ edges. Together with the matching upper bound\n$\\mathrm{rt}(n; 4, \\epsilon n) \\leq (1/8 + o(1))n^2$ of Szemerédi [Sz72], this determines the\nRamsey–Turán density of $K_4$ to be $1/8$. The conjecture as stated was proved by Fox, Loh,\nand Zhao [FLZ15].\n\n*References:*\n* [erdosproblems.com/22](https://www.erdosproblems.com/22)\n* [BoEr76] Bollobás, B. and Erdős, P., *On a Ramsey-Turán type problem*. J. Combin. Theory\n  Ser. B 21 (1976), 166--168.\n* [Sz72] Szemerédi, E., *On graphs containing no complete subgraph with 4 vertices*\n  (Hungarian). Mat. Lapok 23 (1972), 113--116.\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 Erdos22\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\epsilon > 0$ and let $n$ be sufficiently large depending on $\\epsilon$. Is there a graph\non $n$ vertices with at least $n^2/8$ many edges which contains no $K_4$, such that the largest\nindependent set has size at most $\\epsilon n$?\n\nThis is true, as proved by Fox, Loh, and Zhao [FLZ15].\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/Erdos22.lean#L880\"]\ntheorem erdos_22 :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n        (G.indepNum : ℝ) ≤ ε * n ∧ (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card := by\n  sorry\n\nopen scoped Classical in\n/--\nThe matching upper bound, due to Szemerédi [Sz72]: a $K_4$-free graph on $n$ vertices whose\nindependence number is sublinear in $n$ has at most $(1/8 + o(1))n^2$ edges. That is, for every\n$\\epsilon > 0$ there is a $\\delta > 0$ such that for all sufficiently large $n$, every\n$K_4$-free graph $G$ on $n$ vertices with $\\alpha(G) \\leq \\delta n$ has at most\n$(1/8 + \\epsilon)n^2$ edges.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_22.variants.szemeredi_upper (ε : ℝ) (hε : 0 < ε) :\n    ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ (n : ℕ) in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 4 →\n        (G.indepNum : ℝ) ≤ δ * n →\n        (G.edgeFinset.card : ℝ) ≤ (1 / 8 + ε) * n ^ 2 := by\n  sorry\n\nopen scoped Classical in\n/--\nThe construction of Bollobás and Erdős [BoEr76]: for every $\\epsilon > 0$ and $\\delta > 0$,\nfor all sufficiently large $n$ there is a $K_4$-free graph on $n$ vertices with independence\nnumber at most $\\delta n$ and at least $(1/8 - \\epsilon)n^2$ edges. Together with\n`erdos_22.variants.szemeredi_upper` this shows that the Ramsey–Turán density of $K_4$ is $1/8$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_22.variants.bollobas_erdos_lower (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :\n    ∀ᶠ (n : ℕ) in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n        (G.indepNum : ℝ) ≤ δ * n ∧ (1 / 8 - ε) * n ^ 2 ≤ G.edgeFinset.card := by\n  sorry\n\nopen scoped Classical in\n/--\nThe quantitative strengthening proved by Fox, Loh, and Zhao [FLZ15]: there is a constant\n$C > 0$ such that for all sufficiently large $n$ there exists a $K_4$-free graph on $n$\nvertices with at least $n^2/8$ edges whose largest independent set has size at most\n$$C \\cdot \\frac{(\\log\\log n)^{3/2}}{(\\log n)^{1/2}} \\cdot n.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_22.variants.fox_loh_zhao :\n    ∃ C : ℝ, 0 < C ∧ ∀ᶠ (n : ℕ) in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n        (G.indepNum : ℝ) ≤\n          C * (Real.log (Real.log n)) ^ (3 / 2 : ℝ) / (Real.log n) ^ (1 / 2 : ℝ) * n ∧\n        (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card := by\n  sorry\n\n/--\nA sanity check for `erdos_22.variants.szemeredi_upper`: the empty graph is $K_4$-free and\ntrivially satisfies the upper bound $(1/8 + \\epsilon)n^2$ on the number of edges.\n-/\n@[category test, AMS 5]\ntheorem erdos_22.variants.test_bot (n : ℕ) (ε : ℝ) (hε : 0 < ε) :\n    (⊥ : SimpleGraph (Fin n)).CliqueFree 4 ∧\n      (((⊥ : SimpleGraph (Fin n)).edgeFinset.card : ℝ)) ≤ (1 / 8 + ε) * n ^ 2 := by\n  refine ⟨cliqueFree_bot (by norm_num), ?_⟩\n  rw [edgeFinset_bot]\n  simp only [Finset.card_empty, Nat.cast_zero]\n  positivity\n\nend Erdos22\n",
  "statement_hash": "3e66750cf219fa27f39e8ac0fd986dfa7b3112785ca59d61f6585f2ed95ceeec",
  "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."
}