The uniform-constant Erdős unit-distance conjecture is false — formalized

A complete, machine-checked Lean 4 formalization of L. Alpöge's one-page disproof of the uniform-constant form of Erdős's unit-distance conjecture:

Theorem (Erdos.erdos_unit_distance_uniform_constant_false). For every C > 0 and every N there exist n ≥ N and an n-point set P ⊆ ℝ² with more than n^(1 + C / log log n) unit-distance pairs.

This is the literal negation of Erdős's 1946 conjecture ν(n) ≤ n^(1 + C/log log n). The final axiom audit:

'Erdos.erdos_unit_distance_uniform_constant_false' depends on axioms:
[propext, Classical.choice, Quot.sound]

No sorry, no extra axioms. (Note this is weaker than the lean-eval problem erdos_unit_distance_conjecture_false, which asks for a fixed power gain ν(n) ≥ n^(1+δ) — the OpenAI 2026 construction via class field towers. Alpöge's one-pager deliberately trades the power gain for elementary inputs, and that is what is formalized here.)

Layout

A single Lake project on Lean v4.31.0-rc2 / Mathlib master, with three git dependencies:

  • Mathlib;
  • PrimeNumberTheoremAnd, whose sorry-free chebyshev_asymptotic_pnt is the only analytic input;
  • TauCeti, which supplies the reusable algebraic number theory (see below).

The library is organised by subject:

modulecontents
Countingunit-distance pair counts; transport ℂ ≃ ℝ²
GeometricCoregrid-pigeonhole packing/doubling in polydiscs; the translation argument
PrimesMod4the j-th primes ≡ 1, 3 (mod 4); polynomial growth from PNT-in-AP; the modulus m t
MultiquadraticFieldK_g = ℚ(i, √q₀, …, √q_{g-1}): degree 2^(g+1) via TauCeti's square-class descent; CM structure
Discriminantthe concrete diagonal trace form for K_g; log h_{K_g} = O(2^g·g log g) via TauCeti's effective class-number and discriminant bounds
IdealFamilyunramifiedness, inertia ≤ 2, conjugation freeness for K_g; the 2^(t·2^(g-1)) ideals over m via TauCeti's conjugate-transversal family
NormFibrethe two pigeonholes; the fibre Z = {z ∈ 𝔟 : z·z∗ = μ}; unit-square index from TauCeti
PointCountMinkowski embedding, separation, the planar point set
Mainthe counting assembly and the theorem

What comes from TauCeti

The reusable number theory this proof needs has been upstreamed into TauCeti, so this repository now holds only the concrete K_g construction and the disproof assembly. The general results imported and applied here are:

  • effective ideal-count, class-number, and unit-square-index bounds (TauCeti.NumberField.classNumber_le_bound, units_sq_index_le) and the discriminant comparison abs_discr_le_of_basis_isIntegral;
  • the conjugate-transversal ideal family (TauCeti.DedekindDomain.exists_transversal_family);
  • multiquadratic square-class descent (TauCeti.Multiquadratic.sqrtTower, squareClass_of_sqrt_mem) and the quadratic intermediate-field lemma TauCeti.IntermediateField.mem_sup_adjoin_sq.

Verify with:

lake exe cache get && lake build

and then

import ErdosUnitDistance
#print axioms Erdos.erdos_unit_distance_uniform_constant_false
-- [propext, Classical.choice, Quot.sound]
  • informal-proof.md — a faithful transcription of the informal proof.
  • formalization.yaml — provenance and resource-usage metadata.

Independent verification

kim-em/erdos-unit-distance-comparator checks this library with leanprover/comparator: a Mathlib-only Challenge.lean states the theorem, and comparator certifies — without trusting any proof code here — that the library proves exactly that statement from the standard axioms, replaying the proof through the Lean kernel.

Proof structure

  1. Geometric core — grid-pigeonhole packing and doubling bounds for lattice points in polydiscs of ℂ^d (no measure theory), and the translation argument producing unit distances after projection to one complex coordinate.
  2. Arithmetic construction — the multiquadratic CM field K = ℚ(i, √q₀, …, √q_{g-1}) (q_j the j-th prime ≡ 3 mod 4) of degree 2^(g+1); for m the product of the first t primes ≡ 1 mod 4, at least 2^(t·2^(g-1)) ideals 𝔄 with 𝔄𝔄∗ = (m) (unramifiedness, inertia degree ≤ 2 via the exponent-2 Galois group, conjugation acting freely on primes, and a transversal count); class-group and unit-square-class pigeonholes then produce a norm fibre Z = {z ∈ 𝔟 : z z̄ = μ} of exponential size, all of one archimedean modulus. The general tools here — square-class descent, the effective ideal-count / class-number / discriminant / unit-square bounds, and the conjugate-transversal count — come from TauCeti and are instantiated at the concrete K_g and m.
  3. Assembly — explicit-constant bookkeeping: log(ν/n) ≫ t·2^g, log n ≪ 2^g·t log t, log log n ≍ g; choosing g ≈ C log t and t large refutes the bound for the given C.

Provenance

Formalized 2026-06-11 (one working day) by an orchestrated ensemble — Claude (Anthropic), Aristotle (Harmonic), and Codex (OpenAI) — directed from a single Claude Code session. See formalization.yaml for details and resource usage. Migrated onto TauCeti and bumped to Lean v4.31.0-rc2 / Mathlib master on 2026-06-17.