Documentation

AnalyticNumberTheory.PrimeDistribution.PrimeNumberTheorem

Prime-distribution API #

This module is the stable facade over the ported PNTAnd implementation.

A medium-strength prime number theorem for Chebyshev's psi function.

Inspect dependencies

AnalyticNumberTheory.PrimeDistribution.chebyshevPsi_medium_error · compiled type and proof/definition references.

The prime-counting PNT in the real-variable normal form proved by PNTAnd.

Inspect dependencies

AnalyticNumberTheory.PrimeDistribution.primeCounting_asymptotic_real · compiled type and proof/definition references.

A natural-number interface for the prime-counting PNT.

Equations
Instances For
    Inspect dependencies

    AnalyticNumberTheory.PrimeDistribution.NatPrimeCountingPNT · compiled type and proof/definition references.

    Restrict the real-variable prime-counting PNT to natural arguments.

    Inspect dependencies

    AnalyticNumberTheory.PrimeDistribution.natPrimeCountingPNT · compiled type and proof/definition references.

    theorem AnalyticNumberTheory.PrimeDistribution.primeCounting_upper_bound :
    ∃ (C : ℝ), 0 < C ∧ ∀ (x : ℕ), 2 ≤ x → ↑x.primeCounting ≤ C * ↑x / Real.log ↑x

    Upper bound for π: the PNT supplies a constant such that π(x) ≤ C·x/log x uniformly for x ≥ 2. This gives the analytic bound ≤ C·N/(a·log(N/a)) for switchingCount ≤ π(N/a) in the three-factor main-term estimate.

    Inspect dependencies

    AnalyticNumberTheory.PrimeDistribution.primeCounting_upper_bound · compiled type and proof/definition references.