[step:Record the two elementary consequences of uniform continuity]We first note two sequence facts that will be used for the maps $f:X\to Y$ and $f^{-1}:Y\to X$.
Let $(M,d_M)$ and $(N,d_N)$ be metric spaces, and let $g:M\to N$ be uniformly continuous.
If $(a_n)_{n=1}^{\infty}$ is a Cauchy sequence in $M$, then $(g(a_n))_{n=1}^{\infty}$ is a Cauchy sequence in $N$. Indeed, let $\varepsilon>0$. By uniform continuity of $g$, there exists $\delta>0$ such that for all $u,v\in M$,
\begin{align*}
d_M(u,v)<\delta \implies d_N(g(u),g(v))<\varepsilon.
\end{align*}
Since $(a_n)_{n=1}^{\infty}$ is Cauchy in $M$, there exists $N_0\in\mathbb N$ such that for all $m,n\ge N_0$,
\begin{align*}
d_M(a_m,a_n)<\delta.
\end{align*}
Therefore, for all $m,n\ge N_0$,
\begin{align*}
d_N(g(a_m),g(a_n))<\varepsilon,
\end{align*}
so $(g(a_n))_{n=1}^{\infty}$ is Cauchy in $N$.
If $a_n\to a$ in $M$, then $g(a_n)\to g(a)$ in $N$. Indeed, let $\varepsilon>0$ and choose $\delta>0$ from uniform continuity as above. Since $a_n\to a$, there exists $N_1\in\mathbb N$ such that for all $n\ge N_1$,
\begin{align*}
d_M(a_n,a)<\delta.
\end{align*}
Hence, for all $n\ge N_1$,
\begin{align*}
d_N(g(a_n),g(a))<\varepsilon,
\end{align*}
which proves $g(a_n)\to g(a)$.[/step]