TITLE: Is there an example of bounded non-measurable function?
QUESTION [5 upvotes]: My teacher's lecture note states bounded function defined on a measurable set is not necessarily measurable. Can anyone help give a concrete example? Thank you!

REPLY [6 votes]: Let $E\subset [0,1]$ be a non-measurable set. Then $$f(x)=\cases{1 & \text{ if $x\in E$}\\ 0 & \text{otherwise}}$$ is not measurable.

REPLY [3 votes]: Suppose that $S$ is a set that is not measurable.
Then $1_S$ is not measurable.