Let $X$ be a metric space with metric $d$.
- Show that $d:X\times X\to \mathbb{R}$ is continuous.
- Let $X^\prime$ denote a space with the same underlying set as $X$. Show that if $d:X^\prime\times X^\prime \to \mathbb{R}$ is continuous then the topology of $X^\prime$ is finer than the topology of $X$.
My attempt : for the first one, we take some interval $(a,b)\subset \mathbb{R}$. We have to show $A=d^{-1}\left((a,b)\right)$ is open. So, choose any $(x,y)\in A$. We need to show that $(x,y)\in U\times V\subseteq d^{-1}((a,b))$ where $U,V$ are open in $X$. Here is where I am stuck. I also tried to use the usual $\epsilon-\delta$ idea but for that we need to have $X\times X$ as well as $\mathbb R$ as a metric space. Even if the former is possible using the uniform metric, we cannot do that on $\Bbb R$.
For the second one, we want to find a basis of $X^\prime$'s topology, say $\mathcal T$ with elements $\mathcal{B}_\alpha$ for $\alpha\in J$. Then we take any basis element $B_d(x,\epsilon)$ of $X$. Let $y\in B_d(x,\epsilon)$. We want $y\in \mathcal{B}_\alpha\subseteq B_d(x,\epsilon)$. But how to proceed after that? Any help will be appreciated. Thanks a lot.