Permutations of Fin n #
This file supplements Mathlib's Mathlib.GroupTheory.Perm.Fin.
Main results #
Fin.coe_cycleRange: the value of the cycleFin.cycleRange i = (0 1 ⋯ i)atj, as a natural number, read off the comparison of the values ofjandi. UnlikeFin.cycleRange_applyit needs noNeZero ninstance, and both its case split and its result are stated on natural numbers, ready foromega.List.formPerm_finRange,Fin.formPerm_sort_univ: the cycle through the points ofFin nin increasing order is the rotationfinRotate n, that isi ↦ i + 1modulon.TauCeti.isCycleOn_finRotate: the rotationfinRotate nis a single cycle on all ofFin n.Equiv.Perm.sum_comp_symm_apply_zero: summing a function ofσ⁻¹ 0over all permutations ofFin (n + 1)counts each valuen!times.
@[simp]
The cycle through the points of Fin n, enumerated in increasing order by Finset.sort, is
the rotation i ↦ i + 1 modulo n.