Sketch: take the least nonnegative value of m - qn by the well-order of the natural numbers with zero; uniqueness by discreteness of the integers.
Routine facts about nonempty classes and the class of remainders are used without comment (Toolkit for AL1).
Consider the set
It is nonempty. If , then , with . If , take : then , and because and , so . (Arithmetic and order of are routine under Routine Facts, Continued: Typed Arithmetic, Maps and Predicativity.)
The order of is a well-order by The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor (i), so the nonempty set has a least element (Well-Orders on a Set (i)). Fix with .
We claim , which proves existence. Suppose instead that . Then and
so ; but because , contradicting the minimality of .
For uniqueness, let with , and . Suppose . Then by Discreteness of the Integers (i), so
whereas , a contradiction. Exchanging the roles of the two pairs rules out in the same way, so , and then .
Loadingβ¦