Decomposing finite embeddings into subsets and permutations #
Every embedding f : Fin m ↪ α into a linear order α decomposes uniquely into its image
m-subset S = Finset.univ.image f and a permutation π : Equiv.Perm (Fin m) describing the
order in which f enumerates S relative to the canonical order embedding S.orderEmbOfFin.
Main definitions #
Finset.orderSubset: order anm-element subsetSofαby a permutationπ.Finset.embSetPermEquiv: bijection between embeddingsFin m ↪ αand pairs(S, π)of a size-msubset and a permutation ofFin m.
Main results #
Finset.orderSubset_apply: evaluation oforderSubset S hS π.Finset.image_orderSubset: the image oforderSubset S hS πisS.Finset.card_image_orderSubset: the cardinality of the image oforderSubsetism.Finset.orderSubset_congr: congruence fororderSubsetunder equal sets and permutations.Finset.embSetPermEquiv_symm_apply: the inverse ofembSetPermEquivisorderSubset.Finset.embSetPermEquiv_fst: the first component underembSetPermEquivis the image finset.Finset.orderSubset_eq_of_embSetPermEquiv_fst: recover an embedding from its first component.Finset.image_perm_trans: the image finset is invariant under permuting the domain.Finset.embSetPermEquiv_perm_trans: composition with a permutation transforms the second component.
def Finset.orderSubset {α : Type u_1} [LinearOrder α] {m : ℕ} (S : Finset α) (hS : S.card = m) (π : Equiv.Perm (Fin m)) :
Order an m-element subset S of α by permutation π : Equiv.Perm (Fin m).
@[simp]
theorem Finset.orderSubset_apply {α : Type u_1} [LinearOrder α] {m : ℕ} (S : Finset α) (hS : S.card = m) (π : Equiv.Perm (Fin m)) (r : Fin m) :
@[simp]
theorem Finset.image_orderSubset {α : Type u_1} [LinearOrder α] {m : ℕ} (S : Finset α) (hS : S.card = m) (π : Equiv.Perm (Fin m)) :
theorem Finset.card_image_orderSubset {α : Type u_1} [LinearOrder α] {m : ℕ} (S : Finset α) (hS : S.card = m) (π : Equiv.Perm (Fin m)) :
theorem Finset.orderSubset_congr {α : Type u_1} [LinearOrder α] {m : ℕ} {S₁ S₂ : Finset α} {h₁ : S₁.card = m} {h₂ : S₂.card = m} {π₁ π₂ : Equiv.Perm (Fin m)} (hS : S₁ = S₂) (hπ : π₁ = π₂) :
@[simp]
theorem Finset.embSetPermEquiv_symm_apply {α : Type u_2} [Fintype α] [LinearOrder α] (m : ℕ) (S : { S : Finset α // S.card = m }) (π : Equiv.Perm (Fin m)) :
@[simp]
theorem Finset.embSetPermEquiv_fst {α : Type u_2} [Fintype α] [LinearOrder α] (m : ℕ) (f : Fin m ↪ α) :
theorem Finset.orderSubset_eq_of_embSetPermEquiv_fst {α : Type u_2} [Fintype α] [LinearOrder α] {m : ℕ} {f : Fin m ↪ α} {S : Finset α} {hS : S.card = m} (hf : ((embSetPermEquiv α m) f).1 = ⟨S, hS⟩) :
theorem Finset.image_perm_trans {α : Type u_2} [DecidableEq α] {m : ℕ} (γp : Equiv.Perm (Fin m)) (f : Fin m ↪ α) :
theorem Finset.embSetPermEquiv_perm_trans {α : Type u_2} [Fintype α] [LinearOrder α] {m : ℕ} (γp : Equiv.Perm (Fin m)) (f : Fin m ↪ α) :
((embSetPermEquiv α m) ((Equiv.toEmbedding γp).trans f)).2 = Equiv.trans γp ((embSetPermEquiv α m) f).2