Definition
Metric spaces and completeness
Adapted
Gives the distance axioms that let convergence be defined on any set, the Cauchy criterion that tests for convergence without naming the limit, and the proofs that the continuous functions on a closed interval are complete in the sup metric but not in the integral metric.
Prerequisites: Limits of sequences and completeness, Uniform convergence
A metric on a set is a function of two points of that returns a real number, subject to four conditions. For all :
- (M1) is real, finite and ;
- (M2) if and only if ;
- (M3) ;
- (M4) — the triangle inequality.
The pair is a metric space, its elements are points, and is the distance from to . We write alone when is clear. The labels (M1)–(M4) are Kreyszig's (Kreyszig (1978), §1.1, Def. 1.1-1, p. 3).
Induction on (M4) gives the generalized triangle inequality: for any finite chain of points.
If , then with restricted to is a subspace of , carrying the induced metric. The open ball of radius about is ; a set is open if every point of has some ball about it inside , and closed if its complement is open. The closure of is the intersection of all the closed sets that contain , and is dense in if . A set is bounded if its diameter is finite. These are the metric cases of the notions in topological spaces.
needs no algebraic structure whatever: a metric is defined on a bare set. When also carries a norm the two structures are linked by , and a function of one variable then does the work of a function of two; that is the subject of normed and Banach spaces.
The library's four statements of this definition are packaged differently and say the same thing.
- Folland (Folland (1999), §0.6, p. 13) declares , so (M1) is absorbed into the codomain, and then lists only (M2), (M3), (M4).
- Hassani (Hassani (2013), §1.3, Def. 1.3.1, p. 8) lists three conditions, the first combining nonnegativity with (M2).
- Stakgold and Holst (Stakgold & Holst (2011), §4.3, (4.3.1), p. 234) split (M2) into for distinct points and .
- Kreyszig (Kreyszig (1978), §1.1, Def. 1.1-1, p. 3) keeps all four, which is the list used above because each axiom is then available by name.
Nonnegativity is in fact forced by (M2)–(M4): putting in (M4) and using (M3) gives . It is listed anyway, as all four books do in one form or another, because it is used constantly and a reader should not have to rederive it.
Hassani adds a warning worth repeating: in relativity the squared interval between two events can be negative, so it is not a metric in this sense, and none of what follows applies to it.
Let be a metric space and a sequence in .
- converges to if as : for every there is with for all . We write and call the limit. A sequence with no limit in is divergent.
- is a Cauchy sequence (also fundamental) if for every there is with
- is complete when each of its Cauchy sequences has a limit lying in .
The definition of convergence names the limit; the Cauchy condition does not. That is the entire point of completeness: in a complete space a sequence may be certified convergent by an estimate involving only its own terms, before anything is known about what it converges to. The price is that the certificate says nothing about which point the limit is.
Convergence is not a property of the sequence alone but of the sequence together with the space it is regarded as living in. The sequence converges in and diverges in , with no term changed.
Let and be metric spaces.
- Uniqueness and boundedness. A convergent sequence in has exactly one limit, and its set of terms is bounded. If and then .
- Convergent implies Cauchy. Every convergent sequence in is Cauchy. The converse holds for every sequence in precisely when is complete.
- A Cauchy sequence with a convergent subsequence converges, to the same limit.
- Closure by sequences. For , a point lies in if and only if some sequence in converges to . Hence is closed if and only if it contains the limit of every convergent sequence of its own points.
- Completeness and closedness. A subspace of a complete metric space is complete exactly when is closed in . In an arbitrary metric space, a complete subspace is closed.
- Sequential continuity. A map is continuous at the point exactly when every sequence with satisfies .
- Which spaces are complete. and are complete, and so are and in the Euclidean metric; so are the sequence spaces and for , and so is , the real- or complex-valued continuous functions on a closed bounded interval, in the sup metric Convergence in is uniform convergence on . Of these, only the case of is proved below. Completeness of and is taken as known from limits of sequences, and the cases , , and are taken on the authority of Kreyszig (Kreyszig (1978), §1.5, Examples 1.5-1, 1.5-2 and 1.5-4, pp. 33–36) and Stakgold and Holst (Stakgold & Holst (2011), §4.3, Examples 1–4, pp. 238–239); each of them runs the three-step scheme of the method block below.
- Which are not. with is incomplete, as is any bounded open interval with , as is the set of polynomials on in the sup metric. Most important here: in the integral metric is not complete, and neither is it complete in the mean-square metric .
Every estimate in parts 1–6 comes from the triangle inequality applied to one interpolating point. To compare with when the hypothesis is about and , insert ; the cost is one extra term, which the hypothesis makes small.
Completeness proofs for concrete spaces all run the same way, and the reason is that the metric is built out of real or complex numbers whose completeness is already known. A Cauchy sequence in the space forces, coordinate by coordinate or point by point, a Cauchy sequence of scalars; those converge, and their limits assemble into a candidate. Two things then remain, and they are where the work is: the candidate must lie in the space, and the convergence must hold in the metric of the space, not merely coordinatewise.
Incompleteness proofs run the other way. One exhibits a sequence whose terms are visibly in the space and whose pointwise limit is visibly not, then shows that no other element of the space can be the metric limit either — because a metric limit would have to agree with the pointwise limit, which it cannot.
1. Suppose and . By (M4), , and both terms on the right tend to ; so and by (M2). For boundedness, take in the definition of convergence to get with for ; then for every , a finite bound, so all terms lie in one ball. For the third claim, the generalized triangle inequality gives , hence ; interchanging the roles of the two pairs gives the same bound for , so .
2. If , pick with for . For , (M4) and (M3) give . The second sentence is the definition of completeness restated.
3. Let be Cauchy with . Given choose with for , then choose with and . For any , . Here the Cauchy hypothesis is what transports the good behaviour of one subsequence to the whole sequence; without it a sequence may have a convergent subsequence and still not converge.
4. If , the constant sequence works. If , then every ball meets — otherwise the complement of that ball would be a closed set containing but not , contradicting minimality of the closure — so choosing gives . Conversely, if and but , then the open set contains a ball about that contains no point of , contradicting . The second sentence is the case .
5. Let be any metric space and complete as a subspace; completeness of is not assumed in this half. If , part 4 supplies with ; by part 2 the sequence is Cauchy, by completeness of it converges in , and by uniqueness of limits (part 1) that limit is , so . Thus is closed. Conversely let be closed in the complete space and let be Cauchy in . It is Cauchy in , so it converges to some ; by part 4 and closedness, . Completeness of the ambient space is used only in this second direction, which is why the first direction — a complete subspace is closed — is stated in part 5 for an arbitrary ambient space.
6. Suppose is continuous at and . Given take with whenever , then with for ; so for . Conversely, if is not continuous at there is an for which no works; taking produces with and , so while .
is complete in . Let be Cauchy in and write .
- A candidate. Fix . Since , the numbers form a Cauchy sequence in (or ), which converges because and are complete. Call the limit . This defines a function on .
- The convergence is uniform. Given take with for . Fix and and let in : the bound survives the limit, giving for every at once. The bound is independent of because the sup metric made it so, and that is exactly uniform convergence.
- The candidate is in the space. A uniform limit of continuous functions is continuous (uniform convergence), so , and step 2 says for , that is in .
Step 2 also proves the parenthetical claim of part 7: convergence in is uniform convergence, and conversely.
is not complete in . It is enough to produce one Cauchy sequence with no continuous limit; take and
each of which is continuous on .
- The distances. For the map increases, so for we have on and on ; by oddness, using . Since , the bracket equals up to a term smaller than , so and the sequence is Cauchy in .
- No continuous limit. Suppose with . The same computation with in place of gives . These two statements are read on the larger set of bounded functions continuous off a finite set, the only place a larger space is used. There the formula is not a metric but a pseudometric: altering at the single point changes no integral, so (M2) fails. Only (M4) is needed, and (M4) does hold, because the pointwise inequality integrates. Hence and the left side does not depend on , so . The integrand is nonnegative and continuous except at , so for every ; letting forces to equal both and . No continuous exists, so is Cauchy and divergent in .
The remaining claims of part 8.
- A general interval . Put and . The two steps above run word for word, with as the obstruction, so is incomplete for every .
- The mean-square metric. Back on : and have the same sign as and modulus below , so pointwise, hence and . The same sequence is therefore Cauchy in . If some had , then Cauchy–Schwarz against the constant function , in the form applied to , would give , which step 2 has just excluded. Boundedness of the interval enters only through the finite factor , which is here; on a general the same two lines work with .
- . The decimal truncations of satisfy , so they are Cauchy in ; a rational limit would also be a limit in , and limits there are unique, so it would be .
- A bounded open interval . The points , , lie in and are Cauchy; a limit in would be the limit taken in , namely , which is not in . What the argument actually uses is that the endpoint is finite, not that the interval is bounded: is unbounded and incomplete by the same two lines, with the points . Part 8 says bounded because that is the cheapest hypothesis giving one clean statement; what has to be excluded is itself, which is an open interval of and is complete.
- The polynomials on in . The partial sums converge uniformly on to , so by step 2 of the first half they are -Cauchy. A polynomial limit would have to equal , uniform limits being unique, and is not a polynomial: a polynomial of degree has vanishing -st derivative, while every derivative of is .
The sequence of the second half, in the same set , is not Cauchy in : evaluated at , namely , bounded away from . Completeness is a property of the metric, not of the set.
- (M2) is what makes limits unique. Drop the "only if" half and becomes a pseudometric: distinct points at distance are then limits of the same sequences. This is not a pathology to be avoided but the standard situation in integration theory, where for functions equal almost everywhere; the repair is to pass to equivalence classes, which is exactly what makes a norm on rather than a seminorm.
- (M4) is the engine of parts 1–6. Every estimate above is one application of the triangle inequality with a single interpolating point. The other axioms enter only to close the arguments those estimates set up: (M2) turns into at the uniqueness step of part 1, and (M3) reverses to in part 2. Nothing about beyond the four axioms is used anywhere in parts 1–6, which is why those facts hold in every metric space whatever its elements are.
- Closedness, in part 5, is relative. is closed as a subset of and not as a subset of , as Reed and Simon (Reed & Simon (1980), §I.2, p. 6) warn. Part 5 is therefore a statement about inside a named ; "complete" by contrast is intrinsic to .
- Completeness of the ambient space is needed only one way round in part 5. A complete subspace of any metric space is closed in it; a closed subspace of an incomplete space need not be complete. For instance is closed in and not complete.
- Boundedness of the interval, and closedness of it, are used in part 7. On a continuous function attains its maximum, so is finite and is a maximum rather than a supremum. On or on one must restrict to the bounded continuous functions for to be defined at all; that space is again complete, by the same proof.
- Completeness is not inherited by passing to a weaker metric on the same set, as the two metrics on show, and it is not a topological property: and are homeomorphic (continuity and homeomorphism), one is complete and the other is not. What is topological is completeness plus total boundedness, which by Folland's Thm 0.25 (Folland (1999), §0.6, p. 15) is exactly compactness.
- Every incomplete metric space sits densely inside a complete one, its completion, unique up to a distance-preserving bijection. Stakgold and Holst (Stakgold & Holst (2011), §4.3, Examples 6 and 7, pp. 239–240) take this as the definition of : the completion of the continuous functions in the mean-square metric. That is a legitimate route to the space, and it is not the route of spaces, which builds the same space from the Lebesgue integral and then proves completeness. The two descriptions agree; this unit uses neither as a hypothesis.
On , Reed and Simon (Reed & Simon (1980), §I.2, p. 5) write for the sup metric and for the integral metric, numbering the two metrics in the order they introduce them. This unit instead indexes by the exponent, so is the integral metric and the sup metric, matching throughout the handbook. Their observation that reads here as on an interval of length : the integral metric is the weaker of the two, so sup-convergence implies integral-convergence and not conversely.
To show is complete, take an arbitrary Cauchy sequence and carry out Kreyszig's (Kreyszig (1978), §1.5, p. 32) three steps.
- Build a candidate limit . Use the metric to extract, from the Cauchy condition, a Cauchy sequence of real or complex numbers — one per coordinate, per point of the domain, or per basis element — and let be assembled from their limits. This step uses completeness of and and nothing else.
- Check . This is where membership conditions are verified: boundedness for , summability of the -th powers for , continuity for . It is the step that fails for the spaces in part 8.
- Check . Pointwise or coordinatewise convergence is not enough. The standard device is to freeze in the Cauchy estimate, let the other index go to infinity, and observe that a non-strict inequality survives the limit; finite partial sums are handled first and the number of terms let go to infinity afterwards.
Shortcut: if is a subspace of a space already known to be complete, do not repeat the argument — show is closed and quote part 5.
To show is not complete, exhibit one Cauchy sequence and rule out every limit:
- Choose a sequence in whose natural limit object (pointwise limit, formal sum, supremum) lies outside .
- Estimate directly and show it tends to .
- Suppose for some and derive a contradiction, usually by showing would have to coincide with the natural limit object.
Take and the functions , . All lie in . We compute both distances exactly.
The sup metric. For and we have , so
Setting the derivative to zero gives , the unique interior critical point, and the value there is
Take . Then and , so
Checking , by hand: and . The distance between and is therefore the constant , however large is, so is not Cauchy in .
The integral metric. For ,
which is at most and tends to : the sequence is Cauchy in . Numerically, while .
What each metric sees. In the sequence converges, and its limit is the zero function: , and . In it does not converge at all, since a non-Cauchy sequence cannot converge. The pointwise limit is the discontinuous function that is on and at ; the integral metric cannot distinguish it from , and the sup metric can.
The checkable number. exactly, for every , while , which is at and at . A single sequence in a single set is Cauchy in one metric and uniformly far from Cauchy in another.
Return to on from the proof, which is -Cauchy in and has no limit there.
First, the quantity that does not measure this. It is tempting to measure the defect as a distance from the sequence to the space, or from the space to its missing limit. Both are zero. Each is itself a continuous function, so
attained at . And the missing limit is no further away: in the pseudometric space of the proof — bounded functions on continuous off a finite set, with — the continuous functions are -dense. For let equal off and be linear across it; then and
So no positive number separates from the point it is missing. Incompleteness is never a gap of positive width: it is the absence of a point, and the only thing left to quantify is the rate at which the sequence travels towards the place where that point should be.
The quantity that does. Measure against the limit itself, inside . For we have and , and both functions are odd, so with ,
This is an equality, not a bound, and it is strictly positive for every : it says by how much still misses the function it is heading for. (Changing at the single point changes neither side, which is exactly why is only a pseudometric on .)
At , and
in agreement with the asymptotic value to eight decimals; numerical quadrature of returns , the same number. The gap between the exact value and the asymptotic one is exactly , which at is , of order and not of order . At the distance is and at it is : the approach is of order , even though away from the origin exponentially fast. The is the width of the window in which has not yet made up its mind, and the integral measures the area of that window.
Meanwhile the mutual distances are , which is to nine decimals. So by the terms are within of each other and the sequence is going somewhere; the space simply has no point there. Numerical quadrature of returns , confirming the closed form.
Which notion of "close" a calculation needs. Two temperature fields can be close in the mean-square sense and differ by a large amount on a thin layer; two spectra can agree to high accuracy in energy and disagree badly at one frequency. Choosing the metric is choosing which errors count, and the two examples above show how far the choice can go: the same sequence may converge, diverge, or not even be Cauchy. A tolerance quoted without a metric is not a tolerance.
Existence proofs that never write down the answer. The pattern in nearly every existence theorem of analysis is: construct approximations, bound their mutual distances, invoke completeness. The solution is then produced before any formula for it is known. The contraction mapping theorem packages this pattern, and the hypothesis it cannot do without is completeness of the space the iterates live in.
Why and not the continuous functions. Quantum mechanics, signal processing and least-squares estimation all need a space in which a limit of approximations is again a legitimate object. The computation above shows that the continuous functions in a mean-square metric are not such a space: a perfectly well-behaved sequence of smooth states has no continuous limit. Enlarging to is not a technicality but the minimum required for the theory to close, and it is why Hilbert spaces are defined with completeness built in.
Numerical analysis. An iterative solver is stopped when successive iterates are within tolerance — a Cauchy-type test, since the answer is unknown. The test is only meaningful if the space of candidates is complete in the norm being measured, and if that norm is the one in which the answer is required. Convergence of an iteration in a discrete norm says nothing about the pointwise error unless the two are compared, and in infinite dimensions they cannot be compared uniformly; see normed and Banach spaces.
Geometry on curved sets. Hassani's (Hassani (2013), §1.3, Example 1.3.2, p. 9) two metrics on a sphere — straight-line chord and great-circle arc — are both legitimate, give the same convergent sequences, and give quite different distances. Navigation uses the second; a linear-algebra embedding uses the first. The general lesson is that a set can carry many metrics, and that theorems about convergence often survive the change while theorems about distance do not.