Lean library · module TopologyByExample.Theorems.OpenPartCompactMetacompact
Metacompactness from an open part and compact remainder
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.
theorem metacompactSpace_of_open_of_compact_compl
TopologyByExample.metacompactSpace_of_open_of_compact_compl
An open metacompact part with compact complement makes its ambient space metacompact.
theorem metacompactSpace_of_open_of_compact_compl
{X : Type*} [TopologicalSpace X] {O : Set X} (hO : IsOpen O)
[MetacompactSpace O] (hK : IsCompact Oᶜ) : MetacompactSpace X
Proof
:= by
classical
refine ⟨fun U hUo hU ↦ ?_⟩
obtain ⟨C, hCU, hCf, hKC⟩ := hK.elim_finite_subcover_image (c := id) hUo
(by simpa only [id, ← sUnion_eq_biUnion, hU] using (subset_univ Oᶜ))
have hc : Oᶜ ⊆ ⋃₀ C := by simpa only [id, ← sUnion_eq_biUnion] using hKC
let e : O → X := Subtype.val
obtain ⟨V, hVo, hV, hVf, hVU⟩ := MetacompactSpace.pointFinite_refinement
(preimage e '' U) (by
rintro _ ⟨u, hu, rfl⟩
exact (hUo u hu).preimage continuous_subtypeVal) (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, mem_image_of_mem _ hu, hxu⟩)
let W : Set (Set X) := C ∪ (image e '' V)
refine ⟨W, ?_, ?_, ?_, ?_⟩
· intro w hw
rcases hw with hw | ⟨v, hv, rfl⟩
· exact hUo w (hCU hw)
· exact hO.isOpenEmbedding_subtypeVal.isOpenMap v (hVo v hv)
· apply eq_univ_of_forall
intro x
by_cases hx : x ∈ O
· obtain ⟨v, hv, hxv⟩ := mem_sUnion.mp (hV ▸ mem_univ (⟨x, hx⟩ : O))
exact mem_sUnion.mpr ⟨e '' v, Or.inr ⟨v, hv, rfl⟩, ⟨⟨x, hx⟩, hxv, rfl⟩⟩
· obtain ⟨c, hcC, hxc⟩ := mem_sUnion.mp (hc hx)
exact mem_sUnion.mpr ⟨c, Or.inl hcC, hxc⟩
· intro x
apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
by_cases hx : x ∈ O
· apply (hCf.union (((hVf ⟨x, hx⟩).image Subtype.val).image (image e))).subset
rintro _ ⟨⟨w, hw⟩, hxw, rfl⟩
rcases hw with hw | ⟨v, hv, rfl⟩
· exact Or.inl hw
· obtain ⟨y, hyv, hyx⟩ := hxw
have hy : y = (⟨x, hx⟩ : O) := Subtype.ext hyx
exact Or.inr ⟨v, ⟨⟨v, hv⟩, by simpa [hy] using hyv, rfl⟩, rfl⟩
· apply hCf.subset
rintro _ ⟨⟨w, hw⟩, hxw, rfl⟩
rcases hw with hw | ⟨v, hv, rfl⟩
· exact hw
· obtain ⟨y, _, rfl⟩ := hxw
exact (hx y.property).elim
· intro w hw
rcases hw with hw | ⟨v, hv, rfl⟩
· exact ⟨w, hCU hw, subset_rfl⟩
· obtain ⟨_, ⟨u, hu, rfl⟩, hvu⟩ := hVU v hv
exact ⟨u, hu, image_subset_iff.mpr hvu⟩
On this site: Theorem: An open metacompact part with compact complement