The areas / V13. General topology
Mathlib.Topology.LocallyClosed
48 declarations and 3 deprecated aliases. Mathlib docs · Source
Locally closed sets
In this file, we develop API for the predicates IsLocallyClosedAt, expressing that
a set is locally closed at a point, and IsLocallyClosed, expressing that a set is locally closed.
These are defined earlier, but most of their API should be in this file.
Main results
isLocallyClosedAt_tfae: A setsis locally closed at a pointxif one of the equivalent conditions below hold- There is a neighborhood
Uofxsuch thatU ∩ scan be writtenU ∩ Zfor some closed setZ(this is the definition). - There is a neighborhood
Uofxsuch thatU ∩ sis a closed subset ofU. - There is a neighborhood
Uofxsuch thatU ∩ closure s ⊆ s. - There is a neighborhood
Uofxsuch thatU ∩ s = U ∩ closure s. scoincides with some closed setZeventually nearx.sandclosure scoincide eventually nearx.closure s ⊆ seventually nearx.sis a neighborhood ofxinsideclosure s.coborder sis a neighborhood ofx.
- There is a neighborhood
isLocallyClosed_tfae: A setsis locally closed if one of the equivalent conditions below hold- It is the intersection of some open set and some closed set (this is the definition).
- It is locally closed at each of its points.
- It is locally closed at each point of its coborder.
- The coborder
(closure s \ s)ᶜis open. sis the intersection of an open set andclosure s.sis open in the closure ofs.
theorem mem_coborder_iff_imp E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, x ∈ coborder s ↔ x ∈ closure s → x ∈ s
theorem subset_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, s ⊆ coborder s
theorem coborder_inter_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, coborder s ∩ closure s = s
theorem closure_inter_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, closure s ∩ coborder s = s
theorem coborder_eq_union_frontier_compl E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, coborder s = s ∪ (frontier s)ᶜ
theorem coborder_eq_univ_iff E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, coborder s = Set.univ ↔ IsClosed s
theorem IsClosed.coborder_eq E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsClosed s → coborder s = Set.univ
Alias of the reverse direction of coborder_eq_univ_iff.
theorem coborder_eq_compl_frontier_iff E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, coborder s = (frontier s)ᶜ ↔ IsOpen s
theorem coborder_eq_union_closure_compl E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, coborder s = s ∪ (closure s)ᶜ
theorem dense_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, Dense (coborder s)
The coborder of any set is dense
theorem IsOpen.coborder_eq E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsOpen s → coborder s = (frontier s)ᶜ
Alias of the reverse direction of coborder_eq_compl_frontier_iff.
theorem IsOpenMap.coborder_preimage_subset E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsOpenMap f → ∀ (s : Set Y), coborder (f ⁻¹' s) ⊆ f ⁻¹' coborder s
theorem Continuous.preimage_coborder_subset E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
Continuous f → ∀ (s : Set Y), f ⁻¹' coborder s ⊆ coborder (f ⁻¹' s)
theorem coborder_preimage E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsOpenMap f → Continuous f → ∀ (s : Set Y), coborder (f ⁻¹' s) = f ⁻¹' coborder s
theorem Topology.IsOpenEmbedding.coborder_preimage E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
Topology.IsOpenEmbedding f → ∀ (s : Set Y), coborder (f ⁻¹' s) = f ⁻¹' coborder s
theorem isClosed_preimage_val_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsClosed (Subtype.val ⁻¹' s)
theorem IsLocallyClosedAt.of_mem_nhds E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, s ∈ nhds x → IsLocallyClosedAt s x
theorem IsLocallyClosedAt.of_notMem_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, x ∉ closure s → IsLocallyClosedAt s x
theorem IsLocallyClosedAt.preimage E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {x : X} {s : Set Y}
{f : X → Y}, IsLocallyClosedAt s (f x) → Continuous f → IsLocallyClosedAt (f ⁻¹' s) x
theorem isLocallyClosedAt_tfae E3 #
∀ {X : Type u_1} [inst : TopologicalSpace X] (s : Set X) (x : X),
[IsLocallyClosedAt s x, ∃ U ∈ nhds x, IsClosed (Subtype.val ⁻¹' s), ∃ U ∈ nhds x, U ∩ closure s ⊆ s,
∃ U ∈ nhds x, U ∩ s = U ∩ closure s, ∃ Z, IsClosed Z ∧ s =ᶠ[nhds x] Z, s =ᶠ[nhds x] closure s,
closure s ≤ᶠ[nhds x] s, s ∈ nhdsWithin x (closure s), coborder s ∈ nhds x].TFAE
A set s is locally closed at a point x if one of the equivalent conditions below hold
- There is a neighborhood
Uofxsuch thatU ∩ scan be writtenU ∩ Zfor some closed setZ(this is the definition). - There is a neighborhood
Uofxsuch thatU ∩ sis a closed subset ofU. - There is a neighborhood
Uofxsuch thatU ∩ closure s ⊆ s. - There is a neighborhood
Uofxsuch thatU ∩ s = U ∩ closure s. scoincides with some closed setZeventually nearx.sandclosure scoincide eventually nearx.closure s ⊆ seventually nearx.sis a neighborhood ofxinsideclosure s.coborder sis a neighborhood ofx.
Furthermore (see API below), in assertions 1, 2, 3 and 4, one can restrict to U belonging
to a basis of neighborhoods of x.
theorem isLocallyClosedAt_iff_exists_isClosed_preimage_val E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X},
IsLocallyClosedAt s x ↔ ∃ U ∈ nhds x, IsClosed (Subtype.val ⁻¹' s)
theorem isLocallyClosedAt_iff_exists_inter_closure_subset E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X},
IsLocallyClosedAt s x ↔ ∃ U ∈ nhds x, U ∩ closure s ⊆ s
theorem isLocallyClosedAt_iff_exists_eq_inter_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X},
IsLocallyClosedAt s x ↔ ∃ U ∈ nhds x, U ∩ s = U ∩ closure s
theorem isLocallyClosedAt_iff_exists_isClosed_inter_eq_of_hasBasis E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {ι : Type u_3} {p : ι → Prop} {U : ι → Set X} {x : X},
(nhds x).HasBasis p U → (IsLocallyClosedAt s x ↔ ∃ i, p i ∧ ∃ Z, IsClosed Z ∧ U i ∩ s = U i ∩ Z)
theorem isLocallyClosedAt_iff_exists_isClosed_preimage_val_of_hasBasis E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {ι : Type u_3} {p : ι → Prop} {U : ι → Set X} {x : X},
(nhds x).HasBasis p U → (IsLocallyClosedAt s x ↔ ∃ i, p i ∧ IsClosed (Subtype.val ⁻¹' s))
theorem isLocallyClosedAt_iff_exists_inter_closure_subset_of_hasBasis E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {ι : Type u_3} {p : ι → Prop} {U : ι → Set X} {x : X},
(nhds x).HasBasis p U → (IsLocallyClosedAt s x ↔ ∃ i, p i ∧ U i ∩ closure s ⊆ s)
theorem isLocallyClosedAt_iff_exists_eq_inter_closure_of_hasBasis E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {ι : Type u_3} {p : ι → Prop} {U : ι → Set X} {x : X},
(nhds x).HasBasis p U → (IsLocallyClosedAt s x ↔ ∃ i, p i ∧ U i ∩ s = U i ∩ closure s)
theorem isLocallyClosedAt_iff_exists_isClosed_eventuallyEqSet E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X},
IsLocallyClosedAt s x ↔ ∃ Z, IsClosed Z ∧ s =ᶠ[nhds x] Z
theorem isLocallyClosedAt_iff_eventuallyEqSet_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, IsLocallyClosedAt s x ↔ s =ᶠ[nhds x] closure s
theorem isLocallyClosedAt_iff_closure_eventuallySubset E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, IsLocallyClosedAt s x ↔ closure s ≤ᶠ[nhds x] s
theorem isLocallyClosedAt_iff_coborder_mem_nhds E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X} {x : X}, IsLocallyClosedAt s x ↔ coborder s ∈ nhds x
theorem IsLocallyClosedAt.congr E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s t : Set X} {x : X},
IsLocallyClosedAt s x → s =ᶠ[nhds x] t → IsLocallyClosedAt t x
theorem isLocallyClosedAt_congr E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s t : Set X} {x : X},
s =ᶠ[nhds x] t → (IsLocallyClosedAt s x ↔ IsLocallyClosedAt t x)
theorem interior_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, interior (coborder s) = {x | IsLocallyClosedAt s x}
theorem IsLocallyClosedAt.inter E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s t : Set X} {x : X},
IsLocallyClosedAt s x → IsLocallyClosedAt t x → IsLocallyClosedAt (s ∩ t) x
theorem IsLocallyClosedAt.union E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s t : Set X} {x : X},
IsLocallyClosedAt s x → IsLocallyClosedAt t x → IsLocallyClosedAt (s ∪ t) x
theorem IsLocallyClosed.isLocallyClosedAt E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s → ∀ {x : X}, x ∈ s → IsLocallyClosedAt s x
theorem IsLocallyClosed.inter E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s t : Set X},
IsLocallyClosed s → IsLocallyClosed t → IsLocallyClosed (s ∩ t)
theorem IsLocallyClosed.preimage E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {s : Set Y},
IsLocallyClosed s → ∀ {f : X → Y}, Continuous f → IsLocallyClosed (f ⁻¹' s)
theorem Topology.IsInducing.isLocallyClosed_iff E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {s : Set X} {f : X → Y},
Topology.IsInducing f → (IsLocallyClosed s ↔ ∃ s', IsLocallyClosed s' ∧ f ⁻¹' s' = s)
theorem Topology.IsEmbedding.isLocallyClosed_iff E0 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {s : Set X} {f : X → Y},
Topology.IsEmbedding f → (IsLocallyClosed s ↔ ∃ s', IsLocallyClosed s' ∧ s' ∩ Set.range f = f '' s)
theorem IsLocallyClosed.image E1 #
∀ {X : Type u_1} {Y : Type u_2} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {s : Set X},
IsLocallyClosed s → ∀ {f : X → Y}, Topology.IsInducing f → IsLocallyClosed (Set.range f) → IsLocallyClosed (f '' s)
theorem isLocallyClosed_tfae E3 #
∀ {X : Type u_1} [inst : TopologicalSpace X] (s : Set X),
[IsLocallyClosed s, ∀ x ∈ s, IsLocallyClosedAt s x, ∀ x ∈ coborder s, IsLocallyClosedAt s x, IsOpen (coborder s),
∃ U, IsOpen U ∧ s = U ∩ closure s, IsOpen (Subtype.val ⁻¹' s)].TFAE
A set s is locally closed if one of the equivalent conditions below hold
- It is the intersection of some open set and some closed set (this is the definition).
- It is locally closed at each of its points.
- It is locally closed at each point of its coborder.
- The coborder
(closure s \ s)ᶜis open. sis the intersection of an open set andclosure s.sis open in the closure ofs.
theorem isLocallyClosed_iff_isLocallyClosedAt E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s ↔ ∀ x ∈ s, IsLocallyClosedAt s x
theorem isLocallyClosed_iff_isOpen_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s ↔ IsOpen (coborder s)
theorem IsLocallyClosed.isOpen_coborder E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s → IsOpen (coborder s)
Alias of the forward direction of isLocallyClosed_iff_isOpen_coborder.
theorem isLocallyClosed_iff_isOpen_preimage_val_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s ↔ IsOpen (Subtype.val ⁻¹' s)
theorem IsLocallyClosed.isOpen_preimage_val_closure E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {s : Set X}, IsLocallyClosed s → IsOpen (Subtype.val ⁻¹' s)
Alias of the forward direction of isLocallyClosed_iff_isOpen_preimage_val_closure.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
isLocallyClosedAt_iff_closure_eventuallyLE | isLocallyClosedAt_iff_closure_eventuallySubset | 2026-09-02 |
isLocallyClosedAt_iff_eventuallyEq_closure | isLocallyClosedAt_iff_eventuallyEqSet_closure | 2026-09-02 |
isLocallyClosedAt_iff_exists_isClosed_eventuallyEq | isLocallyClosedAt_iff_exists_isClosed_eventuallyEqSet | 2026-09-02 |