Lean library · module TopologyByExample.Theorems.ButterflyArcs

Local arcs in the butterfly space

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_insert_wings

TopologyByExample.Butterfly.arcConnectedSpace_insert_wings

The parabolic arcs in a bow-tie give arc connectedness.

theorem arcConnectedSpace_insert_wings (x ε : ℝ) :
    ArcConnectedSpace (insert (axisPt x) (wings x ε) : Set Butterfly)
Proof
:= by
  let S : Set Butterfly := insert (axisPt x) (wings x ε)
  let c : S := ⟨axisPt x, mem_insert _ _⟩
  have hub (p : S) : ArcJoined c p := by
    intro hne
    have hp : p.val ∈ wings x ε := p.property.resolve_left
      (fun h ↦ hne (Subtype.ext h.symm))
    have hd : p.val.toPlane.1 ≠ x :=
      fun h ↦ (fst_ne_of_mem_wings hp).ne' (by simp [h])
    let f (t : unitInterval) := arc x p.val.toPlane.1 p.val.toPlane.2 t
    have hm (t : unitInterval) : f t ∈ S := arc_mem p.property t.property.1 t.property.2
    let γ : Path c p :=
      { toFun := fun t ↦ ⟨f t, hm t⟩
        continuous_toFun := ((continuous_arc p.val.snd_nonneg
          (Or.inr hd)).comp continuous_subtypeVal).subtype_mk _
        source' := Subtype.ext (arc_zero _ _ _)
        target' := Subtype.ext (arc_one _ _) }
    refine ⟨γ, fun s t h ↦ Subtype.ext ?_⟩
    have he := congrArg (fun w : S ↦ w.val.toPlane.1) h
    change x + (s : ℝ) * (p.val.toPlane.1 - x) = x + (t : ℝ) * (p.val.toPlane.1 - x) at he
    exact mul_right_cancel₀ (sub_ne_zero.mpr hd) (add_left_cancel he)
  exact ⟨fun p q ↦ (hub p).symm.trans (hub q)⟩

theorem locallyArcConnectedSpace

TopologyByExample.Butterfly.locallyArcConnectedSpace

The butterfly space is locally arc connected.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace Butterfly
Proof
:= by
  refine ⟨fun p U hU hp ↦ ?_⟩
  by_cases h : p.toPlane.2 = 0
  · obtain ⟨x, rfl⟩ : ∃ x, p = axisPt x := ⟨_, eq_axisPt h⟩
    obtain ⟨r, hr, hrs⟩ := (hasBasis_nhds_axisPt x).mem_iff.mp (hU.mem_nhds hp)
    exact ⟨_, isOpen_insert_wings x hr, mem_insert _ _, hrs, arcConnectedSpace_insert_wings x r⟩
  · let : LocallyArcConnectedSpace (ℝ × ℝ) := locallyArcConnectedSpace_of_normedSpace
    let : LocallyArcConnectedSpace {q : ℝ × ℝ // 0 < q.2} :=
      locallyArcConnectedSpace_open (isOpen_lt continuous_const continuous_snd)
    let q : {q : ℝ × ℝ // 0 < q.2} := ⟨p.toPlane, p.snd_nonneg.lt_of_ne (Ne.symm h)⟩
    have he : ofUpper q = p := ofPlane_toPlane p
    exact he ▸ LocallyArcConnectedSpace.exists_open_image isOpenEmbedding_ofUpper q hU (he ▸ hp)

On this site: The butterfly space is locally arc connected