{
  "id": "3699",
  "ident": "NS.03699",
  "slug": "erdos-94",
  "title": "Erdős Problem 94",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Suppose $n$ points in $\\mathbb{R}^2$ determine a convex polygon and the set of distances between\nthem is $\\{u_1,\\ldots,u_t\\}$. Suppose $u_i$ appears as the distance between $f(u_i)$ many pairs of\npoints. Then\n$$\\sum_i f(u_i)^2 \\ll n^3.$$\n\nIn [Er97c] Erdős claims that Fishburn solved this, but gives no reference.",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:52"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos94.erdos_94",
  "statement_lean": "theorem erdos_94 : ∃ C > (0 : ℝ), ∀ P : Finset ℝ², ConvexIndep (P : Set ℝ²) →\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤ 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 94\n\n*References:*\n- [erdosproblems.com/94](https://www.erdosproblems.com/94)\n- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*. Eureka\n  (1992), 44-48.\n- [Er97c] Erdős, Paul, *Some of my favorite problems and results*. The mathematics of Paul Erdős, I\n  (1997), 47-67.\n- [LeTh95] Lefmann, Hanno and Thiele, Torsten, *Point sets with distinct distances*. Combinatorica\n  (1995), 379-408.\n-/\n\n@[expose] public section\n\nopen Filter EuclideanGeometry\n\nnamespace Erdos94\n\n/-- The regular $n$-gon inscribed in the unit circle. -/\nnoncomputable def regularNGon (n : ℕ) : Finset ℝ² :=\n  (Finset.range n).image fun k : ℕ =>\n    !₂[Real.cos (2 * Real.pi * k / n), Real.sin (2 * Real.pi * k / n)]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSuppose $n$ points in $\\mathbb{R}^2$ determine a convex polygon and the set of distances between\nthem is $\\{u_1,\\ldots,u_t\\}$. Suppose $u_i$ appears as the distance between $f(u_i)$ many pairs of\npoints. Then\n$$\\sum_i f(u_i)^2 \\ll n^3.$$\n\nIn [Er97c] Erdős claims that Fishburn solved this, but gives no reference.\n-/\n@[category research solved, AMS 5 52, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos94.lean\"]\ntheorem erdos_94 : ∃ C > (0 : ℝ), ∀ P : Finset ℝ², ConvexIndep (P : Set ℝ²) →\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤ C * (P.card : ℝ) ^ 3 := by\n  sorry\n\n/--\nNote it is trivial that $\\sum f(u_i)=\\binom{n}{2}$.\n-/\n@[category test, AMS 5 52]\ntheorem erdos_94.variants.sum_multiplicity (P : Finset ℝ²) :\n    ∑ u ∈ distanceSet P, distanceMultiplicity P u = P.card.choose 2 :=\n  sum_distanceMultiplicity P\n\n/--\nLefmann and Theile [LeTh95] prove a stronger version of this question, that\n$$\\sum_i f(u_i)^2 \\ll n^3$$\nunder the weaker assumption that no three points are on a line.\n-/\n@[category research solved, AMS 5 52]\ntheorem erdos_94.variants.no_three_on_a_line : ∃ C > (0 : ℝ), ∀ P : Finset ℝ²,\n    NonTrilinear (P : Set ℝ²) →\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤ C * (P.card : ℝ) ^ 3 := by\n  sorry\n\n/--\nErdős and Fishburn also make the stronger conjecture that $\\sum f(u_i)^2$ is maximal for the\nregular $n$-gon (for large enough $n$).\n-/\n@[category research open, AMS 5 52]\ntheorem erdos_94.variants.regular_ngon : ∀ᶠ n : ℕ in atTop, ∀ P : Finset ℝ²,\n    P.card = n → ConvexIndep (P : Set ℝ²) →\n    ∑ u ∈ distanceSet P, (distanceMultiplicity P u : ℝ) ^ 2 ≤\n      ∑ u ∈ distanceSet (regularNGon n), (distanceMultiplicity (regularNGon n) u : ℝ) ^ 2 := by\n  sorry\n\nend Erdos94\n",
  "statement_hash": "736e9919ecb8e97a94dfcd19d1337ebd991d7d4cb28baf2a5bac46f52b3b9d42",
  "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."
}