Suppose that $a \gt b \gt 0$. How can one prove that $a$ mod $b \lt a/2$?
I understand why is that happening: if $a$ mod $b \gt a/2$ that means that $a/b \lt a/2$ and $a/b$ has enough "space" to get inside the $a$ mod $b$ one more time, since $a$ mod $b \gt a/2$. This is a contradiction to the division result.
What is the formal proof for that? I couldn't find it anywhere.
Hint: Use the facts that $(a \mod b)<b$ and that $(a\mod b)\le a-b$ (this second inequality holds in the case that $a\ge b$).