|
|
|
|
|
by ndsipa_pomu
1168 days ago
|
|
Thanks - I was not aware that theorem provers often allow "division" by zero. Looking at https://xenaproject.wordpress.com/2020/07/05/division-by-zer... I see that they don't use mathematical division, but define a slightly different operator with an additional condition for handling zero. This appears to be far more convenient for theorem provers. The trade-off would be that "division" is no longer the inverse of multiplication. |
|
I will note that setting a - b = 0 for a <= b is pretty standard, and is often called "partial subtraction."