AFTD Auto-Formalizing Theoretical Domains

totalAbsFactorizationMobius

def

For a natural number n, totalAbsFactorizationMobius n is the natural number a(n) = Σ_x |factorizationMobiusToTop n x|: the sum, over all factorizations x of n (multisets of integers greater than 1 with product n, of which there are finitely many), of the absolute value, taken as a natural number (Int.natAbs), of the factorization-poset Möbius function μ(x, n) = factorizationMobiusToTop n x.

Statement

noncomputable def totalAbsFactorizationMobius (n : ℕ) : ℕ
Defined in
arXiv:2611.18194 (The Möbius function of factorizations with a simple prime factor), Section 3 (a(n), OEIS A369713)
Verified
17 Nov 2026
Axioms
none listed
Built on 2
  • IsNatFactorizationA factorization of a natural number n is a multiset of integers greater than 1 whose product is n.
  • factorizationMobiusToTopFor a natural number n and a multiset x of natural numbers, factorizationMobiusToTop n x (n first, then x) is the integer defined by…
Used by 2

Read back from the Lean

For any natural number n, totalAbsFactorizationMobius n is defined as the sum (using finsum) over all multisets x of natural numbers satisfying IsNatFactorization n x of the absolute value (as a natural number) of factorizationMobiusToTop n x. Here: - IsNatFactorization n x asserts that every element of x is strictly greater than 1, and the product of the elements of x is equal to n. - factorizationMobiusToTop n x is defined recursively (by well-founded recursion on x.card): - if x.card ≤ 1, it evaluates to 1; - otherwise, it evaluates to the negative of the sum (using finsum) over all multisets y of natural numbers such that: 1. y is a factorization of n (IsNatFactorization n y), 2. y is a coarsening of x (IsFactorizationCoarsening x y, meaning there exists a multiset G of non-empty multisets of natural numbers whose join is x and whose elementwise products form y), and 3. y.card < x.card, of factorizationMobiusToTop n y.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The total absolute Möbius function `a(n) = ∑_x |μ(x, n)|`, summed over all factorizations `x` of `n` (OEIS A369713). The set of factorizations of `n` is finite, so the `finsum` is a finite sum. -/
noncomputable def totalAbsFactorizationMobius (n : ℕ) : ℕ :=
  ∑ᶠ (x : Multiset ℕ) (_ : IsNatFactorization n x), (factorizationMobiusToTop n x).natAbs
See it in the graphDiscuss this resultChallenge it