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.Pairwise.Lattice

20 declarations and 1 deprecated aliases. Mathlib docs · Source

theorem Set.equivOfEq.congr_simp E1 #

∀ {α : Type u_1} {s t : Set α} (h : s = t), Set.equivOfEq h = Set.equivOfEq h

theorem Set.pairwise_iUnion E1 #

∀ {α : Type u_1} {κ : Sort u_4} {r : α → α → Prop} {f : κ → Set α},
  Directed (fun x1 x2 ↦ x1 ⊆ x2) f → ((⋃ n, f n).Pairwise r ↔ ∀ (n : κ), (f n).Pairwise r)

theorem Set.pairwise_iUnion₂ E1 #

∀ {α : Type u_1} {s : Set (Set α)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → ∀ (r : α → α → Prop), (∀ a ∈ s, a.Pairwise r) → (⋃ a ∈ s, a).Pairwise r

theorem Set.pairwise_iUnion₂_iff E0 #

∀ {α : Type u_1} {r : α → α → Prop} {s : Set (Set α)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → ((⋃ a ∈ s, a).Pairwise r ↔ ∀ a ∈ s, a.Pairwise r)

theorem Set.pairwise_sUnion E1 #

∀ {α : Type u_1} {r : α → α → Prop} {s : Set (Set α)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → ((⋃₀ s).Pairwise r ↔ ∀ a ∈ s, a.Pairwise r)

theorem Set.pairwiseDisjoint_iUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {ι' : Type u_3} [inst : PartialOrder α] [inst_1 : OrderBot α] {f : ι → α}
  {g : ι' → Set ι},
  Directed (fun x1 x2 ↦ x1 ⊆ x2) g → ((⋃ n, g n).PairwiseDisjoint f ↔ ∀ ⦃n : ι'⦄, (g n).PairwiseDisjoint f)

theorem Set.pairwiseDisjoint_sUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} [inst : PartialOrder α] [inst_1 : OrderBot α] {f : ι → α} {s : Set (Set ι)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) s → ((⋃₀ s).PairwiseDisjoint f ↔ ∀ ⦃a : Set ι⦄, a ∈ s → a.PairwiseDisjoint f)

theorem Set.PairwiseDisjoint.biUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {ι' : Type u_3} [inst : CompleteLattice α] {s : Set ι'} {g : ι' → Set ι} {f : ι → α},
  (s.PairwiseDisjoint fun i' ↦ ⨆ i ∈ g i', f i) →
    (∀ i ∈ s, (g i).PairwiseDisjoint f) → (⋃ i ∈ s, g i).PairwiseDisjoint f

Bind operation for Set.PairwiseDisjoint. If you want to only consider finsets of indices, you can use Set.PairwiseDisjoint.biUnion_finset.

theorem Set.PairwiseDisjoint.prod_left E1 #

∀ {α : Type u_1} {ι : Type u_2} {ι' : Type u_3} [inst : CompleteLattice α] {s : Set ι} {t : Set ι'} {f : ι × ι' → α},
  (s.PairwiseDisjoint fun i ↦ ⨆ i' ∈ t, f (i, i')) →
    (t.PairwiseDisjoint fun i' ↦ ⨆ i ∈ s, f (i, i')) → (s ×ˢ t).PairwiseDisjoint f

If the suprema of columns are pairwise disjoint and suprema of rows as well, then everything is pairwise disjoint. Not to be confused with Set.PairwiseDisjoint.prod.

theorem Set.pairwiseDisjoint_prod_left E1 #

∀ {α : Type u_1} {ι : Type u_2} {ι' : Type u_3} [inst : Order.Frame α] {s : Set ι} {t : Set ι'} {f : ι × ι' → α},
  (s ×ˢ t).PairwiseDisjoint f ↔
    (s.PairwiseDisjoint fun i ↦ ⨆ i' ∈ t, f (i, i')) ∧ t.PairwiseDisjoint fun i' ↦ ⨆ i ∈ s, f (i, i')

theorem Set.biUnion_sdiff_biUnion_eq E0 #

∀ {α : Type u_1} {ι : Type u_2} {s t : Set ι} {f : ι → Set α},
  (s ∪ t).PairwiseDisjoint f → (⋃ i ∈ s, f i) \ ⋃ i ∈ t, f i = ⋃ i ∈ s \ t, f i

def Set.biUnionEqSigmaOfDisjoint E1 #

{α : Type u_1} →
  {ι : Type u_2} → {s : Set ι} → {f : ι → Set α} → s.PairwiseDisjoint f → ↑(⋃ i ∈ s, f i) ≃ (i : ↑s) × ↑(f ↑i)

Equivalence between a disjoint bounded union and a dependent sum.

theorem Set.coe_biUnionEqSigmaOfDisjoint_symm_apply E0 #

∀ {α : Type u_5} {ι : Type u_6} {s : Set ι} {f : ι → Set α} (h : s.PairwiseDisjoint f) (x : (i : ↑s) × ↑(f ↑i)),
  ↑((Set.biUnionEqSigmaOfDisjoint h).symm x) = ↑x.snd

theorem Set.coe_snd_biUnionEqSigmaOfDisjoint E0 #

∀ {α : Type u_5} {ι : Type u_6} {s : Set ι} {f : ι → Set α} (h : s.PairwiseDisjoint f) (x : ↑(⋃ i ∈ s, f i)),
  ↑((Set.biUnionEqSigmaOfDisjoint h) x).snd = ↑x

theorem Set.pairwiseDisjoint_iff E0 #

∀ {α : Type u_1} {ι : Type u_2} {f : ι → Set α} {s : Set ι},
  s.PairwiseDisjoint f ↔ ∀ ⦃i : ι⦄, i ∈ s → ∀ ⦃j : ι⦄, j ∈ s → (f i ∩ f j).Nonempty → i = j

theorem Set.pairwiseDisjoint_pair_insert E1 #

∀ {α : Type u_1} {s : Set α} {a : α}, a ∉ s → (𝒫 s).PairwiseDisjoint fun t ↦ {t, insert a t}

theorem Set.PairwiseDisjoint.subset_of_biUnion_subset_biUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {f : ι → Set α} {s t : Set ι},
  (s ∪ t).PairwiseDisjoint f → (∀ i ∈ s, (f i).Nonempty) → ⋃ i ∈ s, f i ⊆ ⋃ i ∈ t, f i → s ⊆ t

theorem Pairwise.subset_of_biUnion_subset_biUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {f : ι → Set α} {s t : Set ι},
  Pairwise (Function.onFun Disjoint f) → (∀ i ∈ s, (f i).Nonempty) → ⋃ i ∈ s, f i ⊆ ⋃ i ∈ t, f i → s ⊆ t

theorem Pairwise.biUnion_injective E1 #

∀ {α : Type u_1} {ι : Type u_2} {f : ι → Set α},
  Pairwise (Function.onFun Disjoint f) → (∀ (i : ι), (f i).Nonempty) → Function.Injective fun s ↦ ⋃ i ∈ s, f i

theorem pairwiseDisjoint_unique E1 #

∀ {α : Type u_1} {ι : Type u_2} {f : ι → Set α} {s : Set ι} {y : α},
  s.PairwiseDisjoint f → y ∈ ⋃ i ∈ s, f i → ∃! i, i ∈ s ∧ y ∈ f i

In a disjoint union we can identify the unique set an element belongs to.

Deprecated aliases

NameNew nameSince
Set.biUnion_diff_biUnion_eqSet.biUnion_sdiff_biUnion_eq2026-06-03