Motivation: make sure the behavior is consistent with other arithmetic operators. This commit also removes the instance ``` instance : HMod (Fin n) Nat (Fin n) where hMod := Fin.modn ``` because we have a coercion from `Fin n` to `Nat`. Thus, given `a : Fin n` and `b : Nat`, `a % b` is ambiguous.
1 line
30 B
Text
1 line
30 B
Text
#eval (2147483648 % 0) + (-0)
|