The convergence theory of the previous post used the real line only through the distance between a term and its limit. Nothing in the definition of a limit, or in the Cauchy criterion, needs the order of the reals or their arithmetic, only a way to measure how far apart two points are. Abstracting that measurement gives metric spaces, the setting in which the same analysis runs for sequences of vectors, of functions, or of any objects at all, and it is the language every later post speaks. This post uses the completeness of the reals and the Bolzano-Weierstrass theorem from the chapter on sequences and completeness.
#Metric spaces
A metric is a distance function obeying the three properties any reasonable distance must have.
A metric space is a set with a function such that for all , first if and only if , second , and third the triangle inequality holds.
The real line is a metric space under . Euclidean space carries the metric . The set of bounded functions on a domain carries the supremum metric , under which convergence is uniform convergence. A sequence in converges to when as real numbers, and is Cauchy when for every there is an with for . The definitions are the real-line ones with replaced by , and the proof that limits are unique carries over verbatim from the triangle inequality.
#Open, closed, and continuous
The open ball of radius about is . A set is open when every point of lies in an open ball contained in , and a set is closed when its complement is open. The characterization of closed sets we use is sequential.
A set is closed if and only if it contains the limit of every convergent sequence of its points.
Suppose is closed and with . If then lies in the open complement, so some ball misses entirely, contradicting . Hence . Conversely suppose contains all such limits. If the complement were not open, some has every ball meeting , giving points with , so , contradicting , since by hypothesis holds all such limits. The complement is open, so is closed.
A function between metric spaces is continuous at when implies , equivalently when for every there is a with whenever . For the ball form to the sequential form, given and pick the matching , then with for , so and . For the converse take the contrapositive. If the ball form fails at there is an for which every admits a point with but , so while , against the sequential form.
#Completeness and the contraction principle
A metric space is complete when every Cauchy sequence converges. The reals are complete by the Cauchy criterion, and is complete because a Cauchy sequence is Cauchy in each coordinate, so each coordinate converges and the vector converges to the limit vector. A complete space supports the single most useful existence theorem in analysis.
Let be a nonempty complete metric space and a contraction, meaning there is a constant with for all . Then has a unique fixed point , and the iterates converge to it from any start.
Fix and set . Then . For the triangle inequality and the geometric sum give
which tends to zero as , so is Cauchy and converges to some by completeness. A contraction is Lipschitz, since , hence continuous, so , a fixed point. If and are both fixed, then with forces , so the fixed point is unique.
The contraction principle is how later posts produce solutions of equations that no formula solves, since the Picard iteration for differential equations is a contraction on a suitable complete space.
#Compactness
A set is sequentially compact when every sequence in has a subsequence converging to a point of . In Euclidean space this is exactly the elementary description.
A subset of is sequentially compact if and only if it is closed and bounded.
Let be closed and bounded and let be a sequence in . Each coordinate sequence is bounded, so applying the Bolzano-Weierstrass theorem to the first coordinate gives a convergent subsequence, then to the second coordinate along that subsequence, and after passes a single subsequence converges in every coordinate, hence in . Its limit lies in because is closed, by Proposition 2, so is sequentially compact. Here bounded means . Conversely, if is not bounded this supremum is , so for each there is with , giving , and every subsequence is likewise unbounded and so cannot converge, since a convergent sequence is bounded. If is not closed it has a sequence converging to a point outside , whose every subsequence has that same outside limit. Either failure breaks sequential compactness, so a sequentially compact set is closed and bounded.
Compactness is preserved by continuous maps, which is the source of every existence-of-extremum result.
The continuous image of a sequentially compact set is sequentially compact. In particular a continuous real function on a sequentially compact set attains a maximum and a minimum.
Let be continuous and sequentially compact, and let be a sequence in , say . Some subsequence , and continuity gives , so is sequentially compact. When the set is closed and bounded by Theorem 4, so it is bounded, giving a supremum and infimum, and closed, so it contains them, and they are attained.
#Normed spaces
When the set is a vector space the natural metrics come from a length.
A norm on a real vector space is a function with only at , homogeneity , and the triangle inequality . It induces the metric , and a complete normed space is a Banach space.
In finite dimensions the choice of norm does not matter for any convergence question, because all norms are comparable.
Any two norms on a finite-dimensional real vector space are equivalent, meaning there are constants with for all .
It suffices to compare an arbitrary norm with the Euclidean norm in a fixed basis, since equivalence is transitive. By the triangle inequality and homogeneity, with by Cauchy-Schwarz, which also shows is continuous with respect to , since , where the first step is the reverse triangle inequality and its symmetric counterpart. The Euclidean unit sphere is closed and bounded, hence sequentially compact by Theorem 4, so the continuous function attains a minimum on it by Theorem 5, and because the norm vanishes only at the origin, which the sphere excludes. Scaling by homogeneity, for all , and combined with the upper bound this is the equivalence.
Equivalence of norms is why finite-dimensional analysis is coordinate-free, since convergence, continuity, and compactness do not depend on which norm measures them. It fails in infinite dimensions, where the supremum and integral norms on function spaces are genuinely different, and that failure is the reason the next posts must choose their norms with care.
The completeness of a metric space is what makes the Lebesgue space a Banach space and the inner product space a Hilbert space, the contraction principle constructs solutions of stochastic differential equations, and compactness is the property that the spectral theory of operators turns into eigenvalues. Distance, completeness, and compactness are the three words the rest of the curriculum is built from.