Taking images is functorial #
Mirror of Mathlib/Data/Set/Semiring.lean: SetSemiring.imageHom sends the identity
homomorphism to the identity and a composite to the composite, so taking images is a functor from
monoids to semirings. [UPSTREAM]
@[simp]
theorem
SetSemiring.imageHom_id
{α : Type u_1}
[MulOneClass α]
:
imageHom (MonoidHom.id α) = RingHom.id (SetSemiring α)
theorem
SetSemiring.imageHom_comp
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
[MulOneClass α]
[MulOneClass β]
[MulOneClass γ]
(g : β →* γ)
(f : α →* β)
:
imageHom (g.comp f) = (imageHom g).comp (imageHom f)