Lean library · module TopologyByExample.Theorems.DeletedDiameterMetacompact
Countable metacompactness of the deleted diameter plane
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 isOpen_nbhd_diff
TopologyByExample.DeletedDiameter.isOpen_nbhd_diff
Punctured basic neighbourhoods are Euclidean open.
theorem isOpen_nbhd_diff (p : ℝ × ℝ) (r : ℝ) :
IsOpen (nbhd {a : ℝ | a ≠ 0} p r \ {p})
Proof
:= by
have he : nbhd {a : ℝ | a ≠ 0} p r \ {p} =
disc p r ∩ {z | z.2 ≠ p.2} := by
ext z
constructor
· rintro ⟨⟨hd, hz⟩, hne⟩
refine ⟨hd, fun h2 ↦ ?_⟩
have h1 : z.1 = p.1 := by
by_contra h1
exact hz ⟨h2, sub_ne_zero.mpr h1⟩
exact hne (Prod.ext h1 h2)
· rintro ⟨hd, h2⟩
exact ⟨⟨hd, fun hz ↦ h2 hz.1⟩, fun he ↦ h2 (congrArg Prod.snd he)⟩
rw [he]
exact (isOpen_disc p r).inter (isClosed_eq continuous_snd continuous_const).isOpen_compl
theorem closed_discrete_compl_interiors
TopologyByExample.DeletedDiameter.closed_discrete_compl_interiors
The points missing all Euclidean interiors of an open cover form a closed discrete set.
theorem closed_discrete_compl_interiors {ι : Type*} (U : ι → Set DeletedDiameter)
(hU : ∀ i, IsOpen (U i)) (hcover : ⋃ i, U i = univ) :
let R := {z : DeletedDiameter | DeletedDiscPlane.toPlane z ∉
⋃ i, interior (DeletedDiscPlane.ofPlane ⁻¹' U i)}
IsClosed R ∧ IsDiscrete R
Proof
:= by
let E (i : ι) : Set (ℝ × ℝ) := interior (DeletedDiscPlane.ofPlane ⁻¹' U i)
let R := {z : DeletedDiameter | DeletedDiscPlane.toPlane z ∉ ⋃ i, E i}
refine ⟨(isOpen_iUnion fun i ↦ isOpen_interior).isClosed_compl.preimage
continuous_toPlane, ?_⟩
apply isDiscrete_iff_forall_mem_exists_isOpen.mpr
intro z hz
obtain ⟨i, hzi⟩ := iUnion_eq_univ_iff.mp hcover z
obtain ⟨r, hr, hrU⟩ := hU i z hzi
refine ⟨_, DeletedDiscPlane.isOpen_nbhd add_notMem (DeletedDiscPlane.toPlane z) r, ?_⟩
ext y
constructor
· rintro ⟨⟨q, hq, rfl⟩, hy⟩
by_contra hne
apply hy
refine mem_iUnion.mpr ⟨i, interior_maximal ?_ (isOpen_nbhd_diff _ _) ⟨hq, ?_⟩⟩
· intro w hw
exact hrU ⟨w, hw.1, rfl⟩
· intro he
exact hne (congrArg DeletedDiscPlane.ofPlane he)
· intro he
rw [mem_singleton_iff] at he
subst y
exact ⟨⟨_, mem_nbhd_self zero_notMem _ hr, rfl⟩, hz⟩
theorem countablyMetacompactSpace
TopologyByExample.DeletedDiameter.countablyMetacompactSpace
The deleted diameter plane is countably metacompact.
theorem countablyMetacompactSpace : CountablyMetacompactSpace DeletedDiameter
Proof
:= by
classical
refine ⟨fun U hUc hUo hU ↦ ?_⟩
let C := U
let : Countable C := hUc.to_subtype
let V : C → Set DeletedDiameter := fun c ↦ c.val
have hVo (c : C) : IsOpen (V c) := hUo c c.property
have hV : ⋃ c, V c = univ := by
apply eq_univ_of_forall
intro x
obtain ⟨u, hu, hxu⟩ := mem_sUnion.mp (hU ▸ mem_univ x)
exact mem_iUnion.mpr ⟨⟨u, hu⟩, hxu⟩
let E (c : C) : Set (ℝ × ℝ) := interior (DeletedDiscPlane.ofPlane ⁻¹' V c)
have hex (c : C) : ∃ F : ℕ → Set (ℝ × ℝ),
(∀ n, IsClosed (F n)) ∧ ⋃ n, F n = E c := by
obtain ⟨G, hGo, hG⟩ := isOpen_interior.isClosed_compl.isGδ.eq_iInter_nat
(s := (E c)ᶜ)
exact ⟨fun n ↦ (G n)ᶜ, fun n ↦ (hGo n).isClosed_compl,
by rw [← compl_iInter, ← hG, compl_compl]⟩
choose F hFc hFE using hex
let H (c : C) (n : ℕ) : Set DeletedDiameter := DeletedDiscPlane.toPlane ⁻¹' F c n
have hHc (c : C) (n : ℕ) : IsClosed (H c n) :=
(hFc c n).preimage continuous_toPlane
have hHV (c : C) (n : ℕ) : H c n ⊆ V c := by
intro x hx
have hx' : DeletedDiscPlane.toPlane x ∈ E c := by
rw [← hFE c]
exact mem_iUnion.mpr ⟨n, hx⟩
exact @interior_subset (ℝ × ℝ) _ (DeletedDiscPlane.ofPlane ⁻¹' V c)
(DeletedDiscPlane.toPlane x) hx'
have he : (⋃ c, ⋃ n, H c n)ᶜ =
{z : DeletedDiameter | DeletedDiscPlane.toPlane z ∉ ⋃ c, E c} := by
ext z
simp only [mem_compl_iff, mem_iUnion, H, mem_ofPred_eq]
simp only [← hFE, mem_iUnion]
rfl
have hR := closed_discrete_compl_interiors V hVo hV
rw [← he] at hR
obtain ⟨W, hWo, hW, hWf, hWV⟩ :=
pointFinite_refinement_of_countable_closed_refinement_discrete_remainder
V hVo hV H hHc hHV hR.1 hR.2
refine ⟨W, hWo, hW, hWf, fun w hw ↦ ?_⟩
obtain ⟨c, hc⟩ := hWV w hw
exact ⟨c, c.property, hc⟩
On this site: Deleted diameter topology is countably metacompact