As indicted in the title, i'm trying to prove that $\operatorname{Char}_{E}(x)$ is measurable iff $E$ is measurable, where $\operatorname{Char}_{E}(x)$ is the characteristic function on $E$, i.e. $\operatorname{Char}_{E}(x)$={$0$ if $x \notin E$ and $1$ if $x \in E$}.
So, let $\operatorname{Char}_{E}(x)$: $\mathbb{R} \rightarrow \mathbb{R}$. Let's assume that $\operatorname{Char}_{E}(x)$ is measurable, and therefore given any open set $U \subset \mathbb{R}$, we have $f^{-1}(U)$ is measurable. I need to use this to prove that E is measurable.
I'm quite new to measure theory, and so really i'm just brainstorming. But I want to do something like $\bigcap_{n=1}^{\infty}\left(1-1/n,1+1/n\right)$, an use the fact that the set of measurable functions $M$ is a $\sigma$-algebra to get a neighborhood of 1 such that it's preimage is $E$, however the neighborhood i've constructed through an infinite countable intersection will just be the set {$1$} and so will not be open. Need some serious help here!
Now I will assume that $E$ is measurable, and I want to show that given an arbitrary open set $U \subset \mathbb{R}$, $f^{-1}(U)$ is measurable in $\mathbb{R}$.
I'm just as lost trying to prove this converse, any insight is appreciated!!
Assume the function is measurable. We know that the set $$ \{x\in X |\mathbb{1}_E(x)>a \} $$ is measurable for any $a$, so that for $a=0$ we get that $E$ is measurable. Now if $E$ is measurable, then $$ \{x\in X |\mathbb{1}_E(x)>a \} $$ is clearly measurable for any $a$