{
  "id": "1078",
  "ident": "NS.01078",
  "slug": "erdos-133",
  "title": "Erdős Problem 133",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be minimal such that every triangle-free graph $G$ with $n$ vertices and diameter\n$2$ contains a vertex with degree $\\geq f(n)$. What is the order of growth of $f(n)$? Does\n$f(n)/\\sqrt{n}\\to \\infty$?\n\nAsked by Erdős and Pach. The lower bound $f(n)\\geq (1-o(1))\\sqrt{n}$ follows from the fact that\na graph with maximum degree $d$ and diameter $2$ has at most $1+d+d(d-1)=d^2+1$ many vertices.\n\nHanson and Seyffarth [HaSe84] proved that $f(n)\\leq (\\sqrt{2}+o(1))\\sqrt{n}$ using a Cayley graph\non $\\mathbb{Z}/n\\mathbb{Z}$, with the generating set given by some symmetric complete sum-free set\nof size $\\sim \\sqrt{n}$. An alternative construction of such a complete sum-free set was given by\nHaviv and Levy [HaLe18]. Füredi and Seress [FuSe94] proved that\n$f(n)\\leq (\\frac{2}{\\sqrt{3}}+o(1))\\sqrt{n}$. In particular $f(n)/\\sqrt{n}\\not\\to\\infty$.\n\nThe precise asymptotics of $f(n)$ are unknown; Alon believes that the truth is $f(n)\\sim \\sqrt{n}$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos133.erdos_133",
  "statement_lean": "theorem erdos_133 : ¬ Tendsto (fun n : ℕ ↦ (f n : ℝ) / √n) atTop atTop",
  "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 133\n\n*References:*\n- [erdosproblems.com/133](https://www.erdosproblems.com/133)\n- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete\n  Math. (1997), 227-231.\n- [HaSe84] Hanson, D. and Seyffarth, K., *$k$-saturated graphs of prescribed maximum degree*.\n  Congr. Numer. (1984), 169-182.\n- [FuSe94] Füredi, Zoltán and Seress, Ákos, *Maximal triangle-free graphs with restrictions on the\n  degrees*. J. Graph Theory (1994), 11-24.\n- [HaLe18] Haviv, Ishay and Levy, Dan, *Symmetric complete sum-free sets in cyclic groups*. Israel\n  J. Math. (2018), 931-956.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics SimpleGraph\n\nnamespace Erdos133\n\nopen scoped Classical in\n/--\n`f n` is the least possible maximum degree of a triangle-free graph on `n` vertices with\ndiameter `2`, i.e. the largest `f` such that every such graph has a vertex of degree `≥ f`.\n-/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {d | ∃ G : SimpleGraph (Fin n), G.CliqueFree 3 ∧ G.diam = 2 ∧ ∀ v, G.degree v ≤ d}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(n)$ be minimal such that every triangle-free graph $G$ with $n$ vertices and diameter\n$2$ contains a vertex with degree $\\geq f(n)$. What is the order of growth of $f(n)$? Does\n$f(n)/\\sqrt{n}\\to \\infty$?\n\nAsked by Erdős and Pach. The lower bound $f(n)\\geq (1-o(1))\\sqrt{n}$ follows from the fact that\na graph with maximum degree $d$ and diameter $2$ has at most $1+d+d(d-1)=d^2+1$ many vertices.\n\nHanson and Seyffarth [HaSe84] proved that $f(n)\\leq (\\sqrt{2}+o(1))\\sqrt{n}$ using a Cayley graph\non $\\mathbb{Z}/n\\mathbb{Z}$, with the generating set given by some symmetric complete sum-free set\nof size $\\sim \\sqrt{n}$. An alternative construction of such a complete sum-free set was given by\nHaviv and Levy [HaLe18]. Füredi and Seress [FuSe94] proved that\n$f(n)\\leq (\\frac{2}{\\sqrt{3}}+o(1))\\sqrt{n}$. In particular $f(n)/\\sqrt{n}\\not\\to\\infty$.\n\nThe precise asymptotics of $f(n)$ are unknown; Alon believes that the truth is $f(n)\\sim \\sqrt{n}$.\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos133.lean#L597\"]\ntheorem erdos_133 : ¬ Tendsto (fun n : ℕ ↦ (f n : ℝ) / √n) atTop atTop := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The order of growth of $f(n)$ is $\\sqrt{n}$. -/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos133.lean#L597\"]\ntheorem erdos_133.variants.isTheta : (fun n : ℕ ↦ (f n : ℝ)) =Θ[atTop] fun n ↦ √n := by\n  sorry\n\n/--\nThe lower bound $f(n)\\geq (1-o(1))\\sqrt{n}$ follows from the fact that a graph with maximum degree\n$d$ and diameter $2$ has at most $d^2+1$ many vertices.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_133.variants.lower_bound : ∀ ε : ℝ, 0 < ε →\n    ∀ᶠ n : ℕ in atTop, (1 - ε) * √n ≤ f n := by\n  sorry\n\n/-- Hanson and Seyffarth [HaSe84] proved that $f(n)\\leq (\\sqrt{2}+o(1))\\sqrt{n}$. -/\n@[category research solved, AMS 5]\ntheorem erdos_133.variants.hanson_seyffarth : ∀ ε : ℝ, 0 < ε →\n    ∀ᶠ n : ℕ in atTop, (f n : ℝ) ≤ (√2 + ε) * √n := by\n  sorry\n\n/-- Füredi and Seress [FuSe94] proved that $f(n)\\leq (\\frac{2}{\\sqrt{3}}+o(1))\\sqrt{n}$. -/\n@[category research solved, AMS 5]\ntheorem erdos_133.variants.furedi_seress : ∀ ε : ℝ, 0 < ε →\n    ∀ᶠ n : ℕ in atTop, (f n : ℝ) ≤ (2 / √3 + ε) * √n := by\n  sorry\n\n/-- Is $f(n)\\sim \\sqrt{n}$? Alon believes that this is the truth. -/\n@[category research open, question, AMS 5]\ntheorem erdos_133.variants.asymptotic :\n    (fun n : ℕ ↦ (f n : ℝ)) ~[atTop] fun n ↦ √n := by\n  sorry\n\nend Erdos133\n",
  "statement_hash": "7c6565680d724f0d5326550d2a41904e1d975c70e35cbe19d6c3dd0d356c5c44",
  "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."
}