[Math] Why can’t there be a monotone function with domain $\mathbb{R}$ and range $\mathbb{R} \setminus \mathbb{Q}$

real-analysis

Why can't there be an increasing function with domain $\mathbb{R}$ and range $\mathbb{R} \setminus \mathbb{Q}$?

Edit: By range I mean the image of the function's domain, i.e. the function admits every irrational value.

I feel like there should be a bijection between every irrational value it takes and the number of discontinuities it has, and I know monotone functions have at most countably many discontinuities, so this would be a contradiction.

But I don't know how to show it.

Best Answer

The basic reason that there can be no monotone mapping of $\mathbb{R}$ onto $\mathbb{R}\setminus\mathbb{Q}$ is the completeness of the linear order on $\mathbb{R}$.

Suppose that $f:\mathbb{R}\to\mathbb{R}\setminus\mathbb{Q}$ is an increasing surjection. Let $L=\{x\in\mathbb{R}:f(x)<0\}$; clearly $L$ is bounded above (e.g., by the real number $y$ such that $f(y)=\sqrt2$), so $L$ has a least upper bound $u$. Now what can $f(u)$ be?

  • If $u\notin L$, then $f(u)>0$, and $f(x)\ge f(u) > 0$ for every $x\ge u$, so $f[\mathbb{R}]\cap(0,f(u))=\varnothing$, and $f$ isn’t a surjection.

  • If $u\in L$, then $f(u)<0$, but $f(x)>0$ for every $x>u$, so $f[\mathbb{R}]\cap (f(u),0)=\varnothing$, and again $f$ is not a surjection.

In either case we have a contradiction, so $f$ cannot be a surjection.

If $f$ were a decreasing surjection, $-f$ would be an increasing surjection, so a decreasing function from $\mathbb{R}$ to $\mathbb{R}\setminus\mathbb{Q}$ can’t be a surjection either.