Lean library · module TopologyByExample.Theorems.MetricOpenExtensionMetacompact

Metacompactness after making a subset open

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 nhds_inf_generateFrom_singleton_of_notMem

TopologyByExample.nhds_inf_generateFrom_singleton_of_notMem

Outside a newly opened subset the neighbourhood filter is unchanged.

theorem nhds_inf_generateFrom_singleton_of_notMem
    {X : Type*} (t : TopologicalSpace X) (D : Set X) {x : X} (hx : x ∉ D) :
    @nhds X (t ⊓ generateFrom {D}) x = @nhds X t x
Proof
:= by
  rw [nhds_inf, nhds_generateFrom]
  simp [hx]

theorem continuous_subtypeVal_inf_generateFrom_singleton

TopologyByExample.continuous_subtypeVal_inf_generateFrom_singleton

Inclusion of the newly opened subset is continuous from its original topology.

theorem continuous_subtypeVal_inf_generateFrom_singleton
    {X : Type*} [t : TopologicalSpace X] (D : Set X) :
    Continuous[inferInstance, t ⊓ generateFrom {D}] (Subtype.val : D → X)
Proof
:= by
  rw [continuous_inf_rng]
  refine ⟨continuous_subtypeVal, continuous_generateFrom_iff.mpr ?_⟩
  intro s hs
  have heq : s = D := hs
  subst s
  have he : (Subtype.val : D → X) ⁻¹' D = univ := by ext x; simp
  rw [he]
  exact isOpen_univ

theorem isOpenMap_subtypeVal_inf_generateFrom_singleton

TopologyByExample.isOpenMap_subtypeVal_inf_generateFrom_singleton

Inclusion of the newly opened subset is an open map.

theorem isOpenMap_subtypeVal_inf_generateFrom_singleton
    {X : Type*} [t : TopologicalSpace X] (D : Set X) :
    @IsOpenMap D X inferInstance (t ⊓ generateFrom {D}) Subtype.val
Proof
:= by
  intro s hs
  obtain ⟨v, hv, rfl⟩ := isOpen_induced_iff.mp hs
  rw [image_preimage_eq_inter_range, Subtype.range_coe_subtype]
  exact @IsOpen.inter X (t ⊓ generateFrom {D}) _ _
    (TopologicalSpace.le_def.mp inf_le_left v hv)
    (TopologicalSpace.le_def.mp inf_le_right D (isOpen_generateFrom_of_mem rfl))

theorem metacompactSpace_inf_generateFrom_singleton_of_hereditary

TopologyByExample.metacompactSpace_inf_generateFrom_singleton_of_hereditary

Declaring a subset open preserves metacompactness when every original subspace is metacompact.

theorem metacompactSpace_inf_generateFrom_singleton_of_hereditary
    {X : Type*} [t : TopologicalSpace X] (h : ∀ S : Set X, MetacompactSpace S) (D : Set X) :
    @MetacompactSpace X (t ⊓ generateFrom {D})
Proof
:= by
  classical
  refine @MetacompactSpace.mk X (t ⊓ generateFrom {D}) ?_
  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 _
  let : MetacompactSpace D := h _
  obtain ⟨B, hBo, hB, hBf, hBA⟩ :=
    exists_pointFinite_refinement_of_metacompact_union A hAo
  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 ⊓ generateFrom {D}) e
        (continuous_subtypeVal_inf_generateFrom_singleton 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 inf_le_left v (hBo v hv)
    · exact isOpenMap_subtypeVal_inf_generateFrom_singleton D 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 [← nhds_inf_generateFrom_singleton_of_notMem t D hx]
        exact @IsOpen.mem_nhds X (t ⊓ generateFrom {D}) 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: Making one subset of a hereditarily metacompact space open

theorem metacompactSpace_inf_generateFrom_singleton

TopologyByExample.metacompactSpace_inf_generateFrom_singleton

Declaring one subset of a metrizable space open preserves metacompactness.

theorem metacompactSpace_inf_generateFrom_singleton
    {X : Type*} [t : TopologicalSpace X] [MetrizableSpace X] (D : Set X) :
    @MetacompactSpace X (t ⊓ generateFrom {D})
Proof
:= by
  apply metacompactSpace_inf_generateFrom_singleton_of_hereditary
  intro S
  let : ParacompactSpace S := paracompactSpace_of_pseudoMetrizableSpace
  infer_instance

On this site: Theorem: Making one subset of a metrizable space open preserves metacompactness

theorem metacompactSpace_inf_generateFrom_singleton_of_regular_hereditarilyLindelof

TopologyByExample.metacompactSpace_inf_generateFrom_singleton_of_regular_hereditarilyLindelof

Declaring one subset of a regular hereditarily Lindelöf space open preserves metacompactness.

theorem metacompactSpace_inf_generateFrom_singleton_of_regular_hereditarilyLindelof
    {X : Type*} [t : TopologicalSpace X] [RegularSpace X] [HereditarilyLindelofSpace X]
    (D : Set X) : @MetacompactSpace X (t ⊓ generateFrom {D})
Proof
:= by
  apply metacompactSpace_inf_generateFrom_singleton_of_hereditary
  intro S
  let : ParacompactSpace S := paracompactSpace_of_regularSpace_of_lindelofSpace
  infer_instance

theorem metacompactSpace

TopologyByExample.IndiscreteExtension.metacompactSpace

Each indiscrete extension of the real line is metacompact.

theorem metacompactSpace (D : Set ℝ) : MetacompactSpace (IndiscreteExtension D)
Proof
:= by
  let : TopologicalSpace (IndiscreteExtension D) := induced toReal inferInstance
  let : MetrizableSpace (IndiscreteExtension D) :=
    (IsEmbedding.mk ⟨rfl⟩ toReal.injective).metrizableSpace
  exact metacompactSpace_inf_generateFrom_singleton (toReal ⁻¹' D)

theorem metacompactSpace

TopologyByExample.IndiscreteRationalExtension.metacompactSpace

The indiscrete rational extension is metacompact.

theorem metacompactSpace : MetacompactSpace IndiscreteRationalExtension
Proof
:=
  IndiscreteExtension.metacompactSpace _

On this site: The indiscrete rational extension of the real line is metacompact

theorem metacompactSpace

TopologyByExample.IndiscreteIrrationalExtension.metacompactSpace

The indiscrete irrational extension is metacompact.

theorem metacompactSpace : MetacompactSpace IndiscreteIrrationalExtension
Proof
:=
  IndiscreteExtension.metacompactSpace _

On this site: The indiscrete irrational extension of the real line is metacompact

theorem metacompactSpace

TopologyByExample.StrongParallelLine.metacompactSpace

The strong parallel line is metacompact.

theorem metacompactSpace : MetacompactSpace StrongParallelLine
Proof
:=
  @metacompactSpace_inf_generateFrom_singleton_of_regular_hereditarilyLindelof
    DoubleArrow _ inferInstance inferInstance DoubleArrow.upperArrow

On this site: Strong parallel line topology is metacompact