Mathematics / Formalization Note / Number Theory
Erdős Problem 413(ii) in Lean 4: Infinitely Many n with ω(n−k) ≤ C log k (after Lau)
Proof of the analytic step H1 (PR #30235, accepted by the Left to Solve Lean checker) in AaronRai123's reduction R1 (PR #16174) of Erdős 413(ii). amp2600 proved the second step H2, an elementary logarithm bound (PR #17606). With both steps merged, Left to Solve marks the root Erdos413.erdos_413.parts.ii as solved and credits the solution to AaronRai123, with aliuyar1234 and amp2600 as contributors. The file adapts CRT counting from an earlier Erdős 16 proof, block expansion and Bonferroni bounds from @LordMike's Erdős 675 proof, and Abel-summation/Chebyshev lemmas from an Erdős 442 proof credited to @dk8827.
- Author
- Ali Uyar
- Scope
- Modular suite
- Status
- Merged on Left to Solve
- Original theorem
- Lau (arXiv:2604.15042, Theorem 1.3), refining Tao and Teräväinen (arXiv:2512.01739): there is C > 0 such that for infinitely many n, ω(n−k) ≤ Ω(n−k) ≤ C log k for every 1 < k < n. As recorded on erdosproblems.com, this answers Part (ii) of Erdős Problem 413 (infinitely many ε-barriers for ω) positively. Part (i), whether ω has infinitely many barriers, remains open.
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
A 2,279-line Lean 4 file proves that there are C > 0 and infinitely many n with ω(n−k) ≤ C log k for every 2 ≤ k < n: the ω part of Lau's 2026 theorem, which answers Part (ii) of Erdős Problem 413. An integer n is an ε-barrier for ω if m + ε·ω(m) ≤ n for all m < n, and Part (ii) asks whether infinitely many ε-barriers exist for some ε > 0. Lau, refining the probabilistic sieve argument of Tao and Teräväinen, proved ω(n−k) ≤ Ω(n−k) ≤ C log k for all 1 < k < n, for infinitely many n. Instead of Lau's Selberg/GPY-type weights, the Lean proof uses a block Brun sieve on a primorial progression and falling-factorial moments of the number of large prime factors. On Left to Solve the bound is step H1 of AaronRai123's reduction; the proof was accepted by the Left to Solve Lean checker as PR #30235, and together with amp2600's elementary step H2 it closes the formal statement of Erdős 413(ii).
Context
A machine-checked proof of the analytic core of a 2026 answer to an Erdős problem, with a sieve architecture chosen for formalization. Together with two contributions by other participants, it closes the formal statement of Erdős 413(ii) on Left to Solve.
Root problems on Left to Solve
- LTS Erdos413.erdos_413.parts.ii closed; credited to @AaronRai123, with aliuyar1234 as contributor
Credits
Theorem: C. F. Lau (arXiv:2604.15042), building on T. Tao and J. Teräväinen (arXiv:2512.01739). Reduction R1: AaronRai123 (PR #16174); step H2: amp2600 (PR #17606); Left to Solve credits the root to AaronRai123 with aliuyar1234 and amp2600 as contributors. Adapted Lean code (per file headers): CRT counting from the repository's Erdős 16 Romanoff H2 proof; block expansion and Bonferroni bounds from @LordMike's Erdős 675 Brun H1 proof; Abel summation and Chebyshev lemmas from the local Erdős 442 H1 proof, credited there to @dk8827. Proof produced with AI coding agents operated by the author (t3-code, model gpt-6.2-astra).
Pull request ledger (1)
- #30235 Erdos413.erdos_413.parts.ii.R1.H1 merged
Cite
@misc{uyar2026_erdos_413_barriers_lean4,
author = {Uyar, Ali},
title = {Erdős Problem 413(ii) in Lean 4: Infinitely Many n with ω(n−k) ≤ C log k (after Lau)},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765171},
url = {https://doi.org/10.5281/zenodo.24765171},
note = {Lean 4 formalization technical note (Lau (arXiv:2604.15042, Theorem 1.3), refining Tao and Teräväinen (arXiv:2512.01739): there is C > 0 such that for infinitely many n, ω(n−k) ≤ Ω(n−k) ≤ C log k for every 1 < k < n. As recorded on erdosproblems.com, this answers Part (ii) of Erdős Problem 413 (infinitely many ε-barriers for ω) positively. Part (i), whether ω has infinitely many barriers, remains open.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/30-erdos-413-barriers}
}