Lean library · module TopologyByExample.Theorems.CountableT1Metacompact

Metacompactness of countable T₁ spaces

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 metacompactSpace_of_countable_of_t1Space

TopologyByExample.metacompactSpace_of_countable_of_t1Space

Every countable T₁ space is metacompact.

theorem metacompactSpace_of_countable_of_t1Space {X : Type*} [TopologicalSpace X]
    [Countable X] [T1Space X] : MetacompactSpace X
Proof
:= by
  classical
  obtain ⟨f, hf⟩ := Countable.exists_injective_nat X
  refine ⟨fun U hUo hU ↦ ?_⟩
  have hcover (x : X) : ∃ u ∈ U, x ∈ u := mem_sUnion.1 (hU ▸ mem_univ x)
  choose u hu hxu using hcover
  let v (x : X) : Set X := u x \ f ⁻¹' Iio (f x)
  refine ⟨range v, ?_, ?_, ?_, ?_⟩
  · rintro _ ⟨x, rfl⟩
    exact (hUo _ (hu x)).sdiff (((finite_Iio (f x)).preimage hf.injOn).isClosed)
  · refine eq_univ_of_forall fun x ↦ ?_
    exact mem_sUnion.2 ⟨v x, mem_range_self x, hxu x, lt_irrefl (f x)⟩
  · intro x
    apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply (((finite_Iic (f x)).preimage hf.injOn).image v).subset
    rintro _ ⟨⟨w, ⟨y, rfl⟩⟩, hx, rfl⟩
    exact ⟨y, (show f y ≤ f x from le_of_not_gt hx.2), rfl⟩
  · rintro _ ⟨x, rfl⟩
    exact ⟨u x, hu x, sdiff_subset⟩

On this site: Theorem: Countable T₁ spaces are metacompact