Lean library · module TopologyByExample.Spaces.IrrationalCoordinateCategory
Compactness and category of the irrational-coordinate 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.
theorem dense_set
TopologyByExample.IrrationalCoordinatePlane.dense_set
The irrational-coordinate plane is dense in the real plane.
theorem dense_set : Dense irrationalCoordinateSet
Proof
:= by
have h : Dense ({x : ℝ | Irrational x} ×ˢ (univ : Set ℝ)) :=
dense_irrational.prod dense_univ
have hsub : ({x : ℝ | Irrational x} ×ˢ (univ : Set ℝ)) ⊆ irrationalCoordinateSet := by
intro p hp
exact Or.inl hp.1
exact Dense.mono hsub h
theorem dense_compl
TopologyByExample.IrrationalCoordinatePlane.dense_compl
The rational pairs are also dense in the real plane.
theorem dense_compl : Dense irrationalCoordinateSetᶜ
Proof
:= by
apply (Rat.denseRange_cast.prodMap Rat.denseRange_cast).mono
rintro p ⟨⟨a, b⟩, rfl⟩ hp
rcases hp with hp | hp
· exact a.not_irrational hp
· exact b.not_irrational hp
theorem not_mem_nhds_of_isCompact
TopologyByExample.IrrationalCoordinatePlane.not_mem_nhds_of_isCompact
No compact subset contains a neighbourhood of any point.
theorem not_mem_nhds_of_isCompact {K : Set IrrationalCoordinatePlane}
(hK : IsCompact K) (x : IrrationalCoordinatePlane) : K ∉ 𝓝 x
Proof
:= by
intro hx
obtain ⟨t, ht, htK⟩ := (mem_nhds_subtype _ _ _).mp hx
obtain ⟨U, hUt, hU, hxU⟩ := mem_nhds_iff.mp ht
have hc : IsClosed (Subtype.val '' K : Set (ℝ × ℝ)) :=
(hK.image continuous_subtypeVal).isClosed
have hsub : U ⊆ Subtype.val '' K := by
calc
U ⊆ closure (U ∩ irrationalCoordinateSet) := dense_set.open_subset_closure_inter hU
_ ⊆ Subtype.val '' K := closure_minimal (fun y hy ↦
⟨⟨y, hy.2⟩, htK (hUt hy.1), rfl⟩) hc
obtain ⟨y, hyU, hyC⟩ := dense_compl.inter_open_nonempty U hU ⟨x.val, hxU⟩
obtain ⟨z, _, hz⟩ := hsub hyU
exact hyC (hz ▸ z.property)
theorem interior_compact_eq_empty
TopologyByExample.IrrationalCoordinatePlane.interior_compact_eq_empty
Every compact subset has empty interior.
theorem interior_compact_eq_empty {K : Set IrrationalCoordinatePlane} (hK : IsCompact K) :
interior K = ∅
Proof
:= by
apply eq_empty_iff_forall_notMem.mpr
intro x hx
exact not_mem_nhds_of_isCompact hK x (mem_interior_iff_mem_nhds.mp hx)
On this site: Plane with rational pairs removed: Compact subsets have empty interior
theorem not_weaklyLocallyCompactSpace
TopologyByExample.IrrationalCoordinatePlane.not_weaklyLocallyCompactSpace
The space is not weakly locally compact.
theorem not_weaklyLocallyCompactSpace : ¬ WeaklyLocallyCompactSpace IrrationalCoordinatePlane
Proof
:= by
intro h
obtain ⟨x⟩ := (inferInstance : Nonempty IrrationalCoordinatePlane)
obtain ⟨K, hK, hx⟩ := exists_compact_mem_nhds x
exact not_mem_nhds_of_isCompact hK x hx
On this site: The plane with rational pairs removed is not weakly locally compact
theorem not_isMeagre_univ
TopologyByExample.IrrationalCoordinatePlane.not_isMeagre_univ
The space is of second category.
theorem not_isMeagre_univ : ¬ IsMeagre (univ : Set IrrationalCoordinatePlane)
Proof
:=
not_isMeagre_of_isOpen isOpen_univ univ_nonempty
theorem not_sigmaCompactSpace
TopologyByExample.IrrationalCoordinatePlane.not_sigmaCompactSpace
The space is not a countable union of compact subsets.
theorem not_sigmaCompactSpace : ¬ SigmaCompactSpace IrrationalCoordinatePlane
Proof
:= by
intro h
obtain ⟨K, hK, hcover⟩ := SigmaCompactSpace.exists_compact_covering
(X := IrrationalCoordinatePlane)
apply not_isMeagre_univ
rw [← hcover]
apply isMeagre_iUnion
intro n
apply IsNowhereDense.isMeagre
change interior (closure (K n)) = ∅
rw [(hK n).isClosed.closure_eq]
exact interior_compact_eq_empty (hK n)
On this site: The plane with rational pairs removed is not σ-compact