Fermat-number facts behind Sierpiński's theorem
ProvedSierpinski1960.fermat_factsLet denote the -th Fermat number and let . Then:
- are prime;
- is prime;
- is prime;
- , that is, divides exactly;
- .
These are the facts Sierpiński quotes at the start of his proof (" is the product of two primes and "); numerically .
Formalization Note is Mathlib's Nat.fermatNumber m and is the natural-number quotient fermatNumber 5 / 641; item 4 records that this quotient is exact.
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 fermat_facts :
(∀ m : ℕ, m ≤ 4 → (fermatNumber m).Prime) ∧
(641 : ℕ).Prime ∧ (fermatNumber 5 / 641).Prime ∧
641 * (fermatNumber 5 / 641) = fermatNumber 5 ∧
fermatNumber 4 < fermatNumber 5 / 641 := by sorry
end Sierpinski1960Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Read-back of fermat_facts (namespace Sierpinski1960; no hypotheses, no variables other than the bound ).
Throughout, denotes the Mathlib Fermat number, defined for every natural number by
"Prime" means prime as a natural number. The symbol below is natural-number division, which rounds down (truncates); the statement itself does not assume that divides .
The declaration asserts the conjunction of the following five statements:
- For every natural number with (that is, , including ), is prime.
- is prime.
- is prime.
- (so in particular the rounded-down quotient times recovers exactly, i.e. with this quotient).
- (strict inequality).
For orientation only (computed with Python, not part of the statement): ; , and , so the truncating division loses nothing here; .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.