/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
module
public import FormalConjecturesUtilErdős Problem 803
References:
[ErSi70] Erdős, P. and Simonovits, M., Some extremal problems in graph theory. Combinatorial theory and its applications, I-III (Proc. Colloq., Balatonfüred, 1969) (1970), 377-390.
[Al08] Alon, Noga, Problems and results in extremal combinatorics. II. Discrete Math. (2008), 4460-4472.
[JaSu23] Janzer, Oliver and Sudakov, Benny, Resolution of the Erdős-Sauer problem on regular subgraphs. Forum Math. Pi (2023), Paper No. e19, 13.
@[expose] public sectionopen Filter Real SimpleGraphnamespace Erdos803open scoped Classical inWe call a graph $H$ $D$-balanced (or $D$-almost-regular) if the maximum degree of $H$ is at most $D$ times the minimum degree of $H$.
Is it true that for every $m\geq 1$, if $n$ is sufficiently large, any graph on $n$ vertices with $\geq n\log n$ edges contains a $O(1)$-balanced subgraph with $m$ vertices and $\gg m\log m$ edges (where the implied constants are absolute)?
A problem of Erdős and Simonovits [ErSi70]. Alon [Al08] proved this is false: for every $D>1$ and large $n$ there is a graph $G$ with $n$ vertices and $\geq n\log n$ edges such that if $H$ is a $D$-balanced subgraph then $H$ has $\ll m\sqrt{\log m}+\log D$ many edges.
See also 1077.
@[category research solved, question, AMS 5, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos803.lean#L448"]
theorem erdos_803 :
¬ ∃ (D c : ℝ), 0 < c ∧ ∀ m ≥ 1, ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),
(n : ℝ) * log n ≤ G.edgeSet.ncard →
∃ H : G.Subgraph, H.verts.ncard = m ∧ IsBalanced H.coe D ∧
c * m * log m ≤ H.edgeSet.ncard := ⊢ ¬∃ D c,
0 < c ∧
∀ m ≥ 1,
∀ᶠ (n : ℕ) in atTop,
∀ (G : SimpleGraph (Fin n)),
↑n * log ↑n ≤ ↑G.edgeSet.ncard →
∃ H, H.verts.ncard = m ∧ H.coe.IsBalanced D ∧ c * ↑m * log ↑m ≤ ↑H.edgeSet.ncard
All goals completed! 🐙open scoped Classical inAlon [Al08] proved that for every $D>1$ and large $n$ there is a graph $G$ with $n$ vertices and $\geq n\log n$ edges such that if $H$ is a $D$-balanced subgraph on $m$ vertices then $H$ has $\ll m\sqrt{\log m}+\log D$ many edges.
@[category research solved, AMS 5]
theorem erdos_803.variants.alon :
∃ C : ℝ, ∀ D : ℝ, 1 < D → ∀ᶠ n : ℕ in atTop, ∃ G : SimpleGraph (Fin n),
(n : ℝ) * log n ≤ G.edgeSet.ncard ∧
∀ H : G.Subgraph, IsBalanced H.coe D →
(H.edgeSet.ncard : ℝ) ≤ C * (H.verts.ncard * √(log H.verts.ncard) + log D) := ⊢ ∃ C,
∀ (D : ℝ),
1 < D →
∀ᶠ (n : ℕ) in atTop,
∃ G,
↑n * log ↑n ≤ ↑G.edgeSet.ncard ∧
∀ (H : G.Subgraph),
H.coe.IsBalanced D → ↑H.edgeSet.ncard ≤ C * (↑H.verts.ncard * √(log ↑H.verts.ncard) + log D)
All goals completed! 🐙open scoped Classical inJanzer and Sudakov [JaSu23] have proved that, for any $k$, if $n$ is sufficiently large then any graph on $n$ vertices with at least $n\log n$ edges contains a $O(1)$-balanced subgraph on $m\geq k$ vertices with $\gg_k \frac{\sqrt{\log m}}{(\log\log m)^{3/2}}m$ many edges.
@[category research solved, AMS 5]
theorem erdos_803.variants.janzer_sudakov :
∃ D : ℝ, ∀ k : ℕ, ∃ c > 0, ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),
(n : ℝ) * log n ≤ G.edgeSet.ncard →
∃ H : G.Subgraph, k ≤ H.verts.ncard ∧ IsBalanced H.coe D ∧
c * (√(log H.verts.ncard) / (log (log H.verts.ncard)) ^ (3 / 2 : ℝ)) *
H.verts.ncard ≤ H.edgeSet.ncard := ⊢ ∃ D,
∀ (k : ℕ),
∃ c > 0,
∀ᶠ (n : ℕ) in atTop,
∀ (G : SimpleGraph (Fin n)),
↑n * log ↑n ≤ ↑G.edgeSet.ncard →
∃ H,
k ≤ H.verts.ncard ∧
H.coe.IsBalanced D ∧
c * (√(log ↑H.verts.ncard) / log (log ↑H.verts.ncard) ^ (3 / 2)) * ↑H.verts.ncard ≤ ↑H.edgeSet.ncard
All goals completed! 🐙end Erdos803