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),
particularly results involving algebraic homomorphisms or the order structure on ℤ
which were not available in the import dependencies of Data.Int.Cast.Basic.
Main declarations #
castAddHom:castbundled as anAddMonoidHom.castRingHom:castbundled as aRingHom.
coe : ℤ → α as an AddMonoidHom.
Equations
- Int.castAddHom α = { toFun := Int.cast, map_zero' := ⋯, map_add' := ⋯ }
Instances For
This version is primed so that the RingHomClass versions aren't.
If two MonoidHoms agree on -1 and the naturals then they are equal.
If two MonoidWithZeroHoms agree on -1 and the naturals then they are equal.
If two MonoidWithZeroHoms agree on -1 and the positive naturals then they are equal.
Additive homomorphisms from ℤ are defined by the image of 1.
Equations
Instances For
Monoid homomorphisms from Multiplicative ℤ are defined by the image
of Multiplicative.ofAdd 1.
Equations
Instances For
If α is commutative, zmultiplesHom is an additive equivalence.
Equations
- zmultiplesAddHom β = { toEquiv := zmultiplesHom β, map_add' := ⋯ }
Instances For
If α is commutative, zpowersHom is a multiplicative equivalence.
Equations
- zpowersMulHom α = { toEquiv := zpowersHom α, map_mul' := ⋯ }