ACE 328/Chapter 6

Completeness and Cauchy Sequences

Cauchy sequences capture the intuitive notion of "eventually close" without requiring a limit. Complete spaces are those in which every Cauchy sequence converges.

Completeness is the property that distinguishes the real numbers from the rationals: every Cauchy sequence converges. It is the property that underlies fixed-point theorems, the construction of solutions to differential equations, and the Baire Category Theorem — an astonishingly powerful tool that, among other things, tells us that a "typical" continuous function on [a,b][a, b] is nowhere differentiable. This chapter develops completeness systematically: definition and first examples, the Banach fixed-point (contraction mapping) theorem with its proof and applications, Cantor's intersection theorem, a brief discussion of metric completions, and the Baire Category Theorem.


Cauchy Sequences

We begin by recalling the definition of a Cauchy sequence and its basic properties.

DefinitionCauchy Sequence

A sequence (xn)n1(x_n)_{n \geq 1} in a metric space (X,d)(X, d) is a Cauchy sequence if for every ε>0\varepsilon > 0 there exists N1N \geq 1 such that d(xn,xm)<εfor all n,mN.d(x_n, x_m) < \varepsilon \quad \text{for all } n, m \geq N.

Remark.

Intuition: A Cauchy sequence is one whose terms cluster together: beyond some index, all pairs of terms are arbitrarily close. The notion is "internal" — it uses only the sequence itself, without reference to a candidate limit. This makes it powerful: we can check whether a sequence should converge without knowing its limit in advance.

TheoremEvery Convergent Sequence is Cauchy

Let (X,d)(X, d) be a metric space. If xnxx_n \to x, then (xn)(x_n) is Cauchy.

TheoremCauchy Sequences are Bounded

Every Cauchy sequence in a metric space is bounded.

The converse of "convergent implies Cauchy" is not true in every metric space — it is the content of the following definition.


Complete Metric Spaces

DefinitionComplete Metric Space

A metric space (X,d)(X, d) is complete if every Cauchy sequence in XX converges to a point of XX.

Remark.

Intuition: Completeness is the absence of "holes." If a sequence bunches up, there is actually a point inside the space where it bunches. Non-complete spaces have a ghost limit just outside; completion (discussed below) fills in these ghosts.

Examples and Non-Examples

TheoremThe Real Line is Complete

The real line R\mathbb{R} with the Euclidean metric is complete.

TheoremEuclidean Space is Complete

Euclidean space Rd\mathbb{R}^d is complete.

ExampleThe Rationals are Not Complete

The rationals Q\mathbb{Q} with the standard metric d(x,y)=xyd(x, y) = |x - y| form a metric space that is not complete. For example, the sequence an=(1+1n)nQa_n = \left(1 + \frac{1}{n}\right)^n \in \mathbb{Q} is Cauchy (it is convergent in R\mathbb{R}, hence Cauchy there, hence Cauchy in Q\mathbb{Q}), but its would-be limit ee is irrational, so the sequence does not converge in Q\mathbb{Q}.

ExampleOpen Intervals are Not Complete

The space X=(0,1)X = (0, 1) with d(x,y)=xyd(x, y) = |x - y| is not complete: an=1/na_n = 1/n is Cauchy but its limit 00 is not in XX. This illustrates that completeness depends on both the underlying set and the metric. Removing the endpoints creates "holes."

TheoremA Closed Subset of a Complete Metric Space is Complete

Let (X,d)(X, d) be complete and FXF \subseteq X closed. Then (F,dF)(F, d|_F) is complete.

TheoremA Complete Subspace is Closed

Let (X,d)(X, d) be a metric space and YXY \subseteq X a subset such that (Y,dY)(Y, d|_Y) is complete. Then YY is closed in XX.

The Space of Continuous Functions

One of the most useful examples of a complete metric space is the space of continuous functions with the sup norm.

TheoremThe Space of Continuous Functions is Complete

Let C([a,b])={f:[a,b]R:f is continuous}C([a,b]) = \{f : [a,b] \to \mathbb{R} : f \text{ is continuous}\} with the sup metric d(f,g)=fg=supx[a,b]f(x)g(x).d_\infty(f, g) = \|f - g\|_\infty = \sup_{x \in [a,b]} |f(x) - g(x)|. Then (C([a,b]),d)(C([a,b]), d_\infty) is a complete metric space.

Remark.

Intuition: Convergence in the sup metric is uniform convergence: fnff_n \to f iff supxfn(x)f(x)0\sup_x |f_n(x) - f(x)| \to 0. The theorem says that a uniformly Cauchy sequence of continuous functions has a continuous limit. This is why the sup norm is such a useful tool in analysis: completeness gives us a stable playground for approximations.


The Banach Fixed-Point Theorem

A fixed point of a map T:XXT : X \to X is a point xx with T(x)=xT(x) = x. The Banach theorem (also known as the contraction mapping principle) is one of the most-applied theorems in all of analysis: it guarantees existence AND uniqueness of a fixed point, and gives an explicit iterative construction with exponential error decay.

DefinitionContraction

Let (X,d)(X, d) be a metric space. A map T:XXT : X \to X is a contraction if there exists K[0,1)K \in [0, 1) such that d(T(x),T(y))Kd(x,y)for all x,yX.d(T(x), T(y)) \leq K \, d(x, y) \quad \text{for all } x, y \in X. The number KK is called a contraction constant.

Remark.

Intuition: A contraction strictly shrinks distances by a uniform factor K<1K < 1. In particular, it is Lipschitz (hence continuous and uniformly continuous). The strictness of K<1K < 1 is essential — with K=1K = 1, the map xx+1x \mapsto x + 1 on R\mathbb{R} shrinks nothing and has no fixed point.

TheoremBanach Fixed-Point Theorem (Contraction Mapping Principle)

Let (X,d)(X, d) be a nonempty complete metric space and T:XXT : X \to X a contraction with contraction constant K[0,1)K \in [0, 1). Then:

(i) TT has a unique fixed point xXx^* \in X.

(ii) For any initial point x0Xx_0 \in X, the iterates xn+1=T(xn)x_{n+1} = T(x_n) converge to xx^*.

(iii) We have the explicit error bound d(xn,x)Kn1Kd(x0,x1)for all n0.d(x_n, x^*) \leq \frac{K^n}{1 - K} d(x_0, x_1) \quad \text{for all } n \geq 0.

Remark.

Intuition: Pick any starting point, apply TT repeatedly, and the iterates converge exponentially to the unique fixed point — no matter what starting point you chose. The rate KnK^n gives explicit quantitative control. This theorem powers proofs of the implicit function theorem, the Picard-Lindelof theorem for ODEs, and many numerical iteration schemes.

ExampleNewton-Type Iteration for the Square Root of Two

Define T:[1,2][1,2]T : [1, 2] \to [1, 2] by T(x)=12(x+2x)T(x) = \frac{1}{2}\left(x + \frac{2}{x}\right). Calculus shows TT maps [1,2][1, 2] into itself and T(x)=121x212on [1,2],|T'(x)| = \left|\frac{1}{2} - \frac{1}{x^2}\right| \leq \frac{1}{2} \quad \text{on } [1, 2], so TT is a contraction with constant K=1/2K = 1/2 (by the mean value theorem). Since [1,2][1, 2] is closed in R\mathbb{R}, it is complete. By Banach, there is a unique fixed point x[1,2]x^* \in [1, 2]; solving T(x)=xT(x^*) = x^* gives x=2x^* = \sqrt{2}. Starting from x0=1x_0 = 1 produces the familiar Babylonian iteration converging rapidly to 2\sqrt{2}.


Cantor's Intersection Theorem

Another consequence of completeness: nested closed "small" sets have a nonempty intersection.

DefinitionDiameter

The diameter of a nonempty subset AA of a metric space is diam(A)=sup{d(x,y):x,yA}[0,].\mathrm{diam}(A) = \sup \{d(x, y) : x, y \in A\} \in [0, \infty].

TheoremCantor's Intersection Theorem

Let (X,d)(X, d) be a complete metric space and let F1F2F3F_1 \supseteq F_2 \supseteq F_3 \supseteq \cdots be a decreasing sequence of nonempty closed subsets with diam(Fn)0\mathrm{diam}(F_n) \to 0. Then n=1Fn\bigcap_{n=1}^{\infty} F_n consists of exactly one point.

Remark.

Intuition: Completeness guarantees that shrinking nested closed sets capture a unique point. Dropping any of the hypotheses kills the theorem: without completeness (e.g., in Q\mathbb{Q}) the intersection can be empty; without diam(Fn)0\mathrm{diam}(F_n) \to 0 (take Fn=[n,)F_n = [n, \infty) in R\mathbb{R}) the intersection can be empty; without closedness (take Fn=(0,1/n)F_n = (0, 1/n)) the intersection can be empty.


Completion of a Metric Space (Brief)

Every metric space can be embedded in a canonical complete one — its "completion" — which fills in the missing limit points of Cauchy sequences. The standard construction of R\mathbb{R} from Q\mathbb{Q} is one instance.

TheoremExistence of Completion (sketch)

Let (X,d)(X, d) be a metric space. There exists a complete metric space (X~,d~)(\widetilde{X}, \widetilde{d}) and an isometric embedding ι:XX~\iota : X \to \widetilde{X} such that ι(X)\iota(X) is dense in X~\widetilde{X}. The pair (X~,ι)(\widetilde{X}, \iota) is unique up to isometry and is called the completion of XX.

Remark.

Construction sketch. Consider the set of all Cauchy sequences in XX. Define an equivalence relation (xn)(yn)(x_n) \sim (y_n) iff d(xn,yn)0d(x_n, y_n) \to 0. Let X~\widetilde{X} be the set of equivalence classes, with distance d~([xn],[yn])=limnd(xn,yn)\widetilde{d}([x_n], [y_n]) = \lim_n d(x_n, y_n). Embed XX into X~\widetilde{X} by ι(x)=[(x,x,x,)]\iota(x) = [(x, x, x, \dots)]. The details of checking that d~\widetilde{d} is a well-defined metric, that X~\widetilde{X} is complete, and that ι(X)\iota(X) is dense are routine but tedious.

The completion of Q\mathbb{Q} is R\mathbb{R}; the completion of an open interval with the usual metric is its closure.


The Baire Category Theorem

The Baire Category Theorem is one of the deepest consequences of completeness, with applications throughout analysis. We begin with the underlying notion of "topologically small" sets.

DefinitionNowhere Dense, Meagre, Comeagre

Let (X,τ)(X, \tau) be a topological space. A set SXS \subseteq X is:

  • nowhere dense if int(S)=\mathrm{int}(\overline{S}) = \emptyset, equivalently, every nonempty open set contains a nonempty open subset disjoint from SS;
  • meagre (or of first category) if SS is a countable union of nowhere dense sets;
  • non-meagre (or of second category) if SS is not meagre;
  • comeagre (or residual) if XSX \setminus S is meagre, equivalently, SS contains a countable intersection of open dense sets.
Remark.

Intuition: "Meagre" is the topological analogue of "negligible." A nowhere dense set has empty interior even after closing, so it cannot fill up any piece of the space. A meagre set is a countable pile of such small sets. Comeagre sets are their complements — topologically "large." Baire's theorem says that in a complete metric space, these two notions do not contradict each other and, moreover, comeagre sets are genuinely big.

ExampleNowhere Dense and Meagre Sets on the Real Line

(1) Z\mathbb{Z} is nowhere dense in R\mathbb{R}: Z=Z\overline{\mathbb{Z}} = \mathbb{Z}, and between any two integers lies a nonempty open interval disjoint from Z\mathbb{Z}.

(2) The set {1/n:nN}\{1/n : n \in \mathbb{N}\} is nowhere dense: its closure is {0}{1/n}\{0\} \cup \{1/n\}, which contains no interval.

(3) Q\mathbb{Q} is NOT nowhere dense: Q=R\overline{\mathbb{Q}} = \mathbb{R}. But Q\mathbb{Q} IS meagre — it is a countable union qQ{q}\bigcup_{q \in \mathbb{Q}} \{q\} of singletons, each of which is nowhere dense.

(4) RQ\mathbb{R} \setminus \mathbb{Q} is comeagre (its complement Q\mathbb{Q} is meagre). By Baire's theorem below, the irrationals are non-meagre.

TheoremBaire Category Theorem

Let (X,d)(X, d) be a nonempty complete metric space. Then:

(i) Every comeagre subset of XX is dense in XX.

(ii) XX is not meagre in itself.

Equivalently: XX cannot be written as a countable union of nowhere dense sets, and the intersection of countably many open dense subsets of XX is dense.

Remark.

Intuition: Completeness forces comeagre sets to be dense — you cannot hide a comeagre set in a small pocket of a complete space. The striking consequence is that many "generic" properties (what a typical element of XX looks like) can be proven by exhibiting a comeagre set of objects with that property. Baire's theorem guarantees that this comeagre set is nonempty, and in fact dense.

CorollaryMeagre and Comeagre are Disjoint in Complete Metric Spaces

In a nonempty complete metric space, no subset is simultaneously meagre and comeagre.

Applications of Baire

CorollaryThe Irrationals are Non-meagre

RQ\mathbb{R} \setminus \mathbb{Q} is non-meagre in R\mathbb{R}.

CorollaryNo Function is Continuous Exactly on the Rationals

There is no function f:RRf : \mathbb{R} \to \mathbb{R} whose set of continuity points equals Q\mathbb{Q}.

TheoremNowhere Differentiable Continuous Functions are Generic (Statement)

Let C=C([a,b])C = C([a,b]) with the sup metric. The set of functions fCf \in C that are nowhere differentiable is comeagre in CC. Consequently, "most" continuous functions are nowhere differentiable. The same holds for the set of functions that are not monotonic on any subinterval.

Remark.

The full proof uses Baire's theorem: one exhibits the nowhere differentiable functions as the complement of a meagre set built from open dense approximations using the Weierstrass approximation theorem (polynomials are dense in CC) and a sawtooth perturbation. Since CC is complete, the comeagre set is dense — in particular, nonempty — so such functions exist. The existence of even one nowhere differentiable continuous function was once shocking; Baire's theorem tells us the shocking objects are the norm, not the exception. The first explicit nowhere differentiable continuous function was constructed by Karl Weierstrass in 1872.


The Weierstrass Approximation Theorem

A central density result that plays a role in the proof of the previous theorem and many others.

TheoremWeierstrass Approximation Theorem

The set of polynomials is dense in C([a,b])C([a, b]) with the sup metric. Equivalently: for every fC([a,b])f \in C([a, b]) and every ε>0\varepsilon > 0 there exists a polynomial pp such that maxaxbf(x)p(x)<ε.\max_{a \leq x \leq b} |f(x) - p(x)| < \varepsilon.

Remark.

Intuition: Continuous functions on a closed bounded interval, no matter how complicated, can be approximated arbitrarily well in the sup norm by polynomials. This is striking because polynomials are extremely rigid (analytic, infinitely differentiable, determined by finitely many coefficients) yet they fill out the entire space of continuous functions.

Remark.

Probabilistic interpretation: The Bernstein polynomial pn(x)p_n(x) equals E[f(Xn/n)]\mathbb{E}[f(X_n / n)] where XnBinomial(n,x)X_n \sim \mathrm{Binomial}(n, x). The law of large numbers says Xn/nxX_n / n \to x in probability, and continuity of ff then yields pn(x)f(x)p_n(x) \to f(x). Bernstein's proof packages this probabilistic intuition into an elementary inequality argument.


Nowhere Differentiable Functions: Detailed Construction

We now sketch the full proof that nowhere differentiable, nowhere monotonic functions form a comeagre set in C([a,b])C([a, b]).

For each n1n \geq 1, define

  • Rn={fC0:x[a,b1/n],h>0 such that (f(x+h)f(x))/h>n}R_n = \{f \in C^0 : \forall x \in [a, b - 1/n], \, \exists h > 0 \text{ such that } |(f(x + h) - f(x))/h| > n\},
  • Ln={fC0:x[a+1/n,b],h<0 such that (f(x+h)f(x))/h>n}L_n = \{f \in C^0 : \forall x \in [a + 1/n, b], \, \exists h < 0 \text{ such that } |(f(x + h) - f(x))/h| > n\},
  • Gn={fC0:c[a,b1/n],f is not monotonic on [c,c+1/n]}G_n = \{f \in C^0 : \forall c \in [a, b - 1/n], \, f \text{ is not monotonic on } [c, c + 1/n]\}.

Functions in n1(RnLn)\bigcap_{n \geq 1} (R_n \cap L_n) are nowhere differentiable; functions in n1Gn\bigcap_{n \geq 1} G_n are nowhere monotonic. The strategy is:

Claim 1: Each RnR_n, LnL_n, GnG_n is dense in C0C^0.

It suffices to show their closures contain the polynomials, since polynomials are dense by Weierstrass. Given a polynomial pp and ε>0\varepsilon > 0, let m=max[a,b]p(x)m = \max_{[a, b]} |p'(x)| and consider a sawtooth function σ:[a,b]R\sigma : [a, b] \to \mathbb{R} of amplitude less than ε\varepsilon with slopes alternating between >n+m> n + m and <(n+m)< -(n + m), with period less than 1/(2n)1/(2n). The function f=p+σf = p + \sigma satisfies fp<ε\|f - p\| < \varepsilon and has rightward slopes greater than nn at every point of [a,b1/n][a, b - 1/n], so fRnf \in R_n. A similar construction handles LnL_n and GnG_n.

Claim 2: Each RnR_n, LnL_n, GnG_n is open in C0C^0.

The arguments use compactness of [a,b1/n][a, b - 1/n] to cover by finitely many neighbourhoods. We sketch RnR_n: given fRnf \in R_n, for each x[a,b1/n]x \in [a, b - 1/n] pick h(x)>0h(x) > 0 with (f(x+h(x))f(x))/h(x)>n|(f(x + h(x)) - f(x))/h(x)| > n. By continuity there is a neighbourhood U(x)U(x) of xx and ν(x)>0\nu(x) > 0 such that for all yU(x)y \in \overline{U(x)}, (f(y+h(x))f(y))/h(x)>n+ν(x)|(f(y + h(x)) - f(y))/h(x)| > n + \nu(x). By compactness, finitely many such neighbourhoods U(x1),,U(xN)U(x_1), \ldots, U(x_N) cover [a,b1/n][a, b - 1/n]. With careful estimates (using the reverse triangle inequality), one shows that any gg with fg<δ:=mini(h(xi)ν(xi))/4\|f - g\|_\infty < \delta := \min_i (h(x_i) \nu(x_i)) / 4 also belongs to RnR_n.

The argument for GnG_n instead shows GncG_n^c is closed: if (fk)Gnc(f_k) \subseteq G_n^c and fkff_k \to f uniformly, then each fkf_k is monotonic on some interval IkI_k of length 1/n1/n. By Bolzano-Weierstrass on the endpoints, a subsequence of intervals IkI_{k_\ell} converges to a limit interval II of length 1/n1/n; uniform convergence then forces ff to be monotonic on II, so fGncf \in G_n^c.

Putting it together. Each RnR_n, LnL_n, GnG_n is open and dense, hence so is each intersection RnLnGnR_n \cap L_n \cap G_n. Their countable intersection n(RnLnGn)\bigcap_n (R_n \cap L_n \cap G_n) is comeagre in C0C^0. Since C0C^0 is complete, this set is non-meagre by Baire (ii) — in particular nonempty and dense. Functions in this intersection are nowhere differentiable and nowhere monotonic.

Remark.

The "shocking" examples of nowhere differentiable continuous functions are not exceptional — they are topologically generic. Any function you encounter in calculus (polynomials, sin\sin, cos\cos, exe^x) is part of a meagre set of "highly atypical" functions from the topological viewpoint.


Diophantine and Liouville Numbers

Another striking application of the Baire Category Theorem produces a comeagre set of "Diophantine" numbers and shows that the much smaller (but nonempty!) complement consists of remarkably well-approximable irrationals.

DefinitionDiophantine and Liouville Numbers

For τ,γ>0\tau, \gamma > 0, qZ1q \in \mathbb{Z}_{\geq 1}, and pZp \in \mathbb{Z}, define the closed set D(τ,γ,q,p)={xR:xpqγqτ}.D(\tau, \gamma, q, p) = \left\{x \in \mathbb{R} : \left| x - \frac{p}{q} \right| \geq \gamma q^{-\tau} \right\}. Then define the closed sets D(τ,γ)=q1,pZD(τ,γ,q,p),D(τ)=γ>0D(τ,γ)=n1D(τ,1/n),D(\tau, \gamma) = \bigcap_{q \geq 1, \, p \in \mathbb{Z}} D(\tau, \gamma, q, p), \qquad D(\tau) = \bigcup_{\gamma > 0} D(\tau, \gamma) = \bigcup_{n \geq 1} D(\tau, 1/n), and finally D=τ>0D(τ)=m1D(m).D = \bigcup_{\tau > 0} D(\tau) = \bigcup_{m \geq 1} D(m). Elements of DD are called Diophantine numbers. The set L=DcQ\mathcal{L} = D^c \setminus \mathbb{Q} consists of the Liouville numbers: irrationals xx such that for every m1m \geq 1 there exist integers q1q \geq 1 and pp with 0<xpq<1qm.0 < \left| x - \frac{p}{q} \right| < \frac{1}{q^m}. (That is, xx can be approximated by rationals to arbitrarily high polynomial order in the denominator.)

Remark.

Intuition: Diophantine numbers are "badly approximable" by rationals — there is some lower bound on how close a rational p/qp/q can be in terms of qτq^\tau. Liouville numbers are the opposite extreme: they admit super-fast rational approximations. Liouville proved in 1844 that all Liouville numbers are transcendental. A concrete example is x=k=110k!=0.110001000000000000000001x = \sum_{k=1}^{\infty} 10^{-k!} = 0.110001000000000000000001\ldots

TheoremThe Diophantine Set is Meagre; the Liouville Set is Comeagre

The set of Diophantine numbers DD is meagre in R\mathbb{R}, while DcD^c is comeagre. Moreover DcD^c is uncountable, and even L=DcQ\mathcal{L} = D^c \setminus \mathbb{Q} is comeagre.

Remark.

Topological vs measure-theoretic largeness disagree! From the topological viewpoint, DcD^c (which contains the Liouville numbers) is "large" (comeagre) and DD is "small" (meagre). But from the measure-theoretic viewpoint (Lebesgue measure on R\mathbb{R}), it is the opposite: DcD^c has measure zero and DD has full measure. In summary, R=DLQ\mathbb{R} = D \cup \mathcal{L} \cup \mathbb{Q} is a disjoint union with:

  • DD: full measure, but meagre;
  • L\mathcal{L}: measure zero, but comeagre;
  • Q\mathbb{Q}: measure zero and meagre.

This contrast between topological smallness ("meagre") and measure-theoretic smallness ("null") will reappear in the integration chapter.

ExampleConcrete Liouville Number

The number x=k=110k!=1101+1102+1106+11024+110120+=0.11000100000000000000000124!1’s at positions k!x = \sum_{k=1}^{\infty} 10^{-k!} = \frac{1}{10^1} + \frac{1}{10^2} + \frac{1}{10^6} + \frac{1}{10^{24}} + \frac{1}{10^{120}} + \cdots = 0.\underbrace{11000100000000000000000\overbrace{1}^{24!}\ldots}_{\text{1's at positions }k!} is a Liouville number: take q=10m!q = 10^{m!} and p=qk=1m10k!p = q \sum_{k=1}^{m} 10^{-k!} (an integer); then xp/q<210(m+1)!1/qm|x - p/q| < 2 \cdot 10^{-(m+1)!} \ll 1/q^m for mm large.

By Liouville's 1844 theorem, xx is transcendental. Other notable Diophantine numbers include π\pi, ee, ln2\ln 2, 2\sqrt{2}, and 23\sqrt[3]{2}.