Can anyone verify this proof for me ? Thanks!
Suppose that $\Omega$ is a complete metric space and that $f: (D,d) \to (\Omega,p)$ is uniformly continuous, where $D$ is dense in $(X,d)$. Show that there is a uniformly continuous function $g: X \to \Omega$ with $g(x) = f(x)$, $\forall x \in D$.
$\\ \\ \textbf{Proof:} \\ \\$
By definition, a set D is dense if $\overline{D} = X$. Let $x \in \overline{D} = X$, then by Proposition
$\forall \epsilon > 0, B(x,\epsilon)\cap D \neq \emptyset$
Consider the sequence $x_n \in B(x,\frac{1}{n})\cap D$. This sequence is contained in $D$ and non-empty because $D$ is dense in $X$. Also this sequence is Cauchy, because $d(x_n,x_m) < \frac{1}{n} \to 0$. Since f is uniformly continuous $\{f(x_n)\}$ is also Cauchy in $\Omega$. By Continuity we have that
${x_n} \to x \Rightarrow f(x_n) \to f(x) = y_x$
By the completeness of $\Omega$, we have that $y_x \in \Omega$. Given $x \in X$, define $g: X \to \Omega$ as $g(x) = y_x$. By uniqueness of limits, this function is well-defined. For $x \in D$, define $g|_D = f$ and consider the sequence $x_n = x$ for all $n$. Clearly, $x_n \to x$ and hence
$g(x) = \lim_{n\to\infty}f(x_n) = \lim_{n\to\infty}f(x) = f(x), \forall x \in D.$
Now we must show that $g$ is uniformly continuous. Let $\epsilon > 0$, then $\exists \delta > 0$ such that
$\forall x,y \in D, d(x,y) < \delta \Rightarrow p(f(x),f(y)) < \epsilon.$
because $f$ is uniformly continuous on $D$. Now pick $x, x^0 \in X$ such that $d(x,x^0) < \frac{\delta}{3}$. Using the previous construction we can find $\{x_n\}$ and $\{x_n^0\}$ in $D$ such that $x_n \to x$ and $x_n^0 \to x^0$.
By the convergence of the sequences $\{x_n\}$ and $\{x_n^0\}$ we can pick $N_1 \in \mathbb{N}$ such that for all $n \geq N_1$ $d(x_n,x) < \frac{\delta}{3}$ and $d(x_n^0,x^0) < \frac{\delta}{3}$ . Then by triangle inequality
$d(x_n,x_n^0) \leq d(x_n,x) + d(x,x_n^0) + d(x_n^0,x^0) < \frac{\delta}{3} + \frac{\delta}{3} + \frac{\delta}{3} = \delta.$
By the definition of $g$
$f(x_n) \to g(x) \in X \mbox{ and } f(x_n^0) \to g(x^0) \in X.$
Then there exists $N_2 \in \mathbb{N}$ such that for all $n\geq N_2$
$p(f(x_n),g(x)) < \epsilon \mbox{ and } p(f(x_n^0),g(x^0)) < \epsilon.$
Now fix $N_0 > \mbox{max}\{N_1,N_2\}$, then applying triangle inequality twice
$\begin{align*} p(g(x),g(x_0)) &\leq p(g(x),g(x_0^n)) + p(g(x_0^n),g(x)) \\ &\leq p(g(x),g(x_0^n)) + p(g(x_0^n),g(x_n)) + p(g(x_n),g(x)) \\ &= p(g(x),f(x_0^n)) + p(f(x_0^n),f(x_n)) + p(f(x_n),g(x)) \\ & < \epsilon + \epsilon + \epsilon = 3\epsilon. \end{align*}$
Hence, $g$ is uniformly continuous.