Lean library · module TopologyByExample.Theorems.Metacompactness

Metacompactness

Source file

Metacompactness and countable metacompactness are defined without separation assumptions, using point-finite open refinements of covers.

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

class MetacompactSpace

TopologyByExample.MetacompactSpace

Every open cover admits a point-finite open refinement.

@[mk_iff]
class MetacompactSpace (X : Type*) [TopologicalSpace X] : Prop where
  /-- A point-finite open refinement of an arbitrary open cover. -/
  pointFinite_refinement : ∀ U : Set (Set X), (∀ u ∈ U, IsOpen u) →
    ⋃₀ U = univ → ∃ V : Set (Set X), (∀ v ∈ V, IsOpen v) ∧ ⋃₀ V = univ ∧
      (∀ x, {v : V | x ∈ (v : Set X)}.Finite) ∧ ∀ v ∈ V, ∃ u ∈ U, v ⊆ u

class CountablyMetacompactSpace

TopologyByExample.CountablyMetacompactSpace

Every countable open cover admits a point-finite open refinement.

@[mk_iff]
class CountablyMetacompactSpace (X : Type*) [TopologicalSpace X] : Prop where
  /-- A point-finite open refinement of a countable open cover. -/
  pointFinite_refinement : ∀ U : Set (Set X), U.Countable → (∀ u ∈ U, IsOpen u) →
    ⋃₀ U = univ → ∃ V : Set (Set X), (∀ v ∈ V, IsOpen v) ∧ ⋃₀ V = univ ∧
      (∀ x, {v : V | x ∈ (v : Set X)}.Finite) ∧ ∀ v ∈ V, ∃ u ∈ U, v ⊆ u
variable {X : Type*} [TopologicalSpace X]

instance metacompactSpace_of_paracompactSpace

TopologyByExample.metacompactSpace_of_paracompactSpace

Locally finite refinements are point finite.

instance (priority := 100) metacompactSpace_of_paracompactSpace [ParacompactSpace X] :
    MetacompactSpace X
Proof
:= by
  refine ⟨fun U hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := paracompactSpace_iff_sets.1 ‹_› U hUo hU
  exact ⟨V, hVo, hV, hVf.point_finite, hVU⟩

instance countablyMetacompactSpace_of_metacompactSpace

TopologyByExample.countablyMetacompactSpace_of_metacompactSpace

Metacompactness applies in particular to countable covers.

instance (priority := 100) countablyMetacompactSpace_of_metacompactSpace [MetacompactSpace X] :
    CountablyMetacompactSpace X
Proof
:=
  ⟨fun U _ ↦ MetacompactSpace.pointFinite_refinement U⟩

instance countablyMetacompactSpace_of_countablyParacompactSpace

TopologyByExample.countablyMetacompactSpace_of_countablyParacompactSpace

Countable paracompactness implies countable metacompactness.

instance (priority := 100) countablyMetacompactSpace_of_countablyParacompactSpace
    [CountablyParacompactSpace X] : CountablyMetacompactSpace X
Proof
:= by
  refine ⟨fun U hUc hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ :=
    CountablyParacompactSpace.locallyFinite_refinement U hUc hUo hU
  exact ⟨V, hVo, hV, hVf.point_finite, hVU⟩

theorem metacompactSpace_of_lindelofSpace_of_countablyMetacompactSpace

TopologyByExample.metacompactSpace_of_lindelofSpace_of_countablyMetacompactSpace

On a Lindelöf space it suffices to refine countable covers.

theorem metacompactSpace_of_lindelofSpace_of_countablyMetacompactSpace [LindelofSpace X]
    [CountablyMetacompactSpace X] : MetacompactSpace X
Proof
:= by
  refine ⟨fun U hUo hU ↦ ?_⟩
  obtain ⟨c, hcU, hcc, hc⟩ := (isLindelof_univ (X := X)).elim_countable_subcover_image (c := id)
    hUo (by simp only [id, ← sUnion_eq_biUnion, hU, subset_univ])
  simp only [id] at hc
  obtain ⟨V, hVo, hV, hVf, hVc⟩ := CountablyMetacompactSpace.pointFinite_refinement c hcc
    (fun u hu ↦ hUo u (hcU hu)) (by rw [sUnion_eq_biUnion]; exact univ_subset_iff.1 hc)
  exact ⟨V, hVo, hV, hVf, fun v hv ↦
    let ⟨u, hu, hvu⟩ := hVc v hv
    ⟨u, hcU hu, hvu⟩⟩

On this site: Theorem: Lindelöf and Countably metacompact implies metacompact

theorem countable_nonempty_of_pointFinite

TopologyByExample.countable_nonempty_of_pointFinite

A point-finite family of nonempty open sets in a separable space is countable.

theorem countable_nonempty_of_pointFinite [TopologicalSpace.SeparableSpace X]
    {ι : Type*} {V : ι → Set X} (hVo : ∀ i, IsOpen (V i))
    (hVf : ∀ x, {i | x ∈ V i}.Finite) : {i | (V i).Nonempty}.Countable
Proof
:= by
  obtain ⟨D, hDc, hDd⟩ := TopologicalSpace.exists_countable_dense X
  refine (hDc.biUnion fun x _ ↦ (hVf x).countable).mono fun i hi ↦ ?_
  obtain ⟨x, hxi, hxD⟩ := hDd.inter_open_nonempty (V i) (hVo i) hi
  exact mem_iUnion₂.2 ⟨x, hxD, hxi⟩

theorem lindelofSpace_of_separableSpace_of_metacompactSpace

TopologyByExample.lindelofSpace_of_separableSpace_of_metacompactSpace

Every separable metacompact space is Lindelöf.

theorem lindelofSpace_of_separableSpace_of_metacompactSpace
    [TopologicalSpace.SeparableSpace X] [MetacompactSpace X] : LindelofSpace X
Proof
:= by
  classical
  refine ⟨isLindelof_of_countable_subcover fun U hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := MetacompactSpace.pointFinite_refinement (range U)
    (forall_mem_range.2 hUo) (by rw [sUnion_range]; exact univ_subset_iff.1 hU)
  have hvu : ∀ v : V, ∃ i, (v : Set X) ⊆ U i := by
    intro v
    obtain ⟨_, ⟨i, rfl⟩, hi⟩ := hVU v v.property
    exact ⟨i, hi⟩
  choose f hf using hvu
  refine ⟨f '' {v : V | (v : Set X).Nonempty},
    (countable_nonempty_of_pointFinite (fun v : V ↦ hVo v v.property) hVf).image f, ?_⟩
  intro x _
  obtain ⟨v, hv, hx⟩ := mem_sUnion.1 (hV.symm ▸ mem_univ x : x ∈ ⋃₀ V)
  exact mem_iUnion₂.2 ⟨f ⟨v, hv⟩, mem_image_of_mem _ ⟨x, hx⟩, hf ⟨v, hv⟩ hx⟩

On this site: Theorem: Separable and Metacompact implies lindelof

variable {Y : Type*} [TopologicalSpace Y]

theorem countablyMetacompactSpace_of

TopologyByExample.Homeomorph.countablyMetacompactSpace_of

private theorem countablyMetacompactSpace_of (e : X ≃ₜ Y) [h : CountablyMetacompactSpace X] :
    CountablyMetacompactSpace Y
Proof
:= by
  refine ⟨fun U hUc hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := h.pointFinite_refinement ((fun u ↦ e ⁻¹' u) '' U)
    (hUc.image _) (by rintro _ ⟨u, hu, rfl⟩; exact (hUo u hu).preimage e.continuous)
    (eq_univ_of_forall fun x ↦ by
      obtain ⟨u, hu, hx⟩ := mem_sUnion.1 (hU ▸ mem_univ (e x) : e x ∈ ⋃₀ U)
      exact mem_sUnion.2 ⟨e ⁻¹' u, mem_image_of_mem _ hu, hx⟩)
  refine ⟨range fun v : V ↦ e.symm ⁻¹' (v : Set X), ?_, ?_,
    ?_, ?_⟩
  · rintro _ ⟨v, rfl⟩
    exact (hVo v v.property).preimage e.symm.continuous
  · refine eq_univ_of_forall fun y ↦ ?_
    obtain ⟨v, hv, hy⟩ := mem_sUnion.1 (hV ▸ mem_univ (e.symm y) : e.symm y ∈ ⋃₀ V)
    exact mem_sUnion.2 ⟨_, ⟨⟨v, hv⟩, rfl⟩, hy⟩
  · intro y
    apply Set.Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply ((hVf (e.symm y)).image (fun v : V ↦ e.symm ⁻¹' (v : Set X))).subset
    rintro _ ⟨⟨w, hw⟩, hy, rfl⟩
    obtain ⟨v, rfl⟩ := hw
    exact ⟨v, hy, rfl⟩
  · rintro _ ⟨v, rfl⟩
    obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v v.property
    exact ⟨u, hu, fun y hy ↦ by simpa using hvu hy⟩

theorem countablyMetacompactSpace_iff

TopologyByExample.Homeomorph.countablyMetacompactSpace_iff

Countable metacompactness is invariant under homeomorphism.

theorem countablyMetacompactSpace_iff (e : X ≃ₜ Y) :
    CountablyMetacompactSpace X ↔ CountablyMetacompactSpace Y
Proof
:=
  ⟨fun _ ↦ countablyMetacompactSpace_of e, fun _ ↦ countablyMetacompactSpace_of e.symm⟩

theorem metacompactSpace_of

TopologyByExample.Homeomorph.metacompactSpace_of

private theorem metacompactSpace_of (e : X ≃ₜ Y) [h : MetacompactSpace X] :
    MetacompactSpace Y
Proof
:= by
  refine ⟨fun U hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := h.pointFinite_refinement ((fun u ↦ e ⁻¹' u) '' U)
    (by rintro _ ⟨u, hu, rfl⟩; exact (hUo u hu).preimage e.continuous)
    (eq_univ_of_forall fun x ↦ by
      obtain ⟨u, hu, hx⟩ := mem_sUnion.1 (hU ▸ mem_univ (e x) : e x ∈ ⋃₀ U)
      exact mem_sUnion.2 ⟨e ⁻¹' u, mem_image_of_mem _ hu, hx⟩)
  refine ⟨range fun v : V ↦ e.symm ⁻¹' (v : Set X), ?_, ?_,
    ?_, ?_⟩
  · rintro _ ⟨v, rfl⟩
    exact (hVo v v.property).preimage e.symm.continuous
  · refine eq_univ_of_forall fun y ↦ ?_
    obtain ⟨v, hv, hy⟩ := mem_sUnion.1 (hV ▸ mem_univ (e.symm y) : e.symm y ∈ ⋃₀ V)
    exact mem_sUnion.2 ⟨_, ⟨⟨v, hv⟩, rfl⟩, hy⟩
  · intro y
    apply Set.Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply ((hVf (e.symm y)).image (fun v : V ↦ e.symm ⁻¹' (v : Set X))).subset
    rintro _ ⟨⟨w, hw⟩, hy, rfl⟩
    obtain ⟨v, rfl⟩ := hw
    exact ⟨v, hy, rfl⟩
  · rintro _ ⟨v, rfl⟩
    obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v v.property
    exact ⟨u, hu, fun y hy ↦ by simpa using hvu hy⟩

theorem metacompactSpace_iff

TopologyByExample.Homeomorph.metacompactSpace_iff

Metacompactness is invariant under homeomorphism.

theorem metacompactSpace_iff (e : X ≃ₜ Y) :
    MetacompactSpace X ↔ MetacompactSpace Y
Proof
:=
  ⟨fun _ ↦ metacompactSpace_of e, fun _ ↦ metacompactSpace_of e.symm⟩
variable {Y : Type*} [TopologicalSpace Y]

theorem countablyMetacompactSpace

Topology.IsClosedEmbedding.countablyMetacompactSpace

Closed embeddings inherit countable metacompactness.

theorem _root_.Topology.IsClosedEmbedding.countablyMetacompactSpace
    [CountablyMetacompactSpace Y] {e : X → Y} (he : IsClosedEmbedding e) :
    CountablyMetacompactSpace X
Proof
:= by
  refine ⟨fun U hUc hUo hU ↦ ?_⟩
  have : ∀ u ∈ U, ∃ u' : Set Y, IsOpen u' ∧ e ⁻¹' u' = u := fun u hu ↦ he.isOpen_iff.1 (hUo u hu)
  choose! g hgo hg using this
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := CountablyMetacompactSpace.pointFinite_refinement
    (insert (range e)ᶜ (g '' U)) ((hUc.image g).insert _)
    (forall_mem_insert.2 ⟨he.isClosed_range.isOpen_compl, forall_mem_image.2 hgo⟩) (by
      refine eq_univ_of_forall fun y ↦ ?_
      by_cases hy : y ∈ range e
      · obtain ⟨x, rfl⟩ := hy
        obtain ⟨u, hu, hxu⟩ := mem_sUnion.1 (hU.symm ▸ mem_univ x : x ∈ ⋃₀ U)
        have : x ∈ e ⁻¹' g u := (hg u hu).symm ▸ hxu
        exact mem_sUnion.2 ⟨g u, mem_insert_of_mem _ (mem_image_of_mem _ hu), this⟩
      · exact mem_sUnion.2 ⟨_, mem_insert _ _, hy⟩)
  refine ⟨preimage e '' {v ∈ V | (e ⁻¹' v).Nonempty}, ?_, ?_, ?_, ?_⟩
  · rintro _ ⟨v, ⟨hv, -⟩, rfl⟩
    exact (hVo v hv).preimage he.continuous
  · refine eq_univ_of_forall fun x ↦ ?_
    obtain ⟨v, hv, hxv⟩ := mem_sUnion.1 (hV.symm ▸ mem_univ (e x) : e x ∈ ⋃₀ V)
    exact mem_sUnion.2 ⟨e ⁻¹' v, ⟨v, ⟨hv, x, hxv⟩, rfl⟩, hxv⟩
  · intro x
    apply Set.Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply ((hVf (e x)).image (fun v : V ↦ e ⁻¹' (v : Set Y))).subset
    rintro _ ⟨⟨w, hw⟩, hx, rfl⟩
    obtain ⟨v, ⟨hv, _⟩, rfl⟩ := hw
    exact ⟨⟨v, hv⟩, hx, rfl⟩
  · rintro _ ⟨v, ⟨hv, x, hx⟩, rfl⟩
    obtain ⟨u', hu', hvu⟩ := hVU v hv
    rcases mem_insert_iff.1 hu' with rfl | ⟨u, hu, rfl⟩
    · exact absurd (mem_range_self x) (hvu hx)
    · exact ⟨u, hu, (preimage_mono hvu).trans (hg u hu).le⟩

theorem metacompactSpace

Topology.IsClosedEmbedding.metacompactSpace

Closed embeddings inherit metacompactness.

theorem _root_.Topology.IsClosedEmbedding.metacompactSpace
    [MetacompactSpace Y] {e : X → Y} (he : IsClosedEmbedding e) :
    MetacompactSpace X
Proof
:= by
  refine ⟨fun U hUo hU ↦ ?_⟩
  have : ∀ u ∈ U, ∃ u' : Set Y, IsOpen u' ∧ e ⁻¹' u' = u := fun u hu ↦ he.isOpen_iff.1 (hUo u hu)
  choose! g hgo hg using this
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := MetacompactSpace.pointFinite_refinement
    (insert (range e)ᶜ (g '' U))
    (forall_mem_insert.2 ⟨he.isClosed_range.isOpen_compl, forall_mem_image.2 hgo⟩) (by
      refine eq_univ_of_forall fun y ↦ ?_
      by_cases hy : y ∈ range e
      · obtain ⟨x, rfl⟩ := hy
        obtain ⟨u, hu, hxu⟩ := mem_sUnion.1 (hU.symm ▸ mem_univ x : x ∈ ⋃₀ U)
        have : x ∈ e ⁻¹' g u := (hg u hu).symm ▸ hxu
        exact mem_sUnion.2 ⟨g u, mem_insert_of_mem _ (mem_image_of_mem _ hu), this⟩
      · exact mem_sUnion.2 ⟨_, mem_insert _ _, hy⟩)
  refine ⟨preimage e '' {v ∈ V | (e ⁻¹' v).Nonempty}, ?_, ?_, ?_, ?_⟩
  · rintro _ ⟨v, ⟨hv, -⟩, rfl⟩
    exact (hVo v hv).preimage he.continuous
  · refine eq_univ_of_forall fun x ↦ ?_
    obtain ⟨v, hv, hxv⟩ := mem_sUnion.1 (hV.symm ▸ mem_univ (e x) : e x ∈ ⋃₀ V)
    exact mem_sUnion.2 ⟨e ⁻¹' v, ⟨v, ⟨hv, x, hxv⟩, rfl⟩, hxv⟩
  · intro x
    apply Set.Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply ((hVf (e x)).image (fun v : V ↦ e ⁻¹' (v : Set Y))).subset
    rintro _ ⟨⟨w, hw⟩, hx, rfl⟩
    obtain ⟨v, ⟨hv, _⟩, rfl⟩ := hw
    exact ⟨⟨v, hv⟩, hx, rfl⟩
  · rintro _ ⟨v, ⟨hv, x, hx⟩, rfl⟩
    obtain ⟨u', hu', hvu⟩ := hVU v hv
    rcases mem_insert_iff.1 hu' with rfl | ⟨u, hu, rfl⟩
    · exact absurd (mem_range_self x) (hvu hx)
    · exact ⟨u, hu, (preimage_mono hvu).trans (hg u hu).le⟩

theorem finite_subcover_of_pointFinite

TopologyByExample.finite_subcover_of_pointFinite

A point-finite open cover of a countably compact space has a finite subcover.

theorem finite_subcover_of_pointFinite [CountablyCompactSpace X] {ι : Type*}
    (U : ι → Set X) (hUo : ∀ i, IsOpen (U i)) (hU : ⋃ i, U i = univ)
    (hUf : ∀ x, {i | x ∈ U i}.Finite) : ∃ s : Finset ι, ⋃ i ∈ s, U i = univ
Proof
:= by
  classical
  by_contra! h
  have hx : ∀ s : Finset ι, ∃ x, ∀ i ∈ s, x ∉ U i := by
    intro s
    have hn := h s
    rw [ne_univ_iff_exists_notMem] at hn
    obtain ⟨x, hx⟩ := hn
    exact ⟨x, by simpa using hx⟩
  choose x hx using hx
  let F : ℕ → Finset ι := Nat.rec ∅ (fun _ s ↦ s ∪ (hUf (x s)).toFinset)
  have hstep : ∀ n, F (n + 1) = F n ∪ (hUf (x (F n))).toFinset := fun _ ↦ rfl
  have hmono : Monotone F := monotone_nat_of_le_succ fun n ↦ by
    rw [hstep]; exact Finset.subset_union_left
  have honce : ∀ i m n, m < n → x (F m) ∈ U i → x (F n) ∉ U i := by
    intro i m n hmn hm
    apply hx (F n) i
    apply hmono (Nat.succ_le_of_lt hmn)
    rw [hstep]
    exact Finset.mem_union_right _ (by simpa using hm)
  obtain ⟨a, _, ha⟩ := (CountablyCompactSpace.isCountablyCompact_univ (E := X)).seq_clusterPt
    (fun n ↦ x (F n)) (Filter.Eventually.of_forall fun _ ↦ mem_univ _)
  obtain ⟨i, hi⟩ := mem_iUnion.1 (hU.symm ▸ mem_univ a : a ∈ ⋃ i, U i)
  have hfreq := ha.frequently ((hUo i).mem_nhds hi)
  rw [Nat.frequently_atTop_iff_infinite] at hfreq
  apply hfreq
  apply Set.Subsingleton.finite
  intro m hm n hn
  exact le_antisymm (le_of_not_gt fun h ↦ honce i n m h hn hm)
    (le_of_not_gt fun h ↦ honce i m n h hm hn)

theorem compactSpace_of_metacompactSpace_of_countablyCompactSpace

TopologyByExample.compactSpace_of_metacompactSpace_of_countablyCompactSpace

Metacompact countably compact spaces are compact.

theorem compactSpace_of_metacompactSpace_of_countablyCompactSpace [MetacompactSpace X]
    [CountablyCompactSpace X] : CompactSpace X
Proof
:= by
  classical
  refine ⟨isCompact_of_finite_subcover fun U hUo hU ↦ ?_⟩
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := MetacompactSpace.pointFinite_refinement (range U)
    (forall_mem_range.2 hUo) (by rw [sUnion_range]; exact univ_subset_iff.1 hU)
  obtain ⟨s, hs⟩ := finite_subcover_of_pointFinite (fun v : V ↦ (v : Set X))
    (fun v ↦ hVo v v.property) (by rwa [← sUnion_eq_iUnion]) hVf
  have hvu : ∀ v : V, ∃ i, (v : Set X) ⊆ U i := by
    intro v
    obtain ⟨_, ⟨i, rfl⟩, hi⟩ := hVU v v.property
    exact ⟨i, hi⟩
  choose f hf using hvu
  refine ⟨s.image f, fun x _ ↦ ?_⟩
  obtain ⟨v, hv, hx⟩ := mem_iUnion₂.1 (hs.symm ▸ mem_univ x : x ∈ ⋃ v ∈ s, (v : Set X))
  exact mem_iUnion₂.2 ⟨f v, Finset.mem_image_of_mem f hv, hf v hx⟩

On this site: Theorem: Metacompact countably compact spaces are compact