Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 22

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:

Let ϵ>0\epsilon > 0 and let nn be sufficiently large depending on ϵ\epsilon. Is there a graph on nn vertices with at least n2/8n^2/8 many edges which contains no K4K_4, such that the largest independent set has size at most ϵn\epsilon n?

This is true, as proved by Fox, Loh, and Zhao [FLZ15].

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

Formal statement

theorem erdos_22 :
    ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop,
      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧
        (G.indepNum : ℝ) ≤ ε * n ∧ (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card
Show the full Challenge.lean (127 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 22

The central problem of Ramsey–Turán theory: writing $\mathrm{rt}(n; k, \ell)$ for the maximum
number of edges of a $K_k$-free graph on $n$ vertices whose largest independent set has size
less than $\ell$, is it true that for every $\epsilon > 0$ and all sufficiently large $n$
$$\mathrm{rt}(n; 4, \epsilon n) \geq n^2/8?$$

Conjectured by Bollobás and Erdős [BoEr76], who constructed such a graph with
$(1/8 + o(1))n^2$ edges. Together with the matching upper bound
$\mathrm{rt}(n; 4, \epsilon n) \leq (1/8 + o(1))n^2$ of Szemerédi [Sz72], this determines the
Ramsey–Turán density of $K_4$ to be $1/8$. The conjecture as stated was proved by Fox, Loh,
and Zhao [FLZ15].

*References:*
* [erdosproblems.com/22](https://www.erdosproblems.com/22)
* [BoEr76] Bollobás, B. and Erdős, P., *On a Ramsey-Turán type problem*. J. Combin. Theory
  Ser. B 21 (1976), 166--168.
* [Sz72] Szemerédi, E., *On graphs containing no complete subgraph with 4 vertices*
  (Hungarian). Mat. Lapok 23 (1972), 113--116.
* [FLZ15] Fox, J., Loh, P.-S., and Zhao, Y., *The critical window for the classical
  Ramsey-Turán problem*. Combinatorica 35 (2015), 435--476.
-/

@[expose] public section

open Filter SimpleGraph

namespace Erdos22

open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
Let $\epsilon > 0$ and let $n$ be sufficiently large depending on $\epsilon$. Is there a graph
on $n$ vertices with at least $n^2/8$ many edges which contains no $K_4$, such that the largest
independent set has size at most $\epsilon n$?

This is true, as proved by Fox, Loh, and Zhao [FLZ15].
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos22.lean#L880"]
theorem erdos_22 :
    ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop,
      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧
        (G.indepNum : ℝ) ≤ ε * n ∧ (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card := by
  sorry

open scoped Classical in
/--
The matching upper bound, due to Szemerédi [Sz72]: a $K_4$-free graph on $n$ vertices whose
independence number is sublinear in $n$ has at most $(1/8 + o(1))n^2$ edges. That is, for every
$\epsilon > 0$ there is a $\delta > 0$ such that for all sufficiently large $n$, every
$K_4$-free graph $G$ on $n$ vertices with $\alpha(G) \leq \delta n$ has at most
$(1/8 + \epsilon)n^2$ edges.
-/
@[category research solved, AMS 5]
theorem erdos_22.variants.szemeredi_upper (ε : ℝ) (hε : 0 < ε) :
    ∃ δ : ℝ, 0 < δ ∧ ∀ᶠ (n : ℕ) in atTop,
      ∀ G : SimpleGraph (Fin n), G.CliqueFree 4 →
        (G.indepNum : ℝ) ≤ δ * n →
        (G.edgeFinset.card : ℝ) ≤ (1 / 8 + ε) * n ^ 2 := by
  sorry

open scoped Classical in
/--
The construction of Bollobás and Erdős [BoEr76]: for every $\epsilon > 0$ and $\delta > 0$,
for all sufficiently large $n$ there is a $K_4$-free graph on $n$ vertices with independence
number at most $\delta n$ and at least $(1/8 - \epsilon)n^2$ edges. Together with
`erdos_22.variants.szemeredi_upper` this shows that the Ramsey–Turán density of $K_4$ is $1/8$.
-/
@[category research solved, AMS 5]
theorem erdos_22.variants.bollobas_erdos_lower (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :
    ∀ᶠ (n : ℕ) in atTop,
      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧
        (G.indepNum : ℝ) ≤ δ * n ∧ (1 / 8 - ε) * n ^ 2 ≤ G.edgeFinset.card := by
  sorry

open scoped Classical in
/--
The quantitative strengthening proved by Fox, Loh, and Zhao [FLZ15]: there is a constant
$C > 0$ such that for all sufficiently large $n$ there exists a $K_4$-free graph on $n$
vertices with at least $n^2/8$ edges whose largest independent set has size at most
$$C \cdot \frac{(\log\log n)^{3/2}}{(\log n)^{1/2}} \cdot n.$$
-/
@[category research solved, AMS 5]
theorem erdos_22.variants.fox_loh_zhao :
    ∃ C : ℝ, 0 < C ∧ ∀ᶠ (n : ℕ) in atTop,
      ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧
        (G.indepNum : ℝ) ≤
          C * (Real.log (Real.log n)) ^ (3 / 2 : ℝ) / (Real.log n) ^ (1 / 2 : ℝ) * n ∧
        (n : ℝ) ^ 2 / 8 ≤ G.edgeFinset.card := by
  sorry

/--
A sanity check for `erdos_22.variants.szemeredi_upper`: the empty graph is $K_4$-free and
trivially satisfies the upper bound $(1/8 + \epsilon)n^2$ on the number of edges.
-/
@[category test, AMS 5]
theorem erdos_22.variants.test_bot (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
    (⊥ : SimpleGraph (Fin n)).CliqueFree 4 ∧
      (((⊥ : SimpleGraph (Fin n)).edgeFinset.card : ℝ)) ≤ (1 / 8 + ε) * n ^ 2 := by
  refine ⟨cliqueFree_bot (by norm_num), ?_⟩
  rw [edgeFinset_bot]
  simp only [Finset.card_empty, Nat.cast_zero]
  positivity

end Erdos22

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

nosorry fetch erdos-22
nosorry submit erdos-22 nosorry/erdos-22/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.