Skip to main content
Retagged: the question concerns about the definition of a specific arithmetic function, and "division-by-zero" is extremely narrow for a tag
Link
Bubbler
  • 684
  • 4
  • 15
edited tags
Link
Andrej Bauer
  • 9.8k
  • 23
  • 62
Source Link
Rand00
  • 233
  • 1
  • 4

What did Coq 8.15 change about divmod?

I noticed that Coq 8.15 (possibly 8.14) made some significant changes to divmod. In particular, Nat.divmod_0q0 seems to have been removed and the div_mod lemma with signature y<>0 -> x = y*(x/y) + x mod y has effectively been replaced with div_mod_eq which drops the y<>0 precondition.

Does divmod (and hence div and mod) now behave differently? Could somebody summarize the changes? It looks like some 8.15 theorems simply don't hold in 8.13 and vice-versa (with Nat.divmod_0q0).