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 1010 · variants.erdos

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:

Erdős [Er62d] proved that every graph on nn vertices with ⌊n2/4⌋+t\lfloor n^2/4\rfloor+t edges contains at least t⌊n/2⌋t\lfloor n/2\rfloor triangles, for all t<cnt<cn, for some constant c>0c>0.

Subjects:Combinatorics (math.CO)
MSC classes:05
Cite as:NS.00368 [math.CO] · NS.00368v1 for this version
Declaration:Erdos1010.erdos_1010.variants.erdos
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
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.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
Show 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.variants.erdos with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-1010--erdos-1010-variants-erdos      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-1010--erdos-1010-variants-erdos
nosorry submit erdos-1010--erdos-1010-variants-erdos nosorry/erdos-1010--erdos-1010-variants-erdos/Solution.lean --wait

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.