The integers are a ring #
This file contains the commutative ring instance on ℤ
.
See note [foundational algebra order theory].
Equations
- One or more equations did not get rendered due to their size.
Equations
- Int.instCancelCommMonoidWithZero = { toCommMonoidWithZero := CommSemiring.toCommMonoidWithZero, toIsLeftCancelMulZero := Int.instCancelCommMonoidWithZero._proof_13 }
Note this holds in marginally more generality than Int.cast_mul
Extra instances to short-circuit type class resolution #
These also prevent non-computable instances like Int.normedCommRing
being used to construct
these instances non-computably.