The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V12. Number theory

Mathlib.NumberTheory.PrimesCongruentOne

3 declarations and 1 deprecated aliases. Mathlib docs · Source

theorem Nat.exists_prime_gt_modEq_one E1 #

∀ {k : ℕ} (n : ℕ), k ≠ 0 → ∃ p, Nat.Prime p ∧ n < p ∧ p ≡ 1 [MOD k]

For any positive k : ℕ there exists an arbitrarily large prime p such that p ≡ 1 [MOD k].

theorem Nat.frequently_atTop_modEq_one E1 #

∀ {k : ℕ}, k ≠ 0 → ∃ᶠ (p : ℕ) in Filter.atTop, Nat.Prime p ∧ p ≡ 1 [MOD k]

theorem Nat.infinite_setOfPred_prime_modEq_one E1 #

∀ {k : ℕ}, k ≠ 0 → {p | Nat.Prime p ∧ p ≡ 1 [MOD k]}.Infinite

For any positive k : ℕ there are infinitely many primes p such that p ≡ 1 [MOD k].

Deprecated aliases

NameNew nameSince
Nat.infinite_setOf_prime_modEq_oneNat.infinite_setOfPred_prime_modEq_one2026-07-09