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 / V03. Sets, finite structures and big operators

Mathlib.Data.Sym.Basic

125 declarations. Mathlib docs · Source

Symmetric powers

This file defines symmetric powers of a type. The nth symmetric power consists of homogeneous n-tuples modulo permutations by the symmetric group.

The special case of 2-tuples is called the symmetric square, which is addressed in more detail in Data.Sym.Sym2.

TODO: This was created as supporting material for Sym2; it needs a fleshed-out interface.

Tags

symmetric powers

Combinatorial equivalences

theorem SymOptionSuccEquiv.decode.match_1.congr_eq_2 E1 #

∀ {α : Type u_1} {n : ℕ} (motive : Sym (Option α) n ⊕ Sym α n.succ → Sort u_2) (x : Sym (Option α) n ⊕ Sym α n.succ)
  (h_1 : (s : Sym (Option α) n) → motive (Sum.inl s)) (h_2 : (s : Sym α n.succ) → motive (Sum.inr s))
  (s : Sym α n.succ),
  x = Sum.inr s →
    (match x with
      | Sum.inl s => h_1 s
      | Sum.inr s => h_2 s) ≍
      h_2 s

theorem Sym.mk.congr_simp E1 #

∀ {α : Type u_1} {n : ℕ} (m m_1 : Multiset α) (e_m : m = m_1) (h : m.card = n), Sym.mk m h = Sym.mk m_1 ⋯

theorem Sym.erase.congr_simp E1 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s s_1 : Sym α (n + 1)) (e_s : s = s_1) (a a_1 : α) (e_a : a = a_1)
  (h : a ∈ s), s.erase a h = s_1.erase a_1 ⋯

theorem SymOptionSuccEquiv.decode.match_1.congr_eq_1 E1 #

∀ {α : Type u_1} {n : ℕ} (motive : Sym (Option α) n ⊕ Sym α n.succ → Sort u_2) (x : Sym (Option α) n ⊕ Sym α n.succ)
  (h_1 : (s : Sym (Option α) n) → motive (Sum.inl s)) (h_2 : (s : Sym α n.succ) → motive (Sum.inr s))
  (s : Sym (Option α) n),
  x = Sum.inl s →
    (match x with
      | Sum.inl s => h_1 s
      | Sum.inr s => h_2 s) ≍
      h_1 s

theorem Sym.cast.congr_simp E1 #

∀ {α : Type u_1} {n m : ℕ} (h : n = m), Sym.cast h = Sym.cast h

def Sym E1 #

Type u_1 → ℕ → Type (max 0 u_1)

The nth symmetric power is n-tuples up to permutation. We define it as a subtype of Multiset since these are well developed in the library. We also give a definition Sym.sym' in terms of vectors, and we show these are equivalent in Sym.symEquivSym'.

instance instDecidableEqSym E0 #

(α : Type u_1) → (n : ℕ) → [DecidableEq α] → DecidableEq (Sym α n)

def Sym.toMultiset E1 #

{α : Type u_1} → {n : ℕ} → Sym α n → Multiset α

The canonical map to Multiset α that forgets that s has length n

instance Sym.hasCoe E0 #

(α : Type u_1) → (n : ℕ) → CoeOut (Sym α n) (Multiset α)

abbrev List.Vector.Perm.isSetoid E1 #

(α : Type u_1) → (n : ℕ) → Setoid (List.Vector α n)

This is the List.Perm setoid lifted to Vector.

See note [reducible non-instances].

instance instDecidableRelVectorEquivOfDecidableEq E0 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → DecidableRel fun x1 x2 ↦ x1 ≈ x2

theorem Sym.coe_injective E0 #

∀ {α : Type u_1} {n : ℕ}, Function.Injective Sym.toMultiset

theorem Sym.coe_inj E0 #

∀ {α : Type u_1} {n : ℕ} {s₁ s₂ : Sym α n}, ↑s₁ = ↑s₂ ↔ s₁ = s₂

theorem Sym.ext_iff E0 #

∀ {α : Type u_1} {n : ℕ} {s₁ s₂ : Sym α n}, s₁ = s₂ ↔ ↑s₁ = ↑s₂

theorem Sym.ext E1 #

∀ {α : Type u_1} {n : ℕ} {s₁ s₂ : Sym α n}, ↑s₁ = ↑s₂ → s₁ = s₂

theorem Sym.val_eq_coe E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n), ↑s = ↑s

abbrev Sym.mk E1 #

{α : Type u_1} → {n : ℕ} → (m : Multiset α) → m.card = n → Sym α n

Construct an element of the nth symmetric power from a multiset of cardinality n.

def Sym.nil E1 #

{α : Type u_1} → Sym α 0

The unique element in Sym α 0.

theorem Sym.coe_nil E0 #

∀ {α : Type u_1}, ↑Sym.nil = 0

def Sym.cons E1 #

{α : Type u_1} → {n : ℕ} → α → Sym α n → Sym α n.succ

Inserts an element into the term of Sym α n, increasing the length by one.

def Sym.«term_::ₛ_» E1 #

Lean.TrailingParserDescr

Inserts an element into the term of Sym α n, increasing the length by one.

theorem Sym.cons_inj_right E0 #

∀ {α : Type u_1} {n : ℕ} (a : α) (s s' : Sym α n), a ::ₛ s = a ::ₛ s' ↔ s = s'

theorem Sym.cons_inj_left E0 #

∀ {α : Type u_1} {n : ℕ} (a a' : α) (s : Sym α n), a ::ₛ s = a' ::ₛ s ↔ a = a'

theorem Sym.cons_swap E1 #

∀ {α : Type u_1} {n : ℕ} (a b : α) (s : Sym α n), a ::ₛ b ::ₛ s = b ::ₛ a ::ₛ s

theorem Sym.coe_cons E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n) (a : α), ↑(a ::ₛ s) = a ::ₘ ↑s

def Sym.ofVector E1 #

{α : Type u_1} → {n : ℕ} → List.Vector α n → Sym α n

This is the quotient map that takes a list of n elements as an n-tuple and produces an nth symmetric power.

instance Sym.instCoeVector E0 #

{α : Type u_1} → {n : ℕ} → Coe (List.Vector α n) (Sym α n)

This is the quotient map that takes a list of n elements as an n-tuple and produces an nth symmetric power.

theorem Sym.ofVector_nil E0 #

∀ {α : Type u_1}, Sym.ofVector List.Vector.nil = Sym.nil

theorem Sym.ofVector_cons E0 #

∀ {α : Type u_1} {n : ℕ} (a : α) (v : List.Vector α n), Sym.ofVector (a ::ᵥ v) = a ::ₛ Sym.ofVector v

theorem Sym.card_coe E0 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α n}, (↑s).card = n

instance Sym.instMembership E0 #

{α : Type u_1} → {n : ℕ} → Membership α (Sym α n)

α ∈ s means that a appears as one of the factors in s.

instance Sym.decidableMem E0 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → (a : α) → (s : Sym α n) → Decidable (a ∈ s)

theorem Sym.coe_mk E0 #

∀ {α : Type u_1} {n : ℕ} (s : Multiset α) (h : s.card = n), ↑(Sym.mk s h) = s

theorem Sym.mem_mk E0 #

∀ {α : Type u_1} {n : ℕ} (a : α) (s : Multiset α) (h : s.card = n), a ∈ Sym.mk s h ↔ a ∈ s

theorem Sym.forall E1 #

∀ {α : Type u_1} {n : ℕ} {p : Sym α n → Prop},
  (∀ (s : Sym α n), p s) ↔ ∀ (s : Multiset α) (hs : s.card = n), p (Sym.mk s hs)

theorem Sym.exists E1 #

∀ {α : Type u_1} {n : ℕ} {p : Sym α n → Prop}, (∃ s, p s) ↔ ∃ s, ∃ (hs : s.card = n), p (Sym.mk s hs)

theorem Sym.notMem_nil E0 #

∀ {α : Type u_1} (a : α), a ∉ Sym.nil

theorem Sym.mem_cons E0 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α n} {a b : α}, a ∈ b ::ₛ s ↔ a = b ∨ a ∈ s

theorem Sym.mem_coe E0 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α n} {a : α}, a ∈ ↑s ↔ a ∈ s

theorem Sym.mem_cons_of_mem E0 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α n} {a b : α}, a ∈ s → a ∈ b ::ₛ s

theorem Sym.mem_cons_self E0 #

∀ {α : Type u_1} {n : ℕ} (a : α) (s : Sym α n), a ∈ a ::ₛ s

theorem Sym.cons_of_coe_eq E0 #

∀ {α : Type u_1} {n : ℕ} (a : α) (v : List.Vector α n), a ::ₛ Sym.ofVector v = Sym.ofVector (a ::ᵥ v)

theorem Sym.sound E1 #

∀ {α : Type u_1} {n : ℕ} {a b : List.Vector α n}, (↑a).Perm ↑b → Sym.ofVector a = Sym.ofVector b

def Sym.erase E1 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → (s : Sym α (n + 1)) → (a : α) → a ∈ s → Sym α n

erase s a h is the sym that subtracts 1 from the multiplicity of a if a is present in the sym.

theorem Sym.erase_mk E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (m : Multiset α) (hc : m.card = n + 1) (a : α) (h : a ∈ m),
  (Sym.mk m hc).erase a h = Sym.mk (m.erase a) ⋯

theorem Sym.coe_erase E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] {s : Sym α n.succ} {a : α} (h : a ∈ s), ↑(s.erase a h) = (↑s).erase a

theorem Sym.cons_erase E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] {s : Sym α n.succ} {a : α} (h : a ∈ s), a ::ₛ s.erase a h = s

theorem Sym.erase_cons_head E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s : Sym α n) (a : α) (h : optParam (a ∈ a ::ₛ s) ⋯),
  (a ::ₛ s).erase a h = s

def Sym.Sym' E1 #

Type u_3 → ℕ → Type u_3

Another definition of the nth symmetric power, using vectors modulo permutations. (See Sym.)

def Sym.cons' E1 #

{α : Type u_3} → {n : ℕ} → α → Sym.Sym' α n → Sym.Sym' α n.succ

This is cons but for the alternative Sym' definition.

def Sym.«term_::_» E1 #

Lean.TrailingParserDescr

This is cons but for the alternative Sym' definition.

def Sym.symEquivSym' E1 #

{α : Type u_3} → {n : ℕ} → Sym α n ≃ Sym.Sym' α n

Multisets of cardinality n are equivalent to length-n vectors up to permutations.

theorem Sym.cons_equiv_eq_equiv_cons E1 #

∀ (α : Type u_3) (n : ℕ) (a : α) (s : Sym α n), Sym.cons' a (Sym.symEquivSym' s) = Sym.symEquivSym' (a ::ₛ s)

instance Sym.instZeroSym E0 #

{α : Type u_1} → Zero (Sym α 0)

theorem Sym.toMultiset_zero E0 #

∀ {α : Type u_1}, ↑0 = 0

instance Sym.instEmptyCollectionOfNatNat E0 #

{α : Type u_1} → EmptyCollection (Sym α 0)

instance Sym.uniqueZero E0 #

{α : Type u_1} → Unique (Sym α 0)

def Sym.replicate E1 #

{α : Type u_1} → (n : ℕ) → α → Sym α n

replicate n a is the sym containing only a with multiplicity n.

theorem Sym.replicate_succ E1 #

∀ {α : Type u_1} {a : α} {n : ℕ}, Sym.replicate n.succ a = a ::ₛ Sym.replicate n a

theorem Sym.coe_replicate E0 #

∀ {α : Type u_1} {n : ℕ} {a : α}, ↑(Sym.replicate n a) = Multiset.replicate n a

theorem Sym.val_replicate E0 #

∀ {α : Type u_1} {n : ℕ} {a : α}, ↑(Sym.replicate n a) = Multiset.replicate n a

theorem Sym.mem_replicate E0 #

∀ {α : Type u_1} {n : ℕ} {a b : α}, b ∈ Sym.replicate n a ↔ n ≠ 0 ∧ b = a

theorem Sym.exists_mem E1 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n.succ), ∃ a, a ∈ s

theorem Sym.exists_cons_of_mem E1 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α (n + 1)} {a : α}, a ∈ s → ∃ t, s = a ::ₛ t

theorem Sym.exists_eq_cons_of_succ E1 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n.succ), ∃ a s', s = a ::ₛ s'

instance Sym.instSubsingleton E0 #

∀ {α : Type u_1} [Subsingleton α] (n : ℕ), Subsingleton (Sym α n)

instance Sym.inhabitedSym E0 #

{α : Type u_1} → [Inhabited α] → (n : ℕ) → Inhabited (Sym α n)

instance Sym.inhabitedSym' E0 #

{α : Type u_1} → [Inhabited α] → (n : ℕ) → Inhabited (Sym.Sym' α n)

instance Sym.instIsEmptySucc E0 #

∀ {α : Type u_1} (n : ℕ) [IsEmpty α], IsEmpty (Sym α n.succ)

instance Sym.instUnique E0 #

{α : Type u_1} → (n : ℕ) → [Unique α] → Unique (Sym α n)

theorem Sym.replicate_right_inj E1 #

∀ {α : Type u_1} {a b : α} {n : ℕ}, n ≠ 0 → (Sym.replicate n a = Sym.replicate n b ↔ a = b)

theorem Sym.replicate_right_injective E1 #

∀ {α : Type u_1} {n : ℕ}, n ≠ 0 → Function.Injective (Sym.replicate n)

instance Sym.instNontrivialHAddNatOfNat E0 #

∀ {α : Type u_1} (n : ℕ) [Nontrivial α], Nontrivial (Sym α (n + 1))

def Sym.map E1 #

{α : Type u_1} → {β : Type u_2} → {n : ℕ} → (α → β) → Sym α n → Sym β n

A function α → β induces a function Sym α n → Sym β n by applying it to every element of the underlying n-tuple.

theorem Sym.mem_map E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} {f : α → β} {b : β} {l : Sym α n}, b ∈ Sym.map f l ↔ ∃ a ∈ l, f a = b

theorem Sym.map_id' E0 #

∀ {α : Type u_3} {n : ℕ} (s : Sym α n), Sym.map (fun x ↦ x) s = s

Note: Sym.map_id is not simp-normal, as simp ends up unfolding id with Sym.map_congr

theorem Sym.map_id E0 #

∀ {α : Type u_3} {n : ℕ} (s : Sym α n), Sym.map id s = s

theorem Sym.map_map E0 #

∀ {α : Type u_3} {β : Type u_4} {γ : Type u_5} {n : ℕ} (g : β → γ) (f : α → β) (s : Sym α n),
  Sym.map g (Sym.map f s) = Sym.map (g ∘ f) s

theorem Sym.map_zero E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), Sym.map f 0 = 0

theorem Sym.map_cons E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} (f : α → β) (a : α) (s : Sym α n), Sym.map f (a ::ₛ s) = f a ::ₛ Sym.map f s

theorem Sym.map_congr E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} {f g : α → β} {s s' : Sym α n},
  s = s' → (∀ x ∈ s, f x = g x) → Sym.map f s = Sym.map g s'

theorem Sym.map_mk E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} {f : α → β} {m : Multiset α} {hc : m.card = n},
  Sym.map f (Sym.mk m hc) = Sym.mk (Multiset.map f m) ⋯

theorem Sym.coe_map E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} (s : Sym α n) (f : α → β), ↑(Sym.map f s) = Multiset.map f ↑s

theorem Sym.map_injective E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Injective f → ∀ (n : ℕ), Function.Injective (Sym.map f)

def Sym.equivCongr E1 #

{α : Type u_1} → {β : Type u_2} → {n : ℕ} → α ≃ β → Sym α n ≃ Sym β n

Mapping an equivalence α ≃ β using Sym.map gives an equivalence between Sym α n and Sym β n.

theorem Sym.equivCongr_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} (e : α ≃ β) (x : Sym α n), (Sym.equivCongr e) x = Sym.map (⇑e) x

theorem Sym.equivCongr_symm_apply E0 #

∀ {α : Type u_1} {β : Type u_2} {n : ℕ} (e : α ≃ β) (x : Sym β n), (Sym.equivCongr e).symm x = Sym.map (⇑e.symm) x

def Sym.attach E1 #

{α : Type u_1} → {n : ℕ} → (s : Sym α n) → Sym { x // x ∈ s } n

"Attach" a proof that a ∈ s to each element a in s to produce an element of the symmetric power on {x // x ∈ s}.

theorem Sym.attach_mk E0 #

∀ {α : Type u_1} {n : ℕ} {m : Multiset α} {hc : m.card = n}, (Sym.mk m hc).attach = Sym.mk m.attach ⋯

theorem Sym.coe_attach E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n), ↑s.attach = (↑s).attach

theorem Sym.attach_map_coe E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n), Sym.map Subtype.val s.attach = s

theorem Sym.mem_attach E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n) (x : { x // x ∈ s }), x ∈ s.attach

theorem Sym.attach_nil E0 #

∀ {α : Type u_1}, Sym.nil.attach = Sym.nil

theorem Sym.attach_cons E0 #

∀ {α : Type u_1} {n : ℕ} (x : α) (s : Sym α n), (x ::ₛ s).attach = ⟨x, ⋯⟩ ::ₛ Sym.map (fun x_1 ↦ ⟨↑x_1, ⋯⟩) s.attach

def Sym.cast E1 #

{α : Type u_1} → {n m : ℕ} → n = m → Sym α n ≃ Sym α m

Change the length of a Sym using an equality. The simp-normal form is for the cast to be pushed outward.

theorem Sym.cast_rfl E0 #

∀ {α : Type u_1} {n : ℕ} {s : Sym α n}, (Sym.cast ⋯) s = s

theorem Sym.cast_cast E0 #

∀ {α : Type u_1} {n n' : ℕ} {s : Sym α n} {n'' : ℕ} (h : n = n') (h' : n' = n''),
  (Sym.cast h') ((Sym.cast h) s) = (Sym.cast ⋯) s

theorem Sym.coe_cast E0 #

∀ {α : Type u_1} {n m : ℕ} {s : Sym α n} (h : n = m), ↑((Sym.cast h) s) = ↑s

theorem Sym.mem_cast E0 #

∀ {α : Type u_1} {n m : ℕ} {s : Sym α n} {a : α} (h : n = m), a ∈ (Sym.cast h) s ↔ a ∈ s

def Sym.append E1 #

{α : Type u_1} → {n n' : ℕ} → Sym α n → Sym α n' → Sym α (n + n')

Append a pair of Sym terms.

theorem Sym.append_inj_right E0 #

∀ {α : Type u_1} {n n' : ℕ} (s : Sym α n) {t t' : Sym α n'}, s.append t = s.append t' ↔ t = t'

theorem Sym.append_inj_left E0 #

∀ {α : Type u_1} {n n' : ℕ} {s s' : Sym α n} (t : Sym α n'), s.append t = s'.append t ↔ s = s'

theorem Sym.append_comm E1 #

∀ {α : Type u_1} {n' : ℕ} (s s' : Sym α n'), s.append s' = (Sym.cast ⋯) (s'.append s)

theorem Sym.coe_append E0 #

∀ {α : Type u_1} {n n' : ℕ} (s : Sym α n) (s' : Sym α n'), ↑(s.append s') = ↑s + ↑s'

theorem Sym.mem_append_iff E0 #

∀ {α : Type u_1} {n m : ℕ} {s : Sym α n} {a : α} {s' : Sym α m}, a ∈ s.append s' ↔ a ∈ s ∨ a ∈ s'

def Sym.oneEquiv E1 #

{α : Type u_1} → α ≃ Sym α 1

a ↦ {a} as an equivalence between α and Sym α 1.

theorem Sym.oneEquiv_apply E0 #

∀ {α : Type u_1} (a : α), Sym.oneEquiv a = ⟨{a}, ⋯⟩

def Sym.fill E1 #

{α : Type u_1} → {n : ℕ} → α → (i : Fin (n + 1)) → Sym α (n - ↑i) → Sym α n

Fill a term m : Sym α (n - i) with i copies of a to obtain a term of Sym α n. This is a convenience wrapper for m.append (replicate i a) that adjusts the term using Sym.cast.

theorem Sym.coe_fill E0 #

∀ {α : Type u_1} {n : ℕ} {a : α} {i : Fin (n + 1)} {m : Sym α (n - ↑i)},
  ↑(Sym.fill a i m) = ↑m + ↑(Sym.replicate (↑i) a)

theorem Sym.mem_fill_iff E0 #

∀ {α : Type u_1} {n : ℕ} {a b : α} {i : Fin (n + 1)} {s : Sym α (n - ↑i)}, a ∈ Sym.fill b i s ↔ ↑i ≠ 0 ∧ a = b ∨ a ∈ s

def Sym.filterNe E1 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → α → Sym α n → (i : Fin (n + 1)) × Sym α (n - ↑i)

Remove every a from a given Sym α n. Yields the number of copies i and a term of Sym α (n - i).

theorem Sym.sigma_sub_ext E1 #

∀ {α : Type u_1} {n : ℕ} {m₁ m₂ : (i : Fin (n + 1)) × Sym α (n - ↑i)}, ↑m₁.snd = ↑m₂.snd → m₁ = m₂

theorem Sym.fill_filterNe E1 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (a : α) (m : Sym α n),
  Sym.fill a (Sym.filterNe a m).fst (Sym.filterNe a m).snd = m

theorem Sym.filter_ne_fill E1 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (a : α) (m : (i : Fin (n + 1)) × Sym α (n - ↑i)),
  a ∉ m.snd → Sym.filterNe a (Sym.fill a m.fst m.snd) = m

theorem Sym.count_coe_fill_self_of_notMem E1 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] {a : α} {i : Fin (n + 1)} {s : Sym α (n - ↑i)},
  a ∉ s → Multiset.count a ↑(Sym.fill a i s) = ↑i

theorem Sym.count_coe_fill_of_ne E1 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] {a x : α} {i : Fin (n + 1)} {s : Sym α (n - ↑i)},
  x ≠ a → Multiset.count x ↑(Sym.fill a i s) = Multiset.count x ↑s

def SymOptionSuccEquiv.encode E1 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → Sym (Option α) n.succ → Sym (Option α) n ⊕ Sym α n.succ

Function from the symmetric product over Option splitting on whether or not it contains a none.

theorem SymOptionSuccEquiv.encode_of_none_mem E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s : Sym (Option α) n.succ) (h : none ∈ s),
  SymOptionSuccEquiv.encode s = Sum.inl (s.erase none h)

theorem SymOptionSuccEquiv.encode_of_none_notMem E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s : Sym (Option α) n.succ) (h : none ∉ s),
  SymOptionSuccEquiv.encode s = Sum.inr (Sym.map (fun o ↦ (↑o).get ⋯) s.attach)

def SymOptionSuccEquiv.decode E1 #

{α : Type u_1} → {n : ℕ} → Sym (Option α) n ⊕ Sym α n.succ → Sym (Option α) n.succ

Inverse of Sym_option_succ_equiv.decode.

theorem SymOptionSuccEquiv.decode_inl E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym (Option α) n), SymOptionSuccEquiv.decode (Sum.inl s) = none ::ₛ s

theorem SymOptionSuccEquiv.decode_inr E0 #

∀ {α : Type u_1} {n : ℕ} (s : Sym α n.succ),
  SymOptionSuccEquiv.decode (Sum.inr s) = Sym.map (⇑Function.Embedding.some) s

theorem SymOptionSuccEquiv.decode_encode E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s : Sym (Option α) n.succ),
  SymOptionSuccEquiv.decode (SymOptionSuccEquiv.encode s) = s

theorem SymOptionSuccEquiv.encode_decode E0 #

∀ {α : Type u_1} {n : ℕ} [inst : DecidableEq α] (s : Sym (Option α) n ⊕ Sym α n.succ),
  SymOptionSuccEquiv.encode (SymOptionSuccEquiv.decode s) = s

def symOptionSuccEquiv E1 #

{α : Type u_1} → {n : ℕ} → [DecidableEq α] → Sym (Option α) n.succ ≃ Sym (Option α) n ⊕ Sym α n.succ

The symmetric product over Option is a disjoint union over simpler symmetric products.