Lean library · module TopologyByExample.Spaces.MisraSubspace

Misra's deleted-sheet subspace

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 keep

TopologyByExample.MisraE0.keep

Keep one apex, its sheet of cells, and all row points.

def MisraE0.keep : MisraE0 → Prop
  | .apex s => s = false
  | .row _ => True
  | .cell s _ _ => s = false

theorem isClosed_keep

TopologyByExample.MisraE0.isClosed_keep

The retained points form a closed subset of E₀.

theorem MisraE0.isClosed_keep : IsClosed {x : MisraE0 | x.keep}
Proof
:= by
  have heq : {x : MisraE0 | x.keep}ᶜ = MisraE0.apexPart true univ := by
    ext x
    cases x with
    | apex s => cases s <;> simp [MisraE0.keep, MisraE0.apexPart]
    | row α => simp [MisraE0.keep, MisraE0.apexPart]
    | cell s α β => cases s <;> simp [MisraE0.keep, MisraE0.apexPart]
  apply isOpen_compl_iff.1
  rw [heq]
  exact MisraE0.isOpen_apexPart isOpen_univ (mem_univ _)

definition MisraSubspace

TopologyByExample.MisraSubspace

The subspace obtained by deleting the second apex and its sheet of cells.

def MisraSubspace
:= {x : MisraE0 // x.keep}

On this site: Space: Misra’s Urysohn subspace

instance

instance : TopologicalSpace MisraSubspace
Proof
:= inferInstanceAs (TopologicalSpace (Subtype _))

instance

instance : T2Space MisraSubspace
Proof
:= inferInstanceAs (T2Space (Subtype _))

instance

instance : PSpace MisraSubspace
Proof
:= PSpace.of_isInducing
  (f := (Subtype.val : MisraSubspace → MisraE0)) ⟨rfl⟩

instance

instance : Nonempty MisraSubspace
Proof
:= ⟨⟨MisraE0.apex false, rfl⟩⟩

theorem ne_apex_of_ne

TopologyByExample.MisraSubspace.ne_apex_of_ne

At most one point of the subspace is an apex.

theorem ne_apex_of_ne {x y : MisraSubspace} (hxy : x ≠ y) :
    (∀ s, x.val ≠ MisraE0.apex s) ∨ (∀ s, y.val ≠ MisraE0.apex s)
Proof
:= by
  classical
  by_cases hx : ∀ s, x.val ≠ MisraE0.apex s
  · exact Or.inl hx
  · right
    push Not at hx
    obtain ⟨s, hs⟩ := hx
    have hsfalse : s = false := by simpa only [hs, MisraE0.keep] using x.property
    intro t ht
    have htfalse : t = false := by simpa only [ht, MisraE0.keep] using y.property
    exact hxy (Subtype.ext (hs.trans ((congrArg MisraE0.apex
      (hsfalse.trans htfalse.symm)).trans ht.symm)))

theorem exists_clopen_separating

TopologyByExample.MisraSubspace.exists_clopen_separating

A non-apex point can be separated from any distinct point by a clopen set.

theorem exists_clopen_separating {x y : MisraSubspace} (hxy : x ≠ y)
    (hx : ∀ s, x.val ≠ MisraE0.apex s) :
    ∃ V : Set MisraSubspace, IsClopen V ∧ x ∈ V ∧ y ∉ V
Proof
:= by
  obtain ⟨U, hU, hxU, hsub⟩ := MisraE0.exists_isClopen_subset_of_ne_apex hx
    (isClosed_singleton.isOpen_compl : IsOpen ({y.val}ᶜ : Set MisraE0))
    (show x.val ∈ ({y.val}ᶜ : Set MisraE0) from fun h ↦ hxy (Subtype.ext h))
  exact ⟨Subtype.val ⁻¹' U, hU.preimage continuous_subtypeVal, hxU,
    fun hyU ↦ hsub hyU rfl⟩

instance

instance : T25Space MisraSubspace
Proof
where
  t2_5 x y hxy := by
    have hsep : ∃ V : Set MisraSubspace, IsClopen V ∧ x ∈ V ∧ y ∉ V := by
      rcases ne_apex_of_ne hxy with hx | hy
      · exact exists_clopen_separating hxy hx
      · obtain ⟨V, hV, hyV, hxV⟩ := exists_clopen_separating hxy.symm hy
        exact ⟨Vᶜ, hV.compl, hxV, by simpa using hyV⟩
    obtain ⟨V, hV, hxV, hyV⟩ := hsep
    apply ((𝓝 x).basis_sets.lift'_closure.disjoint_iff (𝓝 y).basis_sets.lift'_closure).2
    refine ⟨V, hV.isOpen.mem_nhds hxV, Vᶜ, hV.isClosed.isOpen_compl.mem_nhds hyV, ?_⟩
    change Disjoint (closure V) (closure Vᶜ)
    rw [hV.isClosed.closure_eq, hV.isOpen.isClosed_compl.closure_eq]
    exact disjoint_compl_right

instance

Clopen sets separate every two distinct retained points.

instance : TotallySeparatedSpace MisraSubspace
Proof
:= by
  apply totallySeparatedSpace_iff_exists_isClopen.2
  intro x y hxy
  rcases ne_apex_of_ne hxy with hx | hy
  · exact exists_clopen_separating hxy hx
  · obtain ⟨V, hV, hyV, hxV⟩ := exists_clopen_separating hxy.symm hy
    exact ⟨Vᶜ, hV.compl, hxV, by simpa using hyV⟩

definition apex

TopologyByExample.MisraSubspace.apex

The retained apex.

def apex : MisraSubspace
:= ⟨MisraE0.apex false, rfl⟩

definition row

TopologyByExample.MisraSubspace.row

A retained row point.

def row (α : OmegaOne) : MisraSubspace
:= ⟨MisraE0.row α, trivial⟩

definition cell

TopologyByExample.MisraSubspace.cell

A retained isolated cell.

def cell (α β : OmegaOne) : MisraSubspace
:= ⟨MisraE0.cell false α β, rfl⟩

theorem row_mem_closure_preimage

TopologyByExample.MisraSubspace.row_mem_closure_preimage

A row-large ambient set accumulates at the row point even after deleting the other sheet.

theorem row_mem_closure_preimage {U : Set MisraE0} {α : OmegaOne}
    (hU : MisraE0.RowLarge U false α) :
    row α ∈ closure ((Subtype.val : MisraSubspace → MisraE0) ⁻¹' U)
Proof
:= by
  apply mem_closure_iff.2
  intro V hV hαV
  obtain ⟨W, hW, rfl⟩ := isOpen_induced_iff.1 hV
  have hrow : MisraE0.row α ∈ W := hαV
  obtain ⟨β, hβU, hβW⟩ := hU.exists_mem_inter (hW.1 α hrow false)
  exact ⟨cell α β, hβW, hβU⟩

theorem row_mem_interior_closure_preimage

TopologyByExample.MisraSubspace.row_mem_interior_closure_preimage

A row-large set has the corresponding row point in the interior of its relative closure.

theorem row_mem_interior_closure_preimage {U : Set MisraE0} {α : OmegaOne}
    (hU : MisraE0.RowLarge U false α) :
    row α ∈ interior (closure ((Subtype.val : MisraSubspace → MisraE0) ⁻¹' U))
Proof
:= by
  let C : Set OmegaOne := {β | MisraE0.cell false α β ∉ U}
  let V : Set MisraSubspace := Subtype.val ⁻¹' MisraE0.rowTail α C
  have hV : IsOpen V := (MisraE0.isOpen_rowTail α hU).preimage continuous_subtypeVal
  apply mem_interior_iff_mem_nhds.2
  refine Filter.mem_of_superset (hV.mem_nhds ?_) ?_
  · change MisraE0.row α ∈ MisraE0.rowTail α C
    simp [MisraE0.rowTail]
  · intro x hx
    obtain ⟨x, hxkeep⟩ := x
    cases x with
    | apex s =>
      change MisraE0.apex s ∈ MisraE0.rowTail α C at hx
      simp [MisraE0.rowTail] at hx
    | row γ =>
      change MisraE0.row γ ∈ MisraE0.rowTail α C at hx
      have hγα : γ = α := by simpa [V, MisraE0.rowTail] using hx
      subst γ
      exact row_mem_closure_preimage hU
    | cell s γ β =>
      change MisraE0.cell s γ β ∈ MisraE0.rowTail α C at hx
      have hs : s = false := hxkeep
      subst s
      have hcell : γ = α ∧ β ∉ C := by
        simpa [V, MisraE0.rowTail, and_comm] using hx
      obtain ⟨rfl, hβ⟩ := hcell
      apply subset_closure
      change MisraE0.cell false γ β ∈ U
      simpa only [C, mem_ofPred_eq, not_not] using hβ

theorem exists_tail_rows_interior_closure

TopologyByExample.MisraSubspace.exists_tail_rows_interior_closure

Every apex neighbourhood has high row points in the interior of its closure.

theorem exists_tail_rows_interior_closure {V : Set MisraSubspace}
    (hV : IsOpen V) (haV : apex ∈ V) :
    ∃ δ : OmegaOne, ∀ α, δ < α → row α ∈ interior (closure V)
Proof
:= by
  obtain ⟨U, hU, rfl⟩ := isOpen_induced_iff.1 hV
  have haU : MisraE0.apex false ∈ U := haV
  obtain ⟨δ, hδ⟩ := hU.2 false haU
  exact ⟨δ, fun α hα ↦ row_mem_interior_closure_preimage (hδ α hα)⟩

theorem not_semiregularSpace

TopologyByExample.MisraSubspace.not_semiregularSpace

The deleted-sheet subspace is not semiregular.

theorem not_semiregularSpace : ¬SemiregularSpace MisraSubspace
Proof
:= by
  intro h
  let U : Set MisraSubspace := Subtype.val ⁻¹' MisraE0.apexPart false univ
  have hU : IsOpen U :=
    (MisraE0.isOpen_apexPart isOpen_univ (mem_univ _)).preimage continuous_subtypeVal
  have haU : apex ∈ U := rfl
  obtain ⟨V, hV, haV, hVU⟩ :=
    (semiregularSpace_iff_isRegularOpen.1 h).exists_subset_of_mem_open haU hU
  obtain ⟨δ, hδ⟩ := exists_tail_rows_interior_closure hV.isOpen haV
  obtain ⟨α, hα⟩ := exists_gt δ
  have hr : row α ∈ V := hV ▸ hδ α hα
  exact hVU hr

On this site: Misra’s Urysohn subspace is not semiregular