The areas / V12. Number theory
Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt
21 declarations. Mathlib docs · Source
The von Mangoldt Function
In this file we define the von Mangoldt function: the function on natural numbers that returns
log p if the input can be expressed as p^k for a prime p.
Main Results
The main definition for this file is
ArithmeticFunction.vonMangoldt: The von Mangoldt functionΛ.
We then prove the classical summation property of the von Mangoldt function in
ArithmeticFunction.vonMangoldt_sum, that ∑ i ∈ n.divisors, Λ i = Real.log n, and use this
to deduce alternative expressions for the von Mangoldt function via Möbius inversion, see
ArithmeticFunction.sum_moebius_mul_log_eq.
Notation
We use the standard notation Λ to represent the von Mangoldt function.
It is accessible in the locales ArithmeticFunction (like the notations for other arithmetic
functions) and also in the scope ArithmeticFunction.vonMangoldt.
def ArithmeticFunction.log E1 #
ArithmeticFunction ℝ
log as an arithmetic function ℕ → ℝ. Note this is in the ArithmeticFunction
namespace to indicate that it is bundled as an ArithmeticFunction rather than being the usual
real logarithm.
theorem ArithmeticFunction.log_apply E0 #
∀ {n : ℕ}, ArithmeticFunction.log n = Real.log ↑n
def ArithmeticFunction.vonMangoldt E3 #
ArithmeticFunction ℝ
The vonMangoldt function is the function on natural numbers that returns log p if the input can
be expressed as p^k for a prime p.
In the case when n is a prime power, Nat.minFac will give the appropriate prime, as it is the
smallest prime factor.
In the ArithmeticFunction locale, we have the notation Λ for this function.
This is also available in the ArithmeticFunction.vonMangoldt locale, allowing for selective
access to the notation.
def ArithmeticFunction.termΛ E1 #
Lean.ParserDescr
The vonMangoldt function is the function on natural numbers that returns log p if the input can
be expressed as p^k for a prime p.
In the case when n is a prime power, Nat.minFac will give the appropriate prime, as it is the
smallest prime factor.
In the ArithmeticFunction locale, we have the notation Λ for this function.
This is also available in the ArithmeticFunction.vonMangoldt locale, allowing for selective
access to the notation.
def ArithmeticFunction.vonMangoldt.termΛ E1 #
Lean.ParserDescr
The vonMangoldt function is the function on natural numbers that returns log p if the input can
be expressed as p^k for a prime p.
In the case when n is a prime power, Nat.minFac will give the appropriate prime, as it is the
smallest prime factor.
In the ArithmeticFunction locale, we have the notation Λ for this function.
This is also available in the ArithmeticFunction.vonMangoldt locale, allowing for selective
access to the notation.
theorem ArithmeticFunction.vonMangoldt_apply E0 #
∀ {n : ℕ}, ArithmeticFunction.vonMangoldt n = if IsPrimePow n then Real.log ↑n.minFac else 0
theorem ArithmeticFunction.vonMangoldt_apply_one E0 #
ArithmeticFunction.vonMangoldt 1 = 0
theorem ArithmeticFunction.vonMangoldt_nonneg E0 #
∀ {n : ℕ}, 0 ≤ ArithmeticFunction.vonMangoldt n
theorem ArithmeticFunction.vonMangoldt_apply_pow E1 #
∀ {n k : ℕ}, k ≠ 0 → ArithmeticFunction.vonMangoldt (n ^ k) = ArithmeticFunction.vonMangoldt n
theorem ArithmeticFunction.vonMangoldt_apply_prime E1 #
∀ {p : ℕ}, Nat.Prime p → ArithmeticFunction.vonMangoldt p = Real.log ↑p
theorem ArithmeticFunction.vonMangoldt_ne_zero_iff E0 #
∀ {n : ℕ}, ArithmeticFunction.vonMangoldt n ≠ 0 ↔ IsPrimePow n
theorem ArithmeticFunction.vonMangoldt_pos_iff E0 #
∀ {n : ℕ}, 0 < ArithmeticFunction.vonMangoldt n ↔ IsPrimePow n
theorem ArithmeticFunction.vonMangoldt_eq_zero_iff E0 #
∀ {n : ℕ}, ArithmeticFunction.vonMangoldt n = 0 ↔ ¬IsPrimePow n
theorem ArithmeticFunction.vonMangoldt_sum E3 #
∀ {n : ℕ}, ∑ i ∈ n.divisors, ArithmeticFunction.vonMangoldt i = Real.log ↑n
theorem ArithmeticFunction.vonMangoldt_mul_zeta E0 #
ArithmeticFunction.vonMangoldt * ↑ArithmeticFunction.zeta = ArithmeticFunction.log
theorem ArithmeticFunction.zeta_mul_vonMangoldt E0 #
↑ArithmeticFunction.zeta * ArithmeticFunction.vonMangoldt = ArithmeticFunction.log
theorem ArithmeticFunction.log_mul_moebius_eq_vonMangoldt E0 #
ArithmeticFunction.log * ↑ArithmeticFunction.moebius = ArithmeticFunction.vonMangoldt
theorem ArithmeticFunction.moebius_mul_log_eq_vonMangoldt E0 #
↑ArithmeticFunction.moebius * ArithmeticFunction.log = ArithmeticFunction.vonMangoldt
theorem ArithmeticFunction.sum_moebius_mul_log_eq E3 #
∀ {n : ℕ},
∑ d ∈ n.divisors, ↑(ArithmeticFunction.moebius d) * ArithmeticFunction.log d = -ArithmeticFunction.vonMangoldt n
theorem ArithmeticFunction.vonMangoldt_le_log E1 #
∀ {n : ℕ}, ArithmeticFunction.vonMangoldt n ≤ Real.log ↑n
def Mathlib.Meta.Positivity.evalVonMangoldt E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: the von Mangoldt function is nonnegative.