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.ArithmeticFunction.Zeta

34 declarations. Mathlib docs · Source

def ArithmeticFunction.zeta E1 #

ArithmeticFunction ℕ

ζ 0 = 0, otherwise ζ x = 1. The Dirichlet Series is the Riemann ζ.

def ArithmeticFunction.zeta.termζ E1 #

Lean.ParserDescr

ζ 0 = 0, otherwise ζ x = 1. The Dirichlet Series is the Riemann ζ.

theorem ArithmeticFunction.zeta_apply E0 #

∀ {x : ℕ}, ArithmeticFunction.zeta x = if x = 0 then 0 else 1

theorem ArithmeticFunction.zeta_apply_ne E1 #

∀ {x : ℕ}, x ≠ 0 → ArithmeticFunction.zeta x = 1

theorem ArithmeticFunction.zeta_eq_zero E1 #

∀ {x : ℕ}, ArithmeticFunction.zeta x = 0 ↔ x = 0

theorem ArithmeticFunction.zeta_pos E1 #

∀ {x : ℕ}, 0 < ArithmeticFunction.zeta x ↔ 0 < x

theorem ArithmeticFunction.coe_zeta_smul_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : MulAction R M]
  {f : ArithmeticFunction M} {x : ℕ}, (↑ArithmeticFunction.zeta • f) x = ∑ i ∈ x.divisors, f i

theorem ArithmeticFunction.sum_divisorsAntidiagonal_eq_sum_divisors E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : MulAction R M]
  {f : ArithmeticFunction M} {x : ℕ},
  (∑ x ∈ x.divisorsAntidiagonal, if x.1 = 0 then 0 • f x.2 else f x.2) = ∑ i ∈ x.divisors, f i

@[simp]-normal form of coe_zeta_smul_apply.

theorem ArithmeticFunction.coe_zeta_mul_comm E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R},
  ↑ArithmeticFunction.zeta * f = f * ↑ArithmeticFunction.zeta

theorem ArithmeticFunction.coe_zeta_mul_apply E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R} {x : ℕ},
  (↑ArithmeticFunction.zeta * f) x = ∑ i ∈ x.divisors, f i

theorem ArithmeticFunction.coe_mul_zeta_apply E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R} {x : ℕ},
  (f * ↑ArithmeticFunction.zeta) x = ∑ i ∈ x.divisors, f i

theorem ArithmeticFunction.zeta_mul_apply E0 #

∀ {f : ArithmeticFunction ℕ} {x : ℕ}, (ArithmeticFunction.zeta * f) x = ∑ i ∈ x.divisors, f i

theorem ArithmeticFunction.mul_zeta_apply E0 #

∀ {f : ArithmeticFunction ℕ} {x : ℕ}, (f * ArithmeticFunction.zeta) x = ∑ i ∈ x.divisors, f i

theorem ArithmeticFunction.zeta_mul_comm E1 #

∀ {f : ArithmeticFunction ℕ}, ArithmeticFunction.zeta * f = f * ArithmeticFunction.zeta

def ArithmeticFunction.pmul E1 #

{R : Type u_1} → [inst : MulZeroClass R] → ArithmeticFunction R → ArithmeticFunction R → ArithmeticFunction R

This is the pointwise product of ArithmeticFunctions.

theorem ArithmeticFunction.pmul_apply E0 #

∀ {R : Type u_1} [inst : MulZeroClass R] {f g : ArithmeticFunction R} {x : ℕ}, (f.pmul g) x = f x * g x

theorem ArithmeticFunction.pmul_comm E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] (f g : ArithmeticFunction R), f.pmul g = g.pmul f

theorem ArithmeticFunction.pmul_assoc E1 #

∀ {R : Type u_1} [inst : SemigroupWithZero R] (f₁ f₂ f₃ : ArithmeticFunction R),
  (f₁.pmul f₂).pmul f₃ = f₁.pmul (f₂.pmul f₃)

theorem ArithmeticFunction.pmul_zeta E0 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] (f : ArithmeticFunction R), f.pmul ↑ArithmeticFunction.zeta = f

theorem ArithmeticFunction.zeta_pmul E0 #

∀ {R : Type u_1} [inst : NonAssocSemiring R] (f : ArithmeticFunction R), (↑ArithmeticFunction.zeta).pmul f = f

def ArithmeticFunction.ppow E1 #

{R : Type u_1} → [inst : Semiring R] → ArithmeticFunction R → ℕ → ArithmeticFunction R

This is the pointwise power of ArithmeticFunctions.

theorem ArithmeticFunction.ppow_zero E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R}, f.ppow 0 = ↑ArithmeticFunction.zeta

theorem ArithmeticFunction.ppow_one E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R}, f.ppow 1 = f

theorem ArithmeticFunction.ppow_apply E0 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R} {k x : ℕ}, 0 < k → (f.ppow k) x = f x ^ k

theorem ArithmeticFunction.ppow_succ' E1 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R} {k : ℕ}, f.ppow (k + 1) = f.pmul (f.ppow k)

theorem ArithmeticFunction.ppow_succ E1 #

∀ {R : Type u_1} [inst : Semiring R] {f : ArithmeticFunction R} {k : ℕ}, f.ppow (k + 1) = (f.ppow k).pmul f

def ArithmeticFunction.pdiv E1 #

{R : Type u_1} → [inst : GroupWithZero R] → ArithmeticFunction R → ArithmeticFunction R → ArithmeticFunction R

This is the pointwise division of ArithmeticFunctions.

theorem ArithmeticFunction.pdiv_apply E0 #

∀ {R : Type u_1} [inst : GroupWithZero R] (f g : ArithmeticFunction R) (n : ℕ), (f.pdiv g) n = f n / g n

theorem ArithmeticFunction.pdiv_zeta E0 #

∀ {R : Type u_1} [inst : DivisionSemiring R] (f : ArithmeticFunction R), f.pdiv ↑ArithmeticFunction.zeta = f

This result only holds for DivisionSemirings instead of GroupWithZeros because zeta takes values in ℕ, and hence the coercion requires an AddMonoidWithOne. TODO: Generalise zeta

theorem ArithmeticFunction.isMultiplicative_zeta E1 #

ArithmeticFunction.zeta.IsMultiplicative

theorem ArithmeticFunction.IsMultiplicative.pmul E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {f g : ArithmeticFunction R},
  f.IsMultiplicative → g.IsMultiplicative → (f.pmul g).IsMultiplicative

theorem ArithmeticFunction.IsMultiplicative.pdiv E1 #

∀ {R : Type u_1} [inst : CommGroupWithZero R] {f g : ArithmeticFunction R},
  f.IsMultiplicative → g.IsMultiplicative → (f.pdiv g).IsMultiplicative

theorem ArithmeticFunction.IsMultiplicative.ppow E1 #

∀ {R : Type u_1} [inst : CommSemiring R] {f : ArithmeticFunction R},
  f.IsMultiplicative → ∀ {k : ℕ}, (f.ppow k).IsMultiplicative

def Mathlib.Meta.Positivity.evalArithmeticFunctionZeta E1 #

Mathlib.Meta.Positivity.PositivityExt

Extension for ArithmeticFunction.zeta.