{
  "id": "2390",
  "ident": "NS.02390",
  "slug": "erdos-533",
  "title": "Erdős Problem 533",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\delta > 0$. If $n$ is sufficiently large and $G$ is a graph on $n$ vertices with no\n$K_5$ and at least $\\delta n^2$ edges, must $G$ contain a set of $\\gg_\\delta n$ vertices\nspanning no triangle?\n\nEquivalently, writing $\\mathrm{RT}_3(n, K_5, m)$ for the maximum number of edges of a\n$K_5$-free graph on $n$ vertices in which every triangle-free vertex set has fewer than $m$\nvertices (the *triangle Ramsey–Turán number*), is\n$$\\delta_3(5) = \\lim_{\\epsilon \\to 0} \\lim_{n \\to \\infty}\n  \\frac{\\mathrm{RT}_3(n, K_5, \\epsilon n)}{n^2} = 0?$$\n\nThis is a problem of Erdős, Hajnal, Simonovits, Sós, and Szemerédi [EHSSS94], who proved\n$\\delta_3(5) \\leq 1/12$ and the analogous $\\delta_3(4) = 0$, and observed $\\delta_3(7) \\geq 1/4$\nvia a construction of Erdős and Rogers [ErRo62].\n\nThe answer is **no**: Balogh and Lenz [BaLe13] disproved it by showing $\\delta_3(5) > 0$, and\nthe exact value $\\delta_3(5) = 1/12$ was determined by the matching lower-bound construction of\nLiu, Reiher, Sharifzadeh, and Staden [LRSS21] (see `erdos_533.variants.lrss_lower`).",
  "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": "Erdos533.erdos_533",
  "statement_lean": "theorem erdos_533 :\n    ¬ ∀ δ : ℝ, 0 < δ → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 5 →\n        δ * (n : ℝ) ^ 2 ≤ G.edgeFinset.card →\n          ∃ S : Finset (Fin n), c * n ≤ (S.card : ℝ) ∧\n            G.CliqueFreeOn (S : Set (Fin n)) 3",
  "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 533\n\n*References:*\n- [erdosproblems.com/533](https://www.erdosproblems.com/533)\n- [EHSSS94] P. Erdős, A. Hajnal, M. Simonovits, V. T. Sós and E. Szemerédi,\n  *Turán-Ramsey theorems and $K_p$-independence numbers*,\n  Combin. Probab. Comput. **3** (1994), 297–325.\n- [ErRo62] P. Erdős and C. A. Rogers, *The construction of certain graphs*,\n  Canad. J. Math. **14** (1962), 702–707.\n- [BaLe13] J. Balogh and J. Lenz, *On the Ramsey–Turán numbers of graphs and hypergraphs*,\n  Israel J. Math. **194** (2013), 45–68.\n- [LRSS21] H. Liu, C. Reiher, M. Sharifzadeh and K. Staden,\n  *Geometric constructions for Ramsey–Turán theory*,\n  [arXiv:2103.10423](https://arxiv.org/abs/2103.10423) (2021).\n-/\n\n@[expose] public section\n\nopen Filter SimpleGraph\n\nnamespace Erdos533\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\delta > 0$. If $n$ is sufficiently large and $G$ is a graph on $n$ vertices with no\n$K_5$ and at least $\\delta n^2$ edges, must $G$ contain a set of $\\gg_\\delta n$ vertices\nspanning no triangle?\n\nEquivalently, writing $\\mathrm{RT}_3(n, K_5, m)$ for the maximum number of edges of a\n$K_5$-free graph on $n$ vertices in which every triangle-free vertex set has fewer than $m$\nvertices (the *triangle Ramsey–Turán number*), is\n$$\\delta_3(5) = \\lim_{\\epsilon \\to 0} \\lim_{n \\to \\infty}\n  \\frac{\\mathrm{RT}_3(n, K_5, \\epsilon n)}{n^2} = 0?$$\n\nThis is a problem of Erdős, Hajnal, Simonovits, Sós, and Szemerédi [EHSSS94], who proved\n$\\delta_3(5) \\leq 1/12$ and the analogous $\\delta_3(4) = 0$, and observed $\\delta_3(7) \\geq 1/4$\nvia a construction of Erdős and Rogers [ErRo62].\n\nThe answer is **no**: Balogh and Lenz [BaLe13] disproved it by showing $\\delta_3(5) > 0$, and\nthe exact value $\\delta_3(5) = 1/12$ was determined by the matching lower-bound construction of\nLiu, Reiher, Sharifzadeh, and Staden [LRSS21] (see `erdos_533.variants.lrss_lower`).\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/Erdos533.lean#L2922\"]\ntheorem erdos_533 :\n    ¬ ∀ δ : ℝ, 0 < δ → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 5 →\n        δ * (n : ℝ) ^ 2 ≤ G.edgeFinset.card →\n          ∃ S : Finset (Fin n), c * n ≤ (S.card : ℝ) ∧\n            G.CliqueFreeOn (S : Set (Fin n)) 3 := by\n  sorry\n\nopen scoped Classical in\n/--\nThe upper bound $\\delta_3(5) \\leq 1/12$ of Erdős, Hajnal, Simonovits, Sós, and Szemerédi\n[EHSSS94]: for every $\\epsilon > 0$ there is a $\\delta > 0$ such that for all sufficiently\nlarge $n$, every $K_5$-free graph $G$ on $n$ vertices in which every triangle-free vertex\nset has at most $\\delta n$ vertices has at most $(1/12 + \\epsilon)n^2$ edges.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_533.variants.ehsss_upper (ε : ℝ) (hε : 0 < ε) :\n    ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ n : ℕ in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 5 →\n        (∀ S : Finset (Fin n),\n            G.CliqueFreeOn (S : Set (Fin n)) 3 → (S.card : ℝ) ≤ δ * n) →\n          (G.edgeFinset.card : ℝ) ≤ (1 / 12 + ε) * n ^ 2 := by\n  sorry\n\nopen scoped Classical in\n/--\nThe matching lower bound $\\delta_3(5) \\geq 1/12$, from the construction of Liu, Reiher,\nSharifzadeh, and Staden [LRSS21] (improving the earlier $\\delta_3(5) > 0$ of Balogh and Lenz\n[BaLe13]): for every $\\epsilon, \\delta > 0$ and all sufficiently large $n$ there is a\n$K_5$-free graph $G$ on $n$ vertices in which every triangle-free vertex set has at most\n$\\delta n$ vertices, yet which has at least $(1/12 - \\epsilon)n^2$ edges. In particular this\nrefutes `erdos_533`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_533.variants.lrss_lower (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :\n    ∀ᶠ n : ℕ in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 5 ∧\n        (∀ S : Finset (Fin n),\n            G.CliqueFreeOn (S : Set (Fin n)) 3 → (S.card : ℝ) ≤ δ * n) ∧\n        (1 / 12 - ε) * (n : ℝ) ^ 2 ≤ G.edgeFinset.card := by\n  sorry\n\nopen scoped Classical in\n/--\nThe contrasting positive result $\\delta_3(4) = 0$ of Erdős, Hajnal, Simonovits, Sós, and\nSzemerédi [EHSSS94]: the $K_4$ analogue of `erdos_533` is **true**. For every $\\delta > 0$\nthere is a $c > 0$ such that for all sufficiently large $n$, every $K_4$-free graph $G$ on\n$n$ vertices with at least $\\delta n^2$ edges contains a triangle-free vertex set of size at\nleast $c n$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_533.variants.delta_four_eq_zero :\n    ∀ δ : ℝ, 0 < δ → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop,\n      ∀ G : SimpleGraph (Fin n), G.CliqueFree 4 →\n        δ * (n : ℝ) ^ 2 ≤ G.edgeFinset.card →\n          ∃ S : Finset (Fin n), c * n ≤ (S.card : ℝ) ∧\n            G.CliqueFreeOn (S : Set (Fin n)) 3 := by\n  sorry\n\nopen scoped Classical in\n/--\nThe observation $\\delta_3(7) \\geq 1/4$ of Erdős, Hajnal, Simonovits, Sós, and Szemerédi\n[EHSSS94], via a construction of Erdős and Rogers [ErRo62]: for every $\\epsilon, \\delta > 0$\nand all sufficiently large $n$ there is a $K_7$-free graph $G$ on $n$ vertices in which every\ntriangle-free vertex set has at most $\\delta n$ vertices, yet which has at least\n$(1/4 - \\epsilon)n^2$ edges.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_533.variants.delta_seven_ge_quarter (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :\n    ∀ᶠ n : ℕ in atTop,\n      ∃ G : SimpleGraph (Fin n), G.CliqueFree 7 ∧\n        (∀ S : Finset (Fin n),\n            G.CliqueFreeOn (S : Set (Fin n)) 3 → (S.card : ℝ) ≤ δ * n) ∧\n        (1 / 4 - ε) * (n : ℝ) ^ 2 ≤ G.edgeFinset.card := by\n  sorry\n\n/--\nSanity check for the triangle-free-set condition: in the empty graph every vertex set spans\nno triangle, since the empty graph has no $3$-clique.\n-/\n@[category test, AMS 5]\ntheorem erdos_533.variants.test_bot (n : ℕ) (S : Finset (Fin n)) :\n    (⊥ : SimpleGraph (Fin n)).CliqueFreeOn (S : Set (Fin n)) 3 :=\n  fun t _ h => cliqueFree_bot (by norm_num) t h\n\nend Erdos533\n",
  "statement_hash": "7d6f29e8bea5ab249be83dca3c92d6289a492c6492c2a49ce988dcfb49c209ea",
  "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."
}