Topology/Metric Spaces

From testwiki
Jump to navigation Jump to search

Template:Navigation

Before we begin

Template:TOC right Before we discuss topological spaces in their full generality, we will first turn our attention to a special type of topological space, a metric space. This abstraction has a huge and useful family of special cases, and it therefore deserves special attention. Also, the abstraction is picturesque and accessible; it will subsequently lead us to the full abstraction of a topological space.

Metric Space

Definition

A metric space is a Cartesian pair (X,d) where X is a non-empty set and d:X×X[0,), is a function which is called the metric which satisfies the requirement that for all a,b,cX:

  1. d(a,b)=0 if and only if a=b
  2. d(a,b)=d(b,a) (symmetry)
  3. d(a,c)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.

Examples

  • An important example is the discrete metric. It may be defined on any non-empty set X as follows
d(x,y)={1:xy0:x=y
  • On the set of real numbers , define d(x,y)=|xy| (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. To begin with, d(x,y)=|xy|0 for any real numbers x and y.
    • d(x,y)=|xy|=0(xy)=0(xy)=0x=y
    • d(x,y)=|xy|=|yx|=d(y,x)
    • d(x,z)=|xz|=|xy+yz|=|(xy)+(yz)||xy|+|yz|=d(x,y)+d(y,z)
  • On the plane 2 as the space, and let d((x1,y1),(x2,y2))=(x1x2)2+(y1y2)2.
This is the euclidean distance between (x1,y1) and (x2,y2)).
  • We can generalize the two preceding examples. Let V be a normed vector space (over or ). We can define the metric to be: d(x,y)=xy. Thus every normed vector space is a metric space.
  • For the vector space n we have an interesting norm. Let x=(x1,,xn) and y=(y1,,yn) two vectors of n. We define the p-norm: xp=(i=1n|xi|p)1p. For each p-norm there is a metric based on it. Interesting cases of p are:
    • p=1. The metric is d(x,y)=xy1=i=1n|xiyi|
    • p=2. The metric is good-old Euclid metric d(x,y)=xy2=i=1n|xiyi|2
    • p=. This is a bit surprising: d(x,y)=xy=maxi=1n{|xiyi|}

      As an exercise, you can prove that limpxp=maxi=1n{|xi|} thus justifying the definition of .

  • 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 i=1ak2 converges, with a metric d({ai},{bi})=i=1(aibi)2.
  • The concept of the Erdős number suggests a metric on the set of all mathematicians. Take x,y to be two mathematicians, and define d(x,y) as 0 if x,y are the same person; 1 if x,y have co-authored a paper; n if the shortest sequence ({x,a1},{a1,a2},,{an1,y}), where each step pairs two people who have co-authored a paper, is of length n; or if xy 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,y, then d would not be a metric, as it would not satisfy d(x,y)=0x=y. 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 n,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.

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 (X,d) an open ball with radius r around p is defined as the set

Br(p)={xX:d(x,p)<r},(r+)

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

Examples

Why is this called a ball? Let's look at the case of 3:

d((x1,x2,x3),(y1,y2,y3))=(x1y1)2+(x2y2)2+(x3y3)2

Therefore Br((0,0,0)) is exactly x12+x22+x32<r2 – The ball with (0,0,0) at center, of radius r. In 3 the ball is called open, because it does not contain the sphere (x12+x22+x32=r2).

The Unit ball is a ball of radius 1. Lets view some examples of the B1((0,0)) unit ball of 2 with different p-norm induced metrics. The unit ball of 2 with the norm p is:

B1((0,0))={(x,y)2:d((x,y),(0,0))<1}={(x,y):(x,y)(0,0)p<1}={(x,y):(x,y)p<1}={(x,y):|x|p+|y|pp<1}
  • The metric induced by 1 in that case, the unit ball is: |x|+|y|<1

  • The metric induced by 2 in that case, the unit ball is: x2+y2<1

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

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)}

Interior of a Set

Definitions

Definition: We say that x is an interior point of A iff there is an ϵ>0 such that: Bϵ(x)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:

Interior Point Not Interior Points

Definition: The interior of a set A is the set of all the interior points of A. The interior of a set A is marked int(A). Useful notations: int(S)={xS|x is an interior point of S} and int(S)={AS|A is open } .

Properties

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

  • int(A)A
  • int(int(A))=int(A)
  • int(AB)=int(A)int(B)
  • ABint(A)int(B)

Proof of the first:
We need to show that: xint(A)xA. But that's easy! by definition, we have that xBϵ(x)A and therefore xA

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

Proof of the rest is left to the reader.

Reminder

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

Example

For the metric space (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(a,b) (that is: a<x<b) we'll show that x is an internal point.
Let ϵ=min{xa,bx}. Note that x+ϵx+bx=b and xϵxx+a=a. Therefore Bϵ(x)=(xϵ,x+ϵ)(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ϵ(a)[a,b]. But that would mean, that the point aϵ2 is inside [a,b]. but because aϵ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)

An Open Set

Definition

A set is said to be open in a metric space if it equals its interior (A=Int(A)). When we encounter topological spaces, we will generalize this definition of open. However, this definition of open in metric spaces is the same as that as if we regard our metric space as a topological space.

Properties:

  1. The empty-set is an open set (by definition: int()=).
  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 AB is open. Hence finite intersections of open sets are open.
  5. If Ai:iI (for any set if indexes I) are open, then their union iIAi is open.

Proof of 2:
Let Br(x) be an open ball. Let yBr(x). Then yBrd(x,y)(y)Br(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).

Proof of 4:
A, B are open. we need to prove that int(AB)=AB. Because of the first propriety of int, we only need to show that int(AB)AB, which means xAB:xint(AB). Let xAB. We know also, that xint(A),xint(B) from the premises A, B are open and xA,xB . That means that there are balls: Bϵ1(x)A,Bϵ2(x)B. Let ϵ=min{ϵ1,ϵ2}, we have that Bϵ(x)A,Bϵ(x)BBϵ(x)AB. By the definition of an internal point we have that xint(AB) (Bϵ(x) is the required ball).

Interestingly, this property does not hold necessarily for an infinite intersection of open sets. To see an example on the real line, let An={(1/n,1/n)}. We then see that i=1Ai={0} which is closed.

Proof of 5:
Proving that the union of open sets is open, is rather trivial: let Ai:iI (for any set if indexes I) be a set of open sets. we need to prove that int(iIAi)iIAi: If xAi then it has a ball Bϵ(x)AiiIAi. The same ball that made a point an internal point in Ai will make it internal in iIAi.

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 xA there there a ball Bϵx(x)A. We can then compose A: A=xABϵx(x). The equality is true because: xABϵx(x)A because xA:Bϵx(x)A. xABϵx(x)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 an 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 X with the discrete metric, every set is open.

Proof: Let U be a set. we need to show, that if xU then x is an internal point. Lets use the ball around x with radius 12. We have B12(x)={yd(x,y)<12}={x}U. Therefore x is an internal point.

  • The space 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.

Theorem

In any metric space X, the following three statements hold:

1) The union of any number of open sets is open.
Proof: Let C be a collection of open sets, and let
xC. Then there exists a UC such that xU.
So there exists an ϵ>0 such that Bϵ(x)U. Therefore
Bϵ(x)C.
2) The intersection of a finite number of open sets is open.
Proof: Let xC, where C is a finite collection of open sets.
So xU for each UC. Let C=U1,U2,...,Un. For each i=1,2,3,...,n, there exists an ϵi>0 such that Bϵ(x)Ui. Let ϵ=mini{ϵi}. Therefore ϵ>0 and Bϵ(x)C.
3) The empty set and X are both open.

Theorem

In any metric space X, the following statements hold:

1) The intersection of any number of closed sets is closed.
2) The union of a finite number of closed sets is closed.

Convergence

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(xn*,x)<ϵ.
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: xn*Bϵ(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 xnx) , if for every ball B around x , exists NB that for each n*>NB the following holds: xn*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.

Properties

  • If a sequence has a limit, it has only one limit.
    Proof Let a sequence xn have two limits, x and x. If they are not the same, we must have 0<d(x,x). Let ϵ be smaller than this distance. Now for some N, for all n>N, it must be the case that both xnBϵ/2(x) and xnBϵ/2(x) by virtue of the fact x and x 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 xnx, then almost by definition we get that d(xn,x)0. (d(xn,x) Is the sequence of distances).

Examples

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

The space k For any p-norm induced metric, when p1. Let xn=(xn,1,xn,2,,xn,k). and let x=(x1,x2,,xk).
Then, xnx If and only if i,1ik:xn,ixi.

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 d(fa(x),fb(x))<ϵ for any xS.

Closed Sets

Closure

Definition: The point p is called a point of closure of a set A if there exists a sequence an,n,anA, such that anp.

In other words, the point p is a point of closure of a set A if there exists a sequence in A that converges on p. Note that p is not necessarily an element of the set A.

An equivalent definition using balls: The point p is called a point of closure of a set A if for every open ball B containing p, we have BA. In other words, every open ball containing p contains at least one point in A that is distinct from p.
The proof is left as an exercise.

Intuitively, a point of closure is arbitrarily "close" to the set A. It is so close, that we can find a sequence in the set that converges to any point of closure of the set.

Example: Let A be the segment [0,1), The point p=1 is not in A, but it is a point of closure: Let an=11n. anA (n>0, and therefore an=11n<1) and an1 (that's because 1n0).

Definition: The closure of a set AX (X,d), is the set of all points of closure. The closure of a set A is marked A¯ or Cl(A).

Note that AA¯. a quick proof: For every xA, Let (an=x)n.

Examples

For the metric space (the line), and let a,b we have:

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

Closed set

Definition: A set AX 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 AX is closed in X If for every point pA, and for every Ball B,pB, then BA.
The proof of this definition comes directly from the former definition and the definition of convergence.

Properties

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

  • ACl(A)
  • Cl(Cl(A))=Cl(A)
  • Cl(AB)=Cl(A)Cl(B)
  • A is closed iff A=Cl(A)
  • While the above implies that the union of finitely many closed sets is also a closed set, the same does not necessarily hold true for the union of infinitely many closed sets. To see an example on the real line, let An={[1+1n,11n]}. We see that i=1Ai=(1,1) fails to contain its points of closure, ±1.

This union can therefore not be a closed subset of the real numbers.

The proofs are left to the reader as exercises. Hint for number 5: recall that Cl(A)={AS|S is closed } .

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 properties may seem mutually exclusive, 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 , under the regular metric, the only sets that are both open and closed are and . 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 π).

Complementary set

A Reminder/Definition: Let A be a set in the space X. We define the complement of A, Ac to be XA.

A Quick example: let X=[0,1];A=[0,12]. Then Ac=(12,1].

The plot continues...

A very important Proposition: Let A be a set in the space (X,d). Then, A is open iff Ac is closed.
Proof: () 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(Ac)Ac because of the properties of closure. Let pCl(Ac) (we will show that pAc).
for every ball B,pB we have, by definition that (*)BAc. If the point is not in Ac then pA. A is open and therefore, there is a ball B, such that: pBA, that means that BAc=, contradicting (*).
() 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 pint(A)). If p is not in int(A) then for every ball B,pB we have that BA. That means that BAc. And by definition of closure point p is a closure point of Ac so we can say that pCl(Ac). Ac is closed, and therefore pAc=Cl(Ac) That contradicts the assumption that pA

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

On

The following is an important theorem characterizing open and closed sets on .
Theorem: An open set O in is the union of countably many disjoint open intervals.
Proof: Let xO. Let a=sup{t|tO,t<x} and let b=inf{t|tO,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 supremum of {t|t∉O, t<x}. Similarly, if there is a number is less than b and greater than x, but is not within O, then b would not be the infimum 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 inf{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 sup{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 disjoint. 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

  1. In any metric space, a singleton {x} is closed. To see why, consider the open set, {x}c. Let y{x}c. Then yx, so d(y,x)>0. Let ϵ=12d(y,x). Then Bϵ(y){x}c. So {x}c is open, and hence {x} is closed.
  2. In any metric space, every finite set T={x1,x2,...,xn} is closed. To see why, observe that Tc=[{xi}]c={xi}c is open, so T is closed.
  3. Closed intervals [a,b] are closed.
  4. Cantor Set Consider the interval [0,1] and call it C0. Let A1 be equal {0, 23} and let dn = (13)n. Let An+1 be equal to the set An∪{x|x=a+2dn, a∈An}. Let Cn be aAn{[a,a+dn]}, which is the finite union of closed sets, and is thus closed. Then the intersection i=1Ci is called the Cantor set and is closed.

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 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 . Give an example of a set which is both open and closed in .
  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

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 (X,d),(Y,e) be spaces. A function f:XY is continuous at a point x if for all ϵx>0 there exists a δϵx>0 such that: for all x1 such that d(x,x1)<δϵx, we have that e(f(x),f(x1))<ϵx.

Let's rephrase the definition to use balls: A function f:XY is continuous at a point x if for all ϵx>0 there exists δϵx>0 such that the following holds: for every x1 such that x1Bδϵx(x) we have that f(x1)Bϵx(f(x)). Or more simply: f(Bδϵx(x))Bϵ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:XY is continuous, by the definition above for every open set U in Y, The inverse image of U, f1(U), is open in X. That is, the inverse image of every open set in Y is open in X.
Note that f does not have to be surjective or bijective for f1 to be well defined. The notation f1 simply means f1(U)={xX:f(x)U}.

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

Let UY be an open set. Let xf1(U). f(x) is in U and because U is open, we can find and ϵx, such that Bϵx(f(x))U. Because f is continuous, for that ϵx, we can find a δϵx>0 such that f(Bδϵx(x))Bϵx(f(x))U. that means that Bδϵx(x)f1(U), and therefore, x is an internal point. This is true for every x - meaning that all the points in f1(U) are internal points, and by definition, f1(U) is open.

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

For every xX and for every ϵx>0, The set Bϵx(f(x)) is open in Y. Therefore the set V=f1(Bϵx(f(x))) is open in X. Note that xV. Because V is open, that means that we can find a δϵx such that Bδϵx(x)V, and we have that f(Bδϵx(x))Bϵ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.

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 f1(U) is open, because every set is open in a space with the discrete metric.
  • Let f:;f(x)=x The identity function. f is continuous: The source of every open set is itself, and therefore open.

Exercise

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

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 x1,x2X, d(x1,x2)<δ implies that d(f(x1),f(x2))<ϵ.

Isometry

An isometry is a surjective mapping f:XY, where (X,δ) and (Y,ρ) are metric spaces and for all a,bX, δ(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)
ρ(f(a),f(b))=0
δ(a,b)=0
a=b

So an isometry is necessarily bijective.

Exercises

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


Template:Navigation

Template:BookCat