Mathematics / Formalization Note / Number Theory
Three Cases of Hooley's Conditional Artin Density Theorem in Lean 4
Six leaf proofs built from two shared code bases: an R1.H1 engine (Kummer degrees, a complete-splitting density theorem via Dedekind zeta continuation and Wiener-Ikehara, inclusion-exclusion and entanglement sieving) and an R1.H2 engine (Hooley's three-range tail estimate from Dedekind zeta bounds under HooleyHypothesis, a Selberg-sieve Brun-Titchmarsh bound and a large-index divisor count). Much of the code is adapted from PrimeNumberTheoremAnd, AINTLIB, Mathlib, AxiomMath/DedekindZetaZeroFree, LeanPool and earlier Open Math Agents proofs (see credits).
- Author
- Ali Uyar
- Scope
- Modular suite
- Status
- Merged on Left to Solve
- Original theorem
- Artin's conjecture on primitive roots (Emil Artin, 1927), proved by Christopher Hooley (J. reine angew. Math. 225, 1967) assuming the Riemann Hypothesis for the Dedekind zeta functions of the Kummer fields Q(zeta_k, a^{1/k}), k squarefree. The correction factors in the Lean statements follow Lenstra, Moree and Stevenhagen (Math. Proc. Cambridge Philos. Soc. 157, 2014). Unconditionally the conjecture is open.
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
Hooley (1967) proved Artin's primitive root conjecture, with the corrected density, under the Riemann Hypothesis for the Dedekind zeta functions of the Kummer fields Q(zeta_k, a^{1/k}), k squarefree. The Formal Conjectures file ArtinPrimitiveRootsConjecture.lean states four conditional versions. This work proves in Lean 4 both leaves (R1.H1 and R1.H2) of the Left to Solve reductions of three of them, which closes those three roots: density equal to Artin's constant for a not a perfect power with squarefree part a_0 not 1 mod 4, and the densities with power and entanglement corrections for a = b^m, b in N not a perfect power, m > 1 odd, with b_sf not 1 or 1 mod 4. The reductions themselves are by pyaf and steveDOTdigital. Not covered: conditional parts.i (closed by parker-spec), non-powers with a_0 = 1 mod 4, even powers and negative perfect powers. The six Lean files total 63,163 lines but are near-copies of two code bases (about 21,300 distinct lines), with substantial adapted third-party code. All six were accepted by the Left to Solve Lean checker, which accepts only proofs whose axioms are within propext, Classical.choice and Quot.sound.
Context
Hooley's proof combines algebraic number theory (Kummer field degrees and quadratic-cyclotomic entanglement), analytic number theory (Dedekind zeta functions and a Tauberian theorem) and sieve methods (Brun-Titchmarsh via Selberg's sieve). These files machine-check both halves of that argument, the finite-level density and the conditional tail bound, for the non-power case with a_0 not 1 mod 4 and for both odd-power cases, without assuming a Chebotarev density theorem as an axiom.
Root problems on Left to Solve
- LTS ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.parts.ii closed; credited to @pyaf, with aliuyar1234 as contributor
- LTS ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one closed; credited to @pyaf, with aliuyar1234 as contributor
- LTS ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one closed; credited to @steveDOTdigital, with aliuyar1234 as contributor
Credits
Mathematics: Emil Artin (conjecture), Christopher Hooley (GRH-conditional proof), Lenstra-Moree-Stevenhagen (form of the correction factors). R1 reductions and LTS root solutions: pyaf (parts.ii, modeq_one) and steveDOTdigital (not_modeq_one); aliuyar1234 is recorded as contributor. Adapted Lean code, per the file headers: Wiener-Ikehara from Alex Kontorovich, Terence Tao and the PrimeNumberTheoremAnd contributors (Lean 4.33.1 adaptation credited to @marcusbuffett, based on the Erdos 981 port); prime-ideal Euler product, lattice counting and logarithmic derivative from Chris Birkbeck's AINTLIB; Mathlib proofs by Xavier Roblot, Michael Stoll and David Loeffler; consecutive-pattern subtraction from @Ciphore; Kummer tower and odd-prime descent from @senamakel (parts.i.R1.H3, R1.H4); finite sieve from @amp2600 (parts.ii.R1.H1.R1.H2), applied following @marcusbuffett's parts.ii.R1.H1.R1 reduction of @pyaf's parts.ii.R1, which credits Steve Digital (#4044); Dedekind zeta machinery from AxiomMath/DedekindZetaZeroFree (The FLT Project, Imperial College London) and LeanPool/lean-pool; disk estimates from ChebyshevBias, based on @nil-commits, Arithmetica4, via @marcusbuffett (OMA PR 5370); Selberg sieve and Brun-Titchmarsh from @senamakel (Artin parts.i.R1.H2), PrimeNumberTheoremAnd and artin-grh; dyadic prime estimates from the OMA Artin parts.i.R1 development. The splitting-density proof reuses the author's own Erdos 980 R1.H1 proof (#45676). Proofs produced with AI coding agents operated by the author (PR bodies: agent t3-code, model gpt-6.2-astra).
Pull request ledger (6)
- #50510 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.parts.ii.R1.H1 merged
- #53444 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.parts.ii.R1.H2 merged
- #68715 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one.R1.H2 merged
- #69106 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one.R1.H2 merged
- #69717 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one.R1.H1 merged
- #69994 ArtinPrimitiveRootsConjecture.conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one.R1.H1 merged
Cite
@misc{uyar2026_artin_primitive_roots_lean4,
author = {Uyar, Ali},
title = {Three Cases of Hooley's Conditional Artin Density Theorem in Lean 4},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765107},
url = {https://doi.org/10.5281/zenodo.24765107},
note = {Lean 4 formalization technical note (Artin's conjecture on primitive roots (Emil Artin, 1927), proved by Christopher Hooley (J. reine angew. Math. 225, 1967) assuming the Riemann Hypothesis for the Dedekind zeta functions of the Kummer fields Q(zeta_k, a^{1/k}), k squarefree. The correction factors in the Lean statements follow Lenstra, Moree and Stevenhagen (Math. Proc. Cambridge Philos. Soc. 157, 2014). Unconditionally the conjecture is open.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/02-artin-primitive-roots}
}