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.Bounded

154 declarations and 4 deprecated aliases. Mathlib docs · Source

Bounded and set-indexed unions and intersections

This file develops bounded indexed unions and intersections of sets, together with unions and intersections indexed by sets of sets. It relates biUnion and biInter to subtype-indexed families and relates sUnion and sInter to indexed families. It also contains results about products of families of sets, directed unions, and reindexing along surjective functions.

Bounded unions and intersections

theorem Set.mem_biUnion E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : α → Set β} {x : α} {y : β}, x ∈ s → y ∈ t x → y ∈ ⋃ x ∈ s, t x

A specialization of mem_iUnion₂.

theorem Set.mem_biInter E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : α → Set β} {y : β}, (∀ x ∈ s, y ∈ t x) → y ∈ ⋂ x ∈ s, t x

A specialization of mem_iInter₂.

theorem Set.subset_biUnion_of_mem E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {u : α → Set β} {x : α}, x ∈ s → u x ⊆ ⋃ x ∈ s, u x

A specialization of subset_iUnion₂.

theorem Set.biInter_subset_of_mem E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : α → Set β} {x : α}, x ∈ s → ⋂ x ∈ s, t x ⊆ t x

A specialization of iInter₂_subset.

theorem Set.biInter_subset_biUnion E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Nonempty → ∀ {t : α → Set β}, ⋂ x ∈ s, t x ⊆ ⋃ x ∈ s, t x

theorem Set.biUnion_subset_biUnion_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s s' : Set α} {t : α → Set β}, s ⊆ s' → ⋃ x ∈ s, t x ⊆ ⋃ x ∈ s', t x

theorem Set.biInter_subset_biInter_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s s' : Set α} {t : α → Set β}, s' ⊆ s → ⋂ x ∈ s, t x ⊆ ⋂ x ∈ s', t x

theorem Set.biUnion_mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s s' : Set α} {t t' : α → Set β},
  s' ⊆ s → (∀ x ∈ s, t x ⊆ t' x) → ⋃ x ∈ s', t x ⊆ ⋃ x ∈ s, t' x

theorem Set.biInter_mono E1 #

∀ {α : Type u_1} {β : Type u_2} {s s' : Set α} {t t' : α → Set β},
  s ⊆ s' → (∀ x ∈ s, t x ⊆ t' x) → ⋂ x ∈ s', t x ⊆ ⋂ x ∈ s, t' x

theorem Set.biUnion_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : (x : α) → x ∈ s → Set β), ⋃ x, ⋃ (h : x ∈ s), t x h = ⋃ x, t ↑x ⋯

theorem Set.biInter_eq_iInter E1 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : (x : α) → x ∈ s → Set β), ⋂ x, ⋂ (h : x ∈ s), t x h = ⋂ x, t ↑x ⋯

theorem Set.biUnion_const E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Nonempty → ∀ (t : Set β), ⋃ a ∈ s, t = t

theorem Set.biInter_const E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α}, s.Nonempty → ∀ (t : Set β), ⋂ a ∈ s, t = t

theorem Set.iUnion_subtype E1 #

∀ {α : Type u_1} {β : Type u_2} (p : α → Prop) (s : { x // p x } → Set β), ⋃ x, s x = ⋃ x, ⋃ (hx : p x), s ⟨x, hx⟩

theorem Set.iInter_subtype E1 #

∀ {α : Type u_1} {β : Type u_2} (p : α → Prop) (s : { x // p x } → Set β), ⋂ x, s x = ⋂ x, ⋂ (hx : p x), s ⟨x, hx⟩

theorem Set.biInter_empty E1 #

∀ {α : Type u_1} {β : Type u_2} (u : α → Set β), ⋂ x ∈ ∅, u x = Set.univ

theorem Set.biInter_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (u : α → Set β), ⋂ x ∈ Set.univ, u x = ⋂ x, u x

theorem Set.biUnion_self E0 #

∀ {α : Type u_1} (s : Set α), ⋃ x ∈ s, s = s

theorem Set.iUnion_nonempty_self E0 #

∀ {α : Type u_1} (s : Set α), ⋃ (_ : s.Nonempty), s = s

theorem Set.iInter_ne_univ_self E0 #

∀ {α : Type u_1} (s : Set α), ⋂ (_ : s ≠ Set.univ), s = s

theorem Set.biInter_singleton E1 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (s : α → Set β), ⋂ x ∈ {a}, s x = s a

theorem Set.biInter_union E1 #

∀ {α : Type u_1} {β : Type u_2} (s t : Set α) (u : α → Set β), ⋂ x ∈ s ∪ t, u x = (⋂ x ∈ s, u x) ∩ ⋂ x ∈ t, u x

theorem Set.biInter_insert E1 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (s : Set α) (t : α → Set β), ⋂ x ∈ insert a s, t x = t a ∩ ⋂ x ∈ s, t x

theorem Set.biInter_pair E1 #

∀ {α : Type u_1} {β : Type u_2} (a b : α) (s : α → Set β), ⋂ x ∈ {a, b}, s x = s a ∩ s b

theorem Set.biInter_inter E1 #

∀ {ι : Type u_7} {α : Type u_8} {s : Set ι},
  s.Nonempty → ∀ (f : ι → Set α) (t : Set α), ⋂ i ∈ s, f i ∩ t = (⋂ i ∈ s, f i) ∩ t

theorem Set.inter_biInter E1 #

∀ {ι : Type u_7} {α : Type u_8} {s : Set ι},
  s.Nonempty → ∀ (f : ι → Set α) (t : Set α), ⋂ i ∈ s, t ∩ f i = t ∩ ⋂ i ∈ s, f i

theorem Set.biUnion_empty E1 #

∀ {α : Type u_1} {β : Type u_2} (s : α → Set β), ⋃ x ∈ ∅, s x = ∅

theorem Set.biUnion_univ E1 #

∀ {α : Type u_1} {β : Type u_2} (s : α → Set β), ⋃ x ∈ Set.univ, s x = ⋃ x, s x

theorem Set.biUnion_singleton E1 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (s : α → Set β), ⋃ x ∈ {a}, s x = s a

theorem Set.biUnion_of_singleton E0 #

∀ {α : Type u_1} (s : Set α), ⋃ x ∈ s, {x} = s

theorem Set.biUnion_union E1 #

∀ {α : Type u_1} {β : Type u_2} (s t : Set α) (u : α → Set β), ⋃ x ∈ s ∪ t, u x = (⋃ x ∈ s, u x) ∪ ⋃ x ∈ t, u x

theorem Set.iUnion_coe_set E0 #

∀ {α : Type u_7} {β : Type u_8} (s : Set α) (f : ↑s → Set β), ⋃ i, f i = ⋃ i, ⋃ (h : i ∈ s), f ⟨i, h⟩

theorem Set.iInter_coe_set E0 #

∀ {α : Type u_7} {β : Type u_8} (s : Set α) (f : ↑s → Set β), ⋂ i, f i = ⋂ i, ⋂ (h : i ∈ s), f ⟨i, h⟩

theorem Set.biUnion_insert E1 #

∀ {α : Type u_1} {β : Type u_2} (a : α) (s : Set α) (t : α → Set β), ⋃ x ∈ insert a s, t x = t a ∪ ⋃ x ∈ s, t x

theorem Set.biUnion_pair E1 #

∀ {α : Type u_1} {β : Type u_2} (a b : α) (s : α → Set β), ⋃ x ∈ {a, b}, s x = s a ∪ s b

theorem Set.inter_iUnion₂ E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : Set α) (t : (i : ι) → κ i → Set α),
  s ∩ ⋃ i, ⋃ j, t i j = ⋃ i, ⋃ j, s ∩ t i j

theorem Set.iUnion₂_inter E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : (i : ι) → κ i → Set α) (t : Set α),
  (⋃ i, ⋃ j, s i j) ∩ t = ⋃ i, ⋃ j, s i j ∩ t

theorem Set.union_iInter₂ E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : Set α) (t : (i : ι) → κ i → Set α),
  s ∪ ⋂ i, ⋂ j, t i j = ⋂ i, ⋂ j, s ∪ t i j

theorem Set.iInter₂_union E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : (i : ι) → κ i → Set α) (t : Set α),
  (⋂ i, ⋂ j, s i j) ∪ t = ⋂ i, ⋂ j, s i j ∪ t

theorem Set.mem_sUnion_of_mem E0 #

∀ {α : Type u_1} {x : α} {t : Set α} {S : Set (Set α)}, x ∈ t → t ∈ S → x ∈ ⋃₀ S

theorem Set.notMem_of_notMem_sUnion E1 #

∀ {α : Type u_1} {x : α} {t : Set α} {S : Set (Set α)}, x ∉ ⋃₀ S → t ∈ S → x ∉ t

theorem Set.sInter_subset_of_mem E1 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, t ∈ S → ⋂₀ S ⊆ t

theorem Set.subset_sUnion_of_mem E1 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, t ∈ S → t ⊆ ⋃₀ S

theorem Set.subset_sUnion_of_subset E1 #

∀ {α : Type u_1} {s : Set α} (t : Set (Set α)) (u : Set α), s ⊆ u → u ∈ t → s ⊆ ⋃₀ t

theorem Set.sUnion_subset E1 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, (∀ t' ∈ S, t' ⊆ t) → ⋃₀ S ⊆ t

theorem Set.sUnion_subset_iff E0 #

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

theorem Set.sUnion_mono_subsets E1 #

∀ {α : Type u_1} {s : Set (Set α)} {f : Set α → Set α}, (∀ (t : Set α), t ⊆ f t) → ⋃₀ s ⊆ ⋃₀ (f '' s)

sUnion is monotone under taking a subset of each set.

theorem Set.sUnion_mono_supsets E1 #

∀ {α : Type u_1} {s : Set (Set α)} {f : Set α → Set α}, (∀ (t : Set α), f t ⊆ t) → ⋃₀ (f '' s) ⊆ ⋃₀ s

sUnion is monotone under taking a superset of each set.

theorem Set.subset_sInter E1 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, (∀ t' ∈ S, t ⊆ t') → t ⊆ ⋂₀ S

theorem Set.subset_sInter_iff E0 #

∀ {α : Type u_1} {S : Set (Set α)} {t : Set α}, t ⊆ ⋂₀ S ↔ ∀ t' ∈ S, t ⊆ t'

theorem Set.sUnion_subset_sUnion E1 #

∀ {α : Type u_1} {S T : Set (Set α)}, S ⊆ T → ⋃₀ S ⊆ ⋃₀ T

theorem Set.sInter_subset_sInter E1 #

∀ {α : Type u_1} {S T : Set (Set α)}, S ⊆ T → ⋂₀ T ⊆ ⋂₀ S

theorem Set.sUnion_empty E0 #

∀ {α : Type u_1}, ⋃₀ ∅ = ∅

theorem Set.sInter_empty E0 #

∀ {α : Type u_1}, ⋂₀ ∅ = Set.univ

theorem Set.sUnion_singleton E0 #

∀ {α : Type u_1} (s : Set α), ⋃₀ {s} = s

theorem Set.sInter_singleton E0 #

∀ {α : Type u_1} (s : Set α), ⋂₀ {s} = s

theorem Set.sUnion_eq_empty E0 #

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

theorem Set.sInter_eq_univ E0 #

∀ {α : Type u_1} {S : Set (Set α)}, ⋂₀ S = Set.univ ↔ ∀ s ∈ S, s = Set.univ

theorem Set.subset_powerset_iff E0 #

∀ {α : Type u_1} {s : Set (Set α)} {t : Set α}, s ⊆ 𝒫 t ↔ ⋃₀ s ⊆ t

theorem Set.sUnion_powerset_gc E1 #

∀ {α : Type u_1}, GaloisConnection (fun x ↦ ⋃₀ x) fun x ↦ 𝒫 x

⋃₀ and 𝒫 form a Galois connection.

def Set.sUnionPowersetGI E1 #

{α : Type u_1} → GaloisInsertion (fun x ↦ ⋃₀ x) fun x ↦ 𝒫 x

⋃₀ and 𝒫 form a Galois insertion.

theorem Set.sUnion_mem_empty_univ E1 #

∀ {α : Type u_1} {S : Set (Set α)}, S ⊆ {∅, Set.univ} → ⋃₀ S ∈ {∅, Set.univ}

If all sets in a collection are either ∅ or Set.univ, then so is their union.

theorem Set.nonempty_sUnion E0 #

∀ {α : Type u_1} {S : Set (Set α)}, (⋃₀ S).Nonempty ↔ ∃ s ∈ S, s.Nonempty

theorem Set.Nonempty.of_sUnion E1 #

∀ {α : Type u_1} {s : Set (Set α)}, (⋃₀ s).Nonempty → s.Nonempty

theorem Set.Nonempty.of_sUnion_eq_univ E1 #

∀ {α : Type u_1} [Nonempty α] {s : Set (Set α)}, ⋃₀ s = Set.univ → s.Nonempty

theorem Set.sUnion_union E1 #

∀ {α : Type u_1} (S T : Set (Set α)), ⋃₀ (S ∪ T) = ⋃₀ S ∪ ⋃₀ T

theorem Set.sInter_union E1 #

∀ {α : Type u_1} (S T : Set (Set α)), ⋂₀ (S ∪ T) = ⋂₀ S ∩ ⋂₀ T

theorem Set.sUnion_insert E0 #

∀ {α : Type u_1} (s : Set α) (T : Set (Set α)), ⋃₀ insert s T = s ∪ ⋃₀ T

theorem Set.sInter_insert E0 #

∀ {α : Type u_1} (s : Set α) (T : Set (Set α)), ⋂₀ insert s T = s ∩ ⋂₀ T

theorem Set.sUnion_sdiff_singleton_empty E0 #

∀ {α : Type u_1} (s : Set (Set α)), ⋃₀ (s \ {∅}) = ⋃₀ s

theorem Set.sInter_sdiff_singleton_univ E0 #

∀ {α : Type u_1} (s : Set (Set α)), ⋂₀ (s \ {Set.univ}) = ⋂₀ s

theorem Set.sUnion_pair E1 #

∀ {α : Type u_1} (s t : Set α), ⋃₀ {s, t} = s ∪ t

theorem Set.sInter_pair E1 #

∀ {α : Type u_1} (s t : Set α), ⋂₀ {s, t} = s ∩ t

theorem Set.sUnion_image E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → Set β) (s : Set α), ⋃₀ (f '' s) = ⋃ a ∈ s, f a

theorem Set.sInter_image E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → Set β) (s : Set α), ⋂₀ (f '' s) = ⋂ a ∈ s, f a

theorem Set.sUnion_image2 E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → Set γ) (s : Set α) (t : Set β),
  ⋃₀ Set.image2 f s t = ⋃ a ∈ s, ⋃ b ∈ t, f a b

theorem Set.sInter_image2 E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → Set γ) (s : Set α) (t : Set β),
  ⋂₀ Set.image2 f s t = ⋂ a ∈ s, ⋂ b ∈ t, f a b

theorem Set.sUnion_range E0 #

∀ {β : Type u_2} {ι : Sort u_4} (f : ι → Set β), ⋃₀ Set.range f = ⋃ x, f x

theorem Set.sInter_range E0 #

∀ {β : Type u_2} {ι : Sort u_4} (f : ι → Set β), ⋂₀ Set.range f = ⋂ x, f x

theorem Set.iUnion_eq_univ_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {f : ι → Set α}, ⋃ i, f i = Set.univ ↔ ∀ (x : α), ∃ i, x ∈ f i

theorem Set.iUnion₂_eq_univ_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} {s : (i : ι) → κ i → Set α},
  ⋃ i, ⋃ j, s i j = Set.univ ↔ ∀ (a : α), ∃ i j, a ∈ s i j

theorem Set.sUnion_eq_univ_iff E0 #

∀ {α : Type u_1} {c : Set (Set α)}, ⋃₀ c = Set.univ ↔ ∀ (a : α), ∃ b ∈ c, a ∈ b

theorem Set.iInter_eq_empty_of_eq_empty E1 #

∀ {α : Type u_1} {ι : Sort u_4} {i : ι} {f : ι → Set α}, f i = ∅ → ⋂ j, f j = ∅

theorem Set.iInter_eq_empty_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {f : ι → Set α}, ⋂ i, f i = ∅ ↔ ∀ (x : α), ∃ i, x ∉ f i

theorem Set.iInter₂_eq_empty_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} {s : (i : ι) → κ i → Set α},
  ⋂ i, ⋂ j, s i j = ∅ ↔ ∀ (a : α), ∃ i j, a ∉ s i j

theorem Set.sInter_eq_empty_iff E0 #

∀ {α : Type u_1} {c : Set (Set α)}, ⋂₀ c = ∅ ↔ ∀ (a : α), ∃ b ∈ c, a ∉ b

theorem Set.nonempty_iInter E0 #

∀ {α : Type u_1} {ι : Sort u_4} {f : ι → Set α}, (⋂ i, f i).Nonempty ↔ ∃ x, ∀ (i : ι), x ∈ f i

theorem Set.nonempty_iInter₂ E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} {s : (i : ι) → κ i → Set α},
  (⋂ i, ⋂ j, s i j).Nonempty ↔ ∃ a, ∀ (i : ι) (j : κ i), a ∈ s i j

theorem Set.nonempty_sInter E0 #

∀ {α : Type u_1} {c : Set (Set α)}, (⋂₀ c).Nonempty ↔ ∃ a, ∀ b ∈ c, a ∈ b

theorem Set.compl_sUnion E1 #

∀ {α : Type u_1} (S : Set (Set α)), (⋃₀ S)ᶜ = ⋂₀ (compl '' S)

theorem Set.sUnion_eq_compl_sInter_compl E1 #

∀ {α : Type u_1} (S : Set (Set α)), ⋃₀ S = (⋂₀ (compl '' S))ᶜ

theorem Set.compl_sInter E1 #

∀ {α : Type u_1} (S : Set (Set α)), (⋂₀ S)ᶜ = ⋃₀ (compl '' S)

theorem Set.sInter_eq_compl_sUnion_compl E1 #

∀ {α : Type u_1} (S : Set (Set α)), ⋂₀ S = (⋃₀ (compl '' S))ᶜ

theorem Set.inter_empty_of_inter_sUnion_empty E1 #

∀ {α : Type u_1} {s t : Set α} {S : Set (Set α)}, t ∈ S → s ∩ ⋃₀ S = ∅ → s ∩ t = ∅

theorem Set.range_sigma_eq_iUnion_range E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_7} (f : Sigma γ → β), Set.range f = ⋃ a, Set.range fun b ↦ f ⟨a, b⟩

theorem Set.iUnion_eq_range_sigma E1 #

∀ {α : Type u_1} {β : Type u_2} (s : α → Set β), ⋃ i, s i = Set.range fun a ↦ ↑a.snd

theorem Set.iUnion_eq_range_psigma E1 #

∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β), ⋃ i, s i = Set.range fun a ↦ ↑a.snd

theorem Set.iUnion_image_preimage_sigma_mk_eq_self E1 #

∀ {ι : Type u_7} {σ : ι → Type u_8} (s : Set (Sigma σ)), ⋃ i, Sigma.mk i '' Sigma.mk i ⁻¹' s = s

theorem Set.Sigma.univ E1 #

∀ {α : Type u_1} (X : α → Type u_7), Set.univ = ⋃ a, Set.range (Sigma.mk a)

theorem Set.sUnion_mono E1 #

∀ {α : Type u_1} {S T : Set (Set α)}, S ⊆ T → ⋃₀ S ⊆ ⋃₀ T

Alias of Set.sUnion_subset_sUnion.

theorem Set.sInter_mono E1 #

∀ {α : Type u_1} {S T : Set (Set α)}, S ⊆ T → ⋂₀ T ⊆ ⋂₀ S

Alias of Set.sInter_subset_sInter.

theorem Set.iUnion_subset_iUnion_const E1 #

∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_5} {s : Set α} (h : ι → ι₂), ⋃ x, s ⊆ ⋃ x, s

theorem Set.iUnion_singleton_eq_range E0 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), ⋃ x, {f x} = Set.range f

theorem Set.iUnion_insert_eq_range_union_iUnion E1 #

∀ {β : Type u_2} {ι : Type u_7} (x : ι → β) (t : ι → Set β), ⋃ i, insert (x i) (t i) = Set.range x ∪ ⋃ i, t i

theorem Set.iUnion_of_singleton E1 #

∀ (α : Type u_7), ⋃ x, {x} = Set.univ

theorem Set.iUnion_of_singleton_coe E0 #

∀ {α : Type u_1} (s : Set α), ⋃ i, {↑i} = s

theorem Set.sUnion_eq_biUnion E1 #

∀ {α : Type u_1} {s : Set (Set α)}, ⋃₀ s = ⋃ i ∈ s, i

theorem Set.sInter_eq_biInter E1 #

∀ {α : Type u_1} {s : Set (Set α)}, ⋂₀ s = ⋂ i ∈ s, i

theorem Set.sUnion_eq_iUnion E1 #

∀ {α : Type u_1} {s : Set (Set α)}, ⋃₀ s = ⋃ i, ↑i

theorem Set.sInter_eq_iInter E1 #

∀ {α : Type u_1} {s : Set (Set α)}, ⋂₀ s = ⋂ i, ↑i

theorem Set.iUnion_of_empty E0 #

∀ {α : Type u_1} {ι : Sort u_4} [IsEmpty ι] (s : ι → Set α), ⋃ i, s i = ∅

theorem Set.iInter_of_empty E0 #

∀ {α : Type u_1} {ι : Sort u_4} [IsEmpty ι] (s : ι → Set α), ⋂ i, s i = Set.univ

theorem Set.union_eq_iUnion E1 #

∀ {α : Type u_1} {s₁ s₂ : Set α}, s₁ ∪ s₂ = ⋃ b, bif b then s₁ else s₂

theorem Set.inter_eq_iInter E1 #

∀ {α : Type u_1} {s₁ s₂ : Set α}, s₁ ∩ s₂ = ⋂ b, bif b then s₁ else s₂

theorem Set.sInter_union_sInter E1 #

∀ {α : Type u_1} {S T : Set (Set α)}, ⋂₀ S ∪ ⋂₀ T = ⋂ p ∈ S ×ˢ T, p.1 ∪ p.2

theorem Set.sUnion_inter_sUnion E1 #

∀ {α : Type u_1} {s t : Set (Set α)}, ⋃₀ s ∩ ⋃₀ t = ⋃ p ∈ s ×ˢ t, p.1 ∩ p.2

theorem Set.biUnion_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_4} (s : ι → Set α) (t : α → Set β),
  ⋃ x ∈ ⋃ i, s i, t x = ⋃ i, ⋃ x ∈ s i, t x

theorem Set.biInter_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_4} (s : ι → Set α) (t : α → Set β),
  ⋂ x ∈ ⋃ i, s i, t x = ⋂ i, ⋂ x ∈ s i, t x

theorem Set.sUnion_iUnion E1 #

∀ {α : Type u_1} {ι : Sort u_4} (s : ι → Set (Set α)), ⋃₀ ⋃ i, s i = ⋃ i, ⋃₀ s i

theorem Set.sInter_iUnion E1 #

∀ {α : Type u_1} {ι : Sort u_4} (s : ι → Set (Set α)), ⋂₀ ⋃ i, s i = ⋂ i, ⋂₀ s i

theorem Set.iUnion_range_eq_sUnion E1 #

∀ {α : Type u_7} {β : Type u_8} (C : Set (Set α)) {f : (s : ↑C) → β → ↑↑s},
  (∀ (s : ↑C), Function.Surjective (f s)) → (⋃ y, Set.range fun s ↦ ↑(f s y)) = ⋃₀ C

theorem Set.iUnion_range_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort u_4} (C : ι → Set α) {f : (x : ι) → β → ↑(C x)},
  (∀ (x : ι), Function.Surjective (f x)) → (⋃ y, Set.range fun x ↦ ↑(f x y)) = ⋃ x, C x

theorem Set.iUnion_sumElim E1 #

∀ {α : Type u_1} {ι : Type u_7} {σ : Type u_8} (s : ι → Set α) (t : σ → Set α),
  ⋃ x, Sum.elim s t x = (⋃ x, s x) ∪ ⋃ x, t x

theorem Set.union_distrib_iInter_left E1 #

∀ {α : Type u_1} {ι : Sort u_4} (s : ι → Set α) (t : Set α), t ∪ ⋂ i, s i = ⋂ i, t ∪ s i

theorem Set.union_distrib_iInter₂_left E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : Set α) (t : (i : ι) → κ i → Set α),
  s ∪ ⋂ i, ⋂ j, t i j = ⋂ i, ⋂ j, s ∪ t i j

theorem Set.union_distrib_iInter_right E1 #

∀ {α : Type u_1} {ι : Sort u_4} (s : ι → Set α) (t : Set α), (⋂ i, s i) ∪ t = ⋂ i, s i ∪ t

theorem Set.union_distrib_iInter₂_right E1 #

∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_6} (s : (i : ι) → κ i → Set α) (t : Set α),
  (⋂ i, ⋂ j, s i j) ∪ t = ⋂ i, ⋂ j, s i j ∪ t

theorem Set.biUnion_lt_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LT α] [NoMaxOrder α] {s : α → Set β}, ⋃ n, ⋃ m, ⋃ (_ : m < n), s m = ⋃ n, s n

theorem Set.biUnion_le_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {s : α → Set β}, ⋃ n, ⋃ m, ⋃ (_ : m ≤ n), s m = ⋃ n, s n

theorem Set.biInter_lt_eq_iInter E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LT α] [NoMaxOrder α] {s : α → Set β}, ⋂ n, ⋂ m, ⋂ (_ : m < n), s m = ⋂ n, s n

theorem Set.biInter_le_eq_iInter E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {s : α → Set β}, ⋂ n, ⋂ m, ⋂ (_ : m ≤ n), s m = ⋂ n, s n

theorem Set.biUnion_gt_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LT α] [NoMinOrder α] {s : α → Set β}, ⋃ n, ⋃ m, ⋃ (_ : m > n), s m = ⋃ n, s n

theorem Set.biUnion_ge_eq_iUnion E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {s : α → Set β}, ⋃ n, ⋃ m, ⋃ (_ : m ≥ n), s m = ⋃ n, s n

theorem Set.biInter_gt_eq_iInf E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : LT α] [NoMinOrder α] {s : α → Set β}, ⋂ n, ⋂ m, ⋂ (_ : m > n), s m = ⋂ n, s n

theorem Set.biInter_ge_eq_iInf E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {s : α → Set β}, ⋂ n, ⋂ m, ⋂ (_ : m ≥ n), s m = ⋂ n, s n

theorem Set.biUnion_le E1 #

∀ {α : Type u_1} {ι : Type u_7} [inst : PartialOrder ι] (s : ι → Set α) (i : ι),
  ⋃ j, ⋃ (_ : j ≤ i), s j = (⋃ j, ⋃ (_ : j < i), s j) ∪ s i

theorem Set.biInter_le E1 #

∀ {α : Type u_1} {ι : Type u_7} [inst : PartialOrder ι] (s : ι → Set α) (i : ι),
  ⋂ j, ⋂ (_ : j ≤ i), s j = (⋂ j, ⋂ (_ : j < i), s j) ∩ s i

theorem Set.biUnion_ge E1 #

∀ {α : Type u_1} {ι : Type u_7} [inst : PartialOrder ι] (s : ι → Set α) (i : ι),
  ⋃ j, ⋃ (_ : j ≥ i), s j = s i ∪ ⋃ j, ⋃ (_ : j > i), s j

theorem Set.biInter_ge E1 #

∀ {α : Type u_1} {ι : Type u_7} [inst : PartialOrder ι] (s : ι → Set α) (i : ι),
  ⋂ j, ⋂ (_ : j ≥ i), s j = s i ∩ ⋂ j, ⋂ (_ : j > i), s j

theorem Set.pi_def E0 #

∀ {α : Type u_1} {π : α → Type u_7} (i : Set α) (s : (a : α) → Set (π a)), i.pi s = ⋂ a ∈ i, Function.eval a ⁻¹' s a

theorem Set.univ_pi_eq_iInter E1 #

∀ {α : Type u_1} {π : α → Type u_7} (t : (i : α) → Set (π i)), Set.univ.pi t = ⋂ i, Function.eval i ⁻¹' t i

theorem Set.pi_sdiff_pi_subset E1 #

∀ {α : Type u_1} {π : α → Type u_7} (i : Set α) (s t : (a : α) → Set (π a)),
  i.pi s \ i.pi t ⊆ ⋃ a ∈ i, Function.eval a ⁻¹' (s a \ t a)

theorem Set.iUnion_univ_pi E1 #

∀ {α : Type u_1} {π : α → Type u_7} {ι : α → Type u_8} (t : (a : α) → ι a → Set (π a)),
  (⋃ x, Set.univ.pi fun a ↦ t a (x a)) = Set.univ.pi fun a ↦ ⋃ j, t a j

theorem Set.biUnion_univ_pi E1 #

∀ {α : Type u_1} {π : α → Type u_7} {ι : α → Type u_8} (s : (a : α) → Set (ι a)) (t : (a : α) → ι a → Set (π a)),
  (⋃ x ∈ Set.univ.pi s, Set.univ.pi fun a ↦ t a (x a)) = Set.univ.pi fun a ↦ ⋃ j ∈ s a, t a j

theorem Set.pi_iUnion_eq_iInter_pi E1 #

∀ {α : Type u_1} {π : α → Type u_7} {α' : Type u_8} (s : α' → Set α) (t : (a : α) → Set (π a)),
  (⋃ i, s i).pi t = ⋂ i, (s i).pi t

theorem Set.iInter_pi E1 #

∀ {α : Type u_1} {ι : Sort u_4} {π : α → Type u_7} (t : ι → (a : α) → Set (π a)) (s : Set α),
  ⋂ i, s.pi (t i) = s.pi fun a ↦ ⋂ i, t i a

theorem Set.iInter_pi_eq_empty_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {π : α → Type u_7} {s : ι → Set α} {t : ι → (a : α) → Set (π a)},
  ⋂ i, (s i).pi (t i) = ∅ ↔ ∃ a, ⋂ i, ⋂ (_ : a ∈ s i), t i a = ∅

The intersection of a family of boxes (s i).pi (t i) is empty iff there is a coordinate a such that the intersection of the t i a over all i with a ∈ s i is empty.

theorem Set.iInter_univ_pi_eq_empty_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {π : α → Type u_7} {t : ι → (a : α) → Set (π a)},
  ⋂ i, Set.univ.pi (t i) = ∅ ↔ ∃ a, ⋂ i, t i a = ∅

theorem Set.biInter_univ_pi_eq_empty_iff E0 #

∀ {α : Type u_1} {ι : Sort u_4} {π : α → Type u_7} {t : ι → (a : α) → Set (π a)} {p : ι → Prop},
  ⋂ i, ⋂ (_ : p i), Set.univ.pi (t i) = ∅ ↔ ∃ a, ⋂ i, ⋂ (_ : p i), t i a = ∅

theorem Set.directedOn_iUnion E1 #

∀ {α : Type u_1} {ι : Sort u_4} {r : α → α → Prop} {f : ι → Set α},
  Directed (fun x1 x2 ↦ x1 ⊆ x2) f → (∀ (x : ι), DirectedOn r (f x)) → DirectedOn r (⋃ x, f x)

theorem Set.directedOn_sUnion E1 #

∀ {α : Type u_1} {r : α → α → Prop} {S : Set (Set α)},
  DirectedOn (fun x1 x2 ↦ x1 ⊆ x2) S → (∀ x ∈ S, DirectedOn r x) → DirectedOn r (⋃₀ S)

theorem Function.Surjective.iUnion_comp E1 #

∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_5} {f : ι → ι₂},
  Function.Surjective f → ∀ (g : ι₂ → Set α), ⋃ x, g (f x) = ⋃ y, g y

theorem Function.Surjective.iInter_comp E1 #

∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_5} {f : ι → ι₂},
  Function.Surjective f → ∀ (g : ι₂ → Set α), ⋂ x, g (f x) = ⋂ y, g y

theorem Set.biUnion_sdiff_biUnion_subset E1 #

∀ {α : Type u_1} {β : Type u_2} (t : α → Set β) (s₁ s₂ : Set α), (⋃ x ∈ s₁, t x) \ ⋃ x ∈ s₂, t x ⊆ ⋃ x ∈ s₁ \ s₂, t x

Deprecated aliases

NameNew nameSince
Set.biUnion_diff_biUnion_subsetSet.biUnion_sdiff_biUnion_subset2026-06-03
Set.pi_diff_pi_subsetSet.pi_sdiff_pi_subset2026-06-03
Set.sInter_diff_singleton_univSet.sInter_sdiff_singleton_univ2026-06-03
Set.sUnion_diff_singleton_emptySet.sUnion_sdiff_singleton_empty2026-06-03