Lean library · module TopologyByExample.Spaces.Rationals

The rational numbers are not weakly locally compact

Source file

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

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