Limit points, open-cover compactness, and -cells
DefinitionRudin_ch02_topologyThree notions from Rudin's Chapter 2 that have no directly reusable counterpart in Mathlib in his exact shape. (i) is a limit point of if every neighbourhood of contains a point with (Definition 2.18(b)); note that this is strictly stronger than , since isolated points of are excluded. (ii) is compact if every family of open sets whose union contains has a finite subfamily whose union still contains (Definitions 2.31, 2.32). (iii) The -cell determined by is (Section 2.17). All other notions of the chapter — open, closed, closure, perfect, bounded, connected — are taken from Mathlib.
import Mathlib
/-!
# Rudin, Chapter 2 — metric-space vocabulary
Definitions transcribed from Walter Rudin, *Principles of Mathematical Analysis*, 3rd edition,
Chapter 2 (Definitions 2.18, 2.31, 2.32 and Section 2.17).
Mathlib's `Metric.ball`, `IsOpen`, `IsClosed`, `closure`, `interior`, `Perfect`, `IsCompact`,
`IsConnected` and `Bornology.IsBounded` are the same notions Rudin defines in 2.18, 2.26,
2.32 and 2.45, and are reused. Three items have no directly reusable Mathlib counterpart in
Rudin's exact shape and are introduced here: his metric-space notion of *limit point*, his
*open-cover* definition of compactness (Mathlib's `IsCompact` is the filter formulation, and
the agreement of the two is itself one of the mission's milestones), and the *k-cell*.
-/
namespace Rudin
variable {X : Type*} [MetricSpace X]
/-- Rudin, Definition 2.18(b): `p` is a **limit point** of the set `E` if every neighbourhood
of `p` contains a point `q ≠ p` with `q ∈ E`. -/
def IsLimitPoint (p : X) (E : Set X) : Prop :=
∀ r : ℝ, 0 < r → ∃ q ∈ E, q ≠ p ∧ dist q p < r
/-- Rudin, Definitions 2.31 and 2.32: `K` is **compact** if every open cover of `K` contains a
finite subcover. A cover is given here as a family `𝒢` of open sets whose union contains `K`,
and a finite subcover as a finite subfamily of `𝒢` whose union still contains `K`. -/
def IsCoverCompact (K : Set X) : Prop :=
∀ 𝒢 : Set (Set X), (∀ G ∈ 𝒢, IsOpen G) → K ⊆ ⋃₀ 𝒢 →
∃ ℱ ⊆ 𝒢, ℱ.Finite ∧ K ⊆ ⋃₀ ℱ
/-- Rudin, Section 2.17: the **k-cell** with corners `a` and `b` is the set of points
`x ∈ ℝ^k` with `a j ≤ x j ≤ b j` for every coordinate `j`. -/
def kCell (k : ℕ) (a b : Fin k → ℝ) : Set (EuclideanSpace ℝ (Fin k)) :=
{x | ∀ j, a j ≤ x j ∧ x j ≤ b j}
end RudinRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Three notions are defined, the first two relative to an arbitrary metric space (a type with a distance function satisfying the usual axioms, including ).
Limit point. For a point and a subset , " is a limit point of " means: for every real there exists with , and . The witness is required to lie in but not required to be distinct from in any sense other than ; note that itself need not belong to .
Cover-compactness. For a subset , " is cover-compact" means: for every family of subsets of such that every member of is open and , there exists a subfamily which is finite and still satisfies . The covers quantified over are arbitrary sets of open subsets of the ambient space , not merely relatively open subsets of .
-cell. For a natural number and two families , the -cell with corners and is the subset of
No hypothesis is imposed, so the cell is empty whenever for some ; for the condition is vacuous and the cell is the whole one-point space . These are definitions only; nothing is asserted about them.
Confirmed by the mission captain (proposal self-audit).