Lean library · module TopologyByExample.Theorems.SumCountablyMetacompact

Countable metacompactness of disjoint sums

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 refinement_on_open_embedding

TopologyByExample.refinement_on_open_embedding

private theorem refinement_on_open_embedding
    {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
    [CountablyMetacompactSpace X] {e : X → Y} (he : IsOpenEmbedding e)
    (U : Set (Set Y)) (hUc : U.Countable) (hUo : ∀ u ∈ U, IsOpen u)
    (hU : ⋃₀ U = univ) :
    ∃ V : Set (Set Y), (∀ v ∈ V, IsOpen v) ∧ range e ⊆ ⋃₀ V ∧
      (∀ y, {v ∈ V | y ∈ v}.Finite) ∧ ∀ v ∈ V, ∃ u ∈ U, v ⊆ u
Proof
:= by
  obtain ⟨V, hVo, hV, hVf, hVU⟩ := CountablyMetacompactSpace.pointFinite_refinement
    (preimage e '' U) (hUc.image _) (by
      rintro _ ⟨u, hu, rfl⟩
      exact (hUo u hu).preimage he.continuous) (by
      apply eq_univ_of_forall
      intro x
      obtain ⟨u, hu, hx⟩ := mem_sUnion.mp (hU ▸ mem_univ (e x))
      exact mem_sUnion.mpr ⟨e ⁻¹' u, mem_image_of_mem _ hu, hx⟩)
  refine ⟨image e '' V, ?_, ?_, ?_, ?_⟩
  · rintro _ ⟨v, hv, rfl⟩
    exact he.isOpenMap v (hVo v hv)
  · rintro _ ⟨x, rfl⟩
    obtain ⟨v, hv, hx⟩ := mem_sUnion.mp (hV ▸ mem_univ x)
    exact mem_sUnion.mpr ⟨e '' v, mem_image_of_mem _ hv, mem_image_of_mem _ hx⟩
  · intro y
    by_cases hy : y ∈ range e
    · obtain ⟨x, rfl⟩ := hy
      apply ((hVf x).image (fun v : V ↦ e '' (v : Set X))).subset
      rintro w ⟨⟨v, hv, rfl⟩, hx⟩
      exact ⟨⟨v, hv⟩, (he.injective.mem_set_image).mp hx, rfl⟩
    · have h : {v ∈ image e '' V | y ∈ v} = ∅ := by
        apply eq_empty_iff_forall_notMem.mpr
        rintro w ⟨⟨v, _, rfl⟩, x, _, rfl⟩
        exact hy (mem_range_self x)
      rw [h]
      exact finite_empty
  · rintro _ ⟨v, hv, rfl⟩
    obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v hv
    exact ⟨u, hu, image_subset_iff.mpr hvu⟩

theorem countablyMetacompactSpace_sum_iff

TopologyByExample.countablyMetacompactSpace_sum_iff

A disjoint sum is countably metacompact exactly when both summands are.

theorem countablyMetacompactSpace_sum_iff
    {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] :
    CountablyMetacompactSpace (X ⊕ Y) ↔
      CountablyMetacompactSpace X ∧ CountablyMetacompactSpace Y
Proof
:= by
  constructor
  · intro h
    exact ⟨(IsClosedEmbedding.inl (X := X) (Y := Y)).countablyMetacompactSpace,
      (IsClosedEmbedding.inr (X := X) (Y := Y)).countablyMetacompactSpace⟩
  · rintro ⟨hX, hY⟩
    refine ⟨fun U hUc hUo hU ↦ ?_⟩
    obtain ⟨V, hVo, hV, hVf, hVU⟩ :=
      refinement_on_open_embedding IsOpenEmbedding.inl U hUc hUo hU
    obtain ⟨W, hWo, hW, hWf, hWU⟩ :=
      refinement_on_open_embedding IsOpenEmbedding.inr U hUc hUo hU
    refine ⟨V ∪ W, ?_, ?_, ?_, ?_⟩
    · intro u hu
      exact hu.elim (hVo u) (hWo u)
    · apply eq_univ_of_forall
      intro z
      cases z with
      | inl x => exact sUnion_mono subset_union_left (hV (mem_range_self x))
      | inr y => exact sUnion_mono subset_union_right (hW (mem_range_self y))
    · intro z
      apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
      apply ((hVf z).union (hWf z)).subset
      rintro _ ⟨⟨u, hu⟩, hz, rfl⟩
      exact hu.elim (fun h ↦ Or.inl ⟨h, hz⟩) (fun h ↦ Or.inr ⟨h, hz⟩)
    · intro u hu
      exact hu.elim (hVU u) (hWU u)

On this site: Theorem: A disjoint sum is countably metacompact iff both summands are