Definition 7.4.1. A sequence {xₙ} in a metric space is Cauchy when for
every ε > 0 there exists M ∈ ℕ such that dist (xₙ) (xₖ) < ε for all
n, k ≥ M.
Equations
Instances For
The book's notion of a Cauchy sequence agrees with the standard filter based definition in mathlib.
Proposition 7.4.2. A sequence in a metric space that converges to a point is Cauchy.
Definition 7.4.3. A metric space is complete (Cauchy-complete) when every Cauchy sequence converges to a point of the space.
Equations
- metricCauchyCompleteSpace X = ∀ (x : ℕ → X), MetricCauchySequence X x → ∃ (l : X), Filter.Tendsto x Filter.atTop (nhds l)
Instances For
The book's sequential notion of completeness is equivalent to the standard
CompleteSpace typeclass in mathlib.
Proposition 7.4.4 (sequential version). Every Cauchy sequence in
ℝ^n converges.
Proposition 7.4.4. The Euclidean space ℝ^n with its standard metric is
complete.
Proposition 7.4.5. The metric space of continuous real-valued functions on
the closed interval [a,b], equipped with the uniform norm metric, is
complete.
Proposition 7.4.6. If (X,d) is a complete metric space and E ⊆ X is
closed, then E is complete with the subspace metric.
Definition 7.4.7. A subset K of a metric space is compact when every
open cover of K admits a finite subcover.
Equations
Instances For
The book's finite-subcover compactness property agrees with IsCompact.
Example 7.4.8. In ℝ with the standard metric: (i) the whole space ℝ
is not compact; (ii) the open interval (0,1) is not compact; (iii) the
singleton {0} is compact.
Proposition 7.4.9. In a metric space, a compact subset is closed and bounded.
Lemma 7.4.10 (Lebesgue covering lemma). If every sequence in a subset K
of a metric space has a subsequence converging to a point of K, then for
every open cover of K there exists δ > 0 such that every x ∈ K has some
open set in the cover containing the ball B(x, δ).
Theorem 7.4.11. In a metric space, a subset is compact if and only if every sequence in the subset has a subsequence converging to a point of the subset.
Example 7.4.12. A closed bounded interval [a,b] ⊆ ℝ is sequentially
compact: every sequence in Set.Icc a b admits a convergent subsequence with
limit still in the interval.
Proposition 7.4.13. In a metric space, a closed subset of a compact set is compact.
Theorem 7.4.14 (Heine--Borel). A closed bounded subset K ⊆ ℝ^n is
compact.
Example 7.4.15. Let X be an infinite set endowed with the discrete
metric dist x y = 1 for x ≠ y. Then:
(i) the space is complete;
(ii) every subset K ⊆ X is closed and bounded;
(iii) a subset K is compact if and only if it is finite;
(iv) the Lebesgue covering lemma holds for any K with δ = 1/2, even when
K is not compact.