Homomorphisms out of a product of monoids, and products of isomorphisms #
A product of two monoids is their coproduct in commutative monoids: a homomorphism
M × N →* P with P commutative is the same data as a pair of homomorphisms M →* P and
N →* P, recovered by restricting along the two inclusions. Mathlib has the two directions
separately, as MonoidHom.coprod and composition with MonoidHom.inl and MonoidHom.inr,
together with the fact that they are mutually inverse; this file packages them as the
corresponding equivalence.
The file also records the value and the inverse of a product MulEquiv.prodCongr of two
multiplicative isomorphisms, which Mathlib states only for the underlying Equiv.prodCongr, and
recognizes a commutative monoid with projections and inclusions satisfying the biproduct
identities as the product of the two factors.
Main definitions #
MonoidHom.coprodEquiv: the multiplicative equivalence((M →* P) × (N →* P)) ≃* (M × N →* P)forPa commutative monoid.MulEquiv.ofProdCoprod: the multiplicative equivalenceP ≃* A × Bdetermined by projectionsP →* A,P →* Band inclusionsA →* P,B →* Psatisfying the biproduct identities.MulEquiv.prodCongr_apply,MulEquiv.prodCongr_symm: the product of two isomorphisms acts componentwise, and its inverse is the product of the inverses.
Homomorphisms from a product of two monoids to a commutative monoid P are pairs of
homomorphisms out of the factors: the forward map is MonoidHom.coprod and the inverse
restricts along MonoidHom.inl and MonoidHom.inr.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Homomorphisms from a product of two additive monoids to a commutative
additive monoid P are pairs of homomorphisms out of the factors: the forward map is
AddMonoidHom.coprod and the inverse restricts along AddMonoidHom.inl and
AddMonoidHom.inr.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The homomorphism attached to a pair of homomorphisms out of the factors is their coproduct.
The pair of homomorphisms attached to a homomorphism out of a product restricts it along the two inclusions.
The product of two multiplicative isomorphisms acts componentwise.
The product of two additive isomorphisms acts componentwise.
The inverse of a product of two multiplicative isomorphisms is the product of the inverses.
The inverse of a product of two additive isomorphisms is the product of the inverses.
A commutative monoid P with projections fst : P →* A, snd : P →* B and inclusions
inl : A →* P, inr : B →* P satisfying the biproduct identities is the product A × B: the
forward map is fst.prod snd and the inverse is inl.coprod inr.
Equations
Instances For
An additive commutative monoid P with projections fst : P →+ A,
snd : P →+ B and inclusions inl : A →+ P, inr : B →+ P satisfying the biproduct identities
is the product A × B: the forward map is fst.prod snd and the inverse is
inl.coprod inr.
Equations
Instances For
The equivalence MulEquiv.ofProdCoprod is given by the two projections.
The equivalence AddEquiv.ofProdCoprod is given by the two projections.
The inverse of MulEquiv.ofProdCoprod multiplies the two inclusions.
The inverse of AddEquiv.ofProdCoprod adds the two inclusions.