Mathematics / Formalization Note / Number Theory
Irrationality of Mills' Constant in Lean 4: Both Leaves of the Left to Solve Reduction
In PR #29763 (R1.H1, 13,245 lines), wrote namespace MillsApprox apart from the adapted nested-interval lemma (about 190 lines): the quantitative cubic step (shortStep), minimal-tail splicing (splice) and the exponential approximation |A^(3^k) - z| <= exp(-gamma * 3^k) (approximation), on top of @ptc-prover-bot's adapted prime-gap engine (lines 1-12,990). In PR #29891 (R1.H2, 6,578 lines), ported the existing Roth-Ridout formalization (about 6,200 lines identical to @marcusbuffett's Erdős 240 proof, itself adapted from Meta's atlas-lean RothAuxiliary) and Stephan's MahlerPowers derivation to the pinned toolchain, and added the final step to the eventual form required by R1.H2.
- Author
- Ali Uyar
- Scope
- Modular suite
- Status
- Merged on Left to Solve
- Original theorem
- Mills' constant is irrational (Kota Saito, 2024, Mathematika 71 (2025) e70027, arXiv:2404.19461), building on W. H. Mills (1947), A. E. Ingham (1937), K. Mahler (1957), K. F. Roth (1955) and D. Ridout (1957).
- Statement source
- Left to Solve (FormalConjectures / OMA statements)
Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.
Summary
In 1947 W. H. Mills proved that there is a real A > 1 with floor(A^(3^n)) prime for every n >= 1; in 2024 Kota Saito proved that the least such constant (Mills' constant) is irrational, combining a short-interval prime estimate with Mahler's 1957 theorem on powers of rationals. On Left to Solve, the reduction Mills.irrational.R1 by justusklocke-cloud derives Irrational A from two hypotheses, and the author's PRs #29763 and #29891 prove both: H1, that A^(3^k) is within exp(-gamma * 3^k) of an integer for the least Mills constant, by splicing a shorter prime tail into the Mills sequence and invoking minimality; and H2, Mahler's theorem in eventual form for non-integer rationals q > 1, via Ridout's p-adic Roth theorem. The two files total 19,823 lines; most of it is adapted from @ptc-prover-bot, @caa1982, @marcusbuffett, Meta's atlas-lean and Ralf Stephan, and the new code is the splicing and approximation argument in H1 and the port and final step in H2.
Context
Saito's proof joins an analytic input (short gaps between primes) with a Diophantine one (Roth-Ridout and Mahler's theorem). These two leaves supply both inputs in Lean 4, and with justusklocke-cloud's reduction they give a complete machine-checked proof that Mills' constant is irrational.
Root problems on Left to Solve
- LTS Mills.irrational closed; credited to @justusklocke-cloud, with aliuyar1234 as contributor
Credits
Mathematics: K. Saito (2024), W. H. Mills, A. E. Ingham, K. Mahler, K. F. Roth, D. Ridout. Reduction Mills.irrational.R1: justusklocke-cloud (Left to Solve credits the root solution to justusklocke-cloud, contributor aliuyar1234). Adapted Lean code, as stated in the file headers: R1.H1 'Adapted from proofs/Mills.exists-prime.R1.H1.lean by @ptc-prover-bot (Ingham 1937).' and 'Nested intervals, adapted from proofs/Mills.exists-prime.R1.H2.lean by @caa1982.'; R1.H2 'Adapted from rwst/Subspace-Theorems (commit 7af6b45d...), Copyright (c) 2026 Ralf Stephan, Apache-2.0 license. The Roth-Ridout theorem below follows the open-math-agents Erdős 240 proof by @marcusbuffett.' and Meta Platforms' facebookresearch/atlas-lean RothAuxiliary.lean (Apache-2.0). 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 (2)
Cite
@misc{uyar2026_mills_constant_irrationality_lean4,
author = {Uyar, Ali},
title = {Irrationality of Mills' Constant in Lean 4: Both Leaves of the Left to Solve Reduction},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765127},
url = {https://doi.org/10.5281/zenodo.24765127},
note = {Lean 4 formalization technical note (Mills' constant is irrational (Kota Saito, 2024, Mathematika 71 (2025) e70027, arXiv:2404.19461), building on W. H. Mills (1947), A. E. Ingham (1937), K. Mahler (1957), K. F. Roth (1955) and D. Ridout (1957).). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/05-mills-constant-irrationality}
}