{
  "id": "2745",
  "ident": "NS.02745",
  "slug": "erdos-654",
  "title": "Erdős Problem 654",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be such that, given any $x_1,\\ldots,x_n\\in \\mathbb{R}^2$ with no four points on a\ncircle, there exists some $x_i$ with at least $f(n)$ many distinct distances to the other $x_j$.\nIs it true that $f(n) > (1-o(1))n$?\n\nErdős asks this in [Er97e]. The answer is no: Aletheia [Fe26] constructed, for every $m \\geq 10$,\na set of $n = 4m$ points with no four on a circle such that every point has fewer than\n$\\frac{3}{4}n$ distinct distances to the other points. This gives infinitely many $n$, which is\nenough to refute the statement with $\\varepsilon = 1/8$. See `Erdos654.erdos_654.variants.feng`.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos654.erdos_654.parts.i",
  "statement_lean": "theorem erdos_654.parts.i :\n    ¬ ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → NoFourConcyclic A →\n      ∃ x ∈ A, (1 - ε) * (n : ℝ) < (distinctDistancesFrom A x : ℝ)",
  "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 654\n\n*References:*\n- [erdosproblems.com/654](https://www.erdosproblems.com/654)\n- [Er87b] Erdős, P., *Some combinatorial and metric problems in geometry*. Intuitive geometry\n  (Siófok, 1985) (1987), 167-177.\n- [ErPa90] Erdős, P. and Pach, J., *Variations on the theme of repeated distances*.\n  Combinatorica (1990), 261--269.\n- [Er97e] Erdős, Paul, *Some of my favourite unsolved problems*. Math. Japon. (1997), 527-537.\n- [Fe26] T. Feng et al, *Semi-Autonomous Mathematics Discovery with Gemini: A Case Study on the\n  Erdős Problems*. arXiv:2601.22401 (2026).\n-/\n\n@[expose] public section\n\nopen Filter Finset EuclideanGeometry\n\nnamespace Erdos654\n\n/--\nLet $f(n)$ be such that, given any $x_1,\\ldots,x_n\\in \\mathbb{R}^2$ with no four points on a\ncircle, there exists some $x_i$ with at least $f(n)$ many distinct distances to the other $x_j$.\nIs it true that $f(n) > (1-o(1))n$?\n\nErdős asks this in [Er97e]. The answer is no: Aletheia [Fe26] constructed, for every $m \\geq 10$,\na set of $n = 4m$ points with no four on a circle such that every point has fewer than\n$\\frac{3}{4}n$ distinct distances to the other points. This gives infinitely many $n$, which is\nenough to refute the statement with $\\varepsilon = 1/8$. See `Erdos654.erdos_654.variants.feng`.\n-/\n@[category research solved, question, AMS 52, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-02-000006\"]\ntheorem erdos_654.parts.i :\n    ¬ ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → NoFourConcyclic A →\n      ∃ x ∈ A, (1 - ε) * (n : ℝ) < (distinctDistancesFrom A x : ℝ) := by\n  sorry\n\n/--\nLet $f(n)$ be as in `erdos_654.parts.i`. Is it true that $f(n) > (\\frac{1}{3}+c)n$ for some\nconstant $c>0$ and all large $n$?\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_654.parts.ii :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → NoFourConcyclic A →\n      ∃ x ∈ A, (1 / 3 + c) * (n : ℝ) < (distinctDistancesFrom A x : ℝ) := by\n  sorry\n\n/--\nIt is trivial that $f(n) \\geq \\frac{n-1}{3}$.\n\nIn fact every point $x$ has at least $\\frac{n-1}{3}$ distinct distances to the other points: a\ncircle centred at $x$ contains at most three other points, since four would lie on a common\ncircle.\n-/\n@[category textbook, AMS 52]\ntheorem erdos_654.variants.trivial_bound (A : Finset ℝ²) (hA : NoFourConcyclic A) :\n    ∀ x ∈ A, ((#A : ℝ) - 1) / 3 ≤ (distinctDistancesFrom A x : ℝ) := by\n  intro x hx\n  have hfib : ∀ d ∈ (A.erase x).image (fun y ↦ dist y x),\n      #{y ∈ A.erase x | dist y x = d} ≤ 3 := by\n    intro d _\n    by_contra! h4\n    obtain ⟨T, hT, hT4⟩ := Finset.exists_subset_card_eq h4\n    refine hA (T : Set ℝ²) (fun y hy ↦ ?_) (by rw [Set.ncard_coe_finset, hT4])\n      ⟨x, d, fun y hy ↦ (Finset.mem_filter.1 (hT (Finset.mem_coe.1 hy))).2⟩\n    exact Finset.mem_of_mem_erase (Finset.mem_filter.1 (hT (Finset.mem_coe.1 hy))).1\n  have hle := Finset.card_le_mul_card_image (A.erase x) 3 hfib\n  rw [Finset.card_erase_of_mem hx] at hle\n  have h1 : 1 ≤ #A := Finset.card_pos.2 ⟨x, hx⟩\n  have hle' : #A - 1 ≤ 3 * distinctDistancesFrom A x := by\n    unfold distinctDistancesFrom\n    convert hle using 3\n    ext d\n    simp\n  have : ((#A - 1 : ℕ) : ℝ) ≤ 3 * (distinctDistancesFrom A x : ℝ) := by\n    exact_mod_cast hle'\n  rw [Nat.cast_sub h1, Nat.cast_one] at this\n  linarith\n\n/--\nAletheia [Fe26] showed that for every $m \\geq 10$ there is a set of $n = 4m$ points in\n$\\mathbb{R}^2$, no four on a circle, such that every point has fewer than $\\frac{3}{4}n = 3m$\ndistinct distances to the other points.\n\nThe construction places $2m$ points on each of two perpendicular lines, so it is not in general\nposition. Each point has at most $3m - 1$ distinct distances to the other points.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-02-000006\"]\ntheorem erdos_654.variants.feng (m : ℕ) (hm : 10 ≤ m) :\n    ∃ A : Finset ℝ², #A = 4 * m ∧ NoFourConcyclic A ∧\n      ∀ x ∈ A, distinctDistancesFrom A x < 3 * m := by\n  sorry\n\n/--\nErdős [Er87b] and Erdős and Pach [ErPa90] ask the question of `erdos_654.parts.ii` under the\nadditional assumption that no three points are on a line. Let $x_1,\\ldots,x_n\\in \\mathbb{R}^2$ with\nno three points on a line and no four points on a circle. Is there some $x_i$ with at least\n$(\\frac{1}{3}+c)n$ distinct distances to the other $x_j$, for some constant $c>0$ and all large\n$n$?\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_654.variants.general_position :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → InGeneralPosition A →\n      ∃ x ∈ A, (1 / 3 + c) * (n : ℝ) < (distinctDistancesFrom A x : ℝ) := by\n  sorry\n\n/--\nLet $x_1,\\ldots,x_n\\in \\mathbb{R}^2$ with no three points on a line and no four points on a\ncircle. Is there some $x_i$ with at least $(1-o(1))n$ distinct distances to the other $x_j$?\n\nThis is the general-position analogue of `Erdos654.erdos_654.parts.i`. The remark on\nerdosproblems.com notes that the construction of [Fe26], which has all points on two lines, does\nnot settle the version in general position.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_654.variants.general_position_one_sub_eps :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → InGeneralPosition A →\n      ∃ x ∈ A, (1 - ε) * (n : ℝ) < (distinctDistancesFrom A x : ℝ) := by\n  sorry\n\n/-- `AtMostTwoPerCircle A` means that every circle centred at a point $x \\in A$ contains at most\ntwo other points of $A$. -/\ndef AtMostTwoPerCircle (A : Finset ℝ²) : Prop :=\n  ∀ x ∈ A, ∀ r : ℝ, #((A.erase x).filter fun y ↦ dist y x = r) ≤ 2\n\n/--\nErdős and Pach [ErPa90] suggest that the bound $(1-o(1))n$ holds under the assumption that every\ncircle centred at a point $x_i$ contains at most $2$ other points $x_j$. We state this for points\nin general position (no three on a line and no four on a circle [Er87b, p. 167]), the setting in\nwhich [Er87b] and [ErPa90] ask the weaker question. Without the assumption of no three points on a\nline the statement is false: the sets of [Fe26] satisfy the circle condition.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_654.variants.erdos_pach :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², #A = n → InGeneralPosition A →\n      AtMostTwoPerCircle A → ∃ x ∈ A, (1 - ε) * (n : ℝ) < (distinctDistancesFrom A x : ℝ) := by\n  sorry\n\nend Erdos654\n",
  "statement_hash": "b6f86db806550d6051ad20bea7d747d824dd6b1768afa210ee94afcb86745816",
  "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."
}