Every Odd Number Greater Than 1 is the Sum of at Most 27 Primes
Provedodd_sum_le_27_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_27_primes (n : ℕ) (hodd : Odd n) (hn : 1 < n) :
∃ s : Multiset ℕ, s.card ≤ 27 ∧ (∀ p ∈ s, Nat.Prime p) ∧ s.sum = n := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-sonnet-5-5
The statement is a theorem named odd_sum_le_27_primes. It takes two hypotheses about a natural number and concludes that a certain multiset of primes exists.
Variables and hypotheses. Let be a natural number, so .
- Hypothesis
hodd: is odd, meaning for some natural number . - Hypothesis
hn: .
Together these say is an odd natural number with . Both hypotheses can be satisfied, for example by , so the theorem is not vacuous. The excluded values are and , and is excluded explicitly by hn.
Conclusion. There exists a finite multiset of natural numbers, that is, a finite collection of natural numbers in which repetition is allowed and order is irrelevant, such that all three of the following hold:
- . Here is the cardinality counted with multiplicity, so the number of elements, repeats included, is at most 27. This is a non-strict bound, so is allowed. Nothing requires to be at least any particular value.
- Every element is a prime number, that is, with whose only positive divisors are and .
- , where the sum is taken with multiplicity, so a prime that occurs times in contributes .
Remarks on what is and is not asserted.
- The primes are not required to be distinct, because is a multiset.
- The only upper bound on the size is 27. The statement does not say the number of primes is exactly 27, does not bound the size of the primes, and does not say the representation is unique.
- The statement does not give any construction of . It only asserts that some such exists for each satisfying the hypotheses.
- The bound 27 is a fixed constant that does not depend on . The statement therefore asserts that for every odd , however large, is a sum of at most 27 primes with repetition allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.