Infinitely many primes in each last digit
ProvedZetaMap.lastDigit_primes_infiniteanalytic-number-theorydirichlet-l-functionsriemann-zeta-function
For coprime to , the set of primes with is infinite.
Preamble
import Mathlib open Complex DirichletCharacter ArithmeticFunction
Formal statement
namespace ZetaMap
theorem lastDigit_primes_infinite {a : ℕ} (ha : a.Coprime 10) :
{p : ℕ | p.Prime ∧ p % 10 = a % 10}.Infinite := by sorry
end ZetaMapSource
mfala22ss, The decimal sieve through the zeta function (note, 2026); general versions in Mathlib (Mathlib/NumberTheory/LSeries, EulerProduct, DirichletCharacter); Mathlib `Nat.infinite_setOfPred_prime_and_modEq` (Dirichlet's theorem)
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural a coprime to 10: the set of primes p with p mod 10 = a mod 10 is infinite, i.e. infinitely many primes end in each of 1, 3, 7, 9. This is Dirichlet's theorem for modulus 10. Concerns: none. Coprimality correctly excludes residues where the set is finite (only 2 or 5). a >= 10 is handled through a % 10. It is a direct corollary of Mathlib's general Dirichlet theorem.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.