AFTD Auto-Formalizing Theoretical Domains

permutation_order_prob

def

For natural numbers n and m, permutation_order_prob n m is the real probability that a uniformly random permutation in S_n has order m, defined as the number of permutations σ : Equiv.Perm (Fin n) of order m coerced to ℝ divided by (n.factorial : ℝ).

Statement

noncomputable def permutation_order_prob (n : ℕ) (m : ℕ) : ℝ
Defined in
arXiv:2605.15063
Verified
28 Nov 2026
Axioms
none listed
Used by 3
  • permutation_order_renyi_entropy_twoFor every real q ≠ 1, the order-q Rényi entropy permutation_order_renyi_entropy q 2 of the permutation order distribution on S_2 equals…
  • permutation_order_renyi_entropyFor a real parameter q and natural number n, permutation_order_renyi_entropy q n is the order-q Rényi entropy of the permutation order…
  • permutation_order_prob_sumFor every natural number n, the sum of permutation_order_prob n m over all m in permutation_orders n equals 1.

Read back from the Lean

permutation_order_prob n m is defined for natural numbers n and m as the real number obtained by dividing the number of permutations σ of Fin n (elements of Equiv.Perm (Fin n)) whose group order orderOf σ equals m by n!.

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 real probability that a uniformly random permutation in S_n has order m. -/
noncomputable def permutation_order_prob (n : ℕ) (m : ℕ) : ℝ := ((Finset.univ.filter (fun σ : Equiv.Perm (Fin n) => orderOf σ = m)).card : ℝ) / (n.factorial : ℝ)
See it in the graphDiscuss this resultChallenge it