Professional Documents
Culture Documents
Contents
1. Introduction 3
2. Topological Spaces 16
3.2. Covers 49
3.3. Homeomorphisms 52
1. Introduction
Question 1.1. We have a shell of the doughnut, with a hole on it. The inside is red and
the outside is blue. Can you move the shape around stretching and bending without
tearing, so that it is with the red outside and blue inside?
Question 1.2. You have a picture frame with a loop of string fixed on the back, and
two nails. It looks either one of the nails is sufficient to hang the frame, because
removing any one of the nails does not cause the frame fall down.
Can you create a way of hanging the frame by smartly winding the loop of string
onto the nails so that pulling out any one of the nails from the wall leads the painting
falling down?
The Nobel Prize in Physics 2016 was awarded with one half to David J. Thouless,
and the other half to F. Duncan M. Haldane and J. Michael Kosterlitz “for theoretical
discoveries of topological phase transitions and topological phases of matter”;
see Fig. 5.
Topology was the key to the Nobel Laureates’ discoveries, and it explains why
electronical conductivity inside thin layers changes in integer steps. — Popular Science
Background of the Nobel Prize in Physics 2016, Page 4(5)
The key idea is that every unordered pair of points on a simple closed curve corresponds
bijectively to a point on a Möbius strip, and that the Möbius strip is not embeddable
into the plane.
Theorem 1.3 (Greene and Lobb, 2021). For every smooth Jordan curve γ and rectan-
gle R in the Euclidean plane, there exists a rectangle similar to R whose vertices lie
on γ.
See “J.E. Greene and A. Lobb, The rectangular peg problem, Ann. Math. (2) 194
(2021), 509–517”. The proof relies on the theorem of Shevchishin and Nemirovski that
the Klein bottle does not admit a smooth Lagrangian embedding in C2 .
9
Topology, over most of its history, has NOT generally been applied outside of
mathematics (with a few interesting exceptions).
WHY?
• TOO abstract? The ancient mathematicians could not even convince of the subject.
1.2. Geometry v.s. topology. Below are some views from Robert MacPherson, a
plenary addresser at the ICM in Warsaw in 1983.
1.3. The origin of topology. Here are three stories about the origin of topology.
1.3.1. The seven bridges of Königsberg. The problem was to devise a walk through the
city that would cross each of those bridges once and only once; see Fig. 8.
The negative resolution by Leonhard Paul Euler (1707–1783) in 1736 laid the founda-
tions of graph theory and prefigured the idea of topology. The difficulty Euler faced
was the development of a suitable technique of analysis, and of subsequent tests that
established this assertion with mathematical rigor.
Euler was a Swiss mathematician, physicist, astronomer, logician and engineer who
made important and influential discoveries in many branches of mathematics like
infinitesimal calculus and graph theory, while also making pioneering contributions to
several branches such as topology and analytic number theory.
1.3.2. The four colour theorem. The four colour theorem states that given any separation
of a plane into contiguous regions, producing a figure called a map, no more than four
colours are required to colour the regions of the map so that no two adjacent regions
have the same color.
The four color theorem was proved in 1976 by Kenneth Appel and Wolfgang Haken.
It was the first major theorem to be proved using a computer.
Theorem 1.4 (Euler’s polyhedral formula). The number of vertices v, faces f , and
edges e in a convex 3-dimensional polyhedron satisfy v − e + f = 2.
Historical notes. The classification of surfaces was initiated and carried through in
the orientable case by Möbius in a paper which he submitted for consideration for the
Grand Prix de Mathématiques of the Paris Academy of Sciences. He was 71 at the
time. The jury did not consider any of the manuscripts received as being worthy of the
prize, and Möbius’ work finally appeared as just another mathematical paper.
15
We are now only a short step in mathematical intuition, away from one of the most
basic and central results of topology. In terms of careful proof we have an extremely
long walk ahead.
Theorem 1.7. Topological equivalent polyhedra have the same Euler characteristic.
2. Topological Spaces
• A (topological) space is a pair (X, Ω), where the collection Ω, called a topology or
topological structure on X, satisfies the axioms
(i) ∅ ∈ Ω and X ∈ Ω;
(ii) the union of any members of Ω lies in Ω;
(iii) the intersection of any two members of Ω lies in Ω.
• A point in X: p ∈ X.
• An open set in (X, Ω): a member O ∈ Ω.
A closed set in (X, Ω): a subset A ⊆ X s.t. Ac ∈ Ω.
A clopen set in (X, Ω): an open set O ∈ Ω which is also closed.
Remark 2.2. Being closed is not the negation of being open! A set might be
• open but not closed, or
• closed but not open, or
• clopen, or
• neither closed nor open.
Here are some topological spaces that we will meet frequently in this note.
Proof. The forward direction is clear since every singleton is a particular subset. For
the backward direction, since every subset in a space is the union of the singletons
consisting of its members, it is open. □
Example 2.6. The set {0} ∪ {1/n : n ∈ Z+ } is closed in the real line. □
Homework 2.1 (Deadline: 11.59 pm, Mar 3rd). Does there exist a topology which is
both a particular point topology and an excluded point topology?
Homework 2.2 (Deadline: 11.59 pm, Mar 3rd). Find a topological space (X, Ω) with
a set A ⊂ X satisfying the following 2 properties:
Example 2.7. The Cantor ternary set K is the number set created by iteratively
deleting the open middle third from a set of line segments, i.e.,
( )
X ak
K= k
: a k ∈ {0, 2} = 0.a 1 a 2 · · · : a i ∈ {0, 2, 3, 5, 6, 8, 9} ⊂ [0, 1].
k≥1
3
See Fig. 14. The set K was discovered by Henry John Stephen Smith in 1874, and
Figure 14. The first figure is Henry John Stephen Smith (1826–1883), a
mathematician remembered for his work in elementary divisors, quadratic
forms, and Smith-Minkowski-Siegel mass formula in number theory. The
second figure is Georg Cantor (1845–1918), a German mathematician
who invented set theory. The third figure illustrates the Cantor ternary
set.
introduced by Georg Cantor in 1883. It has a number of remarkable and deep properties.
For instance, it is closed in R.
Remark 2.10. We are following the Nicolas Bourbaki group and define the term “neigh-
bourhood” in the above sense. There is another custom that a neighbourhood of a
point p is an open set containing p. Nicolas Bourbaki is the collective pseudonym
under which a group of (mainly French) 20th-century mathematicians, with the aim
of reformulating mathematics on an extremely abstract and formal but self-contained
basis, wrote a series of books beginning in 1935. With the goal of grounding all of
mathematics on set theory, the group strove for rigour and generality. Their work
21
led to the discovery of several concepts and terminologies still used, and influenced
modern branches of mathematics. While there is no one person named Nicolas Bourbaki,
the Bourbaki group, officially known as the Association des collaborateurs de Nicolas
Bourbaki (Association of Collaborators of Nicolas Bourbaki), has an office at the École
Normale Supérieure in Paris.
Question 2.11. A topology can be defined by assigning open sets; see Definition 2.1.
Can it be defined by assigning closed sets?
Remark 2.12. Given (X, Ω). Since the union of all members in Ω is X, the topology Ω
itself carries enough information to clarify a topological space. However, the topological
space (X, Ω) is often denoted simply by X, because different topological structures in
the same set X are often considered simultaneously rather seldom. Moreover, to exclaim
a set is in general easier than clarifying a topology. As will be seen in Section 2.2,
subspace topology helps the clarification by calling the knowledge of common topologies.
22 D.G.L. WANG
Definition 2.13. Given (X, Ω) and A ⊆ X. The subspace topology (or induced
topology) of X induced by A:
ΩA = {O ∩ A : O ∈ Ω}.
3) Describe the topological structure of ΩT1 induced by the two-element set {1, 2}.
Theorem 2.15. Let (X, Ω) be a topological space and A ⊆ X. The subspace topology
of (X, Ω) induced by A can be defined alternatively in terms of closed sets as
U ∩ (A \ {p}) ̸= ∅, ∀ neighbourhood U of p.
A = {x ∈ X : U ∩ A ̸= ∅, ∀ neighbourhood U of x}.
Remark 2.20. The symbols Cl(A), Int(A), and Ext(A) are used to denote the closure A,
the interior A◦ , and the exterior (Ac )◦ resp., when one emphasizes that they are set
operators. The symbol Bd(A) is sometimes recognized as the boundary of A, but used
uncommonly since the symbol ∂ well plays the role of a set operator.
In R, we have IntQ = ∅ and ExtQ = ∅. For the Cantor set in Example 2.7, we have
K = K, K ◦ = ∅, ExtK = I \ K, and ∂K = K.
Puzzle 2.23. The Smith-Volterra-Cantor set K ′ is a set of points on the real line
R; see Fig. 15. It can be obtained by removing certain intervals from I as follows. After
removing the middle 1/4 from I, remove the subintervals of length 1/4n from the
middle of each of the remaining intervals. For instance, at the first and second step the
remaining intervals are
3 5 5 7 3 5 25 27
0, ∪ ,1 and 0, ∪ , ∪ , ∪ ,1 .
8 8 32 32 8 8 32 32
Show that the set K ′ is nowhere dense.
Theorem 2.24 (Characterization of the closure and interior). The closure of a set is
the smallest closed set containing that set, and the interior of a set is the largest open
set contained in that set.
Proof. The closure of a set is the intersection of all closed sets containing it, and the
interior of a set is the union of all open sets contained in it. □
1) The interior and exterior of a set are open, while the boundary and closure are closed.
2) The whole set X can be decomposed w.r.t. a subset A:
X = (∂A) ⊔ (IntA) ⊔ (ExtA) = (ClA) ⊔ (ExtA),
3) ∂A = A ∩ Ac .
4) ∂(A◦ ) ⊆ ∂A.
In the operator theory, we denote the set operator of closure, interior, complement
resp. by k, i, and c. For instance, the set operator c is an involution.
26 D.G.L. WANG
1) Both the set operations interior and closure preserve the inclusion, i.e.,
A⊆X =⇒ A◦ ⊆ X ◦ and A ⊆ X.
2) ci = kc.
3) The operators k, i, and ki = kckc are idempotent.
4) The distributivity of k with ∪, and the distributivity of i with ∩:
The operators k does not work well with ∩, neither does i with ∪:
On the one hand, since the open set IntA is contained in the set Y = Cl ◦ IntA, we
find IntA ⊆ IntY by Theorem 2.24. Then by using the closure relation in (1) we obtain
Y = Cl ◦ IntA ⊆ Cl ◦ IntY.
On the other hand, since the set IntY is contained in the closed set Y , applying
Theorem 2.24 we find
Cl ◦ IntY ⊆ Y.
Remark 2.28. It is clear that the operation of taking exterior does not preserve the
inclusion, and that it is not idempotent.
From Theorem 2.27, one may see that the set operations of taking closure and taking
interior share some properties. However, there are some properties that they do not
share.
Puzzle 2.32. Recall that we can define a topology either in terms of open sets or in
terms of closed sets. Can we define a topology with the aid of the closure operation, or
the interior operation?
Answer. Let X be a set. Let Cl∗ be a transformation on the power set 2X s.t.
(i) Cl∗ ∅ = ∅;
(ii) A ⊆ Cl∗ A;
(iii) distributive with the union operation: Cl∗ (A ∪ B) = Cl∗ A ∪ Cl∗ B;
(iv) idempotent: Cl∗ Cl∗ A = Cl∗ A.
28 D.G.L. WANG
Then the set Ω = {O ⊆ X : Cl∗ (Oc ) = Oc } is a topology on X. Moreover, the set Cl∗ A
is the closure of a set A in the topological space (X, Ω). □
Definition 2.33. Given (X, Ω) and A, B ⊆ X.
• A is dense in B: B ⊆ A.
• A is everywhere dense: A = X, i.e., ExtA = ∅.
• A is nowhere dense: ExtA is everywhere dense, i.e., ExtExtA = ∅.
Remark 2.34. Concerning topics on subset density, an often helpful fact is Theorem 2.24;
see the proofs of Theorem 2.36, Corollary 2.37, Corollary 2.38.
Example 2.35. The whole set is everywhere dense. Continuing Example 2.21, the
set Q is everywhere dense in R, and the Cantor set is nowhere dense in I.
Theorem 2.36 (Characterization for everywhere density). A set is everywhere dense
⇐⇒ it meets every nonempty open set ⇐⇒ it meets every neighbourhood.
Proof. The second equivalent is clear. We show the first. Let (X, Ω) be a topological
space with A ⊆ X.
⇒. If X is indiscrete, then there is only one nonempty open set, that is, the whole
set X. Certainly A meets X. By Theorem 2.36, the set A is everywhere dense.
⇐. Since A = X ̸= A, no A is closed. Hence X is indiscrete.
□
Theorem 2.40. The real line is not the union of a countable number of nowhere dense
sets.
Proof. Assume to the contrary that R = ∪n∈N Yn , where Yn is nowhere dense in R. Since
Y0 is nowhere dense, by Theorem 2.39, ∃ [a0 , b0 ] ⊆ Y0c . Since Y1 is nowhere dense, by
Theorem 2.39, ∃ [a1 , b1 ] ⊆ [a0 , b0 ] ⊆ Y1c . Continuing in this way, one obtains a nested
sequence of closed intervals [an , bn ] which is contained in Ync . From calculus, we know
that the set A = ∩n∈N [an , bn ] ̸= ∅. But
!c
\ [
A⊆ Ync = Yn = Rc = ∅,
n∈N n∈N
a contradiction. □
Remark 2.42. In contrast to a basis of a vector space in linear algebra, a base need
not to be maximal, e.g., any open set can be safely added to a base. Moreover,
a topological space may have disjoint bases of distinct sizes, e.g., the standard
topology ΩR of the real line has a base of all open intervals with rational ends, and
another base of all open intervals with irrational ends.
Theorem 2.45. The real line has no minimal bases. In other words, for any base β of
the real line R, ∃ B ∈ β s.t. β \ {B} is a base of R.
Proof. Assume that R has a minimal base β. Let A ∈ β. By Theorem 2.44, there
exists a pair (xA , OA ) where xA ∈ OA ⊆ ΩR s.t. the set A is the unique M ∈ β s.t.
xA ∈ M ⊆ OA .
Proof. ⇒: Since any member of β is open for the topology generated by β, the
intersection of any two members is open and hence can be generated by the base β. ⇐:
Define Ω ⊆ 2X to be the collection of unions of members of β. By using distributive
law for the unions and intersections, one may verify that Ω is a topology on X. □
Space 9. The evenly spaced integer topology (Z, Ω): Ω is generated by all
arithmetic progressions.
33
Furstenberg’s proof of the infinitude of primes. In the evenly spaced integer topology,
each set P (a, d) = {a + nd : n ∈ Z} is clopen. Note that
[
Z \ {−1, 1} = P (0, p).
p is prime
If the number of primes is finite, then the set {−1, 1} is clopen. However, every open
set is infinite from definition, a contradiction. □
2.5. Hierarchy of topologies. In this section, we consider a set X with two topologies
Ω1 and Ω2 .
Definition 2.47. When a set X has two topologies Ω1 and Ω2 such that Ω1 ⊆ Ω2 , we
say that Ω1 is coarser than Ω2 , and that Ω2 is finer than Ω1 .
Proposition 2.48. Given a set X. Then the discrete topology is the finest topology
on X, and the indiscrete topology is the coarsest topology on X.
Example 2.49. The cofinite topology on the real line is coarser than the canonical
topology.
Proof. Let (X, d) be a metric space and let x, y ∈ X. By the triangle inequality, we
have
d(x, y) + d(y, x) ≥ d(x, x).
Applying the symmetry property to the second summand on the left side, and using
the identity of indiscernibles on the right side, we obtain
2d(x, y) ≥ 0,
which reduces to the nonnegativity by dividing 2 on both sides. □
Proof. The symmetry and positive semi-definity for each of the functions ρ+ and ρmax
are clear. The triangle inequality is shown below.
ρ+ (x, z) + ρ+ (y, z) = d1 (x, z) + d2 (x, z) + d1 (y, z) + d2 (y, z)
= d1 (x, z) + d1 (y, z) + d2 (x, z) + d2 (y, z)
≥ d1 (x, y) + d2 (x, y) = ρ+ (x, y);
ρmax (x, z) + ρmax (y, z) = max{d1 (x, z), d2 (x, z)} + max{d1 (y, z), d2 (y, z)}
≥ max{d1 (x, z) + d1 (y, z), d2 (x, z) + d2 (y, z)}
≥ max{d1 (x, y), d2 (x, y)} = ρmax (x, y).
The identity of indiscernibles can be shown as follows.
ρ+ (x, y) = 0 ⇐⇒ d1 (x, y) = 0 and d2 (x, y) = 0 ⇐⇒ x = y.
ρmax (x, y) = 0 ⇐⇒ d1 (x, y) = 0 and d2 (x, y) = 0 ⇐⇒ x = y.
This completes the proof. □
Example 2.54. The map d∆ (A, B) = S(A) + S(B) − 2S(A ∩ B), where S(C) is the
area of a polygon C, defines the area metric on the set of all bounded plane polygons.
In fact, the number d∆ (A, B) is the area of the symmetric difference A∆B. Thus
the symmetry and being positive-definite are clear. The subadditivity holds because
A∆C ⊆ (A∆B) ∪ (B∆C) for any bounded plane polygons A, B, C.
Proposition 2.56. For any metric d, the function min{d(x, y), 1} is a metric.
Proof. We check that the function ρ(x, y) = min{d(x, y), 1} satisfy the 3 conditions for
a metric.
(1) Triangle inequality. Since ρ(x, z) = min{d(x, z), 1} ≤ 1, by the non-negativity of the
metric d, the desired inequality holds if d(x, y) ≥ 1 or d(y, z) ≥ 1. Consequently, we
may suppose that d(x, y) < 1 and d(y, z) < 1. Then, by the triangle inequality of d,
we infer that
ρ(x, y) = 0 ⇐⇒ d(x, y) = 0 ⇐⇒ x = y.
In linear algebra, functional analysis and related areas, we use the concept of norm,
which has a close relationship with metrics.
• The p-norm of x:
n
!1/p
X p
(1) ∥x∥p = |xi | .
i=1
The subadditivity of the p-norm is called Minkowski’s inequality; see Theorem A.6.
• The grid/Manhattan/taxicab norm or snake distance: the 1-norm. See Fig. 18.
• The ℓp -space: the set of infinite complex-valued sequences (x1 , x2 , . . .) with conver-
gent ℓp -norm
!1/p
X p
∥(x1 , x2 , . . .)∥ = |xi | .
i
Z !1/p
∥f ∥p,X = |f (x)|p dx .
X
Example 2.63. The names in Definition 2.62 come from the Euclidean space.
Remark 2.65. In computer graphics the Hausdorff distance is used to measure the
difference between two different representations of the same 3D object.
Theorem 2.66. Let (X, d) be a metric space with a closed set A and a point b. Then
the following equivalence holds:
d(A, b) = 0 ⇐⇒ b ∈ A.
(1) d(x, A) = 0 ⇐⇒ x ∈ A.
(2) dH (A, B) is finite if both A and B are bounded.
(3) dH (A, B) = 0 ⇐⇒ A = B.
40 D.G.L. WANG
Theorem 2.68. For every metric space, the Hausdorff distance is a metric on the set
of its closed bounded subsets.
Proof. We should verify the three conditions for a metric. Let (X, d) be a metric space.
Let A, B, C be closed bounded subsets of X.
Homework 2.3. Find a metric space and two balls in it s.t. the smaller ball contains
the bigger ball properly. What is the minimal number of points in such a space? Show
that the largest radius in such a space is at most twice the smaller radius.
Homework 2.4. Show that the segment with endpoints a, b ∈ Rn can be described as
under the Euclidean metric. How does the above set look if ρ = ρ(1) or ρ = ρ(∞) ?
Theorem 2.71. Two metrics d1 and d2 on X are equivalent if they generate the
same topology, denoted d1 ∼ d2 . If ∃ c, C > 0 s.t. c · d1 (x, y) ≤ d2 (x, y) ≤ C · d1 (x, y),
∀ x, y ∈ X, then d1 ∼ d2 .
42 D.G.L. WANG
First, we show that Ω2 ⊆ Ω1 . Since any open set O2 ∈ Ω2 is the union of some open
balls w.r.t. the metric d2 , it suffices to recast a typical ball of the form
B(x, r) = {z ∈ X : d2 (x, z) < r}
as a member in Ω1 , i.e., the union of open balls w.r.t. the metric d1 . Define
[
U (x, r) = y ∈ X : d1 (y, z) < L
z∈B(x,r)
where
r − d2 (x, z)
L= .
2C
Then U (x, r) ∈ Ω1 . We shall show that B(x, r) = U (x, r). On one hand, ∀ z ∈ B(x, r),
since d1 (z, z) = 0 < L, we have z ∈ U (x, r). On the other hand, ∀ y ∈ U (x, r),
∃ z ∈ B(x, r) s.t. d1 (y, z) < L. Then
d2 (x, y) ≤ d2 (x, z) + d2 (y, z) ≤ d2 (x, z) + C· d1 (y, z) ≤ d2 (x, z) + C· L < r.
Thus y ∈ B(x, r). This proves B(x, r) = U (x, r) and Ω2 ⊆ Ω1 .
From premise, we have d1 (x, y) ≤ c−1 · d2 (x, y). Along the same lines, one may show
that Ω1 ⊆ Ω2 , which implies Ω1 = Ω2 immediately. □
Homework 2.6. Let H = {x ∈ R : x ≥ 1} ∪ {+∞}. The metrics ρ(p) defined in Eq. (2)
for p ∈ H are equivalent.
Homework 2.7. Let d be a metric on a set X. Then the function d/(1 + d) is a metric,
and it is equivalent to d.
43
is not continuous.
(2) Let Y be the arrow. Then the map g : X → Y defined by
x, if x ∈ [0, 1],
g(x) =
x + 1, if x ∈ (1, 2].
is continuous!
1) X is discrete?
Answer. All maps. □
2) Y is indiscrete?
Answer. All maps. □
(4) ⇐⇒ (5):
(6) ⇐⇒ (2):
Theorem 3.6. Continuous surjections preserve the property of being everywhere dense.
Proof. The set A is the intersection of the preimages of the closed sets (−∞, 0 ] or {0}
or [ 0, ∞) under continuous functions, and hence closed. The set B is the intersection
of the preimages of the open sets (−∞, 0) or (0, ∞) under continuous functions, and
hence closed. □
46 D.G.L. WANG
(i) the absolute value |f (x)| has a positive lower bound in V , and
(ii) f (x)f (p) > 0.
If 0 ̸∈ f (X), then f (p) ̸= 0, one may require the above ϵ < |f (p)/2|. Then
|f (x)| ≥ |f (p)| − ϵ > ϵ. Moreover, the inequality |f (x) − f (p)| < ϵ implies that
f (x)f (p) > 0. □
x 7→ f (x) ± g(x),
x 7→ f (x)g(x),
x 7→ f (x)/g(x), if 0 ̸∈ g(X),
x 7→ |f (x)|,
x 7→ min{f (x), g(x)},
x 7→ max{f (x), g(x)}.
(1) Let h(x) = f (x) + g(x) and w ∈ {f, g}. Since w is continuous, ∃ a neighbourhood
Uw of p s.t. |w(x) − w(p)| < ϵ/2, ∀ x ∈ Uw . Hence
J = (h(p) − ϵ, h(p) + ϵ) ∈ ΩR ,
47
its preimage h−1 (J) contains U , which contains an open set. Thus h−1 (J) is a
neighbourhood in X. This proves the continuity of h(x).
The continuity of f − g can be obtained by considering the continuous functions f
and −g.
(2) Let h(x) = f (x)g(x). Since f is continuous, by Lemma 3.10, ∃ a neighbourhood Uf
of p and a bound b > 0 s.t. for any x ∈ Uf ,
(4) Let h(x) = |f (x)|. By Lemma 3.10, ∃ a neighbourhood U1 of p s.t. f (x)f (p) > 0.
Since f is continuous, ∃ a neighbourhood U2 of p s.t. |f (x) − f (p)| < ϵ. Therefore,
we can infer that
(5) Direct by using the continuity of the sum, difference, absolute values of two continuous
functions, and the identity
f (x) + g(x) |f (x) − g(x)|
min{f (x), g(x)} = − .
2 2
(6) The continuity of the function max{f, g} = − min{−f, −g} can be obtained by the
continuity of the minimum of continuous functions.
f : X → Rn
x 7→ f1 (x), . . . , fn (x)
Observe that ρ(∞) (f (x), f (p)) < ϵ ⇐⇒ |fi (x) − fi (p)| < ϵ for each i. □
Γf : R → R2
x 7→ x, f (x) .
Theorem 3.13. Let f : (X, dX ) → (Y, dY ) be a map between metric spaces. Let a ∈ X.
The followings are equivalent.
Theorem 3.14. For any subset A of a metric space (X, d), the function
dA : X → R
x 7→ d(x, A)
is continuous.
Hint. |dA (x) − dA (y)| = |inf a∈A d(x, a) − inf a∈A d(y, a)| ≤ d(x, y). □
49
Remark 3.17. Theorem 3.16 provides a way of proving the continuity of a map in the
spirit of divide and conquer.
50 D.G.L. WANG
Γ is fundamental
⇐⇒ a set O ⊆ X is open, provided O ∩ A is open in A, ∀ A ∈ Γ
⇐⇒ a set F ⊆ X is closed, provided F ∩ A is closed in A, ∀ A ∈ Γ.
Proof. For the first equivalence, it suffices to check from right to left. In fact, when O
is open in X, by definition of the subspace topology, the intersection O ∩ A is certainly
an open set of A.
Proof. Each point p ∈ X has an open neighbourhood Op meeting only a finite number
of members of Γ. Then the cover
Σ = {A ∩ Op : A ∈ Γ}
Remark 3.20. The above characterizations will be used when we meet path products.
52 D.G.L. WANG
3.3. Homeomorphisms.
Homework 3.2. What is the difference between the terms “homomorphism” and
“homeomorphism” in mathematics?
Proof. The last statement is a corollary of the first three, which are direct from definition.
□
Proof. Since h is invertible, the inverse map g = h−1 is continuous and satisfies
A = gh(A) and h(A) = g −1 (A).
(1). ⇐: The set A is the preimage of the open set h(A) under the continuous map h,
and thus open.
⇒: The set h(A) is the preimage g −1 (A) of the open set A under the continuous map g,
and thus open.
(4). Recall that ci = kc by Theorem 2.27. Thus i = ckc. Since h is invertible, we have
hc = ch. we can deduce that
hi = hckc = chkc = ckhc = ckch = ih.
Remark 3.25. Homeomorphic spaces are completely identical from the topological point
of view: a homeomorphism X → Y establishes a one-to-one correspondence between
“all phenomena” in X and Y that can be expressed in terms of topological structures.
When the concept of topological space had not yet been developed, mathematicians
studied only subspaces of Euclidean spaces, and continuous maps and homeomorphisms
between Euclidean spaces. Christian Felix Klein, in his famous Erlangen Program, clas-
sified various geometries that had emerged up to that time, like Euclidean, Lobachevsky,
affine, and projective geometries, and defined topology as a part of geometry that deals
with properties preserved by homeomorphisms.
54 D.G.L. WANG
Hint. Direct by the definition of a homeomorphism and by using Theorem 3.24 (1). □
Proof. We show the first equivalence. The forward direction is clear from Theo-
rem 3.24 (2). For the backward direction, we show by the definition of a homeomorphism.
Since f is bijective, the inverse g = f −1 exists. Suppose that f : X → Y . For any closed
set F ⊆ X, the preimage of F under g is g −1 (F ) = f (F ) is closed since f is closed. By
Theorem 3.5, g is continuous, and thus f is a homeomorphism. The second equivalence
can be shown in the same fashion. □
Example 3.28. Most of the following can be deduced by using Theorem 3.26.
Proof. Here are properties that distinguish each of the spaces from the remaining
ones: Z is discrete, Q is countable, each proper closed subset of RT1 is finite, and
any two nonempty open sets in the arrow have nonempty intersection. □
y = f (x) = Ax + b,
τ : Rn \ {0} → Rn \ {0}
x
x 7→ R· 2
|x|
is a homeomorphism.
Hint. τ is an involution. Use Theorems 3.11 and 3.12 to show the continuity. □
56 D.G.L. WANG
(4) Let H = {z ∈ C : ℑz > 0} be the upper half plane. Let a, b, c, d ∈ R s.t. ad > bc.
Then the function
f: H →H
az + b
z 7→
cz + d
is a homeomorphism.
Hint. Since
ad − bc
ℑ f (x + yi) = · y,
|cz + d|2
we have f (H) ⊆ H. On the other hand,
b − dz
f −1 (z) = −.
a − cz
Use Theorems 3.11 and 3.12 to show the continuity. □
(1) [0, 1] ∼
= [a, b];
(2) [0, 1) ∼
= [a, b) ∼
= (0, 1] ∼
= (a, b];
(3) (0, 1) ∼
= (a, b) ∼
= R;
(4) [0, 1) ∼
= [0, ∞) and (0, 1) ∼
= (0, ∞).
Question 3.31. Let N = (0, 1) ∈ S 1 be the north pole of the unit circle. Prove that
S 1 \ {N } ∼
= R.
Its inverse is
z2 − 1
−1 2z
g (z) = , .
z2 + 1 z2 + 1
□
Homework 3.3. Let p ∈ S n . The punctured sphere S n \ {p} is homeomorphic to Rn .
Proof. Let p = (0, 0, . . . , 1) ∈ Rn+1 be the north pole of S n . Define two maps f : S n \
{p} → Rn and g : Rn → S n \ {p} by
!
x1 xn
f (x1 , . . . , xn+1 ) = , ..., , and
1 − xn+1 1 − xn+1
!
2x1 2xn |x|2 − 1
g(x1 , . . . , xn ) = , ..., , ,
|x|2 + 1 |x|2 + 1 |x|2 + 1
where |x|2 = ni=1 x2i . By Theorem 3.12, the maps f and g are continuous.
P
The map f : S n \{p} → Rn in the above proof is called the stereographic projection.
It is a particular mapping (function) that projects a sphere onto a plane; see Fig. 22. It
was known to Hipparchus (approx. BC 190–BC 120), and originally as the planisphere
projection. The term planisphere is still used to refer to celestial charts; see Fig. 23.
Example 3.32. D2 ∼
= I 2.
Figure 23. A celestial map from the 17th century, by the Dutch cartog-
rapher Frederik de Wit.
and
K → D2
(x, y)
(x, y) 7→ p .
x2 + y 2
Geometrically, this means that each segment joining the origin with a point on the
contour of the square is linearly mapped to the part of the segment that lies within the
circle. □
Hint. Map each edge of the polygon homeomorphically to a suitable arc of S 1 . Map
each edge of the polyline homeomorphically to a suitable part of I. □
A first example of topological properties is the cardinality of the set of points, as well
as the number of open sets. Less obvious topological properties are the main object of
the forthcoming sections.
Example 3.36 (Not proved at this stage). Here are some pairs of spaces which are not
homeomorphic.
(1) Rm ∼
̸= Rn if m ̸= n.
(2) Dp ∼
̸= Dq if p ̸= q.
(3) S p ∼
̸= S q if p ̸= q.
60 D.G.L. WANG
(4) The punctured plane R2 \ {(0, 0)} is not homeomorphic to the space
{(x, y) ∈ R2 : x2 + y 2 ≥ 1}
with an open hole.
Lemma 3.42. ∀ metric spaces (X, dX ) and (Y, dY ), ∃ a metric space Z s.t. X and Y
can be isometrically embedded in Z.
Definition 3.43. Isometrically embedding two metric spaces in a single one, we can
consider the Hausdorff distance between their images. The infimum of such Hausdorff
distances over all pairs of isometric embeddings of metric spaces X and Y in metric
spaces is the Gromov-Hausdorff distance between X and Y .
Puzzle 3.44. Is the Gromov-Hausdorff distance a metric on the set of metric spaces?
62 D.G.L. WANG
4. Connectedness
4.1. Connected spaces. Being connected means, intuitively, being all in one piece.
Theorem 4.5. Let X be a topological space. Then the following 5 states are equivalent:
(1) X is disconnected.
(2) ∃ nonempty open sets A and B s.t. X = A ⊔ B.
(3) ∃ nonempty closed sets A and B s.t. X = A ⊔ B.
(4) ∃ nonempty clopen sets A and B s.t. X = A ⊔ B.
(5) ∃ a continuous surjection X → S 0 = {−1, 1}.
Proof. We first show that (1) to (4) are equivalent to each other. If X is disconnected,
then X has a nonempty proper clopen subset, say, A. Then the set B = Ac is nonempty
and open, and X = A ⊔ B. This proves that (1) implies (2) to (4). Conversely, if
X = A ⊔ B for some nonempty open A and B, then A = B c and B = Ac are closed.
Hence both A and B are clopen. Using these arguments, it is easy to see that each
of (2) to (4) implies (1).
(5) ⇒ (4): Since the singleton {1} is a clopen subset of S 0 , the preimgae A = f −1 (1)
is clopen. Since f is surjective, we have A ̸= ∅. Along the same line, we can infer that
B = f −1 (−1) is clopen and nonempty. Moreover, X = A ⊔ B. This proves (4). □
For convenience, we call the last sufficient and necessary condition of disconnectedness
the S 0 -condition.
Theorem 4.6. The continuous image of a connected space is connected, i.e., continuous
surjection preserves the connectedness. As a consequence, the connectedness is a
topological property, and the number of components is a topological invariant.
Answer. Yes. Assume that (X, Ω1 ) is disconnected. Then (X, Ω1 ) has a nonempty
proper clopen subset, say, A. Since Ω1 ⊆ Ω2 , the set A is clopen in Ω2 . Hence (X, Ω2 )
is disconnected. □
Theorem 4.8. Clopen sets “separate” connected sets. In other words, if A is clopen in
X, and if C is connected in X, then either C ⊆ A or C ⊆ X \ A.
Theorem 4.9. Let Γ be a family of connected sets. If a connected set C meets every
member in Γ, then ∪A∈Γ A ∪ C is connected.
f (x) = 1 ∀ x ∈ C ∪ A.
Corollary 4.10. Let {Ak }k∈Z be a family of connected sets s.t. Ak meets Ak+1 , ∀ k.
Then the union ∪k∈Z Ak is connected.
Proof. By Theorem 4.9, we can show by induction that the set Bn = ∪nk=−n Ak is
connected, ∀ n ∈ N. Using Theorem 4.9 again, we obtain the connectedness of the
union ∪k∈Z Ak = ∪n∈N Bn . □
Proof. The union of connected components which contains p is the unique component.
It is connected by Theorem 4.9. □
J− ∩ J+ = ∅, ∀ J+ ∈ Γ+ and J− ∈ Γ− .
It follows that
G
A = f −1 (−1) ∪ f −1 (1) = A ∩ J.
J∈ Γ− ∪Γ+
Since the collection Γ− ∪ Γ+ contains at least two disjoint open intervals, the set A is
not an interval, a contradiction. □
f : [a, b] → R
Theorem 4.17. Any convex set in Rn is connected. In particular, the sets Rn , B n and
Dn are connected.
Proof. Let A be a convex set in Rn with x0 ∈ A. Then the interval [a, x0 ] is connected
for any a ∈ A. Then the union A = ∪a∈A [a, x0 ] is connected by Theorem 4.9. □
1) of the arrow;
67
Answer. Any infinite subset. On one hand, any finite set A with |A| ≥ 2 is the
union of two nonempty finite subsets. Since a subset is finite ⇐⇒ it is closed. By
Theorem 4.5, we infer that A is disconnected. On the other hand, assume to the
contrary that an infinite set A is disconnected. By Theorem 4.5, ∃ a continuous
surjection f : A → S 0 . Then each of the preimages f −1 (±1) is closed in A. Hence
A = f −1 (−1) ∪ f −1 (1) is finite, a contradiction. □
Proof. Every open set of R is a union of disjoint open intervals, each of which contains
a representative rational point. □
Theorem 4.20. Suppose that both A ∪ B and A ∩ B are connected. Then both of A
and B are connected if either both A and B are open or both A and B are closed.
A = U ⊔ V,
In fact, if both A and B are open (resp., closed), then both U and V are open (resp.,
closed) by Theorem 2.16. On the other hand, the complement V c = U ∪ B is the union
of open (resp., closed) sets and also open (resp., closed). □
68 D.G.L. WANG
Remark 4.21. The condition of being open or closed is necessary. This can be seen by
the example A = Q and B = R \ Q.
Proof. Since A is everywhere dense in A, we infer that A is connected. Since the set A
is everywhere dense in B. Thus B is connected by Theorem 4.22. □
Answer. No. Any projection is continuous; the continuous image of any connected
set is connected; the projection of Q2 onto one coordinate is Q, which is totally
disconnected. □
Answer. Yes! Any two points are joined by a polyline with at most 3 segments. □
Answer. Yes! Let lk = {(x, kx) : x ∈ R} and X = ∪k∈Q\{0} lk . Then each line lk is
connected. It is clear that X ⊂ Q2 ∪ (Qc )2 ⊂ X = R2 . By Corollary 4.23, the set
Q2 ∪ (Qc )2 is connected. □
Example 4.27. R1 ̸∼
= Rn for n > 1. □
I, [ 0, 1), R, S 1.
Proof. The number of distinct points removing each of which yields a connected space
for I, [0, 1), R and S 1 are pairwise distinct, i.e., 2, 1, 0 and ∞ resp. □
in the polar representation; see Fig. 25. We know that S is connected. Let T ⊆ S 1 .
Prove or disprove that S ∪ T is connected.
A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
regarded as subsets of R2 , where the arcs comprising the letters are assumed to have
zero thickness.
Hint. The answer depends on the graphics of the letters. A possible answer is as follows:
There are nine classes for this problem.
(1) A and R;
(2) B;
(3) C, G, I, J, L, M, N, S, U, V, W, Z;
(4) D and O;
(5) E, F, T, Y ;
(6) H and K;
(7) P ;
(8) Q;
(9) X.
C ⊆ U ∪ V, U ∩ C ̸= ∅, V ∩ C ̸= ∅, and U ∩ V ∩ C = ∅.
Let W = U ∪ V . By Theorem 2.16, both the sets U and V are clopen in W . Since
A is connected, A ⊆ W , we infer from Theorem 4.8 that either A ⊆ U or A ⊆ V .
71
n
! n
X X
f w i xi ≤ wi f (xi ), if f is convex and
i=1 i=1
n
! n
X X
f w i xi ≥ wi f (xi ), if f is concave,
i=1 i=1
where each of the equalities hold if and only if either x1 = x2 = · · · = xn , or the function
f is linear.
Theorem A.2 (Weighted power mean inequality). Let p > 0. Suppose that wi ≥ 0
s.t. ni=1 wi = 1. Denote by
P
n
!1/p
X
Mp = wi xpi
i=1
the p-th weighted power mean of positive numbers xi > 0. Then the function Mp is
increasing in p, i.e., Mp ≤ Mq whenever p < q, where the equality holds if and only if
x1 = x2 = · · · = xn .
Raising both sides to the power of 1/q yields the desired inequality. The equality holds
if and only if all the numbers xi are equal because that is the equality condition for
Jensen’s inequality. □
Lemma A.4 (Young’s inequality for products). Let p, q > 1 be Hölder conjugates
of each other. Suppose that a, b ≥ 0. Then
ab ≤ ap /p + bq /q,
73
Proof. Let t = 1/p. Then 1 − t = 1/q. By using the concavity of the logarithm function,
we infer that
with the equality holds if and only if ap = bq . Young’s inequality follows by exponenti-
ating. □
Theorem A.5 (Hölder’s inequality). Let p, q > 1 be Hölder conjugates of each other.
For any x = (x1 , . . . , xn ) ∈ Cn and y = (y1 , . . . , yn ) ∈ Cn , we have
n
X
|xi yi | ≤ ∥x∥p · ∥y∥q ,
i=1
for any i, where the equality holds if and only if |xi |p = |yi |q . Adding Ineq. (4) for
P
i = 1, . . . , n, we obtain |xi yi | ≤ 1 as desired. □
Let q be the Hölder conjugate of p. Then (p − 1)q = p and 1/q = (p − 1)/p. Let
Then we have
X 1/q X (p−1)/p
(p−1)q p
∥z∥q = |xi + yi | = |xi + yi | = ∥x + y∥p−1
p .
Lemma B.1 (Fekete’s subadditive lemma). For any subadditive sequence {an }n≥0 , the
limit limn→∞ an /n exists and is equal to the infimum inf an /n, which might be −∞.