A Möbius orthogonality identity over the divisors of a squarefree number
ProvedArithmeticFunctions.moebius_inv_dvd_lower_boundA Möbius sum restricted to the multiples of collapses to a single term.
For squarefree and any ,
If the sum is empty. Otherwise write with ; squarefreeness makes and coprime, so and the sum factors as
by the fundamental orthogonality . So the only surviving case is , i.e. , where the value is .
The identity is the exact orthogonality relation that makes Selberg's sieve work: it is what diagonalises the quadratic form in the sieve weights , letting a sum over pairs of divisors be rewritten as a sum over a single index. Squarefreeness is essential — for with a repeated prime factor, and need not be coprime and the factorisation of fails.
Formalization note. μ is ArithmeticFunction.moebius, cast to ; the guard
if l ∣ d restricts the divisor sum to the multiples of .
import Mathlib
namespace ArithmeticFunctions
theorem moebius_inv_dvd_lower_bound (l m : ℕ) (hm : Squarefree m) :
(∑ d ∈ m.divisors, if l ∣ d then (ArithmeticFunction.moebius d : ℤ) else 0)
= if l = m then (ArithmeticFunction.moebius l : ℤ) else 0 := by sorry
end ArithmeticFunctions