Canonical homomorphism from a pair of monoids #
This file defines the construction of the canonical homomorphism from a pair of monoids.
Given two morphisms of monoids f : M →* P and g : N →* P where elements in the images
of the two morphisms commute, we obtain a canonical morphism
MonoidHom.noncommCoprod : M × N →* P whose composition with inl M N coincides with f
and whose composition with inr M N coincides with g.
There is an analogue MulHom.noncommCoprod when f and g are only MulHoms.
Main theorems: #
noncommCoprod_comp_inrandnoncommCoprod_comp_inlprove that the compositions ofMonoidHom.noncommCoprod f g _withinl M Nandinr M Ncoincide withfandg.comp_noncommCoprodproves that the composition of a morphism of monoidshwithnoncommCoprod f g _coincides withnoncommCoprod (h.comp f) (h.comp g).
For a product of a family of morphisms of monoids, see MonoidHom.noncommPiCoprod.
Coproduct of two MulHoms with the same codomain with Commute assumption:
f.noncommCoprod g _ (p : M × N) = f p.1 * g p.2.
(For the commutative case, use MulHom.coprod)
Instances For
Coproduct of two AddHoms with the same codomain with AddCommute assumption:
f.noncommCoprod g _ (p : M × N) = f p.1 + g p.2.
(For the commutative case, use AddHom.coprod)
Instances For
Variant of AddHom.noncommCoprod_apply, with the sum written in the other direction
Coproduct of two MonoidHoms with the same codomain,
with a commutation assumption:
f.noncommCoprod g _ (p : M × N) = f p.1 * g p.2.
(Noncommutative case; in the commutative case, use MonoidHom.coprod.)
Equations
Instances For
Coproduct of two AddMonoidHoms with the same codomain,
with a commutation assumption:
f.noncommCoprod g (p : M × N) = f p.1 + g p.2.
(Noncommutative case; in the commutative case, use AddHom.coprod.)
Equations
Instances For
Variant of MonoidHom.noncomCoprod_apply with the product written in the other direction`
Variant of AddMonoidHom.noncomCoprod_apply with the sum written in the other direction