where the mel guy
reigns supreme

Topology & Continuity I (Open sets) Friday, September 13, 2024

A quick explanation of topology (per my Professor, Philip Tosteson) is that topology is “geometry made flexible; geometry without rigid notions of distance”. Immediately, you may be confused why this is relevant as we are considering metric spaces–spaces with (literally) a notion of distance. So why are we thinking about this? I have three reasons.

  1. Topology is the overarching branch of mathematics which contains the contents of this post; we are simply studying a very special case of a topology.
  2. Topology is a powerful language in which we can express mathematics. Sometimes, things we prove in analysis using metrics is actually a consequence of a more general topological idea or theorem.
  3. Metric spaces are a bit geometric with their distances and whatnot, but they are also quite flexible! We will witness this idea a bit with equivalent metrics and the idea of homeomorphic spaces (essentially, when two spaces “look the same”).

The foundation of topology: open sets

Open sets are going to be the basis of how we understand the “shape” of our space. Indeed, all other topological/geometric/shape-seeming properties will be (in some form) encoded by these objects.

Balls and their relation to openness

Though open sets are a very powerful idea, they are not too complicated (in definition)!

First, we need a preliminary definition. Indeed: in a metric space $ (X,d) $, the open ball around a point $ p \in X $ of radius $ r \in \mathbb{R}^+ $ is defined to be the set $ \left \{ x \in X : d(p,x) < r \right \} $ and is denoted $ B(p,r) $.

Now, an open set $ U \subseteq X $ is a set such that for all $ p \in U $, there exists an open ball around $ p $ that is completely contained in $ U $. In other words, $ U $ is open if for all $ p \in U $, there exists $ r_p > 0 $ such that $ B(p,r_p) \subseteq U $.1

Now you might be thinking: is an open ball open? It is! If you want to prove it on your own, remember that pictures, although not proofs, are helpful for intuition and for developing your argument.

In a metric space $ (X,d) $, every open ball is open.

Hint

Suppose we are working with $ B(p,r) $ for $ p \in X $ and $ r > 0 $. Consider some point $ q \in B(p,r) $. What radius $ s $ would fit the ball $ B(q,s) $ in the original ball $ B(p,r) $? (cf. the diagram below)


Solution

Suppose $ p \in X $, $ r > 0 $ and consider $ B(p,r) $. To show that $ B(p,r) $ is open, it suffices to show that for any point $ q \in B(p,r) $ there exists some $ s > 0 $ such that $ B(q,s) \subseteq B(p,r) $.

To this end, consider $$\begin{equation} s = r-d(p,q) \end{equation}$$ Now consider some point $ \ell \in B(q,s) $: Using the triangle inequality, we get that $$\begin{equation} d(\ell,p) \leq d(\ell,q) + d(q,p) < s + d(q,p) = r - d(p,q) + d(q,p) = r. \end{equation}$$ Thus $ d(\ell,p) < r $ and $ \ell \in B(p,r) $. Thus $ B(q,s) \subseteq B(p,r) $ and $ B(p,r) $ is open.

Now we can freely discuss open sets.

Properties of open sets

We immediately state some neat properties of open sets.

In a metric space $ (X,d) $:

  1. $ X $ and $ \varnothing $ are open.
  2. Finite intersection of open sets are open.
  3. Arbitrary unions of open sets are open.

Statement #1

Solution

Vacuously, $ \varnothing $ is open as it contains no points. Moreover, $ X $ is open as any open ball $ B(p,r) $ for $ p \in X $, $ r > 0 $ is, by definition, contained in $ X $.

Statement #2.

Solution

Suppose $ U_1,\ldots,U_n $ are a collection of open subsets of $ X $. Then consider $\bigcap_{i=1}^{n}U_i $. If $ p \in U_i $, there exists some radius $ r_i > 0 $ such that $ B(p,r_i) \subseteq U_i $. Then, for each $ p $, we can define an $ r_p $ by taking the minimum of the $ r_i $. (This minimum is still positive as we are taking the minimum of a finite set.) Hence, for each $ p \in\bigcap_{i=1}^{n} U_i $, $ B(p,r_p) \subseteq\bigcap_{i=1}^{n}U_i $ and their intersection is open.

Statement #3.

Solution

Suppose $ \left \{ U_\alpha \right \}{\alpha \in A} $ is a collection of open sets (where $ A $ is some indexing set). Then suppose $ p \in\bigcup{\alpha \in A}^{}U_\alpha $. Then, by definition of union, there exists some $ \beta \in A $ such that $ p \in U_\beta $. Thus there exists a radius $ r > 0 $ such that $ B(p,r) \subseteq U_\beta $. Hence $ B(p,r) \subseteq\bigcup_{\alpha \in A}^{} U_\alpha $ as desired.


One thing worth noting is that I didn’t say “arbitrary intersections of open sets are open”. I didn’t say it, because, well, it’s not true!; but that’s not particularly helpful… If we consider a metric space $ \mathbb{R} $, $\bigcap_{n=1}^{\infty}(-n^{-1}, n^{-1}) = \left \{ 0 \right \} $ which is not open even though $ (-n^{-1},n^{-1}) $ is open for all $ n $.

Our first property, that the whole space and the empty set are open, gives us some potentially weird properties. We look into them now.

Openness is relative

Consider the space the metric space $ (X,d) $ where $ X = \mathbb{R} $ and $ d $ is the Euclidean metric. Then, by our definition of openness, we know that $ [0,1] $ is not open. But, if we consider $ [0,1] $ as our space and (a restriction of) the Euclidean metric as our metric, by our previous proposition we have that $ [0,1] $ is open?

This is no mistake! Openness does depend on the space you’re in–it depends on where your set lives.

Think about it like this: if your set $ Y $ lives in $ X $, then, if $ Y $ is not open, it has a point that is not interior (the left graphic), but if you live in $ Y $ (meaning you are your universe), you can’t leave $ Y $! There’s nothing outside of it! Hence your ball is always contained.


Open balls and convergence of sequences

We learned in the last post that a sequence $ (p_n) $ converges to $ p $ if for all $ \varepsilon > 0 $ there exists $ N $ such that $ d(p,p_n) < \varepsilon $ if $ n \geq N $. But, since we know about open balls now, we can rephrase this definition using open balls! We put this as a proposition (which I will not prove).

Let $ (X,d) $ be a metric space and let $ (p_n) \subseteq X $ and $ p \in X $. Then: $ p_n \to p $ if and only if for all $ \varepsilon > 0 $ there exists $ N $ such that $ p_n \in B(p,\varepsilon) $ whenever $ n \geq N $.

Closed sets and their relation to openness

We say a set $ C \subseteq X $ is closed if: if $ (p_n) \subseteq C $ is a sequence converging to $ p \in X $, then $ p \in C $. How does this relate to openness however? Well, with the definition of openness in mind, we can show that $ C $ is closed if and only if $ X \setminus C $ is open! We state this as a result and leave an associated proof.

In a metric space $ (X,d) $, $ C \subseteq X $ is closed if and only if $ X \setminus C $ is open.

Solution

($\Rightarrow$) Suppose towards the contraposition that $ X \setminus C $ is not open. Then there exists an element $ p \in X \setminus C $ such that for all $ \varepsilon > 0 $, there $ B(p,\varepsilon) \cap C \neq \varnothing $. (i.e., $ B(p,\varepsilon) $ is not entirely contained in $ X \setminus C $.) Using this we can now define a sequence $ (p_n) $. For each $ n \in \mathbb{Z}^+ $, define $ p_n $ to be a point contained in $ B(p,1/n) \cap C $. Then, by our alternate definition of convergence using open balls, we have that $ (p_n) \subseteq C $ and $ p_n \to p $. However, $ p \not \in C $ by hypothesis. Thus $ C $ is not closed.



($\Leftarrow$) Suppose towards the contraposition that $ C $ is not closed. Then there is a sequence $ (q_n) \subseteq C $ such that $ q_n \to q \not \in C $ (i.e., $ q \in X \setminus C $). Then for all $ \varepsilon > 0 $, there is some $ n_\varepsilon $ such that $ q_{n_\varepsilon} \in B(q,\varepsilon) $. Thus $ B(q,\varepsilon) $ is not contained in $ X \setminus C $ for any $ \varepsilon > 0 $ and $ X \setminus C $ is not open.

Then recalling our properties of open sets and using our above proposition, we get the following:

In a metric space $ (X,d) $:

  1. $ X $ and $ \varnothing $ are closed.
  2. Finite unions of closed sets are closed.
  3. Arbitrary intersections of closed sets are closed.

Closed sets and convergence of sequences

Why do they call a closed set closed? The door to leave is closed! This odd remark is exemplified by the following theorem.

In a metric space $ (X,d) $, a subset $ C $ of $ X $ is closed if and only if every convergent sequence in $ C $ converges in $ C $.

Solution

($\Rightarrow$) Suppose that $ C $ is closed, i.e., $ X \setminus C $ is open. Let $ (p_n) \subseteq C $ be a sequence converging to $ p \in X $. We aim to show that $ p \in C $. Suppose towards a contradiction that $ p \not \in C $, i.e., $ p \in X \setminus C $. Since $ X \setminus C $ is open, there exists a radius $ r > 0 $ such that $ B(p,r) \subseteq X \setminus C $. However, since $ p_n \to p $, there exists a radius $ N $ such that $ p_n \in B(p,r) $ whenever $ n \geq N $. But then $ p_N \in B(p,r) $ so that $ p_N \in X \setminus C $, which is absurd (!) as $ p_N \in C $.

($\Leftarrow$) Suppose that every convergent sequence in $ C $ converges in $ C $. Let $ p \in X \setminus C $. Suppose towards the contraposition that $ C $ is not closed. Hence, $ X \setminus C $ is not open. Then there exists a point $ p \in X \setminus C $ such that for all $ r > 0 $, $ B(p,r) $ is not contained in $ X \setminus C $. In other words, there exists a point $ q \in C \cap B(p,r) $ for any $ r > 0 $.

Then for each $ n \in \mathbb{Z}^+ $, choose some point $ q_n \in C \cap B(p,n^{-1}) $. Then $ q_n \to p $ but $ p \not \in C $ by hypothesis.

Aside: An interesting observation

If we look at our properties of open and closed sets, we get that in a metric space $ (X,d) $, $ X $ and $ \varnothing $ are both open AND closed, or clopen . We will give more examples of clopen sets soon.


  1. The dependence of the radius on the point is quite important. In this case, there is not much to read into, but it is important to know when values depend on other values in analysis. Later we’ll get more into this with ideas like pointwise and uniform continuity, among other things. ↩︎