Permutations #
This file defines finite permutations and related operations.
The type of finite permutations on a type ๐ธ.
- toFun : ๐ธ โ ๐ธ
The forward permutation.
- invFun : ๐ธ โ ๐ธ
The inverse permutation.
toFunis finitely supported.
Instances For
Equations
- NominalSets.Perm.instFunLike = { coe := NominalSets.Perm.toFun, coe_injective' := โฏ }
Equations
- NominalSets.Perm.instInv = { inv := fun (ฯ : NominalSets.Perm ๐ธ) => { toFun := ฯ.invFun, invFun := ฯ.toFun, right_inverse' := โฏ, left_inverse' := โฏ, has_supp' := โฏ } }
A simps projection for function coercion.
Equations
- NominalSets.Perm.Simps.coe ฯ = โฯ
Instances For
A simps projection for inverse function coercion.
Equations
- NominalSets.Perm.Simps.inv_coe ฯ = โฯโปยน
Instances For
Equations
- One or more equations did not get rendered due to their size.
The permutation that simply swaps two elements.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A sequence of pairs induces a permutation constructed as a sequences of swaps.
Equations
- NominalSets.Perm.seq [] = 1
- NominalSets.Perm.seq ((a, b) :: xs) = NominalSets.Perm.swap a b * NominalSets.Perm.seq xs