The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Set.Subset
24 declarations and 1 deprecated aliases. Mathlib docs · Source
Sets in subtypes
This file is about sets in Set A when A is a set.
It defines notation ↓∩ for sets in a type pulled down to sets in a subtype, as an inverse
operation to the coercion that lifts sets in a subtype up to sets in the ambient type.
This module also provides lemmas for ↓∩ and this coercion.
Notation
Let α be a Type, A B : Set α two sets in α, and C : Set A a set in the subtype ↑A.
A ↓∩ Bdenotes(Subtype.val ⁻¹' B : Set A)(that is,{x : ↑A | ↑x ∈ B}).↑CdenotesSubtype.val '' C(that is,{x : α | ∃ y ∈ C, ↑y = x}).
This notation, (together with the ↑ notation for Set.CoeHead)
is defined in Mathlib/Data/Set/Notation.lean and is scoped to the Set.Notation namespace.
To enable it, use open Set.Notation.
Naming conventions
Theorem names refer to ↓∩ as preimage_val.
Tags
subsets
The following simp lemmas try to transform operations in the subtype into operations in the ambient type, if possible.
Relations between restriction and coercion.
theorem Set.preimage_val_eq_univ_of_subset E1 #
∀ {α : Type u_2} {A B : Set α}, A ⊆ B → Subtype.val ⁻¹' B = Set.univ
theorem Set.preimage_val_sUnion E1 #
∀ {α : Type u_2} {A : Set α} {S : Set (Set α)}, Subtype.val ⁻¹' ⋃₀ S = ⋃₀ {x | ∃ B ∈ S, Subtype.val ⁻¹' B = x}
theorem Set.preimage_val_iInter E0 #
∀ {ι : Sort u_1} {α : Type u_2} {A : Set α} {s : ι → Set α}, Subtype.val ⁻¹' ⋂ i, s i = ⋂ i, Subtype.val ⁻¹' s i
theorem Set.preimage_val_sInter E1 #
∀ {α : Type u_2} {A : Set α} {S : Set (Set α)}, Subtype.val ⁻¹' ⋂₀ S = ⋂₀ {x | ∃ B ∈ S, Subtype.val ⁻¹' B = x}
theorem Set.preimage_val_sInter_eq_sInter E1 #
∀ {α : Type u_2} {A : Set α} {S : Set (Set α)}, Subtype.val ⁻¹' ⋂₀ S = ⋂₀ ((fun x ↦ Subtype.val ⁻¹' x) '' S)
theorem Set.image_val_union E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, Subtype.val '' (D ∪ E) = Subtype.val '' D ∪ Subtype.val '' E
theorem Set.image_val_inter E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, Subtype.val '' (D ∩ E) = Subtype.val '' D ∩ Subtype.val '' E
theorem Set.image_val_sdiff E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, Subtype.val '' (D \ E) = Subtype.val '' D \ Subtype.val '' E
theorem Set.image_val_compl E0 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, Subtype.val '' Dᶜ = A \ Subtype.val '' D
theorem Set.image_val_sUnion E0 #
∀ {α : Type u_2} {A : Set α} {T : Set (Set ↑A)}, Subtype.val '' ⋃₀ T = ⋃₀ {x | ∃ B ∈ T, Subtype.val '' B = x}
theorem Set.image_val_iUnion E0 #
∀ {ι : Sort u_1} {α : Type u_2} {A : Set α} {t : ι → Set ↑A}, Subtype.val '' ⋃ i, t i = ⋃ i, Subtype.val '' t i
theorem Set.image_val_sInter E0 #
∀ {α : Type u_2} {A : Set α} {T : Set (Set ↑A)},
T.Nonempty → Subtype.val '' ⋂₀ T = ⋂₀ {x | ∃ B ∈ T, Subtype.val '' B = x}
theorem Set.image_val_iInter E0 #
∀ {ι : Sort u_1} {α : Type u_2} {A : Set α} {t : ι → Set ↑A} [Nonempty ι],
Subtype.val '' ⋂ i, t i = ⋂ i, Subtype.val '' t i
theorem Set.image_val_union_self_right_eq E0 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, A ∪ Subtype.val '' D = A
theorem Set.image_val_union_self_left_eq E0 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, Subtype.val '' D ∪ A = A
theorem Set.image_val_inter_self_right_eq_coe E0 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, A ∩ Subtype.val '' D = Subtype.val '' D
theorem Set.image_val_inter_self_left_eq_coe E0 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, Subtype.val '' D ∩ A = Subtype.val '' D
theorem Set.subset_preimage_val_image_val_iff E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, D ⊆ Subtype.val ⁻¹' Subtype.val '' E ↔ D ⊆ E
theorem Set.image_val_inj E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, Subtype.val '' D = Subtype.val '' E ↔ D = E
theorem Set.image_val_injective E1 #
∀ {α : Type u_2} {A : Set α}, Function.Injective (Set.image Subtype.val)
theorem Set.subset_of_image_val_subset_image_val E0 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, Subtype.val '' D ⊆ Subtype.val '' E → D ⊆ E
theorem Set.image_val_mono E1 #
∀ {α : Type u_2} {A : Set α} {D E : Set ↑A}, D ⊆ E → Subtype.val '' D ⊆ Subtype.val '' E
theorem Set.image_val_preimage_val_subset_self E1 #
∀ {α : Type u_2} {A B : Set α}, Subtype.val '' Subtype.val ⁻¹' B ⊆ B
theorem Set.preimage_val_image_val_eq_self E1 #
∀ {α : Type u_2} {A : Set α} {D : Set ↑A}, Subtype.val ⁻¹' Subtype.val '' D = D
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.image_val_diff | Set.image_val_sdiff | 2026-06-03 |