Lean library · module TopologyByExample.Theorems.DeletedRadiusMetacompact
Metacompactness of the deleted radius plane
This file was written by Claude (Anthropic's AI model) and Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
theorem countable_compl_interiors
TopologyByExample.DeletedRadius.countable_compl_interiors
Only countably many points of an open cover miss all Euclidean interiors.
theorem countable_compl_interiors {ι : Type*} (U : ι → Set DeletedRadius)
(hU : ∀ i, IsOpen (U i)) (hcover : ⋃ i, U i = univ) :
{z : DeletedRadius | DeletedDiscPlane.toPlane z ∉
⋃ i, interior (DeletedDiscPlane.ofPlane ⁻¹' U i)}.Countable
Proof
:= by
let S := Ioi (0 : ℝ)
let s : Set DeletedRadius := univ
have hsU : s ⊆ ⋃ i, U i := by rw [hcover]
set E : ι → Set (ℝ × ℝ) := fun i ↦ interior (DeletedDiscPlane.ofPlane ⁻¹' U i)
have hcov : ∀ z ∈ s, ∃ i, ∃ r > 0,
(DeletedDiscPlane.ofPlane '' nbhd S (DeletedDiscPlane.toPlane z) r : Set DeletedRadius) ⊆
U i := by
intro z hz
obtain ⟨i, hi⟩ := mem_iUnion.1 (hsU hz)
obtain ⟨r, hr, hrU⟩ := hU i z hi
exact ⟨i, r, hr, hrU⟩
let z₀ : DeletedRadius := DeletedDiscPlane.ofPlane (0, 0)
have hz₀ : z₀ ∈ s := mem_univ _
have : Nonempty ι := ⟨(hcov z₀ hz₀).choose⟩
choose! f r hr hsub using hcov
set R := {z ∈ s | DeletedDiscPlane.toPlane z ∉ ⋃ i, E i}
-- the points of `R` lie in no deleted punctured neighbourhood of another one
have key : ∀ z ∈ R, ∀ w ∈ R, w ≠ z →
DeletedDiscPlane.toPlane w ∉ nbhd S (DeletedDiscPlane.toPlane z) (r z) := by
intro z hz w hw hne hwz
refine hw.2 (mem_iUnion.2 ⟨f z, interior_maximal ?_ (isOpen_nbhd_diff _ _) ⟨hwz, ?_⟩⟩)
· intro q hq
exact hsub z hz.1 ⟨q, hq.1, rfl⟩
· exact fun h ↦ hne (DeletedDiscPlane.toPlane_injective h)
have hR : R.Countable := by
have hRU : R = ⋃ n : ℕ, {z ∈ R | 1 / ((n : ℝ) + 1) < r z} := by
ext z
simp only [mem_iUnion, mem_sep_iff]
refine ⟨fun hz ↦ ?_, fun ⟨_, hz, _⟩ ↦ hz⟩
obtain ⟨n, hn⟩ := exists_nat_one_div_lt (hr z hz.1)
exact ⟨n, hz, hn⟩
rw [hRU]
refine countable_iUnion fun n ↦ ?_
set ρ : ℝ := 1 / ((n : ℝ) + 1)
refine Set.PairwiseDisjoint.countable_of_isOpen
(s := fun z : DeletedRadius ↦ Metric.ball (DeletedDiscPlane.toPlane z) (ρ / 4)) ?_
(fun _ _ ↦ Metric.isOpen_ball)
(fun _ _ ↦ ⟨_, Metric.mem_ball_self (by positivity)⟩)
intro z hz w hw hne
refine Set.disjoint_left.2 fun q hqz hqw ↦ ?_
have hd : dist (DeletedDiscPlane.toPlane z) (DeletedDiscPlane.toPlane w) < ρ / 2 := by
rw [Metric.mem_ball] at hqz hqw
linarith [dist_triangle_left (DeletedDiscPlane.toPlane z) (DeletedDiscPlane.toPlane w) q]
have hwz := key z hz.1 w hw.1 (Ne.symm hne)
have hzw := key w hw.1 z hz.1 hne
have h1 : DeletedDiscPlane.toPlane w ∈ deleted S (DeletedDiscPlane.toPlane z) := by
by_contra h
exact hwz ⟨mem_disc_of_dist_lt hz.2.le hd, h⟩
have h2 : DeletedDiscPlane.toPlane z ∈ deleted S (DeletedDiscPlane.toPlane w) := by
by_contra h
exact hzw ⟨mem_disc_of_dist_lt hw.2.le (by rwa [dist_comm]), h⟩
have a := h1.2
have b := h2.2
simp only [S, mem_Ioi, sub_pos] at a b
exact lt_asymm a b
simpa only [R, s, mem_univ, true_and] using hR
theorem metacompactSpace
TopologyByExample.DeletedRadius.metacompactSpace
The deleted radius plane is metacompact.
theorem metacompactSpace : MetacompactSpace DeletedRadius
Proof
:= by
classical
let : HereditarilyLindelofSpace DeletedRadius := hereditarilyLindelofSpace
refine ⟨fun U hUo hU ↦ ?_⟩
obtain ⟨C, hCU, hCc, hCcov⟩ := isLindelof_univ.elim_countable_subcover_image
(c := id) hUo (by
simpa only [id, ← sUnion_eq_biUnion, hU] using
(subset_univ (univ : Set DeletedRadius)))
let : Countable C := hCc.to_subtype
let V : C → Set DeletedRadius := fun c ↦ c.val
have hVo (c : C) : IsOpen (V c) := hUo c (hCU c.property)
have hV : ⋃ c, V c = univ := by
apply eq_univ_of_forall
intro x
obtain ⟨u, hu, hxu⟩ := mem_iUnion₂.mp (hCcov (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 DeletedRadius := 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 hR : (⋃ c, ⋃ n, H c n)ᶜ.Countable := by
have he : (⋃ c, ⋃ n, H c n)ᶜ =
{z : DeletedRadius | 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
rw [he]
exact countable_compl_interiors V hVo hV
obtain ⟨W, hWo, hW, hWf, hWV⟩ :=
pointFinite_refinement_of_countable_closed_refinement_countable_remainder
V hVo hV H hHc hHV hR
refine ⟨W, hWo, hW, hWf, fun w hw ↦ ?_⟩
obtain ⟨c, hc⟩ := hWV w hw
exact ⟨c, hCU c.property, hc⟩
On this site: Deleted radius topology is metacompact