Topology plays in important role in one of the two learning objectives for this course: Abstraction. Concretely, there will be some technical definitions, such as the one below, that I will swiftly “forget” and leave behind in favor of more general, much more powerful ideas. The most important takeaway of this chapter is:
Topology allows to talk about closeness without having to talk about distance.
Definition.
A metric space is a structure where is any set and the function , called the metric, has the following properties for any .
- ;
- whenever (Positivity);
- (Symmetry); and
- (Triangle inequality).
Example: graphs
If is a connected graph, define as the smallest length of a path with endpoints and . is then a metric space.
Exercise.
If is a graph homomorphism, then for all , .
If is an isomorphism, then the above inequality becomes an equality.
For a more concrete example, define in any component of the hypercube , where and are countably infinite binary sequences, as the number of coordinates that and differ in. That is,
is then a metric space. This particular is known as the Hamming distance, and it plays an important role in error-correcting codes.
Example: the reals
Another example: with the Euclidean metric given by
When , this is just .
For a different example,
is sometimes referred to as the taxicab metric. To see why, draw as a grid and imagine roads connecting the lattice points.
Open and closed sets
From now on, let be an abstract metric space. Since my course only deals with a very short introduction, for the most part you can safely assume that with the Euclidean metric.
Definition of open.
The open ball centered at and of radius is the set .
A set is open if for every , there is some such that .
The collection of all open sets is denoted by and is called the topology of .
An immediate remark is that open balls are open.
Examples.
- In , open balls are open intervals of the form .
- Furthermore, show that every open interval is open.
- is an open set that is not an interval.
- Draw an open ball centered at the origin of radius 1 in for .
- What are the open balls in a connected graph?
- Now draw open balls with the other metrics mentioned above. How are they different?
Definition of closed.
Given and , I say is a point of closure of if for all , . The set of all these points is called the closure of and is denoted by .
I say is closed if .
It is obvious that .
Examples.
- The interval does not contain or , but these are points of closure.
- What are the points of closure of all of the sets mentioned in the previous example?
- What are the points of closure of the set ?
- , so this set is closed.
- (Density).
Exercise.
Prove that (Idempotency). In particular, closures are always closed. Put in different words, a set is closed if and only if it is equal to some closure.
The following theorem is the actual definition of an abstract topology, which I will not cover in this course.
Theorem ("Metric spaces are topological spaces").
- and are open.
- The union of open sets is open.
- The intersection of finitely many closed sets is closed.
From now on, I will denote the collection of all open subsets of by . This set is typically called the topology of .
An important connection between open and closed sets is the following.
Proposition.
A set is open if and only if is closed.
Proved in PS5-1.
Another easy-to-prove property of metric spaces is seen below.
Theorem ("Metric spaces have the Hausdorff separation property").
For any distinct , there are disjoint open balls and such that and .
Proof:
Since , . Thus and have the desired property.
Interior and closure operators
Definition of interior.
Let . Then is the union of all open sets contained in .
Basic properties of interior and closure.
- and the three sets are equal if and only if .
- If , then and . (Monotonicity)
- is the union of all open balls contained in .
- if and only if . In particular, the interior is always open and the closure is always closed.
- and .
- and .
Exercises.
- Prove the above proposition.
- Find counterexamples for the converse implications of (2).
- Find counterexamples for (5) interchanging union and intersection.
- Prove that if is closed and has empty interior, then .
- Give a counterexample of the above after removing the word closed.
Sequences
Recall that a sequence in is just a function , which I denote by its indices when convenient.
Notation/Definition of limit.
Let abbreviate the following statement.
Example.
I will prove that . Let , then, by the Archimedean property, there is an such that . But then , so obviously for all .
Exercise.
If is a closed set and has a limit , then .
Theorem ("In metric spaces, sequential closure and closure are the same").
For any set , .
Proof:
Let . For every natural , pick , then clearly .
Exercise.
Verify that .
Therefore, is a member of the set on the right-hand side.
Suppose that for some . Let . Then, for some large natural , . Clearly this implies that and so .