The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V12. Number theory

Mathlib.NumberTheory.ZetaValues

37 declarations. Mathlib docs · Source

Critical values of the Riemann zeta function

In this file we prove formulae for the critical values of ζ(s), and more generally of Hurwitz zeta functions, in terms of Bernoulli polynomials.

Main results

  • hasSum_zeta_nat: the final formula for zeta values, $$\zeta(2k) = \frac{(-1)^{(k + 1)} 2 ^ {2k - 1} \pi^{2k} B_{2 k}}{(2 k)!}.$$
  • hasSum_zeta_two and hasSum_zeta_four: special cases given explicitly.
  • hasSum_one_div_nat_pow_mul_cos: a formula for the sum ∑ (n : ℕ), cos (2 π i n x) / n ^ k as an explicit multiple of Bₖ(x), for any x ∈ [0, 1] and k ≥ 2 even.
  • hasSum_one_div_nat_pow_mul_sin: a formula for the sum ∑ (n : ℕ), sin (2 π i n x) / n ^ k as an explicit multiple of Bₖ(x), for any x ∈ [0, 1] and k ≥ 3 odd.

Simple properties of the Bernoulli polynomial, as a function ℝ → ℝ.

Values at 1/2

Compute the Fourier coefficients of the Bernoulli functions via integration by parts.

In this section we use the above evaluations of the Fourier coefficients of Bernoulli polynomials, together with the theorem AddCircle.hasSum_fourier_series_apply_of_summable from Fourier theory, to obtain an explicit formula for ∑ (n:ℤ), 1 / n ^ k * fourier n x.

def bernoulliFun E1 #

ℕ → ℝ → ℝ

The function x ↦ Bₖ(x) : ℝ → ℝ.

theorem bernoulliFun_zero E0 #

∀ (x : ℝ), bernoulliFun 0 x = 1

theorem bernoulliFun_one E0 #

∀ (x : ℝ), bernoulliFun 1 x = x - 1 / 2

theorem bernoulliFun_two E0 #

∀ (x : ℝ), bernoulliFun 2 x = x ^ 2 - x + 6⁻¹

theorem bernoulliFun_eval_zero E1 #

∀ (k : ℕ), bernoulliFun k 0 = ↑(bernoulli k)

theorem bernoulliFun_endpoints_eq_of_ne_one E1 #

∀ {k : ℕ}, k ≠ 1 → bernoulliFun k 1 = bernoulliFun k 0

theorem bernoulliFun_eval_one E1 #

∀ (k : ℕ), bernoulliFun k 1 = bernoulliFun k 0 + if k = 1 then 1 else 0

theorem hasDerivAt_bernoulliFun E1 #

∀ (k : ℕ) (x : ℝ), HasDerivAt (bernoulliFun k) (↑k * bernoulliFun (k - 1) x) x

theorem contDiff_bernoulliFun E1 #

∀ (k : ℕ), ContDiff ℝ ⊤ (bernoulliFun k)

theorem continuous_bernoulliFun E1 #

∀ (k : ℕ), Continuous (bernoulliFun k)

theorem intervalIntegrable_bernoulliFun E1 #

∀ (k : ℕ) (a b : ℝ), IntervalIntegrable (bernoulliFun k) MeasureTheory.volume a b

theorem deriv_bernoulliFun E0 #

∀ (k : ℕ), deriv (bernoulliFun k) = fun x ↦ ↑k * bernoulliFun (k - 1) x

theorem antideriv_bernoulliFun E1 #

∀ (k : ℕ) (x : ℝ), HasDerivAt (fun x ↦ bernoulliFun (k + 1) x / (↑k + 1)) (bernoulliFun k x) x

theorem integral_bernoulliFun E1 #

∀ (k : ℕ), ∫ (x : ℝ) in 0..1, bernoulliFun k x = if k = 0 then 1 else 0

theorem integral_bernoulliFun_eq_zero E1 #

∀ {k : ℕ}, k ≠ 0 → ∫ (x : ℝ) in 0..1, bernoulliFun k x = 0

theorem bernoulliFun_eq_integral E2 #

∀ (k : ℕ) (x y : ℝ), bernoulliFun (k + 1) y = bernoulliFun (k + 1) x + ∫ (t : ℝ) in x..y, ↑(k + 1) * bernoulliFun k t

Fundamental theorem of calculus to express a Bernoulli polynomial via the previous one

theorem bernoulliFun_eval_one_sub E2 #

∀ {k : ℕ} {x : ℝ}, bernoulliFun k (1 - x) = (-1) ^ k * bernoulliFun k x

Reflection principle: B_s(1 - x) = (-1)^s B_s(x)

theorem bernoulliFun_mul E1 #

∀ (k : ℕ) {m : ℕ},
  m ≠ 0 → ∀ (x : ℝ), bernoulliFun k (↑m * x) = ↑m ^ k / ↑m * ∑ i ∈ Finset.range m, bernoulliFun k (x + ↑i / ↑m)

The multiplication theorem. Proof follows https://math.stackexchange.com/a/1721099/38218.

theorem bernoulliFun_eval_half_eq_zero E1 #

∀ (k : ℕ), bernoulliFun (2 * k + 1) 2⁻¹ = 0

theorem bernoulliFun_eval_half E1 #

∀ (k : ℕ), bernoulliFun k 2⁻¹ = (2 / 2 ^ k - 1) * ↑(bernoulli k)

def bernoulliFourierCoeff E1 #

ℕ → ℤ → ℂ

The n-th Fourier coefficient of the k-th Bernoulli function on the interval [0, 1].

theorem bernoulliFourierCoeff_recurrence E1 #

∀ (k : ℕ) {n : ℤ},
  n ≠ 0 →
    bernoulliFourierCoeff k n =
      1 / (-2 * ↑Real.pi * Complex.I * ↑n) * ((if k = 1 then 1 else 0) - ↑k * bernoulliFourierCoeff (k - 1) n)

Recurrence relation (in k) for the n-th Fourier coefficient of Bₖ.

theorem bernoulli_zero_fourier_coeff E1 #

∀ {n : ℤ}, n ≠ 0 → bernoulliFourierCoeff 0 n = 0

The Fourier coefficients of B₀(x) = 1.

theorem bernoulliFourierCoeff_zero E1 #

∀ {k : ℕ}, k ≠ 0 → bernoulliFourierCoeff k 0 = 0

The 0-th Fourier coefficient of Bₖ(x).

theorem bernoulliFourierCoeff_eq E0 #

∀ {k : ℕ}, k ≠ 0 → ∀ (n : ℤ), bernoulliFourierCoeff k n = -↑k.factorial / (2 * ↑Real.pi * Complex.I * ↑n) ^ k

def periodizedBernoulli E1 #

ℕ → UnitAddCircle → ℝ

The Bernoulli polynomial, extended from [0, 1) to the unit circle.

theorem periodizedBernoulli.continuous E1 #

∀ {k : ℕ}, k ≠ 1 → Continuous (periodizedBernoulli k)

theorem fourierCoeff_bernoulli_eq E0 #

∀ {k : ℕ},
  k ≠ 0 →
    ∀ (n : ℤ),
      AddCircle.fourierCoeff (Complex.ofReal ∘ periodizedBernoulli k) n =
        -↑k.factorial / (2 * ↑Real.pi * Complex.I * ↑n) ^ k

theorem summable_bernoulli_fourier E1 #

∀ {k : ℕ}, 2 ≤ k → Summable fun n ↦ -↑k.factorial / (2 * ↑Real.pi * Complex.I * ↑n) ^ k

theorem hasSum_one_div_pow_mul_fourier_mul_bernoulliFun E1 #

∀ {k : ℕ},
  2 ≤ k →
    ∀ {x : ℝ},
      x ∈ Set.Icc 0 1 →
        HasSum (fun n ↦ 1 / ↑n ^ k * (AddCircle.fourier n) ↑x)
          (-(2 * ↑Real.pi * Complex.I) ^ k / ↑k.factorial * ↑(bernoulliFun k x))

theorem hasSum_one_div_nat_pow_mul_fourier E1 #

∀ {k : ℕ},
  2 ≤ k →
    ∀ {x : ℝ},
      x ∈ Set.Icc 0 1 →
        HasSum (fun n ↦ 1 / ↑n ^ k * ((AddCircle.fourier ↑n) ↑x + (-1) ^ k * (AddCircle.fourier (-↑n)) ↑x))
          (-(2 * ↑Real.pi * Complex.I) ^ k / ↑k.factorial * ↑(bernoulliFun k x))

theorem hasSum_one_div_nat_pow_mul_cos E3 #

∀ {k : ℕ},
  k ≠ 0 →
    ∀ {x : ℝ},
      x ∈ Set.Icc 0 1 →
        HasSum (fun n ↦ 1 / ↑n ^ (2 * k) * Real.cos (2 * Real.pi * ↑n * x))
          ((-1) ^ (k + 1) * (2 * Real.pi) ^ (2 * k) / 2 / ↑(2 * k).factorial *
            Polynomial.eval x (Polynomial.map (algebraMap ℚ ℝ) (Polynomial.bernoulli (2 * k))))

theorem hasSum_one_div_nat_pow_mul_sin E3 #

∀ {k : ℕ},
  k ≠ 0 →
    ∀ {x : ℝ},
      x ∈ Set.Icc 0 1 →
        HasSum (fun n ↦ 1 / ↑n ^ (2 * k + 1) * Real.sin (2 * Real.pi * ↑n * x))
          ((-1) ^ (k + 1) * (2 * Real.pi) ^ (2 * k + 1) / 2 / ↑(2 * k + 1).factorial *
            Polynomial.eval x (Polynomial.map (algebraMap ℚ ℝ) (Polynomial.bernoulli (2 * k + 1))))

theorem hasSum_zeta_nat E3 #

∀ {k : ℕ},
  k ≠ 0 →
    HasSum (fun n ↦ 1 / ↑n ^ (2 * k))
      ((-1) ^ (k + 1) * 2 ^ (2 * k - 1) * Real.pi ^ (2 * k) * ↑(bernoulli (2 * k)) / ↑(2 * k).factorial)

theorem hasSum_zeta_two E3 #

HasSum (fun n ↦ 1 / ↑n ^ 2) (Real.pi ^ 2 / 6)

theorem hasSum_zeta_four E3 #

HasSum (fun n ↦ 1 / ↑n ^ 4) (Real.pi ^ 4 / 90)

theorem hasSum_L_function_mod_four_eval_three E2 #

HasSum (fun n ↦ 1 / ↑n ^ 3 * Real.sin (Real.pi * ↑n / 2)) (Real.pi ^ 3 / 32)

Explicit formula for L(χ, 3), where χ is the unique nontrivial Dirichlet character modulo 4.