Questions to get a better grasp of basic topology:
A metric space is an ordered pair $(M,d)$ where $M$ is a set and $d$ is a metric on $M$, i.e., a function
$$ d \colon M \times M \to \mathbb{R} $$
such that for any $x, y, z \in M$, the following holds:
- $d(x,y) = 0 \Leftrightarrow x = y$ (identity of indiscernibles)
- $d(x,y) = d(y,x) $ (symmetry)
- $d(x,z) \le d(x,y) + d(y, z)$ (subadditivity or triangle inequality)
Now let $M = \{1,2,3\}$ and $d(x, y) = |x - y|$. I claim that all three properties are satisfied (feel free to check).
A metric space is not a topological space. However, every metric space gives rise to a topological space in a rather natural way. This is the well known construction that takes a metric space $X$ and constructs the topology on $X$ where a set $U$ is open precisely when for every $x \in U$ there exists some $e>0$ such that the open ball $B_e(x)$ is contained in $U$.
Let $U = \{1,2\}$ with $1,2 \in X$. Is $U$ open? For $x=1$ and $e = 1$ it holds that $B_1(2) \subseteq U$, given the following definition:
$$ B_r(x) := \{y \in M : d(x,y) < r\} $$ via Wikipedia: Metric space
because $\{\} \subseteq \{1,2\}$. For $x=2$ and $e=1$, the same holds. $U=\{1,2\}$ is one example. What are other open sets? I claim $U=\{1\}$, $U=\{1,3\}$ and actually any element of $\mathcal P(X)$.
Formally, let $X$ be a set and let $τ$ be a family of subsets of $X$. Then $τ$ is called a topology on X if:
- Both the empty set and $X$ are elements of $τ$
- Any union of elements of $τ$ is an element of $τ$
- Any intersection of finitely many elements of $τ$ is an element of $τ$
If $τ$ is a topology on $X$, then the pair ($X$, $τ$) is called a topological space.
Let $X = \{1,2,3\}$ and $τ = \{\{\}, \{1,2,3\}, \{1\}, \{1,2\}, \{1,3\}\}$. I claim that all three properties are satisfied (feel free to check). So $(X, τ)$ is a topological space.
Questions:
- Is $(M, d)$ a metric space (here)?
- Is $U$ an open set for every $U \in \mathcal P(X)$ (here)?
- Is $(X, τ)$ a topological space (here)?
- Assuming my construction was right, the answer is yes. Otherwise, please give me an explicit example of a metric space over integers with some induced topology.