Skip to content

feat: add Erdős unit-distance problem set#321

Merged
kim-em merged 1 commit into
mainfrom
feat/erdos-unit-distance
May 26, 2026
Merged

feat: add Erdős unit-distance problem set#321
kim-em merged 1 commit into
mainfrom
feat/erdos-unit-distance

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented May 26, 2026

This PR adds two planar unit-distance problems built on a shared prelude.

  • unit_distance_upper_bound — Spencer–Szemerédi–Trotter (1984): there is an absolute C > 0 such that every finite P ⊆ ℝ² satisfies unitDist P ≤ C · |P|^{4/3}. The exponent has stood since 1984 with only constant-factor improvements.
  • erdos_unit_distance_conjecture_false — OpenAI (2026), Theorem 1.1 of Planar Point Sets with Many Unit Distances: there is an absolute δ > 0 and infinitely many n for which some n-point planar set has at least n^{1+δ} unit-distance pairs. This refutes Erdős's 1946 conjecture ν(n) ≤ n^{1 + C / log log n}. Construction: an unramified pro-3 tower of totally real number fields with prescribed completely-split rational primes (Hajir–Maire / Golod–Shafarevich), projecting CM-lattice norm-one elements through a Minkowski window.

The shared module LeanEval.Combinatorics.UnitDistance defines E2 := EuclideanSpace ℝ (Fin 2) (so dist is Euclidean, not the sup-norm carried by ℝ × ℝ) and unitDist P = (P.offDiag.filter (dist · = 1)).card / 2. The two @[eval_problem] theorems live in their own files so each comparator workspace's ChallengeDeps.lean carries only the definitions, not the other theorem as a sorry-axiom.

Local checks green: check-problem-build, validate-manifest, generate and check-generated-builds for both problems.

🤖 Prepared with Claude Code

Two planar unit-distance problems on a shared prelude:

* unit_distance_upper_bound — Spencer-Szemerédi-Trotter (1984):
  ν(n) = O(n^{4/3}). Best known upper bound; exponent unchanged
  since 1984 with only constant-factor improvements.

* erdos_unit_distance_conjecture_false — OpenAI (2026, Theorem 1.1
  of Planar Point Sets with Many Unit Distances): refutes Erdős's
  1946 conjecture ν(n) ≤ n^{1 + C / log log n} via an unramified
  pro-3 tower of totally real number fields with prescribed split
  primes, projecting CM-lattice norm-one elements to the plane.

The shared module LeanEval.Combinatorics.UnitDistance defines E2
(EuclideanSpace ℝ (Fin 2), so dist is Euclidean, not sup-norm) and
unitDist P = (P.offDiag.filter (dist · = 1)).card / 2; the two
@[eval_problem] theorems live in their own files so each
comparator workspace's deps contain only the definitions, not the
other theorem as a sorry-axiom.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kim-em kim-em merged commit 3f51a28 into main May 26, 2026
1 check passed
@kim-em kim-em deleted the feat/erdos-unit-distance branch May 26, 2026 09:13
Comment on lines +61 to +63
∃ δ : ℝ, 0 < δ ∧
∀ N : ℕ, ∃ (n : ℕ) (P : Finset E2),
N ≤ n ∧ P.card = n ∧ (n : ℝ) ^ (1 + δ) ≤ (unitDist P : ℝ) := by
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

Suggested change
∃ δ : ℝ, 0 < δ ∧
∀ N : ℕ, ∃ (n : ℕ) (P : Finset E2),
N ≤ n ∧ P.card = n ∧ (n : ℝ) ^ (1 + δ) ≤ (unitDist P : ℝ) := by
∃ δ : ℝ, 0 < δ ∧
∀ N : ℕ, ∃ P : Finset E2,
N ≤ P.card ∧ (P.card : ℝ) ^ (1 + δ) ≤ (unitDist P : ℝ) := by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants