Every Odd Number Greater Than 1 is the Sum of at Most 159 Primes
Provedodd_sum_le_159_primesEvery odd natural number greater than is a sum of at most primes, with repetition allowed.
Precisely: for every with odd and there is a finite multiset of natural numbers such that
Here counts elements with multiplicity, so the same prime may be used several times, and the order of the summands is irrelevant.
This is the campaign statement of Odd numbers as sums of primes with the value .
Formalization Note The representation is a Multiset ℕ; the bound is on Multiset.card, so repeated primes count separately.
import Mathlib
theorem odd_sum_le_159_primes (n : ℕ) (hodd : Odd n) (hn : 1 < n) :
∃ s : Multiset ℕ, s.card ≤ 159 ∧ (∀ p ∈ s, Nat.Prime p) ∧ s.sum = n := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Theorem odd_sum_le_159_primes. Let be a natural number (an element of ), and assume:
- is odd, i.e. for some natural number ;
- (strict inequality).
Together these hypotheses mean exactly that ranges over the odd numbers , i.e. . The hypotheses are satisfiable, so the statement is not vacuous.
The conclusion is that there exists a finite multiset of natural numbers (an unordered finite list in which repetitions are allowed and counted with multiplicity) such that all three of the following hold:
- the number of elements of , counted with multiplicity, is at most :
- every element of is a prime number (in the usual sense: and its only positive divisors are and );
- the sum of the elements of , counted with multiplicity, equals :
In words: every odd natural number can be written as a sum of at most primes, where the same prime may be used more than once and the order of the summands is irrelevant. The bound is non-strict (), and no lower bound on the number of summands is imposed: a single summand is permitted (so when is itself prime, suffices). The empty multiset would have sum , which never equals under the hypotheses, so at least one prime is always used. No other conditions (distinctness of the primes, oddness of the primes, or an exact number of summands) are required.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.