Lean library · module TopologyByExample.Spaces.Rationals
The rational numbers are not weakly locally compact
Mathlib shows that a compact subset of ℚ has empty interior
(Rat.interior_compact_eq_empty); so no point of ℚ has a compact neighbourhood.
This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
- Mathlib.Topology.Algebra.Module.PerfectSpace
- Mathlib.Topology.Instances.RatLemmas
- TopologyByExample.Theorems.Category
- TopologyByExample.Theorems.CompactnessVariants
- TopologyByExample.Theorems.ConnectednessExtremes
- TopologyByExample.Theorems.CountableChainCondition
- TopologyByExample.Theorems.Disconnectedness
- TopologyByExample.Theorems.GridProperties
- TopologyByExample.Theorems.Paracompactness
- TopologyByExample.Theorems.SeparationVariants
theorem not_weaklyLocallyCompactSpace
TopologyByExample.Rationals.not_weaklyLocallyCompactSpace
ℚ is not weakly locally compact: a compact neighbourhood of 0 would have nonempty
interior.
theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace ℚ
Proof
:= fun h ↦ by
obtain ⟨K, hK, hK0⟩ := h.exists_compact_mem_nhds (0 : ℚ)
rw [← mem_interior_iff_mem_nhds, Rat.interior_compact_eq_empty hK] at hK0
exact hK0
On this site: The space of rational numbers is not weakly locally compact
Further properties
theorem not_hasIsolatedPoint
TopologyByExample.Rationals.not_hasIsolatedPoint
The rationals have no isolated point.
theorem not_hasIsolatedPoint : ¬HasIsolatedPoint ℚ
Proof
:=
hasIsolatedPoint_iff_not_perfectSpace.not_left.2 inferInstance
On this site: The space of rational numbers has no isolated point