Definition. Semiring [01CA]

A semiring (or, as some call it, a rig) is an set A equipped with

satisfying the following distributivity laws
  • 0\otimes x = 0 = x\otimes 0,
  • x\otimes (y\oplus z) = (x\otimes y)\oplus (x\otimes z), and (y\oplus z)\otimes x = (y\otimes x) \oplus (z \otimes x).

(A,\oplus ,0) is called the additive monoid of the semiring, and (A,\otimes ,1) is called the multiplicative monoid of the semiring.

A semiring is called commutative when its multiplicative monoid is commutative, i.e. we have x\otimes y = y\otimes x. (The additive monoid is always required to be commutative!)