Sign of a permutation #
The main definition of this file is Equiv.Perm.sign
,
associating a ℤˣ
sign with a permutation.
Other lemmas have been moved to Mathlib/GroupTheory/Perm/Fintype.lean
modSwap i j
contains permutations up to swapping i
and j
.
We use this to partition permutations in Matrix.det_zero_of_row_eq
, such that each partition
sums up to 0
.
Equations
Instances For
Equations
Given a list l : List α
and a permutation f : Perm α
such that the nonfixed points of f
are in l
, recursively factors f
as a product of transpositions.
Equations
Instances For
swapFactors
represents a permutation as a product of a list of transpositions.
The representation is non unique and depends on the linear order structure.
For types without linear order truncSwapFactors
can be used.
Equations
Instances For
An induction principle for permutations. If P
holds for the identity permutation, and
is preserved under composition with a non-trivial swap, then P
holds for all permutations.
Like swap_induction_on
, but with the composition on the right of f
.
An induction principle for permutations. If motive
holds for the identity permutation, and
is preserved under composition with a non-trivial swap, then motive
holds for all permutations.
signBijAux f ⟨a, b⟩
returns the pair consisting of f a
and f b
in decreasing order.
Equations
Instances For
SignType.sign
of a permutation returns the signature or parity of a permutation, 1
for even
permutations, -1
for odd permutations. It is the unique surjective group homomorphism from
Perm α
to the group with two elements.
Equations
Instances For
If we apply prod_extendRight a (σ a)
for all a : α
in turn,
we get prod_congrRight σ
.
Permutations of a given sign.