|
|
|
|
SSL LocallyPathConnected.lean
Sprache: Lean
|
|
/-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Ben Eltschig
-/
module
public import Mathlib.Topology.AlexandrovDiscrete
public import Mathlib.Topology.Connected.PathConnected
/-!
# Locally path-connected spaces
This file defines `LocallyPathConnectedSpace X`, a predicate class asserting that `X` is locally
path-connected, in that each point has a basis of path-connected neighborhoods.
## Main results
* `IsOpen.pathComponent` / `IsClosed.pathComponent`: in locally path-connected spaces,
path-components are both open and closed.
* `pathComponent_eq_connectedComponent`: in locally path-connected spaces, path-components and
connected components agree.
* `pathConnectedSpace_iff_connectedSpace`: locally path-connected spaces are path-connected iff they
are connected.
* `instLocallyConnectedSpace`: locally path-connected spaces are also locally connected.
* `IsOpen.locallyPathConnectedSpace`: open subsets of locally path-connected spaces are
locally path-connected.
* `LocallyPathConnectedSpace.coinduced` / `Quotient.locallyPathConnectedSpace`: quotients of locally
path-connected spaces are locally path-connected.
* `Sum.locallyPathConnectedSpace` / `Sigma.locallyPathConnectedSpace`: disjoint unions of locally
path-connected spaces are locally path-connected.
* `Prod.locallyPathConnectedSpace` / `Pi.locallyPathConnectedSpace`: binary products of locally
path-connected spaces are locally path-connected; likewise for pi types when the index type is
finite or all factors are path-connected.
* `Pi.locallyPathConnectedSpace_iff`: a product of spaces is locally path-connected iff it is
empty, or every factor is locally path-connected and all but finitely many factors are
path-connected.
Abstractly, this also shows that locally path-connected spaces form a coreflective subcategory of
the category of topological spaces, although we do not prove that in this form here.
## Implementation notes
In the definition of `LocallyPathConnectedSpace X` we require neighbourhoods in the basis to be
path-connected, but not necessarily open; that they can also be required to be open is shown as
a theorem in `isOpen_isPathConnected_basis`.
-/
@[expose] public section
noncomputable section
open Topology Filter Set Function
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x y z : X} {ι : Type*} {F : Set X}
section LocallyPathConnectedSpace
/-- A topological space is locally path connected if, at every point, path connected
neighborhoods form a neighborhood basis. -/
class LocallyPathConnectedSpace (X : Type*) [TopologicalSpace X] : Prop where
/-- Each neighborhood filter has a basis of path-connected neighborhoods. -/
path_connected_basis : ∀ x : X, ( x).HasBasis (fun s : Set X => s ∈ x ∧ IsPathConnected s) id
@[deprecated (since := "2026-06-21")] alias LocPathConnectedSpace := LocallyPathConnectedSpace
@[deprecated (since := "2026-06-21")]
alias LocPathConnectedSpace.path_connected_basis :=
LocallyPathConnectedSpace.path_connected_basis
export LocallyPathConnectedSpace (path_connected_basis)
theorem LocallyPathConnectedSpace.of_bases {p : X → ι → Prop} {s : X → ι → Set X}
(h : ∀ x, ( x).HasBasis (p x) (s x)) (h' : ∀ x i, p x i → IsPathConnected (s x i)) :
LocallyPathConnectedSpace X where
path_connected_basis x := by
rw [hasBasis_self]
intro t ht
rcases (h x).mem_iff.mp ht with ⟨i, hpi, hi⟩
exact ⟨s x i, (h x).mem_of_mem hpi, h' x i hpi, hi⟩
@[deprecated (since := "2026-06-21")]
alias LocPathConnectedSpace.of_bases := LocallyPathConnectedSpace.of_bases
variable [LocallyPathConnectedSpace X]
protected theorem IsOpen.pathComponentIn (hF : IsOpen F) (x : X) :
IsOpen (pathComponentIn F x) := by
rw [isOpen_iff_mem_nhds]
intro y hy
let ⟨s, hs⟩ := (path_connected_basis y).mem_iff.mp (hF.mem_nhds (pathComponentIn_subset hy))
exact mem_of_superset hs.1.1 <| pathComponentIn_congr hy ▸
hs.1.2.subset_pathComponentIn (mem_of_mem_nhds hs.1.1) hs.2
/-- In a locally path connected space, each path component is an open set. -/
protected theorem IsOpen.pathComponent (x : X) : IsOpen (pathComponent x) := by
rw [← pathComponentIn_univ]
exact isOpen_univ.pathComponentIn _
/-- In a locally path connected space, each path component is a closed set. -/
protected theorem IsClosed.pathComponent (x : X) : IsClosed (pathComponent x) := by
rw [← isOpen_compl_iff, isOpen_iff_mem_nhds]
intro y hxy
rcases (path_connected_basis y).ex_mem with ⟨V, hVy, hVc⟩
filter_upwards [hVy] with z hz hxz
exact hxy <| hxz.trans (hVc.joinedIn _ hz _ (mem_of_mem_nhds hVy)).joined
/-- In a locally path connected space, each path component is a clopen set. -/
protected theorem IsClopen.pathComponent (x : X) : IsClopen (pathComponent x) :=
⟨.pathComponent x, .pathComponent x⟩
lemma pathComponentIn_mem_nhds (hF : F ∈ x) : pathComponentIn F x ∈ x := by
let ⟨u, huF, hu, hxu⟩ := mem_nhds_iff.mp hF
exact mem_nhds_iff.mpr ⟨pathComponentIn u x, pathComponentIn_mono huF,
hu.pathComponentIn x, mem_pathComponentIn_self hxu⟩
theorem PathConnectedSpace.of_locallyPathConnectedSpace [ConnectedSpace X] : PathConnectedSpace X :=
⟨inferInstance, by simp [← mem_pathComponent_iff, IsClopen.pathComponent _ |>.eq_univ]⟩
@[deprecated (since := "2026-06-21")]
alias PathConnectedSpace.of_locPathConnectedSpace := PathConnectedSpace.of_locallyPathConnectedSpace
theorem pathConnectedSpace_iff_connectedSpace : PathConnectedSpace X ↔ ConnectedSpace X :=
⟨fun _ ↦ inferInstance, fun _ ↦ .of_locallyPathConnectedSpace⟩
theorem pathComponent_eq_connectedComponent (x : X) : pathComponent x = connectedComponent x :=
(pathComponent_subset_component x).antisymm <|
(IsClopen.pathComponent x).connectedComponent_subset (mem_pathComponent_self _)
theorem connectedComponent_eq_iff_joined (x y : X) :
connectedComponent x = connectedComponent y ↔ Joined x y := by
rw [← mem_pathComponent_iff, pathComponent_eq_connectedComponent, eq_comm]
exact connectedComponent_eq_iff_mem
theorem connectedComponentSetoid_eq_pathSetoid : connectedComponentSetoid X = pathSetoid X :=
Setoid.ext connectedComponent_eq_iff_joined
/-- In a locally path-connected space, connected components and path-connected components align -/
def connectedComponentsEquivZerothHomotopy : ConnectedComponents X ≃ ZerothHomotopy X where
toFun := Quotient.map id (connectedComponent_eq_iff_joined · · |>.mp ·)
invFun := ZerothHomotopy.toConnectedComponents
left_inv := Quot.ind <| congrFun rfl
right_inv := Quot.ind <| congrFun rfl
@[simp]
lemma connectedComponentsEquivZerothHomotopy_apply (x : X) :
connectedComponentsEquivZerothHomotopy ⟦x⟧ = (.mk x) :=
rfl
@[simp]
lemma coe_connectedComponentsEquivZerothHomotopy_symm :
⇑connectedComponentsEquivZerothHomotopy.symm = ZerothHomotopy.toConnectedComponents (X := X) :=
rfl
lemma connectedComponentsEquivZerothHomotopy_symm_apply (x : X) :
connectedComponentsEquivZerothHomotopy.symm (.mk x) = ⟦x⟧ :=
rfl
theorem pathConnected_subset_basis {U : Set X} (h : IsOpen U) (hx : x ∈ U) :
( x).HasBasis (fun s : Set X => s ∈ x ∧ IsPathConnected s ∧ s ⊆ U) id :=
(path_connected_basis x).hasBasis_self_subset (IsOpen.mem_nhds h hx)
theorem isOpen_isPathConnected_basis (x : X) :
( x).HasBasis (fun s : Set X ↦ IsOpen s ∧ x ∈ s ∧ IsPathConnected s) id := by
refine ⟨fun s ↦ ⟨fun hs ↦ ?_, fun ⟨u, hu⟩ ↦ mem_nhds_iff.mpr ⟨u, hu.2, hu.1.1, hu.1.2.1⟩⟩⟩
have ⟨u, hus, hu, hxu⟩ := mem_nhds_iff.mp hs
exact ⟨pathComponentIn u x, ⟨hu.pathComponentIn _, ⟨mem_pathComponentIn_self hxu,
isPathConnected_pathComponentIn hxu⟩⟩, pathComponentIn_subset.trans hus⟩
theorem Topology.IsOpenEmbedding.locallyPathConnectedSpace {e : Y → X} (he : IsOpenEmbedding e) :
LocallyPathConnectedSpace Y :=
have (y : Y) :
( y).HasBasis (fun s ↦ s ∈ (e y) ∧ IsPathConnected s ∧ s ⊆ range e) (e ⁻¹' ·) :=
he.basis_nhds <| pathConnected_subset_basis he.isOpen_range (mem_range_self _)
.of_bases this fun x s ⟨_, hs, hse⟩ ↦ by
rwa [he.isPathConnected_iff, image_preimage_eq_of_subset hse]
@[deprecated (since := "2026-06-21")]
alias Topology.IsOpenEmbedding.locPathConnectedSpace :=
Topology.IsOpenEmbedding.locallyPathConnectedSpace
theorem Homeomorph.locallyPathConnectedSpace (h : X ≃ₜ Y) : LocallyPathConnectedSpace Y :=
h.symm.isOpenEmbedding.locallyPathConnectedSpace
theorem IsOpen.locallyPathConnectedSpace {U : Set X} (h : IsOpen U) : LocallyPathConnectedSpace U :=
h.isOpenEmbedding_subtypeVal.locallyPathConnectedSpace
@[deprecated (since := "2026-06-21")]
alias IsOpen.locPathConnectedSpace := IsOpen.locallyPathConnectedSpace
theorem IsOpen.isConnected_iff_isPathConnected {U : Set X} (U_op : IsOpen U) :
IsConnected U ↔ IsPathConnected U := by
rw [isConnected_iff_connectedSpace, isPathConnected_iff_pathConnectedSpace]
have := U_op.locallyPathConnectedSpace
exact pathConnectedSpace_iff_connectedSpace.symm
/-- Locally path-connected spaces are locally connected. -/
instance : LocallyConnectedSpace X := by
refine ⟨forall_imp (fun x h ↦ ⟨fun s ↦ ?_⟩) isOpen_isPathConnected_basis⟩
refine ⟨fun hs ↦ ?_, fun ⟨u, ⟨hu, hxu, _⟩, hus⟩ ↦ mem_nhds_iff.mpr ⟨u, hus, hu, hxu⟩⟩
let ⟨u, ⟨hu, hxu, hu'⟩, hus⟩ := (h.mem_iff' s).mp hs
exact ⟨u, ⟨hu, hxu, hu'.isConnected⟩, hus⟩
/-- A space is locally path-connected iff all path components of open subsets are open. -/
lemma locallyPathConnectedSpace_iff_isOpen_pathComponentIn {X : Type*} [TopologicalSpace X] :
LocallyPathConnectedSpace X ↔ ∀ (x : X) (u : Set X), IsOpen u → IsOpen (pathComponentIn u x) :=
⟨fun _ _ _ hu ↦ hu.pathComponentIn _, fun h ↦ ⟨fun x ↦ ⟨fun s ↦ by
refine ⟨fun hs ↦ ?_, fun ⟨_, ht⟩ ↦ Filter.mem_of_superset ht.1.1 ht.2⟩
let ⟨u, hu⟩ := mem_nhds_iff.mp hs
exact ⟨pathComponentIn u x, ⟨(h x u hu.2.1).mem_nhds (mem_pathComponentIn_self hu.2.2),
isPathConnected_pathComponentIn hu.2.2⟩, pathComponentIn_subset.trans hu.1⟩⟩⟩⟩
@[deprecated (since := "2026-06-21")]
alias locPathConnectedSpace_iff_isOpen_pathComponentIn :=
locallyPathConnectedSpace_iff_isOpen_pathComponentIn
/-- A space is locally path-connected iff all path components of open subsets are neighbourhoods. -/
lemma locallyPathConnectedSpace_iff_pathComponentIn_mem_nhds {X : Type*} [TopologicalSpace X] :
LocallyPathConnectedSpace X ↔
∀ x : X, ∀ u : Set X, IsOpen u → x ∈ u → pathComponentIn u x ∈ nhds x := by
rw [locallyPathConnectedSpace_iff_isOpen_pathComponentIn]
simp_rw [forall_comm (β := Set X), ← imp_forall_iff]
refine forall_congr' fun u ↦ imp_congr_right fun _ ↦ ?_
exact ⟨fun h x hxu ↦ (h x).mem_nhds (mem_pathComponentIn_self hxu),
fun h x ↦ isOpen_iff_mem_nhds.mpr fun y hy ↦
pathComponentIn_congr hy ▸ h y <| pathComponentIn_subset hy⟩
@[deprecated (since := "2026-06-21")]
alias locPathConnectedSpace_iff_pathComponentIn_mem_nhds :=
locallyPathConnectedSpace_iff_pathComponentIn_mem_nhds
/-- Any topology coinduced by a locally path-connected topology is locally path-connected. -/
lemma LocallyPathConnectedSpace.coinduced {Y : Type*} (f : X → Y) :
@LocallyPathConnectedSpace Y (.coinduced f ‹_›) := by
let _ := TopologicalSpace.coinduced f ‹_›; have hf : Continuous f := continuous_coinduced_rng
refine locallyPathConnectedSpace_iff_isOpen_pathComponentIn.mpr fun y u hu ↦
isOpen_coinduced.mpr <| isOpen_iff_mem_nhds.mpr fun x hx ↦ ?_
have hx' := preimage_mono pathComponentIn_subset hx
refine mem_nhds_iff.mpr ⟨pathComponentIn (f ⁻¹' u) x, ?_,
(hu.preimage hf).pathComponentIn _, mem_pathComponentIn_self hx'⟩
rw [← image_subset_iff, ← pathComponentIn_congr hx]
exact ((isPathConnected_pathComponentIn hx').image hf).subset_pathComponentIn
⟨x, mem_pathComponentIn_self hx', rfl⟩ <|
(image_mono pathComponentIn_subset).trans <| u.image_preimage_subset f
@[deprecated (since := "2026-06-21")]
alias LocPathConnectedSpace.coinduced := LocallyPathConnectedSpace.coinduced
/-- Quotients of locally path-connected spaces are locally path-connected. -/
lemma Topology.IsQuotientMap.locallyPathConnectedSpace {f : X → Y} (h : IsQuotientMap f) :
LocallyPathConnectedSpace Y :=
h.isCoinducing.eq_coinduced ▸ LocallyPathConnectedSpace.coinduced f
@[deprecated (since := "2026-06-21")]
alias Topology.IsQuotientMap.locPathConnectedSpace :=
Topology.IsQuotientMap.locallyPathConnectedSpace
/-- Quotients of locally path-connected spaces are locally path-connected. -/
instance Quot.locallyPathConnectedSpace {r : X → X → Prop} : LocallyPathConnectedSpace (Quot r) :=
isQuotientMap_quot_mk.locallyPathConnectedSpace
@[deprecated (since := "2026-06-21")]
alias Quot.locPathConnectedSpace := Quot.locallyPathConnectedSpace
/-- Quotients of locally path-connected spaces are locally path-connected. -/
instance Quotient.locallyPathConnectedSpace {s : Setoid X} :
LocallyPathConnectedSpace (Quotient s) :=
isQuotientMap_quotient_mk'.locallyPathConnectedSpace
@[deprecated (since := "2026-06-21")]
alias Quotient.locPathConnectedSpace := Quotient.locallyPathConnectedSpace
/-- Disjoint unions of locally path-connected spaces are locally path-connected. -/
instance Sum.locallyPathConnectedSpace [LocallyPathConnectedSpace Y] :
LocallyPathConnectedSpace (X ⊕ Y) := by
rw [locallyPathConnectedSpace_iff_pathComponentIn_mem_nhds]; intro x u hu hxu; rw [mem_nhds_iff]
obtain x | y := x
· refine ⟨Sum.inl '' pathComponentIn (Sum.inl ⁻¹' u) x, ?_, ?_, ?_⟩
· apply IsPathConnected.subset_pathComponentIn
· exact (isPathConnected_pathComponentIn (by exact hxu)).image continuous_inl
· exact ⟨x, mem_pathComponentIn_self hxu, rfl⟩
· exact (image_mono pathComponentIn_subset).trans (u.image_preimage_subset _)
· exact isOpenMap_inl _ <| (hu.preimage continuous_inl).pathComponentIn _
· exact ⟨x, mem_pathComponentIn_self hxu, rfl⟩
· refine ⟨Sum.inr '' pathComponentIn (Sum.inr ⁻¹' u) y, ?_, ?_, ?_⟩
· apply IsPathConnected.subset_pathComponentIn
· exact (isPathConnected_pathComponentIn (by exact hxu)).image continuous_inr
· exact ⟨y, mem_pathComponentIn_self hxu, rfl⟩
· exact (image_mono pathComponentIn_subset).trans (u.image_preimage_subset _)
· exact isOpenMap_inr _ <| (hu.preimage continuous_inr).pathComponentIn _
· exact ⟨y, mem_pathComponentIn_self hxu, rfl⟩
@[deprecated (since := "2026-06-21")]
alias Sum.locPathConnectedSpace := Sum.locallyPathConnectedSpace
/-- Disjoint unions of locally path-connected spaces are locally path-connected. -/
instance Sigma.locallyPathConnectedSpace {X : ι → Type*}
[(i : ι) → TopologicalSpace (X i)] [(i : ι) → LocallyPathConnectedSpace (X i)] :
LocallyPathConnectedSpace ((i : ι) × X i) := by
rw [locallyPathConnectedSpace_iff_pathComponentIn_mem_nhds]; intro x u hu hxu; rw [mem_nhds_iff]
refine ⟨(Sigma.mk x.1) '' pathComponentIn ((Sigma.mk x.1) ⁻¹' u) x.2, ?_, ?_, ?_⟩
· apply IsPathConnected.subset_pathComponentIn
· exact (isPathConnected_pathComponentIn (by exact hxu)).image continuous_sigmaMk
· exact ⟨x.2, mem_pathComponentIn_self hxu, rfl⟩
· exact (image_mono pathComponentIn_subset).trans (u.image_preimage_subset _)
· exact isOpenMap_sigmaMk _ <| (hu.preimage continuous_sigmaMk).pathComponentIn _
· exact ⟨x.2, mem_pathComponentIn_self hxu, rfl⟩
@[deprecated (since := "2026-06-21")]
alias Sigma.locPathConnectedSpace := Sigma.locallyPathConnectedSpace
/-- The product of two locally path-connected spaces is locally path-connected. -/
instance Prod.locallyPathConnectedSpace [LocallyPathConnectedSpace Y] :
LocallyPathConnectedSpace (X × Y) where
path_connected_basis := fun (x, y) ↦ hasBasis_self.mpr fun U hU ↦ by
obtain ⟨u, hu, v, hv, huv⟩ := mem_nhds_prod_iff.mp hU
exact ⟨pathComponentIn u x ×ˢ pathComponentIn v y,
prod_mem_nhds (pathComponentIn_mem_nhds hu) (pathComponentIn_mem_nhds hv),
(isPathConnected_pathComponentIn (mem_of_mem_nhds hu)).prod
(isPathConnected_pathComponentIn (mem_of_mem_nhds hv)),
(Set.prod_mono pathComponentIn_subset pathComponentIn_subset).trans huv⟩
/-- If each `Z i` is locally path-connected and all but finitely many are path-connected, then
`∀ i, Z i` is locally path-connected. -/
theorem Pi.locallyPathConnectedSpace_of_finite_not_pathConnectedSpace {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, LocallyPathConnectedSpace (Z i)]
(hfinite : {i | ¬PathConnectedSpace (Z i)}.Finite) :
LocallyPathConnectedSpace (∀ i, Z i) where
path_connected_basis x := hasBasis_self.mpr fun U hU ↦ by
rw [nhds_pi, Filter.mem_pi] at hU
obtain ⟨J, hJ, t, ht, htU⟩ := hU
let K := J ∪ {i | ¬PathConnectedSpace (Z i)}
refine ⟨K.pi fun i ↦ pathComponentIn (t i) (x i),
set_pi_mem_nhds (hJ.union hfinite) fun i _ ↦ pathComponentIn_mem_nhds (ht i), ?_,
fun f hf ↦ htU fun i hiJ ↦ pathComponentIn_subset (hf i (mem_union_left _ hiJ))⟩
classical
rw [← univ_pi_piecewise_univ]
refine .pi fun i ↦ ?_
by_cases hi : i ∈ K
· rw [piecewise_eq_of_mem _ _ _ hi]
exact isPathConnected_pathComponentIn (mem_of_mem_nhds (ht i))
· rw [piecewise_eq_of_notMem _ _ _ hi]
have : PathConnectedSpace (Z i) := not_not.mp (not_or.1 hi).2
exact isPathConnected_univ
/-- A finite product of locally path-connected spaces is locally path-connected. -/
instance Pi.locallyPathConnectedSpace_of_finite [Finite ι] {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, LocallyPathConnectedSpace (Z i)] :
LocallyPathConnectedSpace (∀ i, Z i) :=
locallyPathConnectedSpace_of_finite_not_pathConnectedSpace (toFinite _)
/-- A product of path-connected, locally path-connected spaces is locally path-connected. Note
that an arbitrary product of locally path-connected spaces need not be locally path-connected, so
the path-connectedness assumption cannot be dropped entirely (though it can be dropped for
finitely many factors, see `Pi.locallyPathConnectedSpace_of_finite_not_pathConnectedSpace`). -/
instance Pi.locallyPathConnectedSpace {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, LocallyPathConnectedSpace (Z i)] [∀ i, PathConnectedSpace (Z i)] :
LocallyPathConnectedSpace (∀ i, Z i) :=
locallyPathConnectedSpace_of_finite_not_pathConnectedSpace
(finite_empty.subset fun _ hi ↦ hi inferInstance)
/-- A product of spaces is locally path-connected iff it is empty, or every factor is locally
path-connected and all but finitely many factors are path-connected. -/
theorem Pi.locallyPathConnectedSpace_iff {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)] :
LocallyPathConnectedSpace (∀ i, Z i) ↔
IsEmpty (∀ i, Z i) ∨
(∀ i, LocallyPathConnectedSpace (Z i)) ∧ {i | ¬PathConnectedSpace (Z i)}.Finite := by
refine ⟨fun h ↦ ?_, ?_⟩
· rcases isEmpty_or_nonempty (∀ i, Z i) with he | hne
· exact .inl he
obtain ⟨x⟩ := hne
classical
have : ∀ i, Nonempty (Z i) := Classical.nonempty_pi.mp ⟨x⟩
refine .inr ⟨fun i ↦ ((isOpenMap_eval i).isQuotientMap (continuous_apply i)
(surjective_eval i)).locallyPathConnectedSpace, ?_⟩
have hVn : pathComponent x ∈ x :=
(IsOpen.pathComponent x).mem_nhds (mem_pathComponent_self x)
rw [nhds_pi, Filter.mem_pi] at hVn
obtain ⟨J, hJ, t, ht, htV⟩ := hVn
refine hJ.subset fun i hi ↦ by_contra fun hiJ ↦ hi ?_
suffices himg : eval i '' pathComponent x = univ from pathConnectedSpace_iff_univ.mpr
(himg ▸ isPathConnected_pathComponent.image (continuous_apply i))
refine (subset_univ _).antisymm fun z _ ↦ ⟨update x i z, htV fun j hj ↦ ?_, by simp⟩
rw [update_of_ne (ne_of_mem_of_not_mem hj hiJ)]
exact mem_of_mem_nhds (ht j)
· rintro (he | ⟨hloc, hfin⟩)
· exact ⟨he.elim⟩
· exact locallyPathConnectedSpace_of_finite_not_pathConnectedSpace hfin
instance AlexandrovDiscrete.locallyPathConnectedSpace [AlexandrovDiscrete X] :
LocallyPathConnectedSpace X := by
apply LocallyPathConnectedSpace.of_bases nhds_basis_nhdsKer_singleton
simp only [forall_const, IsPathConnected, mem_nhdsKer_singleton]
intro x
exists x, specializes_rfl
intro y hy
symm
apply hy.joinedIn <;> rewrite [mem_nhdsKer_singleton] <;> [assumption; rfl]
@[deprecated (since := "2026-06-21")]
alias AlexandrovDiscrete.locPathConnectedSpace := AlexandrovDiscrete.locallyPathConnectedSpace
/-- If a space is locally path-connected, the topology of its path components is discrete. -/
instance : DiscreteTopology <| ZerothHomotopy X := by
refine discreteTopology_iff_isOpen_singleton.mpr fun c ↦ ?_
obtain ⟨x, rfl⟩ := ZerothHomotopy.mk_surjective c
rw [← ZerothHomotopy.isQuotientMap_mk.isOpen_preimage]
grind [ZerothHomotopy.preimage_singleton_eq_pathComponent, IsOpen.pathComponent]
/-- A locally path-connected compact space has finitely many path components. -/
instance [CompactSpace X] : Finite <| ZerothHomotopy X :=
finite_of_compact_of_discrete
end LocallyPathConnectedSpace
¤ Dauer der Verarbeitung: 0.22 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|