The sieve on the 40% keeps exactly the primes above 5
ProvedPrimeEndings.survives_iffelementary-number-theoryprime-numberssieve-of-eratosthenes
A number survives the sieve on the residues prime to ten exactly when it is a prime above : .
Preamble
import Definitions.Def_PrimeEndings_Defs import Mathlib open PrimeEndings
Formal statement
namespace PrimeEndings theorem survives_iff (n : ℕ) : Survives n ↔ n.Prime ∧ 5 < n := by sorry end PrimeEndings
Source
mfala22ss, A window form of the sieve of Eratosthenes on the residues prime to ten, with a machine-checked proof (2026), https://github.com/mfala22ss/prime-endings, Lean file lean/Solution.lean, `survives_iff`, the main correctness theorem
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number ,
Unfolding : , , and every with and is not prime (i.e. no prime with divides ). So the theorem says: a natural number exceeds , ends in or , and has no prime divisor with , exactly when is a prime greater than . It is a two-sided equivalence; the primes are on neither side.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.