The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Fintype.Perm
17 declarations. Mathlib docs · Source
Fintype instances for Equiv and Perm
Main declarations:
permsOfFinset s: The finset of permutations of the finsets.
theorem permsOfList.match_1.congr_eq_2 E1 #
∀ {α : Type u_1} (motive : List α → Sort u_2) (x : List α) (h_1 : Unit → motive [])
(h_2 : (a : α) → (l : List α) → motive (a :: l)) (a : α) (l : List α),
x = a :: l →
(match x with
| [] => h_1 ()
| a :: l => h_2 a l) ≍
h_2 a l
theorem permsOfList.match_1.congr_eq_1 E1 #
∀ {α : Type u_1} (motive : List α → Sort u_2) (x : List α) (h_1 : Unit → motive [])
(h_2 : (a : α) → (l : List α) → motive (a :: l)),
x = [] →
(match x with
| [] => h_1 ()
| a :: l => h_2 a l) ≍
h_1 ()
def permsOfList E1 #
{α : Type u_1} → [DecidableEq α] → List α → List (Equiv.Perm α)
Given a list, produce a list of all permutations of its elements.
theorem length_permsOfList E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), (permsOfList l).length = l.length.factorial
theorem mem_permsOfList_of_mem E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {f : Equiv.Perm α},
(∀ (x : α), f x ≠ x → x ∈ l) → f ∈ permsOfList l
theorem mem_of_mem_permsOfList E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {f : Equiv.Perm α}, f ∈ permsOfList l → ∀ {x : α}, f x ≠ x → x ∈ l
theorem mem_permsOfList_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {f : Equiv.Perm α}, f ∈ permsOfList l ↔ ∀ {x : α}, f x ≠ x → x ∈ l
theorem nodup_permsOfList E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {l : List α}, l.Nodup → (permsOfList l).Nodup
def permsOfFinset E1 #
{α : Type u_1} → [DecidableEq α] → Finset α → Finset (Equiv.Perm α)
Given a finset, produce the finset of all permutations of its elements.
theorem mem_perms_of_finset_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] {s : Finset α} {f : Equiv.Perm α},
f ∈ permsOfFinset s ↔ ∀ {x : α}, f x ≠ x → x ∈ s
theorem card_perms_of_finset E1 #
∀ {α : Type u_1} [inst : DecidableEq α] (s : Finset α), (permsOfFinset s).card = s.card.factorial
def fintypePerm E1 #
{α : Type u_1} → [DecidableEq α] → [Fintype α] → Fintype (Equiv.Perm α)
The collection of permutations of a fintype is a fintype.
instance Equiv.instFintype E0 #
{α : Type u_1} → {β : Type u_2} → [DecidableEq α] → [DecidableEq β] → [Fintype α] → [Fintype β] → Fintype (α ≃ β)
instance AddEquiv.instFintype E0 #
{α : Type u_3} →
{β : Type u_4} →
[inst : Add α] → [inst_1 : Add β] → [DecidableEq α] → [DecidableEq β] → [Fintype α] → [Fintype β] → Fintype (α ≃+ β)
instance MulEquiv.instFintype E0 #
{α : Type u_3} →
{β : Type u_4} →
[inst : Mul α] → [inst_1 : Mul β] → [DecidableEq α] → [DecidableEq β] → [Fintype α] → [Fintype β] → Fintype (α ≃* β)
theorem Fintype.card_perm E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α], Fintype.card (Equiv.Perm α) = (Fintype.card α).factorial
theorem Fintype.card_equiv E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq α] [inst_1 : DecidableEq β] [inst_2 : Fintype α]
[inst_3 : Fintype β] (e : α ≃ β), Fintype.card (α ≃ β) = (Fintype.card α).factorial