Lean library · module TopologyByExample.Theorems.LocalArcBasics

Local arcs in open subspaces and disjoint sums

Source file

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.

Imports
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]

theorem locallyArcConnectedSpace_of_isOpenEmbedding

TopologyByExample.locallyArcConnectedSpace_of_isOpenEmbedding

Local arc connectedness pulls back along an open embedding.

theorem locallyArcConnectedSpace_of_isOpenEmbedding [LocallyArcConnectedSpace Y]
    {f : X → Y} (hf : IsOpenEmbedding f) : LocallyArcConnectedSpace X
Proof
:= by
  constructor
  intro x U hU hx
  obtain ⟨V, hVo, hxV, hVU, hArc⟩ := LocallyArcConnectedSpace.exists_open (f x) (f '' U)
    (hf.isOpenMap U hU) (mem_image_of_mem f hx)
  have hr : V ⊆ range f := hVU.trans (image_subset_range _ _)
  have he : f '' (f ⁻¹' V) = V := image_preimage_eq_of_subset hr
  let e := (hf.isEmbedding.homeomorphImage (f ⁻¹' V)).trans (Homeomorph.setCongr he)
  refine ⟨f ⁻¹' V, hVo.preimage hf.continuous, hxV, ?_,
    (Homeomorph.arcConnectedSpace_iff e).mpr hArc⟩
  intro y hy
  obtain ⟨z, hz, hzy⟩ := hVU hy
  exact hf.injective hzy ▸ hz

On this site: Theorem: Local arc connectedness is inherited along open embeddings

theorem exists_open_arc_of_isOpenEmbedding

TopologyByExample.exists_open_arc_of_isOpenEmbedding

An open embedding carries local arc-connected neighborhoods into the ambient space.

theorem exists_open_arc_of_isOpenEmbedding [LocallyArcConnectedSpace X] {f : X → Y}
    (hf : IsOpenEmbedding f) (x : X) {U : Set Y} (hU : IsOpen U) (hx : f x ∈ U) :
    ∃ V : Set Y, IsOpen V ∧ f x ∈ V ∧ V ⊆ U ∧ ArcConnectedSpace V
Proof
:= by
  obtain ⟨W, ho, hw, hs, hArc⟩ := LocallyArcConnectedSpace.exists_open x (f ⁻¹' U)
    (hU.preimage hf.continuous) hx
  exact ⟨f '' W, hf.isOpenMap W ho, mem_image_of_mem f hw, image_subset_iff.mpr hs,
    (Homeomorph.arcConnectedSpace_iff (hf.isEmbedding.homeomorphImage W)).mp hArc⟩

instance locallyArcConnectedSpace_sum

TopologyByExample.locallyArcConnectedSpace_sum

A disjoint sum of locally arc-connected spaces is locally arc connected.

instance (priority := 100) locallyArcConnectedSpace_sum
    [LocallyArcConnectedSpace X] [LocallyArcConnectedSpace Y] :
    LocallyArcConnectedSpace (X ⊕ Y)
Proof
:= by
  constructor
  intro x U hU hx
  cases x with
  | inl x => exact exists_open_arc_of_isOpenEmbedding IsOpenEmbedding.inl x hU hx
  | inr y => exact exists_open_arc_of_isOpenEmbedding IsOpenEmbedding.inr y hU hx

theorem locallyArcConnectedSpace_sum_iff

TopologyByExample.locallyArcConnectedSpace_sum_iff

A disjoint sum is locally arc connected exactly when both summands are.

theorem locallyArcConnectedSpace_sum_iff :
    LocallyArcConnectedSpace (X ⊕ Y) ↔ LocallyArcConnectedSpace X ∧ LocallyArcConnectedSpace Y
Proof
:=
  ⟨fun _ ↦ ⟨locallyArcConnectedSpace_of_isOpenEmbedding (IsOpenEmbedding.inl (X := X) (Y := Y)),
    locallyArcConnectedSpace_of_isOpenEmbedding (IsOpenEmbedding.inr (X := X) (Y := Y))⟩,
    fun ⟨_, _⟩ ↦ inferInstance⟩

On this site: Theorem: A disjoint sum is locally arc connected iff both summands are

theorem arcConnectedSpace_of_indiscrete_of_locallyArcConnectedSpace

TopologyByExample.arcConnectedSpace_of_indiscrete_of_locallyArcConnectedSpace

An indiscrete locally arc-connected space is arc connected.

theorem arcConnectedSpace_of_indiscrete_of_locallyArcConnectedSpace
    [IndiscreteTopology X] [LocallyArcConnectedSpace X] : ArcConnectedSpace X
Proof
:= by
  constructor
  intro x y hxy
  obtain ⟨V, hVo, hxV, _, hArc⟩ :=
    LocallyArcConnectedSpace.exists_open x univ isOpen_univ (mem_univ x)
  have he : V = univ := ((IndiscreteTopology.isOpen_iff V).mp hVo).resolve_left
    (Set.ne_empty_iff_nonempty.mpr ⟨x, hxV⟩)
  subst V
  let := (Homeomorph.arcConnectedSpace_iff (Homeomorph.Set.univ X)).mp hArc
  exact ArcConnectedSpace.exists_injective_path x y hxy

On this site: Theorem: Indiscrete locally arc-connected spaces are arc connected