Mathematics / Formalization Note / Geometry & Group Theory

The Guth-Katz Distinct Distances Bounds, Proved in Lean 4 (variants of Erdos Problems 89, 95 and 100)

One Lean development, specialized to the three targets: Elekes-Sharir lines and the energy reduction (reduction and Cauchy-Schwarz argument from the Left to Solve Erdos 89/100 reductions, credited in the files to @marcusbuffett), a bound of 2d|A| on Elekes-Sharir lines inside a degree-d real surface via the complex slice z = i (used in place of the flecnode/ruled-surface step; not compared with the literature, no novelty claimed), polynomial ham-sandwich and 2D/3D polynomial partitioning, and a Szemeredi-Trotter rich-point bound. Borsuk-Ulam via Kuhn triangulations and Tucker's lemma is adapted under Apache-2.0 from Mario Ullrich's Lean-ContMeasurements, and the Erdos 100 packing lemma is credited to @ivillar. The proofs were produced with an AI coding agent operated by the author.

Author
Ali Uyar
DOI
10.5281/zenodo.24765103
Scope
Direct proof
Status
Merged on Left to Solve
Original theorem
Erdos distinct distances problem (Paul Erdos, 1946; conjectured >> n/sqrt(log n), still open). The n/log n lower bound and the n^3 log n distance-energy bound are due to Larry Guth and Nets Hawk Katz (Annals of Mathematics 181, 2015); the n/log n diameter bound for distance-separated sets is a known corollary noted on erdosproblems.com/100.
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/07-guth-katz-distinct-distances

Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.

Summary

Paul Erdos (1946) conjectured that n points in the plane determine >> n/sqrt(log n) distinct distances. Larry Guth and Nets Hawk Katz (Annals of Mathematics, 2015) proved >> n/log n via the distance-energy bound sum f(u_i)^2 << n^3 log n. We prove three FormalConjectures variants in Lean 4: erdos_89.variants.n_dvd_log_n, erdos_95.variants.guth_katz and erdos_100.variants.guth_katz (diameter >> n/log n for distance-separated sets, a known corollary); the main statements of Erdos Problems 89 and 100 remain open. All three were accepted by the Left to Solve Lean checker. The three files (5,084-5,253 lines each) are near-copies of one development: about 1,900 lines implement the Elekes-Sharir reduction, polynomial partitioning, a Szemeredi-Trotter rich-point bound and a complex-slice (z = i) bound on Elekes-Sharir lines in a surface; about 3,200 lines (including the Apache-2.0 license text) are Mario Ullrich's Borsuk-Ulam proof, adapted. The proofs were produced with an AI coding agent (t3-code, model gpt-6.2-astra) operated by the author.

Context

Polynomial partitioning from Guth and Katz is a central tool in incidence geometry. These files prove the three Guth-Katz bounds against the FormalConjectures statements, with every step down to Borsuk-Ulam checked by the Lean kernel, and avoid flecnode geometry entirely through an elementary complex-slice bound on Elekes-Sharir lines in a surface.

Root problems on Left to Solve

  • LTS Erdos100.erdos_100.variants.guth_katz closed; Left to Solve credits the solution to aliuyar1234
  • LTS Erdos89.erdos_89.variants.n_dvd_log_n closed; Left to Solve credits the solution to aliuyar1234
  • LTS Erdos95.erdos_95.variants.guth_katz closed; Left to Solve credits the solution to aliuyar1234

Credits

Mathematics: Larry Guth and Nets Hawk Katz (2015), building on Gyorgy Elekes and Micha Sharir; problems by Paul Erdos. Lean code: Borsuk-Ulam/Tucker part 'Adapted for Lean 4.33.1 from Mario Ullrich, Lean-ContMeasurements, revision 79a7bed5c4335dcef05ed8c2b5da0b7285e37c9c' (Apache-2.0, his copyright headers kept); Erdos 89/100 headers: 'We use the reduction and finite Cauchy-Schwarz argument from the OMA Erdos 89 and 100 reductions, including the Erdos 89 reduction credited to @marcusbuffett.'; Erdos 95 header: 'Elekes-Sharir setup inspired by @marcusbuffett'; Erdos 100 file: 'Distance packing argument credited to @ivillar in the OMA Erdos 100 proof.' Proofs produced with an AI coding agent (t3-code, model gpt-6.2-astra) operated by the author. The PR bodies name no further contributors.

Pull request ledger (3)

  • #39219 Erdos89.erdos_89.variants.n_dvd_log_n merged
  • #39250 Erdos100.erdos_100.variants.guth_katz merged
  • #40784 Erdos95.erdos_95.variants.guth_katz merged

Cite

@misc{uyar2026_guth_katz_distinct_distances_lean4,
  author    = {Uyar, Ali},
  title     = {The Guth-Katz Distinct Distances Bounds, Proved in Lean 4 (variants of Erdos Problems 89, 95 and 100)},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765103},
  url       = {https://doi.org/10.5281/zenodo.24765103},
  note      = {Lean 4 formalization technical note (Erdos distinct distances problem (Paul Erdos, 1946; conjectured >> n/sqrt(log n), still open). The n/log n lower bound and the n^3 log n distance-energy bound are due to Larry Guth and Nets Hawk Katz (Annals of Mathematics 181, 2015); the n/log n diameter bound for distance-separated sets is a known corollary noted on erdosproblems.com/100.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/07-guth-katz-distinct-distances}
}