Lean library · module TopologyByExample.Theorems.OrderTopologyIllustrations

Convex components and connected ordered spaces

Source file

The convex-component description, bounded completeness forced by connectedness, and the cut-point illustration from the general order-topology example.

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 {X : Type*} [LinearOrder X]

theorem convex_component_spec

TopologyByExample.BookOrderTopology.convex_component_spec

A convex component is the largest convex subset containing the specified point.

theorem convex_component_spec (s : Set X) {x : X} (hx : x ∈ s) :
    x ∈ ordConnectedComponent s x ∧ ordConnectedComponent s x ⊆ s ∧
    OrdConnected (ordConnectedComponent s x) ∧
    ∀ t : Set X, OrdConnected t → x ∈ t → t ⊆ s → t ⊆ ordConnectedComponent s x
Proof
:= by
  refine ⟨self_mem_ordConnectedComponent.mpr hx, ordConnectedComponent_subset,
    inferInstance, fun t ht hxt hts ↦ ?_⟩
  let := ht
  exact subset_ordConnectedComponent hxt hts

On this site: Theorem: Maximal convex subsets of a linearly ordered set

theorem convex_components_eq_of_inter

TopologyByExample.BookOrderTopology.convex_components_eq_of_inter

Convex components which meet coincide.

theorem convex_components_eq_of_inter {s : Set X} {x y : X}
    (h : (ordConnectedComponent s x ∩ ordConnectedComponent s y).Nonempty) :
    ordConnectedComponent s x = ordConnectedComponent s y
Proof
:= by
  obtain ⟨z, hxz, hyz⟩ := h
  exact (ordConnectedComponent_eq hxz).trans (ordConnectedComponent_eq hyz).symm
variable [TopologicalSpace X] [OrderTopology X]

theorem exists_isLUB_of_preconnected

TopologyByExample.BookOrderTopology.exists_isLUB_of_preconnected

In a connected order topology, every nonempty bounded-above set has a supremum.

theorem exists_isLUB_of_preconnected [PreconnectedSpace X] {s : Set X}
    (hs : s.Nonempty) (hb : BddAbove s) : ∃ x, IsLUB s x
Proof
:= by
  by_contra hno
  have hc : IsClosed (upperBounds s) := by
    convert (isClosed_biInter fun a (_ : a ∈ s) ↦ (isClosed_Ici : IsClosed (Ici a))) using 1
    ext x
    simp [upperBounds]
  have ho : IsOpen (upperBounds s) := by
    apply isOpen_iff_mem_nhds.mpr
    intro u hu
    obtain ⟨v, hv, hvu⟩ : ∃ v ∈ upperBounds s, v < u := by
      by_contra! h
      exact hno ⟨u, hu, h⟩
    exact mem_of_superset (Ioi_mem_nhds hvu) fun x hx a ha ↦ (hv ha).trans hx.le
  have he := (show IsClopen (upperBounds s) from ⟨hc, ho⟩).eq_univ hb
  obtain ⟨a, ha⟩ := hs
  exact hno ⟨a, he ▸ mem_univ a, fun u hu ↦ hu ha⟩

theorem exists_isGLB_of_preconnected

TopologyByExample.BookOrderTopology.exists_isGLB_of_preconnected

The dual bounded completeness conclusion.

theorem exists_isGLB_of_preconnected [PreconnectedSpace X] {s : Set X}
    (hs : s.Nonempty) (hb : BddBelow s) : ∃ x, IsGLB s x
Proof
:= by
  let : PreconnectedSpace Xᵒᵈ := ‹PreconnectedSpace X›
  exact exists_isLUB_of_preconnected (X := Xᵒᵈ) hs hb

theorem connected_order_conditions

TopologyByExample.BookOrderTopology.connected_order_conditions

Connected order topologies are dense and conditionally complete in the order sense.

theorem connected_order_conditions [PreconnectedSpace X] :
    DenselyOrdered X ∧
    (∀ s : Set X, s.Nonempty → BddAbove s → ∃ x, IsLUB s x) ∧
    (∀ s : Set X, s.Nonempty → BddBelow s → ∃ x, IsGLB s x)
Proof
:=
  ⟨denselyOrdered_of_preconnectedSpace, fun _ ↦ exists_isLUB_of_preconnected,
    fun _ ↦ exists_isGLB_of_preconnected⟩

On this site: Theorem: Connected order topologies have no jumps or bounded gaps

theorem not_isPreconnected_punctured

TopologyByExample.BookOrderTopology.not_isPreconnected_punctured

Removing a point with points on both sides leaves a disconnected subspace.

theorem not_isPreconnected_punctured {a p b : X} (hap : a < p) (hpb : p < b) :
    ¬IsPreconnected ({p}ᶜ : Set X)
Proof
:= by
  intro h
  have ha : a ∈ ({p}ᶜ : Set X) := by simpa using hap.ne
  have hb : b ∈ ({p}ᶜ : Set X) := by simpa using hpb.ne'
  have hp := h.Icc_subset ha hb ⟨hap.le, hpb.le⟩
  exact hp (mem_singleton p)

On this site: Theorem: Deleting a point between two others disconnects an ordered space