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 (X,T ) where T P(X) is a set of subsets of X, called open sets, such that:

  1. X T , T
  2. Uα TαUα T
  3. U1 T ,U2 TU1 U2 T

Let’s start by defining a topology on .

Example 1.1 (standard topology on ). We call a subset U open if x Uε > 0,ε such that for y X,|y x| < ε implies y U.

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 X, we can define a topology on every subset of X.

Definition 1.2. Let X,T be a topological space, Y X is a subset of X. Define a topology on Y as follows TY = {U Y |U T}. Then (Y,TY ) is a topological space and TY 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 X, a discrete topology is a pair (X,P(X)) where P(X) is a power set of X.

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 U T we have U = xU{x}.

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.

Example 1.3. Let be a set of integers. Standard topology on induces a discrete topology on .

A lot of useful examples of topological spaces are created from the following construction:

Definition 1.3. A metric space is a pair (X,ρ) where X is a set and ρ: X × X is a function, defined on pairs of elements of X such that:

  1. x,y Xρ(x,y) 0, and ρ(x,y) = 0 if and only if x = y
  2. x,y Xρ(x,y) = ρ(y,x)
  3. x,y,z Xρ(x,z) ρ(x,y) + ρ(y,z)

The quantity ρ(x,y) is called distance between x and y, and the function rho 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 ρ(x,y) = |x y|. 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 (X,ρ) is a metric space, ρ induces a metric on any subset Y X. The axioms are satisfied trivially by restricting to Y . Therefore, (Y,ρ) is a metric space.

An important set of metrics are various metrics defined on n = × × × = {(x 1,x2,,xn)|xi }. For x = (x1,x2,,xn) and y = (y1,y2,,yn) the following metrics are defined:

Lp metric: for p ,p 1,ρp(x,y) = (|x1 y1|p + + |x n yn|p)1p

L metric: ρ(x,y) = max(|x1 y1|,,|xn yn|)

Of course, we need to prove that both Lp and L together with n 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.

Definition 1.4. Let (X,ρ) be a metric space, x X,ε ,ε > 0. An open ball centered at x with a radius ε is a set.

Bε(x) = {y Xρ(x,y) < ε}

Definition 1.5. Let (X,ρ) be a metric space. A subset U X is called open if x Uε ,ε > 0 such that Bε(x) U.

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

Example 1.4. All Lp metrics (1 p ) define the same topology on n

Proof. Pick x,y n. We can see that

max i|xi yi| ( i|xi yi|p)1p n1p max i|xi yi|

Since:

|xj yj| max i|xi yi|

And:

i|xi yi|p np max i|xi yi|

.

Therefore, we can see that

Bε,ρp(x) Bε,ρinf(x) Bε,n1pρp(x)

Which means that a subset is open in Lp metric if and only if it is open in L 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 X is a collection of subsets of X such that V 1,V 2 V 1 V 2 = αUα for Uα . 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 X, then topology, generated by basis is a set of all subsets of X that can be written as a union of basis elements, as well as X and .

Check that the construction above indeed defines a topology on X. 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 ε < 1) and both bases define the same exact topology.

Also check that standard topology on Rn could be defined using a basis consisting of open intervals (p,q) where p,q .

Let’s now look at the example where a topology is defined without a metric.

Example 1.5 (triangles on a plane). Let T 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 T. We call a subset U T open if, roughly speaking, for each triangle, it contains other together “close” to it. To formalize this informal concept, we define, for each triangle Δ T, a set U(Δ,ε) T 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 U(Δ,ε) T form a basis for a set T. This basis defines the topology we were looking for.

Here’s one another simple, but quite useful definition.

Definition 1.7. Let (X,T ) be a topological space. Subset F X is called closed if a it’s complement X F is open.

The following proposition follows directly from the definition above and basic properties of set complement.

Proposition 1.1. Let (X,T ) be a topological space. Then:

  1. X and are both closed
  2. F1,F2closed sets, F1 F2is closed
  3. Fαclosed sets,  αFαis closed

Definition 1.8. Let (X,T ) be a topological space, M X is an arbitrary subset of X. A closure of M is M̄ = FM,Fis closedF. In other words, the closure of M is a smallest closed set that contains M.

Informally, we can obtain a closure of a set M by adding to it all the points that are “sufficiently closed” to the points of M that are not themselves contained in M. If a set M does not have such points, then M is closed. Formally:

Proposition 1.2. Let (X,T ) be a topological space, M X. Then M̄ = {x XU T ,x U,U M}

Proof. Let M X. By definition of a closure x M̄ means that for every closed subset F X,F M, we have x F. By definition of a closed set, we can rewrite the statement above using F = X U for some open set U. In other words, for every open set U X such that U M = (since X U M), we have xU. Or, equivalently, if U x then U M. □

Finally, we introduce one more important definition.

Definition 1.9. Let (X,T ) be a topological space. A neighborhood Nx of a point x X is an open set U x.

Proposition 1.3. Let (X,T ) be a topological space. A subset U X is open if and only if for every point of U its neighborhood is contained in U.

Proof. Let U X be an open set. Then it is itself a neighborhood for each point it contains. Conversely, let U X and assume that x X Nx U. Then U = xUNx