Lean library · module TopologyByExample.Spaces.MinimalHausdorffIdentification

The ordered-column presentation of the minimal Hausdorff space

Source file

The ordered column has order type ω + 1 + ω*. Its left and right points are indexed from zero: index m represents the positive integer m + 1 or its negative. Columns are also indexed from zero. Adding two poles with the prescribed one-sided column tails gives a space homeomorphic to NonUrysohn.

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 Column

TopologyByExample.MinimalHausdorff.Column

The ordered set 1, 2, …, ω, …, -2, -1, with finite indices shifted down by one.

def Column
:= WithTop ℕ ⊕ₗ ℕᵒᵈ

instance

instance : LinearOrder Column
Proof
:= inferInstanceAs (LinearOrder (WithTop ℕ ⊕ₗ ℕᵒᵈ))

instance

instance : TopologicalSpace Column
Proof
:= Preorder.topology Column

instance

instance : OrderTopology Column
Proof
:= ⟨rfl⟩

definition center

TopologyByExample.MinimalHausdorff.center

The central point of the ordered column.

def center : Column
:= toLex (Sum.inl ⊤)

definition left

TopologyByExample.MinimalHausdorff.left

A point on the increasing left side.

def left (m : ℕ) : Column
:= toLex (Sum.inl (m : WithTop ℕ))

definition right

TopologyByExample.MinimalHausdorff.right

A point on the decreasing right side.

def right (m : ℕ) : Column
:= toLex (Sum.inr (OrderDual.toDual m))

theorem column_cases

TopologyByExample.MinimalHausdorff.column_cases

Every column point is central or lies on one of the two sides.

theorem column_cases (x : Column) : x = center ∨ (∃ m, x = left m) ∨ ∃ m, x = right m
Proof
:= by
  obtain ⟨x | x, rfl⟩ := toLex.surjective x
  · cases x with
    | top => exact .inl rfl
    | coe m => exact .inr (.inl ⟨m, rfl⟩)
  · exact .inr (.inr ⟨x, rfl⟩)

theorem left_lt_left

TopologyByExample.MinimalHausdorff.left_lt_left

The left points are ordered by their indices.

@[simp] theorem left_lt_left {m n : ℕ} : left m < left n ↔ m < n
Proof
:= by
  exact Sum.Lex.inl_lt_inl_iff.trans WithTop.coe_lt_coe

theorem right_lt_right

TopologyByExample.MinimalHausdorff.right_lt_right

The right points are ordered by the reverse of their indices.

@[simp] theorem right_lt_right {m n : ℕ} : right m < right n ↔ n < m
Proof
:=
  Sum.Lex.inr_lt_inr_iff

theorem left_lt_center

TopologyByExample.MinimalHausdorff.left_lt_center

Every left point is below the centre.

@[simp] theorem left_lt_center (m : ℕ) : left m < center
Proof
:= by
  exact Sum.Lex.inl_lt_inl_iff.2 (WithTop.coe_lt_top m)

theorem center_lt_right

TopologyByExample.MinimalHausdorff.center_lt_right

Every right point is above the centre.

@[simp] theorem center_lt_right (m : ℕ) : center < right m
Proof
:= Sum.Lex.inl_lt_inr _ _

theorem left_lt_right

TopologyByExample.MinimalHausdorff.left_lt_right

Every left point is below every right point.

@[simp] theorem left_lt_right (m n : ℕ) : left m < right n
Proof
:= Sum.Lex.inl_lt_inr _ _

theorem left_inj

TopologyByExample.MinimalHausdorff.left_inj

Distinct indices give distinct left points.

@[simp] theorem left_inj {m n : ℕ} : left m = left n ↔ m = n
Proof
:= by
  change toLex (Sum.inl (m : WithTop ℕ) : WithTop ℕ ⊕ ℕᵒᵈ) =
    toLex (Sum.inl (n : WithTop ℕ)) ↔ m = n
  simp

theorem right_inj

TopologyByExample.MinimalHausdorff.right_inj

Distinct indices give distinct right points.

@[simp] theorem right_inj {m n : ℕ} : right m = right n ↔ m = n
Proof
:= by
  change toLex (Sum.inr (OrderDual.toDual m) : WithTop ℕ ⊕ ℕᵒᵈ) =
    toLex (Sum.inr (OrderDual.toDual n)) ↔ m = n
  simp

theorem isOpen_singleton_left

TopologyByExample.MinimalHausdorff.isOpen_singleton_left

Every point on the left side is isolated in the order topology.

theorem isOpen_singleton_left (m : ℕ) : IsOpen ({left m} : Set Column)
Proof
:= by
  cases m with
  | zero =>
    have h : Iio (left 1) = ({left 0} : Set Column) := by
      ext x
      rcases column_cases x with rfl | ⟨n, rfl⟩ | ⟨n, rfl⟩
      · simp [ne_of_gt (left_lt_center 0), not_lt_of_gt (left_lt_center 1)]
      · simp only [mem_Iio, left_lt_left, mem_singleton_iff, left_inj]
        omega
      · simp [ne_of_gt (left_lt_right 0 n), not_lt_of_gt (left_lt_right 1 n)]
    rw [← h]
    exact isOpen_Iio
  | succ m =>
    have h : Ioo (left m) (left (m + 2)) = ({left (m + 1)} : Set Column) := by
      ext x
      rcases column_cases x with rfl | ⟨n, rfl⟩ | ⟨n, rfl⟩
      · simp [ne_of_gt (left_lt_center (m + 1)), not_lt_of_gt (left_lt_center (m + 2))]
      · simp only [mem_Ioo, left_lt_left, mem_singleton_iff, left_inj]
        omega
      · simp [ne_of_gt (left_lt_right (m + 1) n),
          not_lt_of_gt (left_lt_right (m + 2) n)]
    rw [← h]
    exact isOpen_Ioo

theorem isOpen_singleton_right

TopologyByExample.MinimalHausdorff.isOpen_singleton_right

Every point on the right side is isolated in the order topology.

theorem isOpen_singleton_right (m : ℕ) : IsOpen ({right m} : Set Column)
Proof
:= by
  cases m with
  | zero =>
    have h : Ioi (right 1) = ({right 0} : Set Column) := by
      ext x
      rcases column_cases x with rfl | ⟨n, rfl⟩ | ⟨n, rfl⟩
      · simp [ne_of_lt (center_lt_right 0), not_lt_of_gt (center_lt_right 1)]
      · simp [ne_of_lt (left_lt_right n 0), not_lt_of_gt (left_lt_right n 1)]
      · simp only [mem_Ioi, right_lt_right, mem_singleton_iff, right_inj]
        omega
    rw [← h]
    exact isOpen_Ioi
  | succ m =>
    have h : Ioo (right (m + 2)) (right m) = ({right (m + 1)} : Set Column) := by
      ext x
      rcases column_cases x with rfl | ⟨n, rfl⟩ | ⟨n, rfl⟩
      · simp [ne_of_lt (center_lt_right (m + 1)), not_lt_of_gt (center_lt_right (m + 2))]
      · simp [ne_of_lt (left_lt_right n (m + 1)),
          not_lt_of_gt (left_lt_right n (m + 2))]
      · simp only [mem_Ioo, right_lt_right, mem_singleton_iff, right_inj]
        omega
    rw [← h]
    exact isOpen_Ioo

theorem tendsto_left

TopologyByExample.MinimalHausdorff.tendsto_left

The left side converges to the central point in the order topology.

theorem tendsto_left : Tendsto left atTop (𝓝 center)
Proof
:= by
  rw [tendsto_order]
  constructor
  · intro x hx
    rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩
    · exact (lt_irrefl _ hx).elim
    · exact (eventually_gt_atTop m).mono fun n hn ↦ left_lt_left.2 hn
    · exact (not_lt_of_gt (center_lt_right m) hx).elim
  · intro x hx
    rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩
    · exact (lt_irrefl _ hx).elim
    · exact (not_lt_of_gt (left_lt_center m) hx).elim
    · exact .of_forall fun n ↦ left_lt_right n m

theorem tendsto_right

TopologyByExample.MinimalHausdorff.tendsto_right

The right side converges to the central point in the order topology.

theorem tendsto_right : Tendsto right atTop (𝓝 center)
Proof
:= by
  rw [tendsto_order]
  constructor
  · intro x hx
    rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩
    · exact (lt_irrefl _ hx).elim
    · exact .of_forall fun n ↦ left_lt_right m n
    · exact (not_lt_of_gt (center_lt_right m) hx).elim
  · intro x hx
    rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩
    · exact (lt_irrefl _ hx).elim
    · exact (not_lt_of_gt (left_lt_center m) hx).elim
    · exact (eventually_gt_atTop m).mono fun n hn ↦ right_lt_right.2 hn

theorem isOpen_column_iff

TopologyByExample.MinimalHausdorff.isOpen_column_iff

A subset of the ordered column is open exactly when, if it contains the centre, it contains a tail of each side.

theorem isOpen_column_iff {U : Set Column} :
    IsOpen U ↔ (center ∈ U → (∀ᶠ m in atTop, left m ∈ U) ∧
      ∀ᶠ m in atTop, right m ∈ U)
Proof
:= by
  constructor
  · intro hU hc
    exact ⟨tendsto_left.eventually (hU.mem_nhds hc),
      tendsto_right.eventually (hU.mem_nhds hc)⟩
  · intro hU
    rw [isOpen_iff_mem_nhds]
    intro x hx
    rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩
    · obtain ⟨hl, hr⟩ := hU hx
      obtain ⟨M, hM⟩ := eventually_atTop.1 (hl.and hr)
      refine mem_of_superset (Ioo_mem_nhds (left_lt_center M) (center_lt_right M)) ?_
      intro y hy
      rcases column_cases y with rfl | ⟨n, rfl⟩ | ⟨n, rfl⟩
      · exact hx
      · exact (hM n (le_of_lt (left_lt_left.1 hy.1))).1
      · exact (hM n (le_of_lt (right_lt_right.1 hy.2))).2
    · exact mem_of_superset ((isOpen_singleton_left m).mem_nhds rfl)
        (singleton_subset_iff.2 hx)
    · exact mem_of_superset ((isOpen_singleton_right m).mem_nhds rfl)
        (singleton_subset_iff.2 hx)

definition side

TopologyByExample.MinimalHausdorff.side

Side false is the positive side, and side true is the negative side.

def side (i : Bool) (m : ℕ) : Column
:= if i then right m else left m

theorem isOpen_product_iff

TopologyByExample.MinimalHausdorff.isOpen_product_iff

The open sets of the product with a discrete set of column indices are precisely those whose sections in every column are open.

theorem isOpen_product_iff {U : Set (Column × ℕ)} :
    IsOpen U ↔ ∀ n, IsOpen ((fun x ↦ (x, n)) ⁻¹' U)
Proof
:= by
  constructor
  · intro h n
    exact h.preimage (continuous_id.prodMk continuous_const)
  · intro h
    rw [isOpen_prod_iff]
    intro x n hx
    refine ⟨(fun x ↦ (x, n)) ⁻¹' U, {n}, h n, isOpen_discrete _, hx, rfl, ?_⟩
    rintro ⟨y, m⟩ ⟨hy, hm⟩
    obtain rfl := mem_singleton_iff.1 hm
    exact hy

definition Space

TopologyByExample.MinimalHausdorff.Space

The product of the ordered column with the discrete natural numbers, with two additional poles. Index n denotes the positive column number n + 1.

def Space
:= Bool ⊕ (Column × ℕ)

instance

The topology extends the product topology by one-sided tails at the two poles.

instance : TopologicalSpace Space
Proof
where
  IsOpen U := IsOpen (Sum.inr ⁻¹' U : Set (Column × ℕ)) ∧
    ∀ i, Sum.inl i ∈ U → ∀ᶠ n in atTop, ∀ m, Sum.inr (side i m, n) ∈ U
  isOpen_univ := ⟨isOpen_univ, fun _ _ ↦ .of_forall fun _ _ ↦ trivial⟩
  isOpen_inter U V hU hV := ⟨hU.1.inter hV.1,
    fun i hi ↦ ((hU.2 i hi.1).and (hV.2 i hi.2)).mono fun n hn m ↦ ⟨hn.1 m, hn.2 m⟩⟩
  isOpen_sUnion S hS := by
    constructor
    · rw [isOpen_iff_mem_nhds]
      rintro x ⟨U, hUS, hxU⟩
      exact mem_of_superset ((hS U hUS).1.mem_nhds hxU) fun y hy ↦ ⟨U, hUS, hy⟩
    · rintro i ⟨U, hUS, hiU⟩
      exact ((hS U hUS).2 i hiU).mono fun n hn m ↦ ⟨U, hUS, hn m⟩

theorem isOpen_space_iff

TopologyByExample.MinimalHausdorff.isOpen_space_iff

The topology of the ordered-column presentation, stated directly.

theorem isOpen_space_iff {U : Set Space} :
    IsOpen U ↔ IsOpen (Sum.inr ⁻¹' U : Set (Column × ℕ)) ∧
      ∀ i, Sum.inl i ∈ U → ∀ᶠ n in atTop, ∀ m, Sum.inr (side i m, n) ∈ U
Proof
:= Iff.rfl

definition toNonUrysohn

TopologyByExample.MinimalHausdorff.toNonUrysohn

The reindexing from the ordered-column presentation to the two-pole presentation.

def toNonUrysohn : Space → NonUrysohn
Definition
  | .inl i => .pole i
  | .inr (x, n) => match ofLex x with
    | .inl none => .mid n
    | .inl (some m) => .iso false n m
    | .inr m => .iso true n m

definition fromNonUrysohn

TopologyByExample.MinimalHausdorff.fromNonUrysohn

The inverse reindexing, sending each pair of convergent sequences to its ordered column.

def fromNonUrysohn : NonUrysohn → Space
  | .pole i => .inl i
  | .mid n => .inr (center, n)
  | .iso i n m => .inr (side i m, n)

theorem toNonUrysohn_pole

TopologyByExample.MinimalHausdorff.toNonUrysohn_pole

The positive and negative poles map to the corresponding poles.

@[simp] theorem toNonUrysohn_pole (i : Bool) : toNonUrysohn (.inl i) = .pole i
Proof
:= rfl

theorem toNonUrysohn_center

TopologyByExample.MinimalHausdorff.toNonUrysohn_center

The central point of column n maps to its limit point.

@[simp] theorem toNonUrysohn_center (n : ℕ) :
    toNonUrysohn (.inr (center, n)) = .mid n
Proof
:= rfl

theorem toNonUrysohn_side

TopologyByExample.MinimalHausdorff.toNonUrysohn_side

The side points map to the corresponding isolated points.

@[simp] theorem toNonUrysohn_side (i : Bool) (n m : ℕ) :
    toNonUrysohn (.inr (side i m, n)) = .iso i n m
Proof
:= by cases i <;> rfl

theorem from_to

TopologyByExample.MinimalHausdorff.from_to

The two point correspondences are inverse.

theorem from_to (x : Space) : fromNonUrysohn (toNonUrysohn x) = x
Proof
:= by
  rcases x with i | ⟨x, n⟩
  · rfl
  · rcases column_cases x with rfl | ⟨m, rfl⟩ | ⟨m, rfl⟩ <;> rfl

theorem to_from

TopologyByExample.MinimalHausdorff.to_from

The two point correspondences are inverse.

theorem to_from (x : NonUrysohn) : toNonUrysohn (fromNonUrysohn x) = x
Proof
:= by
  cases x with
  | pole i => rfl
  | mid n => rfl
  | iso i n m => exact toNonUrysohn_side i n m

definition equiv

TopologyByExample.MinimalHausdorff.equiv

The point correspondence is a bijection.

def equiv : Space ≃ NonUrysohn
Definition
where
  toFun := toNonUrysohn
  invFun := fromNonUrysohn
  left_inv := from_to
  right_inv := to_from

theorem isOpen_preimage_iff

TopologyByExample.MinimalHausdorff.isOpen_preimage_iff

The reindexing preserves and reflects open sets.

theorem isOpen_preimage_iff {U : Set NonUrysohn} :
    IsOpen (toNonUrysohn ⁻¹' U) ↔ IsOpen U
Proof
:= by
  rw [isOpen_space_iff, isOpen_product_iff, NonUrysohn.isOpen_iff]
  constructor
  · rintro ⟨hcol, hpole⟩
    refine ⟨?_, fun n hn ↦ ?_⟩
    · intro i hi
      exact (hpole i hi).mono fun n hn m ↦ by
        have h := hn m
        change toNonUrysohn (.inr (side i m, n)) ∈ U at h
        simpa only [toNonUrysohn_side] using h
    · have h := isOpen_column_iff.1 (hcol n) hn
      exact (h.1.and h.2).mono fun m hm i ↦ by
        cases i
        · exact hm.1
        · exact hm.2
  · rintro ⟨hpole, hmid⟩
    refine ⟨fun n ↦ isOpen_column_iff.2 fun hn ↦ ?_, ?_⟩
    · exact ⟨(hmid n hn).mono fun m hm ↦ hm false,
        (hmid n hn).mono fun m hm ↦ hm true⟩
    · intro i hi
      exact (hpole i hi).mono fun n hn m ↦ by
        change toNonUrysohn (.inr (side i m, n)) ∈ U
        rw [toNonUrysohn_side]
        exact hn m

definition homeomorph

TopologyByExample.MinimalHausdorff.homeomorph

The ordered-column presentation is homeomorphic to the countable non-Urysohn space.

def homeomorph : Space ≃ₜ NonUrysohn
Definition
where
  toEquiv := equiv
  continuous_toFun := continuous_def.2 fun U hU ↦ isOpen_preimage_iff.2 hU
  continuous_invFun := continuous_def.2 fun U hU ↦ isOpen_preimage_iff.1 (by
    change IsOpen (toNonUrysohn ⁻¹' (fromNonUrysohn ⁻¹' U))
    simpa only [preimage_preimage, Function.comp_def, from_to, preimage_id'] using hU)

On this site: A countable Hausdorff space that is not Urysohn: An ordered-column presentation