I have come up with a counterexample to the following statement:
Let $f:[0,1] \rightarrow \Bbb R$ and suppose that for every $c\in \Bbb R$, the set $\{x \in [0,1]\ |\ f(x)=c\}$ is $\mathcal L^1$-measurable. Then $f$ is $\mathcal L^1$-measurable.
Notation.
- $\mathcal L^1$ is the unique Carathéodory-Hahn extension of the volume function on disjoint intervals, which I call the Lebesgue measure.
- A set $A\subseteq \Bbb R$ is $\mathcal L^1$-measurable iff $\forall B \subseteq \Bbb R: \mathcal L^1(B) = \mathcal L^1(B\cap A) + \mathcal L^1(B\setminus A)$.
- A function $f$ is $\mathcal L^1$-measurable iff $\forall U \subseteq \Bbb R$ open, $f^{-1}(U)$ is $\mathcal L^1$-measurable.
Counterexample.
Let $P$ the Vitali set (or any uncountable non-measurable subset of $[0,1]$ such that $[0,1] \setminus P$ is uncountable). Let $f: [0,1] \rightarrow \Bbb R$ such that $f|_{P}$ is a bijection between $P$ and $\left[0,{1 \over 2}\right)$, and $f|_{[0,1]\setminus P}$ is a bijection between $[0,1]\setminus P$ and $\left[{1 \over 2}, 1\right]$.
Since $f: [0,1] \rightarrow [0,1]$ is a bijection, every $c\in \Bbb R$ has as a preimage either $\varnothing$ or a singleton $\{f^{-1}(c)\}$. Since singletons are Borel, they are $\mathcal L^1$-measurable and thus $f$ satisfies the above condition.
However the open set $\left[0,{1 \over 2}\right)$ has a non-measurable preimage, which means that $f$ is not $\mathcal L^1$-measurable. $\square$
Question. I know that for two uncountable sets $A, B$ there must exist a bijection between the two by transitivity, since for both there exists a bijection to $2^\omega$. However I would like to know if my construction is well-defined, assuming AOC of course, and how one would go about proving the existence of such a function rigorously. Furthermore is my reasoning correct that every $f^{-1}(c)$ is $\mathcal L^1$-measurable?
Note. For full disclosure, this is a true or false exercise from a homework problem sheet. However, the solutions don't give any proof/counterexamples to these true or false problems, which is why I'm asking here.