Lean library · module TopologyByExample.Theorems.ArcConnectedness
Arc connectedness without separation assumptions
Arcs are injective paths, not necessarily embeddings. The empty space is admitted.
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
class ArcConnectedSpace
TopologyByExample.ArcConnectedSpace
Distinct points are endpoints of injective paths.
class ArcConnectedSpace (X : Type*) [TopologicalSpace X] : Prop where
/-- Existence of an injective path. -/
exists_injective_path : ∀ x y : X, x ≠ y → ∃ p : Path x y, Function.Injective p
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
instance of_subsingleton
TopologyByExample.ArcConnectedSpace.of_subsingleton
Spaces with at most one point are arc connected.
instance (priority := 100) ArcConnectedSpace.of_subsingleton [Subsingleton X] :
ArcConnectedSpace X
Proof
:=
⟨fun x y h ↦ (h (Subsingleton.elim x y)).elim⟩
instance pathPreconnectedSpace
TopologyByExample.ArcConnectedSpace.pathPreconnectedSpace
Arc connectedness implies path connectedness, allowing the empty space.
instance (priority := 100) ArcConnectedSpace.pathPreconnectedSpace [ArcConnectedSpace X] :
PathPreconnectedSpace X
Proof
:= by
refine ⟨fun x y ↦ ?_⟩
by_cases h : x = y
· subst y; exact Joined.refl x
· obtain ⟨p, _⟩ := exists_injective_path x y h
exact ⟨p⟩
theorem arcConnectedSpace_of_homeomorph
TopologyByExample.arcConnectedSpace_of_homeomorph
A homeomorphism transports arc connectedness.
theorem arcConnectedSpace_of_homeomorph (f : X ≃ₜ Y) (h : ArcConnectedSpace X) :
ArcConnectedSpace Y
Proof
:= by
refine ⟨fun x y hxy ↦ ?_⟩
obtain ⟨p, hp⟩ := h.exists_injective_path (f.symm x) (f.symm y)
(fun h ↦ hxy (f.symm.injective h))
let q := p.map f.continuous
have hq : Function.Injective q := f.injective.comp hp
simpa using (show ∃ q : Path (f (f.symm x)) (f (f.symm y)), Function.Injective q from ⟨q, hq⟩)
theorem arcConnectedSpace_iff
TopologyByExample.Homeomorph.arcConnectedSpace_iff
Arc connectedness is invariant under homeomorphisms.
theorem Homeomorph.arcConnectedSpace_iff (e : X ≃ₜ Y) :
ArcConnectedSpace X ↔ ArcConnectedSpace Y
Proof
:=
⟨arcConnectedSpace_of_homeomorph e, arcConnectedSpace_of_homeomorph e.symm⟩
class LocallyArcConnectedSpace
TopologyByExample.LocallyArcConnectedSpace
Open arc-connected neighborhoods form a basis.
class LocallyArcConnectedSpace (X : Type*) [TopologicalSpace X] : Prop where
/-- Every open neighborhood contains an open arc-connected neighborhood. -/
exists_open : ∀ x : X, ∀ U : Set X, IsOpen U → x ∈ U →
∃ V : Set X, IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ ArcConnectedSpace V
instance of_discreteTopology
TopologyByExample.LocallyArcConnectedSpace.of_discreteTopology
Discrete spaces are locally arc connected.
instance (priority := 100) LocallyArcConnectedSpace.of_discreteTopology [DiscreteTopology X] :
LocallyArcConnectedSpace X
Proof
:= by
refine ⟨fun x U _ hx ↦ ⟨{x}, isOpen_discrete _, mem_singleton x, ?_, inferInstance⟩⟩
exact singleton_subset_iff.mpr hx
instance locallyPathConnectedSpace
TopologyByExample.LocallyArcConnectedSpace.locallyPathConnectedSpace
Local arc connectedness implies local path connectedness.
instance (priority := 100) LocallyArcConnectedSpace.locallyPathConnectedSpace
[LocallyArcConnectedSpace X] : LocallyPathConnectedSpace X
Proof
:= by
constructor
intro x
rw [hasBasis_self]
intro U hU
obtain ⟨W, hWU, hW, hxW⟩ := mem_nhds_iff.mp hU
obtain ⟨V, hV, hxV, hVW, hArc⟩ := LocallyArcConnectedSpace.exists_open x W hW hxW
let := hArc
let : Nonempty V := ⟨⟨x, hxV⟩⟩
let : PathConnectedSpace V := PathPreconnectedSpace.pathConnectedSpace
exact ⟨V, hV.mem_nhds hxV, isPathConnected_iff_pathConnectedSpace.mpr inferInstance,
hVW.trans hWU⟩
theorem locallyArcConnectedSpace_of_homeomorph
TopologyByExample.locallyArcConnectedSpace_of_homeomorph
A homeomorphism transports local arc connectedness.
theorem locallyArcConnectedSpace_of_homeomorph (f : X ≃ₜ Y)
(h : LocallyArcConnectedSpace X) : LocallyArcConnectedSpace Y
Proof
:= by
refine ⟨fun y U hU hy ↦ ?_⟩
obtain ⟨V, hV, hxV, hVU, hArc⟩ := h.exists_open (f.symm y) (f ⁻¹' U)
(hU.preimage f.continuous) (by simpa using hy)
refine ⟨f '' V, f.isOpenMap _ hV, ?_, ?_, ?_⟩
· exact ⟨f.symm y, hxV, f.apply_symm_apply y⟩
· rintro _ ⟨x, hx, rfl⟩; exact hVU hx
· exact (Homeomorph.arcConnectedSpace_iff (f.image V)).mp hArc
theorem locallyArcConnectedSpace_iff
TopologyByExample.Homeomorph.locallyArcConnectedSpace_iff
Local arc connectedness is invariant under homeomorphisms.
theorem Homeomorph.locallyArcConnectedSpace_iff (e : X ≃ₜ Y) :
LocallyArcConnectedSpace X ↔ LocallyArcConnectedSpace Y
Proof
:=
⟨locallyArcConnectedSpace_of_homeomorph e, locallyArcConnectedSpace_of_homeomorph e.symm⟩