{
  "id": "3250",
  "ident": "NS.03250",
  "slug": "erdos-803",
  "title": "Erdős Problem 803",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "We call a graph $H$ $D$-balanced (or $D$-almost-regular) if the maximum degree of $H$ is at most\n$D$ times the minimum degree of $H$.\n\nIs it true that for every $m\\geq 1$, if $n$ is sufficiently large, any graph on $n$ vertices with\n$\\geq n\\log n$ edges contains a $O(1)$-balanced subgraph with $m$ vertices and $\\gg m\\log m$ edges\n(where the implied constants are absolute)?\n\nA problem of Erdős and Simonovits [ErSi70]. Alon [Al08] proved this is false: for every $D>1$\nand large $n$ there is a graph $G$ with $n$ vertices and $\\geq n\\log n$ edges such that if $H$ is\na $D$-balanced subgraph then $H$ has $\\ll m\\sqrt{\\log m}+\\log D$ many edges.\n\nSee also [1077](https://www.erdosproblems.com/1077).",
  "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": "Erdos803.erdos_803",
  "statement_lean": "theorem erdos_803 :\n    ¬ ∃ (D c : ℝ), 0 < c ∧ ∀ m ≥ 1, ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) * log n ≤ G.edgeSet.ncard →\n        ∃ H : G.Subgraph, H.verts.ncard = m ∧ IsBalanced H.coe D ∧\n          c * m * log m ≤ H.edgeSet.ncard",
  "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 803\n\n*References:*\n- [erdosproblems.com/803](https://www.erdosproblems.com/803)\n- [ErSi70] Erdős, P. and Simonovits, M., _Some extremal problems in graph theory_. Combinatorial\n  theory and its applications, I-III (Proc. Colloq., Balatonfüred, 1969) (1970), 377-390.\n- [Al08] Alon, Noga, _Problems and results in extremal combinatorics. II_. Discrete Math. (2008),\n  4460-4472.\n- [JaSu23] Janzer, Oliver and Sudakov, Benny, _Resolution of the Erdős-Sauer problem on regular\n  subgraphs_. Forum Math. Pi (2023), Paper No. e19, 13.\n-/\n\n@[expose] public section\n\nopen Filter Real SimpleGraph\n\nnamespace Erdos803\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nWe call a graph $H$ $D$-balanced (or $D$-almost-regular) if the maximum degree of $H$ is at most\n$D$ times the minimum degree of $H$.\n\nIs it true that for every $m\\geq 1$, if $n$ is sufficiently large, any graph on $n$ vertices with\n$\\geq n\\log n$ edges contains a $O(1)$-balanced subgraph with $m$ vertices and $\\gg m\\log m$ edges\n(where the implied constants are absolute)?\n\nA problem of Erdős and Simonovits [ErSi70]. Alon [Al08] proved this is false: for every $D>1$\nand large $n$ there is a graph $G$ with $n$ vertices and $\\geq n\\log n$ edges such that if $H$ is\na $D$-balanced subgraph then $H$ has $\\ll m\\sqrt{\\log m}+\\log D$ many edges.\n\nSee also [1077](https://www.erdosproblems.com/1077).\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/Erdos803.lean#L448\"]\ntheorem erdos_803 :\n    ¬ ∃ (D c : ℝ), 0 < c ∧ ∀ m ≥ 1, ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) * log n ≤ G.edgeSet.ncard →\n        ∃ H : G.Subgraph, H.verts.ncard = m ∧ IsBalanced H.coe D ∧\n          c * m * log m ≤ H.edgeSet.ncard := by\n  sorry\n\nopen scoped Classical in\n/-- Alon [Al08] proved that for every $D>1$ and large $n$ there is a graph $G$ with $n$ vertices\nand $\\geq n\\log n$ edges such that if $H$ is a $D$-balanced subgraph on $m$ vertices then $H$ has\n$\\ll m\\sqrt{\\log m}+\\log D$ many edges. -/\n@[category research solved, AMS 5]\ntheorem erdos_803.variants.alon :\n    ∃ C : ℝ, ∀ D : ℝ, 1 < D → ∀ᶠ n : ℕ in atTop, ∃ G : SimpleGraph (Fin n),\n      (n : ℝ) * log n ≤ G.edgeSet.ncard ∧\n      ∀ H : G.Subgraph, IsBalanced H.coe D →\n        (H.edgeSet.ncard : ℝ) ≤ C * (H.verts.ncard * √(log H.verts.ncard) + log D) := by\n  sorry\n\nopen scoped Classical in\n/-- Janzer and Sudakov [JaSu23] have proved that, for any $k$, if $n$ is sufficiently large then\nany graph on $n$ vertices with at least $n\\log n$ edges contains a $O(1)$-balanced subgraph on\n$m\\geq k$ vertices with $\\gg_k \\frac{\\sqrt{\\log m}}{(\\log\\log m)^{3/2}}m$ many edges. -/\n@[category research solved, AMS 5]\ntheorem erdos_803.variants.janzer_sudakov :\n    ∃ D : ℝ, ∀ k : ℕ, ∃ c > 0, ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) * log n ≤ G.edgeSet.ncard →\n        ∃ H : G.Subgraph, k ≤ H.verts.ncard ∧ IsBalanced H.coe D ∧\n          c * (√(log H.verts.ncard) / (log (log H.verts.ncard)) ^ (3 / 2 : ℝ)) *\n            H.verts.ncard ≤ H.edgeSet.ncard := by\n  sorry\n\nend Erdos803\n",
  "statement_hash": "e0ee4438794e3116394eed4dea96a634197d86854d382a16abbaaaea0289ffb4",
  "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."
}