The weak prime number theorem #
We deduce the prime number theorem, and its version for primes in arithmetic progressions, from
the Wiener–Ikehara Tauberian theorem WienerIkehara.tendsto_sum_div.
Here ψ x = ∑ n ≤ x, Λ n and θ x = ∑ p ≤ x, log p (the sum running over primes) are the
Chebyshev functions Chebyshev.psi and Chebyshev.theta.
Main results #
ArithmeticFunction.vonMangoldt.tendsto_sum_modEq_div_atTop: the von Mangoldt form of the prime number theorem in arithmetic progressions: foracoprime toq,∑ n ≤ x, n ≡ a [MOD q], Λ n = x / φ q + o(x).Chebyshev.isEquivalent_psi_id: theψ-form of the prime number theorem,ψ x ~ x(equivalentlyChebyshev.tendsto_psi_div_atTop,ψ x / x → 1); this is theq = 1case of the previous result.Chebyshev.isEquivalent_theta_id: theθ-form,θ x ~ x.Nat.isEquivalent_primeCounting: the prime number theoremπ x ~ x / log x, deduced from theθ-form by Abel summation (Chebyshev.isLittleO_primeCounting_mul_log_sub_theta).Nat.isEquivalent_card_prime_modEq: the prime number theorem in arithmetic progressions: foracoprime toq, the number of primesp ≤ xwithp ≡ a [MOD q]is asymptotic tox / (φ q * log x).Nat.eventually_exists_prime_mem_Ioc: for everyε > 0and every sufficiently largex, there is a prime in(x, (1 + ε) * x];Nat.eventually_exists_prime_mem_Ioc_subgives one in((1 - ε) * x, x].Nat.isEquivalent_nth_prime_succ: consecutive primes are asymptotically equal,pₙ₊₁ ~ pₙ.Nat.isEquivalent_log_primorial_id:log (primorial n) ~ n.Nat.isEquivalent_log_lcmUpto_id:log (Nat.lcmUpto n) ~ n.
Future directions #
- Versions of
Nat.eventually_exists_prime_mem_IocandNat.eventually_exists_prime_mem_Ioc_subfor arithmetic progressions - Showing that the nth prime is asymptotic to
n * log n
Note though that all the results here could eventually be superseded by other approaches to the prime number theorem with stronger error terms.
The prime number theorem in arithmetic progressions, von Mangoldt form, stated for a unit
a of ZMod q: the average of residueClass a over [0, x] tends to (φ q)⁻¹.
The prime number theorem in arithmetic progressions, von Mangoldt form. For a coprime
to q, the von Mangoldt function summed over n ≤ x with n ≡ a [MOD q] grows like
x / φ q.
The prime number theorem, ψ form: ψ x / x → 1 as x → ∞, where
ψ x = ∑ n ≤ x, Λ n is the Chebyshev function Chebyshev.psi.
The prime number theorem, ψ form: ψ x ∼ x, where ψ x = ∑ n ≤ x, Λ n is the
Chebyshev function Chebyshev.psi.
The prime number theorem, θ form: θ x / x → 1 as x → ∞, where
θ x = ∑ p ≤ x, log p (over primes p) is the Chebyshev function Chebyshev.theta.
The prime number theorem, θ form: θ x ~ x, where θ x = ∑ p ≤ x, log p (over
primes p) is the Chebyshev function Chebyshev.theta.
The prime number theorem in arithmetic progressions, θ form. For a coprime to q,
∑ p ≤ x, p ≡ a [MOD q], log p (over primes p) is asymptotic to x / φ q.
The prime number theorem: the prime counting function satisfies π x ~ x / Real.log x.
The prime number theorem in arithmetic progressions: for a coprime to q, the number
π(x; q, a) of primes p ≤ x with p ≡ a [MOD q] satisfies
π(x; q, a) * log x / x → 1 / φ(q).
The prime number theorem in arithmetic progressions: for a coprime to q, the number
π(x; q, a) of primes p ≤ x with p ≡ a [MOD q] satisfies π(x; q, a) ~ x / (φ(q) log x).
Consecutive primes are asymptotically equal: the (n + 1)-th prime is asymptotic to the
n-th prime.
Least common multiple asymptotics: Real.log (lcmUpto n) / n → 1.
Least common multiple asymptotics: Real.log (lcmUpto n) ~ n.
Primorial asymptotics: Real.log (primorial n) / n → 1.
Primorial asymptotics: Real.log (primorial n) ~ n.