{
  "id": "3767",
  "ident": "NS.03767",
  "slug": "erdos-958",
  "title": "Erdős Problem 958",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subset \\mathbb{R}^2$ be a finite set of size $n$, and let $\\{d_1,\\ldots,d_k\\}$ be the set of\ndistances determined by $A$. Let $f(d)$ be the multiplicity of $d$, that is, the number of\nunordered pairs from $A$ of distance $d$ apart.\n\nIs it true that $k=n-1$ and $\\{f(d_i)\\}=\\{n-1,\\ldots,1\\}$ if and only if $A$ is a set of\nequidistant points on a line or a circle?\n\nErdős conjectured that the answer is no, and other such configurations exist.\n\nThis was proved by Clemen, Dumitrescu, and Liu [CDL25], who observed that equidistant points on a\nshort circular arc on a circle of radius $1$, together with the centre, are also an example.\n\nThe classification is asked for all sufficiently large $n$. Small exceptions such as\n$\\{(0,0), (1,0), (0,1), (0,-1)\\}$ exist, so the negative answer asserts\ncounterexamples of arbitrarily large size, as in [CDL25].",
  "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": "Erdos958.erdos_958",
  "statement_lean": "theorem erdos_958 :\n    ¬ ∃ N : ℕ, ∀ n ≥ N, ∀ A : Finset ℝ², #A = n →\n      ((#(distanceSet A) = n - 1 ∧\n            (distanceSet A).image (distanceMultiplicity A) = Finset.Icc 1 (n - 1)) →\n        (IsEquidistantOnLine A ∨ IsEquidistantOnCircle A))",
  "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 958\n\n*References:*\n- [erdosproblems.com/958](https://www.erdosproblems.com/958)\n- [CDL25] Clemen, F., Dumitrescu, A. and Liu, D., *On multiplicities of interpoint distances*.\n  arXiv:2505.04283 (2025).\n- [PALOMAR-2026-10-05-000004](https://palomar-registry.org/entry.html?id=PALOMAR-2026-10-05-000004&version=1)\n-/\n\n@[expose] public section\n\nopen Finset EuclideanGeometry\n\nnamespace Erdos958\n\n/-- `A` is a set of equidistant points on a line: there are a point `a` and a non-zero direction\n`v` such that `A` consists of the points `a + i • v` for `0 ≤ i < #A`. -/\ndef IsEquidistantOnLine (A : Finset ℝ²) : Prop :=\n  ∃ a v : ℝ², v ≠ 0 ∧ (A : Set ℝ²) = {x | ∃ i : ℕ, i < #A ∧ x = a + (i : ℝ) • v}\n\n/-- `A` is a set of equidistant points on a circle: there are a centre `c`, a radius `r > 0`, an\ninitial angle `θ` and a non-zero angular step `α` such that `A` consists of the points of the\ncircle of centre `c` and radius `r` at the angles `θ + i * α` for `0 ≤ i < #A`. -/\ndef IsEquidistantOnCircle (A : Finset ℝ²) : Prop :=\n  ∃ (c : ℝ²) (r θ α : ℝ), 0 < r ∧ α ≠ 0 ∧ (A : Set ℝ²) =\n    {x | ∃ i : ℕ, i < #A ∧\n      x = c + r • (!₂[Real.cos (θ + (i : ℝ) * α), Real.sin (θ + (i : ℝ) * α)])}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subset \\mathbb{R}^2$ be a finite set of size $n$, and let $\\{d_1,\\ldots,d_k\\}$ be the set of\ndistances determined by $A$. Let $f(d)$ be the multiplicity of $d$, that is, the number of\nunordered pairs from $A$ of distance $d$ apart.\n\nIs it true that $k=n-1$ and $\\{f(d_i)\\}=\\{n-1,\\ldots,1\\}$ if and only if $A$ is a set of\nequidistant points on a line or a circle?\n\nErdős conjectured that the answer is no, and other such configurations exist.\n\nThis was proved by Clemen, Dumitrescu, and Liu [CDL25], who observed that equidistant points on a\nshort circular arc on a circle of radius $1$, together with the centre, are also an example.\n\nThe classification is asked for all sufficiently large $n$. Small exceptions such as\n$\\{(0,0), (1,0), (0,1), (0,-1)\\}$ exist, so the negative answer asserts\ncounterexamples of arbitrarily large size, as in [CDL25].\n-/\n@[category research solved, question, AMS 5 52, formal_proof using lean4 at \"https://github.com/linrock/math-proofs/blob/08152671ab394392fd941b18654daba734c26518/erdos-958/Solution.lean#L60\"]\ntheorem erdos_958 :\n    ¬ ∃ N : ℕ, ∀ n ≥ N, ∀ A : Finset ℝ², #A = n →\n      ((#(distanceSet A) = n - 1 ∧\n            (distanceSet A).image (distanceMultiplicity A) = Finset.Icc 1 (n - 1)) →\n        (IsEquidistantOnLine A ∨ IsEquidistantOnCircle A)) := by\n  sorry\n\nend Erdos958\n",
  "statement_hash": "e75c936e40627a912d35f2cb2df849e607d769de7e6041bd276ac4dd7e0e5c00",
  "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."
}