Lean library · module TopologyByExample.Spaces.MisraLimitMetacompactness

Metacompactness of the all-pairs 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

definition Birth

TopologyByExample.MisraAllPairs.Birth

Indices for neighbourhood pieces born at a given stage.

def Birth : ℕ → Type
  | 0 => MisraE0
  | n + 1 => (Stage n × Stage n) × MisraE0

definition birthPoint

TopologyByExample.MisraAllPairs.birthPoint

The point associated with a birth index.

def birthPoint : (n : ℕ) → Birth n → Stage n
  | 0 => id
  | _n + 1 => fun p ↦ copy allPairs p.1 p.2

definition birthPiece

TopologyByExample.MisraAllPairs.birthPiece

Fixed neighbourhood pieces, omitting the apex pieces at positive birth stages.

noncomputable def birthPiece : (n : ℕ) → Birth n → Set (Stage n)
  | 0 => MisraE0.coverPart (fun _ ↦ univ)
  | n + 1 => fun p ↦ (freshPatch (allPairs (X := Stage n)) (fun _ _ ↦ univ) p.1 p.2).set

theorem isOpen_birthPiece

TopologyByExample.MisraAllPairs.isOpen_birthPiece

Every birth piece is open in its stage.

theorem isOpen_birthPiece (n : ℕ) (i : Birth n) : IsOpen (birthPiece n i)
Proof
:= by
  cases n with
  | zero =>
    cases i with
    | apex s => exact isOpen_univ
    | row α => exact isOpen_univ.inter (MisraE0.isOpen_rowNhd α)
    | cell s α β => exact MisraE0.isOpen_singleton_cell s α β
  | succ n => exact isOpen_freshPatch allPairs _ (fun _ _ ↦ isOpen_univ) i.1 i.2

theorem finite_birthPiece_support

TopologyByExample.MisraAllPairs.finite_birthPiece_support

Birth pieces form a point-finite indexed family at each stage.

theorem finite_birthPiece_support (n : ℕ) (x : Stage n) :
    {i | x ∈ birthPiece n i}.Finite
Proof
:= by
  cases n with
  | zero => exact MisraE0.finite_coverPart_support _ x
  | succ n => exact finite_freshPatch_support allPairs _ x

theorem step_notMem_birthPiece

TopologyByExample.MisraAllPairs.step_notMem_birthPiece

Positive-stage birth pieces contain no point of the preceding stage.

theorem step_notMem_birthPiece (n : ℕ) (i : Birth (n + 1)) (x : Stage n) :
    step n x ∉ birthPiece (n + 1) i
Proof
:= notMem_empty x

theorem notMem_limitSet_of_old_trace_empty

TopologyByExample.MisraAllPairs.notMem_limitSet_of_old_trace_empty

A subset avoiding the preceding stage has a limit extension avoiding all earlier stages.

theorem notMem_limitSet_of_old_trace_empty {n m : ℕ} (h : m ≤ n)
    {U : Set (Stage (n + 1))} (hU : ∀ x, step n x ∉ U) (x : Stage m) :
    toLimit m x ∉ limitSet (n + 1) U
Proof
:= by
  intro hx
  have he : toLimit (n + 1) (step n (advance h x)) = toLimit m x :=
    (toLimit_step n (advance h x)).symm.trans (toLimit_advance h x)
  have hm : step n (advance h x) ∈ toLimit (n + 1) ⁻¹' limitSet (n + 1) U := by
    change toLimit (n + 1) (step n (advance h x)) ∈ limitSet (n + 1) U
    rwa [he]
  rw [preimage_limitSet_self] at hm
  exact hU _ hm

theorem notMem_later_birthPiece

TopologyByExample.MisraAllPairs.notMem_later_birthPiece

A point represented at stage m belongs to no extension born after m.

theorem notMem_later_birthPiece {m n : ℕ} (h : m < n) (i : Birth n) (x : Stage m) :
    toLimit m x ∉ limitSet n (birthPiece n i)
Proof
:= by
  cases n with
  | zero => omega
  | succ n =>
    exact notMem_limitSet_of_old_trace_empty (n := n) (m := m) (by omega)
      (step_notMem_birthPiece n i) x

theorem finite_all_birth_support

TopologyByExample.MisraAllPairs.finite_all_birth_support

All extended birth families together are point finite in the limit.

theorem finite_all_birth_support (z : Limit) :
    {p : Σ n, Birth n | z ∈ limitSet p.1 (birthPiece p.1 p.2)}.Finite
Proof
:= by
  obtain ⟨⟨m, x⟩, hx⟩ := Quot.exists_rep z
  change toLimit m x = z at hx
  have hf (n : ℕ) : {i | z ∈ limitSet n (birthPiece n i)}.Finite :=
    finite_limitSet_support n (birthPiece n) (finite_birthPiece_support n) z
  apply ((finite_Iic m).biUnion (fun n _ ↦ (hf n).image (Sigma.mk n))).subset
  rintro ⟨n, i⟩ hi
  have hn : n ≤ m := by
    by_contra hn
    exact notMem_later_birthPiece (Nat.lt_of_not_ge hn) i x (hx.symm ▸ hi)
  exact mem_iUnion₂.2 ⟨n, hn, ⟨i, hi, rfl⟩⟩

theorem exists_birth_centre

TopologyByExample.MisraAllPairs.exists_birth_centre

Every limit point is the centre of a birth piece containing it.

theorem exists_birth_centre (z : Limit) :
    ∃ n, ∃ i : Birth n, toLimit n (birthPoint n i) = z ∧ birthPoint n i ∈ birthPiece n i
Proof
:= by
  have hs (n : ℕ) (x : Stage n) :
      ∃ k, ∃ i : Birth k, toLimit k (birthPoint k i) = toLimit n x ∧
        birthPoint k i ∈ birthPiece k i := by
    induction n with
    | zero =>
      refine ⟨0, x, rfl, ?_⟩
      cases x with
      | apex s => exact mem_univ _
      | row α =>
        refine ⟨mem_univ _, ?_⟩
        change MisraE0.row α ∈ MisraE0.rowNhd α
        simp [MisraE0.rowNhd]
      | cell s α β => exact mem_singleton _
    | succ n ih =>
      rcases base_or_new allPairs x with ⟨y, rfl⟩ | ⟨i, y, hy, rfl⟩
      · obtain ⟨k, i, hi, hmem⟩ := ih y
        exact ⟨k, i, hi.trans (toLimit_step n y), hmem⟩
      · refine ⟨n + 1, (i, y), rfl, ?_⟩
        change copy allPairs i y ∈ (freshPatch allPairs (fun _ _ ↦ univ) i y).set
        classical
        simpa [freshPatch, singlePatch] using mem_freshPart (fun _ ↦ univ) (fun _ ↦ mem_univ _) y hy
  induction z using Quot.inductionOn with
  | h p => exact hs p.1 p.2

instance

The fixed birth pieces yield point-finite refinements of arbitrary open covers.

instance : MetacompactSpace Limit
Proof
:= by
  classical
  refine ⟨fun U hUo hU ↦ ?_⟩
  have hcover (z : Limit) : ∃ u ∈ U, z ∈ u := mem_sUnion.1 (hU ▸ mem_univ z)
  choose u hu hzu using hcover
  let F (p : Σ n, Birth n) : Set Limit :=
    limitSet p.1 (birthPiece p.1 p.2) ∩ u (toLimit p.1 (birthPoint p.1 p.2))
  refine ⟨range F, ?_, ?_, ?_, ?_⟩
  · rintro _ ⟨p, rfl⟩
    exact (isOpen_limitSet p.1 (isOpen_birthPiece p.1 p.2)).inter (hUo _ (hu _))
  · apply eq_univ_of_forall
    intro z
    obtain ⟨n, i, hi, hmem⟩ := exists_birth_centre z
    refine mem_sUnion.2 ⟨F ⟨n, i⟩, mem_range_self _, ?_⟩
    change z ∈ limitSet n (birthPiece n i) ∩ u (toLimit n (birthPoint n i))
    rw [← hi]
    refine ⟨?_, hzu _⟩
    change birthPoint n i ∈ toLimit n ⁻¹' limitSet n (birthPiece n i)
    exact (preimage_limitSet_self n (birthPiece n i)).symm ▸ hmem
  · intro z
    apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply ((finite_all_birth_support z).image F).subset
    rintro _ ⟨⟨V, ⟨p, rfl⟩⟩, hz, rfl⟩
    exact ⟨p, hz.1, rfl⟩
  · rintro _ ⟨p, rfl⟩
    exact ⟨u _, hu _, inter_subset_right⟩