If I have an expression such as $$ x = ((a \bmod b) - s) \bmod t, \quad 0 < a < b $$ And I want to step to $$ x = (a - s) \bmod t $$
Is acceptable to jump straight from the first expression to the second? Is there a law or rule I should site when eliminating the mod?
The usual way the mod function is computed gives a result in $[0,b)$. Since $a$ is already in that range, $a \mod b=a$. You should write "$a \mod b=a$ since $0<a<b$".