Mathematics / Formalization Note / Number Theory

Hall–Tenenbaum Theorems on Dyadic Divisor Occupancy (Erdős Problem 448) in Lean 4

Formalizes a Cauchy-Schwarz bound tau(n)^2 <= tau+(n) * energy(n) for dyadic divisor energy, doubly exponential scale decompositions with Rankin truncation, a powerful/squarefree reduction, and, for the distribution theorem, a smooth-part approximation criterion, rough-divisor collision bounds and circle equidistribution via Fourier coefficients and CRT averaging. The R1.H2 step follows from the upper bound via log(2/eps) <= (2/eps)^eta/eta. Adapted Apache-2.0 Open Math Agents code (credits as in the file headers): the powerful decomposition from the proof of R1.H2.R1.H3; density monotonicity, the coprime factor argument and periodic counting from code credited to @marcusbuffett; the Mertens estimates from @deepqntm's R1.H1 proof.

Author
Ali Uyar
DOI
10.5281/zenodo.24765141
Scope
Direct proof
Status
Merged on Left to Solve
Original theorem
Erdos and Tenenbaum (1981, Ann. Inst. Fourier 31): the upper density of {n : tau+(n) < eps tau(n)} is eps^(1-o(1)) as eps -> 0+, which answers Erdos Problem 448 negatively. Hall and Tenenbaum (1988, Divisors, Section 4.6): this upper density is O(eps log(2/eps)); Hall and Tenenbaum also proved that tau+(n)/tau(n) has a limiting distribution function F.
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/15-hall-tenenbaum-erdos-448

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

Summary

Lean 4 proofs of two theorems of Hall and Tenenbaum (1988) on dyadic divisor occupancy, and of the upper half of the Erdős–Tenenbaum asymptotic. Here τ+(n) counts the k with a divisor of n in [2^k, 2^(k+1)). Erdős Problem 448 asked whether τ+(n) < ε τ(n) for almost all n; Erdős and Tenenbaum (1981) disproved this, showing the upper density of such n is ε^(1−o(1)). Three merged Left to Solve PRs by the author prove: Hall and Tenenbaum's upper bound O(ε log(2/ε)) for that density (#66392, root); the existence of a limiting distribution function for τ+(n)/τ(n) (#70194, root); and the step erdos_tenenbaum.R1.H2, upper density ≤ C ε^(1−η) (#66951), whose merge completed the Erdős–Tenenbaum root. The files contain no sorry, admit, native_decide or axiom declarations. They total 8,573 lines, 6,228 of them distinct, since the #66951 file repeats the #66392 file except for its import and a 34-line final theorem.

Context

Hall and Tenenbaum's results on the concentration of divisors are standard in probabilistic number theory. The proofs build Lean 4 machinery for Mertens-type estimates, smooth/rough decompositions and equidistribution of log_2 d mod 1 that is reusable for related divisor problems.

Root problems on Left to Solve

  • LTS Erdos448.erdos_448.variants.erdos_tenenbaum closed; credited to @deepqntm, with aliuyar1234 as contributor
  • LTS Erdos448.erdos_448.variants.hall_tenenbaum_distribution closed; Left to Solve credits the solution to aliuyar1234
  • LTS Erdos448.erdos_448.variants.hall_tenenbaum_upper_bound closed; Left to Solve credits the solution to aliuyar1234

Credits

Mathematics: Hall and Tenenbaum (Divisors, 1988) and Erdos and Tenenbaum (1981). Left to Solve: deepqntm wrote the reduction R1 of the erdos_tenenbaum root and proved its lower-bound step R1.H1 (PR #17654); the root's solution is recorded under deepqntm with contributors aliuyar1234 and deepqntm. Adapted code, as stated in the file headers: 'The powerful decomposition is adapted from the Apache-2.0 open-math-agents proof Erdos448.erdos_448.variants.erdos_tenenbaum.R1.H2.R1.H3.lean' (Left to Solve lists amp2600 as its solver, PR #19993); 'The density monotonicity and the coprime factor argument are adapted from its Apache-2.0 reduction ... R1.H2.R1.lean (credited there to @marcusbuffett)'; 'The Mertens estimates in this file are from the staged Apache-2.0 proof ... R1.H1.lean (credit @deepqntm, with the estimates taken there from the Romanoff proof)'; in the distribution file, 'Periodic counting adapted from the Erdos470 reduction in open-math-agents, credited there to @marcusbuffett (Erdos697.density_exists).' Lean proofs produced with AI coding agents operated by the author (t3-code, model gpt-6.2-astra, per the PR bodies).

Pull request ledger (3)

  • #66392 Erdos448.erdos_448.variants.hall_tenenbaum_upper_bound merged
  • #66951 Erdos448.erdos_448.variants.erdos_tenenbaum.R1.H2 merged
  • #70194 Erdos448.erdos_448.variants.hall_tenenbaum_distribution merged

Cite

@misc{uyar2026_hall_tenenbaum_erdos_448_lean4,
  author    = {Uyar, Ali},
  title     = {Hall–Tenenbaum Theorems on Dyadic Divisor Occupancy (Erdős Problem 448) in Lean 4},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765141},
  url       = {https://doi.org/10.5281/zenodo.24765141},
  note      = {Lean 4 formalization technical note (Erdos and Tenenbaum (1981, Ann. Inst. Fourier 31): the upper density of {n : tau+(n) < eps tau(n)} is eps^(1-o(1)) as eps -> 0+, which answers Erdos Problem 448 negatively. Hall and Tenenbaum (1988, Divisors, Section 4.6): this upper density is O(eps log(2/eps)); Hall and Tenenbaum also proved that tau+(n)/tau(n) has a limiting distribution function F.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/15-hall-tenenbaum-erdos-448}
}