This was changed in Coq 8.14 (MR: github.com/coq/coq/pull/14086https://github.com/coq/coq/pull/14086), and the changes are summarized in coq.inria.fr/refman/changes.html#id310https://coq.inria.fr/refman/changes.html#id310. Quoting:
Changed: set
n mod 0 = n
uniformly fornat
,N
,Z
,int63
,sint63
,int31
such thatm = (m / n) * n + (m mod n)
holds (also forn = 0
)
As you can see, in many cases this gives stronger theorems with fewer side conditions — but in any case they're more uniform across nat
, N
and Z
.