total_abs_factorization_mobius_simple_prime
Corollary 7 of arXiv:2611.18194. Let n = mq where q is a prime not dividing m and m > 1. Let a(n) = totalAbsFactorizationMobius n = Σ_x |μ(x, n)|, the sum over all factorizations x of n (multisets of integers greater than 1 with product n) of the absolute value of the Möbius function μ(x, n) = factorizationMobiusToTop n x of the poset of factorizations of n ordered by refinement. Let H(m) = orderedFactorizationCount m be the number of ordered factorizations of m (finite sequences of integers greater than 1 with product m; H(1) = 1). Then a(n) = 2 H(m).
Statement
theorem total_abs_factorization_mobius_simple_prime
(m q : ℕ) (hq : q.Prime) (hqm : ¬ q ∣ m) (hm : 1 < m) :
totalAbsFactorizationMobius (m * q) = 2 * orderedFactorizationCount m- Formalizes
- arXiv:2611.18194 (The Möbius function of factorizations with a simple prime factor), Corollary 7
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- totalAbsFactorizationMobiusFor a natural number n, totalAbsFactorizationMobius n is the natural number a(n) = Σ_x |factorizationMobiusToTop n x|: the sum, over all…
- orderedFactorizationCountH(m), the number of ordered factorizations of m: the number of finite sequences of integers greater than 1 whose product is m, with H(1) =…
- total_abs_factorization_mobius_eq_sum_divisorsIf q is a prime not dividing m ≥ 1, then a(mq) = Σ_{d | m} H(m/d).
- orderedFactorizationCount_eq_sum_properDivisorsFor m > 1, H(m) = Σ_{d | m, d < m} H(d): an ordered factorization of m is its first factor m/d > 1 followed by an ordered factorization of…
Read back from the Lean
For all natural numbers $m$ and $q$, if $q$ is prime, $q$ does not divide $m$, and $1 < m$, then the total absolute factorization Möbius sum of $m \cdot q$ (totalAbsFactorizationMobius (m * q)) equals twice the number of ordered factorizations of $m$ (2 * orderedFactorizationCount m).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The proof expresses the total absolute Möbius sum a(mq) as the divisor sum ∑_{d ∣ m} H(m / d) using an established formula for a prime q not dividing m. By the symmetry d ↦ m / d of the divisors of m, this sum is rewritten as ∑_{d ∣ m} H(d). Decomposing the divisors of m into m itself and its proper divisors isolates H(m), and the remaining sum over proper divisors is recognized as H(m) via the standard recurrence for ordered factorizations. The identity H(m) + H(m) = 2 H(m) then completes the proof.
a(mq) = ∑_{d ∣ m} H(m / d)
Applying total_abs_factorization_mobius_eq_sum_divisors with the hypotheses that q is prime, q does not divide m, and m > 0 (which follows from 1 < m via omega) expresses the total absolute Möbius sum a(mq) as the sum of H(m / d) over all divisors d of m.
uses
total_abs_factorization_mobius_eq_sum_divisorshave h1 := total_abs_factorization_mobius_eq_sum_divisors m q hq hqm (by omega)
H(m) = ∑_{d ∈ properDivisors(m)} H(d)
Applying orderedFactorizationCount_eq_sum_properDivisors with 1 < m establishes that the number of ordered factorizations of m equals the sum of H(d) over all proper divisors d of m.
uses
orderedFactorizationCount_eq_sum_properDivisorshave h2 := orderedFactorizationCount_eq_sum_properDivisors m hmIt suffices to show ∑_{d ∣ m} H(d) = 2 H(m).
Substituting the divisor sum formula from line 4 for a(mq) and applying Nat.sum_div_divisors, which re-indexes the sum via the involution d ↦ m / d on divisors of m, rewrites the left-hand side as the sum of H(d) over all divisors d of m.
uses
Nat.sum_div_divisorsrw [h1, Nat.sum_div_divisors]It suffices to show H(m) + ∑_{d ∈ properDivisors(m)} H(d) = 2 H(m).
Since m ≠ 0 (which follows from 1 < m via omega), Nat.cons_self_properDivisors decomposes the divisors of m into {m} and the proper divisors of m. Rewriting with Finset.sum_cons separates the term d = m from the sum over proper divisors.
uses
Nat.cons_self_properDivisors,Finset.sum_consrw [← Nat.cons_self_properDivisors (by omega : m ≠ 0), Finset.sum_cons]
It suffices to show H(m) + H(m) = 2 H(m).
Rewriting with the recurrence from line 5 in reverse replaces the sum over proper divisors of m with H(m).
rw [← h2]The equality holds. automation
The identity H(m) + H(m) = 2 H(m) is verified by ring arithmetic.
ring
total_abs_factorization_mobius_eq_sum_divisors- For a prime q not dividing m > 0, the total absolute Möbius sum of mq equals the sum of the number of ordered factorizations H(m / d) over all divisors d of m.
orderedFactorizationCount_eq_sum_properDivisors- For any integer m > 1, the number of ordered factorizations H(m) equals the sum of H(d) over all proper divisors d of m.
Nat.sum_div_divisors- Summing f(n / d) over all divisors d of n is equal to summing f(d) over all divisors d of n.
Nat.cons_self_properDivisors- For any non-zero natural number n, the set of divisors of n is obtained by adjoining n to the set of proper divisors of n.
Finset.sum_cons- The sum of a function over a finite set with a disjoint element adjoined equals the value at the adjoined element plus the sum over the original set.
- The inline side conditions 0 < m and m ≠ 0 needed by total_abs_factorization_mobius_eq_sum_divisors and Nat.cons_self_properDivisors are discharged automatically by omega from the hypothesis 1 < m.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem total_abs_factorization_mobius_simple_prime (m q : ℕ) (hq : q.Prime) (hqm : ¬ q ∣ m) (hm : 1 < m) : totalAbsFactorizationMobius (m * q) = 2 * orderedFactorizationCount m := by have h1 := total_abs_factorization_mobius_eq_sum_divisors m q hq hqm (by omega) have h2 := orderedFactorizationCount_eq_sum_properDivisors m hm rw [h1, Nat.sum_div_divisors] rw [← Nat.cons_self_properDivisors (by omega : m ≠ 0), Finset.sum_cons] rw [← h2] ring