{
  "id": "3238",
  "ident": "NS.03238",
  "slug": "erdos-80",
  "title": "Erdős Problem 80",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $c>0$ and let $f_c(n)$ be the maximal $m$ such that every graph $G$ with $n$ vertices and\nat least $cn^2$ edges, where each edge is contained in at least one triangle, must contain a\nbook of size $m$, that is, an edge shared by at least $m$ different triangles. Estimate\n$f_c(n)$. In particular, is it true that $f_c(n)>n^\\epsilon$ for some $\\epsilon>0$?\n\nThe answer is no. Fox and Loh [FoLo12] proved that $f_c(n) \\leq n^{O(1/\\log\\log n)}$ for every\nfixed $c < 1/4$, so no $\\epsilon > 0$ works for, say, $c = 1/8$. For $c > 1/4$ the situation is\ndifferent: $f_c(n) \\geq n/6$, see [erdosproblems.com/80](https://www.erdosproblems.com/80).\n\nThe bound $c < 1/2$ is what makes the hypothesis satisfiable: a simple graph on $n$ vertices\nhas at most $n(n-1)/2$ edges, so no graph has $cn^2$ of them once $c \\geq 1/2$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos80.erdos_80.parts.i",
  "statement_lean": "theorem erdos_80.parts.i :\n    ¬ ∀ c : ℝ, 0 < c → c < 1 / 2 →\n      ∃ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ ε < f c n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 80\n\n*References:*\n- [erdosproblems.com/80](https://www.erdosproblems.com/80)\n- [erdosproblems.com/600](https://www.erdosproblems.com/600), stated in\n  `FormalConjectures/ErdosProblems/600.lean`\n- [FoLo12] Fox, Jacob and Loh, Po-Shen, On a problem of Erdős and Rothschild on edges in\n  triangles. Combinatorica (2012), 619--628.\n\n600 asks the same question from the other side. `Erdos600.eFunction n r` is the least edge\ncount forcing some edge into `r` triangles; `f c n` here is the largest book forced once the\nedge count is at least $cn^2$. So `r ≤ f c n` and `Erdos600.eFunction n r ≤ c * n^2` say the\nsame thing, and the two functions are inverse to each other in that sense. Both are built on\n`SimpleGraph.trianglesContaining`, which 600 introduced.\n-/\n\n@[expose] public section\n\nopen Filter Finset SimpleGraph\n\nopen scoped Topology\n\nnamespace Erdos80\n\nvariable {α : Type*} [Fintype α] [DecidableEq α] (G : SimpleGraph α) [DecidableRel G.Adj]\n\n/-- The size of the largest *book* in `G`: the greatest number of triangles sharing a single\nedge. `Finset.sup` gives `0` on a graph with no edges, which is the right answer there. -/\nnoncomputable def bookNumber : ℕ :=\n  G.edgeFinset.sup fun e => #(G.trianglesContaining e)\n\n/-- Every edge of `G` lies in at least one triangle. -/\ndef EveryEdgeInTriangle : Prop :=\n  ∀ e ∈ G.edgeFinset, (G.trianglesContaining e).Nonempty\n\n/-- The graphs the problem quantifies over: `n` vertices, at least $cn^2$ edges, and every\nedge in a triangle. -/\ndef Admissible (c : ℝ) {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] : Prop :=\n  c * (n : ℝ) ^ 2 ≤ #G.edgeFinset ∧ EveryEdgeInTriangle G\n\nopen Classical in\n/-- $f_c(n)$, the largest book size forced on every admissible graph, which is the least book\nnumber among them.\n\n`sInf` of the empty set is `0`, so `f c n = 0` when no graph on `n` vertices has $cn^2$ edges\nat all. A simple graph has at most $n(n-1)/2$ edges, so that happens for every `n` once\n$c \\geq 1/2$. The statements below therefore restrict `c` to the feasible range; without that\nthey are false at, say, `c = 2` for reasons unrelated to the question. -/\nnoncomputable def f (c : ℝ) (n : ℕ) : ℕ :=\n  sInf {m | ∃ G : SimpleGraph (Fin n), Admissible c G ∧ bookNumber G = m}\n\n/--\nLet $c>0$ and let $f_c(n)$ be the maximal $m$ such that every graph $G$ with $n$ vertices and\nat least $cn^2$ edges, where each edge is contained in at least one triangle, must contain a\nbook of size $m$, that is, an edge shared by at least $m$ different triangles. Estimate\n$f_c(n)$. In particular, is it true that $f_c(n)>n^\\epsilon$ for some $\\epsilon>0$?\n\nThe answer is no. Fox and Loh [FoLo12] proved that $f_c(n) \\leq n^{O(1/\\log\\log n)}$ for every\nfixed $c < 1/4$, so no $\\epsilon > 0$ works for, say, $c = 1/8$. For $c > 1/4$ the situation is\ndifferent: $f_c(n) \\geq n/6$, see [erdosproblems.com/80](https://www.erdosproblems.com/80).\n\nThe bound $c < 1/2$ is what makes the hypothesis satisfiable: a simple graph on $n$ vertices\nhas at most $n(n-1)/2$ edges, so no graph has $cn^2$ of them once $c \\geq 1/2$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_80.parts.i :\n    ¬ ∀ c : ℝ, 0 < c → c < 1 / 2 →\n      ∃ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ ε < f c n := by\n  sorry\n\n/--\nThe weaker question from the same problem: is $f_c(n) \\gg \\log n$?\n\nSame feasibility bound on `c` as above.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_80.parts.ii :\n    ∀ c : ℝ, 0 < c → c < 1 / 2 →\n      (fun n : ℕ ↦ (f c n : ℝ)) ≫ (fun n : ℕ ↦ Real.log n) := by\n  sorry\n\nomit [DecidableEq α] in\n/-- A book is counted by triangles, so `bookNumber` is `0` exactly when no edge lies in one. -/\n@[category API, AMS 5]\ntheorem bookNumber_eq_zero_iff :\n    bookNumber G = 0 ↔ ∀ e ∈ G.edgeFinset, G.trianglesContaining e = ∅ := by\n  simp [bookNumber, Finset.card_eq_zero]\n\n/-- On a graph with no edges there is no book. -/\n@[category test, AMS 5]\ntheorem bookNumber_bot {n : ℕ} : bookNumber (⊥ : SimpleGraph (Fin n)) = 0 := by\n  simp [bookNumber]\n\n/-- `EveryEdgeInTriangle` holds vacuously on a graph with no edges, so the admissible set is\nnonempty only through the edge count. -/\n@[category API, AMS 5]\ntheorem everyEdgeInTriangle_bot {n : ℕ} :\n    EveryEdgeInTriangle (⊥ : SimpleGraph (Fin n)) := by\n  simp [EveryEdgeInTriangle]\n\nend Erdos80\n",
  "statement_hash": "1e2490122b509953475779b12d38d560a558ed2c580e9dfd49c5bb4894b42eb5",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}