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.Set.Lattice.Disjoint

15 declarations. Mathlib docs · Source

Disjoint indexed families of sets

This file studies indexed unions of disjoint families of sets. It includes criteria for an indexed or set-indexed union to be disjoint from another set, a complement formula for a partition, and the natural maps and equivalences between an indexed union and the corresponding dependent sum.

Disjoint sets

theorem Set.disjoint_iUnion_left E0 #

∀ {α : Type u_1} {t : Set α} {ι : Sort u_5} {s : ι → Set α}, Disjoint (⋃ i, s i) t ↔ ∀ (i : ι), Disjoint (s i) t

theorem Set.disjoint_iUnion_right E0 #

∀ {α : Type u_1} {t : Set α} {ι : Sort u_5} {s : ι → Set α}, Disjoint t (⋃ i, s i) ↔ ∀ (i : ι), Disjoint t (s i)

theorem Set.disjoint_iUnion₂_left E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} {s : (i : ι) → κ i → Set α} {t : Set α},
  Disjoint (⋃ i, ⋃ j, s i j) t ↔ ∀ (i : ι) (j : κ i), Disjoint (s i j) t

theorem Set.disjoint_iUnion₂_right E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} {s : Set α} {t : (i : ι) → κ i → Set α},
  Disjoint s (⋃ i, ⋃ j, t i j) ↔ ∀ (i : ι) (j : κ i), Disjoint s (t i j)

theorem Set.disjoint_sUnion_left E0 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, Disjoint (⋃₀ S) t ↔ ∀ s ∈ S, Disjoint s t

theorem Set.disjoint_sUnion_right E0 #

∀ {α : Type u_1} {s : Set α} {S : Set (Set α)}, Disjoint s (⋃₀ S) ↔ ∀ t ∈ S, Disjoint s t

theorem Set.biUnion_compl_eq_of_pairwise_disjoint_of_iUnion_eq_univ E1 #

∀ {α : Type u_1} {ι : Type u_5} {Es : ι → Set α},
  ⋃ i, Es i = Set.univ → (Pairwise fun i j ↦ Disjoint (Es i) (Es j)) → ∀ (I : Set ι), (⋃ i ∈ I, Es i)ᶜ = ⋃ i ∈ Iᶜ, Es i

def Set.sigmaToiUnion E1 #

{α : Type u_1} → {β : Type u_2} → (t : α → Set β) → (i : α) × ↑(t i) → ↑(⋃ i, t i)

If t is an indexed family of sets, then there is a natural map from Σ i, t i to ⋃ i, t i sending ⟨i, x⟩ to x.

theorem Set.sigmaToiUnion_surjective E1 #

∀ {α : Type u_1} {β : Type u_2} (t : α → Set β), Function.Surjective (Set.sigmaToiUnion t)

theorem Set.sigmaToiUnion_injective E1 #

∀ {α : Type u_1} {β : Type u_2} (t : α → Set β),
  Pairwise (Function.onFun Disjoint t) → Function.Injective (Set.sigmaToiUnion t)

theorem Set.sigmaToiUnion_bijective E1 #

∀ {α : Type u_1} {β : Type u_2} (t : α → Set β),
  Pairwise (Function.onFun Disjoint t) → Function.Bijective (Set.sigmaToiUnion t)

def Set.sigmaEquiv E1 #

{α : Type u_1} → {β : Type u_2} → (s : α → Set β) → (∀ (b : β), ∃! i, b ∈ s i) → (i : α) × ↑(s i) ≃ β

Equivalence from the disjoint union of a family of sets forming a partition of β, to β itself.

def Set.unionEqSigmaOfDisjoint E1 #

{α : Type u_1} →
  {β : Type u_2} → {t : α → Set β} → Pairwise (Function.onFun Disjoint t) → ↑(⋃ i, t i) ≃ (i : α) × ↑(t i)

Equivalence between a disjoint union and a dependent sum.

theorem Set.coe_unionEqSigmaOfDisjoint_symm_apply E0 #

∀ {α : Type u_5} {β : Type u_6} {t : α → Set β} (h : Pairwise (Function.onFun Disjoint t)) (x : (i : α) × ↑(t i)),
  ↑((Set.unionEqSigmaOfDisjoint h).symm x) = ↑x.snd

theorem Set.coe_snd_unionEqSigmaOfDisjoint E0 #

∀ {α : Type u_5} {β : Type u_6} {t : α → Set β} (h : Pairwise (Function.onFun Disjoint t)) (x : ↑(⋃ i, t i)),
  ↑((Set.unionEqSigmaOfDisjoint h) x).snd = ↑x