My question actually follows from this one:
Chinese Remainder Theorem for Rings
What I don't understand is why is it necessary for $I+J=R$, in order for
$$ \varphi\colon R\to R/I\times R/J:a\mapsto (a+I,a+J) $$
to be surjective. This map seems surjective by construction (I worked through the same question myself and came up with the same homomorphism. But I didn't seem to require that $I+J=R$ in my answer).
Quoting Ben West's answer, he says:
For any $r,s\in R$, we can write $r=r_i+r_j$ and $s=s_i+s_j$, where $r_i,s_i\in I$, etc. Let $a=r_i+s_j$, so $a-r=s_j-r_j\in J$, and $a-s=r_i-s_i\in I$. In particular, $a+I=s+I$, and $a+J=r+J$. This shows that the map $$ \varphi\colon R\to R/I\times R/J:a\mapsto (a+I,a+J) $$ is surjective.
Why does $a-s \in I $ $\Rightarrow a+I = s+I $ in the above argument?
Thanks so much in advance!