Lean library · module TopologyByExample.Theorems.CombBroomArcs

Arcs in the comb and the closed broom

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 arcConnectedSpace_combOf

TopologyByExample.CombSpace.arcConnectedSpace_combOf

Any comb of vertical teeth over a horizontal interval is arc connected.

theorem CombSpace.arcConnectedSpace_combOf {T : Set ℝ} (hT : T ⊆ Icc 0 1) :
    ArcConnectedSpace (CombSpace.combOf T)
Proof
:= by
  let s := CombSpace.combOf T
  let B := Icc (0 : ℝ) 1 ×ˢ ({0} : Set ℝ)
  have hB : Convex ℝ B := (convex_Icc 0 1).prod (convex_singleton 0)
  have hb : B ⊆ s := subset_union_left
  have h0 : ((0 : ℝ), (0 : ℝ)) ∈ B := ⟨⟨le_rfl, zero_le_one⟩, rfl⟩
  let o : s := ⟨(0, 0), hb h0⟩
  have hub (x : s) : ArcJoined x o := by
    rcases x.property with hx | ⟨hx, hy⟩
    · exact arcJoined_of_segment_subset ((hB.segment_subset hx h0).trans hb)
    let foot : s := ⟨(x.val.1, 0), hb ⟨hT hx, rfl⟩⟩
    have hf : foot.val ∈ B := ⟨hT hx, rfl⟩
    have ht : Convex ℝ ({x.val.1} ×ˢ Icc (0 : ℝ) 1) :=
      (convex_singleton _).prod (convex_Icc 0 1)
    have hsub : {x.val.1} ×ˢ Icc (0 : ℝ) 1 ⊆ s := by
      rintro z ⟨hz, hz'⟩
      exact Or.inr ⟨(mem_singleton_iff.mp hz) ▸ hx, hz'⟩
    have hxf : ArcJoined x foot := arcJoined_of_segment_subset ((ht.segment_subset
      (show x.val ∈ _ from ⟨rfl, hy⟩)
      (show foot.val ∈ _ from ⟨rfl, le_rfl, zero_le_one⟩)).trans hsub)
    exact hxf.trans (arcJoined_of_segment_subset ((hB.segment_subset hf h0).trans hb))
  exact ⟨fun x y ↦ (hub x).trans (hub y).symm⟩

theorem arcConnectedSpace

TopologyByExample.CombSpace.arcConnectedSpace

The comb space is arc connected.

theorem CombSpace.arcConnectedSpace : ArcConnectedSpace CombSpace
Proof
:=
  arcConnectedSpace_combOf teeth_subset_Icc

On this site: The comb space is arc connected

theorem starConvex_spread_image

TopologyByExample.Broom.starConvex_spread_image

The union of the segments of any set of slopes is star-convex at the origin.

theorem Broom.starConvex_spread_image (S : Set ℝ) :
    StarConvex ℝ (0 : ℝ × ℝ) (Broom.spread '' (Icc 0 1 ×ˢ S))
Proof
:= by
  rintro _ ⟨⟨t, s⟩, ⟨ht, hs⟩, rfl⟩ a b ha hb hab
  have hbt : b * t ∈ Icc (0 : ℝ) 1 :=
    ⟨mul_nonneg hb ht.1, (mul_le_mul_of_nonneg_left ht.2 hb).trans (by nlinarith)⟩
  refine ⟨(b * t, s), ⟨hbt, hs⟩, ?_⟩
  ext <;> simp [spread, mul_assoc]

theorem arcConnectedSpace

TopologyByExample.ClosedInfiniteBroom.arcConnectedSpace

The closed broom is arc connected.

theorem ClosedInfiniteBroom.arcConnectedSpace : ArcConnectedSpace ClosedInfiniteBroom
Proof
:= by
  change ArcConnectedSpace Broom.closedInfiniteBroom
  rw [Broom.closedInfiniteBroom_eq]
  exact arcConnectedSpace_of_starConvex (Broom.starConvex_spread_image _)

On this site: The closed infinite broom is arc connected