partition_moment
def
For a real parameter q and a natural number n, the partition moment Z(n,q) is the sum, over all partitions λ of n, of the product of p^(-q) over the parts p of λ. It is the relaxed cycle-type moment that dominates the order-q moment of the permutation order distribution.
Statement
noncomputable def partition_moment (q : ℝ) (n : ℕ) : ℝ
- Source
- step towards permutation_order_renyi_entropy_upper_bound
- Verified
- 28 Nov 2026
- Axioms
- none listed
Lean source view module on GitHub
/-- The partition moment Z(n,q) = ∑_{λ ⊢ n} ∏_{p ∈ λ} p^(-q), with the empty partition contributing 1. -/ noncomputable def partition_moment (q : ℝ) (n : ℕ) : ℝ := ∑ lam : Nat.Partition n, (lam.parts.map (fun p => (p : ℝ) ^ (-q))).prod