Exercise: Find the interior of the following sets:
- \{\frac{1}{n}:n\in\mathbb{N}\}
- [0,3]\cup(3,5)
- \{x:|x|<2\}\cap\{x:|x|\geq 1\}
Proof.
- The interior is empty since for each point in the given set, it always has a neighborhood disjoint with the set.
- The given set is actually [0,5) whose interior is (0,5).
- Notice that it’s really the union of two intervals (-2,-1],[1,2), thus the interior is (-2,-1)\cup(1,2)
Exercise: Classify the following sets of real numbers as open, closed or neither:
- \mathbb{R}\backslash\{2^n:n\in\mathbb{Z}\}
- \mathbb{N}
- \{x\in\mathbb{R}\backslash\mathbb{Q}:0<x<1\}
- \{x\in\mathbb{Q}:0\leq x\leq 1\}
Proof. (Sketch)
- Neither. First, look at 0, an element in the given set. It has no neighborhood contained in the given set. Thus it’s not open. Second, look at 1, an element in the complement. Again, none of its neighborhood are contained in the complement. So the complement is not open, hence the given set is not closed.
- Closed. Try to prove its complement is open.
- Neither. Pick any irrational between 0 and 1, its neighborhood always has a rational. Thus it’s not open. On the other hand, pick any rational number between 0 and 1, its neighborhood always has an irrational. Thus its complement is not open.
- Neither. Similar to the reason above.
Exercise:
- Let S and T be subsets of some metric space (X,d). Show \overline{(S\cap T)}\subset \overline{S}\cap \overline{T}.
- Let \{A_i\}_{i=1}^{\infty} be subsets of a metric space X. If B_n=\bigcup_{i=1}^{n}A_i, prove that \bigcup_{i=1}^n\overline{A_i}=\overline{B_n}.
- Let \{A_i\}_{i=1}^{\infty} be subsets of a metric space X. If B=\bigcup_{i=1}^{n}A_i, prove that \bigcup_{i=1}^n\overline{A_i}\subset\overline{B}.
- Can the inclusions in a) and c) be proper? If so, give an example.
Proof.
- As \overline{S} is closed, and S\cap T\subset S\subset\overline{S}, we have \overline{S\cap T}\subset\overline{S} as \overline{S\cap T} is the smallest closed set that contains S\cap T. Similarly, \overline{S\cap T}\subset\overline{T}. So \overline{S\cap T}\subset\overline{S}\cap\overline{T}.
- As A_i\subset B_n, \overline{A_i}\subset\overline{B_n}. Thus \bigcup_{i=1}^n\overline{A_i}\subset\overline{B_n}. On the other hand, we have B_n=\bigcup_{i=1}^n{A_i}\subset\bigcup_{i=1}^n\overline{A_i}, and \bigcup_{i=1}^n\overline{A_i} is closed as it’s the union of finitely many closed sets. Thus \overline{B_n}\subset\bigcup_{i=1}^n\overline{A_i}.
- Same proof as one direction of the previous.
- For a), take S=(-1,0), T=(0,1). For c), take A_i=\{\frac{1}{i}\}.
Exercise: Prove or give a counterexample: If E is closed and contains so isolated points, then E is perfect.
Proof. No isolated points means that all points are limit points. Thus by definition, it’s perfect.
Exercise: Determine whether or not each of the following functions defines a metric on \mathbb{R}.
- d(x,y)=\log\left(\frac{x}{y}\right)
- d(x,y)=1-e^{|x-y|}
- d(x,y)=||x|-|y||
Proof.
- Not a metric. It’s even not well-defined since the domain of log function contains only positive numbers.
- Not a metric, since it can take negative values.
- Not a metric since d(-1,1)=0
Exercise: Let X be an infinite set. For p,q\in X, define
d(x,y)=\begin{cases}1&\text{if }p\neq q\\0&\text{if }p=q\end{cases}Prove that this is a metric. Which subsets of the resulting metric space are open? Which are closed?
Proof. (Sketch) Easy to verify it’s a metric. Consider any subset, say A, of X. For any x in A, think of its neighborhood with radius 1/2, it really is the singleton \{x\} which is included in A. Thus we’ve showed that A is open. On the other hand, the complement of arbitrary set is also closed. So in conclusion, every subset is both open and closed. Remark: this kind of topology is called discrete topology.