Chapter 08 Additional Topics

8.2 Metric Spaces and the Baire Category Theorem

Definition 8.2.1.

Given a set , a function is a metric on if for all :

(i) with if and only if ,

(ii) , and

(iii) for all , .

A metric space is a set together with a metric .

Exercise 8.2.1.

Decide which of the following are metrics on . For each, we let and be points in the plane.

(a) .

Proof: Yes.

(i)

It's equal to , only when .

(ii) yes.

(iii) Yes. It's easier to see with a plot. Triangle 2 edges are longer than 1 edge.

(b)

(i) yes.

(ii) yes.

(iii)

(c) .

(i) No, Consider . .

Exercise 8.2.2.

Let be the collection of continuous functions on the closed interval . Decide which of the following are metrics on .

(a) .

Proof:

(i) . If , then , that means for all .

(ii)

(iii)

So yes.

(b) .

(i) it does not hold. So it's not a metric.

(c)

(i) . If , since are continuous functions, then , i.e. .

(ii)

(iii)

So yes.

The following distance function is called the discrete metric and can be defined on any set . For any , let

Exercise 8.2.3.

Verify that the discrete metric is actually a metric.

Proof:

(i) . Also if , then .

(ii) if , then .

If , then .

(iii) , , .

Definition 8.2.2.

Let be a metric space. A sequence converges to an element if for all there exists an such that whenever .

Definition 8.2.3.

A sequence in a metric space is a Cauchy sequence if for all there exists an such that whenever .

Exercise 8.2.4.

Show that a convergent sequence is Cauchy.

Proof:

Definition 8.2.4.

A metric space is complete if every Cauchy sequence in converges to an element of .

Exercise 8.2.5.

(a) Consider with the discrete metric examined in Exercise 8.2.3. What do Cauchy sequences look like in this space? Is complete with respect to this metric?

Proof: Cauchy sequences will eventually become a constant. Yes, it's complete.

(b) Show that is complete with respect to the metric in Exercise 8.2.2 (a).

Proof:

Given a cauchy function sequence , and given , we can find , and , .

Since , then for . Then we can apply Theorem 6.2.5 (Cauchy Criterion for Uniform Convergence), to get is also continuous. Then .

(c) Define to be the collection of differentiable functions on whose derivatives are also continuous. Is complete with respect to the metric defined in Exercise 8.2.2 (a)?

Proof:

Let's consider the following function sequence we encounter in the end of chapter 5.4

where .

This is a Cauchy sequence, because

So it converges uniformly to a function which is continuous.

However, from the discussion at the end of chapter 5.4, the results from G.H. Hardy show since , then is a nowhere-differentiable function. That is . So it's not complete w.r.t. to the metric defined in Exercise 8.2.2 (a).

Another example I asked Google AI mode is similar to exercise 8.5.4 (b), which uses and function to approximate . Again, the convergence is uniform, (see my solution on that one), so it's a Cauchy sequence, but is not differentiable at 0.

Because completeness is a prerequisite for doing anything significant in the way of analysis, the metric in Exercise 8.2.2 (a) is the most natural metric to consider when working with . The notation

is standard, and setting gives the so-called “sup norm”

In all upcoming discussions, it is assumed that the space is endowed with this metric unless otherwise specified.

Definition 8.2.5 (Continuous function).

Let and be metric spaces. A function is continuous at if for all there exists a such that whenever .

Exercise 8.2.6.

Which of these functions from to (with the usual metric) are continuous?

(a) where is some fixed function in .

Proof:

Since is a fixed function in , then it's continuous. We can assume . Then if ,

So is continuous.

(b) .

Proof: Let , then

(c) , but this time with respect to the metric on from Exercise 8.2.2 (c).

Proof: Let

Note the 's shape is a triangle centered at with a height of .

Let ,

But .

Topology on Metric Spaces

Definition 8.2.6. Given and an element in the metric space , the -neighborhood of is the set .

Exercise 8.2.7.

Describe the -neighborhoods in for each of the different metrics described in Exercise 8.2.1. How about for the discrete metric?

Solution:

(a) .

The -neighborhood of is a cicle of radius centered at .

(b)

The -neighborhood of is a square with edge length centered at .

(c) the discrete metric.

The -neighborhood of is only itself if . It's if .

open sets, limit points, and closed sets

With the definition of an -neighborhood, we can now define open sets, limit points, and closed sets exactly as we did before.

  • A set is open if for every we can find a neighborhood .
  • A point is a limit point of a set if every intersects in some point other than .
  • A set is closed if it contains its limit points.

Exercise 8.2.8.

Let be a metric space.

(a) Verify that a typical -neighborhood is an open set. Is the set

a closed set

Proof: Let , and . Consider .

So , so , then is an open set.

Assume , we want to show is not a limit point of .

Let , consider , and let .

if , then

We got a contradiction. So . Then , i.e. is not a limit point of . So is a closed set.

(b) Show that a set is open if and only if its complement is closed.

Proof:

Assume is open, and . Then we can find . So , so is not a limit point of . That means does not contain any limit point of . So contains all its limit point. So is closed.

Assume is closed. And . Since it's not a limit point of , we can find . So . Then is open.

Exercise 8.2.9.

(a) Show that the set is closed in .

Proof: we can see that , so it's closed.

(b) Is the set open, closed, or neither in ?

Proof:

It's not open. Given , and . Consider

Then .

So , but .

On the other hand, it is a limit point of , then given , . So , then .

Definition 8.2.7.

A subset of a metric space is compact if every sequence in has a convergent subsequence that converges to a limit in .

Exercise 8.2.10.

(a) Supply a definition for bounded subsets of a metric space .

Solution: If a non empty subset of is bounded, we can find and a real number , such that .

(b) Show that if is a compact subset of the metric space , then is closed and bounded.

Proof:

Assume is not bounded, and let . Let , such that .

We can find a subsequence of such that converges to . Let , we can find , such that and .

Then

On the other hand, . We have a contradiction.

So is bounded.

Assume is a limit point of . Let . So . On the other hand, a subsequence , so . .

So K is closed.

(c) Show that from Exercise 8.2.9 (a) is closed and bounded but not compact.

Solution: Consider

is not continuous. So is not compact.

Definition 8.2.8.

Given a subset of a metric space , the closure is the union of together with its limit points. The interior of is denoted by and is defined as

Exercise 8.2.11.

(a) Show that is closed if and only if . Show that is open if and only if .

Proof:

is closed. Apparantly, . Since has all its limit points, so . So .

if is a limit point of , then . so is closed.

The second part.

is open. Apparantly, . If , then we can find . Then . So . Then .

If , we can find . So is open.

(b) Show that , and similarly that .

Proof:

First part.

  • .

, then and is not a limit point of . So we can find , i.e. . So .

  • .

. Then we can find . So is not a limit point of . Also , so . then . Then .

Second part.

  • .

, then . For any , , i.e. , then either , or is a limit point of . Either way, . Then .

  • .

in . If , then , so . So .

If is a limit point of . Then for all , . Then . So . Then . Then .

Exercise 8.2.12.

(a) Show

in an arbitrary metric space .

Proof:

Let . If , then .

If is a limit point of . Then it's a limit point of . We have proved in exercise 8.2.8 (a), that is a closed set. So . That means .

(b) To keep things from sounding too familiar, find an example of a specific metric space where

Proof:

Consider the discrete metric. . But .

Definition 8.2.9.

A set is dense in the metric space if . A subset of a metric space is nowhere-dense in if is empty.

Exercise 8.2.13.

If is a subset of a metric space , show that is nowhere-dense in if and only if is dense in .

Proof:

Assume is nowhere-dense in .

So , then .

From exercise 8.2.11, .

So we have is dense.

Assume is dense in X.

Then , so , then is empty. So is nowhere-dense in .

The Baire Category Theorem

Theorem 8.2.10.

Let be a complete metric space, and let be a countable collection of dense, open subsets of . Then, is not empty.

Proof:

Pick . Because is open, there exists an such that .

Exercise 8.2.14.

(a) Give the details for why we know there exists a point and an satisfying with contained in and

Proof:

Since is dense, then . Assume , and let be an arbitrary point in . Then is a limit point of , for every , .

But since and , so we can find a , .

We have a contradiction.

Since both are open, we have is open. So we can find .

Let . From exercise 8.2.12 (a)

(b) Proceed along this line and use the completeness of to produce a single point for every .

Proof: We produced a sequence of closed set

Consider the sequence . It's a Cauchy sequence, since . Then , so is a limit point of all , then for every .

Theorem 8.2.11 (Baire Category Theorem).

A complete metric space is not the union of a countable collection of nowhere-dense sets.

Exercise 8.2.15.

Complete the proof of the theorem.

Proof: Consider is a countable collection of nowhere-dense sets.

We consider

From exercise 8.2.11, . From exercise 8.2.13, since is nowhere dense in , then is dense in . That is is dense. Since it's also open, we can apply exercise 8.2.14., there exists for all . Then .

  • This result is called the Baire Category Theorem because it creates two categories of size for subsets in a metric space. A set of “first category” is one that can be written as a countable union of nowhere-dense sets. These are the small, intuitively thin subsets of a metric space. We now see that if our metric space is complete, then it is necessarily of “second category,” meaning it cannot be written as a countable union of nowhere-dense sets.

Theorem 8.2.12.

The set

is a set of first category in .

Proof: For each pair of natural numbers , define

The set contains any function in for which it is possible to find at least one point where the slopes through and points on the function nearby—within to be precise—are bounded by .

Exercise 8.2.16.

Show that if is differentiable at a point , then for some pair .

Proof:

If is differentiable at , then let . pick and , we can find such that if

So

Also let .

  • Fix and . The first order of business is to prove that is a closed set. To this end, let be a sequence in and assume . We need to show .
  • Because then for each there exists a point where

Exercise 8.2.17.

(a) The sequence does not necessarily converge, but explain why there exists a subsequence that is convergent. Let

Proof: This is because is bounded, so it must have convergent subsequence.

(b) Prove that .

Proof: Since , we can find , if , . Since , and is continuous, we can find , if , then . Then let . If

(c) Now finish the proof that is closed.

Proof:

Fix , such that . We can find , such that , then .

Then

Exercise 8.2.18.

A continuous function is called polygonal if its graph consists of a finite number of line segments.

(a) Show that there exists a polygonal function satisfying .

Proof: We have proved a similar result in exercise 6.7.2. So we just copy the proof here and replace with .

Since is continuous on , then is uniformly continuous on , so we can find , as long as , .

Then we can find

such that

Assume

(b) Show that if is any function in that is bounded by , then the function

satisfies .

Proof:

(c) Construct a polygonal function in that is bounded by and leads to the conclusion , where is defined as in (b). Explain how this completes the argument for Theorem 8.2.12.

Proof:

Since is polygonal, then assume can be divided to segments,

In each segment, . Choose an even integer , such that . Then construct a periodic triangle function with period of . This is the first period.

Then in each segment of , the slop is either or . In any case, the slop is bigger than .

So .

If , then , because for any , we can find , such that . So is an empty set. Also since , then is empty. So is nowhere dense. Together with Exercise 8.2.16., is the union a countable union of nowhere-dense sets.