{
  "id": "3496",
  "ident": "NS.03496",
  "slug": "erdos-88",
  "title": "Erdős Problem 88",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "For any $\\epsilon>0$ there exists $\\delta=\\delta(\\epsilon)>0$ such that if $G$ is a graph on $n$\nvertices with no independent set or clique of size $\\geq \\epsilon\\log n$ then $G$ contains an\ninduced subgraph with $m$ edges for all $m\\leq \\delta n^2$.\n\nThis was conjectured by Erdős and McKay and proved by Kwan, Sah, Sauermann, and Sawhney\n[KSSS22]. Erdős' original formulation also assumed that $G$ has $\\gg n^2$ edges. By an old result\nof Erdős and Szemerédi this follows from the other condition, so it is omitted here.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos88.erdos_88",
  "statement_lean": "theorem erdos_88 :\n    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →\n        ∀ m : ℕ, (m : ℝ) ≤ δ * n ^ 2 →\n          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m",
  "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 88\n\n*References:*\n- [erdosproblems.com/88](https://www.erdosproblems.com/88)\n- [Er92b] Erdős, Paul, *Some of my favourite problems in various branches of combinatorics*.\n  Matematiche (Catania) (1992), 231-240.\n- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and\n  geometry*. Resenhas (1995), 165-186.\n- [Er97d] Erdős, Paul, *Some recent problems and results in graph theory*. Discrete Math. (1997),\n  81-85.\n- [KSSS22] Kwan, M. and Sah, A. and Sauermann, L. and Sawhney, M., *Anticoncentration in Ramsey\n  graphs and a proof of the Erdős-McKay conjecture*. Forum Math. Pi 11 (2023), e21.\n  [arXiv:2208.02874](https://arxiv.org/abs/2208.02874)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos88\n\nset_option linter.style.formal_proof_palomar false in\n/--\nFor any $\\epsilon>0$ there exists $\\delta=\\delta(\\epsilon)>0$ such that if $G$ is a graph on $n$\nvertices with no independent set or clique of size $\\geq \\epsilon\\log n$ then $G$ contains an\ninduced subgraph with $m$ edges for all $m\\leq \\delta n^2$.\n\nThis was conjectured by Erdős and McKay and proved by Kwan, Sah, Sauermann, and Sawhney\n[KSSS22]. Erdős' original formulation also assumed that $G$ has $\\gg n^2$ edges. By an old result\nof Erdős and Szemerédi this follows from the other condition, so it is omitted here.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos88.lean#L127\"]\ntheorem erdos_88 :\n    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →\n        ∀ m : ℕ, (m : ℝ) ≤ δ * n ^ 2 →\n          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by\n  sorry\n\n/--\nErdős and McKay proved the statement of `erdos_88` with $\\delta n^2$ replaced by\n$\\delta (\\log n)^2$. Since $(\\log n)^2 \\leq n^2$, this weaker bound also follows from\n`erdos_88`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_88.variants.erdos_mckay :\n    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →\n        ∀ m : ℕ, (m : ℝ) ≤ δ * Real.log n ^ 2 →\n          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by\n  sorry\n\n/--\nKwan, Sah, Sauermann, and Sawhney [KSSS22, Theorem 1.1] proved the following stronger statement.\nFix $C > 0$ and $\\eta > 0$, and let $G$ be a graph on $n$ vertices with no independent set or\nclique of size $\\geq C \\log_2 n$, where $n$ is sufficiently large with respect to $C$ and $\\eta$.\nThen for every integer $0 \\leq m \\leq (1 - \\eta) e(G)$ there is an induced subgraph of $G$ with\nexactly $m$ edges.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_88.variants.kwan_sah_sauermann_sawhney :\n    ∀ C > (0 : ℝ), ∀ η > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (G.cliqueNum : ℝ) < C * Real.logb 2 n → (G.indepNum : ℝ) < C * Real.logb 2 n →\n        ∀ m : ℕ, (m : ℝ) ≤ (1 - η) * G.edgeSet.ncard →\n          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by\n  sorry\n\nend Erdos88\n",
  "statement_hash": "97ca6903844f255d9e6182da447ffa49db7e62e16fab8de0b94ec945e1a180e3",
  "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."
}