Determine if $f(x)=1_{\mathbb{Q}}-1_{\mathbb{R}\setminus \mathbb{Q}}$ is Borel

62 Views Asked by At

I want to determine if the following function is Borel: $$f(x)=\begin{cases} 1, \, x\in \mathbb Q\\ -1, \, x \notin \mathbb Q \end{cases}$$

My idea is that: $$f^{1}(1)=[Q_1] \bigcup [Q_2] \bigcup ... [Q_n]$$ and $$f^{-1}(-1)=(a,b) \bigcup (b,c) \bigcup ... (d,e)$$ for the irrationals

However I am not sure about the last part because I need to mathematically show that these are only the irrationals

Any hint would be appreciated

2

There are 2 best solutions below

1
On BEST ANSWER

That last part is not OK, because no matter what $a,b$ are, there is always some rational in the interval (so long as the interval is not empty)

However, you can more simply write $$f^{-1}(-1) = \left(f^{-1}(1)\right)^c.$$

0
On

$f=1_{\Bbb{Q}}+(-1)1_{\Bbb{Q}^c}$

Note the $f$ is a sum of Borel measurable functions because $\Bbb{Q}$ is a countable union of closed sets and $\Bbb{Q}^c$ is an countable intersection of open sets.

So both sets are Borel,and thus their indicator functions are Borel measurable.