Mathematics / Formalization Note / Number Theory
Erdős Problem 1081 in Lean 4: Odoni's Theorem on Sums of Two Squarefull Numbers
A single 4,678-line Lean 4 file (PR #51326) proving Erdos1081.erdos_1081 directly, accepted by the Left to Solve Lean checker; Left to Solve credits the root solution to aliuyar1234. No sorry, no added axioms, no native_decide; the development notes record an axiom check printing only [propext, Classical.choice, Quot.sound] (no build log was saved). The file constructs the ring class groups of conductor q in Q(√−q), genus theory, lattice-point counts in each class and the nonvanishing at s = 1 of the class-group L-series that the argument needs.
- Author
- Ali Uyar
- Scope
- Direct proof
- Status
- Merged on Left to Solve
- Original theorem
- Negative answer to Erdős Problem 1081 (Erdős 1976): there is no c > 0 with A(x) ~ c x/√(log x) for the number A(x) of n ≤ x that are sums of two squarefull numbers. Proved by R. W. K. Odoni, Acta Arith. 39 (1981), 145–162.
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
A 4,678-line Lean 4 file proves the negative answer to Erdős Problem 1081: the number A(x) of integers n ≤ x that are sums of two squarefull (powerful) numbers is not asymptotic to c x/√(log x) for any c > 0. Erdős asked for such an asymptotic by analogy with Landau's theorem on sums of two squares; Odoni proved in 1981 that none exists, and Blomer and Granville later showed A(x) = (log log x)^O(1) x/(log x)^α with α = 1 − 2^(−1/3) ≈ 0.206. The file proves the formal-conjectures statement directly and was accepted by the Left to Solve Lean checker as PR #51326. Its route uses the forms x² + q³y² for primes q ≡ 5 (mod 8): ring class groups of conductor q in Q(√−q), genus theory and a choice of conjugate prime ideals, lattice-point counts for ideals in each class, continuation and nonvanishing at s = 1 of the class-group L-series, and a Dirichlet-series lower bound that contradicts any constant c > 0. This route has not been compared with Odoni's original argument.
Context
Mathlib has Dirichlet L-functions and primes in arithmetic progressions but no L-series for ring class groups of non-maximal orders. The file develops ring class groups, genus theory, lattice counting and the needed nonvanishing at s = 1 itself, and with them gives a machine-checked proof of the answer to an Erdős problem.
Root problems on Left to Solve
- LTS Erdos1081.erdos_1081 closed; Left to Solve credits the solution to aliuyar1234
Credits
Theorem due to R. W. K. Odoni (1981); problem posed by Erdős (1976). The Lean proof was produced with AI coding agents operated by the author (PR body: agent t3-code, model gpt-6.2-astra). The file header records no adapted third-party code and the PR body lists no other contributors; the proof builds on Mathlib and the formal-conjectures statement. A separate Left to Solve reduction by JaviSoto (PR #13642; step H2 proved by ahmeterdempmk, PR #16514; step H1 open) is not used.
Pull request ledger (1)
- #51326 Erdos1081.erdos_1081 merged
Cite
@misc{uyar2026_erdos_1081_two_squares_lean4,
author = {Uyar, Ali},
title = {Erdős Problem 1081 in Lean 4: Odoni's Theorem on Sums of Two Squarefull Numbers},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765162},
url = {https://doi.org/10.5281/zenodo.24765162},
note = {Lean 4 formalization technical note (Negative answer to Erdős Problem 1081 (Erdős 1976): there is no c > 0 with A(x) ~ c x/√(log x) for the number A(x) of n ≤ x that are sums of two squarefull numbers. Proved by R. W. K. Odoni, Acta Arith. 39 (1981), 145–162.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/24-erdos-1081-two-squares}
}