Let (X, A, µ) be a measure space and assume that f : X → R. Show that f is measurable
iff the set {x ∈ X : f(x) < r} is measurable for every rational number r.
Assistant
To show that ( f ) is measurable if and only if the sets ( { x \in X : f(x) < r } ) are measurable for every rational number ( r ), we'll prove both implications.
(⇒) If ( f ) is measurable, then ( { x \in X : f(x) < r } ) is measurable for every rational number ( r ).
By definition, a function ( f: X \to \mathbb{R} ) is measurable if for every Borel set ( B \subseteq \mathbb{R} ), the preimage ( f^{-1}(B) ) is in ( A ). Since intervals of the form ( (-\infty, r) ) for ( r \in \mathbb{Q} ) are open (and thus Borel sets), their preimages under ( f ) are measurable:
[ { x \in X : f(x) < r } = f^{-1} \left( (-\infty, r) \right) \in A. ]
(⇐) If ( { x \in X : f(x) < r } \in A ) for every rational number ( r ), then ( f ) is measurable.
To prove that ( f ) is measurable, we need to show that for every open set ( O \subseteq \mathbb{R} ), the preimage ( f^{-1}(O) ) is measurable. Open sets in ( \mathbb{R} ) can be expressed as countable unions of open intervals with rational endpoints because the rational numbers are dense in ( \mathbb{R} ).
Let ( O \subseteq \mathbb{R} ) be an open set. Then ( O ) can be written as:
Since ( b_n ) and ( a_n ) are rational, by assumption, ( f^{-1}((-\infty, b_n)) ) and ( f^{-1}((-\infty, a_n]) ) are in ( A ). Complements and finite intersections of sets in ( A ) are also in ( A ), so ( f^{-1}((a_n, b_n)) \in A ).
Because countable unions of measurable sets are measurable, the preimage ( f^{-1}(O) ) is in ( A ):
[ f^{-1}(O) = \bigcup_{n=1}^\infty f^{-1}((a_n, b_n)) \in A. ]
Therefore, ( f ) is measurable.
Conclusion
Since we have shown both directions, we conclude that ( f ) is measurable if and only if ( { x \in X : f(x) < r } \in A ) for every rational number ( r ).
Answer:
Exactly when every set { x in X │ f(x) < r } is measurable for each rational number r, f is measurable.