Lean library · module TopologyByExample.Theorems.PSpacesPermanence
Permanence and Lindelöf properties of P-spaces
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.
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]
instance countableInterFilter_nhds
TopologyByExample.PSpace.countableInterFilter_nhds
The neighbourhood filter of a point in a P-space is closed under countable intersections.
instance PSpace.countableInterFilter_nhds [PSpace X] (x : X) :
CountableInterFilter (𝓝 x)
Proof
where
countable_sInter_mem S hS hmem := by
classical
let := hS.to_subtype
choose U hU hUs using fun s : S => (nhds_basis_opens x).mem_iff.mp (hmem s s.property)
have ho : IsOpen (⋂ s : S, U s) := PSpace.isOpen_iInter U (fun s => (hU s).2)
apply mem_of_superset (ho.mem_nhds (mem_iInter.mpr (fun s => (hU s).1)))
intro y hy s hs
exact hUs ⟨s, hs⟩ (mem_iInter.mp hy ⟨s, hs⟩)
theorem pSpace_iff_countableInterFilter_nhds
TopologyByExample.pSpace_iff_countableInterFilter_nhds
Countable-intersection neighbourhood filters characterize P-spaces.
theorem pSpace_iff_countableInterFilter_nhds :
PSpace X ↔ ∀ x : X, CountableInterFilter (𝓝 x)
Proof
:= by
constructor
· intro h x
let := h
infer_instance
· intro h
refine ⟨fun s hs => ?_⟩
obtain ⟨U, hUo, rfl⟩ := hs.eq_iInter_nat
apply isOpen_iff_mem_nhds.mpr
intro x hx
let := h x
exact countable_iInter_mem.mpr fun n => (hUo n).mem_nhds (mem_iInter.mp hx n)
On this site: Theorem: P-spaces and countable intersections of neighbourhoods
instance prod
TopologyByExample.PSpace.prod
Binary products of P-spaces are P-spaces.
instance PSpace.prod [PSpace X] [PSpace Y] : PSpace (X × Y)
Proof
:= by
rw [pSpace_iff_countableInterFilter_nhds]
intro x
rw [nhds_prod_eq]
change CountableInterFilter (comap Prod.fst (𝓝 x.1) ⊓ comap Prod.snd (𝓝 x.2))
infer_instance
On this site: Theorem: Products of two P-spaces are P-spaces
omit [TopologicalSpace X] in
theorem countableInterFilter_iInf_finite
TopologyByExample.countableInterFilter_iInf_finite
Finite infima of countably intersection-closed filters have the same property.
private theorem countableInterFilter_iInf_finite {ι : Type*} [Finite ι]
(f : ι → Filter X) [∀ i, CountableInterFilter (f i)] :
CountableInterFilter (⨅ i, f i)
Proof
:= by
classical
let := Fintype.ofFinite ι
have aux (s : Finset ι) : CountableInterFilter (⨅ i ∈ s, f i) := by
induction s using Finset.induction_on with
| empty => simp only [Finset.notMem_empty, iInf_false, iInf_top]; infer_instance
| @insert i s hi ih =>
rw [Finset.iInf_insert]
let := ih
infer_instance
simpa using aux Finset.univ
instance pi
TopologyByExample.PSpace.pi
Finite products of P-spaces are P-spaces.
instance PSpace.pi {ι : Type*} [Finite ι] {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, PSpace (Z i)] : PSpace (∀ i, Z i)
Proof
:= by
rw [pSpace_iff_countableInterFilter_nhds]
intro x
rw [nhds_pi]
exact countableInterFilter_iInf_finite _
On this site: Theorem: Finite products of P-spaces are P-spaces
instance sum
TopologyByExample.PSpace.sum
A topological sum of P-spaces is a P-space.
instance PSpace.sum [PSpace X] [PSpace Y] : PSpace (X ⊕ Y)
Proof
:= by
rw [pSpace_iff_countableInterFilter_nhds]
intro x
cases x with
| inl x => rw [nhds_inl]; infer_instance
| inr y => rw [nhds_inr]; infer_instance
On this site: Theorem: Disjoint sums of two P-spaces are P-spaces
instance sigma
TopologyByExample.PSpace.sigma
Arbitrary disjoint unions of P-spaces are P-spaces.
instance PSpace.sigma {ι : Type*} {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
[∀ i, PSpace (Z i)] : PSpace (Σ i, Z i)
Proof
:= by
rw [pSpace_iff_countableInterFilter_nhds]
rintro ⟨i, z⟩
rw [Sigma.nhds_mk]
infer_instance
On this site: Theorem: Disjoint unions of P-spaces are P-spaces
theorem isClosed_of_isLindelof
TopologyByExample.PSpace.isClosed_of_isLindelof
Lindelöf subsets of Hausdorff P-spaces are closed.
theorem PSpace.isClosed_of_isLindelof [PSpace X] [T2Space X] {s : Set X}
(hs : IsLindelof s) : IsClosed s
Proof
:= by
apply isClosed_iff_clusterPt.mpr
intro x hx
let : NeBot (𝓝 x ⊓ 𝓟 s) := hx
obtain ⟨y, hys, hy⟩ := hs (f := 𝓝 x ⊓ 𝓟 s) inf_le_right
have hyx : y = x := eq_of_nhds_neBot (hy.mono inf_le_left)
exact hyx ▸ hys
On this site: Theorem: Lindelöf subsets of Hausdorff P-spaces are closed
theorem discreteTopology_of_weaklyLocallyCompactSpace
TopologyByExample.PSpace.discreteTopology_of_weaklyLocallyCompactSpace
A weakly locally compact T₁ P-space is discrete.
theorem PSpace.discreteTopology_of_weaklyLocallyCompactSpace [PSpace X] [T1Space X]
[WeaklyLocallyCompactSpace X] : DiscreteTopology X
Proof
:= by
apply discreteTopology_iff_isOpen_singleton.mpr
intro x
obtain ⟨K, hK, hxK⟩ := exists_compact_mem_nhds x
let : CompactSpace K := isCompact_iff_compactSpace.mp hK
let : Finite K := PSpace.finite_of_countablyCompactSpace
exact isOpen_singleton_of_finite_mem_nhds x hxK (Set.toFinite K)
On this site: Theorem: Weakly locally compact T1 P-spaces are discrete
theorem lindelofSpace_prod
TopologyByExample.PSpace.lindelofSpace_prod
The product of a Lindelöf P-space and any Lindelöf space is Lindelöf.
theorem PSpace.lindelofSpace_prod [PSpace X] [LindelofSpace X] [LindelofSpace Y] :
LindelofSpace (X × Y)
Proof
where
isLindelof_univ := by
intro F hF hcount _
obtain ⟨x, hx⟩ := cluster_point_of_Lindelof (map Prod.fst F)
let G : Filter (X × Y) := comap Prod.fst (𝓝 x) ⊓ F
have hG : NeBot G := neBot_inf_comap_iff_map'.mpr hx
let := hG
obtain ⟨y, hy⟩ := cluster_point_of_Lindelof (map Prod.snd G)
have hxy : NeBot (comap Prod.snd (𝓝 y) ⊓ G) :=
neBot_inf_comap_iff_map'.mpr hy
refine ⟨(x, y), mem_univ _, ?_⟩
change NeBot (𝓝 (x, y) ⊓ F)
rw [nhds_prod_eq, Filter.prod_eq_inf]
simpa only [G, inf_assoc, inf_left_comm, inf_comm] using hxy
On this site: Theorem: A Lindelöf P-space times a Lindelöf space is Lindelöf
theorem lindelofSpace_pi
TopologyByExample.PSpace.lindelofSpace_pi
Finite products of Lindelöf P-spaces are Lindelöf.
theorem PSpace.lindelofSpace_pi {ι : Type*} [Finite ι] {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, PSpace (Z i)] [∀ i, LindelofSpace (Z i)] :
LindelofSpace (∀ i, Z i)
Proof
:= by
induction ι using Finite.induction_empty_option with
| of_equiv e ih =>
let := ih (Z := fun i => Z (e i))
exact LindelofSpace.of_continuous_surjective
(Homeomorph.piCongrLeft e).continuous (Homeomorph.piCongrLeft e).surjective
| h_empty => infer_instance
| @h_option ι _ ih =>
let := ih (Z := fun i => Z (some i))
let := PSpace.lindelofSpace_prod (X := Z none) (Y := ∀ i, Z (some i))
apply LindelofSpace.of_continuous_surjective
(f := (Equiv.piOptionEquivProd (β := Z)).symm)
· apply continuous_pi
intro i
cases i with
| none => exact continuous_fst
| some i => exact (continuous_apply i).comp continuous_snd
· exact (Equiv.piOptionEquivProd (β := Z)).symm.surjective
On this site: Theorem: Finite products of Lindelöf P-spaces are Lindelöf
theorem regularSpace_of_lindelofSpace
TopologyByExample.PSpace.regularSpace_of_lindelofSpace
A Hausdorff Lindelöf P-space is regular.
theorem PSpace.regularSpace_of_lindelofSpace [PSpace X] [T2Space X]
[LindelofSpace X] : RegularSpace X
Proof
:= by
classical
apply RegularSpace.of_exists_mem_nhds_isClosed_subset
intro x t ht
obtain ⟨O, ⟨hxO, hO⟩, hOt⟩ := (nhds_basis_opens x).mem_iff.mp ht
have hsep (y : (Oᶜ : Set X)) : x ≠ (y : X) := fun he => y.property (he ▸ hxO)
choose U V hU hV hxU hyV hUV using fun y : (Oᶜ : Set X) => t2_separation (hsep y)
have hcover : Oᶜ ⊆ ⋃ y : (Oᶜ : Set X), V y := by
intro y hy
exact mem_iUnion.mpr ⟨⟨y, hy⟩, hyV ⟨y, hy⟩⟩
obtain ⟨r, hr, hrcov⟩ := hO.isClosed_compl.isLindelof.elim_countable_subcover V hV hcover
let W : Set X := ⋂ y ∈ r, U y
let D : Set X := ⋃ y ∈ r, V y
have hWo : IsOpen W := TopologyByExample.isOpen_of_isGδ
(IsGδ.biInter_of_isOpen hr (fun y _ => hU y))
have hxW : x ∈ W := mem_iInter.mpr fun y => mem_iInter.mpr fun _ => hxU y
have hDo : IsOpen D := isOpen_iUnion fun y => isOpen_iUnion fun _ => hV y
have hWD : W ⊆ Dᶜ := by
intro z hz hzD
obtain ⟨y, hyr, hzV⟩ := mem_iUnion₂.mp hzD
exact Set.disjoint_left.mp (hUV y) (mem_iInter₂.mp hz y hyr) hzV
refine ⟨Dᶜ, mem_of_superset (hWo.mem_nhds hxW) hWD, hDo.isClosed_compl, ?_⟩
exact (compl_subset_comm.mpr hrcov).trans hOt
On this site: Theorem: Hausdorff Lindelöf P-spaces are regular
theorem normalSpace_of_lindelofSpace
TopologyByExample.PSpace.normalSpace_of_lindelofSpace
Every Hausdorff Lindelöf P-space is normal.
theorem PSpace.normalSpace_of_lindelofSpace [PSpace X] [T2Space X]
[LindelofSpace X] : NormalSpace X
Proof
:= by
let := PSpace.regularSpace_of_lindelofSpace (X := X)
infer_instance
On this site: Theorem: Hausdorff Lindelöf P-spaces are normal
theorem not_pSpace_pi_infinite
TopologyByExample.not_pSpace_pi_infinite
An infinite product of nontrivial T₁ spaces is not a P-space.
theorem not_pSpace_pi_infinite {ι : Type*} [Infinite ι] {Z : ι → Type*}
[∀ i, TopologicalSpace (Z i)] [∀ i, T1Space (Z i)] [∀ i, Nontrivial (Z i)] :
¬ PSpace (∀ i, Z i)
Proof
:= by
classical
intro hp
let := hp
let a : ∀ i, Z i := fun i => Classical.arbitrary (Z i)
choose b hb using fun i => exists_ne (a i)
let e : ℕ ↪ ι := Infinite.natEmbedding ι
let u : ℕ → ∀ i, Z i := fun n => Function.update a (e n) (b (e n))
have hlim : Tendsto u atTop (𝓝 a) := by
apply tendsto_pi_nhds.mpr
intro i
have heq : ∀ᶠ n in atTop, u n i = a i := by
by_cases hi : ∃ m, e m = i
· obtain ⟨m, rfl⟩ := hi
filter_upwards [eventually_ne_atTop m] with n hn
simp only [u, Function.update_of_ne (Ne.symm (fun he => hn (e.injective he)))]
· exact Eventually.of_forall fun n => Function.update_of_ne
(fun he => hi ⟨n, he.symm⟩) _ _
exact tendsto_const_nhds.congr' (Filter.Eventually.mono heq fun _ h => h.symm)
let := PSpace.sequentiallyDiscreteSpace (X := ∀ i, Z i)
obtain ⟨n, hn⟩ := (SequentiallyDiscreteSpace.eventually_eq_of_tendsto u a hlim).exists
have h := congrFun hn (e n)
exact hb (e n) (by simpa [u] using h)
On this site: Theorem: Infinite products of nontrivial T1 spaces are not P-spaces