Lean library · module TopologyByExample.Spaces.NovakSquare

The square of Novak's space is not countably compact

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

theorem extension_mem_principals_iff

TopologyByExample.NovakSpace.extension_mem_principals_iff

A point is principal exactly when its image under the involution is principal.

theorem extension_mem_principals_iff (p : Ultrafilter ℕ) :
    extension p ∈ principals ↔ p ∈ principals
Proof
:= by
  constructor
  · rintro ⟨n, hn⟩
    have he := congrArg extension hn
    rw [extension_pure, extension_involutive] at he
    exact ⟨swap n, he⟩
  · rintro ⟨n, rfl⟩
    rw [extension_pure]
    exact mem_range_self _

definition graph

TopologyByExample.NovakSpace.graph

The involution graph restricted to the square.

def graph : Set (Carrier × Carrier)
:= {z | extension z.1.val = z.2.val}

theorem isClosed_graph

TopologyByExample.NovakSpace.isClosed_graph

The restricted graph is closed.

theorem isClosed_graph : IsClosed graph
Proof
:=
  isClosed_eq (continuous_extension.comp (continuous_subtypeVal.comp continuous_fst))
    (continuous_subtypeVal.comp continuous_snd)

theorem image_graph

TopologyByExample.NovakSpace.image_graph

The first coordinates on the restricted graph are precisely the principal ultrafilters.

theorem image_graph : (fun z : Carrier × Carrier ↦ z.1.val) '' graph = principals
Proof
:= by
  apply Subset.antisymm
  · rintro p ⟨⟨x, y⟩, hxy, rfl⟩
    change extension x.val = y.val at hxy
    rcases x.property with hx | hx
    · exact hx
    · rcases y.property with hy | hy
      · exact (extension_mem_principals_iff x.val).mp (hxy ▸ hy)
      · exact False.elim (disjoint_left.mp selected_disjoint_image hy ⟨x.val, hx, hxy⟩)
  · rintro p ⟨n, rfl⟩
    refine ⟨(⟨pure n, Or.inl (mem_range_self n)⟩,
      ⟨pure (swap n), Or.inl (mem_range_self (swap n))⟩), ?_, rfl⟩
    exact extension_pure n

theorem not_countablyCompactSpace_square

TopologyByExample.NovakSpace.not_countablyCompactSpace_square

Novak's square is not countably compact.

theorem not_countablyCompactSpace_square : ¬CountablyCompactSpace (Carrier × Carrier)
Proof
:= by
  intro h
  let := h
  have hp : IsCountablyCompact principals := by
    rw [← image_graph]
    exact isClosed_graph.isCountablyCompact.image
      (continuous_subtypeVal.comp continuous_fst)
  have hn : IsCountablyCompact (univ : Set ℕ) := by
    apply isDenseEmbedding_pure.isEmbedding.isCountablyCompact_iff.mpr
    simpa only [principals, image_univ] using hp
  exact DiscreteNat.not_countablyCompactSpace (isCountablyCompact_univ_iff.mp hn)

On this site: Novak space: The square is not countably compact