Documentation

Books.IntroductiontoRealAnalysisVolumeI_JiriLebl_2025.Chapters.Chap07.section04

def MetricCauchySequence (X : Type u) [PseudoMetricSpace X] (x : X) :

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
    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.

        See also: Example 7.4.8 (ii).

        See also: Example 7.4.8 (iii).

        theorem compact_isClosed {X : Type u} [PseudoMetricSpace X] [T2Space X] {K : Set X} (hK : IsCompact K) :

        Proposition 7.4.9. In a metric space, a compact subset is closed and bounded.

        theorem lebesgue_covering_lemma {X : Type u} [PseudoMetricSpace X] {K : Set X} (hseq : ∀ (u : X), (∀ (n : ), u n K)lK, ∃ (φ : ), StrictMono φ Filter.Tendsto (u φ) Filter.atTop (nhds l)) {I : Type v} (U : ISet X) (hUopen : ∀ (i : I), IsOpen (U i)) (hcover : K ⋃ (i : I), U i) :
        δ > 0, xK, ∃ (i : I), Metric.ball x δ U i

        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.

        theorem compact_of_closed_subset {X : Type u} [PseudoMetricSpace X] {K E : Set X} (hK : IsCompact K) (hE : IsClosed E) (hEK : E K) :

        Proposition 7.4.13. In a metric space, a closed subset of a compact set is compact.

        theorem heineBorel_closed_bounded {n : } {K : Set (EuclideanSpace (Fin n))} (hclosed : IsClosed K) (hbounded : Bornology.IsBounded K) :

        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.

        theorem discreteMetric_dist_lt_one_iff_eq {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) {x y : X} :
        dist x y < 1 x = y
        theorem discreteMetric_ball_eq_singleton {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) (x : X) {r : } (hrpos : 0 < r) (hrle : r 1) :
        theorem discreteMetric_cauchySeq_eventually_const {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) (u : X) (hu : CauchySeq u) :
        ∃ (x0 : X), u =ᶠ[Filter.atTop] fun (x : ) => x0
        theorem discreteMetric_complete {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) :
        theorem discreteMetric_closed_and_bounded {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) (hXinf : Infinite X) (K : Set X) :
        theorem discreteMetric_compact_iff_finite {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) (K : Set X) :
        theorem discreteMetric_lebesgue_covering {X : Type u} [PseudoMetricSpace X] [DecidableEq X] (hdiscrete : ∀ (x y : X), dist x y = if x = y then 0 else 1) (K : Set X) {I : Type v} (U : ISet X) (hUopen : ∀ (i : I), IsOpen (U i)) (hcover : K ⋃ (i : I), U i) (x : X) :
        x K∃ (i : I), Metric.ball x (1 / 2) U i