The example
ProvedCohenSelfridge1975.example_113921- is prime, so with prime.
- For every , neither nor is prime.
Thus is the least for which or is prime, as stated in Cohen and Selfridge (1975).
Formalization Note The absolute value is Int.natAbs of the integer .
import Mathlib.Algebra.IsPrimePow import Mathlib.Data.Nat.Prime.Defs import Mathlib.Data.Int.Basic
namespace CohenSelfridge1975
theorem example_113921 :
(113921 + 2 ^ 141).Prime ∧
∀ n : ℕ, n < 141 → ¬ (113921 + 2 ^ n).Prime ∧ ¬ ((113921 : ℤ) - 2 ^ n).natAbs.Prime := by sorry
end CohenSelfridge1975Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of example_113921. The bound variable ranges over the natural numbers ; the statement has no hypotheses and no parameters.
The statement asserts the conjunction of two claims:
- The natural number is prime.
- For every natural number with (that is, ), both
- is not prime, and
- is not prime.
The second quantity is computed in the integers : the difference is formed as an integer (so it may be negative) and then its absolute value is taken as a natural number (Lean's Int.natAbs), whose primality is tested in the usual sense on . So no truncated subtraction occurs: for the value is , and for (where , computed with python3) it is .
Edge cases and remarks:
- is included, with : the claim covers and .
- The range is strict: is not covered by part 2, and in particular the statement makes no claim about , nor about any .
- Part 1 concerns only the sum , not the difference.
- The negation applies separately to each conjunct: for each , both numbers are asserted non-prime (not merely "not both prime").
- The constant is odd (computed with python3); the statement makes no claim about itself being prime or not, other than through the cases above.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.