Topology/Metric Spaces
Before we begin
A metric space is a very important kind of topological space that occurs frequently. Topological spaces are generalizations of metric spaces, which shall be covered in the next section.
Metric Space
Definition
A metric space is a Cartesian pair where is a non-empty set and is a function (called a metric) where is the real numbers, and for all :
- if and only if
- (Commutativity)
- (triangle inequality)
Note that some authors do not require metric spaces to be non-empty. We annotate when we talk of a metric space with the topology .
Examples
- An important example is the discrete metric. It exists for any non-empty set X. and defined
- The real numbers as the space, and let (The absolute distance between x and y).
To prove that this is indeed a metric space, we must show that d is really a metric:- . The absolute value of any number is greater or equal to zero.
- .
- The plane as the space, and let (The euclidian distance between and ).
- We can generalize the two preceding examples. Let be a normed vector space (over or ). We can define the metric to be: . Thus every normed vector space is a metric space.
- For the vector space we have an interesting norm. let and two vectors of . We define the p-norm: . For each p-norm there is a metric based on it. Interesting cases of p are:
- . The metric is
- . The metric is good-old Euclid metric
- . This is a bit surprising:
As an exercise, you can prove that thus justifying the definition of .
The triangle inequality for the p-norm can be proved as follows: Let
.
Consider the equation y=xp-1 which is equivalent to x=yq-1. If s2≤s1p-1, then s1s2 is clearly equal to .
The case for when s1≤s2q-1 is proved similarly. Thus, s1s2≤. This is called Young's inequality.
Now consider two sequences from 1 to n, ak and bk such that
.
Then by the inequality just proven,
|akbk|≤.
Adding it up from 1 to n gives .
Then for this special case, .
Let ck and dk be any sequence from 1 to n. Let c be the sum of |ck| and d be the sum of |dk|. Then and are sequences such from 1 to n such that the sum of their absolute values is equal to 1.
Thus, .
Multiplying both sides by |cd| gives .
This is called Hölder's inequality.
Now, (|ak|+|bk|)p=(|ak|+|bk|)p-1|ak|+(|ak|+|bk|)p-1|bk|, which, by Hölder's inequality, is less than or equal to .
This is equal to since (p-1)q=p. Divide both sides by and one gets . This is called Minkowski's inequality.
Substituting ak=xk-yk, bk=yk-zk, one immediately gets the triangle inequality.
- The great-circle distance between two points on a sphere is a metric.
- The Hilbert space is a metric space on the space of infinite sequences {ak} such that
converges, with a metric d({ai}, {bi})=.
- The concept of the Erdős number suggests a metric on the set of all mathematicians. Take x and y to be two mathematicians, and define d(x, y) as 0 if x and y are the same person; 1 if x and y have co-authored a paper; n if the shortest sequence , where each step pairs two people who have co-authored a paper, is of length n; or ∞ if x ≠ y and no such sequence exists.
This metric is easily generalized to any reflexive relation (or undirected graph, which is the same thing).
Note that if we instead defined d(x, y) as the sum of the Erdős numbers of x and y, then d would not be a metric, as it would not satisfy . For example, if x = y = Stanisław Ulam, then d(x, y) = 2.
Note
Throughout this chapter we will be referring to metric spaces. Every metric space comes with a metric function. Because of this, the metric function might not be mentioned explicitly. There are several reasons:
- We don't want to make the text too blurry.
- We don't have anything special to say about it.
- The space has a "natural" metric. E.g. the "natural" metric for is the euclidean metric .
As this is a wiki, if for some reason you think the metric is worth mentioning, you can alter the text if it seems unclear (if you are sure you know what you are doing) or report it in the talk page.
Open Ball
Motivation
The open ball is the building block of metric space topology. We shall define intuitive topological definitions through it (that will later be converted to the real topological definition), and convert (again, intuitively) calculus definitions of properties (like convergence and continuity) to their topological definition. We shall try to show how many of the definitions of metric spaces can be written also in the "language of open balls". Then we can instantly transform the definitions to topological definitions.
Definition
Given a metric space an open ball with radius around is defined as the set
- .
Intuitively it is all the points in the space, that are less than distance from a certain point .
Examples
Why is this called a ball? Let's look at the case of : .
Therefore is exactly - The ball with at center, of radius . In the ball is called open, because it does not contain the sphere ().
The Unit ball is a ball of radius 1. Lets view some examples of the unit ball of with different p-norm induced metrics. The unit ball of with the norm is: = =
- The metric induced by in that case, the unit ball is:
- The metric induced by in that case, the unit ball is:
- The metric induced by in that case, the unit ball is:
As we have just seen, the unit ball does not have to look like a real ball. In fact sometimes the unit ball can be one dot:
- The discrete metric, The unit ball is
Interior of a Set
Definitions
Definition: We say that x is an internal point of A iff There is an such that: . This intuitively means, that x is really 'inside' A - because it is contained in a ball inside A - it is not near the boundary of A.
Illustration:
| Internal Point | Not Internal Points |
|---|---|
Definition: The interior of a set A is the Set of all the internal points of A. The interior of a set A is marked .
Properties
Some basic properties of int (For any sets A,B):
Proof of the first:
We need to show that: . But that's easy! by definition, we have that and therefore
Proof of the second:
In order to show that , we need to show that and .
The " " direction is already proved: if for any set A, , then by taking as the set in question, we get .
The " " direction:
let . We need to show that .
If then there is a ball . Now, every point y, in the ball an internal point to A (inside ), because it there is a ball around it, inside A: .
We have that (because every point in it is inside ) and by definition .
Hint: To understand better, draw to yourself .
Proof of the rest is left to the reader.
Reminder
- [a, b] : all the points x, such that
- (a, b) : all the points x, such that
Example
For the metric space (the line), we have:
Let's prove the first example (). Let (that is: ) we'll show that is an internal point.
Let . Note that and . Therefore .
We have shown now that every point x in is an internal point. Now what about the points ? let's show that they are not internal points. If was an internal point of , there would be a ball . But that would mean, that the point is inside . but because that is a contradiction. We show similarly that b is not an internal point.
To conclude, the set contains all the internal points of . And we can mark
An Open Set
Definition
A set is said to be open in a metric space if it equals its interior (). Do not confuse this with the topological definition of an open set! Again, a topology is a different thing from a metric space.
Propreties:
- The empty-set is an open set (by definition: ).
- An open-ball is an open set.
- For any set B, int(B) is an open set. This is easy to see because: int(int(B))=int(B)
- If A,B are open, then is open.
- If (for any set if indexes I) are open, then the infinite union: is open.
Proof of 2:
Let be an open ball. Let . Then .
In the following drawing, the green line is and the brown line is . We have found a ball to contain inside .
Proof of 4:
A, B are open. we need to prove that . Because of the proprieties of int, we only need to show that . let . We know also, that . That means that there
are balls: . Let , we have that .
By the definition of an internal point we have that ( is the required ball).
Proof of 5:
Proving that the union of open sets is open, is rather trivial: let (for any set if indexes I) be a set of open sets.
we need to prove that : If then it has a ball . The same ball that made a point an internal point in will make it internal in
.
Proposition: A set is open, if and only if it is a union of open-balls.
Proof: Let A be an open set. by definition, if there there a ball . We can then compose A: . The equality is true because: because . in each ball we have the element and we unite balls of all the elements of .
On the other hand, a union of open balls is and open set, because every union of open sets is open.
Examples
- As we have seen, every open ball is an open set.
- For every space with the discrete metric, every set is open. Proof: Let be a set. we need to show, that if then is an internal point. Lets use the ball around with radius . We have . Therefore is an internal point.
- The space with the regular metric. Every open segment is an open set. The proof of that is similar to the proof that , that we have already seen.
Convergence
Definition
First, Lets translate the calculus definition of convergence, to the "language" of metric spaces:
We say that a sequence converges to if for every exists that for each the following holds: .
Equivalently, we can define converges using Open-balls: A sequence converges to If for every exists that for each the following holds: .
The latter definition uses the "language" of open-balls, But we can do better - We can remove the from the definition of convergence, thus making the definition more topological. Let's define that converges to (and mark ) , if for every ball around , exists that for each the following holds: . is called the limit of the sequence.
The definitions are all the same, but the latter uses topological terms, and can be easily converted to a topological definition later.
Properties:
- A sequence may or may not have a limit, but if it has a limit, it has only one limit.
- If , then almost by definition we get that . ( Is the sequence of distances).
Examples
- In with the natural metric, The series converges to . And we note it as follows:
- Any space, with the discrete metric. A series converges, only if it is eventually constant. In other words: If and only if, We can find that for each ,
- An example you might already know:
The space For any p-norm induced metric, when . Let . and let .
Then, If and only if .
Uniform Convergence
A sequence of functions {fn} is said to be uniformly convergent on a set S if for any ε>0, there exists an N such that when a and b are both greater than N, then p(fa(x),fb(x))<ε for any x∈S.
Closed Sets
Closure
Definition: The point is called point of closure of a set if exists a sequence , such that
A equivalent definition using balls: The point is called point of closure of a set if for every ball , we have that .
The proof is left as an exercise.
A point of closure intuitively means that the point a very "close" to a set . It is so close, that we can find a sequence in that converges to
Example: Let A be the segment , The point is not in , but it is a point of closure: Let . (, and therefore ) and (that's because ).
Definition: The closure of a set , is the set of all points of closure. The closure of a set A is marked or .
Note that . a quick proof: For every , Let .
Examples
For the metric space (the line), and let we have:
Closed set
Definition: A set is closed in if .
Meaning: A set is closed, if it contains all its point of closure.
An equivalent definition is: A set is closed in If for every point , and for ever Ball , then .
The proof of this definition is comes directly from the former definition and the definition of convergence.
Properties
Some basic properties of Cl (For any sets ):
Open vs Closed
That is, an open set approaches its boundary but does not include it; whereas a closed set includes every point it approaches. These two definitions may seem complementary, but they are not:
- In any metric space , the set is both open and closed.
- In any space with a discrete metric, every set is both open and closed.
- In , under the regular metric, the only sets that are both open and closed ar and . However, some sets are neither open nor closed. For example, a half-open range like is neither open nor closed. As another example, the set of rationals is not open because an open ball around a rational number contains irrationals; and it is not closed because there are sequences of rational numbers that converge to irrational numbers (such as the various infinite series that converge to ).
Complementary set
A Reminder\Definition: Let be a set in the space . We define the complementary set of , to be .
A Quick example: let . Then .
The plot continues...
A very important Proposition: Let be a set in the space . Then, A is open if is closed.
Proof: () For the first part, we assume that A is an open set. We shall show that . It is enough to show that because of the properties of closure. Let (we will show that ).
for every ball we have, by definition that (*). If the point is not in then . is open and therefore, there is a ball , such that: , that means that , contradicting (*).
() On the other hand, Lets a assume that is closed, and show that is open. Let be a point in (we will show that ). If is not in then for every ball we have that . That means that . And by definition of closure point is a closure point of so we can say that . is closed, and therefore That contradicts the assumption that
Note that, as mentioned earlier, a set can still be both open and closed!
On R1
The following is an important theorem characterizing open and closed sets on R1.
Theorem: An open set O in R1 is a countable union of disjoint open intervals.
Proof: Let x∈O. Let a=inf{t|t∉O, t<x} and let b=sup{t|t∉O, t>x}. There exists an open ball (x-ε,x+ε) such that (x-ε,x+ε) ⊆ O because O is open. Thus, a≤x-ε and b≥x+ε. Thus, x ∈(a,b). The set O contains all elements of (a,b) since if a number is greater than a, and less than x but is not within O, then a would not be the infinimum of {t|t∉O, t<x}. Similarily, if there is a number is less than b and greater than x, but is not within O, then b would not be the supremum of {t|t∉O, t>x}. Thus, O also contains (a,x) and (x,b) and so O contains (a,b). If y≠x and y∈(a,b), then the interval constructed from this element as above would be the same. If y<a, then sup{t|t∉O, t>y} would also be less than a because there is a number between y and a which is not within O. Similarly if y>b, then inf{t|t∉O, t<y} would also be greater than b because there is a number between y and b which is not within O. Thus, all possible open intervals constructed from the above process are joint. The union of all such open intervals constructed from an element x is thus O, and so O is a union of disjoint open intervals. Because the rational numbers is dense in R, there is a rational number within each open interval, and since the rational numbers is countable, the open intervals themselves are also countable.
Examples of closed sets
- Closed intervals [a,b] are closed.
- Cantor Set Consider the interval [0,1] and call it C0. Let A1 be equal {0, } and let dn = . Let An+1 be equal to the set An∪{x|x=a+2dn, a∈An}. Let Cn be {[a,a+dn]}, which is the finite union of closed sets, and is thus closed. Then the intersection is called the Cantor set and is closed.
Exercises
- Prove that a point x has a sequence of points within X converging to x if and only if all balls containing x contain at least one element within X.
- In the only sets that are both open and closed are the empty set, and the entire set. This is not the case when you look at subspace of . Give an example of a set which is both open and closed in .
- Let be a set in the space . Prove the following:
Continuity
Definition
Let's recall the idea of continuity of functions. Continuity means, intuitively, that you can draw a function on a paper, without lifting your pen from it. Continuity is important in topology. But let's start in the beginning:
The classic delta-epsilon definition: Let be spaces. A function is continuous if for every , and every we can find such that the following holds: for every such that we have that .
Let's rephrase the definition to use balls: A function is continuous if for every , and every we can find such that the following holds: for every such that we have that . Or more simply:
Looks better already! But we can do more.
Proposition:
A function is continuous, by the definition above for every open set in , The inverse image of , , is open in .
Note that does not have to be surjective or bijective for to be well defined. The notation simply means .
Proof: First, let's assume that a function is continuous by definition (The direction). We need to show that for every open set , is open.
Let be an open set. Let . is in and because is open, we can find and , such that . Because f is continuous, for that , we can find a such that . that means that , and therefore, is an internal point. This is true for every - meaning that all the points in are internal points, and by definition, is open.
()On the other hand, let's assume that for a function for every open set , is open in . We need to show that is continuous.
For every and for every , The set is open in . Therefore the set is open in . Note that . Because is open, that means that we can find a such that , and we have that .
The last proof gave us the definition we will use for continuity for the rest of this book. The beauty of this new definition is that it only uses open-sets, and there for can be applied to spaces without a metric.
Examples
- Let be any function from any space , to any space , were is the discrete metric. Then is continuous. Why? For every open set , the set is open, because every set is open in a space with the discrete metric.
- Let The identity function. is continuous: The source of every open set is itself, and therefore open.
Exercise
- Prove that a function is continuous for every closed set in , The inverse image of , , is closed in .
Isometry
An isometry is a surjective mapping , where and are metric spaces and for all , .
In this case, and are said to be isometric.
Note that the injectivity of follows from the property of preserving distance:
So an isometry is necessarily bijective.
Exercises
- Show that a set is a metric open set iff it is a union of (possibly inifite) open balls.
- Show that the discrete metric is in fact a metric.