Most topology courses spend substantial time developing metric topology, but I have the sense that you have learned or will soon learn this flavor of topology in analysis. Briefly, a metric space is a set \(X\) together with a metric \(d\colon X\times X\to \mathbb R_{\ge 0}\) satisfying the following properties:
- identity of indiscernibles
\(d(x,y)=0\) if and only if
\(x=y\text{,}\)
- symmetry
\(d(x,y)=d(y,x)\) for all
\(x,y\in X\text{,}\)
- triangle inequality
\(d(x,z)\le d(x,y)+d(y,z)\) for all
\(x,y,z\in X\text{.}\)
A metric space \((X,d)\) carries a canonical topology generated by a basis of open balls
\begin{equation*}
\mathscr B := \{B(x,r)\mid x\in X, r\gt 0\}
\end{equation*}
where \(B(x,r):= \{y\in X\mid d(x,y)\lt r\}\text{.}\)
We now demonstrate that the topology associated with a metric separates points. Let \(x,y\) be distinct points of \(X\text{.}\) By identity of indiscernibles, \(d(x,y)=R\gt 0\text{.}\) Set \(U = B(x,R/2),V=B(y,R/2)\) and suppose for contradiction that \(z\in U\cap V\text{.}\) Then, by the triangle inequality,
\begin{equation*}
d(x,y)\le d(x,z)+d(z,y)\lt R/2+R/2=R,
\end{equation*}
contradicting \(d(x,y)=R\text{,}\) so in fact \(U\cap V=\varnothing\text{.}\) These sets are open neighborhoods of \(x,y\text{,}\) respectively, in the metric topology, so the metric topology on \(X\) separates points.