Title:The Erdős–Ulam problem
Statement:The Erdős–Ulam problem (Ulam 1945).
Is there a dense subset of the plane whose points are at pairwise rational distances? Conjecturally, no such set exists. Solymosi and de Zeeuw [SdZ10] proved that if a rational-distance set has infinitely many points on a line or circle, all but finitely many points lie on that line or circle.
| Subjects: | Metric Geometry (math.MG) |
| MSC classes: | 51, 52 |
| Tags: | question |
| Cite as: | NS.07896 [math.MG] · NS.07896v1 for this version |
| Declaration: | ErdosUlamProblem.erdos_ulam_problem |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100; accepted critique: up to 100 |
| Statement hash: | 4fdb4f835417cbf1cf346a74c892f5e4ac98af5bb3435821725d47f22256783f |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/ErdosUlamProblem.lean |
Formal statement
theorem erdos_ulam_problem :
∃ S : Set (EuclideanSpace ℝ (Fin 2)), Dense S ∧ PairwiseRationalDistances SShow the full Challenge.lean (111 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# The Erdős–Ulam problem
*References:*
* [Wikipedia](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Ulam_problem)
* [Ul60] Ulam, S. M. (1960). *A Collection of Mathematical Problems.* Interscience, p. 40.
* [SdZ10] Solymosi, J. and de Zeeuw, F. (2010). "On a question of Erdős and Ulam."
*Discrete Comput. Geom.* 43, pp. 393--401. [arXiv:0806.3095](https://arxiv.org/abs/0806.3095)
* [Ta14] Tao, T. (2014). "The Erdős–Ulam problem, varieties of general type, and the
Bombieri–Lang conjecture." Blog post,
[terrytao.wordpress.com](https://terrytao.wordpress.com/2014/12/20/the-erdos-ulam-problem-varieties-of-general-type-and-the-bombieri-lang-conjecture/)
* [AE45] Anning, N. H. and Erdős, P. (1945). "Integral distances." *Bull. Amer. Math. Soc.* 51,
pp. 598--600.
-/
@[expose] public section
open EuclideanSpace
namespace ErdosUlamProblem
/-- A set of points of the plane has **pairwise rational distances** if the distance between any
two of its points is a rational number. -/
def PairwiseRationalDistances (S : Set (EuclideanSpace ℝ (Fin 2))) : Prop :=
∀ p ∈ S, ∀ q ∈ S, ∃ r : ℚ, dist p q = (r : ℝ)
/--
**The Erdős–Ulam problem (Ulam 1945).**
Is there a dense subset of the plane whose points are at pairwise rational distances?
Conjecturally, no such set exists. Solymosi and de Zeeuw [SdZ10] proved that if a
rational-distance set has infinitely many points on a line or circle, all but finitely many
points lie on that line or circle.
-/
@[category research open, question, AMS 51 52]
theorem erdos_ulam_problem :
∃ S : Set (EuclideanSpace ℝ (Fin 2)), Dense S ∧ PairwiseRationalDistances S := by
sorry
/--
**Everywhere-dense rational-distance sets on the line exist.**
On the real line the rationals themselves are dense and at pairwise rational distances; the
Erdős–Ulam problem is what happens in dimension `2`.
-/
@[category test, AMS 51 52]
theorem erdos_ulam_problem.variants.line :
∃ S : Set ℝ, Dense S ∧ ∀ p ∈ S, ∀ q ∈ S, ∃ r : ℚ, dist p q = (r : ℝ) := by
refine ⟨Set.range ((↑) : ℚ → ℝ), Rat.denseRange_cast, ?_⟩
rintro p ⟨a, rfl⟩ q ⟨b, rfl⟩
exact ⟨|a - b|, by rw [Real.dist_eq]; push_cast; rfl⟩
/--
**Infinite integer-distance sets are collinear (Anning–Erdős 1945).**
Anning and Erdős proved that an infinite set of points in the plane with pairwise *integer*
distances must be contained in a line.
*Reference:* [AE45].
-/
@[category research solved, AMS 51 52, formal_proof using lean4 at
"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-09-000002"]
theorem erdos_ulam_problem.variants.anning_erdos
(S : Set (EuclideanSpace ℝ (Fin 2))) (hinf : S.Infinite)
(hd : ∀ p ∈ S, ∀ q ∈ S, ∃ n : ℤ, dist p q = (n : ℝ)) :
∃ a b : EuclideanSpace ℝ (Fin 2), a ≠ b ∧
S ⊆ {x | ∃ t : ℝ, x = a + t • (b - a)} := by
sorry
/--
If a plane set with pairwise rational distances has infinitely many points on a line or
circle, all but finitely many of its points are contained in a line or circle.
This is the finite-exception corollary of [SdZ10, Theorem 2.2], whose sharper bounds are
four exceptions for a line and three for a circle.
-/
@[category research solved, AMS 51 52]
theorem erdos_ulam_problem.variants.solymosi_de_zeeuw
(S : Set (EuclideanSpace ℝ (Fin 2))) (hd : PairwiseRationalDistances S)
(hstructure :
(∃ a b : EuclideanSpace ℝ (Fin 2), a ≠ b ∧
{x ∈ S | ∃ t : ℝ, x = a + t • (b - a)}.Infinite) ∨
(∃ (c : EuclideanSpace ℝ (Fin 2)) (ρ : ℝ), 0 < ρ ∧
{x ∈ S | dist x c = ρ}.Infinite)) :
(∃ a b : EuclideanSpace ℝ (Fin 2), a ≠ b ∧
{x ∈ S | ¬ ∃ t : ℝ, x = a + t • (b - a)}.Finite) ∨
(∃ (c : EuclideanSpace ℝ (Fin 2)) (ρ : ℝ), 0 < ρ ∧
{x ∈ S | dist x c ≠ ρ}.Finite) := by
sorry
end ErdosUlamProblem
To prove it: keep every definition of Challenge.lean unchanged and prove ErdosUlamProblem.erdos_ulam_problem with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_ulam_problem : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk wikipedia-erdosulamproblem # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch wikipedia-erdosulamproblem nosorry submit wikipedia-erdosulamproblem nosorry/wikipedia-erdosulamproblem/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-ulam-problem-variants-anning-erdos — known result
- erdos-ulam-problem-variants-solymosi-de-zeeuw — known result
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.