I am wondering if I have a valid proof. I saw a proof I actually liked more than mine here, but I'd like to know if I'm thinking about this correctly. Here is my proof:
Let $[a]$ $\in$ $\mathbb{Z}_{n}$. Assume there exists $[b] \in \mathbb{Z}_{n}$ with $[a][b] = [1]$. So we have $a = ns + r_{1}$ and $b = nt + r_{2}$ for $s, t, r_{1}, r_{2} \in \mathbb{Z}$. Then
$$\begin{align}
[a][b] &= (ns + r_{1})(nt + r_{2})\\
&= n^2st + nsr_{2} + ntr_{1} + r_{1}r_{2}\\
&= n(nst + sr_{2} + tr_{1}) + r_{1}r_{2}\\
&\equiv [1]
\end{align}$$
Then we have $r_{1}r_{2} = 1$, so $r_{1} = r_{2} = 1$. Then $[a] \equiv 1 \pmod n$, so $\gcd(a, n) = 1$.
Does this check out? I'm also concerned with my usage of an equal sign when I say $[a][b] = (ns + r_{1})(nt + r_{2})$ and my usage of the congruent symbol when I say $n(nst + sr_{2} + tr_{1}) + r_{1}r_{2} \equiv [1]$. Did I use these symbols correctly?