Title:Erdős Problem 1010
Statement:Let . Does every graph on vertices with edges contain at least triangles?
Rademacher proved that every graph on vertices with edges contains at least triangles. Erdős [Er62d] proved that every graph on vertices with edges contains at least triangles, for all , for some constant .
This is true, and was proved independently by Lovász and Simonovits [LoSi76] and Nikiforov and Khadzhiivanov [NiKh81].
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Tags: | question, formal_proof |
| Cite as: | NS.00366 [math.CO] · NS.00366v1 for this version |
| Declaration: | Erdos1010.erdos_1010 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | b680dc3e71fb87f1f3f3c4528e711ee189fce57aeabc1bf65013b23b9baf4874 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1010.lean |
Formal statement
theorem erdos_1010 : ∀ n t : ℕ, t < n / 2 → ∀ G : SimpleGraph (Fin n),
G.edgeFinset.card = n ^ 2 / 4 + t → t * (n / 2) ≤ (G.cliqueFinset 3).cardShow the full Challenge.lean (81 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1010
*References:*
- [erdosproblems.com/1010](https://www.erdosproblems.com/1010)
- [Er62d] Erdős, P., *On a theorem of Rademacher-Turán*. Illinois J. Math. (1962), 122-127.
- [LoSi76] Lovász, L. and Simonovits, Miklós, *On the number of complete subgraphs of a graph*.
(1976), 431-441.
- [NiKh81] Nikiforov, V. S. and Khadzhiivanov, N. G., *Solution of the problem of P. Erdős on the
number of triangles in graphs with $n$ vertices and $[n^2/4]+l$ edges*. C. R. Acad. Bulgare
Sci. (1981), 969-970.
-/
@[expose] public section
open SimpleGraph
namespace Erdos1010
open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
Let $t<\lfloor n/2\rfloor$. Does every graph on $n$ vertices with $\lfloor n^2/4\rfloor+t$ edges
contain at least $t\lfloor n/2\rfloor$ triangles?
Rademacher proved that every graph on $n$ vertices with $\lfloor n^2/4\rfloor+1$ edges contains at
least $\lfloor n/2\rfloor$ triangles. Erdős [Er62d] proved that every graph on $n$ vertices with
$\lfloor n^2/4\rfloor+t$ edges contains at least $t\lfloor n/2\rfloor$ triangles, for all $t<cn$,
for some constant $c>0$.
This is true, and was proved independently by Lovász and Simonovits [LoSi76] and Nikiforov and
Khadzhiivanov [NiKh81].
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1010.lean#L612"]
theorem erdos_1010 : ∀ n t : ℕ, t < n / 2 → ∀ G : SimpleGraph (Fin n),
G.edgeFinset.card = n ^ 2 / 4 + t → t * (n / 2) ≤ (G.cliqueFinset 3).card := by
sorry
open scoped Classical in
/--
Rademacher proved that every graph on $n$ vertices with $\lfloor n^2/4\rfloor+1$ edges contains at
least $\lfloor n/2\rfloor$ triangles.
-/
@[category research solved, AMS 5]
theorem erdos_1010.variants.rademacher : ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),
G.edgeFinset.card = n ^ 2 / 4 + 1 → n / 2 ≤ (G.cliqueFinset 3).card := by
sorry
open scoped Classical in
/--
Erdős [Er62d] proved that every graph on $n$ vertices with $\lfloor n^2/4\rfloor+t$ edges contains
at least $t\lfloor n/2\rfloor$ triangles, for all $t<cn$, for some constant $c>0$.
-/
@[category research solved, AMS 5]
theorem erdos_1010.variants.erdos : ∃ c : ℝ, 0 < c ∧ ∀ n t : ℕ, t < c * n →
∀ G : SimpleGraph (Fin n), G.edgeFinset.card = n ^ 2 / 4 + t →
t * (n / 2) ≤ (G.cliqueFinset 3).card := by
sorry
end Erdos1010
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1010.erdos_1010 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1010 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1010 nosorry submit erdos-1010 nosorry/erdos-1010/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1010-variants-rademacher — known result
- erdos-1010-variants-erdos — known result
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.