Let grh-lean development gives the following unconditional bound in Lean for every
Unconditional theorem in Lean · Proof under Dirichlet GRH
The simplified proof of
The GRH input, DirichletLZerosOnLine, says that for every Dirichlet character of every positive modulus, every zero of its LFunction_eq_zero_re. Upstream GRH theorem
For propext, Classical.choice, and Quot.sound for each of these eight declarations. Regional estimates · Shared counting reduction · Two-fifths proof · Two-fifths GRH instances
Install Git and the Lean toolchain manager Elan. Run the commands from the directory containing lean-toolchain and lakefile.toml. Elan selects Lean 4.35.0. Lake reads the locked revisions of Mathlib (56a005855ea1) and the readable edition of grh-lean (72fead102f66). A fresh checkout uses the network to fetch the toolchain, dependencies, and Mathlib cache. Elan installation · Toolchain · Lake configuration · Dependency lock
lake exe cache get
lake build LeanGoldbach +LeanGoldbach.FromGRHThe first command fetches Mathlib's compiled cache. The default target LeanGoldbach, also selected by plain lake build, checks the conditional theorems. The explicit +LeanGoldbach.FromGRH target checks both sets of GRH instances and builds the pinned upstream Main module if its compiled artifact is missing. The finite certificates are included as Lean sources and are checked during compilation. Library entry point · GRH entry point
The cache, build, and inspection commands were tested in the release directory. We also checked all 1,026 local Lean source files individually with a single Lean thread, including the archived module. The largest peak resident memory recorded for an individual file was 18.57 GB (18,571,198,464 bytes). The pinned GRH dependency used its original source and a separate parallel Lake build.
To inspect the main theorem and its proof axioms after building, run
lake env lean --stdin <<'LEAN'
import LeanGoldbach.FromGRH
#check LeanGoldbach.exceptionCount_bound_69_200_fromGRH
#print axioms LeanGoldbach.exceptionCount_bound_69_200_fromGRH
#print axioms LeanGoldbach.lowRepresentationCount_bound_69_200_fromGRH
LEANLet
For
Count inclusion in Lean · Weighted bound in Lean
The simpler proof gives
In separate work under Dirichlet GRH, we have proved on paper that
-
Under Dirichlet GRH. Hardy and Littlewood (1924) obtained
$E(X)\ll_\varepsilon X^{1/2+\varepsilon}$ . Goldston (1992) sharpened this to$E(X)\ll X^{1/2}(\log X)^3$ under the same hypothesis. Bhowmik and Halupczok, §2.2 -
Unconditionally. In 1937–38, Chudakov, van der Corput, and Estermann independently showed that
$E(X)\ll_A X(\log X)^{-A}$ for every fixed$A>0$ . Montgomery and Vaughan (1975) obtained the first unconditional power saving,$E(X)\ll X^{1-\delta}$ for some fixed$\delta>0$ . Pintz, §1 · Bhowmik and Halupczok, §2.2 -
Explicit unconditional exponents. Li (2000) obtained
$0.914$ and Lu (2010) obtained$0.879$ . Pintz’s 2018 preprint gives$0.72$ , and Genheng Zhao’s revised 2026 preprint gives$7/10$ . Pintz, Theorem 1 · Zhao, arXiv v2
- Circle method. We use a smoothed explicit formula and character orthogonality on Farey arcs. For the mean square of the sums over zeros, we use the real-frequency form of Gallagher’s lemma found in Levent Alpöge’s original Lean development with Claude. Original Lean lemma · Farey arc estimates
- Bilinear estimates. We count lattice points by rank to control simultaneous large values. This was inspired by the original GRH development’s packing bounds in the span of lattice differences and its use of lattice indices to compare volumes. Packing bound · Lattice index formula
- Signed comparison. We use a truncated logarithm under Dirichlet convolution and Buchstab’s rough-number density estimates for the Goldbach comparison. Bessel’s inequality converts the mean-square estimate into an exceptional-set bound. Signed comparison · Counting reduction
Our ongoing goal is to prove that every sufficiently large even integer is a sum of two primes, equivalently that
We thank the Mathlib contributors for the Lean libraries on which the formalization builds. We also thank the Tau Ceti contributors for the Ramanujan sums, Type I estimates, divisor bounds, and product inequalities adapted in this project. Mathlib · Tau Ceti
We thank Levent Alpöge for releasing his original Lean development with Claude, and the Lean community for making the readable and compact editions available. The original development’s real-frequency mean-square and lattice-packing arguments informed the corresponding steps of our proof. Original release · Original Lean source · Readable and compact editions
This release contains the Lean source. The AI-written prose proof is difficult to read, so we are keeping it private for now. Interested readers can request a copy by emailing math-research@alphasquaredlabs.ai.
The project is distributed under the Apache License 2.0. The four source files adapted from Tau Ceti retain their original authorship and license notices. Project license · Vendored sources and license