In
abstract algebra
In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures, which are set (mathematics), sets with specific operation (mathematics), operations acting on their elements. Algebraic structur ...
, a semiring is an
algebraic structure. Semirings are a generalization of
rings, dropping the requirement that each element must have an
additive inverse
In mathematics, the additive inverse of an element , denoted , is the element that when added to , yields the additive identity, 0 (zero). In the most familiar cases, this is the number 0, but it can also refer to a more generalized zero el ...
. At the same time, semirings are a generalization of
bounded distributive lattices.
The smallest semiring that is not a ring is the
two-element Boolean algebra, for instance with
logical disjunction as addition. A motivating example that is neither a ring nor a lattice is the set of
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s
(including zero) under ordinary addition and multiplication. Semirings are abundant because a suitable multiplication operation arises as the
function composition of
endomorphisms over any
commutative monoid.
Terminology
Some authors define semirings without the requirement for there to be a
or
. This makes the analogy between ring and on the one hand and and on the other hand work more smoothly. These authors often use rig for the concept defined here. This originated as a joke, suggesting that rigs are ri''n''gs without ''n''egative elements. (Akin to using ''
rng'' to mean a r''i''ng without a multiplicative ''i''dentity.)
The term dioid (for "double monoid") has been used to mean semirings or other structures. It was used by Kuntzmann in 1972 to denote a semiring. (It is alternatively sometimes used for
naturally ordered semirings but the term was also used for idempotent subgroups by
Baccelli et al. in 1992.)
Definition
A semiring is a
set equipped with two
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
s
and
called addition and multiplication, such that:
*
is a
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
monoid with an
identity element
In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
called
:
**
**
**
**
*
is a monoid with an identity element called
:
**
**
**
Further, the following axioms tie to both operations:
* Through multiplication, any element is left- and right-
annihilated by the additive identity:
**
**
* Multiplication left- and right-
distributes over addition:
**
**
Notation
The symbol
is usually omitted from the notation; that is,
is just written
Similarly, an
order of operations is conventional, in which
is applied before
. That is,
denotes
.
For the purpose of disambiguation, one may write
or
to emphasize which structure the units at hand belong to.
If
is an element of a semiring and
, then
-times repeated multiplication of
with itself is denoted
, and one similarly writes
for the
-times repeated addition.
Construction of new semirings
The
zero ring with underlying set
is a semiring called the trivial semiring. This triviality can be characterized via
and so when speaking of nontrivial semirings,
is often silently assumed as if it were an additional axiom.
Now given any semiring, there are several ways to define new ones.
As noted, the natural numbers
with its arithmetic structure form a semiring. Taking the zero and the image of the successor operation in a semiring
, i.e., the set
together with the inherited operations, is always a sub-semiring of
.
If
is a commutative monoid, function composition provides the multiplication to form a semiring: The set
of endomorphisms
forms a semiring where addition is defined from pointwise addition in
. The
zero morphism and the identity are the respective neutral elements. If
with
a semiring, we obtain a semiring that can be associated with the square
matrices with coefficients in
, the
matrix semiring using ordinary
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
and
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
rules of matrices. Given
and
a semiring,
is always a semiring also. It is generally non-commutative even if
was commutative.
Dorroh extensions: If
is a semiring, then
with pointwise addition and multiplication given by
defines another semiring with multiplicative unit
. Very similarly, if
is any sub-semiring of
, one may also define a semiring on
, just by replacing the repeated addition in the formula by multiplication. Indeed, these constructions even work under looser conditions, as the structure
is not actually required to have a multiplicative unit.
Zerosumfree semirings are in a sense furthest away from being rings. Given a semiring, one may adjoin a new zero
to the underlying set and thus obtain such a zerosumfree semiring that also lacks
zero divisor
In abstract algebra, an element of a ring is called a left zero divisor if there exists a nonzero in such that , or equivalently if the map from to that sends to is not injective. Similarly, an element of a ring is called a right ze ...
s. In particular, now
and the old semiring is actually not a sub-semiring. One may then go on and adjoin new elements "on top" one at a time, while always respecting the zero. These two strategies also work under looser conditions. Sometimes the notations
resp.
are used when performing these constructions.
Adjoining a new zero to the trivial semiring, in this way, results in another semiring which may be expressed in terms of the
logical connectives of disjunction and conjunction:
. Consequently, this is the smallest semiring that is not a ring. Explicitly, it violates the ring axioms as
for all
, i.e.
has no additive inverse. In the
self-dual definition, the fault is with
. (This is not to be conflated with the ring
, whose addition functions as
xor .)
In the
von Neumann model of the naturals,
,
and
. The two-element semiring may be presented in terms of the set theoretic union and intersection as
. Now this structure in fact still constitutes a semiring when
is replaced by any inhabited set whatsoever.
The
ideals on a semiring
, with their standard operations on subset, form a lattice-ordered, simple and zerosumfree semiring. The ideals of
are in bijection with the ideals of
. The collection of left ideals of
(and likewise the right ideals) also have much of that algebraic structure, except that then
does not function as a two-sided multiplicative identity.
If
is a semiring and
is an
inhabited set,
denotes the
free monoid
In abstract algebra, the free monoid on a set is the monoid whose elements are all the finite sequences (or strings) of zero or more elements from that set, with string concatenation as the monoid operation and with the unique sequence of zero ...
and the formal polynomials