My Professor presented the following theorem:
Theorem If $a \in \mathbb{Z}$ and $b \in \mathbb{Z}^+$, then there exist unique $q, r \in \mathbb{Z}$ such that
$$a = bq + r$$ and $$0 \le r < b$$
And then the following proof of uniqueness:
Suppose $q$ and $r$ are not unique, and so
$$a = qb + r = q'b + r',$$ with $$0 \le r \le r' < b$$
i.e. assume, WLOG, that $r' \ge r$.
If $r' > r$, then $0 < r' - r < b$, and the expressions for $a$ imply
$$0 \le (q - q')b = r' - r < b,$$
which is impossible.
Thus $r' = r$ and $qb + r = q' b + r$ implies $q = q'$, so the two expressions for $a$ are the same.
But this proof begins by assuming that $q$ and $r$ are not unique; specifically, that $r' \ge r$. If we get a contradiction during this, then doesn't that simply prove that $r' \not\ge r$? In that case, we still haven't ruled out whether $r' < r$. So, in the end, it seems like the proof doesn't necessarily prove that $r' = r$, as it claims?
I would greatly appreciate it if people could please take the time to clarify this.