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 #
@[implicit_reducible]
@[implicit_reducible]
WithOne.coe as a bundled morphism
Instances For
WithZero.coe as a bundled morphism
Instances For
Lift a semigroup homomorphism f to a bundled monoid homomorphism.
Instances For
Lift an additive semigroup homomorphism f to a bundled additive monoid homomorphism.
Instances For
@[simp]
@[simp]
theorem
WithZero.lift_coe
{α : Type u}
{β : Type v}
[Add α]
[AddZeroClass β]
(f : α →ₙ+ β)
(x : α)
:
@[simp]
@[simp]
@[simp]
@[simp]
theorem
WithOne.mapMulHom_injective
{α : Type u}
{β : Type v}
[Mul α]
[Mul β]
{f : α →ₙ* β}
(hf : Function.Injective ⇑f)
:
theorem
WithZero.mapAddHom_injective
{α : Type u}
{β : Type v}
[Add α]
[Add β]
{f : α →ₙ+ β}
(hf : Function.Injective ⇑f)
:
@[simp]
@[simp]