AFTD Auto-Formalizing Theoretical Domains

total_abs_factorization_mobius_simple_prime

theoremverifiedformalization

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

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.

  1. 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.

    line 4

    uses total_abs_factorization_mobius_eq_sum_divisors

      have h1 := total_abs_factorization_mobius_eq_sum_divisors m q hq hqm (by omega)
  2. 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.

    line 5

    uses orderedFactorizationCount_eq_sum_properDivisors

      have h2 := orderedFactorizationCount_eq_sum_properDivisors m hm
  3. It 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.

    line 6

    uses Nat.sum_div_divisors

      rw [h1, Nat.sum_div_divisors]
  4. 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.

    line 7

    uses Nat.cons_self_properDivisors, Finset.sum_cons

      rw [← Nat.cons_self_properDivisors (by omega : m ≠ 0), Finset.sum_cons]
  5. 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).

    line 8

      rw [← h2]
  6. The equality holds. automation

    The identity H(m) + H(m) = 2 H(m) is verified by ring arithmetic.

    line 9

      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.

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

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
See it in the graphDiscuss this resultChallenge it