Lean library · module TopologyByExample.Theorems.MysiorMetacompact
Metacompactness of Mysior's space
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
TopologyByExample.Mysior.metacompactSpace
Mysior's space is metacompact.
theorem metacompactSpace : MetacompactSpace Mysior
Proof
:= by
classical
let K : Mysior → Set Mysior
| infty => univ
| mk x y => if y = 0 then wedge x else {mk x y}
have hK (z : Mysior) : IsOpen (K z) ∧ z ∈ K z := by
cases z with
| infty => exact ⟨isOpen_univ, mem_univ _⟩
| mk x y =>
by_cases hy : y = 0
· subst y
simpa only [K, ite_true] using ⟨isOpen_wedge x, mk_mem_wedge_self x⟩
· simp only [K, hy, ite_false]
exact ⟨isOpen_singleton_mk hy, rfl⟩
have hindex (p : Mysior) : {z : Mysior | p ∈ K z}.Finite := by
cases p with
| infty =>
apply (finite_singleton infty).subset
intro z hz
change infty ∈ K z at hz
cases z with
| infty => exact rfl
| mk x y =>
by_cases hy : y = 0
· exact (infty_notMem_wedge x (by simpa only [K, hy, ite_true] using hz)).elim
· have h : infty = mk x y := by simpa only [K, hy, ite_false, mem_singleton_iff] using hz
cases h
| mk a b =>
apply (Set.toFinite ({infty, mk a 0, mk (a - b) 0, mk a b} : Set Mysior)).subset
intro z hz
change mk a b ∈ K z at hz
cases z with
| infty => simp
| mk x y =>
by_cases hy : y = 0
· subst y
have hw : mk a b ∈ wedge x := by simpa only [K, ite_true] using hz
rcases (mk_mem_wedge.mp hw).2 with h | h
· simp [h]
· have hx : x = a - b := by linarith
simp [hx]
· have he : mk a b = mk x y := by
simpa only [K, hy, ite_false, mem_singleton_iff] using hz
rw [← he]
simp
refine ⟨fun U hUo hU ↦ ?_⟩
have hex (z : Mysior) : ∃ u ∈ U, z ∈ u := mem_sUnion.mp (hU ▸ mem_univ z)
choose u hu hzu using hex
let v (z : Mysior) := u z ∩ K z
refine ⟨range v, ?_, ?_, ?_, ?_⟩
· rintro _ ⟨z, rfl⟩
exact (hUo _ (hu z)).inter (hK z).1
· apply eq_univ_of_forall
intro z
exact mem_sUnion.mpr ⟨v z, mem_range_self z, hzu z, (hK z).2⟩
· intro x
apply Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
apply ((hindex x).image v).subset
rintro _ ⟨⟨_, z, rfl⟩, hx, rfl⟩
exact ⟨z, hx.2, rfl⟩
· rintro _ ⟨z, rfl⟩
exact ⟨u z, hu z, inter_subset_left⟩
On this site: Mysior's space is metacompact