Lean library · module TopologyByExample.Theorems.LocallyCompactCompression
First countability from a locally compact compression
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 firstCountable_of_weaklyLocallyCompact_compression
TopologyByExample.firstCountable_of_weaklyLocallyCompact_compression
A weakly locally compact space admitting a continuous injection into a first-countable Hausdorff space is first countable.
theorem firstCountable_of_weaklyLocallyCompact_compression
{X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
[WeaklyLocallyCompactSpace X] [T2Space Y] [FirstCountableTopology Y]
{f : X → Y} (hf : Continuous f) (hi : Function.Injective f) : FirstCountableTopology X
Proof
:= by
constructor
intro x
obtain ⟨K, hK, hxK⟩ := exists_compact_mem_nhds x
let _ : CompactSpace K := isCompact_iff_compactSpace.mp hK
have he : IsClosedEmbedding (fun z : K ↦ f z.val) :=
(hf.comp continuous_subtypeVal).isClosedEmbedding (hi.comp Subtype.val_injective)
let _ : FirstCountableTopology K := he.isEmbedding.firstCountableTopology
let z : K := ⟨x, mem_of_mem_nhds hxK⟩
have hc : (map ((↑) : K → X) (𝓝 z)).IsCountablyGenerated := inferInstance
rw [map_nhds_subtypeVal] at hc
change (𝓝[K] x).IsCountablyGenerated at hc
rwa [nhdsWithin_eq_nhds.mpr hxK] at hc
On this site: Theorem: First countability from a locally compact compression