The Grothendieck ring of a semiring #
Mathlib's Algebra.GrothendieckAddGroup M is the group completion of an additive commutative
monoid M, realized as the localization of M at its top submonoid. When M carries a semiring
structure the completion carries a ring structure, uniquely determined by the requirement that
the canonical map Algebra.GrothendieckAddGroup.of be multiplicative, and it is commutative when
the semiring is. This file constructs that ring.
The multiplication is built from the universal property rather than from the underlying quotient: multiplication by a fixed element of the semiring extends to an additive endomorphism of the completion, and the assignment of that endomorphism is itself additive, so it extends once more. No well-definedness computation on the localization relation is needed, and no cancellativity hypothesis is used.
Main definitions #
Algebra.GrothendieckAddGroup.liftAddEquiv: Mathlib'sliftas an additive isomorphism.Algebra.GrothendieckAddGroup.instRingandAlgebra.GrothendieckAddGroup.instCommRing: the ring structure, commutative when the semiring is.Algebra.GrothendieckAddGroup.ofRingHom: the canonical semiring map into the completion.Algebra.GrothendieckAddGroup.liftRingHom: the universal property, as an equivalence between semiring homomorphisms out ofSinto a ring and ring homomorphisms out of the completion.
References #
The universal property, in additive form #
Restricting the extension of f along of recovers f.
The extension of f agrees with f on the image of the monoid.
Two additive maps out of the Grothendieck group agree as soon as they agree on the image of the monoid.
Every element of the Grothendieck group is a difference of two elements of the monoid.
The universal property of the Grothendieck group, upgraded to an isomorphism of the additive groups of homomorphisms.
Instances For
The multiplication #
Multiplication on the Grothendieck ring of a semiring: the universal property extends
fun a b => of (a * b) first in b, then in a.
The canonical map into the Grothendieck ring is multiplicative.
The Grothendieck group of a non-unital non-associative semiring is a non-unital non-associative ring for the induced multiplication.
The Grothendieck group of a non-unital semiring is a non-unital ring.
The unit of the Grothendieck ring of a semiring.
The unit of the Grothendieck ring is the image of the unit of the semiring.
The Grothendieck group of a possibly nonassociative semiring is a possibly nonassociative ring.
The Grothendieck ring: the group completion of the additive monoid underlying a semiring is a ring, with the multiplication induced by that of the semiring.
The canonical map from a semiring into its Grothendieck ring.
Instances For
The canonical ring map agrees with the canonical additive map on elements.
The universal property, in ring form #
Two ring homomorphisms out of the Grothendieck ring agree as soon as they agree on the image of the semiring.
The universal property of the Grothendieck ring: a semiring homomorphism from S to a
ring extends uniquely to the Grothendieck ring of S.
Instances For
The ring-homomorphism extension evaluates to the original semiring homomorphism on each generator.
The inverse universal-property equivalence restricts a ring homomorphism along
ofRingHom.
The Grothendieck ring of a commutative semiring is commutative.