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

Title:Erdős Problem 80

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 c>0c>0 and let fc(n)f_c(n) be the maximal mm such that every graph GG with nn vertices and at least cn2cn^2 edges, where each edge is contained in at least one triangle, must contain a book of size mm, that is, an edge shared by at least mm different triangles. Estimate fc(n)f_c(n). In particular, is it true that fc(n)>nϵf_c(n)>n^\epsilon for some ϵ>0\epsilon>0?

The answer is no. Fox and Loh [FoLo12] proved that fc(n)≤nO(1/log⁡log⁡n)f_c(n) \leq n^{O(1/\log\log n)} for every fixed c<1/4c < 1/4, so no ϵ>0\epsilon > 0 works for, say, c=1/8c = 1/8. For c>1/4c > 1/4 the situation is different: fc(n)≥n/6f_c(n) \geq n/6, see erdosproblems.com/80.

The bound c<1/2c < 1/2 is what makes the hypothesis satisfiable: a simple graph on nn vertices has at most n(n−1)/2n(n-1)/2 edges, so no graph has cn2cn^2 of them once c≥1/2c \geq 1/2.

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

Formal statement

theorem erdos_80.parts.i :
    ¬ ∀ c : ℝ, 0 < c → c < 1 / 2 →
      ∃ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ ε < f c n
Show the full Challenge.lean (122 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 80

*References:*
- [erdosproblems.com/80](https://www.erdosproblems.com/80)
- [erdosproblems.com/600](https://www.erdosproblems.com/600), stated in
  `FormalConjectures/ErdosProblems/600.lean`
- [FoLo12] Fox, Jacob and Loh, Po-Shen, On a problem of Erdős and Rothschild on edges in
  triangles. Combinatorica (2012), 619--628.

600 asks the same question from the other side. `Erdos600.eFunction n r` is the least edge
count forcing some edge into `r` triangles; `f c n` here is the largest book forced once the
edge count is at least $cn^2$. So `r ≤ f c n` and `Erdos600.eFunction n r ≤ c * n^2` say the
same thing, and the two functions are inverse to each other in that sense. Both are built on
`SimpleGraph.trianglesContaining`, which 600 introduced.
-/

@[expose] public section

open Filter Finset SimpleGraph

open scoped Topology

namespace Erdos80

variable {α : Type*} [Fintype α] [DecidableEq α] (G : SimpleGraph α) [DecidableRel G.Adj]

/-- The size of the largest *book* in `G`: the greatest number of triangles sharing a single
edge. `Finset.sup` gives `0` on a graph with no edges, which is the right answer there. -/
noncomputable def bookNumber : ℕ :=
  G.edgeFinset.sup fun e => #(G.trianglesContaining e)

/-- Every edge of `G` lies in at least one triangle. -/
def EveryEdgeInTriangle : Prop :=
  ∀ e ∈ G.edgeFinset, (G.trianglesContaining e).Nonempty

/-- The graphs the problem quantifies over: `n` vertices, at least $cn^2$ edges, and every
edge in a triangle. -/
def Admissible (c : ℝ) {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] : Prop :=
  c * (n : ℝ) ^ 2 ≤ #G.edgeFinset ∧ EveryEdgeInTriangle G

open Classical in
/-- $f_c(n)$, the largest book size forced on every admissible graph, which is the least book
number among them.

`sInf` of the empty set is `0`, so `f c n = 0` when no graph on `n` vertices has $cn^2$ edges
at all. A simple graph has at most $n(n-1)/2$ edges, so that happens for every `n` once
$c \geq 1/2$. The statements below therefore restrict `c` to the feasible range; without that
they are false at, say, `c = 2` for reasons unrelated to the question. -/
noncomputable def f (c : ℝ) (n : ℕ) : ℕ :=
  sInf {m | ∃ G : SimpleGraph (Fin n), Admissible c G ∧ bookNumber G = m}

/--
Let $c>0$ and let $f_c(n)$ be the maximal $m$ such that every graph $G$ with $n$ vertices and
at least $cn^2$ edges, where each edge is contained in at least one triangle, must contain a
book of size $m$, that is, an edge shared by at least $m$ different triangles. Estimate
$f_c(n)$. In particular, is it true that $f_c(n)>n^\epsilon$ for some $\epsilon>0$?

The answer is no. Fox and Loh [FoLo12] proved that $f_c(n) \leq n^{O(1/\log\log n)}$ for every
fixed $c < 1/4$, so no $\epsilon > 0$ works for, say, $c = 1/8$. For $c > 1/4$ the situation is
different: $f_c(n) \geq n/6$, see [erdosproblems.com/80](https://www.erdosproblems.com/80).

The bound $c < 1/2$ is what makes the hypothesis satisfiable: a simple graph on $n$ vertices
has at most $n(n-1)/2$ edges, so no graph has $cn^2$ of them once $c \geq 1/2$.
-/
@[category research solved, question, AMS 5]
theorem erdos_80.parts.i :
    ¬ ∀ c : ℝ, 0 < c → c < 1 / 2 →
      ∃ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ ε < f c n := by
  sorry

/--
The weaker question from the same problem: is $f_c(n) \gg \log n$?

Same feasibility bound on `c` as above.
-/
@[category research open, question, AMS 5]
theorem erdos_80.parts.ii :
    ∀ c : ℝ, 0 < c → c < 1 / 2 →
      (fun n : ℕ ↦ (f c n : ℝ)) ≫ (fun n : ℕ ↦ Real.log n) := by
  sorry

omit [DecidableEq α] in
/-- A book is counted by triangles, so `bookNumber` is `0` exactly when no edge lies in one. -/
@[category API, AMS 5]
theorem bookNumber_eq_zero_iff :
    bookNumber G = 0 ↔ ∀ e ∈ G.edgeFinset, G.trianglesContaining e = ∅ := by
  simp [bookNumber, Finset.card_eq_zero]

/-- On a graph with no edges there is no book. -/
@[category test, AMS 5]
theorem bookNumber_bot {n : ℕ} : bookNumber (⊥ : SimpleGraph (Fin n)) = 0 := by
  simp [bookNumber]

/-- `EveryEdgeInTriangle` holds vacuously on a graph with no edges, so the admissible set is
nonempty only through the edge count. -/
@[category API, AMS 5]
theorem everyEdgeInTriangle_bot {n : ℕ} :
    EveryEdgeInTriangle (⊥ : SimpleGraph (Fin n)) := by
  simp [EveryEdgeInTriangle]

end Erdos80

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

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