/- 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. -/ import FormalConjecturesUtil

Erdős Problem 615

A Ramsey–Turán problem of Erdős, Hajnal, Simonovits, Sós, and Szemerédi [EHSSS93]: does there exist a constant $c > 0$ such that every graph on $n$ vertices with at least $(1/8 - c)n^2$ edges contains either a $K_4$ or an independent set on at least $n/\log n$ vertices? In the notation of Ramsey–Turán theory this asks whether $$\mathrm{rt}(n; 4, n/\log n) < (1/8 - c)n^2.$$

This was disproved by Fox, Loh, and Zhao [FLZ15], who showed that $\mathrm{rt}(n; 4, ne^{-f(n)}) \geq (1/8 - o(1))n^2$ whenever $f(n) = o(\sqrt{\log n/\log\log n})$. In the other direction Sudakov [Su03] had shown that $\mathrm{rt}(n; 4, ne^{-f(n)}) = o(n^2)$ whenever $f(n)/\sqrt{\log n} \to \infty$.

References:

    erdosproblems.com/615

    [EHSSS93] Erdős, P., Hajnal, A., Simonovits, M., Sós, V. T., and Szemerédi, E., Turán-Ramsey theorems and simple asymptotically extremal structures. Combinatorica 13 (1993), 31--56.

    [Su03] Sudakov, B., A few remarks on Ramsey-Turán-type problems. J. Combin. Theory Ser. B 88 (2003), 99--106.

    [FLZ15] Fox, J., Loh, P.-S., and Zhao, Y., The critical window for the classical Ramsey-Turán problem. Combinatorica 35 (2015), 435--476.

open Filter SimpleGraphnamespace Erdos615open scoped Classical in

Does there exist some constant $c > 0$ such that for all sufficiently large $n$, if $G$ is a graph with $n$ vertices and at least $(1/8 - c)n^2$ edges then $G$ must contain either a $K_4$ or an independent set on at least $n/\log n$ vertices?

The answer is no, as shown by Fox, Loh, and Zhao [FLZ15].

@[category research solved, AMS 5, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/dfe2d78128b493c572cf525b1b8edf4897fb7664/src/latest/ErdosProblems/Erdos615.lean#L492"] theorem erdos_615 : answer(False) c : , 0 < c ∀ᶠ (n : ) in atTop, G : SimpleGraph (Fin n), (1 / 8 - c) * n ^ 2 G.edgeFinset.card ¬ G.CliqueFree 4 (n : ) / Real.log n G.indepNum := False c, 0 < c ∀ᶠ (n : ) in atTop, (G : SimpleGraph (Fin n)), (1 / 8 - c) * n ^ 2 G.edgeFinset.card ¬G.CliqueFree 4 n / Real.log n α(G) All goals completed! 🐙open scoped Classical in

The result of Fox, Loh, and Zhao [FLZ15] disproving the problem: if $f(n) \geq 0$ satisfies $f(n) = o(\sqrt{\log n/\log\log n})$, then for every $\epsilon > 0$ and all sufficiently large $n$ there is a $K_4$-free graph on $n$ vertices with independence number at most $ne^{-f(n)}$ and at least $(1/8 - \epsilon)n^2$ edges; that is, $\mathrm{rt}(n; 4, ne^{-f(n)}) \geq (1/8 - o(1))n^2$. Applied with $f(n) = \log\log n$, this disproves the headline problem, since $ne^{-f(n)} = n/\log n = o(n)$.

@[category research solved, AMS 5] theorem erdos_615.variants.fox_loh_zhao (f : ) (hf : n, 0 f n) (hfo : Tendsto (fun n : => f n / Real.sqrt (Real.log n / Real.log (Real.log n))) atTop (nhds 0)) (ε : ) ( : 0 < ε) : ∀ᶠ (n : ) in atTop, G : SimpleGraph (Fin n), G.CliqueFree 4 (G.indepNum : ) n * Real.exp (-f n) (1 / 8 - ε) * n ^ 2 G.edgeFinset.card := f: hf: (n : ), 0 f nhfo:Tendsto (fun n f n / (Real.log n / Real.log (Real.log n))) atTop (nhds 0)ε::0 < ε∀ᶠ (n : ) in atTop, G, G.CliqueFree 4 α(G) n * Real.exp (-f n) (1 / 8 - ε) * n ^ 2 G.edgeFinset.card All goals completed! 🐙open scoped Classical in

The complementary result of Sudakov [Su03]: if $f(n)/\sqrt{\log n} \to \infty$ then $\mathrm{rt}(n; 4, ne^{-f(n)}) = o(n^2)$; that is, for every $\epsilon > 0$ and all sufficiently large $n$, every $K_4$-free graph on $n$ vertices with independence number at most $ne^{-f(n)}$ has at most $\epsilon n^2$ edges.

@[category research solved, AMS 5] theorem erdos_615.variants.sudakov (f : ) (hf : Tendsto (fun n : => f n / Real.sqrt (Real.log n)) atTop atTop) (ε : ) ( : 0 < ε) : ∀ᶠ (n : ) in atTop, G : SimpleGraph (Fin n), G.CliqueFree 4 (G.indepNum : ) n * Real.exp (-f n) (G.edgeFinset.card : ) ε * n ^ 2 := f: hf:Tendsto (fun n f n / (Real.log n)) atTop atTopε::0 < ε∀ᶠ (n : ) in atTop, (G : SimpleGraph (Fin n)), G.CliqueFree 4 α(G) n * Real.exp (-f n) G.edgeFinset.card ε * n ^ 2 All goals completed! 🐙

A sanity check for erdos_615: the empty graph on $n \geq 3$ vertices contains an independent set on at least $n/\log n$ vertices (namely the whole vertex set), so it satisfies the conclusion of the implication in the problem statement.

n:hn:3 nhn':3 nh1:1 Real.log nh2:n / Real.log n nh3:Finset.univ.card α()h4:n α()n / Real.log n α() All goals completed! 🐙end Erdos615