perm_computable_order
def
The computable order of a permutation of Fin n: the least k+1 (with k < n!) such that σ^(k+1) = 1, or 1 if no such k exists. Since n! annihilates every permutation and n! is nonzero, this always returns the true element order.
Statement
def perm_computable_order (n : ℕ) (σ : Equiv.Perm (Fin n)) : ℕ- Source
- step towards op_2274_odd_even_permutation_mean_order_conjecture
- Verified
- 29 Nov 2026
- Axioms
- none listed
Lean source view module on GitHub
/-- Computable mirror of `orderOf` for permutations of `Fin n`: least `k + 1 ≤ n!` with `σ ^ (k+1) = 1`. -/ def perm_computable_order (n : ℕ) (σ : Equiv.Perm (Fin n)) : ℕ := let s := (Finset.range n.factorial).filter (fun k => σ ^ (k+1) = 1) if h : s.Nonempty then s.min' h + 1 else 1