Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

A positive weighted count yields three odd primes (Tao, after equation 8.10)

Proved
TaoFivePrimes.three_primes_of_representationCount_pos

by Patrick · 1 vote · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

circle-methodgoldbachnumber-theorysieve-theory

Let x,Hx,Hx,H be natural numbers with x≥4000x\geq4000x≥4000, and let R(x,H)R(x,H)R(x,H) be Tao's weighted representation count from equation (8.10), with K=1000K=1000K=1000. If R(x,H)>0R(x,H)>0R(x,H)>0, then there are three odd primes p1,p2,p3p_1,p_2,p_3p1​,p2​,p3​ whose sum mmm satisfies

x≤m+H,m+2≤x,m=p1+p2+p3.x\leq m+H,\qquad m+2\leq x,\qquad m=p_1+p_2+p_3.x≤m+H,m+2≤x,m=p1​+p2​+p3​.

The primes may repeat. With H=4⋅1014H=4\cdot10^{14}H=4⋅1014, this is the witness-extraction step that turns the analytic positivity estimate into Theorem 8.2 of the five-primes paper.

Formalization Note The interval is written with addition to avoid truncated natural subtraction. The lower bound x≥4000x\geq4000x≥4000 ensures that both square-root sieves include the prime 2, including the sieve at the smaller scale x/1000x/1000x/1000.

Preamble
import Definitions.Def_TaoFivePrimes_RepresentationCount
open TaoFivePrimes
Formal statement
theorem TaoFivePrimes.three_primes_of_representationCount_pos (x H : ℕ)
    (hx : 4000 ≤ x) (hcount : 0 < representationCount x H) :
    ∃ m : ℕ, x ≤ m + H ∧ m + 2 ≤ x ∧
      ∃ p₁ p₂ p₃ : ℕ, p₁.Prime ∧ p₂.Prime ∧ p₃.Prime ∧
        Odd p₁ ∧ Odd p₂ ∧ Odd p₃ ∧ p₁ + p₂ + p₃ = m := by sorry
Source
Terence Tao, https://arxiv.org/abs/1201.6656, Section 8, implication immediately following equation (8.10), with K=10^3 as chosen after (8.11). Generalized to a gap budget H.

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