Every odd number below is , or
OpenCohenSelfridge1975.odd_below_two_pow_18Every odd natural number is a sum or difference of a power of two and a prime: there are and a prime with
This is the computation reported in the abstract and on p. 79 of Cohen and Selfridge (1975).
import Mathlib.Algebra.IsPrimePow import Mathlib.Data.Nat.Prime.Defs import Mathlib.Data.Int.Basic
namespace CohenSelfridge1975
theorem odd_below_two_pow_18 :
∀ M : ℕ, Odd M → M < 2 ^ 18 →
∃ n p : ℕ, p.Prime ∧ (M = 2 ^ n + p ∨ M + 2 ^ n = p ∨ M + p = 2 ^ n) := by sorry
end CohenSelfridge1975Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of odd_below_two_pow_18. All variables range over the natural numbers . The bound (computed with python3).
The statement asserts: for every natural number such that
- is odd, and
- ,
there exist natural numbers and such that is prime and at least one of
holds.
In words: every odd number with can be written, for some exponent and some prime , as , or as , or as ; equivalently, for some , at least one of and is prime.
Edge cases and remarks:
- The hypotheses are satisfiable: they describe exactly the odd numbers (count computed as ). Even and are not covered by the statement at all.
- The exponent is allowed, so counts as a power of two; is not restricted in size, so may exceed (as in the third form).
- The "or" is inclusive: one representation suffices, and several may hold simultaneously. The existential gives no uniqueness and no bound on or .
- No natural-number subtraction or junk-valued operation occurs.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.