Semiring

In abstract algebra, a semiring is an algebraic structure similar to a ring, but without the requirement that each element must have an additive inverse.

The term rig is also used occasionally[1]—this originated as a joke, suggesting that rigs are rings without negative elements, similar to using rng to mean a ring without a multiplicative identity.

Definition

A semiring is a set R equipped with two binary operations + and , called addition and multiplication, such that:[2][3][4]

This last axiom is omitted from the definition of a ring: it follows from the other ring axioms. Here it does not, and it is necessary to state it in the definition.

The difference between rings and semirings, then, is that addition yields only a commutative monoid, not necessarily a commutative group. Specifically, elements in semirings do not necessarily have an inverse for the addition.

The symbol is usually omitted from the notation; that is, ab is just written ab. Similarly, an order of operations is accepted, according to which is applied before +; that is, a + bc is a + (bc).

A commutative semiring is one whose multiplication is commutative.[5] An idempotent semiring is one whose addition is idempotent: a + a = a,[6] that is, (R, +, 0) is a join-semilattice with zero.

There are some authors who prefer to leave out the requirement that a semiring have a 0 or 1. This makes the analogy between ring and semiring on the one hand and group and semigroup on the other hand work more smoothly. These authors often use rig for the concept defined here.[note 1]

Examples

By definition, any ring is also a semiring. A motivating example of a semiring is the set of natural numbers N (including zero) under ordinary addition and multiplication. Likewise, the non-negative rational numbers and the non-negative real numbers form semirings. All these semirings are commutative.[7][8][9]

In general

Specific examples

with multiplication +, zero element +∞ and unit element 0.[3]

Semiring theory

Much of the theory of rings continues to make sense when applied to arbitrary semirings. In particular, one can generalise the theory of algebras over commutative rings directly to a theory of algebras over commutative semirings. Then a ring is simply an algebra over the commutative semiring Z of integers.

Idempotent semirings are special to semiring theory as any ring which is idempotent under addition is trivial. One can define a partial order on an idempotent semiring by setting a b whenever a + b = b (or, equivalently, if there exists an x such that a + x = b). It is easy to see that 0 is the least element with respect to this order: 0 a for all a. Addition and multiplication respect the ordering in the sense that a b implies ac bc and ca cb and (a + c) (b + c).

Applications

The (max, +) and (min, +) tropical semirings on the reals, are often used in performance evaluation on discrete event systems. The real numbers then are the "costs" or "arrival time"; the "max" operation corresponds to having to wait for all prerequisites of an events (thus taking the maximal time) while the "min" operation corresponds to being able to choose the best, less costly choice; and + corresponds to accumulation along the same path.

The Floyd–Warshall algorithm for shortest paths can thus be reformulated as a computation over a (min, +) algebra. Similarly, the Viterbi algorithm for finding the most probable state sequence corresponding to an observation sequence in a Hidden Markov model can also be formulated as a computation over a (max, ×) algebra on probabilities. These dynamic programming algorithms rely on the distributive property of their associated semirings to compute quantities over a large (possibly exponential) number of terms more efficiently than enumerating each of them.

Complete and continuous semirings

A complete semiring is a semiring for which the addition monoid is a complete monoid, meaning that it has an infinitary sum operation ΣI for any index set I and that the following (infinitary) distributive laws must hold:[12][14][15]

Examples of complete semirings include the power set of a monoid under union; the matrix semiring over a complete semiring is complete.[16]

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 bounds property, and for which addition and multiplication respect order and suprema. The semiring N ∪ {∞} with usual addition, multiplication and order extended, is a continuous semiring.[17]

Any continuous semiring is complete:[12] this may be taken as part of the definition.[16]

Star semirings

A star semiring (sometimes spelled as starsemiring) is a semiring with an additional unary operator *,[6][14][18][19] satisfying

Examples of star semirings include:

Further examples:[14]

The first three examples above are also Conway semirings.[14]

Complete star semirings

We define a notion of complete star semiring in which 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:[14]

where and for

Examples of complete star semirings include the first three classes of examples in the previous section: the binary relations semiring; the formal languages semiring and the extended non-negative reals.[14]

In general, every complete star semiring is also a Conway semiring,[22] but the converse does not hold. An example of Conway semiring that is not complete is the set of extended non-negative rational numbers ({x ∈ Q | x ≥ 0} ∪ {∞}) 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).[14]

Further generalizations

A generalization of semirings does not require the existence of a multiplicative identity, so that multiplication is a semigroup rather than a monoid. Such structures are called hemirings[23] or pre-semirings.[24] A further generalization are left-pre-semirings,[25] which additionally do not require right-distributivity (or right-pre-semirings, which do not require left-distributivity).

Yet a further generalization are near-semirings: in addition to not requiring a neutral element for product, or right-distributivity (or left-distributivity), they do not require addition to be commutative. Just as cardinal numbers form a (class) semiring, so do ordinal numbers form a near-ring, when the standard ordinal addition and multiplication are taken into account. However, the class of ordinals can be turned into a semiring by considering the so-called natural (or Hessenberg) operations instead.

In category theory, a 2-rig is a category with functorial operations analogous to those of a rig. That the cardinal numbers form a rig can be categorified to say that the category of sets (or more generally, any topos) is a 2-rig.

Semiring of sets

A semiring (of sets)[26] is a non-empty collection S of sets such that

  1. If and then .
  2. If and then there exists a finite number of mutually disjoint sets for such that .

Such semirings are used in measure theory. An example of a semiring of sets is the collection of half-open, half-closed real intervals .

Terminology

The term dioid (for "double monoid") was used by Kuntzman in 1972 to denote what is now termed semiring.[27] The use to mean idempotent subgroup was introduced by Baccelli et al. in 1992.[28] The name "dioid" is also sometimes used to denote naturally ordered semirings.[29]

See also

Notes

Citations

  1. Głazek (2002) p.7
  2. Berstel & Perrin (1985), p. 26
  3. 1 2 3 4 5 Lothaire (2005) p.211
  4. Sakarovitch (2009) pp.27–28
  5. Lothaire (2005) p.212
  6. 1 2 3 4 5 Ésik, Zoltán (2008). "Iteration semirings". In Ito, Masami. Developments in language theory. 12th international conference, DLT 2008, Kyoto, Japan, September 16–19, 2008. Proceedings. Lecture Notes in Computer Science. 5257. Berlin: Springer-Verlag. pp. 1–20. ISBN 978-3-540-85779-2. Zbl 1161.68598. doi:10.1007/978-3-540-85780-8_1.
  7. 1 2 3 Guterman, Alexander E. (2008). "Rank and determinant functions for matrices over semirings". In Young, Nicholas; Choi, Yemon. Surveys in Contemporary Mathematics. London Mathematical Society Lecture Note Series. 347. Cambridge University Press. pp. 1–33. ISBN 0-521-70564-9. ISSN 0076-0552. Zbl 1181.16042.
  8. 1 2 3 Sakarovitch (2009) p.28
  9. 1 2 3 Berstel & Reutenauer (2011) p. 4
  10. Schanuel S.H. (1991) Negative sets have Euler characteristic and dimension. In: Carboni A., Pedicchio M.C., Rosolini G. (eds) Category Theory. Lecture Notes in Mathematics, vol 1488. Springer, Berlin, Heidelberg
  11. Speyer, David; Sturmfels, Bernd (2009) [2004]. "Tropical Mathematics". Math. Mag. 82 (3): 163–173. Zbl 1227.14051. arXiv:math/0408099Freely accessible. doi:10.4169/193009809x468760.
  12. 1 2 3 Kuich, Werner (2011). "Algebraic systems and pushdown automata". In Kuich, Werner. Algebraic foundations in computer science. Essays dedicated to Symeon Bozapalidis on the occasion of his retirement. Lecture Notes in Computer Science. 7020. Berlin: Springer-Verlag. pp. 228–256. ISBN 978-3-642-24896-2. Zbl 1251.68135.
  13. Bard, Gregory V. (2009), Algebraic Cryptanalysis, Springer, Section 4.2.1, "Combinatorial Classes", ff., pp. 30–34, ISBN 9780387887579.
  14. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Droste, M., & Kuich, W. (2009). Semirings and Formal Power Series. Handbook of Weighted Automata, 3–28. doi:10.1007/978-3-642-01492-5_1, pp. 7-10
  15. Kuich, Werner (1990). "ω-continuous semirings, algebraic systems and pushdown automata". In Paterson, Michael S. Automata, Languages and Programming: 17th International Colloquium, Warwick University, England, July 16-20, 1990, Proceedings. Lecture Notes in Computer Science. 443. Springer-Verlag. pp. 103–110. ISBN 3-540-52826-1.
  16. 1 2 Sakaraovich (2009) p.471
  17. Ésik, Zoltán; Leiß, Hans (2002). "Greibach normal form in algebraically complete semirings". In Bradfield, Julian. Computer science logic. 16th international workshop, CSL 2002, 11th annual conference of the EACSL, Edinburgh, Scotland, September 22-25, 2002. Proceedings. Lecture Notes in Computer Science. 2471. Berlin: Springer-Verlag. pp. 135–150. Zbl 1020.68056.
  18. Lehmann, Daniel J. "Algebraic structures for transitive closure." Theoretical Computer Science 4, no. 1 (1977): 59-76.
  19. Berstel & Reutenauer (2011) p.27
  20. Ésik, Zoltán; Kuich, Werner (2004). "Equational axioms for a theory of automata". In Martín-Vide, Carlos. Formal languages and applications. Studies in Fuzziness and Soft Computing. 148. Berlin: Springer-Verlag. pp. 183–196. ISBN 3-540-20907-7. Zbl 1088.68117.
  21. Conway, J.H. (1971). Regular algebra and finite machines. London: Chapman and Hall. ISBN 0-412-10620-5. Zbl 0231.94041.
  22. Droste, M., & Kuich, W. (2009). Semirings and Formal Power Series. Handbook of Weighted Automata, 3–28. doi:10.1007/978-3-642-01492-5_1, Theorem 3.4 p. 15
  23. Jonathan S. Golan, Semirings and their applications, Chapter 1, p1
  24. Michel Gondran, Michel Minoux, Graphs, Dioids, and Semirings: New Models and Algorithms, Chapter 1, Section 4.2, p22
  25. Michel Gondran, Michel Minoux, Graphs, Dioids, and Semirings: New Models and Algorithms, Chapter 1, Section 4.1, p20
  26. Noel Vaillant, Caratheodory's Extension, on probability.net.
  27. Kuntzmann, J. (1972). Théorie des réseaux (graphes) (in French). Paris: Dunod. Zbl 0239.05101.
  28. Baccelli, François Louis; Olsder, Geert Jan; Quadrat, Jean-Pierre; Cohen, Guy (1992). Synchronization and linearity. An algebra for discrete event systems. Wiley Series on Probability and Mathematical Statistics. Chichester: Wiley. Zbl 0824.93003.
  29. Semirings for breakfast, slide 17

Sources

Further reading

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.