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 / V04. Order and lattices

Mathlib.Order.Hom.PowersetCard

11 declarations. Mathlib docs · Source

def Set.powersetCard.ofFinEmbEquiv E1 #

{n : ℕ} → {I : Type u_1} → [inst : LinearOrder I] → Fin n ↪o I ≃ ↑(Set.powersetCard I n)

The isomorphism of OrderEmbeddings from Fin n into I with Set.powersetCard I n when I is linearly ordered.

theorem Set.powersetCard.ofFinEmbEquiv_apply E0 #

∀ {n : ℕ} {I : Type u_1} [inst : LinearOrder I] (f : Fin n ↪o I),
  Set.powersetCard.ofFinEmbEquiv f = Set.powersetCard.ofFinEmb n I f.toEmbedding

theorem Set.powersetCard.ofFinEmbEquiv_symm_apply E0 #

∀ {n : ℕ} {I : Type u_1} [inst : LinearOrder I] (s : ↑(Set.powersetCard I n)),
  Set.powersetCard.ofFinEmbEquiv.symm s = (↑s).orderEmbOfFin ⋯

theorem Set.powersetCard.mem_ofFinEmbEquiv_iff_mem_range E0 #

∀ {n : ℕ} {I : Type u_1} [inst : LinearOrder I] (f : Fin n ↪o I) (i : I),
  i ∈ Set.powersetCard.ofFinEmbEquiv f ↔ i ∈ Set.range ⇑f

theorem Set.powersetCard.mem_range_ofFinEmbEquiv_symm_iff_mem E0 #

∀ {n : ℕ} {I : Type u_1} [inst : LinearOrder I] (s : ↑(Set.powersetCard I n)) (i : I),
  i ∈ Set.range ⇑(Set.powersetCard.ofFinEmbEquiv.symm s) ↔ i ∈ s

def Set.powersetCard.orderIsoOfFin E1 #

{I : Type u_1} → [inst : LinearOrder I] → {n : ℕ} → (s : ↑(Set.powersetCard I n)) → Fin n ≃o ↥↑s

The natural enumeration of the elements of linearly-ordered type.

theorem Set.powersetCard.orderIsoOfFin_apply_coe E0 #

∀ {I : Type u_1} [inst : LinearOrder I] {n : ℕ} (s : ↑(Set.powersetCard I n)) (a : Fin n),
  ↑((Set.powersetCard.orderIsoOfFin s) a) = ((↑s).sort fun a b ↦ a ≤ b)[↑a]

theorem Set.powersetCard.orderIsoOfFin_symm_apply_val E0 #

∀ {I : Type u_1} [inst : LinearOrder I] {n : ℕ} (s : ↑(Set.powersetCard I n)) (a : ↥↑s),
  ↑((RelIso.symm (Set.powersetCard.orderIsoOfFin s)) a) =
    List.idxOf (↑(({x | x ∈ (↑s).sort fun x1 x2 ↦ x1 ≤ x2}.orderIsoOfEq ↑s ⋯).symm a)) ((↑s).sort fun a b ↦ a ≤ b)

def Set.powersetCard.permOfDisjoint E1 #

{I : Type u_1} →
  [LinearOrder I] →
    {m n : ℕ} →
      {s : ↑(Set.powersetCard I m)} → {t : ↑(Set.powersetCard I n)} → Disjoint ↑s ↑t → Equiv.Perm (Fin (m + n))

The permutation of Fin (m + n) corresponding to adjoining a Finset of card m to a Finset of card n and sorting the resulting set. In other words, given s₁ < s₂ < ⋯ < sₘ and t₁ < t₂ < ⋯ < tₙ (disjoint) this is the permutation obtained by sorting s₁, s₂, …, sₘ, t₁, t₂, …, tₙ.

def Set.powersetCard.sign E1 #

{n : ℕ} → {I : Type u_1} → [LinearOrder I] → [Fintype I] → ↑(Set.powersetCard I n) → ℤˣ

A subset s of a linearly-ordered finite type I, determines a permutation of I by moving all these terms of s to the front. This is the sign of that permutation.

theorem Set.powersetCard.sign_eq_permOfDisjoint_sign E1 #

∀ {n : ℕ} {I : Type u_1} [inst : LinearOrder I] [inst_1 : Fintype I] {m : ℕ},
  n + m = Fintype.card I →
    ∀ (s : ↑(Set.powersetCard I n)) (t : ↑(Set.powersetCard I m)) (hst : Disjoint ↑s ↑t),
      Set.powersetCard.sign s = Equiv.Perm.sign (Set.powersetCard.permOfDisjoint hst)