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.psi_eq_zero_of_lt_two {x : } (hx : x < 2) :
          psi x = 0
          theorem Chebyshev.theta_eq_zero_of_lt_two {x : } (hx : x < 2) :
          theta x = 0

          θ 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))
          theorem Chebyshev.psi_eq_theta_add_sum_theta {x : } (hx : 2 x) :
          psi x = theta x + nFinset.Icc 2 Real.log x / Real.log 2⌋₊, theta (x ^ (1 / n))

          |ψ x - θ x| ≤ c x √ 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

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