7

Can anybody help me with this problem?

Justify whether the following statement is true or false:

Every continuous function on $\Bbb Q\cap [0,1]$ can be extended to a continuous function on $[0,1]$.

Any help will be appreciated.

Ester
  • 3,057
  • 2
  • 23
  • 34

2 Answers2

13

See what happens if you take the function

$$f:\Bbb Q\cap[0,1]:\to[0,1]:x\mapsto\begin{cases} 1,&\text{if }x>\frac{\sqrt2}2\\\\ 0,&\text{if }x<\frac{\sqrt2}2\;. \end{cases}$$

Brian M. Scott
  • 616,228
3

To add to Brian's answer, if $(X,d)$ is a metric space and $D$ is dense in $X$ and $f : D \rightarrow Y$ is a uniformly continuous function where $Y$ is a complete, metric space, then $f$ has a unique extension to $X$ and the extended function is also uniformly continuous.

In particular, in your case, every uniformly continuous function can be extended to a uniformly continuous function on the reals.

Vishal Gupta
  • 6,946