{
  "id": "2767",
  "ident": "NS.02767",
  "slug": "erdos-661",
  "title": "Erdős Problem 661",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Are there, for all large $n$, some points $x_1,\\ldots,x_n,y_1,\\ldots,y_n\\in \\mathbb{R}^2$ such that\nthe number of distinct distances $d(x_i,y_j)$ is\n$$o\\left(\\frac{n}{\\sqrt{\\log n}}\\right)?$$\n\nWe require all $2n$ points to be distinct; without any distinctness one could take all points\nequal and get a single distance. Writing $F(n)$ for the minimal number of such distances\n(`minimalCrossDistances ℝ² n`), the question asks whether $F(n) = o(n / \\sqrt{\\log n})$. This is\nequivalent to the existence, for all large $n$, of configurations whose count is at most $g(n)$\nfor some fixed $g(n) = o(n / \\sqrt{\\log n})$, since the infimum is attained.\n\nThe source adds that one can also ask this for points in $\\mathbb{R}^3$. Taken literally, the\nquestion is easy there, since a cubic grid of $2n$ points determines only $O(n^{2/3})$ distinct\ndistances, so we do not state it.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos661.erdos_661",
  "statement_lean": "theorem erdos_661 :\n    (fun n => (minimalCrossDistances ℝ² n : ℝ)) =o[atTop]\n      (fun (n : ℕ) => (n : ℝ) / (n : ℝ).log.sqrt)",
  "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 661\n\n*References:*\n- [erdosproblems.com/661](https://www.erdosproblems.com/661)\n- [ErPa90] Erdős, P. and Pach, J., *Variations on the theme of repeated distances*.\n  Combinatorica (1990), 261--269.\n- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*.\n  Eureka (1992), 44-48.\n- [Er97e] Erdős, Paul, *Some of my favourite unsolved problems*. Math. Japon. (1997), 527-537.\n- [Er97f] Erdős, Paul, *Some unsolved problems*. Combinatorics, geometry and probability\n  (Cambridge, 1993) (1997), 1-10.\n- [Er46] Erdős, Paul, *On sets of distances of $n$ points*. Amer. Math. Monthly 53 (1946),\n  248--250.\n-/\n\n@[expose] public section\n\nopen Filter Finset EuclideanGeometry\n\nnamespace Erdos661\n\nvariable {X : Type*} [MetricSpace X]\n\n/-- The set of distances $d(x, y)$ with $x \\in A$ and $y \\in B$. -/\nnoncomputable def crossDistanceSet (A B : Finset X) : Finset ℝ :=\n  (A ×ˢ B).image fun p : X × X => dist p.1 p.2\n\nvariable (X) in\n/-- The minimal number of distinct distances $d(x_i, y_j)$ over all choices of $2n$ distinct\npoints $x_1, \\ldots, x_n, y_1, \\ldots, y_n$ in `X`.\n\nThe $x_i$ form a set `A` of $n$ points, the $y_j$ form a set `B` of $n$ points, and `A` and `B`\nare disjoint, so all $2n$ points are distinct. -/\nnoncomputable def minimalCrossDistances (n : ℕ) : ℕ :=\n  sInf {m : ℕ | ∃ A B : Finset X, #A = n ∧ #B = n ∧ Disjoint A B ∧\n    #(crossDistanceSet A B) = m}\n\n/--\nAre there, for all large $n$, some points $x_1,\\ldots,x_n,y_1,\\ldots,y_n\\in \\mathbb{R}^2$ such that\nthe number of distinct distances $d(x_i,y_j)$ is\n$$o\\left(\\frac{n}{\\sqrt{\\log n}}\\right)?$$\n\nWe require all $2n$ points to be distinct; without any distinctness one could take all points\nequal and get a single distance. Writing $F(n)$ for the minimal number of such distances\n(`minimalCrossDistances ℝ² n`), the question asks whether $F(n) = o(n / \\sqrt{\\log n})$. This is\nequivalent to the existence, for all large $n$, of configurations whose count is at most $g(n)$\nfor some fixed $g(n) = o(n / \\sqrt{\\log n})$, since the infimum is attained.\n\nThe source adds that one can also ask this for points in $\\mathbb{R}^3$. Taken literally, the\nquestion is easy there, since a cubic grid of $2n$ points determines only $O(n^{2/3})$ distinct\ndistances, so we do not state it.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_661 :\n    (fun n => (minimalCrossDistances ℝ² n : ℝ)) =o[atTop]\n      (fun (n : ℕ) => (n : ℝ) / (n : ℝ).log.sqrt) := by\n  sorry\n\n/--\nTake $2n$ points of the smallest square grid with at least $2n$ points; by [Er46] they determine\n$O(n / \\sqrt{\\log n})$ distinct distances. Splitting them into two halves of $n$ points shows\nthat $F(n) = O(n / \\sqrt{\\log n})$. So the question is whether this trivial bound can be\nimproved by more than a constant factor.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_661.variants.grid_upper_bound :\n    (fun n => (minimalCrossDistances ℝ² n : ℝ)) =O[atTop]\n      (fun (n : ℕ) => (n : ℝ) / (n : ℝ).log.sqrt) := by\n  sorry\n\n/--\nEvery split of a set of $2n$ points into two halves of $n$ points gives a configuration for\n$F(n)$, and the distances between the halves are among the distances of the whole set. Hence\n$F(n) \\leq f(2n)$, where $f(2n)$ is the minimal number of distinct distances determined by $2n$\npoints in $\\mathbb{R}^2$.\n-/\n@[category textbook, AMS 52]\ntheorem erdos_661.variants.le_minimalDistinctDistances (n : ℕ) :\n    minimalCrossDistances ℝ² n ≤ minimalDistinctDistances ℝ² (2 * n) := by\n  obtain ⟨P, hP⟩ := Infinite.exists_subset_card_eq ℝ² (2 * n)\n  obtain ⟨Q, hQ, hQm⟩ := Nat.sInf_mem (s := {m | ∃ points : Finset ℝ², #points = 2 * n ∧\n    distinctDistances points = m}) ⟨_, P, hP, rfl⟩\n  obtain ⟨A, hAQ, hA⟩ := Finset.exists_subset_card_eq (show n ≤ #Q by omega)\n  have hB : #(Q \\ A) = n := by\n    rw [Finset.card_sdiff_of_subset hAQ]\n    omega\n  have h1 : minimalCrossDistances ℝ² n ≤ #(crossDistanceSet A (Q \\ A)) :=\n    Nat.sInf_le ⟨A, Q \\ A, hA, hB, Finset.disjoint_sdiff, rfl⟩\n  refine h1.trans (le_of_le_of_eq (Finset.card_le_card fun d hd => ?_) hQm)\n  obtain ⟨⟨x, y⟩, hxy, rfl⟩ := Finset.mem_image.1 hd\n  obtain ⟨hx, hy⟩ := Finset.mem_product.1 hxy\n  obtain ⟨hyQ, hyA⟩ := Finset.mem_sdiff.1 hy\n  exact Finset.mem_image.2 ⟨(x, y), Finset.mem_offDiag.2 ⟨hAQ hx, hyQ, fun h => hyA (h ▸ hx)⟩,\n    rfl⟩\n\n/--\nLet $F(2n)$ be the minimal number of distinct distances $d(x_i, y_j)$ for $2n$ distinct points\n$x_1,\\ldots,x_n,y_1,\\ldots,y_n\\in \\mathbb{R}^2$, and $f(2n)$ the minimal number of distinct\ndistances determined by any $2n$ points in $\\mathbb{R}^2$. Is $F = o(f)$?\n\nHere $F(2n)$ of erdosproblems.com is `minimalCrossDistances ℝ² n` (indexed by $n$ points on each\nside) and $f(2n)$ is `minimalDistinctDistances ℝ² (2 * n)`. See also Erdős Problem 89.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_661.variants.little_o_distinct_distances :\n    (fun n => (minimalCrossDistances ℝ² n : ℝ)) =o[atTop]\n      (fun n => (minimalDistinctDistances ℝ² (2 * n) : ℝ)) := by\n  sorry\n\n/--\nIn $\\mathbb{R}^4$ Lenz observed (as stated on erdosproblems.com/661) that for every $n$ there are\n$2n$ distinct points $x_1,\\ldots,x_n,y_1,\\ldots,y_n\\in \\mathbb{R}^4$ with $d(x_i,y_j)=1$ for all\n$i,j$: take the $x_i$ on the circle of radius $1/\\sqrt{2}$ about the origin in the plane of the\nfirst two coordinates, and the $y_j$ on the circle of radius $1/\\sqrt{2}$ about the origin in the\nplane of the last two coordinates.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_661.variants.lenz (n : ℕ) :\n    ∃ A B : Finset (EuclideanSpace ℝ (Fin 4)), #A = n ∧ #B = n ∧ Disjoint A B ∧\n      ∀ x ∈ A, ∀ y ∈ B, dist x y = 1 := by\n  sorry\n\nend Erdos661\n",
  "statement_hash": "9a91d129e203ea305ee9f39ba28bdf09ded0427f64983ec4f103446a19405c19",
  "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."
}