I am trying to show that a set $E$ is measurable iff its characteristic function is measurable. I saw a proof online that someone wrote as a homework solution, however it doesn't make sense to me. They wrote:
Suppose $E$ is a measurable set in a measure space $X$. If $\alpha \leq 0$, then $\{x:\chi_E(x) < \alpha\}=\varnothing$, a measurable set. If $\alpha >1$ then $\{x:\chi_E(x)<\alpha\}=X$, a measurable set. Finally, if $0<\alpha \leq 1$, then $\{x:\chi_E(x)<\alpha\}=X-E$, a measurable set. We conclude that $\chi_E$ is a measurable function. Conversely, suppose that $\chi_E$ is a measurable function. Then $E=X-\{x:\chi_E(x)<1/2\}$ is a measurable set.
There is so much I do not understand about this proof.
1) I dont understand why when $0<\alpha \leq 1$ the set is equal to $X-E$, since the characteristic function will never take on values that are strictly greater than 0 and less than 1, will it?
2) I dont understand why in the first direction showing that $\{x:\chi_E(x)<\alpha\}$= a measurable set shows that $\chi_E$ is measurable.
3) I dont understand the converse direction.
Can someone either help me understand or suggest a more understandable proof? The way I thought I would need to prove it was by using what we know about measurable sets (using that a set, $E$, is measurable if $\mu^*(A)=\mu^*(A\cap E)+\mu^*(A-E)$ for all $A\in X$).
1) If $0 < \alpha \leq 1$, then $\chi_{E}(x) < \alpha$ (note the strict inequality here) iff $\chi_E(x) = 0$.
2) This is just the definition of measurability for functions.
3) As above, $\chi_E(x) < 1/2$ iff $\chi_E(x)=0$. Therefore, $\{x: \chi_E(x) < 1/2 \} = \{x: \chi_E(x)=0 \} = X-E$ and $E = X - (X - E)$. The set $\{x: \chi_E(x) < 1/2 \}$ is measurable by definition, and therefore $X - E$ is measurable. Hence, $E$ is measurable because (countable) intersections and complements of measurable sets are measurable.