Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 668 · variants.four_points

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

For n=4n=4 there is, up to congruence, exactly one set of points in R2\mathbb{R}^2 which maximises the number of unit distances: two unit equilateral triangles abcabc and bcdbcd joined by the edge bcbc, with a≠da\neq d.

Subjects:Metric Geometry (math.MG)
MSC classes:52
Cite as:NS.02784 [math.MG] · NS.02784v1 for this version
Declaration:Erdos668.erdos_668.variants.four_points
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:7aeebb35a05cdf882e62f42228608dfc33c7ad439fd533c61d34e705057e905a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/668.lean

Formal statement

theorem erdos_668.variants.four_points :
    ∃ a b c d : ℝ², dist a b = 1 ∧ dist a c = 1 ∧ dist b c = 1 ∧ dist b d = 1 ∧ dist c d = 1 ∧
      ({a, b, c, d} : Finset ℝ²).card = 4 ∧
      ∀ B : Finset ℝ², B.card = 4 →
        (unitDistNum B = maxUnitDistances 4 ↔ ∃ f : ℝ² ≃ᵢ ℝ², f '' {a, b, c, d} = B)
Show the full Challenge.lean (104 lines) — definitions included
module

public import FormalConjecturesUtil
public import FormalConjectures.ErdosProblems.«90»

/-!
# Erdős Problem 668

*References:*
- [erdosproblems.com/668](https://www.erdosproblems.com/668)
- [A385657](https://oeis.org/A385657)
- [AMP25] B. Alexeev, D. Mixon, and H. Parshall, *The Erdős unit distance problem for small point
  sets*. arXiv:2412.11914 (2025).
- [EHSVZ25] P. Engel, O. Hammond-Lee, Y. Su, D. Varga, and P. Zsámboki, *Diverse beam search to
  find densest-known planar unit distance graphs*. arXiv:2406.15317 (2025).
- [Er97f] Erdős, Paul, *Some unsolved problems*. Combinatorics, geometry and probability
  (Cambridge, 1993) (1997), 1-10.
-/

@[expose] public section

open Filter
open scoped EuclideanGeometry

namespace Erdos668

open Erdos90

/--
Is it true that the number of incongruent sets of $n$ points in $\mathbb{R}^2$ which maximise the
number of unit distances tends to infinity as $n\to\infty$?

The actual maximal number of unit distances is the subject of
[Erdős Problem 90](https://www.erdosproblems.com/90).

Two sets of points are congruent if an isometry of the plane maps one onto the other.
-/
@[category research open, question, AMS 52]
theorem erdos_668.parts.i :
    ∀ m : ℕ, ∀ᶠ n in atTop, ∃ A : Fin m → Finset ℝ²,
      (∀ i, (A i).card = n ∧ unitDistNum (A i) = maxUnitDistances n) ∧
      ∀ i j, i ≠ j → ¬ ∃ f : ℝ² ≃ᵢ ℝ², f '' A i = A j := by
  sorry

/--
Is it always $>1$ for $n>3$?

In fact this is $=1$ also for $n=4$, the unique example given by two equilateral triangles joined
by an edge.

Computational evidence of Engel, Hammond-Lee, Su, Varga, and Zsámboki [EHSVZ25] and Alexeev,
Mixon, and Parshall [AMP25] suggests that this count is $=1$ for various other $5\leq n\leq 21$
(although these calculations were checking only up to graph isomorphism, rather than
congruency).
-/
@[category research solved, question, AMS 52]
theorem erdos_668.parts.ii :
    ¬ ∀ n : ℕ, 3 < n → ∃ A B : Finset ℝ², A.card = n ∧ B.card = n ∧
      unitDistNum A = maxUnitDistances n ∧ unitDistNum B = maxUnitDistances n ∧
      ¬ ∃ f : ℝ² ≃ᵢ ℝ², f '' A = B := by
  sorry

/--
For $n=4$ there is, up to congruence, exactly one set of points in $\mathbb{R}^2$ which maximises
the number of unit distances: two unit equilateral triangles $abc$ and $bcd$ joined by the edge
$bc$, with $a\neq d$.
-/
@[category research solved, AMS 52]
theorem erdos_668.variants.four_points :
    ∃ a b c d : ℝ², dist a b = 1 ∧ dist a c = 1 ∧ dist b c = 1 ∧ dist b d = 1 ∧ dist c d = 1 ∧
      ({a, b, c, d} : Finset ℝ²).card = 4 ∧
      ∀ B : Finset ℝ², B.card = 4 →
        (unitDistNum B = maxUnitDistances 4 ↔ ∃ f : ℝ² ≃ᵢ ℝ², f '' {a, b, c, d} = B) := by
  sorry

/-- `Erdos668.erdos_668.variants.four_points` settles `Erdos668.erdos_668.parts.ii` at
$n = 4$. -/
@[category test, AMS 52]
theorem erdos_668.variants.four_points_implies_parts_ii :
    type_of% erdos_668.variants.four_points → type_of% erdos_668.parts.ii := by
  rintro ⟨a, b, c, d, -, -, -, -, -, -, h⟩
  intro H
  obtain ⟨A, B, hA, hB, hAm, hBm, hAB⟩ := H 4 (by norm_num)
  obtain ⟨f, hf⟩ := (h A hA).1 hAm
  obtain ⟨g, hg⟩ := (h B hB).1 hBm
  exact hAB ⟨f.symm.trans g, by rw [← hf, ← hg, Set.image_image]; simp⟩

end Erdos668

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos668.erdos_668.variants.four_points with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_four_points : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-668--erdos-668-variants-four-points      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-668--erdos-668-variants-four-points
nosorry submit erdos-668--erdos-668-variants-four-points nosorry/erdos-668--erdos-668-variants-four-points/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.