Let $X$ be a metric space with metric $d$. Define $d: X \times X \to \mathbb{R}$, show that $d$ is continuous.
I would like to show that the function is continuous the topology way (since it is a course on topology).
Let $(a,b)$ be a basic open set in $\mathbb{R}$, then $d^{-1}(a,b) = \{(x,y): a<d(x,y)<b\}$. Define $A= \bigcup_{x \in X} B_{b} (x)$, where $B_b (x) = \{y \in X| d(x,y)<b$}. Clearly $A$ is open. Now define $C = \{(x,y):d(x,y)>a \}.$ Essentially I hope that $A \cap C$ is open. But I am stuck in showing that $C$ is open.
Any help please? :)