The integers are a ring #
This file contains the commutative ring instance on ℤ
.
See note [foundational algebra order theory].
Note #
If this file needs to be split, please create an Algebra.Ring.Int
folder and make the first file
be Algebra.Ring.Int.Basic
.
Equations
- Int.instCommRing = let __spread.0 := Int.instAddCommGroup; let __spread.1 := Int.instCommSemigroup; CommRing.mk ⋯
Equations
- Int.instCancelCommMonoidWithZero = CancelCommMonoidWithZero.mk
@[simp]
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.
Miscellaneous lemmas #
Units #
Parity #
Equations
- x.instDecidablePredOdd = decidable_of_iff (¬Even x) ⋯
Alias of the reverse direction of Int.natAbs_even
.
Alias of the reverse direction of Int.natAbs_odd
.
@[simp]