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) :
          ∑ n ∈ Finset.Ioc 0 ⌊x⌋₊ with IsPrimePow n, f n = ∑ k ∈ Finset.Icc 1 ⌊Real.log x / Real.log 2⌋₊, ∑ p ∈ Finset.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 = ∑ n ∈ Finset.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 + ∑ n ∈ Finset.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.