fbpx
Wikipedia

Semiring

In abstract algebra, a semiring is an algebraic structure. It is a generalization of a ring, dropping the requirement that each element must have an additive inverse. At the same time, it is a generalization of bounded distributive lattices.

The smallest semiring that is not a ring is the two-element Boolean algebra, e.g. with logical disjunction as addition. A motivating example that is neither a ring nor a lattice is the set of natural numbers under ordinary addition and multiplication, when including the number zero. Semirings are abundant, because a suitable multiplication operation arises as the function composition of endomorphism over any commutative monoid.

The theory of (associative) algebras over commutative rings can be generalized to one over commutative semirings.[citation needed]

Terminology edit

Some authors call semiring the structure without the requirement for there to be a   or  . 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.[1][a] This originated as a joke, suggesting that rigs are rings without negative elements. (And this is similar to using rng to mean a ring without a multiplicative identity.)

The term dioid (for "double monoid") has been used to mean semirings or other structures. It was used by Kuntzman in 1972 to denote a semiring.[2] (It is alternatively sometimes used for naturally ordered semirings[3] but the term was also used for idempotent subgroups by Baccelli et al. in 1992.[4])

Definition edit

A semiring is a set   equipped with two binary operations   and   called addition and multiplication, such that:[5][6][7]

  •   is a monoid with identity element called  :
    •  
    •  
  •   is a monoid with identity element called  :
    •  
    •  
  • Addition is commutative:
    •  
  • Multiplication by the additive identity   annihilates  :
    •  
  • Multiplication left- and right-distributes over addition:
    •  
    •  

Explicitly stated,   is a commutative monoid.

Notation edit

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 edit

The zero ring with underlying set   is also a semiring, called the trivial semiring. This triviality can be characterized via   and so   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. The set   equipped with the operations inherited from a semiring  , 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 and multiplication rules of matrices. Yet more abstractly, 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 mulitplicative 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 divisors. 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 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 and the formal polynomials   over its words form another semiring. For small sets, the generating elements are conventionally used to denote the polynomial semiring. For example, in case of a singleton   such that  , one writes  . Zerosumfree sub-semirings of   can be used to determine sub-semirings of  .

Given a set  , not necessarily just a singleton, adjoining a default element to the set underlying a semiring   one may define the semiring of partial functions from   to  .

Given a derivation   on a semiring  , another semiring with multiplication " " fulfilling   may be established.[clarification needed]

The above is by no means an exhaustive list of systematic constructions.

Derivations edit

Derivations on a semiring   are the maps   with   and  .

For example, if   is the   unit matrix and  , then the subset of   given by the matrices   with   is a semiring with derivation  .

Properties edit

A basic property of semirings is that   is not a left or right zero divisor, and that   but also   squares to itself, i.e. these have  .

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   defined as  , here defined for the addition operation, always constitutes the right canonical preorder relation. Reflexivity   is witnessed by the identity. Further,   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  , 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 edit

Any field is also a semifield, which in turn is a semiring in which also multiplicative inverses exist.

Rings edit

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  , the additive inverse of  , squares to  . As additive differences   always exist in a ring,   is a trivial binary relation in a ring.

Commutative semirings edit

A semiring is called a commutative semiring if also the multiplication is commutative.[8] Its axioms can be stated concisely: It consists of two commutative monoids   and   on one set such that   and  .

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   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 edit

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   resp.  . By irreflexivity of a strict order, if   is a left zero divisor, then   is false. The non-negative elements are characterized by  , which is then written  .

Generally, the strict total order can be negated to define an associated partial order. The asymmetry of the former manifests as  . In fact in classical mathematics the latter is a (non-strict) total order and such that   implies  . 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 " " 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 " ".

Additively idempotent semirings edit

A semiring in which every element is an additive idempotent, that is,   for all elements  , is called an (additively) idempotent semiring.[9] Establishing   suffices. Be aware that sometimes this is just called idempotent semiring, regardless of rules for multiplication.

In such a semiring,   is equivalent to   and always constitutes a partial order, here now denoted  . In particular, here  . 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   implies  , and furthermore implies   as well as  , for all   and  .

If   is addtively idempotent, then so are the polynomials in  .

A semiring such that there is a lattice structure on its underlying set is lattice-ordered if the sum coincides with the meet,  , and the product lies beneath the join  . The lattice-ordered semiring of ideals on a semiring is not necessarily distributive with respect to the lattice structure.

More strictly than just additive idempotence, a semiring is called simple iff   for all  . Then also   and   for all  . Here   then functions akin to an additively infinite element. If   is an additively idempotent semiring, then   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   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,  , 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 edit

In a model of the ring  , one can define a non-trivial positivity predicate   and a predicate   as   that constitutes a strict total order, which fulfills properties such as  , 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   is mutually exclusive with  .

But beyond just ordered fields, the four properties listed below are also still valid in many sub-semirings of  , 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

  •  
  •  

In particular,   and so squaring of elements preserves positivity.

Take note of two more properties that are always valid in a ring. Firstly, trivially   for any  . In particular, the positive additive difference existence can be expressed as

  •  

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  , all squares are proven non-negative. Consequently, non-trivial rings have a positive multiplicative unit,

  •  

Having discussed a strict order, it follows that   and  , etc.

Discretely ordered semirings edit

There are a few conflicting notions of discreteness in order theory. Given some strict order on a semiring, one such notion is given by   being positive and covering  , i.e. there being no element   between the units,  . 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   the theory of a commutative, discretly ordered semiring also validating the above four properties relating a strict order with the algebraic structure. All of its models have the model   as its initial segment and Gödel incompleteness and Tarski undefinability already apply to  . The non-negative elements of a commutative, discretely ordered ring always validate the axioms of  . So a slightly more exotic model of the theory is given by the positive elements in the polynomial ring  , with positivity predicate for   defined in terms of the last non-zero coefficient,  , and   as above. While   proves all  -sentences that are true about  , beyond this complexity one can find simple such statements that are independent of  . For example, while  -sentences true about   are still true for the other model just defined, inspection of the polynomial   demonstrates  -independence of the  -claim that all numbers are of the form   or   ("odd or even"). Showing that also   can be discretely ordered demonstrates that the  -claim   for non-zero   ("no rational squared equals  ") is independent. Likewise, analysis for   demonstrates independence of some statements about factorization true in  . There are   characterizations of primality that   does not validate for the number  .

In the other direction, from any model of   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   covers  . 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   can be defined from  . This, in effect, adds all the inverses and then the preorder is again trivial in that  .

Beyond the size of the two-element algebra, no simple semiring starts out with the units. Being discretly ordered also stands in contrast to, e.g., the standard ordering on the semiring of non-negative rationals  , which is dense between the units. For another example,   can be ordered, but not discretely so.

Natural numbers edit

  plus mathematical induction gives a theory equivalent to first-order Peano arithmetic  . The theory is also famously not categorical, but   is of course the intended model.   proves that there are no zero divisors and it is zerosumfree and so no model of it is a ring.

The standard axiomatization of   is more concise and the theory of its order is commonly treated in terms of the non-strict " ". However, just removing the potent induction principle from that axiomatization does not leave a workable algebraic theory. Indeed, even Robinson arithmetic  , which removes induction but adds back the predecessor existence postulate, does not prove the monoid axiom  .

Complete semirings edit

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

 

Examples of a complete semiring are the power set of a monoid under union and the matrix semiring over a complete semiring.[13] For commutative, additively idempotent and simple semirings, this property is related to residuated lattices.

Continuous semirings edit

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   with usual addition, multiplication and order extended is a continuous semiring.[14]

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

Star semirings edit

A star semiring (sometimes spelled starsemiring) is a semiring with an additional unary operator  ,[9][11][15][16] satisfying

 

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.[11]

Complete star semirings edit

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:[11]

 

where

 

Note that star semirings are not related to *-algebra, where the star operation should instead be thought of as complex conjugation.

Conway semiring edit

A Conway semiring is a star semiring satisfying the sum-star and product-star equations:[9][17]

 
Every complete star semiring is also a Conway semiring,[18] but the converse does not hold. An example of Conway semiring that is not complete is the set of extended non-negative rational numbers   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).[11]

An iteration semiring is a Conway semiring satisfying the Conway group axioms,[9] associated by John Conway to groups in star-semirings.[19]

Examples edit

  • By definition, any ring and any semifield is also a semiring.
  • The non-negative elements of a commutative, discretely ordered ring form a commutative, discretely (in the sense defined above) ordered semiring. This includes the non-negative integers  .
  • Also the non-negative rational numbers as well as the non-negative real numbers form commutative, ordered semirings.[20][21][22] The latter is called probability semiring.[6] Neither are rings or distributive lattices. These examples also have multiplicative inverses.
  • New semirings can conditionally be constructed from existing ones, as described. The extended natural numbers   with addition and multiplication extended so that  .[21]
  • The set of polynomials with natural number coefficients, denoted   forms a commutative semiring. In fact, this is the free commutative semiring on a single generator   Also polynomials with coefficients in other semirings may be defined, as discussed.
  • The non-negative terminating fractions  , in a positional number system to a given base  , form a sub-semiring of the rationals. One has  ‍ if   divides  . For  , the set   is the ring of all terminating fractions to base   and is dense in  .
  • The log semiring on   with addition given by   with multiplication   zero element   and unit element  [6]

Similarly, in the presence of an appropriate order with bottom element,

  • Tropical semirings are variously defined. The max-plus semiring   is a commutative semiring with   serving as semiring addition (identity  ) and ordinary addition (identity 0) serving as semiring multiplication. In an alternative formulation, the tropical semiring is   and min replaces max as the addition operation.[23] A related version has   as the underlying set.[6][10] They are an active area of research, linking algebraic varieties with piecewise linear structures.[24]
  • The Łukasiewicz semiring: the closed interval   with addition of   and   given by taking the maximum of the arguments ( ) and multiplication of   and   given by   appears in multi-valued logic.[11]
  • The Viterbi semiring is also defined over the base set   and has the maximum as its addition, but its multiplication is the usual multiplication of real numbers. It appears in probabilistic parsing.[11]

Note that  . More regarding additively idempotent semirings,

  • The set of all ideals of a given semiring form a semiring under addition and multiplication of ideals.
  • Any bounded, distributive lattice is a commutative, semiring under join and meet. A Boolean algebra is a special case of these. A Boolean ring is also a semiring (indeed, a ring) but it is not idempotent under addition. A Boolean semiring is a semiring isomorphic to a sub-semiring of a Boolean algebra.[20]
  • The commutative semiring formed by the two-element Boolean algebra and defined by  . It is also called the Boolean semiring.[6][21][22][9] Now given two sets   and   binary relations between   and   correspond to matrices indexed by   and   with entries in the Boolean semiring, matrix addition corresponds to union of relations, and matrix multiplication corresponds to composition of relations.[25]
  • Any unital quantale is a semiring under join and multiplication.
  • A normal skew lattice in a ring   is a semiring for the operations multiplication and nabla, where the latter operation is defined by  

More using monoids,

  • The construction of semirings   from a commutative monoid   has been described. As noted, give a semiring  , the   matrices form another semiring. For example, the matrices with non-negative entries,   form a matrix semiring.[20]
  • Given an alphabet (finite set) Σ, the set of formal languages over   (subsets of  ) is a semiring with product induced by string concatenation   and addition as the union of languages (that is, ordinary union as sets). The zero of this semiring is the empty set (empty language) and the semiring's unit is the language containing only the empty string.[11]
  • Generalizing the previous example (by viewing   as the free monoid over  ), take   to be any monoid; the power set   of all subsets of   forms a semiring under set-theoretic union as addition and set-wise multiplication:  [22]
  • Similarly, if   is a monoid, then the set of finite multisets in   forms a semiring. That is, an element is a function  ; given an element of   the function tells you how many times that element occurs in the multiset it represents. The additive unit is the constant zero function. The multiplicative unit is the function mapping   to   and all other elements of   to   The sum is given by   and the product is given by  

Regarding sets and similar abstractions,

  • Given a set   the set of binary relations over   is a semiring with addition the union (of relations as sets) and multiplication the composition of relations. The semiring's zero is the empty relation and its unit is the identity relation.[11] These relations correspond to the matrix semiring (indeed, matrix semialgebra) of square matrices indexed by   with entries in the Boolean semiring, and then addition and multiplication are the usual matrix operations, while zero and the unit are the usual zero matrix and identity matrix.
  • The set of cardinal numbers smaller than any given infinite cardinal form a semiring under cardinal addition and multiplication. The class of all cardinals of an inner model form a (class) semiring under (inner model) cardinal addition and multiplication.
  • The family of (isomorphism equivalence classes of) combinatorial classes (sets of countably many objects with non-negative integer sizes such that there are finitely many objects of each size) with the empty class as the zero object, the class consisting only of the empty set as the unit, disjoint union of classes as addition, and Cartesian product of classes as multiplication.[26]
  • Isomorphism classes of objects in any distributive category, under coproduct and product operations, form a semiring known as a Burnside rig.[27] A Burnside rig is a ring if and only if the category is trivial.

Semiring of sets edit

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

  1.  
    • If (3) holds, then   if and only if  
  2. If   then  
  3. If   then there exists a finite number of mutually disjoint sets   such that  

Conditions (2) and (3) together with   imply 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  

A semialgebra[29] or elementary family[30] is a collection   of subsets of   satisfying the semiring properties except with (3) replaced with:

  • If   then there exists a finite number of mutually disjoint sets   such that  

This condition is stronger than (3), which can be seen as follows. If   is a semialgebra and  , then we can write   for disjoint  . Then:

 

and every   since it is closed under intersection, and disjoint since they are contained in the disjoint  's. Moreover, the condition is strictly stronger: any   that is both a ring and a semialgebra is an algebra, hence any ring that is not an algebra is also not a semialgebra (e.g. the collection of finite sets on an infinite set  ).

Star semirings edit

Several structures mentioned above can be equipped with a star operation.

  • The aforementioned semiring of binary relations over some base set   in which   for all   This star operation is actually the reflexive and transitive closure of   (that is, the smallest reflexive and transitive binary relation over   containing  ).[11]
  • The semiring of formal languages is also a complete star semiring, with the star operation coinciding with the Kleene star (for sets/languages).[11]
  • The set of non-negative extended reals   together with the usual addition and multiplication of reals is a complete star semiring with the star operation given by   for   (that is, the geometric series) and   for  [11]
  • The Boolean semiring with  [b][11]
  • The semiring on   with extended addition and multiplication, and   for  [b][11]

Applications edit

The   and   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   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   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.[31][32]

Generalizations edit

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[33] or pre-semirings.[34] A further generalization are left-pre-semirings,[35] 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-semiring, 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.

See also edit

  • Ring of sets – Family closed under unions and relative complements
  • Valuation algebra – Algebra describing information processing

Notes edit

  1. ^ For an example see the definition of rig on Proofwiki.org
  2. ^ a b This is a complete star semiring and thus also a Conway semiring.[11]

Citations edit

  1. ^ Głazek (2002), p. 7
  2. ^ Kuntzmann, J. (1972). Théorie des réseaux (graphes) (in French). Paris: Dunod. Zbl 0239.05101.
  3. ^ Semirings for breakfast, slide 17
  4. ^ 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.
  5. ^ Berstel & Perrin (1985), p. 26
  6. ^ a b c d e Lothaire (2005), p. 211
  7. ^ Sakarovitch (2009), pp. 27–28
  8. ^ Lothaire (2005), p. 212
  9. ^ a b c d e Ésik, Zoltán (2008). "Iteration semirings". In Ito, Masami (ed.). Developments in language theory. 12th international conference, DLT 2008, Kyoto, Japan, September 16–19, 2008. Proceedings. Lecture Notes in Computer Science. Vol. 5257. Berlin: Springer-Verlag. pp. 1–20. doi:10.1007/978-3-540-85780-8_1. ISBN 978-3-540-85779-2. Zbl 1161.68598.
  10. ^ a b c Kuich, Werner (2011). "Algebraic systems and pushdown automata". In Kuich, Werner (ed.). Algebraic foundations in computer science. Essays dedicated to Symeon Bozapalidis on the occasion of his retirement. Lecture Notes in Computer Science. Vol. 7020. Berlin: Springer-Verlag. pp. 228–256. ISBN 978-3-642-24896-2. Zbl 1251.68135.
  11. ^ a b c d e f g h i j k l m n o Droste & Kuich (2009), pp. 7–10
  12. ^ Kuich, Werner (1990). "ω-continuous semirings, algebraic systems and pushdown automata". In Paterson, Michael S. (ed.). Automata, Languages and Programming: 17th International Colloquium, Warwick University, England, July 16–20, 1990, Proceedings. Lecture Notes in Computer Science. Vol. 443. Springer-Verlag. pp. 103–110. ISBN 3-540-52826-1.
  13. ^ a b Sakaraovich (2009), p. 471
  14. ^ Ésik, Zoltán; Leiß, Hans (2002). "Greibach normal form in algebraically complete semirings". In Bradfield, Julian (ed.). 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. Vol. 2471. Berlin: Springer-Verlag. pp. 135–150. Zbl 1020.68056.
  15. ^ Lehmann, Daniel J. (1977), "Algebraic structures for transitive closure", Theoretical Computer Science, 4 (1): 59–76
  16. ^ Berstel & Reutenauer (2011), p. 27
  17. ^ Ésik, Zoltán; Kuich, Werner (2004). "Equational axioms for a theory of automata". In Martín-Vide, Carlos (ed.). Formal languages and applications. Studies in Fuzziness and Soft Computing. Vol. 148. Berlin: Springer-Verlag. pp. 183–196. ISBN 3-540-20907-7. Zbl 1088.68117.
  18. ^ Droste & Kuich (2009), p. 15, Theorem 3.4
  19. ^ Conway, J.H. (1971). Regular algebra and finite machines. London: Chapman and Hall. ISBN 0-412-10620-5. Zbl 0231.94041.
  20. ^ a b c Guterman, Alexander E. (2008). "Rank and determinant functions for matrices over semirings". In Young, Nicholas; Choi, Yemon (eds.). Surveys in Contemporary Mathematics. London Mathematical Society Lecture Note Series. Vol. 347. Cambridge University Press. pp. 1–33. ISBN 978-0-521-70564-6. ISSN 0076-0552. Zbl 1181.16042.
  21. ^ a b c Sakarovitch (2009), p. 28.
  22. ^ a b c Berstel & Reutenauer (2011), p. 4
  23. ^
semiring, abstract, algebra, semiring, algebraic, structure, generalization, ring, dropping, requirement, that, each, element, must, have, additive, inverse, same, time, generalization, bounded, distributive, lattices, smallest, semiring, that, ring, element, . In abstract algebra a semiring is an algebraic structure It is a generalization of a ring dropping the requirement that each element must have an additive inverse At the same time it is a generalization of bounded distributive lattices The smallest semiring that is not a ring is the two element Boolean algebra e g with logical disjunction displaystyle lor as addition A motivating example that is neither a ring nor a lattice is the set of natural numbers N displaystyle mathbb N under ordinary addition and multiplication when including the number zero Semirings are abundant because a suitable multiplication operation arises as the function composition of endomorphism over any commutative monoid The theory of associative algebras over commutative rings can be generalized to one over commutative semirings citation needed Contents 1 Terminology 2 Definition 2 1 Notation 3 Construction of new semirings 3 1 Derivations 4 Properties 4 1 Semifields 4 2 Rings 4 3 Commutative semirings 4 4 Ordered semirings 4 4 1 Additively idempotent semirings 4 4 2 Number lines 4 4 3 Discretely ordered semirings 4 4 4 Natural numbers 4 5 Complete semirings 4 5 1 Continuous semirings 4 6 Star semirings 4 6 1 Complete star semirings 4 6 2 Conway semiring 5 Examples 5 1 Semiring of sets 5 2 Star semirings 6 Applications 7 Generalizations 8 See also 9 Notes 10 Citations 11 Bibliography 12 Further readingTerminology editSome authors call semiring the structure without the requirement for there to be a 0 displaystyle 0 nbsp or 1 displaystyle 1 nbsp 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 1 a This originated as a joke suggesting that rigs are rings without negative elements And this is similar to using rng to mean a ring without a multiplicative identity The term dioid for double monoid has been used to mean semirings or other structures It was used by Kuntzman in 1972 to denote a semiring 2 It is alternatively sometimes used for naturally ordered semirings 3 but the term was also used for idempotent subgroups by Baccelli et al in 1992 4 Definition editA semiring is a set R displaystyle R nbsp equipped with two binary operations displaystyle nbsp and displaystyle cdot nbsp called addition and multiplication such that 5 6 7 R displaystyle R nbsp is a monoid with identity element called 0 displaystyle 0 nbsp a b c a b c displaystyle a b c a b c nbsp 0 a a a 0 displaystyle 0 a a a 0 nbsp R displaystyle R cdot nbsp is a monoid with identity element called 1 displaystyle 1 nbsp a b c a b c displaystyle a cdot b cdot c a cdot b cdot c nbsp 1 a a a 1 displaystyle 1 cdot a a a cdot 1 nbsp Addition is commutative a b b a displaystyle a b b a nbsp Multiplication by the additive identity 0 displaystyle 0 nbsp annihilates R displaystyle R nbsp a 0 0 0 a displaystyle a cdot 0 0 0 cdot a nbsp Multiplication left and right distributes over addition a b c a b a c displaystyle a cdot b c a cdot b a cdot c nbsp b c a b a c a displaystyle b c cdot a b cdot a c cdot a nbsp Explicitly stated R displaystyle R nbsp is a commutative monoid Notation edit The symbol displaystyle cdot nbsp is usually omitted from the notation that is a b displaystyle a cdot b nbsp is just written a b displaystyle ab nbsp Similarly an order of operations is conventional in which displaystyle cdot nbsp is applied before displaystyle nbsp That is a b c displaystyle a b cdot c nbsp denotes a b c displaystyle a b cdot c nbsp For the purpose of disambiguation one may write 0 R displaystyle 0 R nbsp or 1 R displaystyle 1 R nbsp to emphasize which structure the units at hand belong to If x R displaystyle x in R nbsp is an element of a semiring and n N displaystyle n in mathbb N nbsp then n displaystyle n nbsp times repeated multiplication of x displaystyle x nbsp with itself is denoted x n displaystyle x n nbsp and one similarly writes x n x x x displaystyle x n x x cdots x nbsp for the n displaystyle n nbsp times repeated addition Construction of new semirings editThe zero ring with underlying set 0 displaystyle 0 nbsp is also a semiring called the trivial semiring This triviality can be characterized via 0 1 displaystyle 0 1 nbsp and so 0 1 displaystyle 0 neq 1 nbsp 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 N displaystyle mathbb N nbsp with its arithmetic structure form a semiring The set x R x 0 R p x p 1 R displaystyle x in R mid x 0 R lor exists p x p 1 R nbsp equipped with the operations inherited from a semiring R displaystyle R nbsp is always a sub semiring of R displaystyle R nbsp If M displaystyle M nbsp is a commutative monoid function composition provides the multiplication to form a semiring The set End M displaystyle operatorname End M nbsp of endomorphisms M M displaystyle M to M nbsp forms a semiring where addition is defined from pointwise addition in M displaystyle M nbsp The zero morphism and the identity are the respective neutral elements If M R n displaystyle M R n nbsp with R displaystyle R nbsp a semiring we obtain a semiring that can be associated with the square n n displaystyle n times n nbsp matrices M n R displaystyle mathcal M n R nbsp with coefficients in R displaystyle R nbsp the matrix semiring using ordinary addition and multiplication rules of matrices Yet more abstractly given n N displaystyle n in mathbb N nbsp and R displaystyle R nbsp a semiring M n R displaystyle mathcal M n R nbsp is always a semiring also It is generally non commutative even if R displaystyle R nbsp was commutative Dorroh extensions If R displaystyle R nbsp is a semiring then R N displaystyle R times mathbb N nbsp with pointwise addition and multiplication given by x n y m x y x m y n n m displaystyle langle x n rangle bullet langle y m rangle langle x cdot y x m y n n cdot m rangle nbsp defines another semiring with mulitplicative unit 1 R N 0 R 1 N displaystyle 1 R times mathbb N langle 0 R 1 mathbb N rangle nbsp Very similarly if N displaystyle N nbsp is any sub semiring of R displaystyle R nbsp one may also define a semiring on R N displaystyle R times N nbsp just by replacing the repeated addition in the formula by multiplication Indeed these constructions even work under looser conditions as the structure R displaystyle R nbsp 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 0 displaystyle 0 nbsp to the underlying set and thus obtain such a zerosumfree semiring that also lacks zero divisors In particular now 0 0 0 displaystyle 0 cdot 0 0 nbsp 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 displaystyle infty nbsp resp displaystyle infty nbsp 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 0 1 0 1 displaystyle langle 0 1 cdot langle 0 1 rangle rangle langle bot top lor land langle bot top rangle rangle nbsp Consequently this is the smallest semiring that is not a ring Explicitly it violates the ring axioms as P displaystyle top lor P top nbsp for all P displaystyle P nbsp i e 1 displaystyle 1 nbsp has no additive inverse In the self dual definition the fault is with P displaystyle bot land P bot nbsp This is not to be conflated with the ring Z 2 displaystyle mathbb Z 2 nbsp whose addition functions as xor displaystyle veebar nbsp In the von Neumann model of the naturals 0 w displaystyle 0 omega nbsp 1 w 0 w displaystyle 1 omega 0 omega nbsp and 2 w 0 w 1 w P 1 w displaystyle 2 omega 0 omega 1 omega mathcal P 1 omega nbsp The two element semiring may be presented in terms of the set theoretic union and intersection as P 1 w 1 w displaystyle langle mathcal P 1 omega cup cap langle 1 omega rangle rangle nbsp Now this structure in fact still constitutes a semiring when 1 w displaystyle 1 omega nbsp is replaced by any set whatsoever The ideals on a semiring R displaystyle R nbsp with their standard operations on subset form a lattice ordered simple and zerosumfree semiring The ideals of M n R displaystyle mathcal M n R nbsp are in bijection with the ideals of R displaystyle R nbsp The collection of left ideals of R displaystyle R nbsp and likewise the right ideals also have much of that algebraic structure except that then R displaystyle R nbsp does not function as a two sided multiplicative identity If R displaystyle R nbsp is a semiring and A displaystyle A nbsp is an inhabited set A displaystyle A nbsp denotes the free monoid and the formal polynomials R A displaystyle R A nbsp over its words form another semiring For small sets the generating elements are conventionally used to denote the polynomial semiring For example in case of a singleton A X displaystyle A X nbsp such that A e X X 2 X 3 displaystyle A varepsilon X X 2 X 3 dots nbsp one writes R X displaystyle R X nbsp Zerosumfree sub semirings of R displaystyle R nbsp can be used to determine sub semirings of R A displaystyle R A nbsp Given a set A displaystyle A nbsp not necessarily just a singleton adjoining a default element to the set underlying a semiring R displaystyle R nbsp one may define the semiring of partial functions from A displaystyle A nbsp to R displaystyle R nbsp Given a derivation d displaystyle mathrm d nbsp on a semiring R displaystyle R nbsp another semiring with multiplication displaystyle bullet nbsp fulfilling x y y x d y displaystyle x bullet y y bullet x mathrm d y nbsp may be established clarification needed The above is by no means an exhaustive list of systematic constructions Derivations edit Derivations on a semiring R displaystyle R nbsp are the maps d R R displaystyle mathrm d colon R to R nbsp with d x y d x d y displaystyle mathrm d x y mathrm d x mathrm d y nbsp and d x y d x y x d y displaystyle mathrm d x cdot y mathrm d x cdot y x cdot mathrm d y nbsp For example if E displaystyle E nbsp is the 2 2 displaystyle 2 times 2 nbsp unit matrix and U 0 1 0 0 displaystyle U bigl begin smallmatrix 0 amp 1 0 amp 0 end smallmatrix bigr nbsp then the subset of M 2 R displaystyle mathcal M 2 R nbsp given by the matrices a E b U displaystyle a E b U nbsp with a b R displaystyle a b in R nbsp is a semiring with derivation a E b U b U displaystyle a E b U mapsto b U nbsp Properties editA basic property of semirings is that 1 displaystyle 1 nbsp is not a left or right zero divisor and that 1 displaystyle 1 nbsp but also 0 displaystyle 0 nbsp squares to itself i e these have u 2 u displaystyle u 2 u nbsp 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 pre y displaystyle x leq text pre y nbsp defined as d x d y displaystyle exists d x d y nbsp here defined for the addition operation always constitutes the right canonical preorder relation Reflexivity y pre y displaystyle y leq text pre y nbsp is witnessed by the identity Further 0 pre y displaystyle 0 leq text pre y nbsp 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 displaystyle mathbb N nbsp 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 edit Any field is also a semifield which in turn is a semiring in which also multiplicative inverses exist Rings edit 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 displaystyle 1 nbsp the additive inverse of 1 displaystyle 1 nbsp squares to 1 displaystyle 1 nbsp As additive differences d y x displaystyle d y x nbsp always exist in a ring x pre y displaystyle x leq text pre y nbsp is a trivial binary relation in a ring Commutative semirings edit A semiring is called a commutative semiring if also the multiplication is commutative 8 Its axioms can be stated concisely It consists of two commutative monoids 0 displaystyle langle 0 rangle nbsp and 1 displaystyle langle cdot 1 rangle nbsp on one set such that a 0 0 displaystyle a cdot 0 0 nbsp and a b c a b a c displaystyle a cdot b c a cdot b a cdot c nbsp 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 N displaystyle mathbb N nbsp 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 edit 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 lt x displaystyle 0 lt x nbsp resp x lt 0 displaystyle x lt 0 nbsp By irreflexivity of a strict order if s displaystyle s nbsp is a left zero divisor then s x lt s y displaystyle s cdot x lt s cdot y nbsp is false The non negative elements are characterized by x lt 0 displaystyle neg x lt 0 nbsp which is then written 0 x displaystyle 0 leq x nbsp Generally the strict total order can be negated to define an associated partial order The asymmetry of the former manifests as x lt y x y displaystyle x lt y to x leq y nbsp In fact in classical mathematics the latter is a non strict total order and such that 0 x displaystyle 0 leq x nbsp implies x 0 0 lt x displaystyle x 0 lor 0 lt x nbsp 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 pre displaystyle leq text pre nbsp 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 pre displaystyle leq text pre nbsp Additively idempotent semirings edit A semiring in which every element is an additive idempotent that is x x x displaystyle x x x nbsp for all elements x displaystyle x nbsp is called an additively idempotent semiring 9 Establishing 1 1 1 displaystyle 1 1 1 nbsp suffices Be aware that sometimes this is just called idempotent semiring regardless of rules for multiplication In such a semiring x pre y displaystyle x leq text pre y nbsp is equivalent to x y y displaystyle x y y nbsp and always constitutes a partial order here now denoted x y displaystyle x leq y nbsp In particular here x 0 x 0 displaystyle x leq 0 leftrightarrow x 0 nbsp 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 y displaystyle x leq y nbsp implies x t y t displaystyle x t leq y t nbsp and furthermore implies s x s y displaystyle s cdot x leq s cdot y nbsp as well as x s y s displaystyle x cdot s leq y cdot s nbsp for all x y t displaystyle x y t nbsp and s displaystyle s nbsp If R displaystyle R nbsp is addtively idempotent then so are the polynomials in R X displaystyle R X nbsp A semiring such that there is a lattice structure on its underlying set is lattice ordered if the sum coincides with the meet x y x y displaystyle x y x lor y nbsp and the product lies beneath the join x y x y displaystyle x cdot y leq x land y nbsp The lattice ordered semiring of ideals on 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 displaystyle x 1 1 nbsp for all x displaystyle x nbsp Then also 1 1 1 displaystyle 1 1 1 nbsp and x 1 displaystyle x leq 1 nbsp for all x displaystyle x nbsp Here 1 displaystyle 1 nbsp then functions akin to an additively infinite element If R displaystyle R nbsp is an additively idempotent semiring then x R x 1 1 displaystyle x in R mid x 1 1 nbsp 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 R displaystyle mathbb R cup infty nbsp 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 displaystyle x 2 x nbsp 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 edit In a model of the ring R displaystyle mathbb R nbsp one can define a non trivial positivity predicate 0 lt x displaystyle 0 lt x nbsp and a predicate x lt y displaystyle x lt y nbsp as 0 lt y x displaystyle 0 lt y x nbsp that constitutes a strict total order which fulfills properties such as x lt 0 0 lt x x 0 displaystyle neg x lt 0 lor 0 lt x to x 0 nbsp 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 lt y displaystyle x lt y nbsp is mutually exclusive with d y d 2 x displaystyle exists d y d 2 x nbsp But beyond just ordered fields the four properties listed below are also still valid in many sub semirings of R displaystyle mathbb R nbsp 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 lt y x t lt y t displaystyle x lt y to x t lt y t nbsp x lt y 0 lt s s x lt s y displaystyle x lt y land 0 lt s to s cdot x lt s cdot y nbsp In particular 0 lt y 0 lt s 0 lt s y displaystyle 0 lt y land 0 lt s to 0 lt s cdot y nbsp and so squaring of elements preserves positivity Take note of two more properties that are always valid in a ring Firstly trivially P x pre y displaystyle P to x leq text pre y nbsp for any P displaystyle P nbsp In particular the positive additive difference existence can be expressed as x lt y x pre y displaystyle x lt y to x leq text pre y nbsp 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 displaystyle 1 2 1 nbsp all squares are proven non negative Consequently non trivial rings have a positive multiplicative unit 0 lt 1 displaystyle 0 lt 1 nbsp Having discussed a strict order it follows that 0 1 displaystyle 0 neq 1 nbsp and 1 1 1 displaystyle 1 neq 1 1 nbsp etc Discretely ordered semirings edit 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 displaystyle 1 nbsp being positive and covering 0 displaystyle 0 nbsp i e there being no element x displaystyle x nbsp between the units 0 lt x x lt 1 displaystyle neg 0 lt x land x lt 1 nbsp 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 P A displaystyle mathsf PA nbsp the theory of a commutative discretly ordered semiring also validating the above four properties relating a strict order with the algebraic structure All of its models have the model N displaystyle mathbb N nbsp as its initial segment and Godel incompleteness and Tarski undefinability already apply to P A displaystyle mathsf PA nbsp The non negative elements of a commutative discretely ordered ring always validate the axioms of P A displaystyle mathsf PA nbsp So a slightly more exotic model of the theory is given by the positive elements in the polynomial ring Z X displaystyle mathbb Z X nbsp with positivity predicate for p k 0 n a k X k displaystyle p textstyle sum k 0 n a k X k nbsp defined in terms of the last non zero coefficient 0 lt p 0 lt a n displaystyle 0 lt p 0 lt a n nbsp and p lt q 0 lt q p displaystyle p lt q 0 lt q p nbsp as above While P A displaystyle mathsf PA nbsp proves all S 1 displaystyle Sigma 1 nbsp sentences that are true about N displaystyle mathbb N nbsp beyond this complexity one can find simple such statements that are independent of P A displaystyle mathsf PA nbsp For example while P 1 displaystyle Pi 1 nbsp sentences true about N displaystyle mathbb N nbsp are still true for the other model just defined inspection of the polynomial X displaystyle X nbsp demonstrates P A displaystyle mathsf PA nbsp independence of the P 2 displaystyle Pi 2 nbsp claim that all numbers are of the form 2 q displaystyle 2q nbsp or 2 q 1 displaystyle 2q 1 nbsp odd or even Showing that also Z X Y X 2 2 Y 2 displaystyle mathbb Z X Y X 2 2Y 2 nbsp can be discretely ordered demonstrates that the P 1 displaystyle Pi 1 nbsp claim x 2 2 y 2 displaystyle x 2 neq 2y 2 nbsp for non zero x displaystyle x nbsp no rational squared equals 2 displaystyle 2 nbsp is independent Likewise analysis for Z X Y Z X Z Y 2 displaystyle mathbb Z X Y Z XZ Y 2 nbsp demonstrates independence of some statements about factorization true in N displaystyle mathbb N nbsp There are P A displaystyle mathsf PA nbsp characterizations of primality that P A displaystyle mathsf PA nbsp does not validate for the number 2 displaystyle 2 nbsp In the other direction from any model of P A displaystyle mathsf PA nbsp 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 displaystyle 1 nbsp covers 0 displaystyle 0 nbsp 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 displaystyle mathbb Z nbsp can be defined from N displaystyle mathbb N nbsp This in effect adds all the inverses and then the preorder is again trivial in that x x pre 0 displaystyle forall x x leq text pre 0 nbsp Beyond the size of the two element algebra no simple semiring starts out with the units Being discretly ordered also stands in contrast to e g the standard ordering on the semiring of non negative rationals Q 0 displaystyle mathbb Q geq 0 nbsp which is dense between the units For another example Z X 2 X 2 1 displaystyle mathbb Z X 2X 2 1 nbsp can be ordered but not discretely so Natural numbers edit P A displaystyle mathsf PA nbsp plus mathematical induction gives a theory equivalent to first order Peano arithmetic P A displaystyle mathsf PA nbsp The theory is also famously not categorical but N displaystyle mathbb N nbsp is of course the intended model P A displaystyle mathsf PA nbsp proves that there are no zero divisors and it is zerosumfree and so no model of it is a ring The standard axiomatization of P A displaystyle mathsf PA nbsp is more concise and the theory of its order is commonly treated in terms of the non strict pre displaystyle leq text pre nbsp However just removing the potent induction principle from that axiomatization does not leave a workable algebraic theory Indeed even Robinson arithmetic Q displaystyle mathsf Q nbsp which removes induction but adds back the predecessor existence postulate does not prove the monoid axiom y 0 y y displaystyle forall y 0 y y nbsp Complete semirings edit A complete semiring is a semiring for which the additive monoid is a complete monoid meaning that it has an infinitary sum operation S I displaystyle Sigma I nbsp for any index set I displaystyle I nbsp and that the following infinitary distributive laws must hold 10 11 12 i I a a i a i I a i i I a i a i I a i a displaystyle 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 nbsp Examples of a complete semiring are the power set of a monoid under union and the matrix semiring over a complete semiring 13 For commutative additively idempotent and simple semirings this property is related to residuated lattices Continuous semirings edit 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 displaystyle mathbb N cup infty nbsp with usual addition multiplication and order extended is a continuous semiring 14 Any continuous semiring is complete 10 this may be taken as part of the definition 13 Star semirings edit A star semiring sometimes spelled starsemiring is a semiring with an additional unary operator displaystyle nbsp 9 11 15 16 satisfying a 1 a a 1 a a displaystyle a 1 aa 1 a a nbsp 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 11 Complete star semirings edit 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 11 a j 0 a j displaystyle a textstyle sum j geq 0 a j nbsp where a j 1 j 0 a a j 1 a j 1 a j gt 0 displaystyle a j begin cases 1 amp j 0 a cdot a j 1 a j 1 cdot a amp j gt 0 end cases nbsp Note that star semirings are not related to algebra where the star operation should instead be thought of as complex conjugation Conway semiring edit A Conway semiring is a star semiring satisfying the sum star and product star equations 9 17 a b a b a a b 1 a b a b displaystyle begin aligned a b amp left a b right a ab amp 1 a ba b end aligned nbsp Every complete star semiring is also a Conway semiring 18 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 0 displaystyle mathbb Q geq 0 cup infty nbsp 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 11 An iteration semiring is a Conway semiring satisfying the Conway group axioms 9 associated by John Conway to groups in star semirings 19 Examples editBy definition any ring and any semifield is also a semiring The non negative elements of a commutative discretely ordered ring form a commutative discretely in the sense defined above ordered semiring This includes the non negative integers N displaystyle mathbb N nbsp Also the non negative rational numbers as well as the non negative real numbers form commutative ordered semirings 20 21 22 The latter is called probability semiring 6 Neither are rings or distributive lattices These examples also have multiplicative inverses New semirings can conditionally be constructed from existing ones as described The extended natural numbers N displaystyle mathbb N cup infty nbsp with addition and multiplication extended so that 0 0 displaystyle 0 cdot infty 0 nbsp 21 The set of polynomials with natural number coefficients denoted N x displaystyle mathbb N x nbsp forms a commutative semiring In fact this is the free commutative semiring on a single generator x displaystyle x nbsp Also polynomials with coefficients in other semirings may be defined as discussed The non negative terminating fractions N b N m b n m n N displaystyle tfrac mathbb N b mathbb N left mb n mid m n in mathbb N right nbsp in a positional number system to a given base b N displaystyle b in mathbb N nbsp form a sub semiring of the rationals One has N b N N c N displaystyle tfrac mathbb N b mathbb N subseteq tfrac mathbb N c mathbb N nbsp if b displaystyle b nbsp divides c displaystyle c nbsp For b gt 1 displaystyle b gt 1 nbsp the set Z 0 b Z 0 N b N N 0 b N displaystyle tfrac mathbb Z 0 b mathbb Z 0 tfrac mathbb N b mathbb N cup left tfrac mathbb N 0 b mathbb N right nbsp is the ring of all terminating fractions to base b displaystyle b nbsp and is dense in Q displaystyle mathbb Q nbsp The log semiring on R displaystyle mathbb R cup pm infty nbsp with addition given by x y log e x e y displaystyle x oplus y log left e x e y right nbsp with multiplication displaystyle nbsp zero element displaystyle infty nbsp and unit element 0 displaystyle 0 nbsp 6 Similarly in the presence of an appropriate order with bottom element Tropical semirings are variously defined The max plus semiring R displaystyle mathbb R cup infty nbsp is a commutative semiring with max a b displaystyle max a b nbsp serving as semiring addition identity displaystyle infty nbsp and ordinary addition identity 0 serving as semiring multiplication In an alternative formulation the tropical semiring is R displaystyle mathbb R cup infty nbsp and min replaces max as the addition operation 23 A related version has R displaystyle mathbb R cup pm infty nbsp as the underlying set 6 10 They are an active area of research linking algebraic varieties with piecewise linear structures 24 The Lukasiewicz semiring the closed interval 0 1 displaystyle 0 1 nbsp with addition of a displaystyle a nbsp and b displaystyle b nbsp given by taking the maximum of the arguments max a b displaystyle max a b nbsp and multiplication of a displaystyle a nbsp and b displaystyle b nbsp given by max 0 a b 1 displaystyle max 0 a b 1 nbsp appears in multi valued logic 11 The Viterbi semiring is also defined over the base set 0 1 displaystyle 0 1 nbsp and has the maximum as its addition but its multiplication is the usual multiplication of real numbers It appears in probabilistic parsing 11 Note that max x x x displaystyle max x x x nbsp More regarding additively idempotent semirings The set of all ideals of a given semiring form a semiring under addition and multiplication of ideals Any bounded distributive lattice is a commutative semiring under join and meet A Boolean algebra is a special case of these A Boolean ring is also a semiring indeed a ring but it is not idempotent under addition A Boolean semiring is a semiring isomorphic to a sub semiring of a Boolean algebra 20 The commutative semiring formed by the two element Boolean algebra and defined by 1 1 1 displaystyle 1 1 1 nbsp It is also called the Boolean semiring 6 21 22 9 Now given two sets X displaystyle X nbsp and Y displaystyle Y nbsp binary relations between X displaystyle X nbsp and Y displaystyle Y nbsp correspond to matrices indexed by X displaystyle X nbsp and Y displaystyle Y nbsp with entries in the Boolean semiring matrix addition corresponds to union of relations and matrix multiplication corresponds to composition of relations 25 Any unital quantale is a semiring under join and multiplication A normal skew lattice in a ring R displaystyle R nbsp is a semiring for the operations multiplication and nabla where the latter operation is defined by a b a b b a a b a b a b displaystyle a nabla b a b ba aba bab nbsp More using monoids The construction of semirings End M displaystyle operatorname End M nbsp from a commutative monoid M displaystyle M nbsp has been described As noted give a semiring R displaystyle R nbsp the n n displaystyle n times n nbsp matrices form another semiring For example the matrices with non negative entries M n N displaystyle mathcal M n mathbb N nbsp form a matrix semiring 20 Given an alphabet finite set S the set of formal languages over S displaystyle Sigma nbsp subsets of S displaystyle Sigma nbsp is a semiring with product induced by string concatenation L 1 L 2 w 1 w 2 w 1 L 1 w 2 L 2 displaystyle L 1 cdot L 2 left w 1 w 2 mid w 1 in L 1 w 2 in L 2 right nbsp and addition as the union of languages that is ordinary union as sets The zero of this semiring is the empty set empty language and the semiring s unit is the language containing only the empty string 11 Generalizing the previous example by viewing S displaystyle Sigma nbsp as the free monoid over S displaystyle Sigma nbsp take M displaystyle M nbsp to be any monoid the power set M displaystyle wp M nbsp of all subsets of M displaystyle M nbsp forms a semiring under set theoretic union as addition and set wise multiplication U V u v u U v V displaystyle U cdot V u cdot v mid u in U v in V nbsp 22 Similarly if M e displaystyle M e cdot nbsp is a monoid then the set of finite multisets in M displaystyle M nbsp forms a semiring That is an element is a function f M N displaystyle f mid M to mathbb N nbsp given an element of M displaystyle M nbsp the function tells you how many times that element occurs in the multiset it represents The additive unit is the constant zero function The multiplicative unit is the function mapping e displaystyle e nbsp to 1 displaystyle 1 nbsp and all other elements of M displaystyle M nbsp to 0 displaystyle 0 nbsp The sum is given by f g x f x g x displaystyle f g x f x g x nbsp and the product is given by f g x f y g z y z x displaystyle fg x sum f y g z mid y cdot z x nbsp Regarding sets and similar abstractions Given a set U displaystyle U nbsp the set of binary relations over U displaystyle U nbsp is a semiring with addition the union of relations as sets and multiplication the composition of relations The semiring s zero is the empty relation and its unit is the identity relation 11 These relations correspond to the matrix semiring indeed matrix semialgebra of square matrices indexed by U displaystyle U nbsp with entries in the Boolean semiring and then addition and multiplication are the usual matrix operations while zero and the unit are the usual zero matrix and identity matrix The set of cardinal numbers smaller than any given infinite cardinal form a semiring under cardinal addition and multiplication The class of all cardinals of an inner model form a class semiring under inner model cardinal addition and multiplication The family of isomorphism equivalence classes of combinatorial classes sets of countably many objects with non negative integer sizes such that there are finitely many objects of each size with the empty class as the zero object the class consisting only of the empty set as the unit disjoint union of classes as addition and Cartesian product of classes as multiplication 26 Isomorphism classes of objects in any distributive category under coproduct and product operations form a semiring known as a Burnside rig 27 A Burnside rig is a ring if and only if the category is trivial Semiring of sets edit See also Ring of sets semiring A semiring of sets 28 is a non empty collection S displaystyle mathcal S nbsp of subsets of X displaystyle X nbsp such that S displaystyle varnothing in mathcal S nbsp If 3 holds then S displaystyle varnothing in mathcal S nbsp if and only if S displaystyle mathcal S neq varnothing nbsp If E F S displaystyle E F in mathcal S nbsp then E F S displaystyle E cap F in mathcal S nbsp If E F S displaystyle E F in mathcal S nbsp then there exists a finite number of mutually disjoint sets C 1 C n S displaystyle C 1 ldots C n in mathcal S nbsp such that E F i 1 n C i displaystyle E setminus F bigcup i 1 n C i nbsp Conditions 2 and 3 together with S displaystyle S neq varnothing nbsp imply that S displaystyle varnothing in S nbsp Such semirings are used in measure theory An example of a semiring of sets is the collection of half open half closed real intervals a b R displaystyle a b subset mathbb R nbsp A semialgebra 29 or elementary family 30 is a collection S displaystyle mathcal S nbsp of subsets of X displaystyle X nbsp satisfying the semiring properties except with 3 replaced with If E S displaystyle E in mathcal S nbsp then there exists a finite number of mutually disjoint sets C 1 C n S displaystyle C 1 ldots C n in mathcal S nbsp such that X E i 1 n C i displaystyle X setminus E bigcup i 1 n C i nbsp This condition is stronger than 3 which can be seen as follows If S displaystyle mathcal S nbsp is a semialgebra and E F S displaystyle E F in mathcal S nbsp then we can write F c F 1 F n displaystyle F c F 1 cup cup F n nbsp for disjoint F i S displaystyle F i in S nbsp Then E F E F c E F 1 F n E F 1 E F n displaystyle E setminus F E cap F c E cap F 1 cup cup F n E cap F 1 cup cup E cap F n nbsp and every E F i S displaystyle E cap F i in S nbsp since it is closed under intersection and disjoint since they are contained in the disjoint F i displaystyle F i nbsp s Moreover the condition is strictly stronger any S displaystyle S nbsp that is both a ring and a semialgebra is an algebra hence any ring that is not an algebra is also not a semialgebra e g the collection of finite sets on an infinite set X displaystyle X nbsp Star semirings edit Several structures mentioned above can be equipped with a star operation The aforementioned semiring of binary relations over some base set U displaystyle U nbsp in which R n 0 R n displaystyle R bigcup n geq 0 R n nbsp for all R U U displaystyle R subseteq U times U nbsp This star operation is actually the reflexive and transitive closure of R displaystyle R nbsp that is the smallest reflexive and transitive binary relation over U displaystyle U nbsp containing R displaystyle R nbsp 11 The semiring of formal languages is also a complete star semiring with the star operation coinciding with the Kleene star for sets languages 11 The set of non negative extended reals 0 displaystyle 0 infty nbsp together with the usual addition and multiplication of reals is a complete star semiring with the star operation given by a 1 1 a displaystyle a tfrac 1 1 a nbsp for 0 a lt 1 displaystyle 0 leq a lt 1 nbsp that is the geometric series and a displaystyle a infty nbsp for a 1 displaystyle a geq 1 nbsp 11 The Boolean semiring with 0 1 1 displaystyle 0 1 1 nbsp b 11 The semiring on N displaystyle mathbb N cup infty nbsp with extended addition and multiplication and 0 1 a displaystyle 0 1 a infty nbsp for a 1 displaystyle a geq 1 nbsp b 11 Applications editThe max displaystyle max nbsp and min displaystyle min nbsp 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 displaystyle min nbsp 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 displaystyle max times nbsp 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 31 32 Generalizations editA 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 33 or pre semirings 34 A further generalization are left pre semirings 35 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 semiring 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 See also editRing of sets Family closed under unions and relative complements Valuation algebra Algebra describing information processingPages displaying short descriptions of redirect targetsNotes edit For an example see the definition of rig on Proofwiki org a b This is a complete star semiring and thus also a Conway semiring 11 Citations edit Glazek 2002 p 7 Kuntzmann J 1972 Theorie des reseaux graphes in French Paris Dunod Zbl 0239 05101 Semirings for breakfast slide 17 Baccelli Francois 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 Berstel amp Perrin 1985 p 26 a b c d e Lothaire 2005 p 211 Sakarovitch 2009 pp 27 28 Lothaire 2005 p 212 a b c d e Esik Zoltan 2008 Iteration semirings In Ito Masami ed Developments in language theory 12th international conference DLT 2008 Kyoto Japan September 16 19 2008 Proceedings Lecture Notes in Computer Science Vol 5257 Berlin Springer Verlag pp 1 20 doi 10 1007 978 3 540 85780 8 1 ISBN 978 3 540 85779 2 Zbl 1161 68598 a b c Kuich Werner 2011 Algebraic systems and pushdown automata In Kuich Werner ed Algebraic foundations in computer science Essays dedicated to Symeon Bozapalidis on the occasion of his retirement Lecture Notes in Computer Science Vol 7020 Berlin Springer Verlag pp 228 256 ISBN 978 3 642 24896 2 Zbl 1251 68135 a b c d e f g h i j k l m n o Droste amp Kuich 2009 pp 7 10 Kuich Werner 1990 w continuous semirings algebraic systems and pushdown automata In Paterson Michael S ed Automata Languages and Programming 17th International Colloquium Warwick University England July 16 20 1990 Proceedings Lecture Notes in Computer Science Vol 443 Springer Verlag pp 103 110 ISBN 3 540 52826 1 a b Sakaraovich 2009 p 471sfnp error no target CITEREFSakaraovich2009 help Esik Zoltan Leiss Hans 2002 Greibach normal form in algebraically complete semirings In Bradfield Julian ed 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 Vol 2471 Berlin Springer Verlag pp 135 150 Zbl 1020 68056 Lehmann Daniel J 1977 Algebraic structures for transitive closure Theoretical Computer Science 4 1 59 76 Berstel amp Reutenauer 2011 p 27 Esik Zoltan Kuich Werner 2004 Equational axioms for a theory of automata In Martin Vide Carlos ed Formal languages and applications Studies in Fuzziness and Soft Computing Vol 148 Berlin Springer Verlag pp 183 196 ISBN 3 540 20907 7 Zbl 1088 68117 Droste amp Kuich 2009 p 15 Theorem 3 4 Conway J H 1971 Regular algebra and finite machines London Chapman and Hall ISBN 0 412 10620 5 Zbl 0231 94041 a b c Guterman Alexander E 2008 Rank and determinant functions for matrices over semirings In Young Nicholas Choi Yemon eds Surveys in Contemporary Mathematics London Mathematical Society Lecture Note Series Vol 347 Cambridge University Press pp 1 33 ISBN 978 0 521 70564 6 ISSN 0076 0552 Zbl 1181 16042 a b c Sakarovitch 2009 p 28 a b c Berstel amp Reutenauer 2011 p 4 cite, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.