More operations on WithOne
and WithZero
#
This file defines various bundled morphisms on WithOne
and WithZero
that were not available in Algebra/Group/WithOne/Defs
.
Main definitions #
Equations
Equations
Lift a semigroup homomorphism f
to a bundled monoid homomorphism.
Equations
Instances For
Lift an add semigroup homomorphism f
to a bundled add monoid homomorphism.
Equations
Instances For
@[simp]
@[simp]
theorem
WithZero.lift_coe
{α : Type u}
{β : Type v}
[Add α]
[AddZeroClass β]
(f : α →ₙ+ β)
(x : α)
:
@[simp]
@[simp]
@[simp]
@[simp]
theorem
WithOne.map_injective
{α : Type u}
{β : Type v}
[Mul α]
[Mul β]
{f : α →ₙ* β}
(hf : Function.Injective ⇑f)
:
Function.Injective ⇑(map f)
theorem
WithZero.map_injective
{α : Type u}
{β : Type v}
[Add α]
[Add β]
{f : α →ₙ+ β}
(hf : Function.Injective ⇑f)
:
Function.Injective ⇑(map f)
@[simp]
@[simp]