pith. machine review for the scientific record. sign in
def definition def or abbrev high

liouville

show as:
view Lean formalization →

The Liouville function λ(n) equals (-1) raised to the total number of prime factors of n counted with multiplicity, with the convention λ(0) = 0. Number theorists studying multiplicative functions or Dirichlet series would cite this when relating λ to the Möbius function μ or evaluating special values. The definition is a direct conditional that delegates the exponent to the bigOmega abbreviation for Ω(n).

claimThe Liouville function satisfies λ(0) = 0 and λ(n) = (-1)^{Ω(n)} for n ≠ 0, where Ω(n) counts the prime factors of n with multiplicity.

background

This module supplies lightweight wrappers around Mathlib arithmetic functions, beginning with the Möbius function μ and extending to related maps. The upstream bigOmega abbreviation (defined as ArithmeticFunction.cardFactors) supplies Ω(n), the total number of prime factors counted with multiplicity. The local setting keeps statements minimal so deeper Dirichlet algebra can be layered once the basic interfaces stabilize.

proof idea

The definition is a direct case distinction on whether the input equals zero, returning the constant 0 in that case and otherwise applying (-1) raised to the value supplied by bigOmega.

why it matters in Recognition Science

This definition anchors the family of evaluation theorems liouville_eq, liouville_eight, liouville_fortyfive, and liouville_eq_mobius_of_squarefree. It is listed inside the inductive type ComplexTheoremRS among the core results of complex analysis from Recognition Science. Within the framework it supports relations between arithmetic functions and constants appearing in the eight-tick octave constructions.

scope and limits

Lean usage

theorem liouville_eq {n : ℕ} (hn : n ≠ 0) : liouville n = (-1) ^ bigOmega n := by simp [liouville, hn]

formal statement (Lean)

 284def liouville (n : ℕ) : ℤ :=

proof body

Definition body.

 285  if n = 0 then 0 else (-1) ^ bigOmega n
 286
 287/-- λ(0) = 0 (by convention). -/

used by (17)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (1)

Lean names referenced from this declaration's body.