Lean library · module TopologyByExample.Theorems.IrrationalSlopeBiconnected

Connected sets confined to disjoint intervals of the irrational-slope axis

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

definition overInterval

TopologyByExample.IrrationalSlope.overInterval

Points whose two projections lie strictly between fixed endpoints.

def overInterval (a b : ℝ) : Set IrrationalSlope
:= {p | a < p.proj false ∧ p.proj true < b}

theorem isOpen_overInterval

TopologyByExample.IrrationalSlope.isOpen_overInterval

Confining both projections to the open interval defines an open subset.

theorem isOpen_overInterval (a b : ℝ) : IsOpen (overInterval a b)
Proof
:= by
  intro p hp
  let r := min (p.proj false - a) (b - p.proj true)
  have hr : 0 < r := lt_min (sub_pos.mpr hp.1) (sub_pos.mpr hp.2)
  refine ⟨r, hr, ?_⟩
  rintro q (rfl | ⟨hy, i, hi⟩)
  · exact hp
  have hL : p.proj false ≤ p.proj i := by cases i <;> simp [p.proj_false_le_proj_true]
  have hR : p.proj i ≤ p.proj true := by cases i <;> simp [p.proj_false_le_proj_true]
  obtain ⟨hl, hu⟩ := abs_lt.mp hi
  change a < q.proj false ∧ q.proj true < b
  rw [proj_of_y_eq_zero hy, proj_of_y_eq_zero hy]
  constructor <;> linarith [min_le_left (p.proj false - a) (b - p.proj true),
    min_le_right (p.proj false - a) (b - p.proj true)]

theorem isPreconnected_overInterval

TopologyByExample.IrrationalSlope.isPreconnected_overInterval

The points whose two projections belong to a given open interval form a connected set.

theorem isPreconnected_overInterval (a b : ℝ) : IsPreconnected (overInterval a b)
Proof
:= by
  apply isPreconnected_iff_preconnectedSpace.mpr
  apply preconnectedSpace_of_closure_inter_closure
  intro U V hU hV hUn hVn
  let s := overInterval a b
  have ho := (isOpen_overInterval a b).isOpenEmbedding_subtypeVal.isOpenMap
  obtain ⟨p, hp⟩ := hUn
  obtain ⟨p', hp'⟩ := hVn
  obtain ⟨ε, hε, heU⟩ := ho _ hU p.val (mem_image_of_mem _ hp)
  obtain ⟨δ, hδ, hdV⟩ := ho _ hV p'.val (mem_image_of_mem _ hp')
  let α := p.val.proj false
  let β := p'.val.proj false
  have haα : a < α := p.property.1
  have hbα : α < b := p.val.proj_false_le_proj_true.trans_lt p.property.2
  have haβ : a < β := p'.property.1
  have hbβ : β < b := p'.val.proj_false_le_proj_true.trans_lt p'.property.2
  let r := min (min ε δ) (min (min α β - a) (b - max α β))
  have hr : 0 < r := lt_min (lt_min hε hδ)
    (lt_min (sub_pos.mpr (lt_min haα haβ)) (sub_pos.mpr (max_lt hbα hbβ)))
  obtain ⟨q, hq₀, hq₁⟩ := exists_proj_near (min_le_max (a := α) (b := β)) hr
  have hqs : q ∈ s := by
    obtain ⟨hl, _⟩ := abs_lt.mp hq₀
    obtain ⟨_, hu⟩ := abs_lt.mp hq₁
    constructor
    · linarith [(min_le_right _ _ : r ≤ _).trans (min_le_left _ _)]
    · linarith [(min_le_right _ _ : r ≤ _).trans (min_le_right _ _)]
  refine ⟨⟨q, hqs⟩, ?_⟩
  have hru : r ≤ ε := (min_le_left _ _).trans (min_le_left _ _)
  have hrv : r ≤ δ := (min_le_left _ _).trans (min_le_right _ _)
  rw [mem_inter_iff, closure_subtype, closure_subtype]
  rcases le_total α β with h | h
  · rw [min_eq_left h] at hq₀
    rw [max_eq_right h] at hq₁
    exact ⟨closure_mono heU (mem_closure_nhd (hq₀.trans_le hru)),
      closure_mono hdV (mem_closure_nhd (hq₁.trans_le hrv))⟩
  · rw [min_eq_right h] at hq₀
    rw [max_eq_left h] at hq₁
    exact ⟨closure_mono heU (mem_closure_nhd (hq₁.trans_le hru)),
      closure_mono hdV (mem_closure_nhd (hq₀.trans_le hrv))⟩

On this site: Irrational slope topology: Points with both projections in an open interval form a connected set

theorem not_biconnected

TopologyByExample.IrrationalSlope.not_biconnected

The regions over two disjoint intervals obstruct biconnectedness.

theorem not_biconnected : ¬ BiconnectedSpace IrrationalSlope
Proof
:= by
  intro _
  have hd : Disjoint (overInterval 0 3) (overInterval 3 6) := by
    apply Set.disjoint_left.mpr
    intro p h₁ h₂
    exact (p.proj_false_le_proj_true.trans_lt h₁.2).not_gt h₂.1
  have hsub := BiconnectedSpace.subsingleton_or_subsingleton
    (isPreconnected_overInterval 0 3) (isPreconnected_overInterval 3 6) hd
  have haxis {a b : ℝ} {q : ℚ} (h₁ : a < q) (h₂ : (q : ℝ) < b) :
      mk q 0 le_rfl ∈ overInterval a b := by
    change a < (mk q 0 le_rfl).proj false ∧ (mk q 0 le_rfl).proj true < b
    simpa [proj] using And.intro h₁ h₂
  rcases hsub with h | h
  · have he := congrArg x (h (haxis (q := 1) (by norm_num) (by norm_num))
      (haxis (q := 2) (by norm_num) (by norm_num)))
    norm_num at he
  · have he := congrArg x (h (haxis (q := 4) (by norm_num) (by norm_num))
      (haxis (q := 5) (by norm_num) (by norm_num)))
    norm_num at he

On this site: The irrational slope topology is not biconnected