To prove the triangle inequality for the ℓ1 metric, you needed to use a limit law:
n=1∑∞∣an−bn∣=N→∞limn=1∑N∣an−bn∣≤N→∞lim(n=1∑N∣an−cn∣+n=1∑N∣cn−bn∣)=N→∞limn=1∑N∣an−cn∣+N→∞limn=1∑N∣cn−bn∣=n=1∑∞∣an−cn∣+n=1∑∞∣cn−bn∣.(limit law; both sums converge)
Also, to show that the unit ball
B={{an}n∈ℓ1∣∣n=1∑∞∣an∣≤1}
is closed and bounded, my hint was to try to get you to recognize this set as
B={x∈ℓ1∣∣d(x,0)≤1},
i.e., as a closed ball. We proved in lecture that closed balls are closed, and this set is bounded because B⊆B2(0) (remember that our definition of bounded involves containing the set in an open ball).
Continuity
Definition
A function f:(X,dX)→(Y,dY) is continuous at x0∈X if for for every ε>0, there exists δ>0 such that
dX(x,x0)<δ⟹dY(f(x),f(x0))<ε.
If f is continuous at every x0∈X, then we say that f is continuous.
Theorem
Let f:(X,dX)→(Y,dY) be a function. The following are equivalent:
f is continuous.
For any x∈X and any sequence {xn}n in X such that xndXx, we have f(xn)dYf(x).
For any open set V⊆Y, the preimage f−1(V) is open.
For any closed set F⊆Y, the preimage f−1(F) is closed.
Remark.
Note that (iii) doesn't refer to the metric at all, so in more advanced math classes, (iii) is usually taken to be the definition of continuity.
We like continuity because it lets us move limits around. For example, we can rewrite (ii) as
n→∞limf(xn)=f(n→∞limxn).
Continuity is one of the biggest reasons why we're studying metric spaces to begin with. Before, we only had continuity defined for functions involving real numbers, but there are plenty of interesting functions defined on more general metric spaces. For example, the Fourier transform is defined on function spaces, and we can now talk about whether it's continuous or not.
Now that we have the notion of continuity, a reasonable question to ask if whether every metric space has a (non-trivial) continuous function or not. The answer is yes:
Example 1.
Let (X,d) be a (non-empty) metric space. For a fixed y∈X, define f:X→R via f(x)=d(x,y). Show that f is continuous.
Solution.
For this problem, we'll want to work directly from the definition. Let ε>0. Like usual, we're going to work backwards to find δ:
∣f(x)−f(x0)∣=∣d(x,y)−d(x,x0)∣≤d(x,x0)
by the reverse triangle inequality. So, if we let δ=ε, then whenever d(x,x0)<δ, we have
∣f(x)−f(x0)∣≤d(x,x0)<δ=ε,
so f is continuous.
Example 2.
Let (X,d) be a metric space with the discrete metric and (Y,d) be any metric space. Then every function f:X→Y is continuous.
Solution.
For this problem, (iii) is the easiest to prove: given any open set V⊆Y, the preimage f−1(V) is automatically open because every set is open with the discrete metric.
i.e., X is the set of bounded convergent sequences. Define f:X→R via
f({an}n)=n→∞liman.
Show that f is continuous.
Solution.
For this problem, (iii) and (iv) aren't that useful just because it's hard to make sense of f−1(V). So, we'll want to use an ε-δ proof.
Let ε>0. Working backwards,
∣f({an}n)−f({bn}n)∣=∣∣n→∞liman−n→∞limbn∣∣=∣∣n→∞lim(an−bn)∣∣=n→∞lim∣an−bn∣(limit law)(∣⋅∣ is continuous).
Notice that by definition,
∣an−bn∣≤nsup∣an−bn∣=d({an}n−{bn}n),
so we get
∣f({an}n)−f({bn}n)∣≤d({an}n−{bn}n).
Thus, setting δ=ε works.
Compactness and Continuity
Proposition
Let f:(X,dX)→(Y,dY) be continuous. Then for any compact set K⊆X, its image f(K)⊆Y is compact.
Usually, we say "the continuous image of a compact set is compact."
Example 4.
If f:(X,dX)→(Y,dY) is a continuous bijection, then is f−1 also continuous?
Solution.
No. For example, let f:(R,ddisc)→(R,∣⋅∣) be given by f(x)=x. Then f is continuous since every function on a discrete metric space is continuous, but its inverse f−1:(R,∣⋅∣)→(R,ddisc) is not:
Let V={0}, which is open since every set in a discrete metric space is open. But
(f−1)−1(V)=f({0})={0}
is not open with respect to the absolute value metric. This means that f−1 is not continuous.
However, with a few more assumptions on X, we can guarantee that f−1 is automatically continuous:
Example 5.
Let f:(X,dX)→(Y,dY) be a continuous function. If X is compact, then f−1 is also continuous.
Solution.
We're going to prove this by using (iv). Let F⊆X be a closed set. Since X is compact, this means that F is also compact, so because f is continuous,
(f−1)−1(F)=f(F)⊆Y
is also compact, hence closed. In other words, the preimage of every closed set in X under f−1 is closed, so f−1 is continuous.