Lean library · module TopologyByExample.Spaces.NonUrysohnMinimal

Minimality of the countable non-Urysohn topology

Source file

Every Hausdorff topology coarser than the topology of NonUrysohn equals it. Separation from the poles confines a neighbourhood of any other point to finitely many compact columns. At a pole, separation from the other pole confines the part outside a prescribed original neighbourhood to finitely many columns. Compact subsets remain closed in the coarser Hausdorff topology, which recovers every original open neighbourhood.

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 initialColumns

TopologyByExample.NonUrysohn.initialColumns

The union of the first N columns, including their limit points.

def initialColumns (N : ℕ) : Set NonUrysohn
:= ⋃ n < N, midNhd n 0

theorem pole_notMem_initialColumns

TopologyByExample.NonUrysohn.pole_notMem_initialColumns

Neither pole lies in a finite union of columns.

@[simp] theorem pole_notMem_initialColumns (i : Bool) (N : ℕ) :
    pole i ∉ initialColumns N
Proof
:= by simp [initialColumns]

theorem mid_mem_initialColumns

TopologyByExample.NonUrysohn.mid_mem_initialColumns

A column limit belongs to the initial columns exactly when its index is small.

@[simp] theorem mid_mem_initialColumns (n N : ℕ) : mid n ∈ initialColumns N ↔ n < N
Proof
:= by
  simp [initialColumns]

theorem iso_mem_initialColumns

TopologyByExample.NonUrysohn.iso_mem_initialColumns

An isolated point belongs to the initial columns exactly when its column index is small.

@[simp] theorem iso_mem_initialColumns (i : Bool) (n m N : ℕ) :
    iso i n m ∈ initialColumns N ↔ n < N
Proof
:= by simp [initialColumns]

theorem isCompact_midNhd_zero

TopologyByExample.NonUrysohn.isCompact_midNhd_zero

A whole column is compact.

theorem isCompact_midNhd_zero (n : ℕ) : IsCompact (midNhd n 0)
Proof
:= by
  convert isCompact_column n using 1
  ext x
  rcases x with i | k | ⟨i, k, m⟩ <;> simp [midNhd]
  cases i <;> simp [eq_comm]

theorem isCompact_initialColumns

TopologyByExample.NonUrysohn.isCompact_initialColumns

Finitely many whole columns form a compact set.

theorem isCompact_initialColumns (N : ℕ) : IsCompact (initialColumns N)
Proof
:=
  (finite_lt_nat N).isCompact_biUnion fun n _ ↦ isCompact_midNhd_zero n

theorem isClosed_of_isCompact_coarser

TopologyByExample.NonUrysohn.isClosed_of_isCompact_coarser

In a coarser Hausdorff topology, every original compact set is closed.

theorem isClosed_of_isCompact_coarser (t : TopologicalSpace NonUrysohn)
    (ht : instTopologicalSpace ≤ t) (h₂ : @T2Space NonUrysohn t)
    {K : Set NonUrysohn} (hK : @IsCompact NonUrysohn instTopologicalSpace K) : IsClosed[t] K
Proof
:= by
  have h : @Continuous NonUrysohn NonUrysohn instTopologicalSpace t id :=
    continuous_id_iff_le.2 ht
  have hK' := @IsCompact.image NonUrysohn NonUrysohn instTopologicalSpace t K id hK h
  simpa using hK'.isClosed

theorem exists_isOpen_subset_union_initialColumns

TopologyByExample.NonUrysohn.exists_isOpen_subset_union_initialColumns

A neighbourhood in a coarser Hausdorff topology can be confined to any prescribed original open neighbourhood, apart from finitely many columns.

theorem exists_isOpen_subset_union_initialColumns (t : TopologicalSpace NonUrysohn)
    (ht : instTopologicalSpace ≤ t) (h₂ : @T2Space NonUrysohn t)
    {O : Set NonUrysohn} (hO : IsOpen[instTopologicalSpace] O) {x : NonUrysohn} (hx : x ∈ O) :
    ∃ U N, IsOpen[t] U ∧ x ∈ U ∧ U ⊆ O ∪ initialColumns N
Proof
:= by
  have hopen : ∀ {U : Set NonUrysohn}, IsOpen[t] U → IsOpen[instTopologicalSpace] U :=
    fun h ↦ ht _ h
  have hsep : ∀ i, x ≠ pole i → ∃ U V : Set NonUrysohn,
      IsOpen[t] U ∧ IsOpen[t] V ∧ x ∈ U ∧ pole i ∈ V ∧ Disjoint U V := by
    exact fun i hi ↦ t2_separation hi
  rcases x with i | k | ⟨i, k, m⟩
  · obtain ⟨U, V, hU, hV, hiU, hjV, hUV⟩ := hsep (!i) (by simp)
    obtain ⟨NO, hNO⟩ := eventually_atTop.1 (hO.1 i hx)
    obtain ⟨NV, hNV⟩ := eventually_atTop.1 ((hopen hV).1 (!i) hjV)
    refine ⟨U, max NO NV, hU, hiU, ?_⟩
    rintro (j | n | ⟨j, n, l⟩) hy
    · by_cases hji : j = i
      · exact .inl (hji ▸ hx)
      · have hj : j = !i := by cases i <;> cases j <;> simp_all
        exact False.elim (Set.disjoint_left.1 hUV hy (hj ▸ hjV))
    · by_cases hn : n < max NO NV
      · exact .inr (by simpa using hn)
      · obtain ⟨M, hM⟩ := eventually_atTop.1 ((hopen hU).2 n hy)
        exact False.elim (Set.disjoint_left.1 hUV (hM M le_rfl (!i))
          (hNV n ((le_max_right NO NV).trans (not_lt.1 hn)) M))
    · by_cases hn : n < max NO NV
      · exact .inr (by simpa using hn)
      · by_cases hji : j = i
        · exact .inl (hji ▸ hNO n ((le_max_left NO NV).trans (not_lt.1 hn)) l)
        · have hj : j = !i := by cases i <;> cases j <;> simp_all
          exact False.elim (Set.disjoint_left.1 hUV hy
            (hj ▸ hNV n ((le_max_right NO NV).trans (not_lt.1 hn)) l))
  all_goals
    obtain ⟨U₀, V₀, hU₀, hV₀, hxU₀, hpV₀, hd₀⟩ := hsep false (by simp)
    obtain ⟨U₁, V₁, hU₁, hV₁, hxU₁, hpV₁, hd₁⟩ := hsep true (by simp)
    obtain ⟨N₀, hN₀⟩ := eventually_atTop.1 ((hopen hV₀).1 false hpV₀)
    obtain ⟨N₁, hN₁⟩ := eventually_atTop.1 ((hopen hV₁).1 true hpV₁)
    refine ⟨U₀ ∩ U₁, max N₀ N₁, hU₀.inter hU₁, ⟨hxU₀, hxU₁⟩, ?_⟩
    rintro (j | n | ⟨j, n, l⟩) hy
    · cases j
      · exact False.elim (Set.disjoint_left.1 hd₀ hy.1 hpV₀)
      · exact False.elim (Set.disjoint_left.1 hd₁ hy.2 hpV₁)
    · by_cases hn : n < max N₀ N₁
      · exact .inr (by simpa using hn)
      · obtain ⟨M, hM⟩ := eventually_atTop.1 ((hopen hU₀).2 n hy.1)
        exact False.elim (Set.disjoint_left.1 hd₀ (hM M le_rfl false)
          (hN₀ n ((le_max_left N₀ N₁).trans (not_lt.1 hn)) M))
    · by_cases hn : n < max N₀ N₁
      · exact .inr (by simpa using hn)
      · cases j
        · exact False.elim (Set.disjoint_left.1 hd₀ hy.1
            (hN₀ n ((le_max_left N₀ N₁).trans (not_lt.1 hn)) l))
        · exact False.elim (Set.disjoint_left.1 hd₁ hy.2
            (hN₁ n ((le_max_right N₀ N₁).trans (not_lt.1 hn)) l))

theorem minimal_hausdorff

TopologyByExample.NonUrysohn.minimal_hausdorff

Every Hausdorff topology coarser than the countable non-Urysohn topology is equal to it.

theorem minimal_hausdorff (t : TopologicalSpace NonUrysohn)
    (ht : instTopologicalSpace ≤ t) (h₂ : @T2Space NonUrysohn t) :
    t = instTopologicalSpace
Proof
:= by
  apply le_antisymm _ ht
  intro O hO
  rw [isOpen_iff_mem_nhds]
  intro x hx
  obtain ⟨U, N, hU, hxU, hsub⟩ :=
    exists_isOpen_subset_union_initialColumns t ht h₂ hO hx
  have hK : @IsCompact NonUrysohn instTopologicalSpace (initialColumns N \ O) :=
    @IsCompact.diff NonUrysohn instTopologicalSpace _ _ (isCompact_initialColumns N) hO
  have hclosed := isClosed_of_isCompact_coarser t ht h₂ hK
  refine mem_of_superset ((hU.sdiff hclosed).mem_nhds ⟨hxU, fun h ↦ h.2 hx⟩) ?_
  intro y hy
  rcases hsub hy.1 with h | h
  · exact h
  · by_contra hnot
    exact hy.2 ⟨h, hnot⟩

On this site: A countable Hausdorff space that is not Urysohn: Minimality of the Hausdorff topology