I'm currently going through Artin's Algebra, and it has me prove the Chinese Remainder Theorem. The book states the problem in the context of congruence classes, and I think I have a solution, but I haven't found anything like it online, and I'm not sure if it's correct. My proof is as follows:
Let $\textit{a, b, u, v}$ be integers, and assume that the greatest common divisor of $\textit{a}$ and $\textit{b}$ is 1. We will show that there is an integer $\textit{x}$ such that $\textit{x}$ $\equiv$ $\textit{u}$ modulo $\textit{a}$, and $\textit{x}$ $\equiv$ $\textit{v}$ modulo $\textit{b}$. Observe that the congruence class for $\textit{u}$ modulo $\textit{a}$ is equal to the set { . . . , -a + u, u, a + u, . . . }; similarly, the congruence class for $\textit{v}$ modulo $\textit{b}$ is the set { . . . , -b + v, v, b + v, . . .}. If $\textit{x}$ exists, then it is a member of both congruence classes, so that for some integers $\textit{m}$ and $\textit{n}$, $\textit{x}$ = $\textit{ma}$ + $\textit{u}$, and $\textit{x}$ = $\textit{nb}$ + $\textit{v}$, so $\textit{ma}$ + $\textit{u}$ = $\textit{nb}$ + $\textit{v}$, and therefore $\textit{ma}$ - $\textit{nb}$ = $\textit{v - u}$. Since $\textit{a}$ and $\textit{b}$ have a common divisor of 1, the set of all their integer combinations is exactly $\mathbb{Z}$; therefore, there are integers $\textit{m}$ and $\textit{n}$ such that $\textit{ma}$ - $\textit{nb}$ = $\textit{v - u}$. Thus $\textit{x}$ exists, and the proof is complete.
Like I said, I haven't found a proof like this anywhere online, and I'm really wondering if it's valid, so I'd really appreciate if someone could help. Also, this is my first time posting, so my formatting might be below par; please let me know if I need to correct anything in that regard. Thank you!