How to show that this sequence split?
I'm trying to construct a map $\phi: \mathbb{R}/\mathbb{Q} \to \mathbb{R}$ by $\overline{r} + \mathbb{Q} \mapsto r$. Let the quotient map be $\pi$ and $\pi \circ \phi(\overline{r}) = \pi(r) = \overline{r}$ is the identity on $\mathbb{R}/\mathbb{Q}$. Is this correct?
Is there a theoretical way of showing this? I want to use some projective module or divisible or injective module theory but it is not clear what ring we are considering.