Every odd number greater than 1 is the sum of at most five primes
OpenTaoFivePrimes.five_primesEvery odd natural number can be written as for some and primes , not necessarily distinct.
This is the main theorem of Tao's 2012 paper. It improves on Ramar'e's result that every even number is a sum of at most six primes, and lowers Shnirelman's constant from to . Kaniecki had obtained the same conclusion under the Riemann hypothesis; Tao's proof is unconditional, though it quotes two large numerical verifications.
The primes are collected as a multiset, so repetition is allowed () and order is irrelevant. Note that at most five is essential and cannot be strengthened to exactly five: the least sum of five primes is , so , and are not sums of exactly five primes.
import Mathlib
namespace TaoFivePrimes
theorem five_primes (n : ℕ) (hodd : Odd n) (hn : 1 < n) :
∃ s : Multiset ℕ, s.card ≤ 5 ∧ (∀ p ∈ s, Nat.Prime p) ∧ s.sum = n := by
sorry
end TaoFivePrimesRead-back
What the Lean code literally says, in plain math · claude-opus-5
For every natural number , the statement asserts the following implication.
Hypotheses. is a natural number (, so ) satisfying two conditions:
- is odd, i.e. there exists with ;
- (strictly greater than ).
Together these force and odd, so the hypotheses are jointly satisfiable (e.g. ) and the statement is not vacuous.
Conclusion. There exists a finite multiset of natural numbers — an unordered finite collection in which the same number may occur several times, each occurrence counted separately — such that all three of the following hold simultaneously:
Here is the number of elements of counted with multiplicity, and the bound is non-strict (, not and not ), so multisets of size or are all permitted by that clause; the empty multiset, whose sum is , is excluded only because . The primality condition quantifies over every element of : each element satisfies primality in the natural numbers ( and its only divisors are and ). The sum is the sum of all elements of with multiplicity, computed in , and is required to be exactly .
What is not required. The elements of need not be distinct — a prime may be repeated up to five times. The primes are not required to be odd; may occur as an element. No lower bound is placed on , no minimality of the number of summands is claimed, and the multiset is asserted only to exist, not to be unique (, not ). Nothing relates to the witness from the oddness hypothesis, and no effective or constructive procedure for producing is asserted.
Confirmed by the mission captain (proposal self-audit).