Suppose that $f$ is a uniformly continuous function defined on $\mathbb Q \cap [0,1]$. Show that there is a unique continuous function $g$ defined on $[0,1]$ so that $$g(x)=f(x) \text{ for every } x \in \mathbb Q \cap [0,1].$$
Not sure what I am supposed to do here. I've seen answers where a sequence was defined to converge to a point $x \in \mathbb Q \cap [0,1]$ but I'm not understanding why we are doing this.
I know that continuity preserves converges of sequences and uniform continuity preserves Cauchy sequences.
Any help on getting started with this exercise?
If such a continuous $g$ exists, then, as you stated, it must preserve convergence of sequences. At this point we don't know the value of $g$ at irrational points $x$, but we do know it must satisfy $$f(x_n) = g(x_n) \to g(x)$$ for any sequence of rational points $x_n$ that converge to the irrational point $x$.
Thus, an obvious candidate for the definition of $g(x)$ for irrational $x$ is to find a sequence of rationals $x_n$ converging to $x$, and define $g(x)$ to be the limit of $f(x_n)$.
The only thing we have left to check is that the choice of sequence of rationals $x_n$ does not change the definition of $g(x)$. That is, we must show that if $x_n$ and $x'_n$ are two sequences of rationals that both converge to $x$, then $$\lim_{n \to \infty} f(x_n) =\lim_{n \to \infty} f(x'_n).$$
Why does each limit exist?
Why are the limits the same? (Hint: show that the sequences $x_n$ and $x'_n$ get arbitrarily close for large $n$, and then apply uniform continuity.)