Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A prime in every short interval above 1.1 * 10^10 (Ramare-Saouter)

Open
TaoFivePrimes.prime_in_short_interval

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

number-theorynumerical-verificationprime-gaps

For every real x≥1.1×1010x \ge 1.1 \times 10^{10}x≥1.1×1010 there is a prime p≤xp \le xp≤x with x−p≤x/(2.8×107)x - p \le x/(2.8 \times 10^7)x−p≤x/(2.8×107); that is, the interval [x(1−1/(2.8×107)), x][x(1 - 1/(2.8\times10^7)),\, x][x(1−1/(2.8×107)),x] always contains a prime.

This is Theorem 8.1 of Tao's paper, quoted from Ramar'e and Saouter. Combined with the Goldbach verification (Theorem 1.6) it settles the five-prime claim for all odd numbers up to (2.8×107)3N0≥8.7×1036(2.8 \times 10^7)^3 N_0 \ge 8.7 \times 10^{36}(2.8×107)3N0​≥8.7×1036, which is what reduces the main theorem to the range handled by the circle method.

The Ramar'e-Saouter proof itself depends on the numerical verification of the Riemann hypothesis recorded in Theorem 1.5, so this milestone is not independent of it.

Preamble
import Mathlib
Formal statement
namespace TaoFivePrimes

theorem prime_in_short_interval (x : ℝ) (hx : 1.1 * 10 ^ 10 ≤ x) :
    ∃ p : ℕ, p.Prime ∧ (p : ℝ) ≤ x ∧ x - p ≤ x / (2.8 * 10 ^ 7) := by
  sorry

end TaoFivePrimes
Source
Terence Tao, https://arxiv.org/abs/1201.6656, Theorem 8.1 (p. 36); originally O. Ramare and Y. Saouter, Short effective intervals containing primes, J. Number Theory 98 (2003), 10-33, Theorem 3
Read-back

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

The statement fixes one explicit real variable xxx, subject to the single hypothesis

1.1⋅1010  ≤  x,1.1 \cdot 10^{10} \;\le\; x,1.1⋅1010≤x,

where the left-hand side is the real number 1.1×1010=11,000,000,0001.1 \times 10^{10} = 11{,}000{,}000{,}0001.1×1010=11,000,000,000 (a real numeric literal 1.11.11.1 multiplied by the real power 101010^{10}1010). There are no other hypotheses, no implicit arguments, and no typeclass assumptions. The hypothesis is satisfiable — every real x≥1.1×1010x \ge 1.1\times10^{10}x≥1.1×1010 meets it — so the claim is not vacuous, and note that xxx ranges over all such reals, not merely integers; xxx is bounded below but not above.

Under that hypothesis the claim is a plain existence assertion (existence only, not uniqueness): there exists a natural number ppp such that all three of the following hold simultaneously.

  • ppp is prime in the sense of N\mathbb{N}N (so in particular p≥2p \ge 2p≥2, ruling out p=0p = 0p=0 and p=1p = 1p=1).
  • Viewing ppp as a real number via the canonical cast N→R\mathbb{N} \to \mathbb{R}N→R, p≤xp \le xp≤x, a non-strict inequality, so p=xp = xp=x is permitted when xxx happens to be a prime integer.
  • The gap between xxx and ppp, computed as real subtraction (not truncated natural subtraction, so it may in principle be negative, though the previous item forces it to be ≥0\ge 0≥0), satisfies
x−p  ≤  x2.8⋅107,x - p \;\le\; \frac{x}{2.8 \cdot 10^{7}},x−p≤2.8⋅107x​,

again non-strict, where the denominator is the real number 2.8×107=28,000,0002.8 \times 10^{7} = 28{,}000{,}0002.8×107=28,000,000. This is ordinary real division by a nonzero constant, so no division-by-zero junk value arises.

Combining the last two items, the two inequalities together say exactly that ppp lies in the closed real interval

[ x−x2.8⋅107,  x ]  =  [ x(1−12.8⋅107),  x ],\left[\,x - \frac{x}{2.8\cdot 10^{7}},\; x\,\right] \;=\; \left[\,x\left(1 - \tfrac{1}{2.8\cdot 10^{7}}\right),\; x\,\right],[x−2.8⋅107x​,x]=[x(1−2.8⋅1071​),x],

an interval of length x/(2.8×107)x/(2.8\times 10^{7})x/(2.8×107), which under the hypothesis is at least 11,000,000,000/28,000,000≈392.8611{,}000{,}000{,}000 / 28{,}000{,}000 \approx 392.8611,000,000,000/28,000,000≈392.86 and grows proportionally with xxx. Nothing asserts that ppp is the largest prime not exceeding xxx, that ppp is unique, that there is more than one such prime, or anything about primes above xxx; the assertion is only that at least one prime falls in that interval below xxx. The bound is relative (a fixed fraction 1/(2.8×107)1/(2.8\times 10^7)1/(2.8×107) of xxx) rather than an absolute gap, and the statement is a single implication from the lower bound on xxx to that existence claim, with no converse direction claimed.

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