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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Lean 4 Formalization of the 1+2 Problem under Dirichlet GRH for N ≥ 4 × 10¹⁸

Xidan Song, Zhengwang Luo, Contributors from Million Youth's Goldbach Organization
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

A Lean 4 Formalization of the 1+2 Problem under Dirichlet GRH for N ≥ 4 × 10¹⁸

Xidan Song, Zhengwang Luo, Contributors from Million Youth's Goldbach Organization
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Sichuan University (CN), Wuhan University (CN)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
A Lean 4 Formalization of the 1+2 Problem under Dirichlet GRH for N ≥ 4 × 10¹⁸ — Xidan Song, Zhengwang Luo, et al. · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS