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

56 declarations and 1 deprecated aliases. Mathlib docs · Source

theorem Set.range_sigmaMk E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} (i : ι), Set.range (Sigma.mk i) = Sigma.fst ⁻¹' {i}

theorem Set.preimage_image_sigmaMk_of_ne E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {i j : ι}, i ≠ j → ∀ (s : Set (α j)), Sigma.mk i ⁻¹' Sigma.mk j '' s = ∅

theorem Set.image_sigmaMk_preimage_sigmaMap_subset E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {α : ι → Type u_3} {β : ι' → Type u_4} (f : ι → ι') (g : (i : ι) → α i → β (f i))
  (i : ι) (s : Set (β (f i))), Sigma.mk i '' g i ⁻¹' s ⊆ Sigma.map f g ⁻¹' Sigma.mk (f i) '' s

theorem Set.image_sigmaMk_preimage_sigmaMap E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {α : ι → Type u_3} {β : ι' → Type u_4} {f : ι → ι'},
  Function.Injective f →
    ∀ (g : (i : ι) → α i → β (f i)) (i : ι) (s : Set (β (f i))),
      Sigma.mk i '' g i ⁻¹' s = Sigma.map f g ⁻¹' Sigma.mk (f i) '' s

def Set.sigma E1 #

{ι : Type u_1} → {α : ι → Type u_3} → Set ι → ((i : ι) → Set (α i)) → Set ((i : ι) × α i)

Indexed sum of sets. s.sigma t is the set of dependent pairs ⟨i, a⟩ such that i ∈ s and a ∈ t i.

theorem Set.mem_sigma_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {x : (i : ι) × α i},
  x ∈ s.sigma t ↔ x.fst ∈ s ∧ x.snd ∈ t x.fst

theorem Set.mk_sigma_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι} {a : α i},
  ⟨i, a⟩ ∈ s.sigma t ↔ i ∈ s ∧ a ∈ t i

theorem Set.mk_mem_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι} {a : α i},
  i ∈ s → a ∈ t i → ⟨i, a⟩ ∈ s.sigma t

theorem Set.sigma_mono E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s₁ s₂ : Set ι} {t₁ t₂ : (i : ι) → Set (α i)},
  s₁ ⊆ s₂ → (∀ (i : ι), t₁ i ⊆ t₂ i) → s₁.sigma t₁ ⊆ s₂.sigma t₂

theorem Set.sigma_subset_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {u : Set ((i : ι) × α i)},
  s.sigma t ⊆ u ↔ ∀ ⦃i : ι⦄, i ∈ s → ∀ ⦃a : α i⦄, a ∈ t i → ⟨i, a⟩ ∈ u

theorem Set.forall_sigma_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {p : (i : ι) × α i → Prop},
  (∀ x ∈ s.sigma t, p x) ↔ ∀ ⦃i : ι⦄, i ∈ s → ∀ ⦃a : α i⦄, a ∈ t i → p ⟨i, a⟩

theorem Set.exists_sigma_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {p : (i : ι) × α i → Prop},
  (∃ x ∈ s.sigma t, p x) ↔ ∃ i ∈ s, ∃ a ∈ t i, p ⟨i, a⟩

theorem Set.sigma_empty E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι}, (s.sigma fun i ↦ ∅) = ∅

theorem Set.empty_sigma E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {t : (i : ι) → Set (α i)}, ∅.sigma t = ∅

theorem Set.univ_sigma_univ E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {i : ι}, (Set.univ.sigma fun x ↦ Set.univ) = Set.univ

theorem Set.sigma_univ E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι}, (s.sigma fun x ↦ Set.univ) = Sigma.fst ⁻¹' s

theorem Set.univ_sigma_preimage_mk E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} (s : Set ((i : ι) × α i)), (Set.univ.sigma fun i ↦ Sigma.mk i ⁻¹' s) = s

theorem Set.singleton_sigma E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {t : (i : ι) → Set (α i)} {i : ι}, {i}.sigma t = Sigma.mk i '' t i

theorem Set.sigma_singleton E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {a : (i : ι) → α i}, (s.sigma fun i ↦ {a i}) = (fun i ↦ ⟨i, a i⟩) '' s

theorem Set.singleton_sigma_singleton E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {i : ι} {a : (i : ι) → α i}, ({i}.sigma fun i ↦ {a i}) = {⟨i, a i⟩}

theorem Set.union_sigma E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s₁ s₂ : Set ι} {t : (i : ι) → Set (α i)},
  (s₁ ∪ s₂).sigma t = s₁.sigma t ∪ s₂.sigma t

theorem Set.sigma_union E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t₁ t₂ : (i : ι) → Set (α i)},
  (s.sigma fun i ↦ t₁ i ∪ t₂ i) = s.sigma t₁ ∪ s.sigma t₂

theorem Set.sigma_inter_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s₁ s₂ : Set ι} {t₁ t₂ : (i : ι) → Set (α i)},
  s₁.sigma t₁ ∩ s₂.sigma t₂ = (s₁ ∩ s₂).sigma fun i ↦ t₁ i ∩ t₂ i

theorem biSup_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_4} [inst : CompleteLattice β] (s : Set ι) (t : (i : ι) → Set (α i))
  (f : Sigma α → β), ⨆ ij ∈ s.sigma t, f ij = ⨆ i ∈ s, ⨆ j ∈ t i, f ⟨i, j⟩

theorem biSup_sigma' E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_4} [inst : CompleteLattice β] (s : Set ι) (t : (i : ι) → Set (α i))
  (f : (i : ι) → α i → β), ⨆ i ∈ s, ⨆ j ∈ t i, f i j = ⨆ ij ∈ s.sigma t, f ij.fst ij.snd

theorem biInf_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_4} [inst : CompleteLattice β] (s : Set ι) (t : (i : ι) → Set (α i))
  (f : Sigma α → β), ⨅ ij ∈ s.sigma t, f ij = ⨅ i ∈ s, ⨅ j ∈ t i, f ⟨i, j⟩

theorem biInf_sigma' E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_4} [inst : CompleteLattice β] (s : Set ι) (t : (i : ι) → Set (α i))
  (f : (i : ι) → α i → β), ⨅ i ∈ s, ⨅ j ∈ t i, f i j = ⨅ ij ∈ s.sigma t, f ij.fst ij.snd

theorem Set.biUnion_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_5} (s : Set ι) (t : (i : ι) → Set (α i)) (f : Sigma α → Set β),
  ⋃ ij ∈ s.sigma t, f ij = ⋃ i ∈ s, ⋃ j ∈ t i, f ⟨i, j⟩

theorem Set.biUnion_sigma' E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_5} (s : Set ι) (t : (i : ι) → Set (α i)) (f : (i : ι) → α i → Set β),
  ⋃ i ∈ s, ⋃ j ∈ t i, f i j = ⋃ ij ∈ s.sigma t, f ij.fst ij.snd

theorem Set.biInter_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_5} (s : Set ι) (t : (i : ι) → Set (α i)) (f : Sigma α → Set β),
  ⋂ ij ∈ s.sigma t, f ij = ⋂ i ∈ s, ⋂ j ∈ t i, f ⟨i, j⟩

theorem Set.biInter_sigma' E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : Type u_5} (s : Set ι) (t : (i : ι) → Set (α i)) (f : (i : ι) → α i → Set β),
  ⋂ i ∈ s, ⋂ j ∈ t i, f i j = ⋂ ij ∈ s.sigma t, f ij.fst ij.snd

theorem Set.insert_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι},
  (insert i s).sigma t = Sigma.mk i '' t i ∪ s.sigma t

theorem Set.sigma_insert E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {a : (i : ι) → α i},
  (s.sigma fun i ↦ insert (a i) (t i)) = (fun i ↦ ⟨i, a i⟩) '' s ∪ s.sigma t

theorem Set.sigma_preimage_eq E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {β : ι → Type u_6}
  {f : ι' → ι} {g : (i : ι) → β i → α i},
  ((f ⁻¹' s).sigma fun i ↦ g (f i) ⁻¹' t (f i)) = (fun p ↦ ⟨f p.fst, g (f p.fst) p.snd⟩) ⁻¹' s.sigma t

theorem Set.sigma_preimage_left E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {f : ι' → ι},
  ((f ⁻¹' s).sigma fun i ↦ t (f i)) = (fun p ↦ ⟨f p.fst, p.snd⟩) ⁻¹' s.sigma t

theorem Set.sigma_preimage_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {β : ι → Type u_6} {g : (i : ι) → β i → α i},
  (s.sigma fun i ↦ g i ⁻¹' t i) = (fun p ↦ ⟨p.fst, g p.fst p.snd⟩) ⁻¹' s.sigma t

theorem Set.preimage_sigmaMap_sigma E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {α : ι → Type u_3} {α' : ι' → Type u_7} (f : ι → ι') (g : (i : ι) → α i → α' (f i))
  (s : Set ι') (t : (i : ι') → Set (α' i)), Sigma.map f g ⁻¹' s.sigma t = (f ⁻¹' s).sigma fun i ↦ g i ⁻¹' t (f i)

theorem Set.mk_preimage_sigma E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι},
  i ∈ s → Sigma.mk i ⁻¹' s.sigma t = t i

theorem Set.mk_preimage_sigma_eq_empty E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι}, i ∉ s → Sigma.mk i ⁻¹' s.sigma t = ∅

theorem Set.mk_preimage_sigma_eq_if E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι} [inst : DecidablePred fun x ↦ x ∈ s],
  Sigma.mk i ⁻¹' s.sigma t = if i ∈ s then t i else ∅

theorem Set.mk_preimage_sigma_fn_eq_if E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι} {β : Type u_7}
  [inst : DecidablePred fun x ↦ x ∈ s] (g : β → α i), (fun b ↦ ⟨i, g b⟩) ⁻¹' s.sigma t = if i ∈ s then g ⁻¹' t i else ∅

theorem Set.sigma_univ_range_eq E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : ι → Type u_6} {f : (i : ι) → α i → β i},
  (Set.univ.sigma fun i ↦ Set.range (f i)) = Set.range fun x ↦ ⟨x.fst, f x.fst x.snd⟩

theorem Set.Nonempty.sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)},
  s.Nonempty → (∀ (i : ι), (t i).Nonempty) → (s.sigma t).Nonempty

theorem Set.Nonempty.sigma_fst E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)}, (s.sigma t).Nonempty → s.Nonempty

theorem Set.Nonempty.sigma_snd E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)},
  (s.sigma t).Nonempty → ∃ i ∈ s, (t i).Nonempty

theorem Set.sigma_nonempty_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)},
  (s.sigma t).Nonempty ↔ ∃ i ∈ s, (t i).Nonempty

theorem Set.sigma_eq_empty_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)}, s.sigma t = ∅ ↔ ∀ i ∈ s, t i = ∅

theorem Set.image_sigmaMk_subset_sigma_left E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {a : (i : ι) → α i},
  (∀ (i : ι), a i ∈ t i) → (fun i ↦ ⟨i, a i⟩) '' s ⊆ s.sigma t

theorem Set.image_sigmaMk_subset_sigma_right E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {i : ι}, i ∈ s → Sigma.mk i '' t i ⊆ s.sigma t

theorem Set.sigma_subset_preimage_fst E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} (s : Set ι) (t : (i : ι) → Set (α i)), s.sigma t ⊆ Sigma.fst ⁻¹' s

theorem Set.fst_image_sigma_subset E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} (s : Set ι) (t : (i : ι) → Set (α i)), Sigma.fst '' s.sigma t ⊆ s

theorem Set.image_sigma_eq_iUnion E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)} {γ : Type u_7} (f : (i : ι) × α i → γ),
  f '' s.sigma t = ⋃ i ∈ s, f ∘ Sigma.mk i '' t i

theorem Set.fst_image_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {t : (i : ι) → Set (α i)} (s : Set ι),
  (∀ (i : ι), (t i).Nonempty) → Sigma.fst '' s.sigma t = s

theorem Set.sigma_sdiff_sigma E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s₁ s₂ : Set ι} {t₁ t₂ : (i : ι) → Set (α i)},
  s₁.sigma t₁ \ s₂.sigma t₂ = s₁.sigma (t₁ \ t₂) ∪ (s₁ \ s₂).sigma t₁

theorem Set.sigma_eq_biUnion E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {s : Set ι} {t : (i : ι) → Set (α i)}, s.sigma t = ⋃ i ∈ s, Sigma.mk i '' t i

theorem Set.uncurry_preimage_sigma_pi E1 #

∀ {ι : Type u_1} {α : ι → Type u_3} {β : (i : ι) → α i → Type u_7} (s : Set ι) (t : (i : ι) → Set (α i))
  (u : (p : (i : ι) × α i) → Set (β p.fst p.snd)),
  Sigma.uncurry ⁻¹' (s.sigma t).pi u = s.pi fun i ↦ (t i).pi fun j ↦ u ⟨i, j⟩

Deprecated aliases

NameNew nameSince
Set.sigma_diff_sigmaSet.sigma_sdiff_sigma2026-06-03