Documentation

Mathlib.NumberTheory.Chebyshev

Chebyshev functions #

This file defines the Chebyshev functions theta and psi. These give logarithmically weighted sums of primes and prime powers.

Main definitions #

Main results #

Notation #

We introduce the scoped notations θ and ψ in the Chebyshev namespace for the Chebyshev functions.

References #

Parts of this file were upstreamed from the PrimeNumberTheoremAnd project by Kontorovich et al, https://github.com/alexKontorovich/PrimeNumberTheoremAnd.

TODOS #

noncomputable def Chebyshev.psi (x : ) :

The sum of ArithmeticFunction.vonMangoldt over integers n ≤ x.

Equations
    Instances For

      The sum of ArithmeticFunction.vonMangoldt over integers n ≤ x.

      Equations
        Instances For
          noncomputable def Chebyshev.theta (x : ) :

          The sum of log p over primes p ≤ x.

          Equations
            Instances For

              The sum of log p over primes p ≤ x.

              Equations
                Instances For
                  theorem Chebyshev.theta_pos {x : } (hy : 2 x) :
                  0 < theta x

                  θ x is the log of the product of the primes up to x.

                  theorem Chebyshev.theta_le_log4_mul_x {x : } (hx : 0 x) :

                  Chebyshev's upper bound: θ x ≤ c x with the constant c = log 4.

                  Relating ψ and θ #

                  We isolate the contributions of different prime powers to ψ and use this to show that ψ and θ are close.

                  theorem Chebyshev.sum_PrimePow_eq_sum_sum {R : Type u_1} [AddCommMonoid R] (f : R) {x : } (hx : 0 x) :
                  nFinset.Ioc 0 x⌋₊ with IsPrimePow n, f n = kFinset.Icc 1 Real.log x / Real.log 2⌋₊, pFinset.Ioc 0 x ^ (1 / k)⌋₊ with Nat.Prime p, f (p ^ k)

                  A sum over prime powers may be written as a double sum over exponents and then primes.

                  theorem Chebyshev.psi_eq_sum_theta {x : } (hx : 0 x) :
                  psi x = nFinset.Icc 1 Real.log x / Real.log 2⌋₊, theta (x ^ (1 / n))

                  |ψ x - θ x| ≤ c √ x log x with an explicit constant c.

                  theorem Chebyshev.psi_le {x : } (hx : 1 x) :

                  Explicit upper bound on ψ.

                  theorem Chebyshev.psi_le_const_mul_self {x : } (hx : 0 x) :
                  psi x (Real.log 4 + 4) * x

                  Chebyshev's bound ψ x ≤ c x with an explicit constant. Note that Chebyshev.psi_le gives a sharper bound with a better main term.

                  ψ - θ is the sum of Λ over non-primes.

                  Relation to prime counting #

                  We relate θ to the prime counting function π.

                  Expresses the prime counting function π in terms of θ by using Abel summation.

                  theorem Chebyshev.intervalIntegrable_one_div_log_sq {a b : } (one_lt_a : 1 < a) (one_lt_b : 1 < b) :

                  Chebyshev's upper bound on the prime counting function