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 locale ArithmeticFunction.vonMangoldt
.
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.
Equations
- ArithmeticFunction.log = { toFun := fun (n : ℕ) => Real.log ↑n, map_zero' := ArithmeticFunction.log.proof_1 }
Instances For
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.
Equations
- ArithmeticFunction.vonMangoldt = { toFun := fun (n : ℕ) => if IsPrimePow n then Real.log ↑n.minFac else 0, map_zero' := ArithmeticFunction.vonMangoldt.proof_1 }
Instances For
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.
Equations
- ArithmeticFunction.termΛ = Lean.ParserDescr.node `ArithmeticFunction.termΛ 1024 (Lean.ParserDescr.symbol "Λ")
Instances For
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.
Equations
- ArithmeticFunction.vonMangoldt.termΛ = Lean.ParserDescr.node `ArithmeticFunction.vonMangoldt.termΛ 1024 (Lean.ParserDescr.symbol "Λ")