Library Coq.Numbers.NatInt.NZDiv
Euclidean Division
The first signatures will be common to all divisions over NZ, N and Z
The different divisions will only differ in the conditions
they impose on modulo. For NZ, we have only described the
behavior on positive numbers.
Uniqueness theorems
A division by itself returns 1
A division of a small number by a bigger one yields zero.
Same situation, in term of modulo:
Basic values of divisions and modulo.
Order results about mod and div
A modulo cannot grow beyond its starting point.
As soon as the divisor is strictly greater than 1,
the division is strictly decreasing.
le is compatible with a positive division.
The following two properties could be used as specification of div
The previous inequality is exact iff the modulo is zero.
Some additionnal inequalities about div.
A division respects opposite monotonicity for the divisor
Relations between usual operations and mod and div
Cancellations.
Operations modulo.
A last inequality:
mod is related to divisibility