Mathematics / Formalization Note / Number Theory
A Lean 4 Proof of Erdős Problem 143(i): Well-Separated Real Sets Have Lower Density Zero
Machine-checks the Koukoulopoulos–Lamzouri–Lichtman argument, specialised to the lower-density statement of Erdős 143(i): Behrend grid-avoidance layering (the Behrend estimate is adapted from TheWaler, open-math-agents PR #6319), tent-function overlaps of rough multiples with Euler sieve bounds, and the cubic rational GCD-graph estimate via exact p-adic valuation pruning. The Lean proof was produced with AI coding agents operated by the author (t3-code, model gpt-6.2-astra).
- Author
- Ali Uyar
- Scope
- Direct proof
- Status
- Merged on Left to Solve
- Original theorem
- Koukoulopoulos, Lamzouri, Lichtman (2025, arXiv:2502.09539, Theorem 1): if a discrete set A ⊂ (0, ∞) has positive upper logarithmic density, then for every ε > 0 there are distinct α, β ∈ A and n ≥ 1 with |nα − β| < ε. With ε = 1 this gives Σ_{x∈A, x<n} 1/x = o(log n) for every A ⊂ (1, ∞) with |kx − y| ≥ 1 for all distinct x, y ∈ A and integers k ≥ 1; by partial summation, liminf |A ∩ [1, x]|/x = 0, which is the statement formalized here.
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
A machine-checked Lean 4 proof of Erdős Problem 143(i) as stated in formal-conjectures: every well-separated set A ⊂ (1, ∞) (countably infinite, with |kx − y| ≥ 1 for distinct x, y ∈ A and integers k ≥ 1) satisfies liminf |A ∩ [1, x]|/x = 0. The 9,989-line file proves Erdos143.erdos_143.parts.i directly (PR #44232) by contradiction from an eventual positive lower density, following the 2025 method of Koukoulopoulos, Lamzouri, and Lichtman: Behrend grid avoidance, Möbius-weighted Euler sieves, and exact rational GCD-valuation graphs, concluding via OMA.solution_of_rationalThirdWeight and OMA.KLL.rationalThirdWeightEstimate. The statement is a corollary of their theorem, whose stronger bound Σ_{x∈A, x<n} 1/x = o(log n) is not formalized. The Behrend estimate is adapted from TheWaler (PR #6319), and three floor-counting lemmas come from Need17Bread's reduction (PR #5654).
Context
Erdős Problem 143 extends Behrend's 1935 theorem on primitive integer sets to real numbers, where divisibility becomes approximate rational alignment. This proof machine-checks the Koukoulopoulos–Lamzouri–Lichtman machinery (multiplicative number theory, sieves and weighted GCD-graph estimates) for the lower-density statement.
Root problems on Left to Solve
- LTS Erdos143.erdos_143.parts.i closed; Left to Solve credits the solution to aliuyar1234
Credits
Mathematics: D. Koukoulopoulos, Y. Lamzouri, J. D. Lichtman (arXiv:2502.09539) and F. Behrend (1935). Adapted Lean code, as recorded in the file: 'The following Behrend estimate is from TheWaler, open-math-agents PR #6319.' (proof of step R1.H1, lines 19–404) and 'This and the following two floor-counting lemmas are from the R1 reduction by Need17Bread.' (PR #5654). The 9,989-line total includes this adapted code. Lean proof produced with AI coding agents operated by the author (t3-code, model gpt-6.2-astra); the PR body names no other contributors.
Pull request ledger (1)
- #44232 Erdos143.erdos_143.parts.i merged
Cite
@misc{uyar2026_erdos_143_dilated_sets_lean4,
author = {Uyar, Ali},
title = {A Lean 4 Proof of Erdős Problem 143(i): Well-Separated Real Sets Have Lower Density Zero},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765137},
url = {https://doi.org/10.5281/zenodo.24765137},
note = {Lean 4 formalization technical note (Koukoulopoulos, Lamzouri, Lichtman (2025, arXiv:2502.09539, Theorem 1): if a discrete set A ⊂ (0, ∞) has positive upper logarithmic density, then for every ε > 0 there are distinct α, β ∈ A and n ≥ 1 with |nα − β| < ε. With ε = 1 this gives Σ_{x∈A, x<n} 1/x = o(log n) for every A ⊂ (1, ∞) with |kx − y| ≥ 1 for all distinct x, y ∈ A and integers k ≥ 1; by partial summation, liminf |A ∩ [1, x]|/x = 0, which is the statement formalized here.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/13-erdos-143-dilated-sets}
}