Lean library · module TopologyByExample.Theorems.Connectedness
Implications between the connectedness properties
This file collects the implications between connectedness, path connectedness, local connectedness,
local path connectedness, total disconnectedness, total separatedness and zero-dimensionality
that Mathlib does not state, together with the predicate PathPreconnectedSpace.
Mathlib's PathConnectedSpace requires the space to be nonempty, while PreconnectedSpace,
LocallyConnectedSpace, LocallyPathConnectedSpace, TotallyDisconnectedSpace,
TotallySeparatedSpace and ZeroDimensionalSpace all hold of the empty space. The class
PathPreconnectedSpace (any two points are joined by a path) is path connectedness without the
nonemptiness condition, related to PathConnectedSpace as PreconnectedSpace is to
ConnectedSpace.
None of the statements here assumes a separation axiom. In particular zero-dimensional means having a base of clopen sets, with no T₀ condition, so an indiscrete space is zero-dimensional and connected.
Main definitions
TopologyByExample.PathPreconnectedSpace: any two points are joined by a path.
Main statements
TopologyByExample.PathPreconnectedSpace.preconnectedSpace: a path preconnected space is preconnected (an instance).TopologyByExample.pathPreconnectedSpace_of_locallyPathConnectedSpace: a preconnected, locally path connected space is path preconnected.TopologyByExample.pathPreconnectedSpace_of_forall_specializes,TopologyByExample.locallyPathConnectedSpace_of_forall_specializes: a space with a point whose closure is the whole space is path preconnected and locally path connected.TopologyByExample.TotallyDisconnectedSpace.t1Space: a totally disconnected space is T₁ (an instance).TopologyByExample.not_preconnectedSpace_of_nontrivial: a nontrivial totally disconnected space is not preconnected.TopologyByExample.discreteTopology_of_preconnectedSpace: a preconnected totally disconnected space is discrete (it has at most one point).TopologyByExample.subsingleton_of_discreteTopology_of_preconnectedSpace: a discrete preconnected space has at most one point.TopologyByExample.discreteTopology_of_locallyConnectedSpace: a locally connected totally disconnected space is discrete.TopologyByExample.indiscreteTopology_of_preconnectedSpace: a preconnected zero-dimensional space is indiscrete.TopologyByExample.alexandrovDiscrete_of_locallyConnectedSpace: a locally connected zero-dimensional space is Alexandrov-discrete, its components being its minimal open sets.TopologyByExample.locallyPathConnectedSpace_of_locallyConnectedSpace_of_zeroDimensionalSpace: a locally connected zero-dimensional space is locally path connected.TopologyByExample.preconnectedSpace_of_surjective,TopologyByExample.totallyDisconnectedSpace_of_injective,TopologyByExample.totallySeparatedSpace_of_injective,TopologyByExample.zeroDimensionalSpace_of_isInducing: a continuous image of a preconnected space is preconnected; total disconnectedness and total separatedness pass back along continuous injections, and zero-dimensionality to subspaces.TopologyByExample.locallyConnectedSpace_of_preirreducibleSpace: a space in which any two nonempty open sets meet is locally connected.TopologyByExample.locallyConnectedSpace_of_orderTopology: a densely ordered conditionally complete linear order is locally connected.TopologyByExample.locallyConnectedSpace_of_exists_linearOrder,TopologyByExample.locallyPathConnectedSpace_of_exists_linearOrder: a connected (path connected) linearly orderable space is locally connected (locally path connected), since the order-connected components of the neighbourhoods of a point form a neighbourhood basis and are connected (path connected):Set.OrdConnected.isPreconnected_of_preconnectedSpace,Set.OrdConnected.isPathConnected_of_pathPreconnectedSpace.TopologyByExample.totallySeparatedSpace_of_wellFoundedLT: a well-ordered set with its order topology is totally separated.TopologyByExample.joinedIn_of_convex: two points of a convex set are joined by a path in any larger set.
The implication "totally separated implies T₂½" is
TopologyByExample.TotallySeparatedSpace.t25Space, an instance in
TopologyByExample.Theorems.Separation.
Tags
connected, path connected, locally connected, totally disconnected, totally separated, zero-dimensional
This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
- Mathlib.Analysis.Convex.PathConnected
- Mathlib.Topology.AlexandrovDiscrete
- Mathlib.Topology.Connected.LocallyPathConnected
- Mathlib.Topology.Connected.Separation
- Mathlib.Topology.InductiveDimension.Classes
- Mathlib.Topology.Irreducible
- Mathlib.Topology.Order.T5
- TopologyByExample.Theorems.OrderJumps
- TopologyByExample.Theorems.Separation
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
Path connectedness without nonemptiness
class PathPreconnectedSpace
TopologyByExample.PathPreconnectedSpace
A space is path preconnected if any two of its points are joined by a path. Unlike
PathConnectedSpace, this does not ask the space to be nonempty: the empty space is path
preconnected. It is to PathConnectedSpace what PreconnectedSpace is to ConnectedSpace.
@[mk_iff]
class PathPreconnectedSpace (X : Type*) [TopologicalSpace X] : Prop where
/-- Any two points are joined by a path. -/
joined : ∀ x y : X, Joined x y
instance of_pathConnectedSpace
TopologyByExample.PathPreconnectedSpace.of_pathConnectedSpace
A path connected space is path preconnected.
instance (priority := 100) of_pathConnectedSpace [PathConnectedSpace X] :
PathPreconnectedSpace X
Proof
:=
⟨PathConnectedSpace.joined⟩
instance of_subsingleton
TopologyByExample.PathPreconnectedSpace.of_subsingleton
A space with at most one point is path preconnected.
instance (priority := 100) of_subsingleton [Subsingleton X] : PathPreconnectedSpace X
Proof
:=
⟨fun x y ↦ by obtain rfl := Subsingleton.elim x y; exact .refl x⟩
theorem pathConnectedSpace
TopologyByExample.PathPreconnectedSpace.pathConnectedSpace
A nonempty path preconnected space is path connected.
theorem pathConnectedSpace [PathPreconnectedSpace X] [Nonempty X] : PathConnectedSpace X
Proof
:=
⟨inferInstance, joined⟩
instance preconnectedSpace
TopologyByExample.PathPreconnectedSpace.preconnectedSpace
A path preconnected space is preconnected.
instance (priority := 100) preconnectedSpace [PathPreconnectedSpace X] : PreconnectedSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with _ | _
· exact ⟨(Set.subsingleton_of_subsingleton (s := univ)).isPreconnected⟩
· have := pathConnectedSpace (X := X)
infer_instance
theorem pathPreconnectedSpace_iff_isEmpty_or_pathConnectedSpace
TopologyByExample.pathPreconnectedSpace_iff_isEmpty_or_pathConnectedSpace
A space is path preconnected if and only if it is empty or path connected.
theorem pathPreconnectedSpace_iff_isEmpty_or_pathConnectedSpace :
PathPreconnectedSpace X ↔ IsEmpty X ∨ PathConnectedSpace X
Proof
:= by
refine ⟨fun _ ↦ ?_, ?_⟩
· rcases isEmpty_or_nonempty X with _ | _
· exact .inl ‹_›
· exact .inr PathPreconnectedSpace.pathConnectedSpace
· rintro (_ | _) <;> infer_instance
theorem pathPreconnectedSpace_iff_pathConnectedSpace
TopologyByExample.pathPreconnectedSpace_iff_pathConnectedSpace
A nonempty space is path preconnected if and only if it is path connected.
theorem pathPreconnectedSpace_iff_pathConnectedSpace [Nonempty X] :
PathPreconnectedSpace X ↔ PathConnectedSpace X
Proof
:=
⟨fun _ ↦ PathPreconnectedSpace.pathConnectedSpace, fun _ ↦ inferInstance⟩
theorem pathPreconnectedSpace_of_surjective
TopologyByExample.pathPreconnectedSpace_of_surjective
The image of a path preconnected space under a continuous surjection is path preconnected.
theorem pathPreconnectedSpace_of_surjective [PathPreconnectedSpace X] {f : X → Y}
(hf : Function.Surjective f) (hf' : Continuous f) : PathPreconnectedSpace Y
Proof
:=
⟨fun y y' ↦ by
obtain ⟨x, rfl⟩ := hf y
obtain ⟨x', rfl⟩ := hf y'
exact (PathPreconnectedSpace.joined x x').map hf'⟩
theorem pathPreconnectedSpace_congr
TopologyByExample.pathPreconnectedSpace_congr
Path preconnectedness is invariant under homeomorphisms.
theorem pathPreconnectedSpace_congr (e : X ≃ₜ Y) :
PathPreconnectedSpace X ↔ PathPreconnectedSpace Y
Proof
:=
⟨fun _ ↦ pathPreconnectedSpace_of_surjective e.surjective e.continuous,
fun _ ↦ pathPreconnectedSpace_of_surjective e.symm.surjective e.symm.continuous⟩
theorem pathPreconnectedSpace_of_locallyPathConnectedSpace
TopologyByExample.pathPreconnectedSpace_of_locallyPathConnectedSpace
A preconnected, locally path connected space is path preconnected.
theorem pathPreconnectedSpace_of_locallyPathConnectedSpace [PreconnectedSpace X]
[LocallyPathConnectedSpace X] : PathPreconnectedSpace X
Proof
:= by
rcases isEmpty_or_nonempty X with _ | _
· infer_instance
· have : ConnectedSpace X := { toPreconnectedSpace := ‹_›, toNonempty := ‹_› }
have := PathConnectedSpace.of_locallyPathConnectedSpace (X := X)
infer_instance
On this site: Theorem: Connected, locally path connected spaces are path connected
theorem pathPreconnectedSpace_iff_preconnectedSpace
TopologyByExample.pathPreconnectedSpace_iff_preconnectedSpace
A locally path connected space is path preconnected if and only if it is preconnected.
theorem pathPreconnectedSpace_iff_preconnectedSpace [LocallyPathConnectedSpace X] :
PathPreconnectedSpace X ↔ PreconnectedSpace X
Proof
:=
⟨fun _ ↦ inferInstance, fun _ ↦ pathPreconnectedSpace_of_locallyPathConnectedSpace⟩
theorem pathPreconnectedSpace_of_forall_specializes
TopologyByExample.pathPreconnectedSpace_of_forall_specializes
If some point p specializes to every point (that is, its closure is the whole space), then
the space is path preconnected: every point is joined to p by a path.
theorem pathPreconnectedSpace_of_forall_specializes (p : X) (h : ∀ x, p ⤳ x) :
PathPreconnectedSpace X
Proof
:=
⟨fun x y ↦ ((h x).joinedIn (F := univ) (mem_univ _) (mem_univ _)).joined.symm.trans
((h y).joinedIn (F := univ) (mem_univ _) (mem_univ _)).joined⟩
On this site: Theorem: A space with a point whose closure is the whole space is path connected
theorem locallyPathConnectedSpace_of_forall_specializes
TopologyByExample.locallyPathConnectedSpace_of_forall_specializes
If some point p specializes to every point (that is, its closure is the whole space), then
the space is locally path connected: every neighbourhood of a point contains p and is path
connected.
theorem locallyPathConnectedSpace_of_forall_specializes (p : X) (h : ∀ x, p ⤳ x) :
LocallyPathConnectedSpace X
Proof
:=
.of_bases (fun x ↦ (𝓝 x).basis_sets) fun x U hU ↦ by
have hp : p ∈ U := mem_of_mem_nhds ((h x).nhds_le_nhds hU)
exact ⟨p, hp, fun y hy ↦ (h y).joinedIn hp hy⟩
On this site: Theorem: A space with a point whose closure is the whole space is locally path connected
instance pathPreconnectedSpace
TopologyByExample.IndiscreteTopology.pathPreconnectedSpace
An indiscrete space is path preconnected.
instance (priority := 100) IndiscreteTopology.pathPreconnectedSpace [IndiscreteTopology X] :
PathPreconnectedSpace X
Proof
:=
⟨fun x y ↦ ((Inseparable.all x y).specializes.joinedIn (F := univ) (mem_univ _)
(mem_univ _)).joined⟩
Total disconnectedness and total separatedness
instance t1Space
TopologyByExample.TotallyDisconnectedSpace.t1Space
A totally disconnected space is T₁: its points are its components, which are closed.
instance (priority := 100) TotallyDisconnectedSpace.t1Space [TotallyDisconnectedSpace X] :
T1Space X
Proof
:=
⟨fun x ↦ connectedComponent_eq_singleton x ▸ isClosed_connectedComponent⟩
theorem discreteTopology_of_preconnectedSpace
TopologyByExample.discreteTopology_of_preconnectedSpace
A preconnected totally disconnected space has at most one point, so it is discrete.
theorem discreteTopology_of_preconnectedSpace [PreconnectedSpace X]
[TotallyDisconnectedSpace X] : DiscreteTopology X
Proof
:=
have := subsingleton_of_preconnected_totallyDisconnected (α := X)
inferInstance
On this site: Theorem: Connected, totally disconnected spaces are discrete
theorem discreteTopology_of_locallyConnectedSpace
TopologyByExample.discreteTopology_of_locallyConnectedSpace
A locally connected totally disconnected space is discrete: its components are open, and they are points.
theorem discreteTopology_of_locallyConnectedSpace [LocallyConnectedSpace X]
[TotallyDisconnectedSpace X] : DiscreteTopology X
Proof
:=
discreteTopology_iff_isOpen_singleton.2 fun x ↦
connectedComponent_eq_singleton x ▸ isOpen_connectedComponent
On this site: Theorem: Locally connected, totally disconnected spaces are discrete
theorem not_preconnectedSpace_of_not_discreteTopology
TopologyByExample.not_preconnectedSpace_of_not_discreteTopology
A totally disconnected space that is not discrete is not preconnected.
theorem not_preconnectedSpace_of_not_discreteTopology [TotallyDisconnectedSpace X]
(h : ¬DiscreteTopology X) : ¬PreconnectedSpace X
Proof
:=
fun _ ↦ h discreteTopology_of_preconnectedSpace
theorem not_locallyConnectedSpace_of_not_discreteTopology
TopologyByExample.not_locallyConnectedSpace_of_not_discreteTopology
A totally disconnected space that is not discrete is not locally connected.
theorem not_locallyConnectedSpace_of_not_discreteTopology [TotallyDisconnectedSpace X]
(h : ¬DiscreteTopology X) : ¬LocallyConnectedSpace X
Proof
:=
fun _ ↦ h discreteTopology_of_locallyConnectedSpace
Zero-dimensional spaces
theorem connectedComponent_subset_of_isOpen
TopologyByExample.connectedComponent_subset_of_isOpen
In a zero-dimensional space, the component of a point lies in every open set containing the point.
theorem connectedComponent_subset_of_isOpen [ZeroDimensionalSpace X] {U : Set X} (hU : IsOpen U)
{x : X} (hx : x ∈ U) : connectedComponent x ⊆ U
Proof
:=
let ⟨_, hV, hxV, hVU⟩ := exists_isClopen_mem_of_isOpen hU hx
(hV.connectedComponent_subset hxV).trans hVU
theorem indiscreteTopology_of_preconnectedSpace
TopologyByExample.indiscreteTopology_of_preconnectedSpace
A preconnected zero-dimensional space is indiscrete: a nonempty open set contains a nonempty clopen set, which is the whole space.
theorem indiscreteTopology_of_preconnectedSpace [PreconnectedSpace X] [ZeroDimensionalSpace X] :
IndiscreteTopology X
Proof
:= by
have key (U : Set X) (hU : IsOpen U) (x y : X) (hx : x ∈ U) : y ∈ U := by
obtain ⟨V, hV, hxV, hVU⟩ := exists_isClopen_mem_of_isOpen hU hx
exact hVU (hV.eq_univ ⟨x, hxV⟩ ▸ mem_univ y)
exact .of_forall_inseparable fun x y ↦ inseparable_iff_forall_isOpen.2 fun U hU ↦
⟨key U hU x y, key U hU y x⟩
On this site: Theorem: Connected, zero-dimensional spaces are indiscrete
theorem locallyPathConnectedSpace_of_preconnectedSpace_of_zeroDimensionalSpace
TopologyByExample.locallyPathConnectedSpace_of_preconnectedSpace_of_zeroDimensionalSpace
A preconnected zero-dimensional space is locally path connected (it is indiscrete).
theorem locallyPathConnectedSpace_of_preconnectedSpace_of_zeroDimensionalSpace
[PreconnectedSpace X] [ZeroDimensionalSpace X] : LocallyPathConnectedSpace X
Proof
:=
have := indiscreteTopology_of_preconnectedSpace (X := X)
inferInstance
theorem alexandrovDiscrete_of_locallyConnectedSpace
TopologyByExample.alexandrovDiscrete_of_locallyConnectedSpace
A locally connected zero-dimensional space is Alexandrov-discrete: the component of a point is open and lies in every open set containing the point, so an intersection of open sets contains the component of each of its points.
theorem alexandrovDiscrete_of_locallyConnectedSpace [LocallyConnectedSpace X]
[ZeroDimensionalSpace X] : AlexandrovDiscrete X
Proof
where
isOpen_sInter _ hS := isOpen_iff_forall_mem_open.2 fun x hx ↦
⟨connectedComponent x, subset_sInter fun U hU ↦
connectedComponent_subset_of_isOpen (hS U hU) (hx U hU), isOpen_connectedComponent,
mem_connectedComponent⟩
theorem locallyPathConnectedSpace_of_locallyConnectedSpace_of_zeroDimensionalSpace
TopologyByExample.locallyPathConnectedSpace_of_locallyConnectedSpace_of_zeroDimensionalSpace
A locally connected zero-dimensional space is locally path connected: it is Alexandrov-discrete.
theorem locallyPathConnectedSpace_of_locallyConnectedSpace_of_zeroDimensionalSpace
[LocallyConnectedSpace X] [ZeroDimensionalSpace X] : LocallyPathConnectedSpace X
Proof
:=
have := alexandrovDiscrete_of_locallyConnectedSpace (X := X)
inferInstance
On this site: Theorem: Locally connected, zero-dimensional spaces are locally path connected
Transfers along maps
theorem preconnectedSpace_of_surjective
TopologyByExample.preconnectedSpace_of_surjective
A continuous image of a preconnected space is preconnected.
theorem preconnectedSpace_of_surjective [PreconnectedSpace X] {f : X → Y}
(hf : Function.Surjective f) (hf' : Continuous f) : PreconnectedSpace Y
Proof
:=
⟨image_univ_of_surjective hf ▸ isPreconnected_univ.image f hf'.continuousOn⟩
theorem preconnectedSpace_of_subsingleton
TopologyByExample.preconnectedSpace_of_subsingleton
A space with at most one point is preconnected.
theorem preconnectedSpace_of_subsingleton [Subsingleton X] : PreconnectedSpace X
Proof
:=
⟨(Set.subsingleton_of_subsingleton (s := univ)).isPreconnected⟩
theorem totallyDisconnectedSpace_of_injective
TopologyByExample.totallyDisconnectedSpace_of_injective
If X maps continuously and injectively into a totally disconnected space, then X is
totally disconnected.
theorem totallyDisconnectedSpace_of_injective [TotallyDisconnectedSpace Y] {f : X → Y}
(hf : Continuous f) (hinj : Function.Injective f) : TotallyDisconnectedSpace X
Proof
:=
⟨fun s _ hs ↦ subsingleton_of_image hinj s (hs.image f hf.continuousOn).subsingleton⟩
theorem totallySeparatedSpace_of_injective
TopologyByExample.totallySeparatedSpace_of_injective
If X maps continuously and injectively into a totally separated space, then X is totally
separated: the preimage of a clopen set separating the images of two points separates them.
theorem totallySeparatedSpace_of_injective [TotallySeparatedSpace Y] {f : X → Y}
(hf : Continuous f) (hinj : Function.Injective f) : TotallySeparatedSpace X
Proof
:=
totallySeparatedSpace_iff_exists_isClopen.2 fun _ _ hxy ↦
let ⟨U, hU, hx, hy⟩ := exists_isClopen_of_totally_separated (hinj.ne hxy)
⟨f ⁻¹' U, hU.preimage hf, hx, hy⟩
theorem zeroDimensionalSpace_of_isInducing
TopologyByExample.zeroDimensionalSpace_of_isInducing
A space inducing its topology from a zero-dimensional space is zero-dimensional: the preimages of clopen sets form a base. In particular a subspace of a zero-dimensional space is zero-dimensional.
theorem zeroDimensionalSpace_of_isInducing [ZeroDimensionalSpace Y] {f : X → Y}
(hf : IsInducing f) : ZeroDimensionalSpace X
Proof
:=
.of_isTopologicalBasis (u := preimage f '' {s | IsClopen s})
(by rintro _ ⟨s, hs, rfl⟩; exact IsClopen.preimage hs hf.continuous)
(hf.isTopologicalBasis isTopologicalBasis_isClopen)
theorem zeroDimensionalSpace_congr
TopologyByExample.zeroDimensionalSpace_congr
Zero-dimensionality is invariant under homeomorphisms.
theorem zeroDimensionalSpace_congr (e : X ≃ₜ Y) :
ZeroDimensionalSpace X ↔ ZeroDimensionalSpace Y
Proof
:=
⟨fun _ ↦ zeroDimensionalSpace_of_isInducing e.symm.isInducing,
fun _ ↦ zeroDimensionalSpace_of_isInducing e.isInducing⟩
Further criteria
theorem not_preconnectedSpace_of_nontrivial
TopologyByExample.not_preconnectedSpace_of_nontrivial
A nontrivial totally disconnected space is not preconnected.
theorem not_preconnectedSpace_of_nontrivial [TotallyDisconnectedSpace X] [Nontrivial X] :
¬PreconnectedSpace X
Proof
:= fun _ ↦
not_subsingleton X subsingleton_of_preconnected_totallyDisconnected
theorem subsingleton_of_discreteTopology_of_preconnectedSpace
TopologyByExample.subsingleton_of_discreteTopology_of_preconnectedSpace
A discrete preconnected space has at most one point: a discrete space is totally disconnected.
theorem subsingleton_of_discreteTopology_of_preconnectedSpace [DiscreteTopology X]
[PreconnectedSpace X] : Subsingleton X
Proof
:=
subsingleton_of_preconnected_totallyDisconnected
On this site: Theorem: Discrete connected spaces have at most one point
theorem locallyConnectedSpace_of_preirreducibleSpace
TopologyByExample.locallyConnectedSpace_of_preirreducibleSpace
A space in which any two nonempty open sets meet is locally connected: every open set is preirreducible, hence preconnected.
theorem locallyConnectedSpace_of_preirreducibleSpace [PreirreducibleSpace X] :
LocallyConnectedSpace X
Proof
:=
locallyConnectedSpace_iff_subsets_isOpen_isConnected.2 fun x _ hU ↦
⟨interior _, interior_subset, isOpen_interior, mem_interior_iff_mem_nhds.2 hU,
⟨x, mem_interior_iff_mem_nhds.2 hU⟩,
(PreirreducibleSpace.isPreirreducible_univ.open_subset isOpen_interior
(subset_univ _)).isPreconnected⟩
On this site: Theorem: Hyperconnected spaces are locally connected
theorem totallySeparatedSpace_of_wellFoundedLT
TopologyByExample.totallySeparatedSpace_of_wellFoundedLT
A well-ordered set with its order topology is totally separated: for a < b, the least
element d of (a, b] covers a, and Set.Iic a = Set.Iio d is clopen.
theorem totallySeparatedSpace_of_wellFoundedLT {α : Type*} [LinearOrder α] [TopologicalSpace α]
[OrderTopology α] [WellFoundedLT α] : TotallySeparatedSpace α
Proof
:=
totallySeparatedSpace_of_exists_covBy fun a b hab ↦ by
obtain ⟨d, hd, hmin⟩ := wellFounded_lt.has_min (Ioc a b) ⟨b, hab, le_rfl⟩
exact ⟨a, d, le_rfl, ⟨hd.1, fun c hac hcd ↦ hmin c ⟨hac, (hcd.trans_le hd.2).le⟩ hcd⟩, hd.2⟩
On this site: Theorem: A well-ordered set with its order topology is totally separated
theorem locallyConnectedSpace_of_orderTopology
TopologyByExample.locallyConnectedSpace_of_orderTopology
A densely ordered conditionally complete linear order is locally connected in its order topology: every neighbourhood of a point contains the order-connected component of the point in it, which is again a neighbourhood and is connected.
theorem locallyConnectedSpace_of_orderTopology {α : Type*} [ConditionallyCompleteLinearOrder α]
[TopologicalSpace α] [OrderTopology α] [DenselyOrdered α] : LocallyConnectedSpace α
Proof
:=
locallyConnectedSpace_iff_connected_subsets.2 fun _ _ hU ↦
⟨ordConnectedComponent _ _, ordConnectedComponent_mem_nhds.2 hU,
Set.OrdConnected.isPreconnected inferInstance, ordConnectedComponent_subset⟩
On this site: Theorem: A densely ordered conditionally complete linear order is locally connected
Linearly orderable spaces
variable {α : Type*} [LinearOrder α] [TopologicalSpace α] [OrderTopology α]
theorem continuous_max_min
TopologyByExample.continuous_max_min
In a linear order with its order topology, the clamp x ↦ max a (min x b) is continuous.
theorem continuous_max_min (a b : α) : Continuous fun x : α ↦ max a (min x b)
Proof
:=
continuous_const.max (continuous_id.min continuous_const)
omit [TopologicalSpace α] [OrderTopology α] in
theorem range_max_min_subset
TopologyByExample.range_max_min_subset
For a ≤ b, the clamp x ↦ max a (min x b) takes the values a and b, and every value it
takes lies in any order-connected set containing a and b.
theorem range_max_min_subset {s : Set α} (hs : s.OrdConnected) {a b : α} (ha : a ∈ s) (hb : b ∈ s)
(hab : a ≤ b) :
a ∈ range (fun x : α ↦ max a (min x b)) ∧ b ∈ range (fun x : α ↦ max a (min x b)) ∧
range (fun x : α ↦ max a (min x b)) ⊆ s
Proof
:= by
refine ⟨⟨a, by simp [hab]⟩, ⟨b, by simp [hab]⟩, ?_⟩
rintro _ ⟨x, rfl⟩
exact hs.out ha hb ⟨le_max_left _ _, max_le hab (min_le_right _ _)⟩
theorem isPreconnected_of_preconnectedSpace
Set.OrdConnected.isPreconnected_of_preconnectedSpace
In a preconnected linear order with its order topology, every order-connected set is preconnected.
theorem _root_.Set.OrdConnected.isPreconnected_of_preconnectedSpace [PreconnectedSpace α]
{s : Set α} (hs : s.OrdConnected) : IsPreconnected s
Proof
:= by
refine isPreconnected_of_forall_pair fun a ha b hb ↦ ?_
rcases le_total a b with hab | hba
· obtain ⟨h₁, h₂, h₃⟩ := range_max_min_subset hs ha hb hab
exact ⟨_, h₃, h₁, h₂, isPreconnected_range (continuous_max_min a b)⟩
· obtain ⟨h₁, h₂, h₃⟩ := range_max_min_subset hs hb ha hba
exact ⟨_, h₃, h₂, h₁, isPreconnected_range (continuous_max_min b a)⟩
theorem isPathConnected_of_pathPreconnectedSpace
Set.OrdConnected.isPathConnected_of_pathPreconnectedSpace
In a path preconnected linear order with its order topology, every nonempty order-connected set is path connected.
theorem _root_.Set.OrdConnected.isPathConnected_of_pathPreconnectedSpace [PathPreconnectedSpace α]
{s : Set α} (hs : s.OrdConnected) (hne : s.Nonempty) : IsPathConnected s
Proof
:= by
have : Nonempty α := hne.to_subtype.map Subtype.val
have := PathPreconnectedSpace.pathConnectedSpace (X := α)
refine isPathConnected_iff.2 ⟨hne, fun a ha b hb ↦ ?_⟩
rcases le_total a b with hab | hba
· obtain ⟨h₁, h₂, h₃⟩ := range_max_min_subset hs ha hb hab
exact ((isPathConnected_range (continuous_max_min a b)).joinedIn a h₁ b h₂).mono h₃
· obtain ⟨h₁, h₂, h₃⟩ := range_max_min_subset hs hb ha hba
exact (((isPathConnected_range (continuous_max_min b a)).joinedIn b h₁ a h₂).mono h₃).symm
theorem hasBasis_nhds_ordConnectedComponent
TopologyByExample.hasBasis_nhds_ordConnectedComponent
In a linear order with its order topology, the order-connected components at x of the
neighbourhoods of x form a basis of the neighbourhoods of x.
theorem hasBasis_nhds_ordConnectedComponent (x : α) :
(𝓝 x).HasBasis (fun s : Set α ↦ s ∈ 𝓝 x) fun s ↦ ordConnectedComponent s x
Proof
:=
⟨fun t ↦ ⟨fun ht ↦ ⟨t, ht, ordConnectedComponent_subset⟩,
fun ⟨_, hs, hst⟩ ↦ mem_of_superset (ordConnectedComponent_mem_nhds.2 hs) hst⟩⟩
theorem locallyPathConnectedSpace_of_orderTopology_of_pathPreconnectedSpace
TopologyByExample.locallyPathConnectedSpace_of_orderTopology_of_pathPreconnectedSpace
A path preconnected linear order with its order topology is locally path connected.
theorem locallyPathConnectedSpace_of_orderTopology_of_pathPreconnectedSpace
[PathPreconnectedSpace α] : LocallyPathConnectedSpace α
Proof
:=
.of_bases hasBasis_nhds_ordConnectedComponent fun x _ hs ↦
Set.OrdConnected.isPathConnected_of_pathPreconnectedSpace inferInstance
⟨x, self_mem_ordConnectedComponent.2 (mem_of_mem_nhds hs)⟩
theorem locallyConnectedSpace_of_orderTopology_of_preconnectedSpace
TopologyByExample.locallyConnectedSpace_of_orderTopology_of_preconnectedSpace
A preconnected linear order with its order topology is locally connected.
theorem locallyConnectedSpace_of_orderTopology_of_preconnectedSpace [PreconnectedSpace α] :
LocallyConnectedSpace α
Proof
:=
locallyConnectedSpace_iff_connected_subsets.2 fun x _ hU ↦
⟨ordConnectedComponent _ x, ordConnectedComponent_mem_nhds.2 hU,
Set.OrdConnected.isPreconnected_of_preconnectedSpace inferInstance,
ordConnectedComponent_subset⟩
theorem locallyPathConnectedSpace_of_exists_linearOrder
TopologyByExample.locallyPathConnectedSpace_of_exists_linearOrder
A path connected linearly orderable space is locally path connected.
theorem locallyPathConnectedSpace_of_exists_linearOrder
(h : ∃ o : LinearOrder X, letI := o; OrderTopology X) [PathPreconnectedSpace X] :
LocallyPathConnectedSpace X
Proof
:= by
obtain ⟨o, h⟩ := h
exact locallyPathConnectedSpace_of_orderTopology_of_pathPreconnectedSpace
On this site: Theorem: Path connected linearly orderable spaces are locally path connected
theorem locallyConnectedSpace_of_exists_linearOrder
TopologyByExample.locallyConnectedSpace_of_exists_linearOrder
A connected linearly orderable space is locally connected.
theorem locallyConnectedSpace_of_exists_linearOrder
(h : ∃ o : LinearOrder X, letI := o; OrderTopology X) [PreconnectedSpace X] :
LocallyConnectedSpace X
Proof
:= by
obtain ⟨o, h⟩ := h
exact locallyConnectedSpace_of_orderTopology_of_preconnectedSpace
On this site: Theorem: Connected linearly orderable spaces are locally connected
theorem joinedIn_of_convex
TopologyByExample.joinedIn_of_convex
Two points of a convex set s of a real topological vector space are joined by a path in any
set t containing s.
theorem joinedIn_of_convex {E : Type*} [AddCommGroup E] [Module ℝ E] [TopologicalSpace E]
[IsTopologicalAddGroup E] [ContinuousSMul ℝ E] {s t : Set E} (hs : Convex ℝ s) (hst : s ⊆ t)
{x y : E} (hx : x ∈ s) (hy : y ∈ s) : JoinedIn t x y
Proof
:=
((hs.isPathConnected ⟨x, hx⟩).joinedIn x hx y hy).mono hst
On this site: Theorem: Two points of a convex set are joined by a path inside it