Lean library · module TopologyByExample.Theorems.ArcExampleCoverage

Further examples of injective paths

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 cofinite_subspace

TopologyByExample.ArcExampleCoverage.cofinite_subspace

Every cofinite subset of a cofinite space of at least continuum size is arc connected.

theorem cofinite_subspace {X : Type*} (hX : 𝔠 ≤ #X)
    {U : Set (_root_.CofiniteTopology X)} (hU : Uᶜ.Finite) : ArcConnectedSpace U
Proof
:= by
  classical
  refine ⟨fun x y hxy => ?_⟩
  have hxy' : (x : _root_.CofiniteTopology X) ≠ y := fun h => hxy (Subtype.ext h)
  have hc : 𝔠 ≤ #(_root_.CofiniteTopology X) :=
    hX.trans (mk_congr (_root_.CofiniteTopology.of (X := X))).le
  let : Infinite (_root_.CofiniteTopology X) := infinite_iff.mpr (aleph0_le_continuum.trans hc)
  let G : Set (_root_.CofiniteTopology X) :=
    Uᶜ ∪ {(x : _root_.CofiniteTopology X), (y : _root_.CofiniteTopology X)}
  have hG : G.Finite := hU.union (toFinite _)
  have hcard : #(Gᶜ : Set (_root_.CofiniteTopology X)) = #(_root_.CofiniteTopology X) :=
    mk_compl_of_infinite G (hG.lt_aleph0.trans_le (aleph0_le_continuum.trans hc))
  obtain ⟨e⟩ : Nonempty (unitInterval ↪ (Gᶜ : Set (_root_.CofiniteTopology X))) := by
    rw [← lift_mk_le', mk_unitInterval, lift_continuum, hcard, lift_uzero]
    exact hc
  have he (t : unitInterval) : (e t : _root_.CofiniteTopology X) ∈ U ∧
      (e t : _root_.CofiniteTopology X) ≠ x ∧ (e t : _root_.CofiniteTopology X) ≠ y := by
    have ht := (e t).property
    simpa only [G, mem_compl_iff, mem_union, mem_insert_iff, mem_singleton_iff,
      not_or, not_not] using ht
  let g : unitInterval → _root_.CofiniteTopology X :=
    fun t => if t = 0 then x else if t = 1 then y else e t
  have hg : Function.Injective g := by
    intro a b hab
    simp only [g] at hab
    split_ifs at hab <;> grind [e.injective, Subtype.val_injective]
  have hgu (t : unitInterval) : g t ∈ U := by
    simp only [g]
    split_ifs
    exacts [x.property, y.property, (he t).1]
  let p : Path x y :=
    { toFun := fun t => ⟨g t, hgu t⟩
      continuous_toFun := (CofiniteTopology.continuous_of_injective hg).subtype_mk hgu
      source' := Subtype.ext (by simp [g])
      target' := Subtype.ext (by simp [g]) }
  exact ⟨p, fun a b hab => hg (congrArg Subtype.val hab)⟩

theorem cofinite_arc

TopologyByExample.ArcExampleCoverage.cofinite_arc

Cofinite spaces of at least continuum size are arc connected.

theorem cofinite_arc {X : Type*} (hX : 𝔠 ≤ #X) : ArcConnectedSpace (_root_.CofiniteTopology X)
Proof
:= by
  have : ArcConnectedSpace (univ : Set (_root_.CofiniteTopology X)) :=
    cofinite_subspace hX (by simp)
  exact (Homeomorph.arcConnectedSpace_iff (Homeomorph.Set.univ _)).mp this

On this site: Cofinite topologies: the space is arc connected when \(X\) has at least the cardinality of the continuum

theorem cofinite_local

TopologyByExample.ArcExampleCoverage.cofinite_local

Cofinite spaces of at least continuum size are locally arc connected.

theorem cofinite_local {X : Type*} (hX : 𝔠 ≤ #X) :
    LocallyArcConnectedSpace (_root_.CofiniteTopology X)
Proof
:= by
  refine ⟨fun x U hU hx => ⟨U, hU, hx, Subset.rfl, ?_⟩⟩
  exact cofinite_subspace hX (_root_.CofiniteTopology.isOpen_iff.mp hU ⟨x, hx⟩)

On this site: Cofinite topologies: the space is locally arc connected when \(X\) has at least the cardinality of the continuum

theorem compactComplement_arc

TopologyByExample.ArcExampleCoverage.compactComplement_arc

The compact-complement real line is arc connected.

theorem compactComplement_arc : ArcConnectedSpace CompactComplement
Proof
:= by
  let : ArcConnectedSpace ℝ := arcConnectedSpace_of_real_vector_space
  exact arcConnectedSpace_of_continuous_bijective CompactComplement.continuous_ofReal
    CompactComplement.toReal.symm.injective CompactComplement.ofReal_surjective

On this site: The compact complement topology is arc connected

theorem indiscrete_arc

TopologyByExample.ArcExampleCoverage.indiscrete_arc

The indiscrete real line is arc connected.

theorem indiscrete_arc : ArcConnectedSpace (WithTopology ℝ ⊤)
Proof
:= by
  let : ArcConnectedSpace ℝ := arcConnectedSpace_of_real_vector_space
  exact arcConnectedSpace_of_continuous_bijective
    (f := (WithTopology.equiv ℝ ⊤).symm) continuous_of_indiscreteTopology
    (WithTopology.equiv ℝ ⊤).symm.injective (WithTopology.equiv ℝ ⊤).symm.surjective

On this site: The indiscrete real line is arc connected

theorem indiscrete_local_general

TopologyByExample.ArcExampleCoverage.indiscrete_local_general

An indiscrete arc-connected space is locally arc connected.

theorem indiscrete_local_general {X : Type*} [TopologicalSpace X] [IndiscreteTopology X]
    [ArcConnectedSpace X] : LocallyArcConnectedSpace X
Proof
:= by
  refine ⟨fun x U hU hx => ?_⟩
  have he : U = univ := ((IndiscreteTopology.isOpen_iff U).mp hU).resolve_left
    (Set.ne_empty_iff_nonempty.mpr ⟨x, hx⟩)
  refine ⟨univ, isOpen_univ, mem_univ _, by rw [he], ?_⟩
  exact (Homeomorph.arcConnectedSpace_iff (Homeomorph.Set.univ X)).mpr inferInstance

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

theorem indiscrete_local

TopologyByExample.ArcExampleCoverage.indiscrete_local

The indiscrete real line is locally arc connected.

theorem indiscrete_local : LocallyArcConnectedSpace (WithTopology ℝ ⊤)
Proof
:= by
  let := indiscrete_arc
  exact indiscrete_local_general

On this site: The indiscrete real line is locally arc connected

theorem radialPlane_arc

TopologyByExample.ArcExampleCoverage.radialPlane_arc

Straight segments are injective paths in the radial plane.

theorem radialPlane_arc : ArcConnectedSpace RadialPlane
Proof
:= by
  refine ⟨fun x y hxy => ?_⟩
  let p : Path x y :=
    { toFun := fun t => RadialPlane.line (RadialPlane.toPlane x)
        (RadialPlane.toPlane y - RadialPlane.toPlane x) t
      continuous_toFun := (RadialPlane.continuous_line _ _).comp continuous_subtypeVal
      source' := by simp [RadialPlane.line]
      target' := by simp [RadialPlane.line] }
  have hne : RadialPlane.toPlane x ≠ RadialPlane.toPlane y := hxy
  refine ⟨p, ?_⟩
  have hp := Path.segment_injective_of_ne hne
  intro a b hab
  apply hp
  have he := congrArg RadialPlane.toPlane hab
  simpa only [p, Path.coe_mk_mk, RadialPlane.line, RadialPlane.toPlane_ofPlane,
    Path.segment_apply, AffineMap.lineMap_apply_module', add_comm] using he

On this site: Radial plane is arc connected