Reversing one cycle of a permutation #
Equiv.Perm.reverseCycle σ x is the permutation that runs the cycle of σ through x
backwards and agrees with σ everywhere else: it sends y to σ⁻¹ y when y is on the cycle of
x and to σ y otherwise. It is σ * c⁻¹ * c⁻¹ for c = σ.cycleOf x, so it has the same sign
as σ (Equiv.Perm.sign_reverseCycle). It has the same cycles as sets
(Equiv.Perm.support_cycleOf_reverseCycle), reversing twice gives back σ
(Equiv.Perm.reverseCycle_reverseCycle), and it differs from σ when the cycle has odd
length (Equiv.Perm.reverseCycle_ne), since a cycle equals its reverse only when it has
length 2.
This is the involution behind the standard cancellation of the permutations with an odd cycle
in the Leibniz expansion of the determinant of a skew-symmetric matrix, the step in the proof of
Tutte's determinant criterion for perfect matchings [Tut47]. The last result restates "all
cycles have even length" through Equiv.Perm.cycleType (Equiv.Perm.forall_even_cycleType_iff).
Main definitions #
Equiv.Perm.reverseCycle: reverse the cycle ofσthroughx.
Main results #
Equiv.Perm.reverseCycle_apply: the values of the reversed permutation.Equiv.Perm.sign_reverseCycle: reversing a cycle preserves the sign.Equiv.Perm.support_cycleOf_reverseCycle: reversing a cycle preserves every cycle as a set.Equiv.Perm.reverseCycle_reverseCycle: reversing twice is the identity.Equiv.Perm.reverseCycle_ne: reversing a cycle of odd length changes the permutation.Equiv.Perm.forall_even_cycleType_iff: all cycle lengths are even exactly when the support of everycycleOfhas even size.
References #
Reverse the cycle of σ through x: the result sends y to σ⁻¹ y on that cycle and to
σ y elsewhere (Equiv.Perm.reverseCycle_apply).
Reversing a cycle preserves the sign.
Reversing a cycle preserves the relation of lying on a common cycle.
Reversing a cycle preserves the support.
Reversing a cycle preserves every cycle as a set.
Reversing the same cycle twice gives back the permutation.
Reversing a cycle of odd length changes the permutation.
All cycle lengths of σ are even exactly when the cycle of every point has a support of even
size (fixed points have empty cycleOf support).