fbpx
Wikipedia

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.

Tropical semirings are an active area of research, linking algebraic varieties with piecewise linear structures.[2]

Definition

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

  •   is a commutative monoid with identity element  :
    •  
    •  
    •  
  •   is a monoid with identity element  :
    •  
    •  
  • Multiplication left and right distributes over addition:
    •  
    •  
  • Multiplication by   annihilates  :
    •  

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,   is  

Compared to a ring, a semiring omits the requirement for inverses under addition; that is, it requires only a commutative monoid, not a commutative group. In a ring, the additive inverse requirement implies the existence of a multiplicative zero, so here it must be specified explicitly. If a semiring's multiplication is commutative, then it is called a commutative semiring.[6]

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]

Theory

One can generalize the theory of (associative) algebras over commutative rings directly to a theory of algebras over commutative semirings.[citation needed]

A semiring in which every element is an additive idempotent (that is,   for all elements  ) is called an idempotent semiring.[7] Idempotent semirings are specific to semiring theory since any idempotent semiring that is also a ring is in fact trivial.[note 2] One can define a partial order   on an idempotent semiring by setting   whenever   (or, equivalently, if there exists an   such that  ). The least element with respect to this order is   meaning that   for all   Addition and multiplication respect the ordering in the sense that   implies   and   and  

Applications

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.[8][9]

Examples

By definition, any ring is also a semiring. A motivating example of a semiring is the set of natural numbers   (including the number 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.[10][11][12]

In general

  • The set of all ideals of a given ring form an idempotent semiring under addition and multiplication of ideals.
  • Any unital quantale is an idempotent semiring under join and multiplication.
  • Any bounded, distributive lattice is a commutative, idempotent semiring under join and meet.
  • In particular, a Boolean algebra is such a semiring. 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 subsemiring of a Boolean algebra.[10]
  • A normal skew lattice in a ring   is an idempotent semiring for the operations multiplication and nabla, where the latter operation is defined by  
  • Any c-semiring is also a semiring, where addition is idempotent and defined over arbitrary sets.
  • Isomorphism classes of objects in any distributive category, under coproduct and product operations, form a semiring known as a Burnside rig.[13] A Burnside rig is a ring if and only if the category is trivial.

Semiring of sets

A semiring (of sets)[14] 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[15] or elementary family [16] 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  ).

Specific examples

  • The (non-negative) terminating fractions   in a positional number system to a given base   We have  ‍ if   divides   Furthermore,   is the ring of all terminating fractions to base   and is dense in   for  
  • The extended natural numbers   with addition and multiplication extended (and  ).[11]
  • Given a semiring   the matrix semiring   of the square   matrices form a semiring under ordinary addition and multiplication of matrices, and this semiring of matrices is generally non-commutative even though   may be commutative. For example, the matrices with non-negative entries,   form a matrix semiring.[10]
  • If   is a commutative monoid, the set   of endomorphisms   forms a semiring, where addition is pointwise addition and multiplication is function composition. The zero morphism and the identity are the respective neutral elements. If   is the additive monoid of natural numbers we obtain the semiring of natural numbers as   if   with   a semiring, we obtain (after associating each morphism to a matrix) the semiring of square   matrices with coefficients in   and if   is a (commutative) group, then   is a (not necessarily commutative) ring.
  • The Boolean semiring is the commutative semiring   formed by the two-element Boolean algebra and defined by  [4][11][12] It is idempotent[7] and is the simplest example of a semiring that is not a ring. 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.[17]
  • 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.[18] 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 polynomials with natural number coefficients, denoted   forms a commutative semiring. In fact, this is the free commutative semiring on a single generator  
  • Tropical semirings are variously defined. The max-plus semiring  is a commutative, idempotent 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.[19] A related version has   as the underlying set.[4][20]
  • 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 probability semiring of non-negative real numbers under the usual addition and multiplication.[4]
  • The log semiring on   with addition given by
     
    with multiplication   zero element   and unit element  [4]
  • 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.[21]
  • The Łukasiewicz semiring: the closed interval   with addition given by taking the maximum of the arguments ( ) and multiplication   given by   appears in multi-valued logic.[18]
  • 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.[18]
  • 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.[18]
  • 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:  [12]
  • 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  

[2]

Variations

Complete and continuous semirings

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:[20][18][22]

 

Examples of a complete semiring are the power set of a monoid under union and the matrix semiring over a complete semiring.[23]

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

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

Star semirings

A star semiring (sometimes spelled starsemiring) is a semiring with an additional unary operator ,[7][18][25][26] 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.[18]

Complete star semirings

In a complete star semiring, the star operator behaves more like the usual Kleene star: for a complete semiring we use the infinitary sum operator to give the usual definition of the Kleene star:[18]

 
where  

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

Conway semiring

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

 

Every complete star semiring is also a Conway semiring,[28] 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).[18]

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

Examples

Examples of star semirings include:

  • 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  ).[18]
  • the semiring of formal languages is also a complete star semiring, with the star operation coinciding with the Kleene star (for sets/languages).[18]
  • 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  [18]
  • The Boolean semiring with  [a][18]
  • The semiring on   with extended addition and multiplication, and   for  [a][18]


Dioid

The term dioid (for "double monoid") has been used to mean various types of semirings:

  • It was used by Kuntzman in 1972 to denote what is now termed semiring.[30]
  • The use to mean idempotent subgroup was introduced by Baccelli et al. in 1992.[31]
  • The name "dioid" is also sometimes used to denote naturally ordered semirings.[32]

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

Notes

  1. ^ For an example see the definition of rig on Proofwiki.org
  2. ^ i.e. is a ring consisting of just one element, because rings have additive inverses, unlike semirings.
  1. ^ a b This is a complete star semiring and thus also a Conway semiring.[18]

Citations

  1. ^ Głazek (2002) p.7
  2. ^ a b Speyer, David; Sturmfels, Bernd (2009). "Tropical Mathematics". Mathematics Magazine. 82 (3): 163–173. doi:10.1080/0025570X.2009.11953615. ISSN 0025-570X. S2CID 15278805.
  3. ^ Berstel & Perrin (1985), p. 26
  4. ^ a b c d e Lothaire (2005) p.211
  5. ^ Sakarovitch (2009) pp.27–28
  6. ^ Lothaire (2005) p.212
  7. ^ 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.
  8. ^ Pair, Claude (1967), "Sur des algorithmes pour des problèmes de cheminement dans les graphes finis (On algorithms for path problems in finite graphs)", in Rosentiehl (ed.), Théorie des graphes (journées internationales d'études) -- Theory of Graphs (international symposium), Rome (Italy), July 1966: Dunod (Paris) et Gordon and Breach (New York), p. 271{{citation}}: CS1 maint: location (link)
  9. ^ Derniame, Jean Claude; Pair, Claude (1971), Problèmes de cheminement dans les graphes (Path Problems in Graphs), Dunod (Paris)
  10. ^ 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.
  11. ^ a b c Sakarovitch (2009) p.28
  12. ^ a b c Berstel & Reutenauer (2011) p. 4
  13. ^ 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
  14. ^ Noel Vaillant, Caratheodory's Extension, on probability.net.
  15. ^ Durrett 2019, pp. 3–4.
  16. ^ Folland 1999, p. 23.
  17. ^ John C. Baez (6 Nov 2001). "quantum mechanics over a commutative rig". Newsgroup: sci.physics.research. Usenet: 9s87n0$iv5@gap.cco.caltech.edu. Retrieved November 25, 2018.
  18. ^ a b c d e f g h i j k l m n o 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
  19. ^ Speyer, David; Sturmfels, Bernd (2009) [2004]. "Tropical Mathematics". Math. Mag. 82 (3): 163–173. arXiv:math/0408099. doi:10.4169/193009809x468760. S2CID 119142649. Zbl 1227.14051.
  20. ^ 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.
  21. ^ Bard, Gregory V. (2009), Algebraic Cryptanalysis, Springer, Section 4.2.1, "Combinatorial Classes", ff., pp. 30–34, ISBN 9780387887579.
  22. ^ 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.
  23. ^ a b Sakaraovich (2009) p.471
  24. ^ É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.
  25. ^ Lehmann, Daniel J. "Algebraic structures for transitive closure." Theoretical Computer Science 4, no. 1 (1977): 59-76.
  26. ^ Berstel & Reutenauer (2011) p.27
  27. ^ É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.
  28. ^ 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
  29. ^ Conway, J.H. (1971). Regular algebra and finite machines. London: Chapman and Hall. ISBN 0-412-10620-5. Zbl 0231.94041.
  30. ^ Kuntzmann, J. (1972). Théorie des réseaux (graphes) (in French). Paris: Dunod. Zbl 0239.05101.
  31. ^ 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.
  32. ^ Semirings for breakfast, slide 17
  33. ^ Jonathan S. Golan, Semirings and their applications, Chapter 1, p1
  34. ^ Michel Gondran, Michel Minoux, Graphs, Dioids, and Semirings: New Models and Algorithms, Chapter 1, Section 4.2, p22
  35. ^ Michel Gondran, Michel Minoux, Graphs, Dioids, and Semirings: New Models and Algorithms, Chapter 1, Section 4.1, p20

Bibliography

  • Derniame, Jean Claude; Pair, Claude (1971), Problèmes de cheminement dans les graphes (Path Problems in Graphs), Dunod (Paris)
  • François Baccelli, Guy Cohen, Geert Jan Olsder, Jean-Pierre Quadrat, Synchronization and Linearity (online version), Wiley, 1992, ISBN 0-471-93609-X
  • Golan, Jonathan S., Semirings and their applications. Updated and expanded version of The theory of semirings, with applications to mathematics and theoretical computer science (Longman Sci. Tech., Harlow, 1992, MR1163371. Kluwer Academic Publishers, Dordrecht, 1999. xii+381 pp. ISBN 0-7923-5786-8 MR1746739
  • Berstel, Jean; Perrin, Dominique (1985). Theory of codes. Pure and applied mathematics. Vol. 117. Academic Press. ISBN 978-0-12-093420-1. Zbl 0587.68066.
  • Durrett, Richard (2019). Probability: Theory and Examples (PDF). Cambridge Series in Statistical and Probabilistic Mathematics. Vol. 49 (5th ed.). Cambridge New York, NY: Cambridge University Press. ISBN 978-1-108-47368-2. OCLC 1100115281. Retrieved November 5, 2020.
  • Lothaire, M. (2005). Applied combinatorics on words. Encyclopedia of Mathematics and Its Applications. Vol. 105. A collective work by Jean Berstel, Dominique Perrin, Maxime Crochemore, Eric Laporte, Mehryar Mohri, Nadia Pisanti, Marie-France Sagot, Gesine Reinert, Sophie Schbath, Michael Waterman, Philippe Jacquet, Wojciech Szpankowski, Dominique Poulalhon, Gilles Schaeffer, Roman Kolpakov, Gregory Koucherov, Jean-Paul Allouche and Valérie Berthé. Cambridge: Cambridge University Press. ISBN 0-521-84802-4. Zbl 1133.68067.
  • Głazek, Kazimierz (2002). A guide to the literature on semirings and their applications in mathematics and information sciences. With complete bibliography. Dordrecht: Kluwer Academic. ISBN 1-4020-0717-5. Zbl 1072.16040.
  • Sakarovitch, Jacques (2009). Elements of automata theory. Translated from the French by Reuben Thomas. Cambridge: Cambridge University Press. ISBN 978-0-521-84425-3. Zbl 1188.68177.
  • Berstel, Jean; Reutenauer, Christophe (2011). Noncommutative rational series with applications. Encyclopedia of Mathematics and Its Applications. Vol. 137. Cambridge: Cambridge University Press. ISBN 978-0-521-19022-0. Zbl 1250.68007.

Further reading

  • Golan, Jonathan S. (2003). Semirings and Affine Equations over Them. Springer Science & Business Media. ISBN 978-1-4020-1358-4. Zbl 1042.16038.
  • Gondran, Michel; Minoux, Michel (2008). Graphs, Dioids and Semirings: New Models and Algorithms. Operations Research/Computer Science Interfaces Series. Vol. 41. Dordrecht: Springer Science & Business Media. ISBN 978-0-387-75450-5. Zbl 1201.16038.
  • Grillet, Mireille P. (1970). "Green's relations in a semiring". Port. Math. 29: 181–195. Zbl 0227.16029.
  • Gunawardena, Jeremy (1998). "An introduction to idempotency". In Gunawardena, Jeremy (ed.). Idempotency. Based on a workshop, Bristol, UK, October 3–7, 1994 (PDF). Cambridge: Cambridge University Press. pp. 1–49. Zbl 0898.16032.
  • Jipsen, P. (2004). "From semirings to residuated Kleene lattices". Studia Logica. 76 (2): 291–303. doi:10.1023/B:STUD.0000032089.54776.63. S2CID 9946523. Zbl 1045.03049.
  • Steven Dolan (2013) Fun with Semirings, doi:10.1145/2500365.2500613

semiring, abstract, algebra, semiring, algebraic, structure, similar, ring, without, requirement, that, each, element, must, have, additive, inverse, term, also, used, occasionally, this, originated, joke, suggesting, that, rigs, rings, without, negative, elem. 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 Tropical semirings are an active area of research linking algebraic varieties with piecewise linear structures 2 Contents 1 Definition 2 Theory 2 1 Applications 3 Examples 3 1 In general 3 1 1 Semiring of sets 3 2 Specific examples 4 Variations 4 1 Complete and continuous semirings 4 2 Star semirings 4 2 1 Complete star semirings 4 2 2 Conway semiring 4 2 3 Examples 4 3 Dioid 5 Generalizations 6 See also 7 Notes 8 Citations 9 Bibliography 10 Further readingDefinition EditA semiring is a set R displaystyle R equipped with two binary operations displaystyle and displaystyle cdot called addition and multiplication such that 3 4 5 R displaystyle R is a commutative monoid with identity element 0 displaystyle 0 a b c a b c displaystyle a b c a b c 0 a a a 0 displaystyle 0 a a a 0 a b b a displaystyle a b b a R displaystyle R cdot is a monoid with identity element 1 displaystyle 1 a b c a b c displaystyle a cdot b cdot c a cdot b cdot c 1 a a a 1 displaystyle 1 cdot a a a cdot 1 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 a b c a c b c displaystyle a b cdot c a cdot c b cdot c Multiplication by 0 displaystyle 0 annihilates R displaystyle R 0 a 0 a 0 displaystyle 0 cdot a 0 a cdot 0 The symbol displaystyle cdot is usually omitted from the notation that is a b displaystyle a cdot b is just written a b displaystyle ab Similarly an order of operations is conventional in which displaystyle cdot is applied before displaystyle that is a b c displaystyle a bc is a b c displaystyle a bc Compared to a ring a semiring omits the requirement for inverses under addition that is it requires only a commutative monoid not a commutative group In a ring the additive inverse requirement implies the existence of a multiplicative zero so here it must be specified explicitly If a semiring s multiplication is commutative then it is called a commutative semiring 6 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 Theory EditOne can generalize the theory of associative algebras over commutative rings directly to a theory of algebras over commutative semirings citation needed A semiring in which every element is an additive idempotent that is a a a displaystyle a a a for all elements a displaystyle a is called an idempotent semiring 7 Idempotent semirings are specific to semiring theory since any idempotent semiring that is also a ring is in fact trivial note 2 One can define a partial order displaystyle leq on an idempotent semiring by setting a b displaystyle a leq b whenever a b b displaystyle a b b or equivalently if there exists an x displaystyle x such that a x b displaystyle a x b The least element with respect to this order is 0 displaystyle 0 meaning that 0 a displaystyle 0 leq a for all a displaystyle a Addition and multiplication respect the ordering in the sense that a b displaystyle a leq b implies a c b c displaystyle ac leq bc and c a c b displaystyle ca leq cb and a c b c displaystyle a c leq b c Applications Edit The max displaystyle max and min displaystyle 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 displaystyle 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 displaystyle max times 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 8 9 Examples EditBy definition any ring is also a semiring A motivating example of a semiring is the set of natural numbers N displaystyle mathbb N including the number 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 10 11 12 In general Edit The set of all ideals of a given ring form an idempotent semiring under addition and multiplication of ideals Any unital quantale is an idempotent semiring under join and multiplication Any bounded distributive lattice is a commutative idempotent semiring under join and meet In particular a Boolean algebra is such a semiring 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 subsemiring of a Boolean algebra 10 A normal skew lattice in a ring R displaystyle R is an idempotent 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 Any c semiring is also a semiring where addition is idempotent and defined over arbitrary sets Isomorphism classes of objects in any distributive category under coproduct and product operations form a semiring known as a Burnside rig 13 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 14 is a non empty collection S displaystyle mathcal S of subsets of X displaystyle X such that S displaystyle varnothing in mathcal S If 3 holds then S displaystyle varnothing in mathcal S if and only if S displaystyle mathcal S neq varnothing If E F S displaystyle E F in mathcal S then E F S displaystyle E cap F in mathcal S If E F S displaystyle E F in mathcal S then there exists a finite number of mutually disjoint sets C 1 C n S displaystyle C 1 ldots C n in mathcal S such that E F i 1 n C i displaystyle E setminus F bigcup i 1 n C i Conditions 2 and 3 together with S displaystyle S neq varnothing imply that S displaystyle varnothing in S 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 A semialgebra 15 or elementary family 16 is a collection S displaystyle mathcal S of subsets of X displaystyle X satisfying the semiring properties except with 3 replaced with If E S displaystyle E in mathcal S then there exists a finite number of mutually disjoint sets C 1 C n S displaystyle C 1 ldots C n in mathcal S such that X E i 1 n C i displaystyle X setminus E bigcup i 1 n C i This condition is stronger than 3 which can be seen as follows If S displaystyle mathcal S is a semialgebra and E F S displaystyle E F in mathcal S then we can write F c F 1 F n displaystyle F c F 1 cup cup F n for disjoint F i S displaystyle F i in S 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 and every E F i S displaystyle E cap F i in S since it is closed under intersection and disjoint since they are contained in the disjoint F i displaystyle F i s Moreover the condition is strictly stronger any S displaystyle S 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 Specific examples Edit The non negative terminating fractions N 0 b N 0 m b n m n N 0 displaystyle frac mathbb N 0 b mathbb N 0 left mb n m n in mathbb N 0 right in a positional number system to a given base b N displaystyle b in mathbb N We have N 0 b N 0 N 0 c N 0 displaystyle frac mathbb N 0 b mathbb N 0 subseteq frac mathbb N 0 c mathbb N 0 if b displaystyle b divides c displaystyle c Furthermore Z 0 b Z 0 N 0 b N 0 N 0 b N 0 displaystyle frac mathbb Z 0 b mathbb Z 0 frac mathbb N 0 b mathbb N 0 cup left frac mathbb N 0 b mathbb N 0 right is the ring of all terminating fractions to base b displaystyle b and is dense in Q displaystyle mathbb Q for b gt 1 displaystyle b gt 1 The extended natural numbers N displaystyle mathbb N cup infty with addition and multiplication extended and 0 0 displaystyle 0 cdot infty 0 11 Given a semiring S displaystyle S the matrix semiring M n S displaystyle M n S of the square n by n displaystyle n text by n matrices form a semiring under ordinary addition and multiplication of matrices and this semiring of matrices is generally non commutative even though S displaystyle S may be commutative For example the matrices with non negative entries M n N displaystyle M n mathbb N form a matrix semiring 10 If A displaystyle A is a commutative monoid the set End A displaystyle operatorname End A of endomorphisms f A A displaystyle f A to A forms a semiring where addition is pointwise addition and multiplication is function composition The zero morphism and the identity are the respective neutral elements If A displaystyle A is the additive monoid of natural numbers we obtain the semiring of natural numbers as End A displaystyle operatorname End A if A S n displaystyle A S n with S displaystyle S a semiring we obtain after associating each morphism to a matrix the semiring of square n by n displaystyle n text by n matrices with coefficients in S displaystyle S and if A displaystyle A is a commutative group then End A displaystyle operatorname End A is a not necessarily commutative ring The Boolean semiring is the commutative semiring B displaystyle mathbf B formed by the two element Boolean algebra and defined by 1 1 1 displaystyle 1 1 1 4 11 12 It is idempotent 7 and is the simplest example of a semiring that is not a ring Given two sets X displaystyle X and Y displaystyle Y binary relations between X displaystyle X and Y displaystyle Y correspond to matrices indexed by X displaystyle X and Y displaystyle Y with entries in the Boolean semiring matrix addition corresponds to union of relations and matrix multiplication corresponds to composition of relations 17 Given a set U displaystyle U the set of binary relations over U displaystyle U 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 18 These relations correspond to the matrix semiring indeed matrix semialgebra of square matrices indexed by U displaystyle U 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 polynomials with natural number coefficients denoted N x displaystyle mathbb N x forms a commutative semiring In fact this is the free commutative semiring on a single generator x displaystyle x Tropical semirings are variously defined The max plus semiring R displaystyle mathbb R cup infty is a commutative idempotent semiring with max a b displaystyle max a b serving as semiring addition identity displaystyle infty and ordinary addition identity 0 serving as semiring multiplication In an alternative formulation the tropical semiring is R displaystyle mathbb R cup infty and min replaces max as the addition operation 19 A related version has R displaystyle mathbb R cup pm infty as the underlying set 4 20 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 probability semiring of non negative real numbers under the usual addition and multiplication 4 The log semiring on R displaystyle mathbb R cup pm infty with addition given by x y log e x e y displaystyle x oplus y log left e x e y right with multiplication displaystyle zero element displaystyle infty and unit element 0 displaystyle 0 4 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 21 The Lukasiewicz semiring the closed interval 0 1 displaystyle 0 1 with addition given by taking the maximum of the arguments a b max a b displaystyle a b max a b and multiplication a b displaystyle ab given by max 0 a b 1 displaystyle max 0 a b 1 appears in multi valued logic 18 The Viterbi semiring is also defined over the base set 0 1 displaystyle 0 1 and has the maximum as its addition but its multiplication is the usual multiplication of real numbers It appears in probabilistic parsing 18 Given an alphabet finite set S the set of formal languages over S displaystyle Sigma subsets of S displaystyle Sigma 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 w 1 in L 1 w 2 in L 2 right 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 18 Generalizing the previous example by viewing S displaystyle Sigma as the free monoid over S displaystyle Sigma take M displaystyle M to be any monoid the power set M displaystyle wp M of all subsets of M displaystyle M 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 u in U v in V 12 Similarly if M e displaystyle M e cdot is a monoid then the set of finite multisets in M displaystyle M forms a semiring That is an element is a function f M N displaystyle f M to mathbb N given an element of M displaystyle M 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 to 1 displaystyle 1 and all other elements of M displaystyle M to 0 displaystyle 0 The sum is given by f g x f x g x displaystyle f g x f x g x and the product is given by f g x f y g z y z x displaystyle fg x sum f y g z y cdot z x 2 Variations EditComplete and continuous 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 for any index set I displaystyle I and that the following infinitary distributive laws must hold 20 18 22 i I a a i a i I a i i I a i a i I a i a displaystyle sum i in I left a cdot a i right a cdot left sum i in I a i right qquad sum i in I left a i cdot a right left sum i in I a i right cdot a Examples of a complete semiring are the power set of a monoid under union and the matrix semiring over a complete semiring 23 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 with usual addition multiplication and order extended is a continuous semiring 24 Any continuous semiring is complete 20 this may be taken as part of the definition 23 Star semirings Edit A star semiring sometimes spelled starsemiring is a semiring with an additional unary operator 7 18 25 26 satisfyinga 1 a a 1 a a displaystyle a 1 aa 1 a a A Kleene algebra is a star semiring with idempotent addition and some additional axioms They are important in the theory of formal languages and regular expressions 18 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 18 a j 0 a j displaystyle a sum j geq 0 a j 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 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 7 27 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 Every complete star semiring is also a Conway semiring 28 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 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 18 An iteration semiring is a Conway semiring satisfying the Conway group axioms 7 associated by John Conway to groups in star semirings 29 Examples Edit Examples of star semirings include the aforementioned semiring of binary relations over some base set U displaystyle U in which R n 0 R n displaystyle R bigcup n geq 0 R n for all R U U displaystyle R subseteq U times U This star operation is actually the reflexive and transitive closure of R displaystyle R that is the smallest reflexive and transitive binary relation over U displaystyle U containing R displaystyle R 18 the semiring of formal languages is also a complete star semiring with the star operation coinciding with the Kleene star for sets languages 18 The set of non negative extended reals 0 displaystyle 0 infty 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 frac 1 1 a for 0 a lt 1 displaystyle 0 leq a lt 1 that is the geometric series and a displaystyle a infty for a 1 displaystyle a geq 1 18 The Boolean semiring with 0 1 1 displaystyle 0 1 1 a 18 The semiring on N displaystyle mathbb N cup infty with extended addition and multiplication and 0 1 a displaystyle 0 1 a infty for a 1 displaystyle a geq 1 a 18 Dioid Edit The term dioid for double monoid has been used to mean various types of semirings It was used by Kuntzman in 1972 to denote what is now termed semiring 30 The use to mean idempotent subgroup was introduced by Baccelli et al in 1992 31 The name dioid is also sometimes used to denote naturally ordered semirings 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 algebraNotes Edit For an example see the definition of rig on Proofwiki org i e is a ring consisting of just one element because rings have additive inverses unlike semirings a b This is a complete star semiring and thus also a Conway semiring 18 Citations Edit Glazek 2002 p 7 a b Speyer David Sturmfels Bernd 2009 Tropical Mathematics Mathematics Magazine 82 3 163 173 doi 10 1080 0025570X 2009 11953615 ISSN 0025 570X S2CID 15278805 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 Pair Claude 1967 Sur des algorithmes pour des problemes de cheminement dans les graphes finis On algorithms for path problems in finite graphs in Rosentiehl ed Theorie des graphes journees internationales d etudes Theory of Graphs international symposium Rome Italy July 1966 Dunod Paris et Gordon and Breach New York p 271 a href Template Citation html title Template Citation citation a CS1 maint location link Derniame Jean Claude Pair Claude 1971 Problemes de cheminement dans les graphes Path Problems in Graphs Dunod Paris 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 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 Noel Vaillant Caratheodory s Extension on probability net Durrett 2019 pp 3 4 sfn error no target CITEREFDurrett2019 help Folland 1999 p 23 sfn error no target CITEREFFolland1999 help John C Baez 6 Nov 2001 quantum mechanics over a commutative rig Newsgroup sci physics research Usenet 9s87n0 iv5 gap cco caltech edu Retrieved November 25 2018 a b c d e f g h i j k l m n o Droste M amp 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 Speyer David Sturmfels Bernd 2009 2004 Tropical Mathematics Math Mag 82 3 163 173 arXiv math 0408099 doi 10 4169 193009809x468760 S2CID 119142649 Zbl 1227 14051 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 Bard Gregory V 2009 Algebraic Cryptanalysis Springer Section 4 2 1 Combinatorial Classes ff pp 30 34 ISBN 9780387887579 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 471 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 Algebraic structures for transitive closure Theoretical Computer Science 4 no 1 1977 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 M amp 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 Conway J H 1971 Regular algebra and finite machines London Chapman and Hall ISBN 0 412 10620 5 Zbl 0231 94041 Kuntzmann J 1972 Theorie des reseaux graphes in French Paris Dunod Zbl 0239 05101 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 Semirings for breakfast slide 17 Jonathan S Golan Semirings and their applications Chapter 1 p1 Michel Gondran Michel Minoux Graphs Dioids and Semirings New Models and Algorithms Chapter 1 Section 4 2 p22 Michel Gondran Michel Minoux Graphs Dioids and Semirings New Models and Algorithms Chapter 1 Section 4 1 p20Bibliography EditDerniame Jean Claude Pair Claude 1971 Problemes de cheminement dans les graphes Path Problems in Graphs Dunod Paris Francois Baccelli Guy Cohen Geert Jan Olsder Jean Pierre Quadrat Synchronization and Linearity online version Wiley 1992 ISBN 0 471 93609 X Golan Jonathan S Semirings and their applications Updated and expanded version of The theory of semirings with applications to mathematics and theoretical computer science Longman Sci Tech Harlow 1992 MR1163371 Kluwer Academic Publishers Dordrecht 1999 xii 381 pp ISBN 0 7923 5786 8 MR1746739 Berstel Jean Perrin Dominique 1985 Theory of codes Pure and applied mathematics Vol 117 Academic Press ISBN 978 0 12 093420 1 Zbl 0587 68066 Durrett Richard 2019 Probability Theory and Examples PDF Cambridge Series in Statistical and Probabilistic Mathematics Vol 49 5th ed Cambridge New York NY Cambridge University Press ISBN 978 1 108 47368 2 OCLC 1100115281 Retrieved November 5 2020 Lothaire M 2005 Applied combinatorics on words Encyclopedia of Mathematics and Its Applications Vol 105 A collective work by Jean Berstel Dominique Perrin Maxime Crochemore Eric Laporte Mehryar Mohri Nadia Pisanti Marie France Sagot Gesine Reinert Sophie Schbath Michael Waterman Philippe Jacquet Wojciech Szpankowski Dominique Poulalhon Gilles Schaeffer Roman Kolpakov Gregory Koucherov Jean Paul Allouche and Valerie Berthe Cambridge Cambridge University Press ISBN 0 521 84802 4 Zbl 1133 68067 Glazek Kazimierz 2002 A guide to the literature on semirings and their applications in mathematics and information sciences With complete bibliography Dordrecht Kluwer Academic ISBN 1 4020 0717 5 Zbl 1072 16040 Sakarovitch Jacques 2009 Elements of automata theory Translated from the French by Reuben Thomas Cambridge Cambridge University Press ISBN 978 0 521 84425 3 Zbl 1188 68177 Berstel Jean Reutenauer Christophe 2011 Noncommutative rational series with applications Encyclopedia of Mathematics and Its Applications Vol 137 Cambridge Cambridge University Press ISBN 978 0 521 19022 0 Zbl 1250 68007 Further reading EditGolan Jonathan S 2003 Semirings and Affine Equations over Them Springer Science amp Business Media ISBN 978 1 4020 1358 4 Zbl 1042 16038 Gondran Michel Minoux Michel 2008 Graphs Dioids and Semirings New Models and Algorithms Operations Research Computer Science Interfaces Series Vol 41 Dordrecht Springer Science amp Business Media ISBN 978 0 387 75450 5 Zbl 1201 16038 Grillet Mireille P 1970 Green s relations in a semiring Port Math 29 181 195 Zbl 0227 16029 Gunawardena Jeremy 1998 An introduction to idempotency In Gunawardena Jeremy ed Idempotency Based on a workshop Bristol UK October 3 7 1994 PDF Cambridge Cambridge University Press pp 1 49 Zbl 0898 16032 Jipsen P 2004 From semirings to residuated Kleene lattices Studia Logica 76 2 291 303 doi 10 1023 B STUD 0000032089 54776 63 S2CID 9946523 Zbl 1045 03049 Steven Dolan 2013 Fun with Semirings doi 10 1145 2500365 2500613 Retrieved from https en wikipedia org w index php title Semiring amp oldid 1128885774, 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.