You should be familiar (at least intuitively) with the definitions of a limit, of a continuous function, and of a real number. Advanced analysis courses define limits and continuity in a general way and follow a rigorous construction of real numbers. We defer this construction until section 3 while still using using in our examples. As you will see later, there won’t be a circular dependency.
Definition 1.1. A topological space is a pair where is a set of subsets of , called open sets, such that:
Let’s start by defining a topology on .
Informally speaking, a set is open if for every element of that set it contains all the elements that are “sufficiently close” to that element. Check that a collection of open sets defined above satisfies the axioms of a topological space.
If a topology is defined on a set , we can define a topology on every subset of .
Definition 1.2. Let be a topological space, is a subset of . Define a topology on as follows . Then is a topological space and is called a subspace topology (or induced topology).
Using the axioms of a topological space and the properties of set operations, one can check that subspace topology is indeed a topology. In particular, any subset of becomes a topological space with a standard topology.
Example 1.2 (discrete topology). For any set , a discrete topology is a pair where is a power set of .
In other words, a discrete topology is a set together with all its subsets. It satisfies the axioms of a topological space trivially. Using axiom 2, it’s easy to prove that if all 1-point subsets of a topological space are open, then the topology is discrete, since for every subset we have .
Discrete topology is not a very interesting example, but it’s good to refer to it by a special name when it arises in certain constructions.
A lot of useful examples of topological spaces are created from the following construction:
Definition 1.3. A metric space is a pair where is a set and is a function, defined on pairs of elements of such that:
- , and if and only if
The quantity is called distance between and , and the function is usually called a metric. Axiom 3 is called a “triangle inequality”.
A familiar example of a metric space is a set of real numbers with a metric . Another example is a geometric plane on which is a distance between the points. In these examples, axiom 3 is a usual “triangle inequality”.
Whenever is a metric space, induces a metric on any subset . The axioms are satisfied trivially by restricting to . Therefore, is a metric space.
An important set of metrics are various metrics defined on . For and the following metrics are defined:
metric: for
metric:
Of course, we need to prove that both and together with satisfy axioms of a metric space.
For each metric space, we can naturally define a topology. In this context, naturally means that this topology is defined the same way for every metric space.
Check for yourself that open sets in a metric space are, indeed, open in a topological sense. In other words, a collection of open sets in a metric space define a topology on that metric space with open sets defined as above. In addition, check that open balls are open in the defined topology. If you’re familiar with the definition of open sets from the advanced analysis books (e.g. Rudin), this exercise will help you further see the connection between open sets and open balls. The word “open” means the same thing in the case of both topological and metric spaces. Finally, check that standard topology on is the same as standard metric-induced topology on . In other words, check that the topologies consist of precisely the same open sets.
Different metrics can induce the same topology. Here’s an important example
Proof. Pick . We can see that
Since:
And:
.
Therefore, we can see that
Which means that a subset is open in metric if and only if it is open in metric. □
It’s quite tedious to list all possible open sets to define a topology. Instead mathematicians usually use the following method:
Definition 1.6. A basis for a set is a collection of subsets of such that for . In other words, every intersection of basis elements can be written as a (potentially infinite) union of basis elements.
If is a basis for a set , then topology, generated by basis is a set of all subsets of that can be written as a union of basis elements, as well as and .
Check that the construction above indeed defines a topology on . In a metric space, open balls form a basis for a topology induced by a metric. Moreover, one can take only the open balls up to a fixed radius (say, with ) and both bases define the same exact topology.
Also check that standard topology on could be defined using a basis consisting of open intervals where .
Let’s now look at the example where a topology is defined without a metric.
Example 1.5 (triangles on a plane). Let be a set of triangles on a geometric plane. For our purposes, a triangle is a geometric shape without ordering of vertices. Let’s define a topology on . We call a subset open if, roughly speaking, for each triangle, it contains other together “close” to it. To formalize this informal concept, we define, for each triangle , a set that consists of all triangles such that the following is true: there exists an ordering of vertices for and such that the distances between the vertices with the same indices are less than . Check that the set form a basis for a set . This basis defines the topology we were looking for.
Here’s one another simple, but quite useful definition.
The following proposition follows directly from the definition above and basic properties of set complement.
Definition 1.8. Let be a topological space, is an arbitrary subset of . A closure of is . In other words, the closure of is a smallest closed set that contains .
Informally, we can obtain a closure of a set by adding to it all the points that are “sufficiently closed” to the points of that are not themselves contained in . If a set does not have such points, then is closed. Formally:
Proof. Let . By definition of a closure means that for every closed subset , we have . By definition of a closed set, we can rewrite the statement above using for some open set . In other words, for every open set such that (since ), we have . Or, equivalently, if then . □
Finally, we introduce one more important definition.
Proposition 1.3. Let be a topological space. A subset is open if and only if for every point of its neighborhood is contained in .
Proof. Let be an open set. Then it is itself a neighborhood for each point it contains. Conversely, let and assume that . Then □