{
  "id": "3593",
  "ident": "NS.03593",
  "slug": "erdos-91",
  "title": "Erdős Problem 91",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Suppose $A\\subset \\mathbb{R}^2$ has $\\lvert A\\rvert=n$ and minimises the number of distinct\ndistances between points in $A$. Prove that for large $n$ there are at least two\n(and probably many) such $A$ which are non-similar.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos91.erdos_91",
  "statement_lean": "theorem erdos_91 :\n    ∀ᶠ n : ℕ in atTop, ¬ UniqueMinimizer n",
  "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 91\n\n*Reference:*\n- [Er87b] Erdős, P., Some combinatorial and metric problems in geometry.\n  Intuitive geometry (Siófok, 1985) (1987), 167-177.\n- [Ko24c] Z. Kovács, A note on Erdős's mysterious remark. arXiv:2412.05190 (2024).\n- [erdosproblems.com/91](https://www.erdosproblems.com/91)\n-/\n\n@[expose] public section\n\nopen Finset EuclideanGeometry Filter\n\nnamespace Erdos91\n\n/-- A set $A$ is 'optimal' if it has $n$ points and achieves the minimum distance count. -/\nnoncomputable def IsOptimal (A : Finset ℝ²) (n : ℕ) : Prop :=\n  A.card = n ∧ distinctDistances A = minimalDistinctDistances ℝ² n\n\n/-- Two finite sets of points in $\\mathbb{R}^2$ are similar if one can be mapped to the other by a\nDilationEquiv. -/\ndef DilationEquivSimilar (A B : Finset ℝ²) : Prop :=\n  ∃ f : ℝ² ≃ᵈ ℝ², (f '' A) = B\n\n/-- Equilateral triangle with unit side length, resting on the x-axis with one vertex at the origin. -/\nnoncomputable def equiTriangle : Finset ℝ² := {!₂[0, 0], !₂[1, 0], !₂[1 / 2, Real.sqrt 3 / 2]}\n\nnoncomputable def unitSquare : Finset ℝ² := {!₂[0, 0], !₂[0, 1], !₂[1, 0], !₂[1, 1]}\n\n/-- Regular 7-gon with unit side length, touching both axes in the first quadrant. -/\nnoncomputable def circleSeven : Finset ℝ² :=\n  let r := 1 / (2 * Real.sin (Real.pi / 7))\n  let cx := r * Real.cos (Real.pi / 7)\n  let cy := r * Real.sin (4 * Real.pi / 7)\n  (Finset.range 7).image fun k : ℕ =>\n    !₂[r * Real.cos (2 * Real.pi * ↑k / 7) + cx, r * Real.sin (2 * Real.pi * ↑k / 7) + cy]\n\n/-- Wheel graph on 7 vertices (center + regular hexagon) with unit side length,\ntouching both axes in the first quadrant. -/\nnoncomputable def wheelSeven : Finset ℝ² :=\n  {!₂[1, Real.sqrt 3 / 2],\n   !₂[2, Real.sqrt 3 / 2],\n   !₂[3 / 2, Real.sqrt 3],\n   !₂[1 / 2, Real.sqrt 3],\n   !₂[0, Real.sqrt 3 / 2],\n   !₂[1 / 2, 0],\n   !₂[3 / 2, 0]}\n\n@[category test, AMS 52]\nlemma erdos_91.test.equiTriangle_optimal : IsOptimal equiTriangle 3 := by\n  have hcard : equiTriangle.card = 3 := by\n    simp [equiTriangle, Finset.mem_insert, Finset.mem_singleton]\n  have hdist : distinctDistances equiTriangle = 1 := by\n    unfold distinctDistances distanceSet equiTriangle\n    have eucl_dist_one_of_sq : ∀ {x y : ℝ²}, dist x y ^ 2 = 1 → dist x y = 1 := by\n      intro x y h; nlinarith [dist_nonneg (x := x) (y := y), sq_nonneg (dist x y)]\n    have hd01 : dist (!₂[(0 : ℝ), 0]) (!₂[(1 : ℝ), 0]) = 1 := eucl_dist_one_of_sq <| by\n      rw [EuclideanSpace.dist_sq_eq, Fin.sum_univ_two]; simp [Real.dist_eq]\n    have hd02 : dist (!₂[(0 : ℝ), 0]) (!₂[(1 : ℝ) / 2, Real.sqrt 3 / 2]) = 1 :=\n      eucl_dist_one_of_sq <| by\n        rw [EuclideanSpace.dist_sq_eq, Fin.sum_univ_two, Real.dist_eq, Real.dist_eq]\n        simp only [Matrix.cons_val_zero, Matrix.cons_val_one]\n        nlinarith [Real.sq_sqrt (show (3 : ℝ) ≥ 0 by norm_num), Real.sqrt_nonneg 3,\n          sq_abs ((0 : ℝ) - 1 / 2), sq_abs ((0 : ℝ) - Real.sqrt 3 / 2)]\n    have hd12 : dist (!₂[(1 : ℝ), 0]) (!₂[(1 : ℝ) / 2, Real.sqrt 3 / 2]) = 1 :=\n      eucl_dist_one_of_sq <| by\n        rw [EuclideanSpace.dist_sq_eq, Fin.sum_univ_two, Real.dist_eq, Real.dist_eq]\n        simp only [Matrix.cons_val_zero, Matrix.cons_val_one]\n        nlinarith [Real.sq_sqrt (show (3 : ℝ) ≥ 0 by norm_num), Real.sqrt_nonneg 3,\n          sq_abs ((1 : ℝ) - 1 / 2), sq_abs ((0 : ℝ) - Real.sqrt 3 / 2)]\n    suffices h : ({!₂[(0 : ℝ), 0], !₂[(1 : ℝ), 0], !₂[(1 : ℝ) / 2, Real.sqrt 3 / 2]} :\n        Finset ℝ²).offDiag.image (fun (pair : ℝ² × ℝ²) => dist pair.1 pair.2) = {1} by\n      simp only [h, Finset.card_singleton]\n    refine Finset.eq_singleton_iff_unique_mem.mpr ⟨Finset.mem_image.mpr\n      ⟨⟨!₂[0, 0], !₂[1, 0]⟩, by simp [Finset.mem_offDiag], hd01⟩, fun d hd => ?_⟩\n    obtain ⟨⟨a, b⟩, hab, rfl⟩ := Finset.mem_image.mp hd\n    simp only [Finset.mem_offDiag, Finset.mem_insert, Finset.mem_singleton] at hab\n    obtain ⟨ha, hb, _⟩ := hab\n    rcases ha with rfl | rfl | rfl <;> rcases hb with rfl | rfl | rfl <;> first\n      | contradiction | exact hd01 | exact hd02 | exact hd12\n      | (rw [dist_comm]; first | exact hd01 | exact hd02 | exact hd12)\n  have hmin : minimalDistinctDistances ℝ² 3 = 1 := by\n    unfold minimalDistinctDistances\n    apply le_antisymm\n    · exact Nat.sInf_le ⟨equiTriangle, hcard, by exact_mod_cast hdist⟩\n    · apply le_csInf\n      · exact ⟨_, equiTriangle, hcard, rfl⟩\n      rintro d ⟨points, hcard', hd⟩\n      rw [← show distinctDistances points = d from by exact_mod_cast hd]\n      exact Finset.card_pos.mpr ((Finset.card_pos.mp (by rw [Finset.offDiag_card, hcard']; norm_num :\n        0 < points.offDiag.card)).image _)\n  exact ⟨hcard, by rw [hdist, hmin]⟩\n\n@[category test, AMS 52]\nlemma erdos_91.test.equiTriangle_unique_optimal :\n    ∀ A : Finset ℝ², IsOptimal A 3 → DilationEquivSimilar A equiTriangle := by\n  sorry\n\n@[category test, AMS 52]\nlemma erdos_91.test.unitSquare_optimal : IsOptimal unitSquare 4 := by\n  sorry\n\n@[category test, AMS 52]\nlemma erdos_91.test.circleSeven_optimal : IsOptimal circleSeven 7 := by\n  sorry\n\n@[category test, AMS 52]\nlemma erdos_91.test.wheelSeven_optimal : IsOptimal wheelSeven 7 := by\n  sorry\n\n@[category test, AMS 52]\nlemma erdos_91.test.dissimilar_circleSeven_wheelSeven :\n    ¬DilationEquivSimilar circleSeven wheelSeven := by\n  sorry\n\n/--\nThe predicate on $n$ asserting all $A, B\\subset \\mathbb{R}^2$,\nwith $\\lvert A\\rvert=n = \\lvert B\\rvert$, which minimise the number of distinct points for all sets\nwith $n$ elements are similar.\n-/\ndef UniqueMinimizer (n : ℕ) : Prop :=\n  ∀ A B : Finset ℝ², IsOptimal A n → IsOptimal B n → DilationEquivSimilar A B\n\n/--\nSuppose $A\\subset \\mathbb{R}^2$ has $\\lvert A\\rvert=n$ and minimises the number of distinct\ndistances between points in $A$. Prove that for large $n$ there are at least two\n(and probably many) such $A$ which are non-similar.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_91 :\n    ∀ᶠ n : ℕ in atTop, ¬ UniqueMinimizer n := by\n  sorry\n\n\nset_option linter.style.formal_proof_palomar false in\n/--\nFor $n = 3$ the equilateral triangle is the only such set.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/cd3cf0b176e95209584bf35555a7c0e501255f6e/erdos-91/Solution.lean#L159\"]\ntheorem erdos_91.variants.three : UniqueMinimizer 3 := by\n  sorry\n\n\nset_option linter.style.formal_proof_palomar false in\n/--\nFor $n=4$ the square or two equilateral triangles sharing an edge give two\nnon-similar examples.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/cd3cf0b176e95209584bf35555a7c0e501255f6e/erdos-91/Solution.lean#L162\"]\ntheorem erdos_91.variants.four : ¬ UniqueMinimizer 4 := by\n  sorry\n\n\n/--\nFor $n = 5$ the regular pentagon is the unique such set (which has two distinct distances).\nErdős mysteriously remarks in [Er90] this was proved by 'a colleague'. (In [Er87b] this is\ndescribed as 'a colleague from Zagreb (unfortunately I do not have his letter)'.)\nA published proof of this fact is provided by Kovács [Ko24c].\n-/\n@[category research solved, AMS 52]\ntheorem erdos_91.variants.five : UniqueMinimizer 5 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIn [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 6$.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/cd3cf0b176e95209584bf35555a7c0e501255f6e/erdos-91/Solution.lean#L165\"]\ntheorem erdos_91.variants.six: ¬ UniqueMinimizer 6 := by\n  sorry\n\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIn [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 7$.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at\n  \"https://github.com/linrock/math-proofs/blob/cd3cf0b176e95209584bf35555a7c0e501255f6e/erdos-91/Solution.lean#L168\"]\ntheorem erdos_91.variants.seven: ¬ UniqueMinimizer 7 := by\n  sorry\n\n\n/--\nIn [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 8$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_91.variants.eight: ¬ UniqueMinimizer 8 := by\n  sorry\n\n\n/--\nIn [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 9$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_91.variants.nine: ¬ UniqueMinimizer 9 := by\n  sorry\n\nend Erdos91\n",
  "statement_hash": "2d94316e284d328bccccf2c07fb4f85d0569f5be814b5461c88bb3d587f54918",
  "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."
}