Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 88

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

For any ϵ>0\epsilon>0 there exists δ=δ(ϵ)>0\delta=\delta(\epsilon)>0 such that if GG is a graph on nn vertices with no independent set or clique of size ≥ϵlog⁡n\geq \epsilon\log n then GG contains an induced subgraph with mm edges for all m≤δn2m\leq \delta n^2.

This was conjectured by Erdős and McKay and proved by Kwan, Sah, Sauermann, and Sawhney [KSSS22]. Erdős' original formulation also assumed that GG has ≫n2\gg n^2 edges. By an old result of Erdős and Szemerédi this follows from the other condition, so it is omitted here.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:formal_proof
Cite as:NS.03496 [math.CO] · NS.03496v1 for this version
Declaration:Erdos88.erdos_88
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:97ca6903844f255d9e6182da447ffa49db7e62e16fab8de0b94ec945e1a180e3
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/88.lean

Formal statement

theorem erdos_88 :
    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),
      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →
        ∀ m : ℕ, (m : ℝ) ≤ δ * n ^ 2 →
          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m
Show the full Challenge.lean (90 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 88

*References:*
- [erdosproblems.com/88](https://www.erdosproblems.com/88)
- [Er92b] Erdős, Paul, *Some of my favourite problems in various branches of combinatorics*.
  Matematiche (Catania) (1992), 231-240.
- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and
  geometry*. Resenhas (1995), 165-186.
- [Er97d] Erdős, Paul, *Some recent problems and results in graph theory*. Discrete Math. (1997),
  81-85.
- [KSSS22] Kwan, M. and Sah, A. and Sauermann, L. and Sawhney, M., *Anticoncentration in Ramsey
  graphs and a proof of the Erdős-McKay conjecture*. Forum Math. Pi 11 (2023), e21.
  [arXiv:2208.02874](https://arxiv.org/abs/2208.02874)
-/

@[expose] public section

open Filter

namespace Erdos88

set_option linter.style.formal_proof_palomar false in
/--
For any $\epsilon>0$ there exists $\delta=\delta(\epsilon)>0$ such that if $G$ is a graph on $n$
vertices with no independent set or clique of size $\geq \epsilon\log n$ then $G$ contains an
induced subgraph with $m$ edges for all $m\leq \delta n^2$.

This was conjectured by Erdős and McKay and proved by Kwan, Sah, Sauermann, and Sawhney
[KSSS22]. Erdős' original formulation also assumed that $G$ has $\gg n^2$ edges. By an old result
of Erdős and Szemerédi this follows from the other condition, so it is omitted here.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos88.lean#L127"]
theorem erdos_88 :
    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),
      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →
        ∀ m : ℕ, (m : ℝ) ≤ δ * n ^ 2 →
          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by
  sorry

/--
Erdős and McKay proved the statement of `erdos_88` with $\delta n^2$ replaced by
$\delta (\log n)^2$. Since $(\log n)^2 \leq n^2$, this weaker bound also follows from
`erdos_88`.
-/
@[category research solved, AMS 5]
theorem erdos_88.variants.erdos_mckay :
    ∀ ε > (0 : ℝ), ∃ δ > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),
      (G.cliqueNum : ℝ) < ε * Real.log n → (G.indepNum : ℝ) < ε * Real.log n →
        ∀ m : ℕ, (m : ℝ) ≤ δ * Real.log n ^ 2 →
          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by
  sorry

/--
Kwan, Sah, Sauermann, and Sawhney [KSSS22, Theorem 1.1] proved the following stronger statement.
Fix $C > 0$ and $\eta > 0$, and let $G$ be a graph on $n$ vertices with no independent set or
clique of size $\geq C \log_2 n$, where $n$ is sufficiently large with respect to $C$ and $\eta$.
Then for every integer $0 \leq m \leq (1 - \eta) e(G)$ there is an induced subgraph of $G$ with
exactly $m$ edges.
-/
@[category research solved, AMS 5]
theorem erdos_88.variants.kwan_sah_sauermann_sawhney :
    ∀ C > (0 : ℝ), ∀ η > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n),
      (G.cliqueNum : ℝ) < C * Real.logb 2 n → (G.indepNum : ℝ) < C * Real.logb 2 n →
        ∀ m : ℕ, (m : ℝ) ≤ (1 - η) * G.edgeSet.ncard →
          ∃ S : Finset (Fin n), (G.induce (S : Set (Fin n))).edgeSet.ncard = m := by
  sorry

end Erdos88

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos88.erdos_88 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_88 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-88
nosorry submit erdos-88 nosorry/erdos-88/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.