A metric space is a pair where is a set and is a nonnegative function such that for each we have
- (i) if and only if ;
- (ii) ;
- (iii) .
For example, the set of real numbers comes equipped with a standard distance function defined by where denotes the absolute value. More generally, one can define a distance function on by
if and .
For another example, we equip the space of all bounded infinite sequences of real numbers with a distance function given by
if and .
Let be a point of a metric space . The open ball around of radius is the set of points in whose distance is less than from :
Let be a subset of . A point in is called a contact point of if for each the intersection is nonempty. We denote by the set of all contact points of , and we call the closure of .
A subset of a metric space is called closed if . In particular, for and , the reader can verify that the set of points coincides with the closure and is hence a closed set. We call the set the closed ball of radius about .
Let and be two subsets of a metric space . We say that is dense in if the inclusion is satisfied. In particular, is said to be everywhere dense in if . The set is said to be nowhere dense in if is dense in no open ball at all.
A metric space is called separable if it has a countable everywhere dense subset.
For example, the space equipped with the usual distance on has a countable everywhere dense subset given by the rational numbers . More generally, one can show that the space equipped with the usual Euclidean distance is separable.
As a non-example, consider the space of all bounded infinite sequences of real numbers, defined above. We claim that is not separable. To show this, we construct an uncountable subset of that is spaced far enough apart. Indeed, let denote the subset of consisting only of those sequences of ‘s and ‘s. Then distinct elements of are exactly distance apart. Consider the subset of given by
If were an everywhere dense subset of , then in particular we would have . It follows that would contain at least one point in each ball of the form for . This implies that must be uncountable.
Let be a sequence of points in a metric space .
- The sequence is said to converge to a point if for each , there is a positive integer such that for each .
- The sequence is said to be a Cauchy sequence if for each there is a positive integer such that for each .
Clearly, any convergent sequence is a Cauchy sequence. The converse is in general not true, and we have a special name for a metric space all of whose Cauchy sequences converge.
A metric space is called complete if any Cauchy sequence of points in converges to a point in . Otherwise, is said to be incomplete.
For example, it is well-known that the space of real numbers equipped with the standard distance function is complete.
Proposition 1 The space of bounded infinite sequences of real numbers is complete.
Proof: Let be a Cauchy sequence of elements of . If there is an such that
for each and each . It follows that for each the sequence of real numbers is Cauchy. Since is complete, this sequence converges to some real number . That is, if , there is an such that for each .
We now claim that the sequence converges to . Let be arbitrary. Since the sequence is Cauchy, there is an such that
for each and each . Taking the limit as , we see that
for each and each . This shows that converges to .
We also claim that is a bounded sequence of real numbers. Since the sequence converges to , there is an such that
for each and each . Since is bounded, there is an such that
By the triangle inequality, it follows that
as claimed.
We now find another way to characterize complete spaces. First we need some notation.
A sequence of subsets of a set is said to be nested if
Theorem 2 (Nested Sphere Theorem) Let be a metric space. A necessary and sufficient condition for to be complete is that every nested sequence of closed balls such that as has nonempty intersection.
Proof: Suppose that is complete. Let be a nested sequence of closed balls such that as . We claim that the sequence of centers is Cauchy. Indeed, let be arbitrary. Choose so large that for each . Then for each , the centers belongs to and hence are no more that apart.
Now suppose that the latter condition holds. We will show that is complete. Let be a Cauchy sequence of points in . Let be such that
for each . Let denote the closed ball about of radius . Once has been constructed, let be such that
for each , and let denote the closed ball of radius about . Then the sequence of balls is a nested sequence with radii converging to zero. It follows that their intersection is nonempty. Let be a point of this intersection. It is clear that the subsequence converges to . Moreover, we claim that the original Cauchy sequence converges to . Indeed, let be arbitrary. Choose so that for each . Choose so large that and that for each . Then if , we see that
completing the proof.
Lemma 3 Let be a metric space and let be a subset of . Suppose that is nowhere dense in . Then there is a ball which intersects trivially.
Proof: Suppose to the contrary that we may find no such ball. Let be an arbitrary point of . By supposition, for each , the ball intersects . It follows that is a contact point of and hence . This contradicts the assumption that is nowhere dense in .
We are now in the position to prove an important tool in topology and analysis.
Theorem 4 (Baire’s Theorem) A complete metric space cannot be the union of a countable number of nowhere dense sets.
Proof: Suppose that we have found a countable number of nowhere dense sets such that
Let be a closed ball of radius . Since is nowhere dense in , by the Lemma there is a closed ball of radius less than such that and is disjoint from . Since is nowhere dense in , there is a closed ball of radius less than such that and is disjoint from . In this way, we obtain a nested sequence of closed balls
with radii tending to zero such that is disjoint from . The nested sphere theorem gives a point in the intersection of these balls. Since belongs to each ball, it does not belong to any of the and thus does not belong to their union, which was assumed to be the whole space , which is absurd.