The biggest advantage of a blog is how it can become dynamic; where we discuss more and more stuff the more we learn. I didn’t want to discuss metrics and topologies in detail, but it turns out dipping our toes in some of these ideas not only introduces these notions well, but also closes our continuity discussions satisfactorily.
We have previously discussed continuous functions in a technical manner, even proving seemingly obvious theorems like the extreme value theorem and the intermediate value theorem. It turns out that these ideas are not restricted to the real numbers, but generalise to any setting with a reasonable notion of distance, known technically in the mathematics business as a metric.
Definition 1. Let be any set. A function
is called a metric on
if it satisfies the following properties:
- For any
,
.
- For any
,
.
- For any
,
.
- For any
,
. This is called the triangle inequality.
In this case, we call the pair a metric space.
Theorem 1. The map by
is a metric on
. Unless stated otherwise,
as a metric space will always be defined by
.
Proof. We will verify the triangle inequality as follows:
Definition 2. Let and
be metric spaces. We say that a function
is metrically continuous at
if for any
, there exists
such that for any
,
We say that is metrically continuous on
if it is metrically continuous at every
.
Theorem 2. A function is metrically continuous at
if and only if it is continuous at
.
Proof. Left as an exercise in bookkeeping.
If we scale things up again, this notion of distance boils down very much to the intuitive idea of closeness. Indeed, it is closeness that undergirds what it means for a function to be continuous, which is closely related (pun intended) to our ideas of convergence. The most general formulation of closeness in modern pure mathematics has to be that of a topology, which we briefly discuss now.
Definition 2. Let be a set. The collection
of subsets of
forms a topological basis for
if it satisfies the following properties:
- For any
, there exists
such that
.
- For any
and any
, if
, then there exists
such that
.
Theorem 2. Let be any metric space. For each
, define for any
the open ball
. Then
forms a topological basis for
.
Proof. The first condition is trivially met, since for any ,
. For the second condition, fix
, and suppose there exists
and
such that
. This means
and
.
If we can find such that
, then we are done, since
trivially. This condition means that for any
,
If , then the triangle inequality guarantees the estimate
This means we require . Similarly, we require
. Hence, the choice
works.
Technically, we defined the basis of a topology. The full topology arises from combining this basis in unique ways, as follows.
Theorem 3. Let be a set and
be a topological basis for
. Define
Then satisfies the following properties:
,
.
- For any
,
.
- For any
,
.
Proof. We prove the last property as it is the most interesting. We will prove the case , and the general case follows easily by induction. If
then we are done.
Suppose otherwise and fix . For each
, find
such that
. Then
. Find
that contains
, so that
. Hence,
, as required.
In this case, we call a topology. Its elements are called open sets, and put together, the pair
is a topological space.
In fact, since we used to create
, we say
is the topology generated by
. (It turns out that for any other topology
that contains
,
, so that
is the smallest topology that contains
.)
Unless stated otherwise, all metric spaces will be assumed to be equipped with the topology generated by the basis of open balls defined by the underlying metric.
Corollary 1. Let be any metric space. Then
is a topological space, where the topology
is generated by the basis in Theorem 2.
It is Corollary 1 that motivates a unified study of metric and topological spaces, where universal properties in the latter apply immediately to the former.
Topological spaces form the simplest and broadest framework for us to the study continuous functions.
Definition 3. Let be topological spaces. We say that the function
is topologically continuous if for any
,
.
Lemma 1. Let be a metric space. Then
is open in
if and only if for any
, there exists
such that
.
Proof. The direction is trivial. For
, fix
and find
such that
. If we can find
such that
, then we are done. This subset relation is equivalent to the implication
Given , the triangle inequality yields
Setting does the trick.
Theorem 4. Let and
be metric spaces. Then the function
is topologically continuous if and only if it is metrically continuous.
Proof. We first rephrase metrical continuity in terms of open sets as follows:
This can be further simplified to the subset relation as subsets of
, which is equivalent to
as subsets of
.
To prove , fix
and
. Since
is an open set in
,
is an open set in
. Furthermore,
implies that
. By Lemma 1, there exists
such that
, as required.
To prove , fix any set
that is open in
. We need to prove that
is open in
. To that end, fix
. Since
is open in
, by Lemma 1, there exists
such that
. By assumption, there exists
such that
, as required.
To study these objects in more detail and verify that they do agree with our standard notions of continuity shoots us into a whole new stratosphere of study called topology, which lies far beyond the scope of introductory real analysis. These ideas take extend intuitions about to any space where closeness (i.e. a topology) is defined, especially in probability theory, and unsurprisingly finds many use cases across the STEM fields through it.
—Joel Kindiak, 25 Jan 25, 1525H
Leave a comment