AFTD Auto-Formalizing Theoretical Domains

perm_signed_order_sum

def

The signed element order sum D_n = ∑_{σ ∈ S_n} sgn(σ) o(σ) over the symmetric group S_n of degree n, defined as perm_signed_order_sum n.

Statement

noncomputable def perm_signed_order_sum (n : ℕ) : ℤ
Defined in
arXiv:2611.29409 line 144
Verified
24 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

For a natural number n, perm_signed_order_sum n is defined as the sum over all permutations σ of Fin n (the symmetric group on n elements) of the product of the sign of σ (as an integer, $\pm 1$) and the order of σ (as an integer).

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

/-- Signed sum of permutation orders in the symmetric group of degree n. -/
noncomputable def perm_signed_order_sum (n : ℕ) : ℤ := ∑ σ : Equiv.Perm (Fin n), (Equiv.Perm.sign σ : ℤ) * (orderOf σ : ℤ)
See it in the graphDiscuss this resultChallenge it