Cohen–Selfridge: odd numbers that are neither nor for prime powers
ProvedCohenSelfridge1975.theorem_2There is an odd natural number such that for every and every prime power (a prime raised to a positive power),
That is, is neither the sum nor the difference of a power of two and a prime power.
This is Theorem 2 of Cohen and Selfridge (1975), the result named in the paper's title.
Formalization Note "Prime power" is Mathlib's IsPrimePow; differences are written additively.
import Mathlib.Algebra.IsPrimePow import Mathlib.Data.Nat.Prime.Defs import Mathlib.Data.Int.Basic
namespace CohenSelfridge1975
theorem theorem_2 :
∃ x : ℕ, Odd x ∧ ∀ n q : ℕ, IsPrimePow q →
x ≠ 2 ^ n + q ∧ x + 2 ^ n ≠ q ∧ x + q ≠ 2 ^ n := by sorry
end CohenSelfridge1975Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of theorem_2. All variables range over the natural numbers ; the statement has no hypotheses and no parameters.
The statement uses the notion of a prime power in the sense of Mathlib's IsPrimePow: a natural number is a prime power if there exist a prime and an exponent (strictly positive) with . Thus the primes themselves () count as prime powers, while does not, and is not a prime power.
The statement asserts that there exists a natural number such that
- is odd, and
- for every with a prime power, all three of
In words: some odd natural number has the property that, for every exponent , none of (when ), , (when ) is a prime power; equivalently, for every , neither nor is a prime power.
Edge cases and remarks:
- The exponent is included, so is among the powers of two: and must not be prime powers.
- Because is not a prime power under this definition, a value is not excluded by the statement.
- Powers of are themselves prime powers (for exponent at least ), so ranges over, among others, .
- The statement is purely existential: it asserts at least one such odd exists, does not name it, and places no other constraint on it (no size bound, no primality requirement on ).
- No natural-number subtraction or junk-valued operation occurs.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.