2

How can I prove that there is no continuous function $f:\mathbb{R}\to \mathbb{R}$ satisfying $f(\mathbb{Q}) \subset \mathbb{R}\backslash \mathbb{Q}$ and $f(\mathbb{R}\backslash \mathbb{Q} ) \subset \mathbb{Q}$?

Filburt
  • 2,074
  • The answers to this question are an impenetrable mess because the first version was flawed. You can't tell which version of the question is being answered! How can we fix this?? – TonyK Jan 29 '16 at 17:20
  • Sorry, man. =/ Arpit Kansal answered me. – Filburt Jan 29 '16 at 17:24

3 Answers3

8

Hint: $f(\Bbb Q)$ is countable.

New hint given the edit: $f(\Bbb R)$ must be connected, and hence an interval, and hence must contain uncountably many irrationals.

Wojowu
  • 27,526
2

Hint: Since $\bf R$ is connected and $f$ is non constant hence$f(\bf R)$ is connected and hence uncountable.

Arpit Kansal
  • 10,489
0

HINT: Use the fact that

Between any two rational numbers, we have infinite irrational numbers

and similarly,

Between any two irrational numbers, we have infinite rational numbers.