The natural numbers form a monoid #
This file contains the additive and multiplicative monoid instances on the natural numbers.
See note [foundational algebra order theory].
Instances #
Equations
- Nat.instMulOneClass = { toOne := One.ofOfNat1, toMul := instMulNat, one_mul := Nat.one_mul, mul_one := Nat.mul_one }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Extra instances to short-circuit type class resolution #
These also prevent non-computable instances being used to construct these instances non-computably.