TITLE: Is it possible to divide the real line into two disjoint totally disconnected spaces of equal cardinality?
QUESTION [8 upvotes]: Is it explicitly possible to take $ \mathbb R$ and to divide it into two sets (say $\mathbb A$ and $\mathbb B$), which are : disjoint ($\mathbb A \cap \mathbb B = \emptyset$), totally disconnected (i.e. contain no open intervals) (EDIT:) and for all intervals $(a,b)$, $|\mathbb A \cap (a,b)| = |\mathbb B \cap (a,b)| = \mathfrak c$
I asked my measure theory professor, and he said he couldn't think of why such a construction would be impossible, but whenever I try to create such two sets I always end up with undefinable points, nor did an internet search reveal anything about this.

REPLY [3 votes]: Yes: 
$$A= \{ x=b.b_1b_2..b_n... | 0.b_2b_4b_6... \in \mathbb Q \} \\
B= \{ x=b.b_1b_2..b_n... | 0.b_2b_4b_6... \notin \mathbb Q \} $$
For any interval $(a,b)$ it is easy to construct onto functions from $A \cap(a,b) , B \cap(a,b) $ to $(0,1)$.
Indeed, pick some $a < \frac{k}{10^{2n}} <  \frac{k+1}{10^{2n}} < b$ and show that 
$$ x=b.b_1b_2..b_n... \to 0.b_{2n+1}b_{2n+3}...$$
is onto function from $A \cap(a,b)$ and $B \cap(a,b) $ to $(0,1)$.
This example has the roots in the example of a discontinuous function with the IVP that appears in Sierpiński (I think).