Proposition 21. Let $\varphi$ be the Cantor-Lebesgue function and define the function $\psi$ on $[0,1]$ by $$ \psi(x) = \varphi(x) + x \quad \text{for all $x \in [0,1]$}. $$ Then $\psi$ is a strictly increasing continuous function that maps $[0,1]$ onto $[0,2]$,
(i) maps the Cantor set $C$ onto a measurable set of positive measure and
(ii) maps a measurable set, a subset of the Cantor set, onto a nonmeasurable set.Proof. The function $\psi$ is continuous since it is the sum of two continuous functions and is strictly increasing since it is the sum of an increasing and a stricly increasing function. Moreover, since $\psi(0) = 0$ and $\psi(1) = 2$, $\psi([0,1]) = [0,2]$. For $\mathcal{O} = [0,1] {\sim} C$, we have the disjoint decomposition $$ [0,1] = \mathbf{C} \cup \mathcal{O} $$ which $\psi$ lifts to the disjoint decomposition \begin{equation} \tag{18} [0,2] = \psi(\mathcal{O}) \cup \psi(\mathbf{C}). \end{equation} A strictly increasing continuous function defined on an interval has a continuous inverse. Therefore $\psi(C)$ is closed and $\psi(\mathcal{O})$ is open, so both are measurable. We will show that $m(\psi(\mathcal{O})) = 1$ and therefore infer from $(18)$ that $m(\psi(C)) = 1$ and therefore prove (i).
(Original image here.)
This is from Real Analysis by Royden. I just have a small question in this proof. I don't really understand the red line. Does this mean that since $C$ and $O$ are closed and open, respectively, the function of each set should be closed and open as well? If it is, why is that? I think that it is something related to the inverse of this function, but I don't get it.
I will appreciate for any comment.