Let $X,Y$ be two real random variables such that $X+Y$ is independent from $X$ and also independent from $Y$. Show that $X+Y$ is deterministic
If $X$ and $Y$ have a variance, then we can compute : $$\mathbb E[(X+Y)^2] = \mathbb E[ X (X+Y)] + \mathbb E[Y(X+Y)] = \mathbb E[ X ]\mathbb E[X+Y] + \mathbb E[Y]\mathbb E[X+Y] = (\mathbb E[X+Y])^2$$ and therefore $\operatorname{Var}(X+Y) = 0$ and $X+Y$ is almost surely constant.
In the general case however, I don't see how to prove this. Using the characteristic function $f_X(t) = \mathbb E[e^{itX}]$, I can show that : $$\forall t,s\in\mathbb R,f_X(t) f_{X+Y}(s) = f_{X+Y}(s+t) f_Y(-t)$$ I am not sure if and how this helps, though.
Notation: I use $Z\perp Y$ to denote that $Z$ and $Y$ are independent random variables, and $\phi_Z(t)=E[\exp(itZ)]$ for the characteristic function of the random variable $Z$.
Assume $X+Y\perp X$ and $X+Y\perp Y$. Then, for all $s,t\in\mathbb{R}$
\begin{align} \phi_{X+Y}(s+t)\phi_Y(-t)&=E[\exp(i(X+Y)(s+t))\exp(-itY)]\\ &=E[\exp(is(X+Y))\exp(itX)]\\ &=\phi_{X+Y}(s)\phi_X(t) \end{align}
Similarly,
\begin{align} \phi_{X+Y}(s+t)\phi_X(-t)&=E[\exp(i(X+Y)(s+t))\exp(-itX)]\\ &=E[\exp(is(X+Y))\exp(itY)]\\ &=\phi_{X+Y}(s)\phi_Y(t) \end{align}
Hence, for all $s,t$ in a neighborhood of $0$
\begin{align} \phi_{X+Y}(s+t)&=\phi_{X+Y}(s)\frac{\phi_X(t)}{\phi_Y(-t)}=\phi_{X+Y}(t+s)=\phi_{X+Y}(t)\frac{\phi_X(s)}{\phi_Y(-s)}\\ \phi_{X+Y}(s+t)&=\phi_{X+Y}(s)\frac{\phi_Y(t)}{\phi_X(-t)}=\phi_{X+Y}(t+s)=\phi_{X+Y}(t)\frac{\phi_Y(s)}{\phi_X(-s)} \end{align}
Thus $\phi_{X+Y}(s)=\frac{\phi_X(s)}{\phi_Y(-s)}=\frac{\phi_Y(s)}{\phi_X(-s)}$ for all $s$ in a neighborhood of $0$. Notice that $|\phi_{X+Y}(s)|^2=\frac{\phi_X(s)\phi_X(-s)}{\phi_Y(s)\phi_Y(-s)}=1$. Then $|\phi_{X+Y}(s)|=1$ in a neighborhood of $0$; hence $X+Y$ is constant.
The conclusion is based on the following results:
Proof: Without loss of generality assume $t>0$. Then form some $\theta\in(-\pi,\pi]$, \begin{align} 1=e^{-i\theta}\widehat{\mu}(t)=\int \cos(xt-\theta)\,\mu(dx) \end{align} Then $x\mapsto\cos(xt-\theta)=1$ $\mu$--a.s. Hence, $\operatorname{supp}\mu\subset \frac{\theta}{t}+\frac{2\pi}{t}\mathbb{Z}$.
Proof: By considering the law of each component of $\mathbb{R}^n$, it is enough to consider the case $n=1$. For every $t$ in a neighboorhood of $0$, there is a number $b_t$ such that $\operatorname{supp}(\mu)\subset b_t+\frac{2\pi}{|t|}\mathbb{Z}$. If $\mu$ is not a trivial distribution, then there are distinct points $x_1$ and $x_2$ of positive measure $\mu$. It follows that $|x_1-x_2|\geq\frac{2\pi}{|t|}$. This is not possible as $|t|$ can be taken to be very small.