If $a\mid b$ and $b\mid c$ then $a\mid c$ (for $b\neq 0$)
Given $(a\mid b) \iff (\exists{n} \in \Bbb{Z})\ a \cdot{n} = b$ and $(b\mid c) \iff (\exists{m} \in \Bbb{Z})\ b \cdot{m} = c$,
then $b = a \cdot n$ so substituting for $b$ we have $(a \cdot n) \cdot m = c $
which is equivalent to $a \cdot mn = c$. Therefore we have $(a\mid c)$.
Your logic is sound, and your proof is fairly good, but you can polish up the argument:
Given $(a\mid b) \iff (\exists{n} \in \Bbb{Z})( a \cdot{n} = b),$ and $(b\mid c) \iff (\exists{m} \in \Bbb{Z})( b \cdot{m} = c),$
then $b = a \cdot{n}.$ And by substituting $a \cdot n$ for $b$, we have $(a \cdot n) \cdot m = c,$
which is equivalent to $a \cdot(mn) = c.$
Since $m, n \in \mathbb Z$, so too is $mn\in \mathbb Z$.
Therefore, we have $(a\mid c)$