In this brief post, we investigate the topological foundations of analysis and give some of its first applications. We limit the scope to the topology of a metric space. In particular, we provide the knowledge that is needed for the application to probability and measure theory.
The objective of the next section is to prepare the very basic concept for the definition of a topological space. We start by defining an open and a closed ball, a neighborhood, interior point, an open and a closed set. All these definitions are interlinked to each other as we will see later on.
Parts of this post are based on  and .
- 1 Basic Definitions & Properties
- 2 Topological Spaces
- 3 Applications
Basic Definitions & Properties
Balls, Open & Closed Sets & Neighborhoods
Let denote a metric space.
An (open) ball of radius and center is the set of all points of distance less than from , i.e. .
A closed ball of radius is the set of all points of distance less than or equal to from , i.e. .
A subset of is called a neighborhood of if there is some such that .
An element is called an interior point of if there is a neighborhood of such that .
A set of is called open if every point of is an interior point.
The introduced concepts “interior point” and “open set” (and hence also the concept of “closed sets”) depend on the surrounding metric space . It is sometimes useful to make this explicit by saying “ is an interior point of with respect to ” or “ is open in “.
By definition, every superset of a ball is considered to be a neighborhood. Neighborhoods can be defined without mentioning explicitly the corresponding metric space.
An open ball in is an open interval . However, if we consider embedded in , then is apparently not an open ball in .
For the sake of illustration we sketch a 2-dimensional open ball (i.e. an open interval) as a rectangle even though it would actually be a line without end-points. These end-points are illustrated by the lines crossing the x-axis.
The heuristic reasoning for that is that a one-dimensional interval cannot contain an open two-dimensional ball not matter how small the radius of this ball might be.
Apparently, is an interior point of if and only if there is some real such that . In addition, is open if and only if is a neighborhood of each of its points.
Let us consider open and closed balls in along with the standard Euclidean metric . Every open ball , in is an open set. Let be an arbitrary point. Set and consider with .
For all we have
and so is contained in . This shows that the arbitrary point is an interior point of and thus an open ball is an open set.
That is, a set is open if and only if for every an open ball exists such that .
Definition 1.2 (Boundary Point)
Let and . Then, is called boundary point for if
for all . The set of all boundary points is denoted by .
Boundary points are just points on the boundary between the set and the surrounding basis set (i.e. of the metric space .
can be contained in or in . If all boundary points are outside of , i.e. if , then it is an open set.
Definition 1.3 (Closed Set)
A set of is called closed in if its complement is open in .
Equivalently, if all boundary points of are inside the set , i.e. if , then it is a closed set. This also means that the set is always a closed set no matter what is. The set is then also called the closure of .
(a) The interval is closed in .
Let denote a real number that is not an element of . Then, and the ball with has empty intersection with .
Hence, the complement is open and so the set is closed.
For the sake of illustration we sketch a 2-dimensional open ball as a rectangle even though it would actually be a line without end-points.
Note that all closed intervals in are of the form , , , and .
Let us now consider the set . For all and we have . Hence, the set is open in .
Note that all open intervals in are of the form , , , and .
(b) Now consider the metric space with with the same distance function , as in (a).
The set is an open set since for all we consider the open ball with . That is, we determine the shortest distance between and the two points and and divide it by 2. Then, the corresponding open ball is contained within the set . For the point , we can consider the open ball with , for instance. This open ball equals since all the figures right from until 5 are not contained in . Hence, is open.
The set is also closed since is included in . Note that is not a boundary point since it is not an element of the metric space . The point is not a boundary point since for , for instance, holds true.
(c) Let us consider the metric space of all integers together with the discrete metric for all . It follows that the open ball of radius and center at is either if or if .
(d) Let us consider open and closed balls in along with the standard Euclidean metric . Every closed ball , in is a closed set. That is, we need to show that the complement set is open. Let . Set and consider the open ball , that does not intersect with the closed ball due to the choice of : Let , then the following holds due to the triangular property.
and because of .
Note that this also means that every isolated point in along with the Euclidean metric is a closed set.
In the following section we are going to outline basic properties of open & closed sets, which will provide the heuristic for the definition of a topological space.
Properties of Open & Closed Sets
The following two propositions state basic properties of open and closed sets. It turns out that these properties characterize a topological space.
Proposition 1.1 (Open Sets)
Let be a family of open sets.
(ii) if for an arbitrary index set ;
(iii) if for a finite index set .
(i) The empty set possesses every property since it does not have an element. Hence, the empty set is closed and open. Correspondingly, the set is open.
(ii) If then there must be an index such that with . All the more holds true.
(iii) Let with be open sets. Since there exists a for each with . If we set then and the assertion follows.
Why (iii) holds only true for finite index sets can also be seen if we try to prove that the intersection of two open balls at is open again. Just chose for the open ball of the intersection . This can be iterated provided that the index set is finite.
Please note that the proof above would also be valid if we use neighborhoods instead of balls. This would mean that the proof is not dependent on the used metric space and suggests that we could derive a new mathematical structure from it, where –in general– no algebraic operations, distance functions or orders need to be defined. However, given that we restrict our-self to topology for metric spaces, we will not further outline this idea.
The proof of the corresponding proposition for closed sets is apparent given the definition of a closed set.
Proposition 1.2 (Closed Sets)
Let be a family of closed sets.
(ii) if for an arbitrary index set ;
(iii) if for a finite index set .
Apply the definition and Proposition 1.1 (Open Sets).
Let us continue Example 1.3. The intersection of a finite number of intervals is closed in . Without loss of generality, let . All the sets are closed and so is in .
Let us now consider the family of open sets . For all elements of all open sets , we can find an open ball . Hence, the union of these sets also contain open balls for all elements and is thus an open set itself.
An infinite intersection of open sets need not to be open. Consider in . Apparently, there cannot be an such that .
Correspondingly, infinite unions of closed sets need not to be closed. To this end, consider in .
Accumulation and Limit Points
Closely related to closed sets are so-called accumulation and limit points. In addition, this section will pave the way to one of the below application of a topological space — limits.
Definition 1.2 (Accumulation & Limit Point)
Let and . We call an accumulation point of if every neighborhood of in has non-empty intersection with .
The element is called limit point of if every neighborhood of in contains a point of other than . Finally we set
Every point within an open set but also every limit point of this set is an accumulation point as illustrated in the following example. Here, is the open interval in the standard metric space .
Every point in is an interior, an accumulation and a limit point of . Note that an interior point of requires to have a neighborhood that is contained in . Given that is an open set this holds true for all points within the set by definition.
The ‘boundary’ points and are no interior points but limit and accumulation points of . Why?
Because we can define any open ball around it and the intersection with will always contain a point different from .
Let us now consider a set with a single isolated point in the metric space . Is , that is the only element of the set, an accumulation and/or a limit point of ?
Apparently, every neighborhood of in has non-empty intersection with , i.e. . However, is not a limit point since the intersection does not contain a point other than .
According to our thoughts above, elements of are accumulation points of . This fact is also reflected in the next proposition.
Proposition 1.3: Let be a subset of a metric space .
(ii) if and only if is closed.
Proof: (i) See argumentation above.
(ii) ‘ Let . Since is not an accumulation point of , there is some of all neighborhoods of such that . Thus, , that is, is an interior point of . Consequently is open and is closed in .
‘ Let be closed in . Then is open in according to its definition. For any , there is some such that . This means that and are disjoint, and so is not an accumulation point of , i.e., . Hence, we have proved the inclusion , which is equivalent to . With (i), this implies .
The limit points of a set are the limits of certain sequences in .
Proposition 1.4: An element of is a limit point of if and only if there is a sequence in which converges to .
Proof: Let be a limit point of . For each , choose some element in . Then is a sequence in such that .
Conversely, let be a sequence in such that . Then, for each neighborhood of , there is some such that . This means that . Hence, each neighborhood of contains an element of other than .
Corollary 1.1: An element is an accumulation point of if and only if there is a sequence in such that .
Proof: If is a limit point, then the claim follows from Proposition 1.4. Otherwise, if is an accumulation point, but not a limit point of , then there is a neighborhood of such that . Thus, , and the constant sequence with for all has the desired property.
We can also characterize closed sets using convergent sequences by simply using the fact that a closed set is the complement of an open set.
Proposition 1.5: For , the following are equivalent:
(i) is closed;
(ii) contains all its limit points;
(iii) Every sequence in , which converges in , has its limit in .
Proof: ‘(i) (ii)’ Any limit point of is also an accumulation point and so is contained in . Since is closed and Proposition 1.3, , and so all limit points are in .
‘(ii) (iii)’ Let be a sequence in such that in . Then, by Corollary 1.1, is an accumulation point of . This means that, either is in , or is a limit point of , so, by assumption, .
‘(iii) (i)’ This implication follows from Proposition 1.3 and Corollary 1.1.
This section is about a specific class of topological sets, that will turn out to have important properties, in particular, in connection with continuity.
Definition 1.3 (Open Cover)
By an open cover of a set in a metric space , we mean a collection of open subsets of such that .
A sub-collection with of an open cover is called an open subcover of .
An open cover of is a collection of possibly overlapping open sets in which, after considering their union globally, contains the set inside.
Example 1.6 (Real Line)
Let us consider the set of the metric space . Then, is an open cover of because . This cover apparently contains infinitely many open sets .
is an open subcover of since but . This subcover, however, still contains infinitely many open sets.
Now we have the ingredients for the central definition of this section.
Definition 1.3 (Compact Set)
A subset of a metric space is said to be compact if every open cover of contains a finite subcover.
It is clear that every finite set is compact.
Example 1.7 (Finite Set & Compactness)
Let be a finite set in the metric space and . Note that we could chose any for this purpose. Apparently, is a finite and open cover of .
Each point of the finite set is contained in some open set by the cover depending upon that point. This directly implies that there is a finite sub-cover most the size of the set .
Let us generalize the approach taken in Example 1.7 for an arbitrary non-empty set . By setting
with , an open set is assigned to each point . Hence, the set is an open cover for any set .
Let us consider another simple example.
Example 1.8 (Compact Unit Interval)
Consider the set . Apparently, this set is compact since is a finite open cover of .
The Heine-Borel theorem states that every closed and bounded set in , is compact. This theorem is very important for analysis, measure theory and beyond.
Theorem 1.1 (Heine-Borel)
Let be a subset of the standard Euclidean metric space with . Then the following statements are eqivalent:
(i) is compact;
(ii) is closed and bounded;
(iii) Every infinite subset of has an accumulation point in .
Proof: Refer to Theorem 3.31 in  or see there. Also note that a visualization by the University of Hannover of one proof can be found on YouTube. There is also a proof analysis of one direction of the Heine-Borel Theorem.
Topological spaces can be defined in many ways, however, given our focus on metric spaces and open sets the following definition is the most natural one. Please note that we could also use the properties of closed sets to define a topological space.
Definition 2.1 (Topological Space)
A topological space is a pair , where is a set and is a family of subsets that satisfies
(ii) if for an arbitrary index set ;
(iii) if for a finite index set .
The following video provides a rather unorthodox way of thinking about a topology. However, it might help to get a heuristic for topological spaces. It also mentions the connection between metrics and a topology.
Example 2.1 (Topologies):
a) If is a metric space and is the set of all open sets, then is a topology according to Proposition 1.1.
b) Let be a set and then is the so-called trivial or indiscrete topology.
c) The power set of a set is the so-called discrete topology. In this topology every subset it open.
General Topology has to do with, among other things, notions of convergence. Convergence ca be defined in many different ways. In the following section, we study the most popular way to define convergence by a metric. In order to define other types of convergence (e.g. point-wise convergence of functions) one needs to extend the following approach based on open sets. This, however, is not in scope of this post.
Limits of a Sequence
In this section, we apply our knowledge about metrics, open and closed sets to limits. We thereby restrict ourselves to the basics of limits. Refer to  for further details.
Let denote a metric space. If the metric is not specified, we assume that the standard Euclidean metric is assigned.
Definition 3.1 (Sequence):
A sequence in is a function from to by assigning a value to each natural number . The set is called sequence of . The elements of are called terms of the sequence.
Sequences in are called real number sequences. Sequences in , are called real tuple sequences. Note that latter definition is simply a generalization since number sequences are, of course, -tuple sequences with .
Let be a -tuple sequence in equipped with property . Property holds for almost all terms of if there is some such that is true for infinitely many of the terms with .
Note that a sequence can be considered as a function with domain . We need to distinguish this from functions that map sequences to corresponding function values. Latter concept is very closely related to continuity at a point.
Sequences are, basically, countably many (– or higher-dimensional) vectors arranged in an ordered set that may or may not exhibit certain patterns.
a) The sequence can be written as and is nothing but a function defined by .
b) Let us now consider the sequence that can be denoted by . The range of the function only comprises two real figures .
c) Now, let us consider the sequence . Here, each natural is mapped on itself.
d) Consider , that can also be written as .
e) Consider the 2-tuple sequence in .
We might think that some of the above examples contain patterns of vectors (e.g. number) that are “getting close” to some other vector (e.g. number). Other sequences may not give us that impression. We are interested in what the long-term behavior of the sequence is:
- What happens for large values of ?
- Does the sequence approach a (real) vector/number?
Convergence of a Sequence
Now, let us try to formalize our heuristic thoughts about a sequence approaching a number arbitrarily close by employing mathematical terms.
we mean that for every real number there is an integer , such that
whenever . A sequence that fulfills this requirement is called convergent. We can illustrate that on the real line using balls (i.e. open intervals) as follows.
Note that represents an open ball centered at the convergence point or limit x. For instance, for we have the following situation, that all points (i.e. an infinite number) smaller than lie within the open ball . Those points are sketched smaller than the ones outside of the open ball .
Accordingly, a real number sequence is convergent if the absolute amount is getting arbitrarily close to some (potentially unknown) number , i.e. if there is an integer such that whenever .
Convergence actually means that the corresponding sequence gets as close as it is desired without actually reaching its limit. Hence, it might be that the limit of the sequence is not defined at but it has to be defined in a neighborhood of .
This limit process conveys the intuitive idea that can be made arbitrarily close to provided that is sufficiently large. “Arbitrarily close to the limit ” can also be reflected by corresponding open balls , where the radius needs to be adjusted accordingly.
The sequence can also be considered as a function defined by with
If there is no such , the sequence is said to diverge. Please note that it also important in what space the process is considered. It might be that a sequence is heading to a number that is not in the range of the sequence (i.e. not part of the considered space). For instance, the sequence Example 3.1 a) converges in to 0, however, fails to converge in the set of all positive real numbers (excluding zero).
The definition of convergence implies that if and only if . The convergence of the sequence to 0 takes place in the standard Euclidean metric space .
While a sequence in a metric space does not need to converge, if its limit is unique. Notice, that a ‘detour’ via another convergence point (triangle property) would turn out to be the direct path with respect to the metric as .
A convergent sequence is also bounded. We can prove this intuitive statement by setting . Hence, it exists a , such that for all . This implies
for all . Let for then the assertion follows immediately.
Let us re-consider Example 3.1, where the sequence a) apparently converges towards . Sequence b) instead is alternating between and and, hence, does not converge. Note that example b) is a bounded sequence that is not convergent. Sequence c) does not have a limit in as it is growing towards and is therefore not bounded. However, sequence d) converges towards 1. Finally, 2-tuple sequence e) converges to the vector .
If we consider one of the converging examples carefully, we will notice that we can chose an arbitrarily small and we will find a correspondingly large , such that with .
For instance, let us define to be in Example 3.1 a). Then, we can set and provided that .
A sequence is called increasing if for all . If an increasing sequence is bounded above, then converges to the supremum of its range.
If a sequence converges to a limit , its terms must ultimately become close to its limit and hence close to each other. That is, two arbitrary terms and of a convergent sequence become closer and closer to each other provided that the index of both are sufficiently large.
Theorem 3.1 (Convergent and Cauchy Sequences):
Assume that converges in a metric space to a limit . Then for every real there is an integer such that
Proof: is the limit of , i.e. . Assume is given. Due to the fact that , we can choose an integer , such that for all . If is valid, we can conclude
by employing the triangle inequality of the metric.
The last proposition proved that two terms of a convergent sequence becomes arbitrarily close to each other. This property was used by Cauchy to construct the real number system by adding new points to a metric space until it is ‘completed‘. Sequences that fulfill this property are called Cauchy sequence.
Definition 3.2 (Cauchy Sequence):
A sequence is called Cauchy sequence, if the following condition holds true:
Note that all pairs of terms with index greater than need to get close together. It is not sufficient to require that two consecutive terms get close together.
In the following example, we consider the function and sequences that are interpreted as attributes of this function. If we consider the points of the domain and the function values of the range, we get two sequences that correspond to each other via the function. This concept is closely related to continuity.
Example 3.2 (Non-Complete Space):
If we consider embedded in such that symbols such as and can be interpreted and used. The letter is assumed to represent a rational number in this example.
Considering the sequence in shows that the actual limit is not contained in .
Hence, a key question is:
- What condition on a sequence of numbers is necessary and sufficient for the sequence to converge to a limit but does not explicitly involve the limit?
If we already knew the limit in advance, the answer would be trivial. In general, however, the limit is not known and thus the question not easy to answer. It turns out that the Cauchy-property of a sequence is not only necessary but also sufficient. That is, every convergent Cauchy sequence is convergent (sufficient) and every convergent sequence is a Cauchy sequence (necessary).
Note that every Cauchy sequence is bounded. To see this set , then there is a : and thus for all . This means that all points with lies within a ball of radius 1 with as its center.
Theorem 3.2 (Cauchy Sequences & Convergence):
In an Euclidean space every Cauchy sequence is convergent.
Proof: Let be a Cauchy sequence in and let be the range of the sequence. If is finite, then all except a finite number of the terms are equal and hence converges to this common value.
Now suppose is infinite. We use the Balzano-Weierstrass Theorem to show that has an accumulation point , and then we show that converges to . First, recall that each Cauchy sequence is bounded. Hence, since is infinite there must be an accumulation point according to the Bolzano-Weierstrass Theorem.
Now let , then there exist a such that whenever . Hence, if we have
Let us furthermore connect the concepts of metric spaces and Cauchy sequences.
Definition 3.3: (Complete Metric Space & Banach Space)
A metric space is called complete (or a Cauchy space) if every Cauchy sequence of points in has a limit that is also in .
A Banach space is a complete normed vector space, i.e. a real or complex vector space on which a norm is defined.
Complete and Banach space will become important in Functional Analysis, for instance.
One-Sided Limit of a Function
In this section it is about the limit of a sequence that is mapped via a function to a corresponding sequence of the range. As mentioned before, this concept is closely related to continuity. Let denote the standard metric space on the real line with and .
Consider the Heaviside function as shown below. In the one-dimensional metric space there are only two ways to approach a certain point on the real line. For instance, the point can be either be approached from the negative (denoted by ) or from the positive (denoted by ) part of the real line. Sometimes this is stated as the limit is approached “from the left/righ” or “from below/above”.
The Heaviside function does not have a limit at , because if you approach 0 from positive numbers the value is 1 while if you approach from negative numbers the value is 0. As we know, the limit needs to be unique if it exists.
Hence, by writing the left-sided limit
we mean that for every real number , there is a , such that
Left-sided means that the -value increases on the real axis and approaches from the left to the limit point . Hence, is positive.
Accordingly, by writing the right-sided limit
we mean that for every real number , there is a , such that
Right-sided means that the -value decreases on the real axis and approaches from the right to the limit point . Hence, is positive.
Consider that the left-sided and right-sided limits are just the restricted functions, where the domain is constrained to the “right-hand side” or “left-hand side” of the domain relative to its limit point .
That is, for being the metric space the left-sided and the right-sided domains are and , respectively. If we then consider the limit of the restricted functions and , we get an equivalent to the definitions above.
Having said that, it is clear that all the rules and principles also apply to this type of convergence. In particular, this type will be of interest in the context of continuity.
Continuous Functions, Open and Closed Sets
Now, we connect two important concepts via the following theorem.
Theorem 3.3 (Continuous Functions & Closed/Open Sets):
Let be a function between metric spaces and . Then the following are equivalent:
(i) is continuous;
(ii) is open in for each open set ;
(iii) is closed in for each closed set .
Proof: ‘(i) (ii)’ Suppose is continuous on and let be an open set. If , then the claim follows from Proposition 1.1 (i). Thus, we suppose that .
Let . Due to the fact that is open, we can chose at least one such that for every . Given that is continuous on , a corresponding exists such that
and . That is, implies . Thus, , which means that is an open set.
‘(ii) (i)’ Let us suppose that is open whenever is open and we aim to prove that is continuous at each point of . Given and , we know that the ball is open in . By assumption so is . Since and is an open set, there must be a such that . This proves the assertion.
Please also refer to some counterexamples illustrating that the image of an open (closed) set under a continuous function does not need to be open (closed).