Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Prove the function $f:\mathbb{R}\rightarrow \mathbb{R} $ defined by $$f(x)= \begin{cases} 1/p, &\text{if $x=p/q$ is rational}\\ 0, &\text{if x is irrational}\\ \end{cases}$$ is Borel measurable.

I began trying to show {$f\geq a$} is a Borel set. So I considered different values for a to find the x's, and unioned all the possible x values, if that makes any sense. But then I got all of $\mathbb{R}$.

I have been doing this for a long time and I am now very confused.

share|cite|improve this question
up vote 4 down vote accepted

If $a \le 0$ then $\{f \ge a\} = \mathbb{R}$ which is Borel. If $a > 0$ then $\{f \ge a\} \subset \{f > 0\} = \mathbb{Q}$. But every subset of $\mathbb{Q}$ is countable and hence Borel.

share|cite|improve this answer
Great, thank you! – Ashley Sep 21 '12 at 2:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.