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/Finite.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.
Instances For
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.
Instances For
swapFactors represents a permutation as a product of a list of transpositions.
The representation is nonunique and depends on the linear order structure.
For types without linear order truncSwapFactors can be used.
Instances For
This computably represents the fact that any permutation can be represented as the product of a list of transpositions.
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.
Every finite symmetric group is generated by transpositions of adjacent elements.
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.
set of all pairs (⟨a, b⟩ : Σ a : fin n, fin n) such that b < a
Instances For
signAux σ is the sign of a permutation on Fin n, defined as the parity of the number of
pairs (x₁, x₂) such that x₂ < x₁ but σ x₁ ≤ σ x₂
Instances For
signBijAux f ⟨a, b⟩ returns the pair consisting of f a and f b in decreasing order.
Instances For
When the list l : List α contains all nonfixed points of the permutation f : Perm α,
signAux2 l f recursively calculates the sign of f.
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.
Instances For
If we apply prod_extendRight a (σ a) for all a : α in turn,
we get prod_congrRight σ.
Permutations of a given sign.