Topology/Metric Spaces

From Wikibooks, the open-content textbooks collection

< Topology(Redirected from Metric Spaces)
Jump to: navigation, search

Contents

[edit] 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.

[edit] Metric Space

[edit] Definition

A metric space is a Cartesian pair (X,d) where X is a non-empty set and d is a function (called a metric) d: X \times X \rightarrow \mathbb{R} where \mathbb{R} is the real numbers, and for all a, b, c \in X:

  1. \ d(a, b) \ge 0
  2. \ d(a, b) = 0 if and only if a = b
  3. \ d(a, b) = d(b, a) (Commutativity)
  4. \ d(a, c) \le d(a, b) + d(b, c) (triangle inequality)

Note that some authors do not require metric spaces to be non-empty. We annotate (X,d) when we talk of a metric space X with the metric d.

[edit] Examples

  • An important example is the discrete metric. It exists for any non-empty set X. and defined 
d(x,y) = \left\{ \begin{array}{ll}
 1 & \text{if } x \neq y\\
 0 & \text{if } x = y\\
  \end{array} \right.
  • The real numbers \mathbb{R} as the space, and let d(x,y) = |x-y|\, (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:
    • d(x,y) = |x - y| \ge 0. The absolute value of any number is greater or equal to zero.
    • d(x,y) = |x - y| = 0 \iff (x - y = 0 \or -(x - y) = 0) \iff x = y.
    • d(x,y) = |x - y| = |y - x| = d(y,x)\,
    • d(x,z) = |x - z| = |x - y + y - z| = |(x - y) + (y - z)| \le |x - y| + |y - z| = d(x,y) + d(y,z)
  • The plane \mathbb{R}^2 as the space, and let d((x_{1}, y_1),(x_{2}, y_2)) = \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2} (The euclidian distance between (x1,y1) and (x2,y2)).
  • We can generalize the two preceding examples. Let V be a normed vector space (over \mathbb{R} or \mathbb{C}). We can define the metric to be:  d(x, y) = || x - y ||\,. Thus every normed vector space is a metric space.
  • For the vector space \mathbb{C}^n we have an interesting norm. Let x = (x_1,x_2,\ldots, x_n) and y = (y_1,y_2,\ldots, y_n) two vectors of \mathbb{C}^n. We define the p-norm: ||x||_p = (\sum_{i=1}^n {|x_i|^p})^{\frac{1}{p}}. For each p-norm there is a metric based on it. Interesting cases of p are:
    • p = 1\,. The metric is d(x,y) = ||x - y||_1 = \sum_{i=1}^n {|x_i-y_i|}
    • p = 2\,. The metric is good-old Euclid metric d(x,y) = ||x - y||_2 = \sqrt{\sum_{i=1}^n {(x_i-y_i)^2}}
    • p = \infty. This is a bit surprising: d(x,y) = ||x - y||_\infty = \max_{i=1\ldots n}\{|x_i-y_i|\}

      As an exercise, you can prove that \lim_{p\rightarrow \infty}{||x||_p} = \max_{i=1\ldots n}\{|x_i|\} thus justifying the definition of ||\cdot||_\infty.

The triangle inequality for the p-norm can be proved as follows: Let p and q be numbers satisfying

\textstyle\frac{1}{p}+\frac{1}{q}=1.

Consider the equation y=xp-1 which is equivalent to x=yq-1. If s2≤s1p-1, then s1s2 is clearly equal to \textstyle\int_{0}^{s_2} s_1\, dx = \int_{0}^{s_2} s_1-y^{q-1}\, dx + \int_{0}^{s_2} y^{q-1} \le \int_{0}^{s_1^{p-1}} s_1-y^{q-1}\, dx + \int_{0}^{s_2} y^{q-1} = \frac{s_1^p}{p}+\frac{s_2^q}{q}.

The case for when s1≤s2q-1 is proved similarly. Thus, s1s2\textstyle\frac{s_1^p}{p}+\frac{s_2^q}{q}. This is called Young's inequality.

Now consider two sequences from 1 to n, ak and bk such that

\textstyle\sum_{i=1}^n |a_i|^p=\sum_{i=1}^n |b_i|^q=1.

Then by the inequality just proven,

|akbk|≤\textstyle\frac{|a_k|^p}{p}+\frac{|b_k|^q}{q}.

Adding it up from 1 to n gives \textstyle\sum_{i=1}^n |a_kb_k|\le\frac{1}{p}+\frac{1}{q}=1.

Then for this special case, \textstyle\sum_{i=1}^n|a_ib_i|\le(\sum_{i=1}^n|a_i|^p)^{\frac{1}{p}}(\sum_{i=1}^n|b_i|^q)^{\frac{1}{q}}.

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 \textstyle\frac{c_k}{c} and \textstyle\frac{d_k}{d} are sequences such from 1 to n such that the sum of their absolute values is equal to 1.

Thus, \textstyle\sum_{i=1}^n\mid\frac{c_i}{c}\frac{d_i}{d}\mid\le(\sum_{i=1}^n\mid\frac{c_i}{c}\mid^p)^\frac{1}{p}(\sum_{i=1}^n\mid\frac{d_i}{d}\mid^q)^\frac{1}{q}.

Multiplying both sides by |cd| gives \textstyle\sum_{i=1}^n\mid c_id_i\mid\le(\sum_{i=1}^n\mid c_i\mid^p)^\frac{1}{p}(\sum_{i=1}^n\mid d_i\mid^q)^\frac{1}{q}.
This is called Hölder's inequality.

Now, \textstyle\sum_{k=1}^n(|ak|+|bk|)p=\textstyle\sum_{k=1}^n(|ak|+|bk|)p-1|ak|+\textstyle\sum_{k=1}^n(|ak|+|bk|)p-1|bk|, which, by Hölder's inequality, is less than or equal to \textstyle(\sum_{k=1}^n(\mid a_k\mid+\mid b_k\mid)^{(p-1)q})^\frac{1}{q}((\sum_{i=1}^n \mid a_i\mid^p)^\frac{1}{p}+(\sum_{i=1}^n\mid b_i\mid^p)^\frac{1}{p}).

This is equal to \textstyle(\sum_{k=1}^n(\mid a_k\mid+\mid b_k\mid)^p)^\frac{1}{q}((\sum_{i=1}^n \mid a_i\mid^p)^\frac{1}{p}+(\sum_{i=1}^n\mid b_i\mid^p)^\frac{1}{p}) since (p-1)q=p. Divide both sides by \textstyle (\sum_{i=1}^n(\mid a_k\mid+\mid b_k\mid)^p)^\frac{1}{q} and one gets \textstyle(\sum_{i=1}^n(\mid a_k\mid+\mid b_k\mid)^p)^\frac{1}{p}\le(\sum_{i=1}^n \mid a_k\mid^p)^\frac{1}{p}+(\sum_{i=1}^n \mid b_k\mid^p)^\frac{1}{p}. This is called Minkowski's inequality.

Substituting ak=xk-yk, bk=yk-zk, one immediately gets the triangle inequality.


  • The Hilbert space is a metric space on the space of infinite sequences {ak} such that
    \sum_{i=1}^\infty a_k^2
    converges, with a metric d({ai}, {bi})=\sqrt{\sum_{i=1}^\infty (a_i-b_i)^2}.
  • 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 ({x,a1},{a1,a2},...,{an − 1,y}), 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 d(x, y) = 0 \iff x = y. For example, if x = y = Stanisław Ulam, then d(x, y) = 2.

[edit] 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 \mathbb{R}^n,\mathbb{C}^n is the euclidean metric d2.

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.

[edit] Open Ball

[edit] 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.

[edit] Definition

Given a metric space (X,d) an open ball with radius r around p is defined as the set

B_r(p) = \{ x \in X \mid d(x,p) < r \}, (r \in \mathbb{R}^{+}).

Intuitively it is all the points in the space, that are less than r distance from a certain point p.

[edit] Examples

Why is this called a ball? Let's look at the case of \mathbb{R}^3: d ((x_1,x_2,x_3),(y_1,y_2,y_3)) = \sqrt{(x_1-y_1)^2 + (x_2-y_2)^2 + (x_3-y_3)^2}.

Therefore Br((0,0,0)) is exactly {x_1}^2 + {x_2}^2 + {x_3}^2 < r^2 - The ball with (0,0,0) at center, of radius r. In R3 the ball is called open, because it does not contain the sphere ({x_1}^2 + {x_2}^2 + {x_3}^2 = r^2 ).

The Unit ball is a ball of radius 1. Lets view some examples of the B1((0,0)) unit ball of \mathbb{R}^2 with different p-norm induced metrics. The unit ball of \mathbb{R}^2 with the norm ||\cdot ||_p is: B_1((0, 0)) = \{ (x,y) \in \mathbb{R}^2 \mid d((x,y),(0,0)) < 1 \} =  \{(x,y) \mid ||(x,y)-(0,0)||_p < 1 \} = \{(x,y) \mid ||(x,y)||_p < 1 \} =  \{(x,y) \mid \sqrt[p]{|x|^p + |y|^p} < 1\}

  • The metric induced by ||\cdot ||_1 in that case, the unit ball is: | x | + | y | < 1

D1-unitball.svg

  • The metric induced by ||\cdot ||_2 in that case, the unit ball is: \sqrt{(x + y)^2} < 1

D2-unitball.svg

  • The metric induced by ||\cdot ||_\infty in that case, the unit ball is: max{ | x | , | y | } < 1

Dmax-unitball.svg

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 B1((0,0)) = d{((0,0),(x,y)) < 1} = {d((0,0),(x,y)) = 0} = {(0,0)}

[edit] Interior of a Set

[edit] Definitions

Definition: We say that x is an internal point of A iff There is an ε > 0 such that: B_\epsilon(x) \subseteq A. 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
Internal point.svg Not internal point.svg

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 int(A).

[edit] Properties

Some basic properties of int (For any sets A,B):

  • int(A) \subseteq A
  • int(int(A)) = int(A)\,
  • int(A \cap B) = int(A) \cap int(B)
  • A \subseteq B \Rightarrow int(A) \subseteq int(B)

Proof of the first:
We need to show that:  x\in int(A) \Rightarrow x \in A. But that's easy! by definition, we have that x\in B_\epsilon(x)\subseteq A and therefore x\in A

Proof of the second:
In order to show that int(int(A)) = int(A)\,, we need to show that int(int(A)) \subseteq int(A) and int(int(A)) \supseteq int(A).
The " \subseteq" direction is already proved: if for any set A, int(A) \subseteq A, then by taking int(A) as the set in question, we get int(int(A)) \subseteq int(A).
The " \supseteq" direction:
let x \in int(A). We need to show that x \in int(int(A)).
If x\in int(A) then there is a ball B_\epsilon(x) \subseteq A. Now, every point y, in the ball B_\frac{\epsilon}{2}(x) an internal point to A (inside int(A)), because it there is a ball around it, inside A: y \in 
B_\frac{\epsilon}{2}(x) \Rightarrow B_\frac{\epsilon}{2}(y) \subset B_\epsilon(x) \subset A.
We have that x\in B_\frac{\epsilon}{2}(x) \subset int(A) (because every point in it is inside int(A)) and by definition x \in int(int(A)).
Hint: To understand better, draw to yourself x, B_\epsilon(x), B_\frac{\epsilon}{2}(x), y, B_\frac{\epsilon}{2}(y).

Proof of the rest is left to the reader.

[edit] Reminder

  • [a, b] : all the points x, such that a \leq x \leq b
  • (a, b) : all the points x, such that a < x < b

[edit] Example

For the metric space \mathbb{R} (the line), we have:

  • int([a,b]) = (a,b)
  • int((a,b]) = (a,b)
  • int([a,b)) = (a,b)
  • int((a,b)) = (a,b)

Let's prove the first example (int([a,b]) = (a,b)). Let x\in (a,b) (that is: a < x < b) we'll show that x is an internal point.
Let ε = min{xa,bx}. Note that x + \epsilon \leq x + b - x = b and x - \epsilon \geq x - x + a = a. Therefore  B_\epsilon(x) = (x - \epsilon, x + \epsilon) \subset (a,b).
We have shown now that every point x in (a,b) is an internal point. Now what about the points a,b ? let's show that they are not internal points. If a was an internal point of [a,b], there would be a ball B_\epsilon(a) \subset [a,b]. But that would mean, that the point  a - \frac{\epsilon}{2} is inside [a,b]. but because   a - \frac{\epsilon}{2} < a that is a contradiction. We show similarly that b is not an internal point.
To conclude, the set (a,b) contains all the internal points of [a,b]. And we can mark int([a,b]) = (a,b)

[edit] An Open Set

[edit] Definition

A set is said to be open in a metric space if it equals its interior (A = Int(A)). Do not confuse this with the topological definition of an open set! Again, a topology is a different thing from a metric space.

Propreties:

  1. The empty-set is an open set (by definition: int(\emptyset)=\emptyset).
  2. An open-ball is an open set.
  3. For any set B, int(B) is an open set. This is easy to see because: int(int(B))=int(B)
  4. If A,B are open, then A\cap B is open.
  5. If {A_i: i \in I} (for any set if indexes I) are open, then the infinite union: \cup_{i\in I} A_i is open.

Proof of 2:
Let Br(x) be an open ball. Let y \in B_r(x). Then y \in B_{r-d(x,y)}(y) \subseteq B_r(x).
In the following drawing, the green line is d(x,y) and the brown line is rd(x,y). We have found a ball to contain y inside Br(x). Openball is open.svg

Proof of 4:
A, B are open. we need to prove that int(A \cap B) = A\cap B. Because of the proprieties of int, we only need to show that int(A \cap B) \supseteq A\cap B. let x \in  A \cap B. We know also, that x \in  int(A), x \in int(B). That means that there are balls: B_{{\epsilon}_1}(x) \subset A, B_{{\epsilon}_2}(x) \subset B. Let ε = min{ε12}, we have that B_{\epsilon}(x) \subset A, B_{\epsilon}(x) \subset B \Rightarrow  B_{\epsilon}(x) \subset A\cap B . By the definition of an internal point we have that x\in A\cap B (Bε(x) is the required ball).

Proof of 5:
Proving that the union of open sets is open, is rather trivial: let {A_i: i \in I} (for any set if indexes I) be a set of open sets. we need to prove that int(\cup_{i\in I} A_i) \supseteq \cup_{i\in I} A_i: If x\in A_i then it has a ball B_\epsilon(x) \subset A_i \subseteq \cup_{i\in I} A_i. The same ball that made a point an internal point in Ai will make it internal in \cup_{i\in I} A_i.

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 x\in A there there a ball B_{\epsilon_x}(x) \subseteq A. We can then compose A: A = \cup_{x\in A}B_{\epsilon_x}(x). The equality is true because:  \cup_{x\in A}B_{\epsilon_x}(x) \subseteq A because  \forall x \in A: B_{\epsilon_x}(x) \subseteq A.  \cup_{x\in A}B_{\epsilon_x}(x) \supseteq A in each ball we have the element x and we unite balls of all the elements of A.
On the other hand, a union of open balls is and open set, because every union of open sets is open.

[edit] Examples

  • As we have seen, every open ball is an open set.
  • For every space X with the discrete metric, every set is open. Proof: Let U be a set. we need to show, that if x\in U then x is an internal point. Lets use the ball around x with radius \frac{1}{2}. We have B_\frac{1}{2}(x) = \{y\mid d(x,y) < \frac{1}{2}\} = \{x\} \subseteq U. Therefore x is an internal point.
  • The space \mathbb{R} with the regular metric. Every open segment (a,b) is an open set. The proof of that is similar to the proof that int([a,b]) = (a,b), that we have already seen.

[edit] Convergence

[edit] Definition

First, Lets translate the calculus definition of convergence, to the "language" of metric spaces: We say that a sequence xn converges to x if for every ε > 0 exists N that for each n * > N the following holds: d(x_{n^*},x) < \epsilon.
Equivalently, we can define converges using Open-balls: A sequence xn converges to x If for every ε > 0 exists N that for each n * > N the following holds: x_{n^*} \in B_\epsilon(x).

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 xn converges to x (and mark x_n \rightarrow x) , if for every ball B around x , exists NB that for each n * > NB the following holds: x_{n^*} \in B(x). x 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.

[edit] Properties

  • If a sequence has a limit, it has only one limit.
    Proof Let a sequence xn have two limits, x\, and x^\prime. If they are not the same, we must have 0<d(x,x^\prime). Let ε be smaller than this distance. Now for some N, for all n > N, it must be the case that both x_n \in B_{\epsilon / 2}(x) and x_n \in B_{\epsilon / 2}(x^\prime) by virtue of the fact x\, and x^\prime are limits. But this is impossible; the two balls are separate. Therefore the limits are coincident, that is, the sequence has only one limit.
  • If x_n \rightarrow x, then almost by definition we get that d(x_n, x) \rightarrow 0. (d(xn,x) Is the sequence of distances).

[edit] Examples

  • In \mathbb{R} with the natural metric, The series x_n = \frac{1}{n} converges to 0. And we note it as follows: \frac{1}{n}\rightarrow 0
  • Any space, with the discrete metric. A series xn converges, only if it is eventually constant. In other words: x_n\rightarrow x If and only if, We can find N that for each n * > N, x_{n^*} = x
  • An example you might already know:

The space \mathbb{R}^k For any p-norm induced metric, when p\geq 1. Let \vec{x_n} =  (x_{n,1},x_{n,2},\cdots, x_{n,k}). and let \vec{x} =  (x_{1},x_{2},\cdots, x_{k}).
Then, \vec{x_n} \rightarrow \vec{x} If and only if  \forall i, 1\leq i \leq k: x_{n,i} \rightarrow x_{i}.

[edit] 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.

[edit] Closed Sets

[edit] Closure

Definition: The point p is called point of closure of a set A if exists a sequence a_n, \forall n, a_n \in A, such that a_n \rightarrow p

A equivalent definition using balls: The point p is called point of closure of a set A if for every ball B, p \in B, we have that B \cap A \neq \emptyset.
The proof is left as an exercise.

A point of closure intuitively means that the point p is very "close" to the set A. It is so close, that we can find a sequence in A that converges to p

Example: Let A be the segment [0,1) \in \mathbb{R}, The point p = 1 is not in A, but it is a point of closure: Let a_n = 1 - \frac{1}{n}. a_n \in A (n > 0, and therefore a_n = 1 - \frac{1}{n} < 1) and  a_n \rightarrow 1 (that's because  \frac{1}{n} \rightarrow 0).

Definition: The closure of a set A \subseteq X (X,d), is the set of all points of closure. The closure of a set A is marked \bar{A} or Cl(A).

Note that A \subseteq \bar{A}. a quick proof: For every x \in A, Let \forall n, a_n = x.

[edit] Examples

For the metric space \mathbb{R} (the line), and let a,b \in \mathbb{R} we have:

  • Cl([a,b]) = [a,b]
  • Cl((a,b]) = [a,b]
  • Cl([a,b)) = [a,b]
  • Cl((a,b)) = [a,b]

[edit] Closed set

Definition: A set A \subseteq X is closed in {X}\, if A = Cl(A).
Meaning: A set is closed, if it contains all its point of closure.


An equivalent definition is: A set A \subseteq X is closed in {X}\, If for every point p \in A, and for ever Ball B, p \in B, then B \cap A \neq \emptyset.
The proof of this definition is comes directly from the former definition and the definition of convergence.

[edit] Properties

Some basic properties of Cl (For any sets A,B):

  • A \subseteq Cl(A)
  • A is closed iff A = Cl(A)
  • Cl(Cl(A)) = Cl(A)
  • Cl(A \cup B) = Cl(A)\cup Cl(B)

[edit] 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 (X,d), the set X is both open and closed.
  • In any space with a discrete metric, every set is both open and closed.
  • In \R, under the regular metric, the only sets that are both open and closed ar \R and \emptyset. However, some sets are neither open nor closed. For example, a half-open range like [0,1) 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 π).

[edit] Complementary set

A Reminder\Definition: Let A be a set in the space X. We define the complementary set of A, Ac to be X \setminus A.

A Quick example: let X = [0,1]; A = [0,\frac{1}{2}]. Then A^c = (\frac{1}{2},1].

[edit] The plot continues...

A very important Proposition: Let A be a set in the space (X,d). Then, A is open \Leftrightarrow if Ac is closed.
Proof: (\Rightarrow) For the first part, we assume that A is an open set. We shall show that Ac = Cl(Ac). It is enough to show that Cl(A^c) \subseteq A^c because of the properties of closure. Let p \in Cl(A^c) (we will show that p \in A^c).
for every ball B, p\in B we have, by definition that (*)B \cap A^c \neq \emptyset. If the point is not in Ac then p \in A. A is open and therefore, there is a ball B, such that: p \in B \subseteq A, that means that B \cap A^c = \emptyset, contradicting (*).
(\Leftarrow) On the other hand, Lets a assume that Ac is closed, and show that A is open. Let p be a point in A (we will show that p \in int(A)). If p is not in int(A) then for every ball B, p \in B we have that B \nsubseteq A. That means that B \cap A^c \neq \emptyset. And by definition of closure point p is a closure point of Ac so we can say that p \in Cl(A^c). Ac is closed, and therefore p \in A^c = Cl(A^c) That contradicts the assumption that p \in A

Note that, as mentioned earlier, a set can still be both open and closed!

[edit] 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.

[edit] Examples of closed sets

  1. Closed intervals [a,b] are closed.
  2. Cantor Set Consider the interval [0,1] and call it C0. Let A1 be equal {0, \tfrac{2}{3}} and let dn = (\tfrac{1}{3})^{n}. Let An+1 be equal to the set An∪{x|x=a+2dn, a∈An}. Let Cn be \textstyle \bigcup_{a\in A_n}{[a,a+dn]}, which is the finite union of closed sets, and is thus closed. Then the intersection \textstyle \bigcap_{i=1}^\infty {C_i} is called the Cantor set and is closed.

[edit] Exercises

  1. 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.
  2. In \mathbb{R} 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 \mathbb{Q} subspace of \mathbb{R}. Give an example of a set which is both open and closed in \mathbb{Q}.
  3. Let A be a set in the space x. Prove the following:
    1. Cl(A) = Int(Ac)c
    2. Int(A) = Cl(Ac)c

[edit] Continuity

[edit] 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 (X,d),(Y,e) be spaces. A function f : X \rightarrow Y is continuous at a point x if for all εx > 0 there exists a \delta_{\epsilon_x} > 0 such that: for all x1 such that d(x,x_1) < \delta_{\epsilon_x} , we have that e(f(x),f(x1)) < εx.

Let's rephrase the definition to use balls: A function f : X \rightarrow Y is continuous at a point x if for all εx > 0 there exists \delta_{\epsilon_x} > 0 such that the following holds: for every x1 such that x_1 \in B_{\delta_{\epsilon_x}} (x) we have that  f(x_1) \in B_{\epsilon_{x}}(f(x)). Or more simply:  f(B_{\delta_{\epsilon_x}}(x)) \subseteq B_{\epsilon_{x}}(f(x))

Looks better already! But we can do more.

Definitions:

  • A function is continuous in a set S if it is continuous at every point in S.
  • A function is continuous if it is continuous in its entire domain.

Proposition: A function f : X \rightarrow Y is continuous, by the definition above \Leftrightarrow for every open set U in Y, The inverse image of U, f - 1(U), is open in X.
Note that f does not have to be surjective or bijective for f - 1 to be well defined. The notation f - 1 simply means f^{-1}(U) = \{x \in X: f(x) \in U\}.

Proof: First, let's assume that a function f is continuous by definition (The \Rightarrow direction). We need to show that for every open set U, f - 1(U) is open.

Let U\subseteq Y be an open set. Let x \in f^{-1}(U). f(x) is in U and because U is open, we can find and εx, such that B_{\epsilon_x}(f(x)) \subseteq U. Because f is continuous, for that εx, we can find a \delta_{\epsilon_x} > 0 such that  f(B_{\delta_{\epsilon_x}}(x)) \subseteq B_{\epsilon_{x}}(f(x)) \subseteq U. that means that B_{\delta_{\epsilon_x}}(x) \subseteq f^{-1}(U), and therefore, x is an internal point. This is true for every x - meaning that all the points in f - 1(U) are internal points, and by definition, f - 1(U) is open.

(\Leftarrow)On the other hand, let's assume that for a function f for every open set U \in Y, f - 1(U) is open in X. We need to show that f is continuous.

For every x\in X and for every εx > 0, The set B_{\epsilon_x}(f(x)) is open in Y. Therefore the set V = f^{-1}(B_{\epsilon_x}(f(x))) is open in X. Note that x\in V. Because V is open, that means that we can find a \delta_{\epsilon_x} such that B_{\delta_{\epsilon_x}}(x) \subseteq V, and we have that  f(B_{\delta_{\epsilon_x}}(x)) \subseteq B_{\epsilon_{x}}(f(x)).

The last proof gave us an additional 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, so we now have two equivalent definitions which we can use for continuity.

[edit] Examples

  • Let f be any function from any space (X,d), to any space (Y,e), were d is the discrete metric. Then f is continuous. Why? For every open set U, the set f - 1(U) is open, because every set is open in a space with the discrete metric.
  • Let f:\mathbb{R}\rightarrow\mathbb{R}; f(x)=x The identity function. f is continuous: The source of every open set is itself, and therefore open.

[edit] Exercise

  1. Prove that a function f : X \rightarrow Y is continuous \Leftrightarrow for every closed set U in Y, The inverse image of U, f - 1(U), is closed in X.

[edit] Uniform Continuity

In a metric space X, function from X to a metric space Y is uniformly continuous if for all ε, there exists a δ such that for all x_1,x_2\in X, d(x1,x2) < δ implies that d(f(x1),f(x2)) < ε.

[edit] Isometry

An isometry is a surjective mapping f: X \rightarrow Y, where (X,δ) and (Y,ρ) are metric spaces and for all a, b \in X, δ(a,b) = ρ(f(a),f(b)).

In this case, (X,δ) and (Y,ρ) are said to be isometric.

Note that the injectivity of f follows from the property of preserving distance:

f(a) = f(b)
\implies\rho(f(a),f(b))=0
\implies\delta(a,b)=0
\implies a=b

So an isometry is necessarily bijective.

[edit] Exercises

  1. Show that a set is a metric open set iff it is a union of (possibly inifite) open balls.
  2. Show that the discrete metric is in fact a metric.