The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V05. Groups

Mathlib.GroupTheory.Perm.List

39 declarations. Mathlib docs · Source

def List.formPerm E1 #

{α : Type u_1} → [DecidableEq α] → List α → Equiv.Perm α

A list l : List α can be interpreted as an Equiv.Perm α where each element in the list is permuted to the next one, defined as formPerm. When we have that Nodup l, we prove that Equiv.Perm.support (formPerm l) = l.toFinset, and that formPerm l is rotationally invariant, in formPerm_rotate.

theorem List.formPerm_nil E0 #

∀ {α : Type u_1} [inst : DecidableEq α], [].formPerm = 1

theorem List.formPerm_singleton E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (x : α), [x].formPerm = 1

theorem List.formPerm_cons_cons E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (x y : α) (l : List α),
  (x :: y :: l).formPerm = Equiv.swap x y * (y :: l).formPerm

theorem List.formPerm_pair E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (x y : α), [x, y].formPerm = Equiv.swap x y

theorem List.mem_or_mem_of_zipWith_swap_prod_ne E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {l l' : List α} {x : α},
  (List.zipWith Equiv.swap l l').prod x ≠ x → x ∈ l ∨ x ∈ l'

theorem List.zipWith_swap_prod_support' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l l' : List α),
  {x | (List.zipWith Equiv.swap l l').prod x ≠ x} ⊆ ↑(l.toFinset ∪ l'.toFinset)

theorem List.zipWith_swap_prod_support E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] (l l' : List α),
  (List.zipWith Equiv.swap l l').prod.support ⊆ l.toFinset ∪ l'.toFinset

theorem List.support_formPerm_le' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), {x | l.formPerm x ≠ x} ⊆ ↑l.toFinset

theorem List.support_formPerm_le E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α) [inst_1 : Fintype α], l.formPerm.support ⊆ l.toFinset

theorem List.mem_of_formPerm_apply_ne E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {x : α}, l.formPerm x ≠ x → x ∈ l

theorem List.formPerm_apply_of_notMem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {x : α}, x ∉ l → l.formPerm x = x

theorem List.formPerm_apply_mem_of_mem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {x : α}, x ∈ l → l.formPerm x ∈ l

theorem List.mem_of_formPerm_apply_mem E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {x : α}, l.formPerm x ∈ l → x ∈ l

theorem List.formPerm_mem_iff_mem E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {l : List α} {x : α}, l.formPerm x ∈ l ↔ x ∈ l

theorem List.formPerm_cons_concat_apply_last E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (x y : α) (xs : List α), (x :: (xs ++ [y])).formPerm y = x

theorem List.formPerm_apply_getLast E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (x : α) (xs : List α), (x :: xs).formPerm ((x :: xs).getLast ⋯) = x

theorem List.formPerm_apply_getElem_length E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (x : α) (xs : List α), (x :: xs).formPerm (x :: xs)[xs.length] = x

theorem List.formPerm_apply_head E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (x y : α) (xs : List α), (x :: y :: xs).Nodup → (x :: y :: xs).formPerm x = y

theorem List.formPerm_apply_getElem_zero E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → ∀ (hl : 1 < l.length), l.formPerm l[0] = l[1]

theorem List.formPerm_eq_head_iff_eq_getLast E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α) (x y : α), (y :: l).formPerm x = y ↔ x = (y :: l).getLast ⋯

theorem List.formPerm_apply_lt_getElem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (xs : List α),
  xs.Nodup → ∀ (n : ℕ) (hn : n + 1 < xs.length), xs.formPerm xs[n] = xs[n + 1]

theorem List.formPerm_apply_getElem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (xs : List α),
  xs.Nodup → ∀ (i : ℕ) (h : i < xs.length), xs.formPerm xs[i] = xs[(i + 1) % xs.length]

theorem List.support_formPerm_of_nodup' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α),
  l.Nodup → (∀ (x : α), l ≠ [x]) → {x | l.formPerm x ≠ x} = ↑l.toFinset

theorem List.support_formPerm_of_nodup E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] (l : List α),
  l.Nodup → (∀ (x : α), l ≠ [x]) → l.formPerm.support = l.toFinset

theorem List.formPerm_rotate_one E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → (l.rotate 1).formPerm = l.formPerm

theorem List.formPerm_rotate E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → ∀ (n : ℕ), (l.rotate n).formPerm = l.formPerm

theorem List.formPerm_eq_of_isRotated E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {l l' : List α}, l.Nodup → l ~r l' → l.formPerm = l'.formPerm

theorem List.formPerm_append_pair E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α) (a b : α),
  (l ++ [a, b]).formPerm = (l ++ [a]).formPerm * Equiv.swap a b

theorem List.formPerm_reverse E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.reverse.formPerm = l.formPerm⁻¹

theorem List.formPerm_pow_apply_getElem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α),
  l.Nodup → ∀ (n i : ℕ) (h : i < l.length), (l.formPerm ^ n) l[i] = l[(i + n) % l.length]

theorem List.formPerm_pow_apply_head E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (x : α) (l : List α),
  (x :: l).Nodup → ∀ (n : ℕ), ((x :: l).formPerm ^ n) x = (x :: l)[n % (x :: l).length]

theorem List.formPerm_ext_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {x y x' y' : α} {l l' : List α},
  (x :: y :: l).Nodup →
    (x' :: y' :: l').Nodup → ((x :: y :: l).formPerm = (x' :: y' :: l').formPerm ↔ x :: y :: l ~r x' :: y' :: l')

theorem List.formPerm_apply_mem_eq_self_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → ∀ x ∈ l, l.formPerm x = x ↔ l.length ≤ 1

theorem List.formPerm_apply_mem_ne_self_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → ∀ x ∈ l, l.formPerm x ≠ x ↔ 2 ≤ l.length

theorem List.formPerm_eq_one_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → (l.formPerm = 1 ↔ l.length ≤ 1)

theorem List.formPerm_eq_formPerm_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {l l' : List α},
  l.Nodup → l'.Nodup → (l.formPerm = l'.formPerm ↔ l ~r l' ∨ l.length ≤ 1 ∧ l'.length ≤ 1)

theorem List.form_perm_zpow_apply_mem_imp_mem E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), ∀ x ∈ l, ∀ (n : ℤ), (l.formPerm ^ n) x ∈ l

theorem List.formPerm_pow_length_eq_one_of_nodup E1 #

∀ {α : Type u_1} [inst : DecidableEq α] (l : List α), l.Nodup → l.formPerm ^ l.length = 1