Cauchy Criterion

lean4-proofanalysisvisualization
ε>0  N:  m,nN    aman<ε\forall\varepsilon>0\;\exists N:\; m,n \geq N \implies |a_m - a_n| < \varepsilon

The Cauchy criterion reframes convergence: instead of asking whether a sequence approaches some target value, it asks whether the sequence's terms eventually cluster among themselves. This is powerful because we can verify the criterion without knowing the limit — and in complete spaces, that is enough to guarantee one exists.

Statement

A sequence (an)(a_n) in a metric space (X,d)(X, d) is a Cauchy sequence if

ε>0,  NN:m,nN    d(am,an)<ε.\forall \varepsilon > 0,\; \exists N \in \mathbb{N} : m, n \geq N \implies d(a_m, a_n) < \varepsilon.

Theorem. Every Cauchy sequence in a complete metric space converges. Conversely, every convergent sequence is Cauchy.

A metric space in which every Cauchy sequence converges is called complete. The real line R\mathbb{R} is complete; the rationals Q\mathbb{Q} are not.

Visualization

The partial sums sn=k=1n1k2s_n = \sum_{k=1}^n \frac{1}{k^2} form a Cauchy sequence in Q\mathbb{Q} that converges to π2/6Q\pi^2/6 \notin \mathbb{Q}:

  n  |  s_n (partial sum of 1/k²)  |  |s_n - s_{n-1}| = 1/n²
-----|-----------------------------|-----------------------
  1  |  1.000 000                  |  —
  2  |  1.250 000                  |  0.250 000
  5  |  1.463 611                  |  0.040 000
 10  |  1.549 768                  |  0.010 000
 20  |  1.596 163                  |  0.002 500
 50  |  1.625 133                  |  0.000 400
100  |  1.634 984                  |  0.000 100

The increments 1/n21/n^2 go to zero, so for m,nNm, n \geq N:

smsnk=N1k21N0.|s_m - s_n| \leq \sum_{k=N}^{\infty} \frac{1}{k^2} \approx \frac{1}{N} \to 0.

In Q\mathbb{Q} this sequence is Cauchy but has no rational limit — the series sums to π2/6\pi^2/6, an irrational. In R\mathbb{R} (which is complete) it does converge.

A contrasting non-Cauchy sequence: an=(1)na_n = (-1)^n oscillates between 1-1 and 11, so an+1an=2|a_{n+1} - a_n| = 2 for every nn — never small.

Proof Sketch

(Cauchy \Rightarrow convergent in R\mathbb{R}.) A Cauchy sequence is bounded (apply the criterion with ε=1\varepsilon = 1 to get a bound beyond some NN, then take the max with the first NN terms). By Bolzano-Weierstrass it has a convergent subsequence ankLa_{n_k} \to L. The full sequence then converges to LL: given ε>0\varepsilon > 0, pick NN so that d(am,an)<ε/2d(a_m, a_n) < \varepsilon/2 for m,nNm, n \geq N, and pick kk with nkNn_k \geq N and d(ank,L)<ε/2d(a_{n_k}, L) < \varepsilon/2; then d(an,L)<εd(a_n, L) < \varepsilon.

(Convergent \Rightarrow Cauchy.) If anLa_n \to L, pick NN with d(an,L)<ε/2d(a_n, L) < \varepsilon/2 for nNn \geq N; then d(am,an)d(am,L)+d(L,an)<εd(a_m, a_n) \leq d(a_m, L) + d(L, a_n) < \varepsilon.

Connections

The Cauchy criterion is the internal completeness statement that Monotone ConvergenceMonotone Convergence Theoremf monotone,  supnf(n)<    f(n)supnf(n)f \text{ monotone},\; \sup_n f(n) < \infty \implies f(n) \to \sup_n f(n)A bounded monotone sequence of reals always converges — the supremum is the limitRead more → expresses via order. In normed spaces it leads to the notion of Banach spaces, where the Iterated Function SystemsIterated Function SystemsA=i=1Nfi(A)A = \bigcup_{i=1}^{N} f_i(A)Constructing fractals via contractive affine transformationsRead more → contraction argument (and hence Hausdorff DistanceHausdorff DistancedH(A,B)=max(supaAd(a,B), supbBd(b,A))d_H(A, B) = \max\left(\sup_{a \in A} d(a, B),\ \sup_{b \in B} d(b, A)\right)A metric on non-empty compact sets, foundation for the IFS attractor theoremRead more → completeness) is carried out. The criterion also characterises uniform convergence of function series, which underlies the Liouville theoremLiouville's Theoremf:CC entire,  fC    fconstf : \mathbb{C} \to \mathbb{C} \text{ entire},\; |f| \leq C \implies f \equiv \text{const}A bounded entire function on ℂ must be constant — complex differentiability is far more rigid than real differentiabilityRead more → proof via the Cauchy integral formula.

Lean4 Proof

import Mathlib.Topology.EMetricSpace.Basic
import Mathlib.Topology.MetricSpace.Basic

open Filter Topology

/-- Every Cauchy sequence in a complete metric space converges. -/
theorem cauchy_complete {X : Type*} [MetricSpace X] [CompleteSpace X]
    {x :   X} (hx : CauchySeq x) :
     a, Tendsto x atTop (𝓝 a) :=
  cauchySeq_tendsto_of_complete hx