The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Ring.Int.Defs
12 declarations. Mathlib docs · Source
The integers are a ring
This file contains the commutative ring instance on ℤ.
See note [foundational algebra order theory].
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.
instance Int.instCommRing E3 #
CommRing ℤ
instance Int.instIsCancelMulZero E0 #
IsCancelMulZero ℤ
instance Int.instIsDomain E0 #
IsDomain ℤ
instance Int.instCharZero E0 #
CharZero ℤ
instance Int.instMulDivCancelClass E0 #
MulDivCancelClass ℤ
theorem Int.cast_mul E0 #
∀ {α : Type u_1} [inst : NonAssocRing α] (m n : ℤ), ↑(m * n) = ↑m * ↑n
theorem Int.cast_mul_eq_zsmul_cast E1 #
∀ {α : Type u_1} [inst : AddGroupWithOne α] (m n : ℤ), ↑(m * n) = m • ↑n
Note this holds in marginally more generality than Int.cast_mul
theorem Int.cast_pow E0 #
∀ {R : Type u_1} [inst : Ring R] (n : ℤ) (m : ℕ), ↑(n ^ m) = ↑n ^ m
instance Int.instCommSemiring E0 #
CommSemiring ℤ
instance Int.instSemiring E0 #
Semiring ℤ
instance Int.instRing E0 #
Ring ℤ
instance Int.instDistrib E0 #
Distrib ℤ