A basic property of semirings is that 1 is not a left or right
zero divisor, and that 1 but also 0 squares to itself, i.e. these have u^2=u. Some notable properties are inherited from the monoid structures: The monoid axioms demand unit existence, and so the set underlying a semiring cannot be empty. Also, the
2-ary predicate x\le_\text{pre}y defined as \exists d. x + d = y, here defined for the addition operation, always constitutes the right
canonical preorder relation.
Reflexivity y\le_\text{pre} y is witnessed by the identity. Further, 0\le_\text{pre}y is always valid, and so zero is the
least element with respect to this preorder. Considering it for the commutative addition in particular, the distinction of "right" may be disregarded. In the non-negative integers \N, for example, this relation is
anti-symmetric and
strongly connected, and thus in fact a (non-strict)
total order. Below, more conditional properties are discussed.
Semifields Any
field is also a
semifield, which in turn is a semiring in which also multiplicative inverses exist.
Rings Any field is also a
ring, which in turn is a semiring in which also additive inverses exist. Note that a semiring omits such a requirement, i.e., it requires only a
commutative monoid, not a
commutative group. The extra requirement for a ring itself already implies the existence of a multiplicative zero. This contrast is also why for the theory of semirings, the multiplicative zero must be specified explicitly. Here -1, the additive inverse of 1, squares to 1. As additive differences d=y-x always exist in a ring, x\le_\text{pre}y is a trivial binary relation in a ring.
Commutative semirings A semiring is called a
commutative semiring if also the multiplication is commutative. Its axioms can be stated concisely: It consists of two commutative monoids \langle +, 0\rangle and \langle \cdot, 1\rangle on one set such that a\cdot 0 = 0 and a\cdot (b+c)=a\cdot b + a\cdot c. The
center of a semiring is a sub-semiring and being commutative is equivalent to being its own center. The commutative semiring of natural numbers is the
initial object among its kind, meaning there is a unique structure preserving map of {\mathbb N} into any commutative semiring. The bounded distributive lattices are
partially ordered commutative semirings fulfilling certain algebraic equations relating to distributivity and idempotence. Thus so are their
duals.
Ordered semirings Notions or order can be defined using strict, non-strict or
second-order formulations. Additional properties such as commutativity simplify the axioms. Given a
strict total order (also sometimes called linear order, or
pseudo-order in a constructive formulation), then by definition, the
positive and
negative elements fulfill 0 resp. x. By irreflexivity of a strict order, if s is a left zero divisor, then s\cdot x is false. The
non-negative elements are characterized by \neg(x, which is then written 0\le x. Generally, the strict total order can be negated to define an associated partial order. The
asymmetry of the former manifests as x. In fact in
classical mathematics the latter is a (non-strict) total order and such that 0\le x implies x=0\lor 0. Likewise, given any (non-strict) total order, its negation is
irreflexive and
transitive, and those two properties found together are sometimes called strict quasi-order. Classically this defines a strict total order – indeed strict total order and total order can there be defined in terms of one another. Recall that "\le_\text{pre}" defined above is trivial in any ring. The existence of rings that admit a non-trivial non-strict order shows that these need not necessarily coincide with "\le_\text{pre}".
Additively idempotent semirings A semiring in which every element is an additive
idempotent, that is, x+x=x for all elements x, is called an
(additively) idempotent semiring. Establishing 1 + 1 = 1 suffices. Be aware that sometimes this is just called idempotent semiring, regardless of rules for multiplication. In such a semiring, x\le_\text{pre} y is equivalent to x + y = y and always constitutes a partial order, here now denoted x\le y. In particular, here x \le 0\leftrightarrow x = 0. So additively idempotent semirings are zerosumfree and, indeed, the only additively idempotent semiring that has all additive inverses is the trivial ring and so this property is specific to semiring theory. Addition and multiplication respect the ordering in the sense that x \le y implies x + t \leq y + t, and furthermore implies s\cdot x \le s\cdot y as well as x\cdot s \le y\cdot s, for all x, y, t and s. If R is additively idempotent, then so are the polynomials in R[X^*]. A semiring such that there is a lattice structure on its underlying set is
lattice-ordered if the sum coincides with the join, x + y = x\lor y, and the product lies beneath the meet x\cdot y \le x\land y. The lattice-ordered semiring of ideals of a semiring is not necessarily
distributive with respect to the lattice structure. More strictly than just additive idempotence, a semiring is called
simple iff x+1=1 for all x. Then also 1+1=1 and x \le 1 for all x. Here 1 then functions akin to an additively infinite element. If R is an additively idempotent semiring, then \{x\in R\mid x+1=1\} with the inherited operations is its simple sub-semiring. An example of an additively idempotent semiring that is not simple is the
tropical semiring on {\mathbb R}\cup\{-\infty\} with the 2-ary maximum function, with respect to the standard order, as addition. Its simple sub-semiring is trivial. A
c-semiring is an idempotent semiring and with addition defined over arbitrary sets. An additively idempotent semiring with idempotent multiplication, x^2=x, is called
additively and multiplicatively idempotent semiring, but sometimes also just idempotent semiring. The commutative, simple semirings with that property are exactly the bounded distributive lattices with unique minimal and maximal element (which then are the units).
Heyting algebras are such semirings and the
Boolean algebras are a special case. Further, given two bounded distributive lattices, there are constructions resulting in commutative additively-idempotent semirings, which are more complicated than just the direct sum of structures.
Number lines In a model of the ring {\mathbb R}, one can define a non-trivial positivity predicate 0 and a predicate x as 0 that constitutes a strict total order, which fulfills properties such as \neg(x, or classically the
law of trichotomy. With its standard addition and multiplication, this structure forms the strictly
ordered field that is
Dedekind-complete.
By definition, all
first-order properties proven in the theory of the reals are also provable in the
decidable theory of the
real closed field. For example, here x is mutually exclusive with \exists d. y + d^2 = x. But beyond just ordered fields, the four properties listed below are also still valid in many sub-semirings of {\mathbb R}, including the rationals, the integers, as well as the non-negative parts of each of these structures. In particular, the non-negative reals, the non-negative rationals and the non-negative integers are such a semirings. The first two properties are analogous to the property valid in the idempotent semirings: Translation and scaling respect these
ordered rings, in the sense that addition and multiplication in this ring validate • (x • (x In particular, (0 and so squaring of elements preserves positivity. Take note of two more properties that are always valid in a ring. Firstly, trivially P\,\to\,x \le_\text{pre} y for any P. In particular, the
positive additive difference existence can be expressed as • (x Secondly, in the presence of a trichotomous order, the non-zero elements of the additive group are partitioned into positive and negative elements, with the inversion operation moving between them. With (-1)^2=1, all squares are proven non-negative. Consequently, non-trivial rings have a positive multiplicative unit, • 0 Having discussed a strict order, it follows that 0\neq 1 and 1\neq 1+1, etc.
Discretely ordered semirings There are a few conflicting notions of discreteness in order theory. Given some strict order on a semiring, one such notion is given by 1 being positive and
covering 0, i.e. there being no element x between the units, \neg(0. Now in the present context, an order shall be called
discrete if this is fulfilled and, furthermore, all elements of the semiring are non-negative, so that the semiring starts out with the units. Denote by {\mathsf {PA}}^- the theory of a commutative, discretely ordered semiring also validating the above four properties relating a strict order with the algebraic structure. All of its models have the model \N as its initial segment and
Gödel incompleteness and
Tarski undefinability already apply to {\mathsf {PA}}^-. The non-negative elements of a commutative,
discretely ordered ring always validate the axioms of {\mathsf {PA}}^-. So a slightly more exotic model of the theory is given by the positive elements in the
polynomial ring {\mathbb Z}[X], with positivity predicate for p={\textstyle\sum}_{k=0}^n a_k X^k defined in terms of the last non-zero coefficient, 0 , and p as above. While {\mathsf {PA}}^- proves all
\Sigma_1-sentences that are true about \N, beyond this complexity one can find simple such statements that are
independent of {\mathsf {PA}}^-. For example, while \Pi_1-sentences true about \N are still true for the other model just defined, inspection of the polynomial X demonstrates {\mathsf {PA}}^--independence of the \Pi_2-claim that all numbers are of the form 2q or 2q+1 ("
odd or even"). Showing that also {\mathbb Z}[X,Y]/(X^2-2Y^2) can be discretely ordered demonstrates that the \Pi_1-claim x^2\neq 2y^2 for non-zero x ("no rational squared equals 2") is independent. Likewise, analysis for {\mathbb Z}[X,Y,Z]/(XZ-Y^2) demonstrates independence of some statements about
factorization true in \N. There are {\mathsf {PA}} characterizations of primality that {\mathsf {PA}}^- does not validate for the number 2. In the other direction, from any model of {\mathsf {PA}}^- one may construct an ordered ring, which then has elements that are negative with respect to the order, that is still discrete the sense that 1 covers 0. To this end one defines an equivalence class of pairs from the original semiring. Roughly, the ring corresponds to the differences of elements in the old structure, generalizing the way in which the
initial ring \Z
can be defined from \N. This, in effect, adds all the inverses and then the preorder is again trivial in that \forall x. x\le_\text{pre} 0. Beyond the size of the two-element algebra, no simple semiring starts out with the units. Being discretely ordered also stands in contrast to, e.g., the standard ordering on the semiring of non-negative rationals {\mathbb Q}_{\ge 0}, which is
dense between the units. For another example, {\mathbb Z}[X]/(2X^2-1) can be ordered, but not discretely so.
Natural numbers {\mathsf {PA}}^- plus
mathematical induction gives
a theory equivalent to first-order
Peano arithmetic {\mathsf {PA}}. The theory is also famously not
categorical, but \N is of course the intended model. {\mathsf {PA}} proves that there are no zero divisors and it is zerosumfree and so no
model of it is a ring. The standard axiomatization of {\mathsf {PA}} is more concise and the theory of its order is commonly treated in terms of the non-strict "\le_\text{pre}". However, just removing the potent induction principle from that axiomatization does not leave a workable algebraic theory. Indeed, even
Robinson arithmetic {\mathsf {Q}}, which removes induction but adds back the predecessor existence postulate, does not prove the monoid axiom \forall y. (0 + y = y).
Complete semirings A
complete semiring is a semiring for which the additive monoid is a
complete monoid, meaning that it has an
infinitary sum operation \Sigma_I for any
index set I and that the following (infinitary) distributive laws must hold: : {\textstyle\sum}_{i \in I}{\left(a \cdot a_i\right)} = a \cdot \left({\textstyle\sum}_{i \in I}{a_i}\right), \qquad {\textstyle\sum}_{i \in I}{\left(a_i \cdot a\right)} = \left({\textstyle\sum}_{i \in I}{a_i}\right) \cdot a. Examples of a complete semiring are the power set of a monoid under union and the matrix semiring over a complete semiring. For commutative, additively idempotent and simple semirings, this property is related to
residuated lattices.
Continuous semirings A
continuous semiring is similarly defined as one for which the addition monoid is a
continuous monoid. That is, partially ordered with the
least upper bound property, and for which addition and multiplication respect order and suprema. The semiring \N \cup \{ \infty \} with usual addition, multiplication and order extended is a continuous semiring. Any continuous semiring is complete: this may be taken as part of the definition.
Star semirings A
star semiring (sometimes spelled
starsemiring) or
closed semiring is a semiring with an additional unary operator {}^*, satisfying : a^* = 1 + a a^* = 1 + a^* a. A
Kleene algebra is a star semiring with idempotent addition and some additional axioms. They are important in the theory of
formal languages and
regular expressions.
Complete star semirings In a
complete star semiring, the star operator behaves more like the usual
Kleene star: for a complete semiring we use the infinitary sum operator to give the usual definition of the Kleene star: : a^* = {\textstyle\sum}_{j \geq 0}{a^j}, where : a^j = \begin{cases} 1, & j = 0,\\ a \cdot a^{j-1} = a^{j-1} \cdot a, & j > 0. \end{cases} Note that star semirings are not related to
*-algebra, where the star operation should instead be thought of as
complex conjugation.
Conway semiring A
Conway semiring is a star semiring satisfying the sum-star and product-star equations: :\begin{align} (a + b)^* &= \left(a^* b\right)^* a^*, \\ (ab)^* &= 1 + a(ba)^* b. \end{align} Every complete star semiring is also a Conway semiring, but the converse does not hold. An example of Conway semiring that is not complete is the set of extended non-negative
rational numbers \Q_{\geq 0} \cup \{ \infty \} with the usual addition and multiplication (this is a modification of the example with extended non-negative reals given in this section by eliminating irrational numbers). An
iteration semiring is a Conway semiring satisfying the Conway group axioms, associated by
John Conway to groups in star-semirings. == Examples ==