Lean library · module TopologyByExample.Spaces.DeletedTychonoffCorkscrew

The deleted Tychonoff corkscrew

Source file

Removing the lower ideal point leaves all the integer levels and the upper ideal point. Ordinary points have compact neighbourhoods.

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 Space

TopologyByExample.DeletedTychonoffCorkscrew.Space

The open complement of the lower end of the Tychonoff corkscrew.

abbrev Space
:= ↥({(DoubleJones.Space.neg : TychonoffCorkscrew.Space)}ᶜ : Set _)

On this site: Space: Deleted Tychonoff corkscrew

definition pos

TopologyByExample.DeletedTychonoffCorkscrew.pos

The upper ideal end.

def pos : Space
:= ⟨.pos, by simp⟩

definition chart

TopologyByExample.DeletedTychonoffCorkscrew.chart

Inclusion of an integer level.

noncomputable def chart (n : ℤ) (y : DeletedTychonoffPlank) : Space
:=
  ⟨gluing.chart n y, by simp [DoubleJones.Data.chart]⟩

instance

instance : Nontrivial Space
Proof
:=
  ⟨⟨pos, chart 0 (mkCoe ⊥ (0 : ℕ)), fun h ↦ by cases congrArg Subtype.val h⟩⟩

theorem closedEmbedding_chart

TopologyByExample.DeletedTychonoffCorkscrew.closedEmbedding_chart

Each quadrant remains a closed copy of the deleted plank.

theorem closedEmbedding_chart (n : ℤ) : IsClosedEmbedding (chart n)
Proof
:=
  IsClosedEmbedding.of_comp (g := ((↑) : Space → TychonoffCorkscrew.Space)) .subtypeVal
    (gluing.closedEmbedding_chart n)

On this site: Deleted Tychonoff corkscrew: The closed plank quadrants

theorem openEmbedding_val

TopologyByExample.DeletedTychonoffCorkscrew.openEmbedding_val

private theorem openEmbedding_val : IsOpenEmbedding ((↑) : Space → TychonoffCorkscrew.Space)
Proof
:=
  isOpen_compl_singleton.isOpenEmbedding_subtypeVal

theorem openEmbedding_ordinals

TopologyByExample.DeletedTychonoffCorkscrew.openEmbedding_ordinals

The bottom edge without its endpoint is an open copy of the countable ordinals.

theorem openEmbedding_ordinals : IsOpenEmbedding (chart 0 ∘ fun a ↦ mkCoe a (0 : ℕ))
Proof
:=
  IsOpenEmbedding.of_comp _ openEmbedding_val TychonoffCorkscrew.openEmbedding_ordinals

theorem isOpen_iff

TopologyByExample.DeletedTychonoffCorkscrew.isOpen_iff

Open sets are detected by their traces on all quadrants and the full upper tails.

theorem isOpen_iff {U : Set Space} : IsOpen U ↔
    (∀ n, IsOpen (chart n ⁻¹' U)) ∧ (pos ∈ U → ∃ N : ℤ, ∀ n ≥ N, ∀ y, chart n y ∈ U)
Proof
:= by
  rw [openEmbedding_val.isOpen_iff_image_isOpen, gluing.isOpen_iff]
  have hm (x : Space) : x.val ∈ Subtype.val '' U ↔ x ∈ U := Subtype.val_injective.mem_set_image
  have hn : (DoubleJones.Space.neg : TychonoffCorkscrew.Space) ∉ Subtype.val '' U := by
    rintro ⟨x, _, he⟩
    exact x.property he
  have he (n : ℤ) : gluing.chart n ⁻¹' Subtype.val '' U = chart n ⁻¹' U :=
    Set.ext fun y ↦ hm (chart n y)
  simp only [hn, false_implies, true_and, he]
  exact and_congr_right fun _ ↦ by
    simp_rw [← hm pos, ← hm (chart _ _)]
    rfl

theorem scatteredSpace

TopologyByExample.DeletedTychonoffCorkscrew.scatteredSpace

The deleted corkscrew is scattered.

theorem scatteredSpace : ScatteredSpace Space
Proof
:= by
  let _ := TychonoffCorkscrew.scatteredSpace
  exact ScatteredSpace.of_injective Subtype.val_injective continuous_subtypeVal

On this site: The deleted Tychonoff corkscrew is scattered

theorem not_firstCountableTopology

TopologyByExample.DeletedTychonoffCorkscrew.not_firstCountableTopology

The surviving closed plank obstructs first countability.

theorem not_firstCountableTopology : ¬FirstCountableTopology Space
Proof
:= by
  intro _
  let _ := (closedEmbedding_chart 0).isInducing.firstCountableTopology
  exact DeletedTychonoffPlank.not_sequentialSpace inferInstance

On this site: The deleted Tychonoff corkscrew is not first countable

theorem not_countablyParacompactSpace

TopologyByExample.DeletedTychonoffCorkscrew.not_countablyParacompactSpace

The surviving closed plank obstructs countable paracompactness.

theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace Space
Proof
:= fun _ ↦
  DeletedTychonoffPlank.not_countablyParacompactSpace
    (closedEmbedding_chart 0).countablyParacompactSpace

On this site: The deleted Tychonoff corkscrew is not countably paracompact

theorem not_metacompactSpace

TopologyByExample.DeletedTychonoffCorkscrew.not_metacompactSpace

The surviving closed plank obstructs metacompactness.

theorem not_metacompactSpace : ¬MetacompactSpace Space
Proof
:= fun _ ↦
  DeletedTychonoffPlank.not_metacompactSpace (closedEmbedding_chart 0).metacompactSpace

On this site: The deleted Tychonoff corkscrew is not metacompact

theorem not_countableChainCondition

TopologyByExample.DeletedTychonoffCorkscrew.not_countableChainCondition

The open ordinal subspace obstructs the countable chain condition.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set Space), (∀ U ∈ S, IsOpen U ∧ U.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:=
  not_countableChainCondition_of_isOpenEmbedding openEmbedding_ordinals
    OmegaOne.not_countableChainCondition

On this site: The deleted Tychonoff corkscrew does not satisfy the countable chain condition

theorem cardinality

TopologyByExample.DeletedTychonoffCorkscrew.cardinality

The deleted corkscrew has cardinality aleph one.

theorem cardinality : #Space = aleph 1
Proof
:= by
  apply le_antisymm
  · exact (mk_le_of_injective (f := ((↑) : Space → TychonoffCorkscrew.Space))
      Subtype.val_injective).trans TychonoffCorkscrew.cardinality.le
  · rw [← OrdinalCardinalities.deletedTychonoff]
    exact mk_le_of_injective (closedEmbedding_chart 0).injective

On this site: Deleted Tychonoff corkscrew: Cardinality

theorem exists_compact_mem_nhds_chart

TopologyByExample.DeletedTychonoffCorkscrew.exists_compact_mem_nhds_chart

Every ordinary point of the full corkscrew has a compact neighbourhood.

theorem exists_compact_mem_nhds_chart (n : ℤ) (y : DeletedTychonoffPlank) :
    ∃ K : Set TychonoffCorkscrew.Space, IsCompact K ∧ K ∈ 𝓝 (gluing.chart n y)
Proof
:= by
  obtain ⟨C, hc, hy⟩ := exists_compact_mem_nhds y
  let I := Finset.Icc (n-1) (n+1)
  let O := ⋃ m ∈ I, Raw.layer m '' interior C
  have ho : IsOpen O := isOpen_biUnion fun m _ ↦ Raw.isOpenMap_layer m _ isOpen_interior
  have hf : gluing.chart n y ∈ kernImage gluing.quotient O := by
    rintro (_ | _ | ⟨m,z⟩) hh <;> try contradiction
    obtain ⟨hs, rfl⟩ := DoubleJones.Space.point.inj hh
    exact mem_iUnion₂.mpr ⟨m, Finset.mem_Icc.mpr (gluing.nearby hs.symm),
      mem_image_of_mem _ (mem_interior_iff_mem_nhds.mpr hy)⟩
  refine ⟨⋃ m ∈ I, gluing.chart m '' C, I.isCompact_biUnion (fun m _ ↦
    hc.image (gluing.continuous_chart m)), mem_of_superset
      ((isClosedMap_iff_kernImage.mp gluing.isClosedMap ho).mem_nhds hf) ?_⟩
  intro x hx
  obtain ⟨z, rfl⟩ := gluing.surjective_quotient x
  obtain ⟨m, hm, u, hu, rfl⟩ := mem_iUnion₂.mp (hx (show gluing.quotient z = _ from rfl))
  exact mem_iUnion₂.mpr ⟨m, hm, mem_image_of_mem _ (interior_subset hu)⟩

On this site: Deleted Tychonoff corkscrew: Compact neighbourhoods of ordinary points

theorem clopen_at_chart

TopologyByExample.DeletedTychonoffCorkscrew.clopen_at_chart

private theorem clopen_at_chart (n : ℤ) (y : DeletedTychonoffPlank)
    (z : TychonoffCorkscrew.Space) (hne : gluing.chart n y ≠ z) :
    ∃ V : Set TychonoffCorkscrew.Space, IsClopen V ∧ gluing.chart n y ∈ V ∧ z ∉ V
Proof
:= by
  let x := gluing.chart n y
  obtain ⟨K, hK, hx⟩ := exists_compact_mem_nhds_chart n y
  let _ := TychonoffCorkscrew.scatteredSpace
  let _ : CompactSpace K := isCompact_iff_compactSpace.mp hK
  let O := interior K ∩ {z}ᶜ
  have hO : IsOpen O := isOpen_interior.inter isOpen_compl_singleton
  have hxO : x ∈ O := ⟨mem_interior_iff_mem_nhds.mpr hx, hne⟩
  let xK : K := ⟨x, interior_subset hxO.1⟩
  obtain ⟨V, hV, hxV, hVO⟩ := exists_isClopen_mem_of_isOpen
    (hO.preimage (continuous_subtypeVal (p := (· ∈ K)))) (show xK ∈ _ from hxO)
  let A := ((↑) : K → TychonoffCorkscrew.Space) '' V
  have hAc : IsClosed A := hK.isClosed.isClosedEmbedding_subtypeVal.isClosedMap _ hV.1
  obtain ⟨W, hW, heW⟩ := isOpen_induced_iff.mp hV.2
  have heA : A = W ∩ O := by
    ext p
    constructor
    · rintro ⟨u, hu, rfl⟩
      exact ⟨(show u ∈ Subtype.val ⁻¹' W from heW.symm ▸ hu), hVO hu⟩
    · rintro ⟨hp, hpo⟩
      exact ⟨⟨p, interior_subset hpo.1⟩,
        heW ▸ (show (⟨p, interior_subset hpo.1⟩ : K) ∈ Subtype.val ⁻¹' W from hp), rfl⟩
  refine ⟨A, ⟨hAc, heA ▸ hW.inter hO⟩, ⟨xK, hxV, rfl⟩, ?_⟩
  rw [heA]
  exact fun hh ↦ hh.2.2 rfl

theorem totallySeparatedSpace

TopologyByExample.DeletedTychonoffCorkscrew.totallySeparatedSpace

Clopen sets distinguish any two points after deletion of the lower end.

theorem totallySeparatedSpace : TotallySeparatedSpace Space
Proof
:= by
  apply totallySeparatedSpace_iff_exists_isClopen.mpr
  have hfinite (x z : Space) (hxp : x ≠ pos) (hxz : x ≠ z) :
      ∃ V : Set Space, IsClopen V ∧ x ∈ V ∧ z ∉ V := by
    obtain ⟨w, hw⟩ := gluing.surjective_quotient x.val
    cases w with
    | neg => exact (x.property hw.symm).elim
    | pos => exact (hxp (Subtype.ext hw.symm)).elim
    | layer n y =>
      obtain ⟨A, hA, hx, hz⟩ := clopen_at_chart n y z.val
        (fun hh ↦ hxz (Subtype.ext (hw.symm.trans hh)))
      exact ⟨Subtype.val ⁻¹' A, hA.preimage continuous_subtypeVal,
        (show x.val ∈ A from hw ▸ hx), hz⟩
  intro x z h
  by_cases hxp : x = pos
  · obtain ⟨V, hV, hz, hx⟩ := hfinite z x (hxp ▸ h.symm) h.symm
    exact ⟨Vᶜ, hV.compl, hx, fun hv ↦ hv hz⟩
  · exact hfinite x z hxp h

On this site: The deleted Tychonoff corkscrew is totally separated

theorem not_completelyRegularSpace

TopologyByExample.DeletedTychonoffCorkscrew.not_completelyRegularSpace

A separating function on the surviving end and a closed neighbourhood of the deleted end would extend continuously to both ends.

theorem not_completelyRegularSpace : ¬CompletelyRegularSpace Space
Proof
:= by
  classical
  intro h
  obtain ⟨U, V, hu, hv, hU, hV, hd⟩ := t2_separation
    (show (DoubleJones.Space.neg : TychonoffCorkscrew.Space) ≠ .pos by intro h; cases h)
  obtain ⟨f, hf, hfp, hfo⟩ := h.completely_regular_isOpen pos
    (Subtype.val ⁻¹' V) (hv.preimage continuous_subtypeVal) hV
  let F (x : TychonoffCorkscrew.Space) : unitInterval :=
    if h : x ≠ .neg then f ⟨x, h⟩ else 1
  have hF (x : Space) : F x.val = f x := by
    simp [F, (show x.val ≠ .neg from x.property)]
  have hFU : EqOn F 1 U := by
    intro x hx
    by_cases hn : x = .neg
    · simp [F, hn]
    · exact (hF ⟨x, hn⟩).trans (hfo (show x ∉ V from disjoint_left.mp hd hx))
  have hFD : ContinuousOn F ({DoubleJones.Space.neg}ᶜ : Set TychonoffCorkscrew.Space) := by
    rw [continuousOn_iff_continuous_domRestrict]
    exact hf.congr (fun x ↦ (hF x).symm)
  have hFc : Continuous F := continuous_iff_continuousAt.mpr fun x ↦ by
    by_cases hx : x = .neg
    · exact ((continuousOn_congr hFU).mpr continuousOn_const).continuousAt (hu.mem_nhds (hx ▸ hU))
    · exact hFD.continuousAt (isOpen_compl_singleton.mem_nhds hx)
  have eq := TychonoffCorkscrew.ideal_values_eq hFc
  rw [show F .neg = 1 by simp [F], show F .pos = 0 from (hF pos).trans hfp] at eq
  exact one_ne_zero eq

On this site: The deleted Tychonoff corkscrew is not completely regular

theorem not_pseudocompactSpace

TopologyByExample.DeletedTychonoffCorkscrew.not_pseudocompactSpace

A clopen isolated point in each negative quadrant supports an unbounded continuous real function.

theorem not_pseudocompactSpace : ¬PseudocompactSpace Space
Proof
:= by
  classical
  let p := mkCoe (⊥ : OmegaOne) (0 : ℕ)
  have hpo : IsOpen ({p} : Set DeletedTychonoffPlank) := by
    simpa only [image_singleton, p] using isOpenEmbedding_mkCoe_zero.isOpenMap _
      (SuccOrder.isOpen_singleton_bot (α := OmegaOne))
  have hslot (n : ℤ) : gluing.slot n p = n := by
    simp [DoubleJones.Data.slot, gluing, p, mkCoe]
  let f (x : Space) : ℝ := match x.val with
    | .point k y => if y = p then max (-(k : ℝ)) 0 else 0
    | _ => 0
  have hchart (n : ℤ) (y : DeletedTychonoffPlank) :
      f (chart n y) = if y = p then max (-(n : ℝ)) 0 else 0 := by
    change (if y = p then max (-(gluing.slot n y : ℝ)) 0 else 0) = _
    split_ifs with h
    · simp [h, hslot]
    · rfl
  have hf : Continuous f := by
    apply continuous_def.mpr
    intro A hA
    apply isOpen_iff.mpr
    constructor
    · intro n
      have hc : Continuous (({p} : Set DeletedTychonoffPlank).piecewise
          (fun _ ↦ max (-(n : ℝ)) 0) (fun _ ↦ 0)) :=
        Continuous.piecewise
          (by simp [(show IsClopen {p} from ⟨isClosed_singleton, hpo⟩).frontier_eq])
          continuous_const continuous_const
      exact hA.preimage (hc.congr (fun y ↦ (hchart n y).symm))
    · intro hpos
      refine ⟨0, fun n hn y ↦ ?_⟩
      change f (chart n y) ∈ A
      have hnon : -(n : ℝ) ≤ 0 := neg_nonpos.mpr (by exact_mod_cast hn)
      simpa only [hchart, max_eq_right hnon, ite_self] using (show (0 : ℝ) ∈ A from hpos)
  intro h
  obtain ⟨M, hM⟩ := (h.bddAbove_and_bddBelow_range ⟨f, hf⟩).1
  obtain ⟨m : ℕ, hm⟩ := exists_nat_gt M
  have hb := hM (mem_range_self (chart (-(m : ℤ)) p))
  change f (chart (-(m : ℤ)) p) ≤ M at hb
  simp [hchart] at hb
  linarith

On this site: The deleted Tychonoff corkscrew is not pseudocompact

theorem countablyMetacompactSpace

TopologyByExample.DeletedTychonoffCorkscrew.countablyMetacompactSpace

The closed upper tails exhaust the deleted corkscrew. Each is a closed subspace of the countably metacompact two-ended space.

theorem countablyMetacompactSpace : CountablyMetacompactSpace Space
Proof
:= by
  let B (k : ℕ) := gluing.quotient '' Raw.upper (-(k : ℤ))
  have hB k : IsClosed (B k) := gluing.isClosedMap _ (Raw.isClopen_upper _).1
  have hBn k : (DoubleJones.Space.neg : TychonoffCorkscrew.Space) ∉ B k := by
    rintro ⟨(_ | _ | ⟨_, _⟩), h, he⟩ <;> contradiction
  let C (k : ℕ) := ((↑) : Space → TychonoffCorkscrew.Space) ⁻¹' B k
  apply countablyMetacompactSpace_of_countable_closed_cover C (fun k ↦
    (hB k).preimage continuous_subtypeVal)
  · apply eq_univ_of_forall
    intro x
    obtain ⟨w, hw⟩ := gluing.surjective_quotient x.val
    cases w with
    | neg => exact (x.property hw.symm).elim
    | pos => exact mem_iUnion.mpr ⟨0, Raw.pos, trivial, hw⟩
    | layer n y => exact mem_iUnion.mpr ⟨n.natAbs, Raw.layer n y,
        (show -((n.natAbs : ℕ) : ℤ) ≤ n by omega), hw⟩
  · intro k
    let inclusion := ((↑) : Space → TychonoffCorkscrew.Space) ∘ ((↑) : C k → Space)
    have hr : range inclusion = B k := by
      ext x
      constructor
      · rintro ⟨u, rfl⟩
        exact u.property
      · intro hx
        exact ⟨⟨⟨x, fun he ↦ hBn k (he ▸ hx)⟩, hx⟩, rfl⟩
    have he : IsClosedEmbedding inclusion :=
      ⟨IsEmbedding.subtypeVal.comp IsEmbedding.subtypeVal, hr ▸ hB k⟩
    let _ := TychonoffCorkscrew.countablyMetacompactSpace
    exact he.countablyMetacompactSpace

On this site: The deleted Tychonoff corkscrew is countably metacompact