Lean library · module TopologyByExample.Spaces.MisraLimitClosedStages

Closed stages in the all-pairs Misra limit

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 isClosedEmbedding_advance

TopologyByExample.MisraAllPairs.isClosedEmbedding_advance

Each composite of finite-stage bonding maps is a closed embedding.

theorem isClosedEmbedding_advance {n m : ℕ} (h : n ≤ m) :
    IsClosedEmbedding (advance h)
Proof
:= by
  induction m, h using Nat.le_induction with
  | base =>
    have he : advance (le_refl n) = (id : Stage n → Stage n) := funext (advance_self n)
    rw [he]
    exact IsClosedEmbedding.id
  | succ m h ih =>
    have he : advance (h.trans (Nat.le_succ m)) = step m ∘ advance h :=
      funext (advance_succ h)
    rw [he]
    exact (isClosedEmbedding_step m).comp ih

theorem preimage_range_toLimit_of_le

TopologyByExample.MisraAllPairs.preimage_range_toLimit_of_le

A stage's image meets a later stage in exactly its finite bonding image.

theorem preimage_range_toLimit_of_le {n m : ℕ} (h : n ≤ m) :
    toLimit m ⁻¹' range (toLimit n) = range (advance h)
Proof
:= by
  ext x
  constructor
  · rintro ⟨y, hy⟩
    refine ⟨y, (toLimit_injective m) ?_⟩
    exact (toLimit_advance h y).trans hy
  · rintro ⟨y, rfl⟩
    exact ⟨y, (toLimit_advance h y).symm⟩

theorem preimage_range_toLimit_of_ge

TopologyByExample.MisraAllPairs.preimage_range_toLimit_of_ge

Every earlier stage lies in the image of a later stage.

theorem preimage_range_toLimit_of_ge {n m : ℕ} (h : m ≤ n) :
    toLimit m ⁻¹' range (toLimit n) = univ
Proof
:= by
  apply eq_univ_of_forall
  intro x
  exact ⟨advance h x, toLimit_advance h x⟩

theorem isClosed_range_toLimit

TopologyByExample.MisraAllPairs.isClosed_range_toLimit

Every finite stage has closed image in the limit.

theorem isClosed_range_toLimit (n : ℕ) : IsClosed (range (toLimit n))
Proof
:= by
  apply (isQuotientMap_quot_mk (r := Rel)).isClosed_preimage.mp
  apply isClosed_sigma_iff.2
  intro m
  change IsClosed (toLimit m ⁻¹' range (toLimit n))
  rcases le_total n m with h | h
  · rw [preimage_range_toLimit_of_le h]
    exact (isClosedEmbedding_advance h).isClosed_range
  · rw [preimage_range_toLimit_of_ge h]
    exact isClosed_univ

theorem isClosedEmbedding_toLimit

TopologyByExample.MisraAllPairs.isClosedEmbedding_toLimit

Each finite stage is a closed subspace of the limit.

theorem isClosedEmbedding_toLimit (n : ℕ) : IsClosedEmbedding (toLimit n)
Proof
:=
  ⟨isEmbedding_toLimit n, isClosed_range_toLimit n⟩

On this site: The all-pairs Misra limit: Closed finite-stage embeddings

theorem not_countablyParacompactSpace

TopologyByExample.MisraAllPairs.not_countablyParacompactSpace

The closed initial E₀ obstructs countable paracompactness of the limit.

theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace Limit
Proof
:= by
  intro h
  let := h
  exact MisraE0.not_countablyParacompactSpace
    (isClosedEmbedding_toLimit 0).countablyParacompactSpace

On this site: The all-pairs Misra limit is not countably paracompact

theorem exists_new_mem

TopologyByExample.MisraAllPairs.exists_new_mem

Every neighbourhood of an old point in an all-pairs attachment meets a fresh cell.

theorem exists_new_mem {X : Type*} [TopologicalSpace X] (x : X)
    {U : Set (Space (allPairs (X := X)))} (hU : IsOpen U) (hx : base allPairs x ∈ U) :
    ∃ z ∈ U, z ∉ range (base (allPairs (X := X)))
Proof
:= by
  have hV := hU.preimage (continuous_copy allPairs (x, x))
  have ha : MisraE0.apex false ∈ copy allPairs (x, x) ⁻¹' U := by
    change copy allPairs (x, x) (MisraE0.apex false) ∈ U
    simpa only [copy_apex, allPairs, Bool.false_eq_true, ite_false] using hx
  obtain ⟨δ, hδ⟩ := hV.2 false ha
  obtain ⟨α, hα⟩ := exists_gt δ
  obtain ⟨β, hβ, _⟩ := (hδ α hα).exists_mem_inter (hδ α hα)
  refine ⟨copy allPairs (x, x) (MisraE0.cell false α β), hβ, ?_⟩
  rintro ⟨a, ha⟩
  have he := congrArg (oldLabel allPairs) ha
  change (some a : Option X) = none at he
  contradiction

theorem interior_range_toLimit

TopologyByExample.MisraAllPairs.interior_range_toLimit

Every finite stage has empty interior in the limit.

theorem interior_range_toLimit (n : ℕ) : interior (range (toLimit n)) = ∅
Proof
:= by
  apply eq_empty_iff_forall_notMem.2
  intro z hz
  obtain ⟨x, rfl⟩ := interior_subset hz
  let U : Set (Stage (n + 1)) := toLimit (n + 1) ⁻¹' interior (range (toLimit n))
  have hU : IsOpen U := isOpen_interior.preimage (continuous_toLimit (n + 1))
  have hx : step n x ∈ U := by
    change toLimit (n + 1) (step n x) ∈ interior (range (toLimit n))
    rwa [← toLimit_step]
  obtain ⟨y, hy, hnew⟩ := exists_new_mem x hU hx
  apply hnew
  have hr : y ∈ toLimit (n + 1) ⁻¹' range (toLimit n) := by
    change toLimit (n + 1) y ∈ range (toLimit n)
    exact interior_subset (show toLimit (n + 1) y ∈ interior (range (toLimit n)) from hy)
  rw [preimage_range_toLimit_of_le (Nat.le_succ n)] at hr
  obtain ⟨a, ha⟩ := hr
  refine ⟨a, ?_⟩
  have he : advance (Nat.le_succ n) a = step n a := by
    rw [advance_succ (le_refl n), advance_self]
  exact he.symm.trans ha

theorem isNowhereDense_range_toLimit

TopologyByExample.MisraAllPairs.isNowhereDense_range_toLimit

Each finite stage is nowhere dense in the limit.

theorem isNowhereDense_range_toLimit (n : ℕ) : IsNowhereDense (range (toLimit n))
Proof
:= by
  change interior (closure (range (toLimit n))) = ∅
  rw [(isClosed_range_toLimit n).closure_eq]
  exact interior_range_toLimit n

On this site: The all-pairs Misra limit: Nowhere dense finite stages

theorem iUnion_range_toLimit

TopologyByExample.MisraAllPairs.iUnion_range_toLimit

The finite-stage images cover the limit.

theorem iUnion_range_toLimit : ⋃ n, range (toLimit n) = (univ : Set Limit)
Proof
:= by
  apply eq_univ_of_forall
  intro z
  induction z using Quot.inductionOn with
  | h p => exact mem_iUnion.2 ⟨p.1, p.2, rfl⟩

theorem isMeagre_univ

TopologyByExample.MisraAllPairs.isMeagre_univ

The all-pairs limit is meagre, being a countable union of closed nowhere dense stages.

theorem isMeagre_univ : IsMeagre (univ : Set Limit)
Proof
:= by
  rw [← iUnion_range_toLimit]
  exact isMeagre_iUnion (fun n ↦ (isNowhereDense_range_toLimit n).isMeagre)

On this site: The all-pairs Misra limit is not of second category