A Lean 4 Formalization of the 1+2 Problem under Dirichlet GRH for N ≥ 4 × 10¹⁸
We formalize in Lean 4 (v4.36.0) with Mathlib a conditional form of Chen's theorem. Assuming the Generalized Riemann Hypothesis (GRH) for Dirichlet $L$-functions, every even integer $N \ge 4\times10^{18}$ can be written as $N = p + m$ with $p$ prime and $\Omega(m) \le 2$ (Theorem 1.1). The numerical verification of the Goldbach conjecture below $4\times10^{18}$ by Oliveira e Silva, Herzog and Pardi enters as the explicit hypothesis SmallEvenPremise; with it, the same statement holds for every even $N \ge 4$ (Corollary 1.2). The GRH hypothesis and the target statements are checked against Challenge.lean by Iff.rfl. The range $N \ge 4\times10^{18}$ is treated in three parts. On $[4\times10^{18}, 10^{1600}]$ we use a switching sieve on $1{,}885$ cells. On $[10^{1600}, 10^{25000}]$ a plain linear sieve suffices, on $551$ coarser cells. Above $10^{25000}$ an asymptotic argument combines a smoothed explicit formula, the Bordignon–Johnston–Starichkova linear sieve and a Selberg $\Lambda^2$ bound with a bilinear dispersion estimate for semiprimes. The explicit prime-number estimates are proved from GRH inside Lean, among them $|\psi(x)-x| \le \frac{199}{5000}\sqrt{x}\log^2 x$ for $x \ge e^{19}$. The prime tables, which cover all $9{,}950{,}345$ odd primes up to $178{,}482{,}300$, are certified by the kernel. Every numerical certificate is checked by the Lean kernel, without floating-point arithmetic, without native_decide and without Lean dependencies beyond Mathlib. The main results depend only on the axioms propext, Classical.choice and Quot.sound. MSC 2020: Primary 11P32; Secondary 11N36, 68V20. Keywords: Chen's theorem, Goldbach problem, $1+2$ representation, Generalized Riemann Hypothesis, Lean 4, Mathlib, formal verification, linear sieve, Selberg sieve, explicit formulas.
Authors
- Xidan Song (ORCID: https://orcid.org/0000-0003-2612-6296)
- Zhengwang Luo
- Contributors from Million Youth's Goldbach Organization
Institutions
- Sichuan University (CN)
- Wuhan University (CN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24667646
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint