Cohen–Selfridge: an arithmetic progression of odd numbers avoiding and
ProvedCohenSelfridge1975.theorem_1There are natural numbers and with such that every term () is odd, and for all and every prime ,
Here is a sum or difference of a power of two and a prime if , or for some and prime ; the last two are written and .
This is Theorem 1 of Cohen and Selfridge (1975).
import Mathlib.Algebra.IsPrimePow import Mathlib.Data.Nat.Prime.Defs import Mathlib.Data.Int.Basic
namespace CohenSelfridge1975
theorem theorem_1 :
∃ a d : ℕ, 0 < d ∧ (∀ m : ℕ, Odd (a + d * m)) ∧
∀ m n p : ℕ, p.Prime →
a + d * m ≠ 2 ^ n + p ∧ a + d * m + 2 ^ n ≠ p ∧ a + d * 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 theorem_1. All variables range over the natural numbers ; the statement has no hypotheses and no parameters.
The statement asserts that there exist natural numbers and such that all three of the following hold:
- ;
- for every (including ), the number is odd;
- for every with prime, all three of
In words: some arithmetic progression with positive common difference consists entirely of odd numbers, and no term of it can be written as , nor as , nor as , for any prime and any exponent . Since everything is in , the three equations say exactly that none of (when ), , (when ) is prime; equivalently, for every , neither nor is prime.
Edge cases and remarks:
- The exponent is included, so the power is among the powers of two: each term must also satisfy that (if ), , and (only relevant if ) are not prime.
- Condition 2 at forces itself to be odd (so ), and at forces to be even; together with , . The term (with ) is itself subject to condition 3.
- Nothing is required of and beyond conditions 1 to 3: in particular no bound on their size, no coprimality, and no claim that the terms are prime or composite.
- The statement is purely existential: it asserts that at least one such pair exists and does not name it.
- No natural-number subtraction, division, or other junk-valued operation occurs; all comparisons are equalities and disequalities of sums and powers in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.