{
  "id": "3734",
  "ident": "NS.03734",
  "slug": "erdos-95",
  "title": "Erdős Problem 95",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $x_1,\\ldots,x_n\\in\\mathbb{R}^2$ determine the set of distances $\\{u_1,\\ldots,u_t\\}$. Suppose\n$u_i$ appears as the distance between $f(u_i)$ many pairs of points. Then for all $\\epsilon>0$\n$$\\sum_i f(u_i)^2 \\ll_\\epsilon n^{3+\\epsilon}.$$\n\nThe case when the points determine a convex polygon was solved by Altman [Al63]. Note it is\ntrivial that $\\sum f(u_i)=\\binom{n}{2}$.\n\nSolved by Guth and Katz [GuKa15] who proved the upper bound\n$$\\sum_i f(u_i)^2 \\ll n^3\\log n.$$\n\nSee also [94](https://www.erdosproblems.com/94).",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos95.erdos_95",
  "statement_lean": "theorem erdos_95 : ∀ ε : ℝ, 0 < ε → ∃ C : ℝ, 0 < C ∧ ∀ P : Finset ℝ²,\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤\n      C * (P.card : ℝ) ^ (3 + ε)",
  "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 95\n\n*References:*\n- [erdosproblems.com/95](https://www.erdosproblems.com/95)\n- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*.\n  Eureka (1992), 44-48.\n- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and\n  geometry*. Resenhas (1995), 165-186.\n- [Er97c] Erdős, Paul, *Some of my favorite problems and results*. The mathematics of Paul\n  Erdős, I (1997), 47-67.\n- [Er97f] Erdős, Paul, *Some unsolved problems*. Combinatorics, geometry and probability\n  (Cambridge, 1993) (1997), 1-10.\n- [Al63] Altman, E., *On a problem of P. Erdős*. Amer. Math. Monthly (1963), 148-157.\n- [GuKa15] Guth, Larry and Katz, Nets Hawk, *On the Erdős distinct distances problem in the\n  plane*. Ann. of Math. (2) (2015), 155-190.\n-/\n\n@[expose] public section\n\nopen Filter EuclideanGeometry\n\nnamespace Erdos95\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $x_1,\\ldots,x_n\\in\\mathbb{R}^2$ determine the set of distances $\\{u_1,\\ldots,u_t\\}$. Suppose\n$u_i$ appears as the distance between $f(u_i)$ many pairs of points. Then for all $\\epsilon>0$\n$$\\sum_i f(u_i)^2 \\ll_\\epsilon n^{3+\\epsilon}.$$\n\nThe case when the points determine a convex polygon was solved by Altman [Al63]. Note it is\ntrivial that $\\sum f(u_i)=\\binom{n}{2}$.\n\nSolved by Guth and Katz [GuKa15] who proved the upper bound\n$$\\sum_i f(u_i)^2 \\ll n^3\\log n.$$\n\nSee also [94](https://www.erdosproblems.com/94).\n-/\n@[category research solved, question, AMS 5 52, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos95.lean#L1005\"]\ntheorem erdos_95 : ∀ ε : ℝ, 0 < ε → ∃ C : ℝ, 0 < C ∧ ∀ P : Finset ℝ²,\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤\n      C * (P.card : ℝ) ^ (3 + ε) := by\n  sorry\n\n/-- Guth and Katz [GuKa15] proved the upper bound $\\sum_i f(u_i)^2 \\ll n^3\\log n$. -/\n@[category research solved, AMS 5 52]\ntheorem erdos_95.variants.guth_katz : ∃ C : ℝ, 0 < C ∧ ∀ P : Finset ℝ², 2 ≤ P.card →\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤\n      C * (P.card : ℝ) ^ 3 * Real.log P.card := by\n  sorry\n\nend Erdos95\n",
  "statement_hash": "a16af77c814adaff1c112c889267e7d813c659e8760ce68484c051b91b81947a",
  "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."
}