Lean library · module TopologyByExample.Spaces.NovakCompactSets
Compact subsets of Novak'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 finite_of_closed_subset
TopologyByExample.NovakSpace.finite_of_closed_subset
Every ambient closed subset contained in Novak's underlying set is finite.
theorem finite_of_closed_subset {K : Set (Ultrafilter ℕ)} (hK : IsClosed K)
(hsub : K ⊆ underlying) : K.Finite
Proof
:= by
classical
by_contra hi
have hI : K.Infinite := hi
have hJ : (extension '' K).Infinite := hI.image extension_involutive.injective.injOn
let f := hJ.natEmbedding
let B : Set (Ultrafilter ℕ) := range (fun n ↦ (f n).val)
have hB : B.Infinite := infinite_range_of_injective (Subtype.val_injective.comp f.injective)
have hBJ : B ⊆ extension '' K := by rintro _ ⟨n, rfl⟩; exact (f n).property
obtain ⟨p, hp, hpc, -⟩ := meets_accumulation ⟨B, countable_range _, hB⟩
have hjc : IsClosed (extension '' K) := homeomorph.isClosedMap _ hK
obtain ⟨q, hqK, hqp⟩ := (closure_minimal hBJ hjc) hpc
have hq : q ∈ selected := by
rcases hsub hqK with h | h
· have hpp : p ∈ principals := hqp ▸ (extension_mem_principals_iff q).mpr h
exact False.elim (disjoint_left.mp selected_disjoint_principals hp hpp)
· exact h
exact disjoint_left.mp selected_disjoint_image hp ⟨q, hq, hqp⟩
theorem finite_of_isCompact
TopologyByExample.NovakSpace.finite_of_isCompact
Every compact subset of Novak's space is finite.
theorem finite_of_isCompact {K : Set Carrier} (hK : IsCompact K) : K.Finite
Proof
:= by
have hf : (Subtype.val '' K : Set (Ultrafilter ℕ)).Finite :=
finite_of_closed_subset (hK.image continuous_subtypeVal).isClosed
(by rintro _ ⟨x, _, rfl⟩; exact x.property)
exact hf.of_finite_image Subtype.val_injective.injOn
On this site: Novak space: Compact subsets are finite