Cast of integers (additional theorems) #
This file proves additional properties about the canonical homomorphism from
the integers into an additive group with a one (Int.cast
).
There is also Data.Int.Cast.Lemmas
,
which includes lemmas stated in terms of algebraic homomorphisms,
and results involving the order structure of ℤ
.
By contrast, this file's only import beyond Data.Int.Cast.Defs
is Algebra.Group.Basic
.
@[simp]
@[simp]
@[simp]
@[simp]
theorem
Int.cast_ofNat
{R : Type u}
[AddGroupWithOne R]
(n : ℕ)
[n.AtLeastTwo]
:
↑(OfNat.ofNat n) = OfNat.ofNat n
@[simp]
theorem
Int.cast_subNatNat
{R : Type u}
[AddGroupWithOne R]
(m : ℕ)
(n : ℕ)
:
↑(Int.subNatNat m n) = ↑m - ↑n
@[simp]
@[simp]
@[simp]
@[deprecated]
@[deprecated]