The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Set.Lattice.Indexed
153 declarations and 7 deprecated aliases. Mathlib docs · Source
Indexed unions and intersections of sets
This file develops the basic theory of indexed unions and intersections of sets. It includes membership and inclusion lemmas, congruence and monotonicity results, interaction with complements and Boolean operations, unions and intersections indexed by propositions, and reindexing results for sums and dependent sums.
In lemma names, iUnion₂ and iInter₂ refer to two nested indexed unions or intersections,
while biUnion and biInter refer to the special case in which the inner index is a membership
proof.
Basic membership lemmas
Union and intersection over an indexed family of sets
Unions and intersections indexed by Prop
theorem Set.mem_iUnion₂ E0 #
∀ {γ : Type u_3} {ι : Sort u_4} {κ : ι → Sort u_7} {x : γ} {s : (i : ι) → κ i → Set γ},
x ∈ ⋃ i, ⋃ j, s i j ↔ ∃ i j, x ∈ s i j
theorem Set.mem_iInter₂ E0 #
∀ {γ : Type u_3} {ι : Sort u_4} {κ : ι → Sort u_7} {x : γ} {s : (i : ι) → κ i → Set γ},
x ∈ ⋂ i, ⋂ j, s i j ↔ ∀ (i : ι) (j : κ i), x ∈ s i j
theorem Set.mem_iUnion_of_mem E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} {a : α} (i : ι), a ∈ s i → a ∈ ⋃ i, s i
theorem Set.mem_iUnion₂_of_mem E0 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} {a : α} {i : ι} (j : κ i),
a ∈ s i j → a ∈ ⋃ i, ⋃ j, s i j
theorem Set.mem_iInter_of_mem E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} {a : α}, (∀ (i : ι), a ∈ s i) → a ∈ ⋂ i, s i
theorem Set.mem_iInter₂_of_mem E0 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} {a : α},
(∀ (i : ι) (j : κ i), a ∈ s i j) → a ∈ ⋂ i, ⋂ j, s i j
theorem Set.iUnion_congr_Prop E1 #
∀ {α : Type u_1} {p q : Prop} {f₁ : p → Set α} {f₂ : q → Set α} (pq : p ↔ q),
(∀ (x : q), f₁ ⋯ = f₂ x) → Set.iUnion f₁ = Set.iUnion f₂
theorem Set.iInter_congr_Prop E1 #
∀ {α : Type u_1} {p q : Prop} {f₁ : p → Set α} {f₂ : q → Set α} (pq : p ↔ q),
(∀ (x : q), f₁ ⋯ = f₂ x) → Set.iInter f₁ = Set.iInter f₂
theorem Set.iUnion_plift_up E1 #
∀ {α : Type u_1} {ι : Sort u_4} (f : PLift ι → Set α), ⋃ i, f { down := i } = ⋃ i, f i
theorem Set.iUnion_plift_down E1 #
∀ {α : Type u_1} {ι : Sort u_4} (f : ι → Set α), ⋃ i, f i.down = ⋃ i, f i
theorem Set.iInter_plift_up E1 #
∀ {α : Type u_1} {ι : Sort u_4} (f : PLift ι → Set α), ⋂ i, f { down := i } = ⋂ i, f i
theorem Set.iInter_plift_down E1 #
∀ {α : Type u_1} {ι : Sort u_4} (f : ι → Set α), ⋂ i, f i.down = ⋂ i, f i
theorem Set.iUnion_eq_if E1 #
∀ {α : Type u_1} {p : Prop} [inst : Decidable p] (s : Set α), ⋃ (_ : p), s = if p then s else ∅
theorem Set.iUnion_eq_dif E1 #
∀ {α : Type u_1} {p : Prop} [inst : Decidable p] (s : p → Set α), ⋃ (h : p), s h = if h : p then s h else ∅
theorem Set.iInter_eq_if E1 #
∀ {α : Type u_1} {p : Prop} [inst : Decidable p] (s : Set α), ⋂ (_ : p), s = if p then s else Set.univ
theorem Set.iInf_eq_dif E1 #
∀ {α : Type u_1} {p : Prop} [inst : Decidable p] (s : p → Set α), ⋂ (h : p), s h = if h : p then s h else Set.univ
theorem Set.exists_set_mem_of_union_eq_top E1 #
∀ {β : Type u_2} {ι : Type u_9} (t : Set ι) (s : ι → Set β), ⋃ i ∈ t, s i = ⊤ → ∀ (x : β), ∃ i ∈ t, x ∈ s i
theorem Set.nonempty_of_union_eq_top_of_nonempty E1 #
∀ {α : Type u_1} {ι : Type u_9} (t : Set ι) (s : ι → Set α), Nonempty α → ⋃ i ∈ t, s i = ⊤ → t.Nonempty
theorem Set.nonempty_of_nonempty_iUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α}, (⋃ i, s i).Nonempty → Nonempty ι
theorem Set.nonempty_of_nonempty_iUnion_eq_univ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} [Nonempty α], ⋃ i, s i = Set.univ → Nonempty ι
theorem Set.ofPred_exists E1 #
∀ {β : Type u_2} {ι : Sort u_4} (p : ι → β → Prop), {x | ∃ i, p i x} = ⋃ i, {x | p i x}
theorem Set.ofPred_forall E1 #
∀ {β : Type u_2} {ι : Sort u_4} (p : ι → β → Prop), {x | ∀ (i : ι), p i x} = ⋂ i, {x | p i x}
theorem Set.iUnion_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} {t : Set α}, (∀ (i : ι), s i ⊆ t) → ⋃ i, s i ⊆ t
theorem Set.iUnion₂_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} {t : Set α},
(∀ (i : ι) (j : κ i), s i j ⊆ t) → ⋃ i, ⋃ j, s i j ⊆ t
theorem Set.subset_iInter E1 #
∀ {β : Type u_2} {ι : Sort u_4} {t : Set β} {s : ι → Set β}, (∀ (i : ι), t ⊆ s i) → t ⊆ ⋂ i, s i
theorem Set.subset_iInter₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : Set α} {t : (i : ι) → κ i → Set α},
(∀ (i : ι) (j : κ i), s ⊆ t i j) → s ⊆ ⋂ i, ⋂ j, t i j
theorem Set.iUnion_subset_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} {t : Set α}, ⋃ i, s i ⊆ t ↔ ∀ (i : ι), s i ⊆ t
theorem Set.iUnion₂_subset_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} {t : Set α},
⋃ i, ⋃ j, s i j ⊆ t ↔ ∀ (i : ι) (j : κ i), s i j ⊆ t
theorem Set.subset_iInter_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : Set α} {t : ι → Set α}, s ⊆ ⋂ i, t i ↔ ∀ (i : ι), s ⊆ t i
theorem Set.subset_iInter₂_iff E0 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : Set α} {t : (i : ι) → κ i → Set α},
s ⊆ ⋂ i, ⋂ j, t i j ↔ ∀ (i : ι) (j : κ i), s ⊆ t i j
theorem Set.subset_iUnion E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β) (i : ι), s i ⊆ ⋃ i, s i
theorem Set.iInter_subset E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β) (i : ι), ⋂ i, s i ⊆ s i
theorem Set.iInter_subset_iUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} [Nonempty ι] {s : ι → Set α}, ⋂ i, s i ⊆ ⋃ i, s i
theorem Set.subset_iUnion₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} (i : ι) (j : κ i),
s i j ⊆ ⋃ i', ⋃ j', s i' j'
theorem Set.iInter₂_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} (i : ι) (j : κ i),
⋂ i, ⋂ j, s i j ⊆ s i j
theorem Set.subset_iUnion_of_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : Set α} {t : ι → Set α} (i : ι), s ⊆ t i → s ⊆ ⋃ i, t i
This rather trivial consequence of subset_iUnion is convenient with apply, and has i
explicit for this purpose.
theorem Set.iInter_subset_of_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α} {t : Set α} (i : ι), s i ⊆ t → ⋂ i, s i ⊆ t
This rather trivial consequence of iInter_subset is convenient with apply, and has i
explicit for this purpose.
theorem Set.subset_iUnion₂_of_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : Set α} {t : (i : ι) → κ i → Set α} (i : ι) (j : κ i),
s ⊆ t i j → s ⊆ ⋃ i, ⋃ j, t i j
This rather trivial consequence of subset_iUnion₂ is convenient with apply, and has i and
j explicit for this purpose.
theorem Set.iInter₂_subset_of_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s : (i : ι) → κ i → Set α} {t : Set α} (i : ι) (j : κ i),
s i j ⊆ t → ⋂ i, ⋂ j, s i j ⊆ t
This rather trivial consequence of iInter₂_subset is convenient with apply, and has i and
j explicit for this purpose.
theorem Set.iUnion_mono E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i ⊆ t i) → ⋃ i, s i ⊆ ⋃ i, t i
theorem Set.iUnion_mono'' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i ⊆ t i) → Set.iUnion s ⊆ Set.iUnion t
theorem Set.iUnion₂_mono E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s t : (i : ι) → κ i → Set α},
(∀ (i : ι) (j : κ i), s i j ⊆ t i j) → ⋃ i, ⋃ j, s i j ⊆ ⋃ i, ⋃ j, t i j
theorem Set.iInter_mono E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i ⊆ t i) → ⋂ i, s i ⊆ ⋂ i, t i
theorem Set.iInter_mono'' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i ⊆ t i) → Set.iInter s ⊆ Set.iInter t
theorem Set.iInter₂_mono E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s t : (i : ι) → κ i → Set α},
(∀ (i : ι) (j : κ i), s i j ⊆ t i j) → ⋂ i, ⋂ j, s i j ⊆ ⋂ i, ⋂ j, t i j
theorem Set.iUnion_mono' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_6} {s : ι → Set α} {t : ι₂ → Set α},
(∀ (i : ι), ∃ j, s i ⊆ t j) → ⋃ i, s i ⊆ ⋃ i, t i
theorem Set.iUnion₂_mono' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {κ : ι → Sort u_7} {κ' : ι' → Sort u_8} {s : (i : ι) → κ i → Set α}
{t : (i' : ι') → κ' i' → Set α},
(∀ (i : ι) (j : κ i), ∃ i' j', s i j ⊆ t i' j') → ⋃ i, ⋃ j, s i j ⊆ ⋃ i', ⋃ j', t i' j'
theorem Set.iInter_mono' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {s : ι → Set α} {t : ι' → Set α},
(∀ (j : ι'), ∃ i, s i ⊆ t j) → ⋂ i, s i ⊆ ⋂ j, t j
theorem Set.iInter₂_mono' E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {κ : ι → Sort u_7} {κ' : ι' → Sort u_8} {s : (i : ι) → κ i → Set α}
{t : (i' : ι') → κ' i' → Set α},
(∀ (i' : ι') (j' : κ' i'), ∃ i j, s i j ⊆ t i' j') → ⋂ i, ⋂ j, s i j ⊆ ⋂ i', ⋂ j', t i' j'
theorem Set.iUnion₂_subset_iUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} (κ : ι → Sort u_9) (s : ι → Set α), ⋃ i, ⋃ x, s i ⊆ ⋃ i, s i
theorem Set.iInter_subset_iInter₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} (κ : ι → Sort u_9) (s : ι → Set α), ⋂ i, s i ⊆ ⋂ i, ⋂ x, s i
theorem Set.iUnion_ofPred E1 #
∀ {α : Type u_1} {ι : Sort u_4} (P : ι → α → Prop), ⋃ i, {x | P i x} = {x | ∃ i, P i x}
theorem Set.iInter_ofPred E1 #
∀ {α : Type u_1} {ι : Sort u_4} (P : ι → α → Prop), ⋂ i, {x | P i x} = {x | ∀ (i : ι), P i x}
theorem Set.forall_mem_iUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} {p : α → Prop} {f : ι → Set α}, (∀ x ∈ ⋃ i, f i, p x) ↔ ∀ (i : ι), ∀ x ∈ f i, p x
theorem Set.exists_mem_iUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} {p : α → Prop} {f : ι → Set α}, (∃ x ∈ ⋃ i, f i, p x) ↔ ∃ i, ∃ x ∈ f i, p x
theorem Set.forall_mem_iUnion₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {p : α → Prop} {f : (i : ι) → κ i → Set α},
(∀ x ∈ ⋃ i, ⋃ j, f i j, p x) ↔ ∀ (i : ι) (j : κ i), ∀ x ∈ f i j, p x
theorem Set.exists_mem_iUnion₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {p : α → Prop} {f : (i : ι) → κ i → Set α},
(∃ x ∈ ⋃ i, ⋃ j, f i j, p x) ↔ ∃ i j, ∃ x ∈ f i j, p x
theorem Set.forall_mem_biUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} {p : α → Prop} {f : ι → Set α} {q : ι → Prop},
(∀ x ∈ ⋃ i, ⋃ (_ : q i), f i, p x) ↔ ∀ (i : ι), q i → ∀ x ∈ f i, p x
theorem Set.exists_mem_biUnion E1 #
∀ {α : Type u_1} {ι : Sort u_4} {p : α → Prop} {f : ι → Set α} {q : ι → Prop},
(∃ x ∈ ⋃ i, ⋃ (_ : q i), f i, p x) ↔ ∃ i, q i ∧ ∃ x ∈ f i, p x
theorem Set.iUnion_congr_of_surjective E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_6} {f : ι → Set α} {g : ι₂ → Set α} (h : ι → ι₂),
Function.Surjective h → (∀ (x : ι), g (h x) = f x) → ⋃ x, f x = ⋃ y, g y
theorem Set.iInter_congr_of_surjective E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι₂ : Sort u_6} {f : ι → Set α} {g : ι₂ → Set α} (h : ι → ι₂),
Function.Surjective h → (∀ (x : ι), g (h x) = f x) → ⋂ x, f x = ⋂ y, g y
theorem Set.iUnion_congr E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i = t i) → ⋃ i, s i = ⋃ i, t i
theorem Set.iInter_congr E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s t : ι → Set α}, (∀ (i : ι), s i = t i) → ⋂ i, s i = ⋂ i, t i
theorem Set.iUnion₂_congr E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s t : (i : ι) → κ i → Set α},
(∀ (i : ι) (j : κ i), s i j = t i j) → ⋃ i, ⋃ j, s i j = ⋃ i, ⋃ j, t i j
theorem Set.iInter₂_congr E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} {s t : (i : ι) → κ i → Set α},
(∀ (i : ι) (j : κ i), s i j = t i j) → ⋂ i, ⋂ j, s i j = ⋂ i, ⋂ j, t i j
theorem Set.BijOn.iUnion_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set β} {t : Set γ} {f : β → γ} (g : γ → Set α),
Set.BijOn f s t → ⋃ x ∈ s, g (f x) = ⋃ y ∈ t, g y
theorem Set.BijOn.iInter_comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set β} {t : Set γ} {f : β → γ} (g : γ → Set α),
Set.BijOn f s t → ⋂ x ∈ s, g (f x) = ⋂ y ∈ t, g y
theorem Set.BijOn.iUnion_congr E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set β} {t : Set γ} (f : β → Set α) (g : γ → Set α) {h : β → γ},
Set.BijOn h s t → (∀ (x : β), g (h x) = f x) → ⋃ x ∈ s, f x = ⋃ y ∈ t, g y
theorem Set.BijOn.iInter_congr E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set β} {t : Set γ} (f : β → Set α) (g : γ → Set α) {h : β → γ},
Set.BijOn h s t → (∀ (x : β), g (h x) = f x) → ⋂ x ∈ s, f x = ⋂ y ∈ t, g y
theorem Set.iUnion_const E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β), ⋃ x, s = s
theorem Set.iInter_const E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β), ⋂ x, s = s
theorem Set.iUnion_eq_const E1 #
∀ {α : Type u_1} {ι : Sort u_4} [Nonempty ι] {f : ι → Set α} {s : Set α}, (∀ (i : ι), f i = s) → ⋃ i, f i = s
theorem Set.iInter_eq_const E1 #
∀ {α : Type u_1} {ι : Sort u_4} [Nonempty ι] {f : ι → Set α} {s : Set α}, (∀ (i : ι), f i = s) → ⋂ i, f i = s
theorem Set.compl_iUnion E0 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β), (⋃ i, s i)ᶜ = ⋂ i, (s i)ᶜ
theorem Set.compl_iUnion₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} (s : (i : ι) → κ i → Set α), (⋃ i, ⋃ j, s i j)ᶜ = ⋂ i, ⋂ j, (s i j)ᶜ
theorem Set.compl_iInter E0 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β), (⋂ i, s i)ᶜ = ⋃ i, (s i)ᶜ
theorem Set.compl_iInter₂ E1 #
∀ {α : Type u_1} {ι : Sort u_4} {κ : ι → Sort u_7} (s : (i : ι) → κ i → Set α), (⋂ i, ⋂ j, s i j)ᶜ = ⋃ i, ⋃ j, (s i j)ᶜ
theorem Set.iUnion_eq_compl_iInter_compl E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β), ⋃ i, s i = (⋂ i, (s i)ᶜ)ᶜ
theorem Set.iInter_eq_compl_iUnion_compl E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β), ⋂ i, s i = (⋃ i, (s i)ᶜ)ᶜ
theorem Set.inter_iUnion E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : Set β) (t : ι → Set β), s ∩ ⋃ i, t i = ⋃ i, s ∩ t i
theorem Set.iUnion_inter E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : Set β) (t : ι → Set β), (⋃ i, t i) ∩ s = ⋃ i, t i ∩ s
theorem Set.iUnion_union_distrib E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s t : ι → Set β), ⋃ i, s i ∪ t i = (⋃ i, s i) ∪ ⋃ i, t i
theorem Set.iInter_inter_distrib E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s t : ι → Set β), ⋂ i, s i ∩ t i = (⋂ i, s i) ∩ ⋂ i, t i
theorem Set.union_iUnion E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β) (t : ι → Set β), s ∪ ⋃ i, t i = ⋃ i, s ∪ t i
theorem Set.iUnion_union E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β) (t : ι → Set β), (⋃ i, t i) ∪ s = ⋃ i, t i ∪ s
theorem Set.inter_iInter E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β) (t : ι → Set β), s ∩ ⋂ i, t i = ⋂ i, s ∩ t i
theorem Set.iInter_inter E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β) (t : ι → Set β), (⋂ i, t i) ∩ s = ⋂ i, t i ∩ s
theorem Set.insert_iUnion E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (x : β) (t : ι → Set β), insert x (⋃ i, t i) = ⋃ i, insert x (t i)
theorem Set.union_iInter E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : Set β) (t : ι → Set β), s ∪ ⋂ i, t i = ⋂ i, s ∪ t i
theorem Set.iInter_union E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : ι → Set β) (t : Set β), (⋂ i, s i) ∪ t = ⋂ i, s i ∪ t
theorem Set.insert_iInter E1 #
∀ {β : Type u_2} {ι : Sort u_4} (x : β) (t : ι → Set β), insert x (⋂ i, t i) = ⋂ i, insert x (t i)
theorem Set.iUnion_sdiff E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : Set β) (t : ι → Set β), (⋃ i, t i) \ s = ⋃ i, t i \ s
theorem Set.sdiff_iUnion E1 #
∀ {β : Type u_2} {ι : Sort u_4} [Nonempty ι] (s : Set β) (t : ι → Set β), s \ ⋃ i, t i = ⋂ i, s \ t i
theorem Set.sdiff_iInter E1 #
∀ {β : Type u_2} {ι : Sort u_4} (s : Set β) (t : ι → Set β), s \ ⋂ i, t i = ⋃ i, s \ t i
theorem Set.iUnion_symmDiff_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : Set α} [Nonempty ι] {f : ι → Set α}, symmDiff (⋃ n, f n) s ⊆ ⋃ n, symmDiff (f n) s
theorem Set.symmDiff_iUnion_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {s : Set α} [Nonempty ι] {f : ι → Set α}, symmDiff s (⋃ n, f n) ⊆ ⋃ n, symmDiff s (f n)
theorem Set.iUnion_symmDiff_iUnion_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {f g : ι → Set α}, symmDiff (⋃ n, f n) (⋃ n, g n) ⊆ ⋃ n, symmDiff (f n) (g n)
theorem Set.sUnion_symmDiff_subset E1 #
∀ {α : Type u_1} {s : Set α} {S : Set (Set α)}, S.Nonempty → symmDiff (⋃₀ S) s ⊆ ⋃₀ ((fun x ↦ symmDiff x s) '' S)
theorem Set.symmDiff_sUnion_subset E1 #
∀ {α : Type u_1} {s : Set α} {S : Set (Set α)}, S.Nonempty → symmDiff s (⋃₀ S) ⊆ ⋃₀ ((fun x ↦ symmDiff s x) '' S)
theorem Set.sUnion_symmDiff_sUnion_subset E1 #
∀ {α : Type u_1} {S T : Set (Set α)},
S.Nonempty → T.Nonempty → symmDiff (⋃₀ S) (⋃₀ T) ⊆ ⋃₀ Set.image2 (fun x1 x2 ↦ symmDiff x1 x2) S T
theorem Set.iUnion_inter_subset E1 #
∀ {ι : Sort u_9} {α : Type u_10} {s t : ι → Set α}, ⋃ i, s i ∩ t i ⊆ (⋃ i, s i) ∩ ⋃ i, t i
theorem Set.iUnion_inter_of_monotone E1 #
∀ {ι : Type u_9} {α : Type u_10} [inst : Preorder ι] [IsDirectedOrder ι] {s t : ι → Set α},
Monotone s → Monotone t → ⋃ i, s i ∩ t i = (⋃ i, s i) ∩ ⋃ i, t i
theorem Set.iUnion_inter_of_antitone E1 #
∀ {ι : Type u_9} {α : Type u_10} [inst : Preorder ι] [IsCodirectedOrder ι] {s t : ι → Set α},
Antitone s → Antitone t → ⋃ i, s i ∩ t i = (⋃ i, s i) ∩ ⋃ i, t i
theorem Set.iInter_union_of_monotone E1 #
∀ {ι : Type u_9} {α : Type u_10} [inst : Preorder ι] [IsCodirectedOrder ι] {s t : ι → Set α},
Monotone s → Monotone t → ⋂ i, s i ∪ t i = (⋂ i, s i) ∪ ⋂ i, t i
theorem Set.iInter_union_of_antitone E1 #
∀ {ι : Type u_9} {α : Type u_10} [inst : Preorder ι] [IsDirectedOrder ι] {s t : ι → Set α},
Antitone s → Antitone t → ⋂ i, s i ∪ t i = (⋂ i, s i) ∪ ⋂ i, t i
theorem Set.iUnion_iInter_subset E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {s : ι → ι' → Set α}, ⋃ j, ⋂ i, s i j ⊆ ⋂ i, ⋃ j, s i j
An equality version of this lemma is iUnion_iInter_of_monotone in Data.Set.Finite.
theorem Set.iUnion_option E1 #
∀ {α : Type u_1} {ι : Type u_9} (s : Option ι → Set α), ⋃ o, s o = s none ∪ ⋃ i, s (some i)
theorem Set.iInter_option E1 #
∀ {α : Type u_1} {ι : Type u_9} (s : Option ι → Set α), ⋂ o, s o = s none ∩ ⋂ i, s (some i)
theorem Set.iUnion_dite E1 #
∀ {α : Type u_1} {ι : Sort u_4} (p : ι → Prop) [inst : DecidablePred p] (f : (i : ι) → p i → Set α)
(g : (i : ι) → ¬p i → Set α),
(⋃ i, if h : p i then f i h else g i h) = (⋃ i, ⋃ (h : p i), f i h) ∪ ⋃ i, ⋃ (h : ¬p i), g i h
theorem Set.iUnion_ite E1 #
∀ {α : Type u_1} {ι : Sort u_4} (p : ι → Prop) [inst : DecidablePred p] (f g : ι → Set α),
(⋃ i, if p i then f i else g i) = (⋃ i, ⋃ (_ : p i), f i) ∪ ⋃ i, ⋃ (_ : ¬p i), g i
theorem Set.iInter_dite E1 #
∀ {α : Type u_1} {ι : Sort u_4} (p : ι → Prop) [inst : DecidablePred p] (f : (i : ι) → p i → Set α)
(g : (i : ι) → ¬p i → Set α),
(⋂ i, if h : p i then f i h else g i h) = (⋂ i, ⋂ (h : p i), f i h) ∩ ⋂ i, ⋂ (h : ¬p i), g i h
theorem Set.iInter_ite E1 #
∀ {α : Type u_1} {ι : Sort u_4} (p : ι → Prop) [inst : DecidablePred p] (f g : ι → Set α),
(⋂ i, if p i then f i else g i) = (⋂ i, ⋂ (_ : p i), f i) ∩ ⋂ i, ⋂ (_ : ¬p i), g i
theorem Set.iInter_false E1 #
∀ {α : Type u_1} {s : False → Set α}, Set.iInter s = Set.univ
theorem Set.iUnion_false E1 #
∀ {α : Type u_1} {s : False → Set α}, Set.iUnion s = ∅
theorem Set.iInter_true E0 #
∀ {α : Type u_1} {s : True → Set α}, Set.iInter s = s trivial
theorem Set.iUnion_true E0 #
∀ {α : Type u_1} {s : True → Set α}, Set.iUnion s = s trivial
theorem Set.iInter_exists E0 #
∀ {α : Type u_1} {ι : Sort u_4} {p : ι → Prop} {f : Exists p → Set α}, ⋂ (x : Exists p), f x = ⋂ i, ⋂ (h : p i), f ⋯
theorem Set.iUnion_exists E0 #
∀ {α : Type u_1} {ι : Sort u_4} {p : ι → Prop} {f : Exists p → Set α}, ⋃ (x : Exists p), f x = ⋃ i, ⋃ (h : p i), f ⋯
theorem Set.iUnion_empty E0 #
∀ {α : Type u_1} {ι : Sort u_4}, ⋃ x, ∅ = ∅
theorem Set.iInter_univ E0 #
∀ {α : Type u_1} {ι : Sort u_4}, ⋂ x, Set.univ = Set.univ
theorem Set.iUnion_eq_empty E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α}, ⋃ i, s i = ∅ ↔ ∀ (i : ι), s i = ∅
theorem Set.iInter_eq_univ E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α}, ⋂ i, s i = Set.univ ↔ ∀ (i : ι), s i = Set.univ
theorem Set.nonempty_iUnion E0 #
∀ {α : Type u_1} {ι : Sort u_4} {s : ι → Set α}, (⋃ i, s i).Nonempty ↔ ∃ i, (s i).Nonempty
theorem Set.nonempty_biUnion E1 #
∀ {α : Type u_1} {β : Type u_2} {t : Set α} {s : α → Set β}, (⋃ i ∈ t, s i).Nonempty ↔ ∃ i ∈ t, (s i).Nonempty
theorem Set.iUnion_nonempty_index E1 #
∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : s.Nonempty → Set β), ⋃ (h : s.Nonempty), t h = ⋃ x, ⋃ (h : x ∈ s), t ⋯
theorem Set.iInter_iInter_eq_left E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : (x : β) → x = b → Set α}, ⋂ x, ⋂ (h : x = b), s x h = s b ⋯
theorem Set.iInter_iInter_eq_right E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : (x : β) → b = x → Set α}, ⋂ x, ⋂ (h : b = x), s x h = s b ⋯
theorem Set.iUnion_iUnion_eq_left E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : (x : β) → x = b → Set α}, ⋃ x, ⋃ (h : x = b), s x h = s b ⋯
theorem Set.iUnion_iUnion_eq_right E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {s : (x : β) → b = x → Set α}, ⋃ x, ⋃ (h : b = x), s x h = s b ⋯
theorem Set.iInter_or E1 #
∀ {α : Type u_1} {p q : Prop} (s : p ∨ q → Set α), ⋂ (h : p ∨ q), s h = (⋂ (h : p), s ⋯) ∩ ⋂ (h : q), s ⋯
theorem Set.iUnion_or E1 #
∀ {α : Type u_1} {p q : Prop} (s : p ∨ q → Set α), ⋃ (h : p ∨ q), s h = (⋃ (i : p), s ⋯) ∪ ⋃ (j : q), s ⋯
theorem Set.iUnion_and E1 #
∀ {α : Type u_1} {p q : Prop} (s : p ∧ q → Set α), ⋃ (h : p ∧ q), s h = ⋃ (hp : p), ⋃ (hq : q), s ⋯
theorem Set.iInter_and E1 #
∀ {α : Type u_1} {p q : Prop} (s : p ∧ q → Set α), ⋂ (h : p ∧ q), s h = ⋂ (hp : p), ⋂ (hq : q), s ⋯
theorem Set.iUnion_comm E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (s : ι → ι' → Set α), ⋃ i, ⋃ i', s i i' = ⋃ i', ⋃ i, s i i'
theorem Set.iInter_comm E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (s : ι → ι' → Set α), ⋂ i, ⋂ i', s i i' = ⋂ i', ⋂ i, s i i'
theorem Set.iUnion_sigma E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : Sigma γ → Set β), ⋃ ia, s ia = ⋃ i, ⋃ a, s ⟨i, a⟩
theorem Set.iUnion_sigma' E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : (i : α) → γ i → Set β), ⋃ i, ⋃ a, s i a = ⋃ ia, s ia.fst ia.snd
theorem Set.iInter_sigma E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : Sigma γ → Set β), ⋂ ia, s ia = ⋂ i, ⋂ a, s ⟨i, a⟩
theorem Set.iInter_sigma' E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : (i : α) → γ i → Set β), ⋂ i, ⋂ a, s i a = ⋂ ia, s ia.fst ia.snd
theorem Set.iUnion₂_comm E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {κ : ι → Sort u_7} {κ' : ι' → Sort u_8}
(s : (i : ι) → κ i → (i' : ι') → κ' i' → Set α), ⋃ i, ⋃ j, ⋃ i', ⋃ j', s i j i' j' = ⋃ i', ⋃ j', ⋃ i, ⋃ j, s i j i' j'
theorem Set.iInter₂_comm E1 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} {κ : ι → Sort u_7} {κ' : ι' → Sort u_8}
(s : (i : ι) → κ i → (i' : ι') → κ' i' → Set α), ⋂ i, ⋂ j, ⋂ i', ⋂ j', s i j i' j' = ⋂ i', ⋂ j', ⋂ i, ⋂ j, s i j i' j'
theorem Set.biUnion_and E0 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (p : ι → Prop) (q : ι → ι' → Prop)
(s : (x : ι) → (y : ι') → p x ∧ q x y → Set α),
⋃ x, ⋃ y, ⋃ (h : p x ∧ q x y), s x y h = ⋃ x, ⋃ (hx : p x), ⋃ y, ⋃ (hy : q x y), s x y ⋯
theorem Set.biUnion_and' E0 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (p : ι' → Prop) (q : ι → ι' → Prop)
(s : (x : ι) → (y : ι') → p y ∧ q x y → Set α),
⋃ x, ⋃ y, ⋃ (h : p y ∧ q x y), s x y h = ⋃ y, ⋃ (hy : p y), ⋃ x, ⋃ (hx : q x y), s x y ⋯
theorem Set.biInter_and E0 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (p : ι → Prop) (q : ι → ι' → Prop)
(s : (x : ι) → (y : ι') → p x ∧ q x y → Set α),
⋂ x, ⋂ y, ⋂ (h : p x ∧ q x y), s x y h = ⋂ x, ⋂ (hx : p x), ⋂ y, ⋂ (hy : q x y), s x y ⋯
theorem Set.biInter_and' E0 #
∀ {α : Type u_1} {ι : Sort u_4} {ι' : Sort u_5} (p : ι' → Prop) (q : ι → ι' → Prop)
(s : (x : ι) → (y : ι') → p y ∧ q x y → Set α),
⋂ x, ⋂ y, ⋂ (h : p y ∧ q x y), s x y h = ⋂ y, ⋂ (hy : p y), ⋂ x, ⋂ (hx : q x y), s x y ⋯
theorem Set.iUnion_iUnion_eq_or_left E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {p : β → Prop} {s : (x : β) → x = b ∨ p x → Set α},
⋃ x, ⋃ (h : x = b ∨ p x), s x h = s b ⋯ ∪ ⋃ x, ⋃ (h : p x), s x ⋯
theorem Set.iInter_iInter_eq_or_left E0 #
∀ {α : Type u_1} {β : Type u_2} {b : β} {p : β → Prop} {s : (x : β) → x = b ∨ p x → Set α},
⋂ x, ⋂ (h : x = b ∨ p x), s x h = s b ⋯ ∩ ⋂ x, ⋂ (h : p x), s x ⋯
theorem Set.iUnion_sum E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : α ⊕ β → Set γ}, ⋃ x, s x = (⋃ x, s (Sum.inl x)) ∪ ⋃ x, s (Sum.inr x)
theorem Set.iInter_sum E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : α ⊕ β → Set γ}, ⋂ x, s x = (⋂ x, s (Sum.inl x)) ∩ ⋂ x, s (Sum.inr x)
theorem Set.iUnion_psigma E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : PSigma γ → Set β), ⋃ ia, s ia = ⋃ i, ⋃ a, s ⟨i, a⟩
theorem Set.iUnion_psigma' E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : (i : α) → γ i → Set β), ⋃ i, ⋃ a, s i a = ⋃ ia, s ia.fst ia.snd
A reversed version of iUnion_psigma with a curried map.
theorem Set.iInter_psigma E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : PSigma γ → Set β), ⋂ ia, s ia = ⋂ i, ⋂ a, s ⟨i, a⟩
theorem Set.iInter_psigma' E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : α → Type u_9} (s : (i : α) → γ i → Set β), ⋂ i, ⋂ a, s i a = ⋂ ia, s ia.fst ia.snd
A reversed version of iInter_psigma with a curried map.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.diff_iInter | Set.sdiff_iInter | 2026-06-03 |
Set.diff_iUnion | Set.sdiff_iUnion | 2026-06-03 |
Set.iInter_setOf | Set.iInter_ofPred | 2026-07-09 |
Set.iUnion_diff | Set.iUnion_sdiff | 2026-06-03 |
Set.iUnion_setOf | Set.iUnion_ofPred | 2026-07-09 |
Set.setOf_exists | Set.ofPred_exists | 2026-07-09 |
Set.setOf_forall | Set.ofPred_forall | 2026-07-09 |