Lean library · module TopologyByExample.Theorems.ArcConnectedExamples

Arc connectedness of convex sets and countability obstructions

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 {E : Type*} [AddCommGroup E] [Module ℝ E]
  [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul ℝ E]

theorem arcConnectedSpace_of_convex

TopologyByExample.arcConnectedSpace_of_convex

Straight segments give injective paths between distinct points of a convex set.

theorem arcConnectedSpace_of_convex {s : Set E} (hs : Convex ℝ s) : ArcConnectedSpace s
Proof
:= by
  refine ⟨fun x y hxy ↦ ?_⟩
  have hne : (x : E) ≠ (y : E) := fun h ↦ hxy (Subtype.ext h)
  let p := Path.segment (x : E) (y : E)
  have hp : ∀ t, p t ∈ s := fun t ↦
    hs.segment_subset x.property y.property (by rw [← Path.range_segment]; exact mem_range_self t)
  let q : Path x y :=
    { toFun := fun t ↦ ⟨p t, hp t⟩
      continuous_toFun := p.continuous.subtype_mk hp
      source' := Subtype.ext p.source
      target' := Subtype.ext p.target }
  exact ⟨q, fun a b h ↦ Path.segment_injective_of_ne hne (congrArg Subtype.val h)⟩

theorem arcConnectedSpace_of_real_vector_space

TopologyByExample.arcConnectedSpace_of_real_vector_space

Real topological vector spaces are arc connected.

theorem arcConnectedSpace_of_real_vector_space : ArcConnectedSpace E
Proof
:=
  ⟨fun x y hxy ↦ ⟨Path.segment x y, Path.segment_injective_of_ne hxy⟩⟩

On this site: The real line is arc connected

theorem locallyArcConnectedSpace_of_normedSpace

TopologyByExample.locallyArcConnectedSpace_of_normedSpace

Real normed spaces have open convex balls as an arc-connected neighborhood basis.

theorem locallyArcConnectedSpace_of_normedSpace {F : Type*} [NormedAddCommGroup F]
    [NormedSpace ℝ F] : LocallyArcConnectedSpace F
Proof
:= by
  refine ⟨fun x U hU hx ↦ ?_⟩
  obtain ⟨r, hr, hsub⟩ := Metric.isOpen_iff.1 hU x hx
  exact ⟨Metric.ball x r, Metric.isOpen_ball, Metric.mem_ball_self hr, hsub,
    arcConnectedSpace_of_convex (convex_ball x r)⟩

On this site: The real line is locally arc connected

theorem subsingleton_of_countable_of_arcConnectedSpace

TopologyByExample.subsingleton_of_countable_of_arcConnectedSpace

An arc-connected countable space has at most one point.

theorem subsingleton_of_countable_of_arcConnectedSpace {X : Type*} [TopologicalSpace X]
    [Countable X] [ArcConnectedSpace X] : Subsingleton X
Proof
:= by
  refine ⟨fun x y ↦ ?_⟩
  by_contra hxy
  obtain ⟨p, hp⟩ := ArcConnectedSpace.exists_injective_path x y hxy
  have hcount : Countable unitInterval := hp.countable
  have hle := Cardinal.mk_le_aleph0 (α := unitInterval)
  rw [Cardinal.mk_unitInterval] at hle
  exact (not_le_of_gt Cardinal.aleph0_lt_continuum) hle

On this site: Theorem: Countable arc connected spaces have at most one point

theorem not_arcConnectedSpace_of_countable_of_nontrivial

TopologyByExample.not_arcConnectedSpace_of_countable_of_nontrivial

Countable spaces with two distinct points cannot be arc connected.

theorem not_arcConnectedSpace_of_countable_of_nontrivial {X : Type*} [TopologicalSpace X]
    [Countable X] [Nontrivial X] : ¬ ArcConnectedSpace X
Proof
:= by
  intro h
  have := subsingleton_of_countable_of_arcConnectedSpace (X := X)
  exact not_subsingleton X this

theorem arcConnectedSpace_unitInterval

TopologyByExample.arcConnectedSpace_unitInterval

The closed unit interval is arc connected.

theorem arcConnectedSpace_unitInterval : ArcConnectedSpace unitInterval
Proof
:=
  arcConnectedSpace_of_convex (convex_Icc (0 : ℝ) 1)

On this site: The unit interval is arc connected