Skip to content
 
 

Repository files navigation

A 0.345 exponent for the binary Goldbach exceptional set

Let $E(X)$ count the even integers $n$ with $4 \le n \le X$ that cannot be written as a sum of two primes. The primes may be equal. The formalization first proves a bound under the generalized Riemann hypothesis for Dirichlet $L$-functions (Dirichlet GRH). Applying the GRH theorem from the pinned grh-lean development gives the following unconditional bound in Lean for every $\varepsilon>0$ and every real $X\ge 2$. The implied constant may depend on $\varepsilon$ and is uniform in $X$.

$$ E(X) \ll_\varepsilon X^{69/200+\varepsilon}, \qquad 69/200=0.345. $$

Unconditional theorem in Lean · Proof under Dirichlet GRH

The simplified proof of $E(X)\ll_\varepsilon X^{2/5+\varepsilon}$ is an easier starting point. Its choice of parameters makes the interval for a central prime-power coordinate empty, so the shared counting argument applies with a short proof that the central terms vanish. Simplified $2/5$ proof · Exceptional-set theorem · GRH instance

Lean formalization

The GRH input, DirichletLZerosOnLine, says that for every Dirichlet character of every positive modulus, every zero of its $L$-function in the open critical strip has real part $1/2$. The readable edition of Levent Alpöge’s Lean development with Claude proves this statement as LFunction_eq_zero_re. Upstream GRH theorem

For $69/200$, Lean checks the finite region classification, the direct and compensating estimates for the same smooth weights, and the passage from dyadic intervals to the two cumulative counts. The simpler $2/5$ proof uses the same counting reduction with a threshold of $4/25$ of the main term. For each exponent, the ordinary exceptional count and the low-representation count have both a conditional theorem and an instance using the upstream GRH theorem. Lean reports exactly propext, Classical.choice, and Quot.sound for each of these eight declarations. Regional estimates · Shared counting reduction · Two-fifths proof · Two-fifths GRH instances

Build

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.FromGRH

The 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
LEAN

A stronger representation bound

Let $G(n)=\sum_{p+q=n}(\log p)(\log q)$, summed over all ordered prime pairs, including $p=q$. For even $n$, the Hardy–Littlewood main term is $n\mathfrak{S}_2(n)$, where both products below run over primes.

$$ \mathfrak{S}_2(n) = 2\prod_{\ell&gt;2}\left(1-\frac{1}{(\ell-1)^2}\right) \prod_{\ell&gt;2,,\ell\mid n}\frac{\ell-1}{\ell-2}. $$

For $t&gt;0$, let $E_t(X)$ count the even integers $4\le n\le X$ whose weighted count $G(n)$ is strictly below $t n\mathfrak{S}_2(n)$. Each prime pair contributes a positive weight, so $G(n)=0$ exactly when $n$ has no Goldbach representation. Since the threshold is positive, $E_t(X)$ includes every such exception and can also include even integers that do have a representation. At 49% of the main term, we obtain

$$ E(X) \le E_{49/100}(X) \ll_\varepsilon X^{69/200+\varepsilon}. $$

Count inclusion in Lean · Weighted bound in Lean

The simpler proof gives $E(X)\le E_{4/25}(X)\ll_\varepsilon X^{2/5+\varepsilon}$. Two-fifths counting theorems

The 0.343 paper result

In separate work under Dirichlet GRH, we have proved on paper that $E(X)\le E_{1/100}(X)\ll_\varepsilon X^{343/1000+\varepsilon}$, with $343/1000=0.343$. That proof uses a more involved sieve argument. For the Lean formalization we chose the simpler $0.345$ exponent, which also gives the higher representation threshold $49/100$.

Selected historical bounds

  • 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&gt;0$. Montgomery and Vaughan (1975) obtained the first unconditional power saving, $E(X)\ll X^{1-\delta}$ for some fixed $\delta&gt;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

Tools and sources of inspiration

  • 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

Ongoing work

Our ongoing goal is to prove that every sufficiently large even integer is a sum of two primes, equivalently that $E(X)$ remains bounded. We will share further progress publicly.

Acknowledgments

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.

License

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

Contributors

Languages