The mod-30 wheel loses no prime
ProvedPrimeEndings.prime_mod30elementary-number-theoryprime-numberssieve-of-eratosthenes
Every prime satisfies .
Preamble
import Definitions.Def_PrimeEndings_Defs import Mathlib open PrimeEndings
Formal statement
namespace PrimeEndings
theorem prime_mod30 (p : ℕ) (hp : p.Prime) (h5 : 5 < p) :
p % 30 = 1 ∨ p % 30 = 7 ∨ p % 30 = 11 ∨ p % 30 = 13 ∨
p % 30 = 17 ∨ p % 30 = 19 ∨ p % 30 = 23 ∨ p % 30 = 29 := by sorry
end PrimeEndingsSource
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, `prime_mod30`
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number : if is prime and , then
These eight residues are exactly the residues in coprime to . No bundle definitions are used; the primes are excluded by .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.