58 SemiringsTag 8049
In the tree of ModernMath: ModernMath › 16-XX Associative rings and algebras › 16Yxx Generalizations › 16Y60 Semirings, the subject of its primary MSC2020 code. Show it in the tree and the cross-reference graph.
Source of this section: latex/entries/16-associative-rings/21-semirings.tex (history, edit) and myst/16-associative-rings/21-semirings.md (history, edit). To propose a change, see how to contribute.
A semiring is a ring without subtraction: addition is only a commutative monoid. Semirings include the natural numbers, the non-negative cones of ordered rings, bounded distributive lattices and the max-plus and tropical algebras of optimisation and automata theory. The two extreme kinds are the additively idempotent semirings, as far from rings as possible, and the additively cancellative ones, which are exactly the subsemirings of rings. Terminology varies more than for rings, and these entries follow Golan.
A semiring is a set \(R\) with operations \(+\) and \(\cdot \) such that \((R,+)\) is a commutative monoid with identity \(0\), \((R,\cdot )\) is a monoid with identity \(1\), multiplication distributes over addition from both sides, \(0r=0=r0\) for every \(r\), and \(1\neq 0\); a hemiring satisfies the same conditions except that \((R,\cdot )\) is only a semigroup, and \(1\neq 0\) is dropped [ 108 , p. 1 ] . Golan warns that the terminology is not standard: some authors exchange the words semiring and hemiring, some use “halfring”, some require neither a multiplicative identity nor even an additive zero, and some require multiplication to be commutative as well [ 108 , p. xi ] . The absorption law \(0r=0=r0\) does not follow from the other conditions [ 108 , p. 2 ] . Subsemirings contain \(0\) and \(1\), and morphisms of semirings preserve both operations, \(0\) and \(1\) [ 108 , pp. 3 and 105 ] . Every hemiring \(R\) embeds in the semiring \(R\times \mathbb {N}\), its Dorroh extension [ 108 , p. 3 ] .
A semiring \(R\) is additively idempotent if \(r+r=r\) for all \(r\), which holds if and only if \(1+1=1\); it is zerosumfree if \(r+r'=0\) implies \(r=r'=0\), and simple if \(1+r=1\) for all \(r\) [ 108 , pp. 3–4 ] . An element \(a\) is cancellable if \(a+b=a+c\) implies \(b=c\), and \(R\) is cancellative if all its elements are [ 108 , p. 49 ] .
If \(r+r=r\) and \(r+r'=0\), then \(r=r+(r+r')=(r+r)+r'=r+r'=0\), and similarly \(r'=0\). If \(1+r=1\) for all \(r\), then \(1+1=1\), so \(r=r(1+1)=r+r\) [ 108 , pp. 3–4 ] . If \(a\) is cancellable and \(a+a=a=a+0\), then \(a=0\).
Rings are semirings [ 108 , p. 5 ] . The non-negative integers \(\mathbb {N}\), rationals \(\mathbb {Q}^+\) and reals \(\mathbb {R}^+\) are commutative, zerosumfree semirings without zero divisors that are not additively idempotent [ 108 , Example 1.3 ] ; \(\mathbb {N}\) is cancellative [ 108 , Example 4.15 ] .
If \(S\) is a non-zero commutative ring and \(P\subseteq S\) satisfies \(P\cap -P= \{ 0\} \), \(P+P\subseteq P\), \(PP\subseteq P\) and \(s^2\in P\) for all \(s\in S\), then \(P\) is a commutative zerosumfree semiring [ 108 , p. 5 ] . By Theorem 31.2 and Proposition 31.3, this applies to the positive cone of every non-zero commutative ordered ring with identity (Definition 31.1).
A bounded distributive lattice, with join as addition and meet as multiplication, is a commutative, additively and multiplicatively idempotent, simple semiring, and conversely every such semiring is a bounded distributive lattice [ 108 , Example 1.5 ] . For a set \(X\) with more than one element, the semiring of subsets of \(X\) under union and intersection is not cancellative [ 108 , Example 4.16 ] .
The schedule algebra, or max-plus algebra, \((\mathbb {R}\cup \{ -\infty \} ,\max ,+)\), and \((\mathbb {R}\cup \{ \infty \} , \min ,+)\), whose zero is \(\infty \) and whose identity is \(0\), are additively idempotent commutative semirings. The latter contains \((\mathbb {R}^+\cup \{ \infty \} ,\min ,+)\), a simple subsemiring, and the tropical semiring \((\mathbb {N}\cup \{ \infty \} ,\min ,+)\), used in the theory of formal languages and automata [ 108 , Example 1.22 and p. 16 ] .
A semiring is isomorphic to a subsemiring of a ring if and only if it is cancellative. More precisely, for a cancellative semiring \(R\) there is a ring \(R^\Delta \), the ring of differences, and an injective morphism \(\nu \colon R\to R^\Delta \) such that every element of \(R^\Delta \) is \(\nu (a)-\nu (b)\) for some \(a,b\in R\) [ 108 , p. 113 ] .
A subsemiring of a ring is cancellative, since the ring is. Conversely, Golan follows Bourne: on \(S=R\times R\) put \((a,b)+(c,d)=(a+c,b+d)\) and \((a,b)(c,d)=(ac+bd,ad+bc)\), and identify \((a,b)\) with \((c,d)\) when \(a+d+r=b+c+r\) for some \(r\in R\). Since there is no \(r\) with \(1+r=r\) in a cancellative semiring, the classes form a ring \(R^\Delta \), in which the class of \((b,a)\) is the negative of that of \((a,b)\), and \(\nu (r)\) is the class of \((r,0)\); \(\nu \) is injective exactly when \(R\) is cancellative [ 108 , pp. 100–101 and 113 ] .