Infinitely many primes in each ending
ProvedPrimeEndings.infinitely_many_endingelementary-number-theoryprime-numberssieve-of-eratosthenes
For each and every there is a prime with .
Preamble
import Definitions.Def_PrimeEndings_Defs import Mathlib open PrimeEndings
Formal statement
namespace PrimeEndings
theorem infinitely_many_ending (d : ℕ) (hd : d = 1 ∨ d = 3 ∨ d = 7 ∨ d = 9) (n : ℕ) :
∃ p > n, p.Prime ∧ p % 10 = d := 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, `infinitely_many_ending` (Dirichlet)
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number with and every natural number , there exists a natural number with
So for each fixed final digit there are primes ending in beyond any given bound (infinitely many such primes). This is the mod- case of Dirichlet's theorem on primes in arithmetic progressions. No bundle definitions are used. The order of quantifiers is: first, then , then (so may depend on both).
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.