Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Numerical verification of the even Goldbach conjecture up to 4 * 10^14

Open
TaoFivePrimes.even_goldbach_verified

by Jack McCarthy · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

goldbachnumber-theorynumerical-verification

With N0:=4×1014N_0 := 4 \times 10^{14}N0​:=4×1014, every even number nnn with 4≤n≤N04 \le n \le N_04≤n≤N0​ is a sum of two primes.

This is Theorem 1.6 of Tao's paper, quoted from Richstein's 2001 verification. Tao uses it to reduce the five-prime problem to representing xxx as three primes plus a number below N0N_0N0​.

The statement is finite and decidable, but it encodes a distributed computation over 2×10142 \times 10^{14}2×1014 cases; it is included so that the mission's dependency graph is truthful, not because a direct proof is within reach of current tooling. Richstein's own verification, and the later one of Oliveira e Silva reaching 2.6×10182.6 \times 10^{18}2.6×1018, were run outside any proof assistant.

Preamble
import Mathlib
Formal statement
namespace TaoFivePrimes

theorem even_goldbach_verified (n : ℕ) (h4 : 4 ≤ n) (hN : n ≤ 4 * 10 ^ 14) (he : Even n) :
    ∃ p q : ℕ, p.Prime ∧ q.Prime ∧ p + q = n := by
  sorry

end TaoFivePrimes
Source
Terence Tao, https://arxiv.org/abs/1201.6656, Theorem 1.6 (p. 7); originally J. Richstein, Verifying the Goldbach conjecture up to 4*10^14, Math. Comp. 70 (2001), 1745-1749
Read-back

What the Lean code literally says, in plain math · claude-opus-5

For every natural number nnn, if

4≤n,n≤4⋅1014=400,000,000,000,000,n is even,4 \le n, \qquad n \le 4 \cdot 10^{14} = 400{,}000{,}000{,}000{,}000, \qquad n \text{ is even},4≤n,n≤4⋅1014=400,000,000,000,000,n is even,

then there exist natural numbers ppp and qqq such that ppp is prime, qqq is prime, and

p+q=n.p + q = n.p+q=n.

All quantities are natural numbers: nnn, ppp, and qqq range over N\mathbb{N}N, the bound 4⋅10144 \cdot 10^{14}4⋅1014 is a natural-number arithmetic expression evaluated exactly, and p+qp + qp+q is ordinary addition in N\mathbb{N}N (no subtraction or division occurs, so no truncation or junk-value behaviour is involved). "Even" is the standard notion "n=r+rn = r + rn=r+r for some natural number rrr", and "prime" is the standard primality predicate on N\mathbb{N}N, under which 000 and 111 are not prime and the smallest prime is 222.

Both bounds are inclusive: the hypotheses admit n=4n = 4n=4 and n=4⋅1014n = 4 \cdot 10^{14}n=4⋅1014 themselves, and exclude every even nnn strictly below 444 (namely n=0n = 0n=0 and n=2n = 2n=2) and every nnn strictly above 4⋅10144 \cdot 10^{14}4⋅1014. The three hypotheses are simultaneously satisfiable (for instance by n=4n = 4n=4), so the statement is not vacuous; nothing beyond these three conditions is assumed about nnn.

The conclusion asserts bare existence of a pair of primes summing to nnn. It does not require ppp and qqq to be distinct (so p=qp = qp=q is permitted, e.g. 2+2=42 + 2 = 42+2=4), does not order them (p≤qp \le qp≤q is not imposed), does not claim uniqueness of the pair, does not assert that the number of such pairs is positive in any counted sense, and provides no method, algorithm, or bound for producing ppp and qqq. It is an existence claim about each individual nnn in the stated range, not a statement about the range as a whole beyond that.

Human review
  • Endorsed by marwahaha · Sep 7, 2026

  • Endorsed by Jack McCarthy · Sep 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me