Chapter 1 Basic Concepts of Topology

Chapter 1 Basic Concepts of Topology

1.1 Introduction

The notion of a set, while telling us that certain objects —the elements that comprise it— have something in common with each other, does not give us any idea of the closeness between these elements. On the other hand, if we consider for example the real numbers, this notion is present. We know, for example, that the number 2 is much closer to 1 than 423 is. The concept of a topology in a set that we will define below tries to capture precisely this notion of closeness which, as we will see, admits many gradations.

Definition. : A topological space consists of a pair (X,𝒯), where X is a set and 𝒯 is a collection of subsets of X satisfying the following conditions:

  1. 1.

    The subsets and X of X are in 𝒯.

  2. 2.

    If Oλ, λI, is a one-parameter family of subsets of X in 𝒯, then IOλ is also in 𝒯.

  3. 3.

    If O and O are in 𝒯, then OO is also in 𝒯.

For simplicity, we will often denote the topological space (X,𝒯) simply by X when the topology is understood from context, as is common practice.

The elements of 𝒯, subsets of X, are called the open subsets of X. The set 𝒯itself is called a topology on X. Condition 2) tells us that infinite unions of elements of 𝒯are also in 𝒯, while condition 3) tells us that in general only finite intersections remain in 𝒯. The following examples illustrate why this asymmetry exists, they also illustrate how giving a topology is essentially giving a notion of closeness between the points of the set in question.

Example. : a) Let 𝒯={,X}, that is, the only open subsets of X are the empty subset and the subset X. It is clear that this collection of subsets is a topology, as it satisfies the three required conditions. This topology is called the indiscrete topology on X. We can say that, with this topology, the points of X are arbitrarily close to each other, since if an open set contains one of them it contains all of them.

Example. : b) Let 𝒯= 𝒫(X), the collection of all subsets of X. Clearly, this collection also satisfies the conditions mentioned above and therefore it is also a topology on X, the so-called discrete topology on X. We can say that in this one all the points are arbitrarily separated from each other since, for example, given any point of X there is an open set that separates it from all the others, which consists of only the point in question.

Example. : c) Let X be the set of real numbers, l R, and let
𝒯={Ol R|ifrO,ε>0suchthatif|rr|<ε,rO}, that is, the collection of open sets in the usual sense of the real numbers. Let’s see that this collection satisfies the conditions to be a topology. Clearly, 𝒯 (since it has no r), as well as l R𝒯 (since it contains all r), and thus condition 1) is satisfied. Let us examine the second condition: let rIOλ then rOλ for some λ and therefore there will exist ε>0 such that all r with |rr|<ε are also in Oλ, and therefore in IOλ. Finally, the third condition: let rOO then r is in O and therefore there will exist ε>0 such that all r with |rr|<ε will be in O; as r is also in O, there will exist ε>0 such that all r with |rr|<ε will be in O. Let ε′′=min{ε,ε}, then all r with |rr|<ε′′ will be in O and in O and therefore in OO, so we conclude that this last set is also in 𝒯. l R with this topology is called the real line.

Exercise. : In the real line, as defined in the previous example, find an infinite intersection of open sets that is not open.

Example. : d) Let X=l R×l Rl R2, that is, the Cartesian product of l Rwith itself —the set of all pairs (x,y), with x,yl R— and let
𝒯={Ol R2|if(x,y)O,ε>0suchthatif|xx|+|yy|<ε,(x,y)O}. Following the previous example, it can be seen that this is also a topological space and that this is the topology we usually use in l R2

Definition. : A metric space is a pair (X,d) consisting of a set X and a map d:X×Xl R, usually called distance, satisfying the following conditions for all x,x,x′′X:

  1. 1.

    Non-negativity: d(x,x)0, with equality only when x=x.

  2. 2.

    Symmetry: d(x,x)=d(x,x).

  3. 3.

    Triangle inequality: d(x,x)+d(x,x′′)d(x,x′′).

Exercise. : Prove that any metric space has a topology induced by its metric in a similar way to l R in the previous example.

Exercise. : Prove that, for any set, d(x,y)=1 if xy and d(x,x)=0 defines a distance. What topology does this distance induce on the set?

Clearly, a distance gives us a notion of closeness between points, in the precise form of a numerical value. A topology, by not generally giving us any number, gives us a much vaguer notion of closeness, but still generally interesting.

Terminology

We now give a summary of the usual terminology in this area, which is a direct generalization of the commonly used one.

Definition. : We will call the complement, Oc, of the subset O of X the subset of all elements of X that are not in O.

Definition. : We will say that a subset O of X is closed if its complement Oc is open.

Definition. : A subset N of X is called a neighborhood of xX if there is an open set Ox, with xOx, contained in N.

Definition. : We will call the interior of AX the subset Int(A) of X formed by the union of all open sets contained in A.

Definition. : We will call the closure of AX the subset Cl(A) of X formed by the intersection of all closed sets containing A.

Definition. : We will call the boundary of AX the subset A of X formed by Cl(A)Int(A)Int(A)cCl(A).

Exercise. : Let (X,d) be a metric vector space, prove that: a) Cx1={x|d(x,x)1} is closed and is a neighborhood of x. b) Nxε={x|d(x,x)<ε}, ε>0 is also a neighborhood of x. c) Int(Nxε)=Nxε d) Cl(Nxε)={x|d(x,x)ε} e) Nxε={x|d(x,x)=ε}.

Exercise. : Let (X,𝒯) be a topological space and A a subset of X. Prove that: a) A is open if and only if each xA has a neighborhood contained in A. b) A is closed if and only if each x in Ac (that is, not belonging to A) has a neighborhood that does not intersect A.

Exercise. : Let (X,𝒯) be a topological space, let AX and xX. Prove that: a) xInt(A) if and only if x has a neighborhood contained in A. b) xCl(A) if and only if every neighborhood of x intersects A. c) xA if and only if every neighborhood of x contains points in A and points in Ac.

1.2 Derived Concepts

In the previous sections, we have seen that the concept of a topology leads us to a generalization of a series of ideas and derived concepts that we knew how to handle in l Rn, revealing that they did not depend on the usual distance used in these spaces (the so-called Euclidean distance). It is then worth asking if there are still other possible generalizations. In this and the next subsection, we will study two more of them. These in turn open up a vast area of mathematics, which we will not cover in this course but is very important in what concerns modern physics.

The first of these notions is continuity.

Continuous Maps

Definition. : Let φ:XY be a map between two topological spaces (see the box below). We will say that the map φ is continuous if given any open set O of Y, φ1(O) is an open set of X.


Note

Definition. : A map ϕ:XY between a set X and another Y is an assignment to each element of X of an element of Y.

This generalizes the usual concept of a function. Note that the map is defined for every element of X while, in general, its image, that is, the set ϕ(X){yY|xXsuch thatϕ(x)=y}, is not all of Y. In the case that it is, i.e. ϕ(X)=Y, we will say that the map is surjective. On the other hand, if it is fulfilled that ϕ(x)=ϕ(x~)x=x~, we will say that the map is injective. In such a case, there exists the inverse map to ϕ between the set ϕ(X)Y and X. If the map is also surjective then its inverse is defined on all of Y and in this case, it is denoted by ϕ1:YX. It is also useful to consider the sets ϕ1(O)={xX|ϕ(x)O}, sometimes called the pre-image of the set O under ϕ.


Clearly, the previous definition only uses topological concepts. Does it have anything to do with the usual epsilon-delta definition used in l Rn? The answer is affirmative, as we will see below in our first theorem. But first, let’s see some examples.

Example. : a) Let X and Y be any topological spaces and let the topology on X be the discrete one. Then any map between X and Y is continuous. Indeed, for any open set O in Y, φ1(O) is some subset in X, but in the discrete topology, every subset of X is an open set.

Example. : b) Let X and Y be any topological spaces and let the topology on Y be the indiscrete one. Then any map between X and Y is also continuous. Indeed, the only open sets in Y are and Y, but φ1()=, while φ1(Y)=X, but whatever the topology of X, and X are open sets.

From the previous examples, it might seem that our definition of continuity is not very interesting. But that is because we have taken cases with the extreme topologies. It is in the intermediate topologies where the definition becomes more useful.

Example. : c) Let X and Y be real lines, and let φ:XY be a map such that φ(x)=1 if x0, φ(x)=1 if x<0. This map is not continuous because, for example, while the interval I=(1/2,3/2)Y is open, its pre-image φ1(I)={x|x0} is not open.

Theorem The map φ:XY is continuous if and only if given any point xX and any neighborhood MY of φ(x), there exists a neighborhood NX of x such that φ(N)M.

This theorem provides an equivalent definition of continuity that is much closer to the intuitive concept of continuity.

Proof:

Suppose φ is continuous. Le t x be a point of X, and MY a neighborhood of ϕ(x). By definition of neighborhood, there exists an open set OM in Y and containing ϕ(x). By continuity, N=φ1(O) is an open set of X, and as it contains x, it is a neighborhood of x. It is then fulfilled that φ(N)OM. Now to prove the reciprocal, suppose that given any point xX and any neighborhood M of φ(x), there exists a neighborhood N of x such that φ(N)M. Then let O be any open set of Y, we must now show that φ1(O) is an open set of X. Let x be any point of φ1(O), then φ(x)O and therefore O is a neighborhood of φ(x), therefore there exists a neighborhood N of x such that φ(N)O and therefore Nφ1(O). But then φ1(O) contains a neighborhood of each of its points and therefore it is open.

Exercise. : Let ϕ:XY and ψ:YZ be continuous maps, prove that the composite map ψϕ:XZ is also continuous. (Composition of maps preserves continuity.)


Note Induced Topology:

Let ϕ be a map between a set X and a topological space {Y,𝒯}. This map naturally provides, that is, without the help of any other structure, a topology on X, denoted by 𝒯ϕ and called the topology induced by ϕ on X. It is given by 𝒯ϕ={OX|O=ϕ1(Q),;Q𝒯}, that is, O is an open set of X if there exists an open set Q of Y such that O=ϕ1(Q). In other words, the open sets in X are the pre-images of all the open sets in Y. Note that under this topology on X, the map ϕ is automatically continuous. In fact, it is by construction the “minimal” topology on X that renders ϕ continuous.

Exercise. : Prove that this construction really defines a topology.

Not all topologies thus induced are of interest and, in general, they depend strongly on the map, as shown by the following example:

Example. :

a) Let X=Y=l R with the usual topology and let ϕ:l Rl R be the function ϕ(x)=17 xl R. This function is clearly continuous with respect to the topologies of X and Y, those of the real line. However, the topology induced on X by this map is the indiscrete one!: 𝒯ϕ={,X}. Interestingly, this “loss” of topological information can be intuitively associated to the information lost by ϕ in mapping the whole l R to a single point, 17. In fact, ϕ would be continuous with respect to any topology on X, so its continuity is not very interesting, as it does not tell us anything about the underlying topology.

b) Let X and Y be as in a) and let ϕ(x) be an invertible map, then 𝒯ϕ coincides with the topology of the real line.

Compactness

The second generalization that we are interested in corresponds to the concept of compactness. For this, we introduce the following definition: let X be a set, A a subset of X, and C={Aλ} a collection of subsets of X parameterized by a continuous or discrete variable λ. We say that this collection covers A if AλAλ. In such a case, we also say that C is a cover of A. When A is a topological space and the sets {Aλ} are open, we say that C is an open cover of A. Finally, a subcollection of C that also covers A is called a subcover.

Definition. : We say that a subset A of a topological space is compact if given any collection {Aλ} of open sets that covers A, there exists a finite subcollection of these Aλ that also covers A.

Example. : a) Let X be an infinite set of points with the discrete topology. Then a cover of X consists, for example, of all subsets of the form {x}, with xX. Since the topology of X is discrete, any cover is an open cover. But no finite number of the sets {x} cover all of X, therefore X is not compact in this case. Clearly, if X had only a finite number of elements it would always be compact, regardless of its topology.

Example. : b) Let X be any set with the indiscrete topology. Then X is compact. The only open sets of this set are and X, so any open cover has X as one of its members and this alone is enough to cover X.

Thus, we see that this property strongly depends on the topology of the set. The relation with the intuitive concept of compactness is clear from the following example and exercise.

Example. : c) Let X be the real line and A=(0,1). This subset is not compact because, for example, the following is an open cover of A that has no finite subcover: {An=(1n,n1n):n}

Exercise. : Let X be the real line and A=[0,1]. Prove that A is compact.

Proof:

Let {Aλ} be an open cover of [0,1]. Consider the set S of all x[0,1] such that [0,x] is covered by finitely many Aλ. We shall see that S=[0,1]. This set is not empty since 0 is in some open set of the covering, and therefore there exists x>0 such that [0,x] is inside this open set. Furthermore it is bounded above by 1. Therefore, S is a non-empty upper-bounded real set, so by the least-upper-bound property of l R it has a least upper bound. Let a be that number and Aλ0 be an element of the cover such that aAλ0. We assume a<1 otherwise we would be done. Adding this set to the finite subcovering we still get a finite subcover containing a, and therefore also some other element 1>b>a. Contradicting the fact that a was a least upper bound.

Now let’s see the relation between the two derived concepts of Topology, namely the continuity of maps between topological spaces and compactness. The fact that a map between topological spaces is continuous implies that this map is special, in the sense that it carries or conveys information about the respective topologies and preserves the topological properties of the sets it associates. This is seen in the following property, which —as shown by the following example— is very important.

Theorem Let X and Y be two topological spaces and ϕ:XY a continuous map between them. Then if A is a compact subset of X, ϕ(A) is a compact subset of Y.

Proof. : Let {Oλ} be a collection of open sets in Y that cover ϕ(A). Then the collection {ϕ1(Oλ)} covers A, but A is compact and therefore there will be a finite subcollection {ϕ1(Oλ~}) of the former that also covers it. Therefore, the finite subcollection Oλ~ will also cover ϕ(A). Since this is true for any open cover of ϕ(A) we conclude that ϕ(A) is compact.

Example. : Let A be a compact topological space and let ϕ:Al R be a continuous map between A and the real line. ϕ(A) is then a compact real set and therefore a closed and bounded set, but then this set will have a maximum and a minimum, that is, the map ϕ reaches its maximum and minimum in A.

Finally, another theorem of fundamental importance about compact sets, which shows that they have another property that makes them very interesting. For this, we introduce the following definitions, which also only use topological concepts. A sequence in a set X, {xn}={x1,x2,}, with xnX, is a map from to this set. Given a sequence {xn} in a topological space X, we say that xX is a limit point of this sequence if given any open set OX containing x there exists a number N such that for all n>N, xnO. We say that xX is an accumulation point of this sequence if given any open set OX containing x, infinitely many elements of the sequence also belong to O.


Exercise. : Find an example of a sequence in some topological space with different limit points.


Theorem Let A be compact. Then every sequence in A has an accumulation point.


Proof: Suppose —contrary to the theorem’s assertion— that there exists a sequence {xn} in A without any accumulation points. That is, given any point xA there exist a neighborhood Ox containing it and a number Nx such that if n>Nx then xnOx. Since this is valid for any x in A, the collection of sets {Ox|xA} is an open cover of A, but A is compact and therefore it has a finite subcover. Let N be the maximum among the Nx of this finite subcover. But then xnA for all n>N which is absurd.

Exercise. : Prove that compact sets in the real line are the closed and bounded ones.

We can now ask the inverse question: if AX is such that every sequence has accumulation points, is it true then that A is compact? An affirmative answer would give us an alternative characterization of compactness, and this is affirmative for the case of the real line. In general, however, the answer is negative: there are topologies in which every sequence in a set has accumulation points in it, but this set is not compact. However, all the topologies we will see are second countable [See box] and in these the answer is affirmative.

In the real line, it is true that if xl R is an accumulation point of a sequence {xn} then there exists a subsequence, {x~n} (that is, a restriction of the map defining the sequence to an infinite subset of ) having x as a limit point. This is also not true in the generality of topological spaces, but it is if we consider only those that are first countable [See box]. All the spaces we will see in this course are first countable.


1.3 Completeness of Metric Spaces and Cauchy Sequences

When the topology of a set is generated by a metric, the notions of closeness acquire a more tangible, numerical reality. In this case, we can introduce a couple of very important concepts that will be key in the rest of the book.

Suppose we have a sequence of elements xn converging to an element x, that is, x is a limit point. If the topology is induced by a metric distance, then it will happen that,

d(xn,x)0 (1.1)

That is, given an arbitrary ε>0, there will exist an N such that d(xn,x)<ε for all n>N.

Let n and m be greater than N, then, due to the triangle inequality that distances satisfy,

d(xn,xm)d(xn,x)+d(x,xm)<2ε. (1.2)

That is, all elements of the sequence must necessarily get closer to each other if the sequence converges. We will say that a sequence xn is a Cauchy sequence if its elements get closer to each other, that is, if given any ε>0, there exists an N such that for all n,m>N, d(xn,xm)<ε.

Thus, every sequence that has a limit point is a Cauchy sequence. Is the inverse valid? That is, does every Cauchy sequence have a limit point? The answer is that in general, it is not so. For example, if the space is the real line without 0 with the distance given by the absolute value, then the sequence xn=1n does not have a limit point. Clearly, this space is strange because it has a gap! But as we will see later, gaps can be much less obvious than this. And that is why a very important concept among metric spaces (and also normed spaces, since the norm is a particular metric function) is that of a Complete set, that is, a set where every Cauchy sequence has a limit point.

Note *Countability of topological spaces.

Definition. : We say that a topological space {X,𝒯} is first countable if for each pX there exists a countable collection of open sets {On} such that for every neighborhood N of p there exists i such that OiN.


Definition. : We say that a topological space {X,𝒯} is second countable if there is a countable collection of open sets such that any open set of X can be expressed as a union of sets from this collection.


Example. :

a) X with the indiscrete topology is first countable.

b) X with the discrete topology is first countable. And second countable if and only if its elements are countable.


Exercise. : Prove that the real line is first and second countable. Hint: For the first case, use the open sets On=(p1n,p+1n) and for the second Opqn=(pq1n,pq+1n)

Note *Separability of topological spaces.

Definition. : A topological space X is Hausdorff if given any pair of points of X, x and y, there exist neighborhoods Ox and Oy such that OxOy=.

Example. :

a) X with the indiscrete topology is not Hausdorff.

b) X with the discrete topology is Hausdorff.

Exercise. : Find a topology such that the integers are Hausdorff and compact.

Exercise. : Prove that if a space is Hausdorff then if a sequence has a limit point, it is unique.

Exercise. : Let X be compact, Y Hausdorff, and ϕ:XY continuous. Prove that the images of closed sets are closed. Find a counterexample if Y is not Hausdorff.

Bibliography notes This chapter is essentially a condensed version of Chapters 26, 27, 28, 29, and 30 of [Geroch], see also [Kelley], [Wald], and [Isham]. Topology is one of the most fascinating branches of mathematics, if you delve deeper you will be captivated! Of particular interest in physics is the notion of Homotopy, a good place to understand these ideas is Chapter 34 of [Geroch].

Last modified: June 14, 2025.
Website built with Franklin.jl and the Julia programming language.