Sierpiński's theorem: infinitely many with every composite
ProvedSierpinski1960.infinitely_manyThere are infinitely many natural numbers such that the number is composite for every . That is, the set
is infinite.
This is the Théorème of Sierpiński's 1960 note, which answered negatively the question whether every natural number admits some with prime. Odd numbers with this property are now called Sierpiński numbers.
Formalization Note "Composite" is written as 1 < N ∧ ¬ N.Prime, and infinitude is Mathlib's Set.Infinite.
import Mathlib.NumberTheory.Fermat import Mathlib.Data.Int.ModEq import Mathlib.Data.Nat.ModEq import Mathlib.Data.Set.Finite.Basic import Mathlib.Tactic.NormNum.Prime open Nat
namespace Sierpinski1960
theorem infinitely_many :
{k : ℕ | 0 < k ∧ ∀ n : ℕ, 1 ≤ n → 1 < k * 2 ^ n + 1 ∧ ¬ (k * 2 ^ n + 1).Prime}.Infinite := by sorry
end Sierpinski1960Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of infinitely_many (namespace Sierpinski1960; no hypotheses).
Consider the set of natural numbers
The declaration asserts that is infinite, in Mathlib's sense: is not a finite set.
Points to note.
- Only exponents are constrained; (the number ) is not, so may be prime for .
- The condition is automatic for , ; the substantive requirement is that is composite for every .
- No parity condition is placed on : even values of are allowed in if they meet the condition.
- The statement asserts only that is infinite; it does not name any element of , give any explicit family of elements, or assert anything about density or about any specific residue class.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.