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.LSeries.Basic

46 declarations. Mathlib docs · Source

L-series

Given a sequence f: ℕ → ℂ, we define the corresponding L-series.

Main Definitions

  • LSeries.term f s n is the nth term of the L-series of the sequence f at s : ℂ. We define it to be zero when n = 0.

  • LSeries f is the L-series with a given sequence f as its coefficients. This is not the analytic continuation (which does not necessarily exist), just the sum of the infinite series if it exists and zero otherwise.

  • LSeriesSummable f s indicates that the L-series of f converges at s : ℂ.

  • LSeriesHasSum f s a expresses that the L-series of f converges (absolutely) at s : ℂ to a : ℂ.

Main Results

  • LSeriesSummable_of_isBigO_rpow: the LSeries of a sequence f such that f = O(n^(x-1)) converges at s when x < s.re.

  • LSeriesSummable.isBigO_rpow: if the LSeries of f is summable at s, then f = O(n^(re s)).

Notation

We introduce L as notation for LSeries and ↗f as notation for fun n : ℕ ↦ (f n : ℂ), both scoped to LSeries.notation. The latter makes it convenient to use arithmetic functions or Dirichlet characters (or anything that coerces to a function N → R, where ℕ coerces to N and R coerces to ℂ) as arguments to LSeries etc.

References

For some background on the design decisions made when implementing L-series in Mathlib (and applications motivating the development), see the paper Formalizing zeta and L-functions in Lean by David Loeffler and Michael Stoll.

Tags

L-series

The terms of an L-series

We define the nth term evaluated at a complex number s of the L-series associated to a sequence f : ℕ → ℂ, LSeries.term f s n, and provide some basic API.

We set LSeries.term f s 0 = 0, and for positive n, LSeries.term f s n = f n / n ^ s.

Definition of the L-series and related statements

We define LSeries f s of f : ℕ → ℂ as the sum over LSeries.term f s. We also provide predicates LSeriesSummable f s stating that LSeries f s is summable and LSeriesHasSum f s a stating that the L-series of f is summable at s and converges to a : ℂ.

Notation

LSeries of 0 and δ

Criteria for and consequences of summability of L-series

We relate summability of L-series with bounds on the coefficients in terms of powers of n.

def LSeries.term E1 #

(ℕ → ℂ) → ℂ → ℕ → ℂ

The nth term of the L-series of f evaluated at s. We set it to zero when n = 0.

theorem LSeries.term_def E0 #

∀ (f : ℕ → ℂ) (s : ℂ) (n : ℕ), LSeries.term f s n = if n = 0 then 0 else f n / ↑n ^ s

theorem LSeries.term_def₀ E1 #

∀ {f : ℕ → ℂ}, f 0 = 0 → ∀ (s : ℂ) (n : ℕ), LSeries.term f s n = f n * ↑n ^ (-s)

An alternate spelling of term_def for the case f 0 = 0.

theorem LSeries.term_zero E0 #

∀ (f : ℕ → ℂ) (s : ℂ), LSeries.term f s 0 = 0

theorem LSeries.term_of_ne_zero E0 #

∀ {n : ℕ}, n ≠ 0 → ∀ (f : ℕ → ℂ) (s : ℂ), LSeries.term f s n = f n / ↑n ^ s

theorem LSeries.term_of_ne_zero' E1 #

∀ {s : ℂ}, s ≠ 0 → ∀ (f : ℕ → ℂ) (n : ℕ), LSeries.term f s n = f n / ↑n ^ s

If s ≠ 0, then the if .. then .. else construction in LSeries.term isn't needed, since 0 ^ s = 0.

theorem LSeries.term_congr E1 #

∀ {f g : ℕ → ℂ}, (∀ {n : ℕ}, n ≠ 0 → f n = g n) → ∀ (s : ℂ) (n : ℕ), LSeries.term f s n = LSeries.term g s n

theorem LSeries.pow_mul_term_eq E0 #

∀ (f : ℕ → ℂ) (s : ℂ) (n : ℕ), (↑n + 1) ^ s * LSeries.term f s (n + 1) = f (n + 1)

theorem LSeries.norm_term_eq E0 #

∀ (f : ℕ → ℂ) (s : ℂ) (n : ℕ), ‖LSeries.term f s n‖ = if n = 0 then 0 else ‖f n‖ / ↑n ^ s.re

theorem LSeries.norm_term_le E1 #

∀ {f g : ℕ → ℂ} (s : ℂ) {n : ℕ}, ‖f n‖ ≤ ‖g n‖ → ‖LSeries.term f s n‖ ≤ ‖LSeries.term g s n‖

theorem LSeries.norm_term_le_of_re_le_re E1 #

∀ (f : ℕ → ℂ) {s s' : ℂ}, s.re ≤ s'.re → ∀ (n : ℕ), ‖LSeries.term f s' n‖ ≤ ‖LSeries.term f s n‖

theorem LSeries.term_nonneg E1 #

∀ {a : ℕ → ℂ} {n : ℕ}, 0 ≤ a n → ∀ (x : ℝ), 0 ≤ LSeries.term a (↑x) n

theorem LSeries.term_pos E1 #

∀ {a : ℕ → ℂ} {n : ℕ}, n ≠ 0 → 0 < a n → ∀ (x : ℝ), 0 < LSeries.term a (↑x) n

def LSeries E3 #

(ℕ → ℂ) → ℂ → ℂ

The value of the L-series of the sequence f at the point s if it converges absolutely there, and 0 otherwise.

theorem LSeries_congr E1 #

∀ {f g : ℕ → ℂ}, (∀ {n : ℕ}, n ≠ 0 → f n = g n) → ∀ (s : ℂ), LSeries f s = LSeries g s

Congruence for LSeries with the evaluation variable s.

theorem LSeries_def₀ E1 #

∀ {f : ℕ → ℂ}, f 0 = 0 → ∀ (s : ℂ), LSeries f s = ∑' (n : ℕ), f n / ↑n ^ s

An alternate spelling of LSeries as ∑' n, f n / n ^ s for the case f 0 = 0.

def LSeriesSummable E1 #

(ℕ → ℂ) → ℂ → Prop

LSeriesSummable f s indicates that the L-series of f converges absolutely at s.

theorem LSeriesSummable_congr E1 #

∀ {f g : ℕ → ℂ} (s : ℂ), (∀ {n : ℕ}, n ≠ 0 → f n = g n) → (LSeriesSummable f s ↔ LSeriesSummable g s)

theorem LSeriesSummable.congr' E1 #

∀ {f g : ℕ → ℂ} (s : ℂ), f =ᶠ[Filter.atTop] g → LSeriesSummable f s → LSeriesSummable g s

If f and g agree on large n : ℕ and the LSeries of f converges at s, then so does that of g.

theorem LSeriesSummable_congr' E1 #

∀ {f g : ℕ → ℂ} (s : ℂ), f =ᶠ[Filter.atTop] g → (LSeriesSummable f s ↔ LSeriesSummable g s)

If f and g agree on large n : ℕ, then the LSeries of f converges at s if and only if that of g does.

theorem LSeriesSummable_zero E0 #

∀ {s : ℂ}, LSeriesSummable 0 s

def LSeriesHasSum E1 #

(ℕ → ℂ) → ℂ → ℂ → Prop

This states that the L-series of the sequence f converges absolutely at s and that the value there is a.

theorem LSeriesHasSum.LSeriesSummable E1 #

∀ {f : ℕ → ℂ} {s a : ℂ}, LSeriesHasSum f s a → LSeriesSummable f s

theorem LSeriesHasSum.LSeries_eq E0 #

∀ {f : ℕ → ℂ} {s a : ℂ}, LSeriesHasSum f s a → LSeries f s = a

theorem LSeriesSummable.LSeriesHasSum E1 #

∀ {f : ℕ → ℂ} {s : ℂ}, LSeriesSummable f s → LSeriesHasSum f s (LSeries f s)

theorem LSeriesHasSum_iff E0 #

∀ {f : ℕ → ℂ} {s a : ℂ}, LSeriesHasSum f s a ↔ LSeriesSummable f s ∧ LSeries f s = a

theorem LSeriesHasSum_congr E1 #

∀ {f g : ℕ → ℂ} (s a : ℂ), (∀ {n : ℕ}, n ≠ 0 → f n = g n) → (LSeriesHasSum f s a ↔ LSeriesHasSum g s a)

theorem LSeriesSummable.of_re_le_re E1 #

∀ {f : ℕ → ℂ} {s s' : ℂ}, s.re ≤ s'.re → LSeriesSummable f s → LSeriesSummable f s'

theorem LSeriesSummable_iff_of_re_eq_re E1 #

∀ {f : ℕ → ℂ} {s s' : ℂ}, s.re = s'.re → (LSeriesSummable f s ↔ LSeriesSummable f s')

def LSeries.delta E1 #

ℕ → ℂ

The indicator function of {1} ⊆ ℕ with values in ℂ.

def LSeries.notation.termL E1 #

Lean.ParserDescr

The value of the L-series of the sequence f at the point s if it converges absolutely there, and 0 otherwise.

def LSeries.notation.«term↗_» E1 #

Lean.ParserDescr

We introduce notation ↗f for f interpreted as a function ℕ → ℂ.

Let R be a ring with a coercion to ℂ. Then we can write ↗χ when χ : DirichletCharacter R or ↗f when f : ArithmeticFunction R or simply f : N → R with a coercion from ℕ to N as an argument to LSeries, LSeriesHasSum, LSeriesSummable etc.

def LSeries.notation.termδ E1 #

Lean.ParserDescr

The indicator function of {1} ⊆ ℕ with values in ℂ.

theorem LSeries_zero E0 #

LSeries 0 = 0

theorem LSeries.term_delta E1 #

∀ (s : ℂ) (n : ℕ), LSeries.term LSeries.delta s n = if n = 1 then 1 else 0

theorem LSeries.mul_delta_eq_smul_delta E1 #

∀ {f : ℕ → ℂ}, f * LSeries.delta = f 1 • LSeries.delta

theorem LSeries.mul_delta E1 #

∀ {f : ℕ → ℂ}, f 1 = 1 → f * LSeries.delta = LSeries.delta

theorem LSeries.delta_mul_eq_smul_delta E1 #

∀ {f : ℕ → ℂ}, LSeries.delta * f = f 1 • LSeries.delta

theorem LSeries.delta_mul E1 #

∀ {f : ℕ → ℂ}, f 1 = 1 → LSeries.delta * f = LSeries.delta

theorem LSeries_delta E1 #

LSeries LSeries.delta = 1

The L-series of δ is the constant function 1.

theorem LSeriesSummable.le_const_mul_rpow E1 #

∀ {f : ℕ → ℂ} {s : ℂ}, LSeriesSummable f s → ∃ C, ∀ (n : ℕ), n ≠ 0 → ‖f n‖ ≤ C * ↑n ^ s.re

If the LSeries of f is summable at s, then f n is bounded in absolute value by a constant times n^(re s).

theorem LSeriesSummable.isBigO_rpow E3 #

∀ {f : ℕ → ℂ} {s : ℂ}, LSeriesSummable f s → f =O[Filter.atTop] fun n ↦ ↑n ^ s.re

If the LSeries of f is summable at s, then f = O(n^(re s)).

theorem LSeriesSummable_of_le_const_mul_rpow E1 #

∀ {f : ℕ → ℂ} {x : ℝ} {s : ℂ}, x < s.re → (∃ C, ∀ (n : ℕ), n ≠ 0 → ‖f n‖ ≤ C * ↑n ^ (x - 1)) → LSeriesSummable f s

If f n is bounded in absolute value by a constant times n^(x-1) and re s > x, then the LSeries of f is summable at s.

theorem LSeriesSummable_of_isBigO_rpow E3 #

∀ {f : ℕ → ℂ} {x : ℝ} {s : ℂ}, x < s.re → (f =O[Filter.atTop] fun n ↦ ↑n ^ (x - 1)) → LSeriesSummable f s

If f = O(n^(x-1)) and re s > x, then the LSeries of f is summable at s.

theorem LSeriesSummable_of_bounded_of_one_lt_re E1 #

∀ {f : ℕ → ℂ} {m : ℝ}, (∀ (n : ℕ), n ≠ 0 → ‖f n‖ ≤ m) → ∀ {s : ℂ}, 1 < s.re → LSeriesSummable f s

If f is bounded, then its LSeries is summable at s when re s > 1.

theorem LSeriesSummable_of_bounded_of_one_lt_real E1 #

∀ {f : ℕ → ℂ} {m : ℝ}, (∀ (n : ℕ), n ≠ 0 → ‖f n‖ ≤ m) → ∀ {s : ℝ}, 1 < s → LSeriesSummable f ↑s

If f is bounded, then its LSeries is summable at s : ℝ when s > 1.