Lean library · module TopologyByExample.Theorems.HausdorffPathImage

Hausdorff path images

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

theorem secondCountable_of_compact_surjection

TopologyByExample.secondCountable_of_compact_surjection

A Hausdorff continuous image of a compact second-countable space is second countable.

theorem secondCountable_of_compact_surjection {A B : Type*}
    [TopologicalSpace A] [TopologicalSpace B] [CompactSpace A]
    [SecondCountableTopology A] [T2Space B] {f : A → B}
    (hf : Continuous f) (hs : Function.Surjective f) : SecondCountableTopology B
Proof
:= by
  classical
  let C := countableBasis A
  have hC := isBasis_countableBasis A
  let D := sUnion '' {s : Set (Set A) | s.Finite ∧ s ⊆ C}
  have hDc : D.Countable := (countable_ofPred_finite_subset (countable_countableBasis A)).image _
  let g : Set A → Set B := fun U ↦ (f '' Uᶜ)ᶜ
  have hbase : IsTopologicalBasis (g '' D) := by
    apply isTopologicalBasis_of_isOpen_of_nhds
    · rintro _ ⟨U, ⟨s, ⟨hfin, hsub⟩, rfl⟩, rfl⟩
      exact (hf.isClosedMap _
        (isOpen_sUnion (fun V hV ↦ hC.isOpen (hsub hV))).isClosed_compl).isOpen_compl
    · intro y V hy hV
      let E := {U ∈ C | U ⊆ f ⁻¹' V}
      have hcover : f ⁻¹' {y} ⊆ ⋃ U ∈ E, U := by
        intro x hx
        have hxV : x ∈ f ⁻¹' V := by
          have he : f x = y := hx
          simpa [he] using hy
        obtain ⟨U, hUC, hxU, hUV⟩ := hC.mem_nhds_iff.mp ((hV.preimage hf).mem_nhds hxV)
        exact mem_iUnion₂.mpr ⟨U, ⟨hUC, hUV⟩, hxU⟩
      obtain ⟨s, hsE, hsfin, hscov⟩ :=
        (isClosed_singleton.preimage hf).isCompact.elim_finite_subcover_image (b := E) (c := id)
          (fun U hU ↦ hC.isOpen hU.1) hcover
      let U := ⋃₀ s
      have hUD : U ∈ D := ⟨s, ⟨hsfin, fun W hW ↦ (hsE hW).1⟩, rfl⟩
      refine ⟨g U, mem_image_of_mem g hUD, ?_, ?_⟩
      · rintro ⟨x, hx, hxy⟩
        exact hx (by
          simpa only [U, sUnion_eq_biUnion, id_eq] using
            hscov (show x ∈ f ⁻¹' {y} from hxy))
      · intro z hz
        obtain ⟨x, rfl⟩ := hs z
        have hxU : x ∈ U := by
          by_contra hx
          exact hz ⟨x, hx, rfl⟩
        obtain ⟨W, hWs, hxW⟩ := hxU
        exact (hsE hWs).2 hxW
  exact hbase.secondCountableTopology (hDc.image g)
variable {X : Type*} [TopologicalSpace X] [T2Space X] {x y : X}

theorem isQuotientMap_rangeFactorization

TopologyByExample.Path.isQuotientMap_rangeFactorization

A path into a Hausdorff space is a quotient map onto its image.

theorem Path.isQuotientMap_rangeFactorization (p : Path x y) :
    IsQuotientMap (Set.rangeFactorization p)
Proof
:= by
  exact IsQuotientMap.of_surjective_continuous Set.rangeFactorization_surjective
    (p.continuous.subtype_mk (fun t ↦ mem_range_self t))

theorem locallyPathConnectedSpace_range

TopologyByExample.Path.locallyPathConnectedSpace_range

The image of a path in a Hausdorff space is locally path connected.

theorem Path.locallyPathConnectedSpace_range (p : Path x y) :
    LocallyPathConnectedSpace (Set.range p)
Proof
:= by
  let : LocallyPathConnectedSpace unitInterval := (convex_Icc (0 : ℝ) 1).locallyPathConnectedSpace
  exact (Path.isQuotientMap_rangeFactorization p).locallyPathConnectedSpace
omit [T2Space X] in

theorem compactSpace_range

TopologyByExample.Path.compactSpace_range

The image of a path is compact.

theorem Path.compactSpace_range (p : Path x y) : CompactSpace (Set.range p)
Proof
:=
  isCompact_iff_compactSpace.mp (isCompact_range p.continuous)

theorem secondCountableTopology_range

TopologyByExample.Path.secondCountableTopology_range

The image of a path in a Hausdorff space is second countable.

theorem Path.secondCountableTopology_range (p : Path x y) :
    SecondCountableTopology (Set.range p)
Proof
:=
  secondCountable_of_compact_surjection
    (p.continuous.subtype_mk (fun t ↦ mem_range_self t)) Set.rangeFactorization_surjective

theorem metrizableSpace_range

TopologyByExample.Path.metrizableSpace_range

The image of a path in a Hausdorff space is metrizable.

theorem Path.metrizableSpace_range (p : Path x y) : MetrizableSpace (Set.range p)
Proof
:= by
  let := Path.compactSpace_range p
  let := Path.secondCountableTopology_range p
  infer_instance
omit [T2Space X] in

theorem arcJoined_of_arcConnectedSpace_range

TopologyByExample.Path.arcJoined_of_arcConnectedSpace_range

If the image of a path is arc connected, its endpoints can be joined by an arc in the ambient space.

theorem Path.arcJoined_of_arcConnectedSpace_range (p : Path x y)
    [ArcConnectedSpace (Set.range p)] : ArcJoined x y
Proof
:= by
  let a : Set.range p := ⟨x, ⟨0, p.source⟩⟩
  let b : Set.range p := ⟨y, ⟨1, p.target⟩⟩
  exact (show ArcJoined a b from ArcConnectedSpace.exists_injective_path a b).map
    continuous_subtypeVal Subtype.val_injective