Lean library · module TopologyByExample.Theorems.OpenRefinementMetacompact

Metacompactness after refining the topology on an open part

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_refinement_on_open_part

TopologyByExample.metacompactSpace_of_refinement_on_open_part

A refinement confined to an open metacompact part preserves metacompactness if every subspace of the original topology is metacompact.

theorem metacompactSpace_of_refinement_on_open_part
    {X : Type*} [t : TopologicalSpace X] (h : ∀ S : Set X, MetacompactSpace S)
    (t' : TopologicalSpace X) (hle : t' ≤ t) (D : Set X) (hDo : IsOpen[t'] D)
    (hDm : @MetacompactSpace D (induced Subtype.val t'))
    (hnhds : ∀ x ∉ D, @nhds X t' x = @nhds X t x) : @MetacompactSpace X t'
Proof
:= by
  classical
  let : TopologicalSpace X := t
  refine @MetacompactSpace.mk X t' ?_
  intro U hUo hU
  let A := interior '' U
  have hAo : ∀ a ∈ A, IsOpen a := by
    rintro _ ⟨u, hu, rfl⟩
    exact isOpen_interior
  let : MetacompactSpace (⋃₀ A) := h _
  obtain ⟨B, hBo, hB, hBf, hBA⟩ :=
    exists_pointFinite_refinement_of_metacompact_union A hAo
  let : TopologicalSpace D := TopologicalSpace.induced Subtype.val t'
  let : MetacompactSpace D := hDm
  let e : D → X := Subtype.val
  obtain ⟨C, hCo, hC, hCf, hCU⟩ := MetacompactSpace.pointFinite_refinement
    (preimage e '' U) (by
      rintro _ ⟨u, hu, rfl⟩
      exact @IsOpen.preimage D X _ t' e
        (@continuous_subtypeVal X t' (fun x ↦ x ∈ D)) u (hUo u hu)) (by
      apply eq_univ_of_forall
      intro x
      obtain ⟨u, hu, hxu⟩ := mem_sUnion.mp (hU ▸ mem_univ (e x))
      exact mem_sUnion.mpr ⟨e ⁻¹' u, ⟨u, hu, rfl⟩, hxu⟩)
  refine ⟨B ∪ (image e '' C), ?_, ?_, ?_, ?_⟩
  · intro v hv
    rcases hv with hv | ⟨c, hc, rfl⟩
    · exact TopologicalSpace.le_def.mp hle v (hBo v hv)
    · let : TopologicalSpace X := t'
      exact hDo.isOpenEmbedding_subtypeVal.isOpenMap c (hCo c hc)
  · apply eq_univ_of_forall
    intro x
    by_cases hx : x ∈ D
    · obtain ⟨c, hc, hxc⟩ := mem_sUnion.mp (hC ▸ mem_univ (⟨x, hx⟩ : D))
      exact mem_sUnion.mpr ⟨e '' c, Or.inr ⟨c, hc, rfl⟩, ⟨⟨x, hx⟩, hxc, rfl⟩⟩
    · obtain ⟨u, hu, hxu⟩ := mem_sUnion.mp (hU ▸ mem_univ x)
      have hn : u ∈ @nhds X t x := by
        rw [← hnhds x hx]
        exact @IsOpen.mem_nhds X t' x u (hUo u hu) hxu
      have hxA : x ∈ ⋃₀ A := mem_sUnion.mpr
        ⟨interior u, ⟨u, hu, rfl⟩, mem_interior_iff_mem_nhds.mpr hn⟩
      obtain ⟨b, hb, hxb⟩ := mem_sUnion.mp (hB ▸ hxA)
      exact mem_sUnion.mpr ⟨b, Or.inl hb, hxb⟩
  · intro x
    apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    by_cases hx : x ∈ D
    · apply (((hBf x).image Subtype.val).union
        (((hCf ⟨x, hx⟩).image Subtype.val).image (image e))).subset
      rintro _ ⟨⟨v, hv⟩, hxv, rfl⟩
      rcases hv with hv | ⟨c, hc, rfl⟩
      · exact Or.inl ⟨⟨v, hv⟩, hxv, rfl⟩
      · obtain ⟨y, hyc, hyx⟩ := hxv
        have hy : y = (⟨x, hx⟩ : D) := Subtype.ext hyx
        exact Or.inr ⟨c, ⟨⟨c, hc⟩, by simpa [hy] using hyc, rfl⟩, rfl⟩
    · apply ((hBf x).image Subtype.val).subset
      rintro _ ⟨⟨v, hv⟩, hxv, rfl⟩
      rcases hv with hv | ⟨c, hc, rfl⟩
      · exact ⟨⟨v, hv⟩, hxv, rfl⟩
      · obtain ⟨y, _, hyx⟩ := hxv
        exact (hx (hyx ▸ y.property)).elim
  · intro v hv
    rcases hv with hv | ⟨c, hc, rfl⟩
    · obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hBA v hv
      exact ⟨u, hu, hvu.trans interior_subset⟩
    · obtain ⟨_, ⟨u, hu, rfl⟩, hcu⟩ := hCU c hc
      exact ⟨u, hu, image_subset_iff.mpr hcu⟩

On this site: Theorem: Refining the topology on an open metacompact part