0

Can exist a continuous function $f:[0, 1]\rightarrow \mathbb{R}$ so that $f(x)\in\mathbb{Q}$ if $x\in\mathbb{I\cap [0, 1]}$ and $f(x)\in\mathbb{I}$ if $x\in\mathbb{Q\cap [0, 1]}$? Why yes? why not?

1 Answers1

0

HINT: I assume that $\Bbb I$ stands for the set of irrational numbers. (In my experience $\Bbb P$ is more common.) For each $q\in\Bbb Q$ let $F(q)=\{x\in[0,1]:f(x)=q\}$; then $\Bbb I\cap[0,1]=\bigcup_{q\in\Bbb Q}F(q)$. Apply the Baire category theorem to conclude that there are $a,b\in\Bbb I\cap[0,1]$ and a $q\in\Bbb Q$ such that $a<b$ and $\Bbb I\cap[a,b]\subseteq F(q)$. Then use continuity to conclude that $f$ is constant on $[a,b]$ and so get a contradiction.

Brian M. Scott
  • 631,399