Project documentation
Dirichlet's theorem on primes in arithmetic progressions. If , , and , then infinitely many primes satisfy .
Exact Lean statement
@[blueprint
(title := "Dirichlet's theorem")
(statement := /-- Any primitive residue class contains an infinite number of primes. -/)
(proof := /--
If this were not the case, then the sum $\sum_{p \leq x: p = a\ (q)} \log p$
would be bounded in $x$, contradicting Theorem \ref{chebyshev-asymptotic-pnt}.
-/)
(proofUses := ["chebyshev-asymptotic-pnt"])
(latexEnv := "corollary")]
theorem dirichlet_thm {q : ℕ} {a : ℕ} (hq : q ≥ 1) (ha : Nat.Coprime a q) (ha' : a < q) :
Infinite { p // p.Prime ∧ p % q = a }Formal artifact
Lean source
@[blueprint (title := "Dirichlet's theorem") (statement := /-- Any primitive residue class contains an infinite number of primes. -/) (proof := /-- If this were not the case, then the sum $\sum_{p \leq x: p = a\ (q)} \log p$ would be bounded in $x$, contradicting Theorem \ref{chebyshev-asymptotic-pnt}. -/) (proofUses := ["chebyshev-asymptotic-pnt"]) (latexEnv := "corollary")]theorem dirichlet_thm {q : ℕ} {a : ℕ} (hq : q ≥ 1) (ha : Nat.Coprime a q) (ha' : a < q) : Infinite { p // p.Prime ∧ p % q = a } := by have : {p | p.Prime ∧ p % q = a}.Infinite := by have : {p | p.Prime ∧ p ≡ a [MOD q]}.Infinite := by have := @infinite_setOf_prime_and_eq_mod specialize @this q <| NeZero.of_pos hq simp_all only [isUnit_iff_exists_inv, forall_exists_index, ← ZMod.natCast_eq_natCast_iff] exact this (IsUnit.exists_right_inv (show IsUnit (a : ZMod q) from by rwa [ZMod.isUnit_iff_coprime])).choose (IsUnit.exists_right_inv (show IsUnit (a : ZMod q) from by rwa [ZMod.isUnit_iff_coprime])).choose_spec exact this.mono fun p hp ↦ ⟨hp.1, by simpa [ModEq, mod_eq_of_lt ha'] using hp.2⟩ exact Set.infinite_coe_iff.mpr this- Project
- Prime Number Theorem and More
- License
- Apache-2.0
- Commit
- a93551347dce
- Source
- PrimeNumberTheoremAnd/Consequences.lean:2514-2534
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Admissible bound mono
admissible_bound.mono
Plain-language statement
For positive parameters , the classical error-bound function is nonincreasing once .
Source project: Prime Number Theorem and More
Person-level attribution pending.
Analytic On div Removable zero
AnalyticOn_divRemovable_zero
Plain-language statement
Let be analytic on an open set containing , and suppose . Define for and . Then the apparent singularity at is removable and is analytic throughout .
Source project: Prime Number Theorem and More
Person-level attribution pending.
Analytic On div Removable zero closed Ball
AnalyticOn_divRemovable_zero_closedBall
Plain-language statement
Suppose and is analytic on the closed disc with . Define for and . Then is analytic on the entire closed disc, including at the removed singularity.
Source project: Prime Number Theorem and More
Person-level attribution pending.