From Monoids to Near-Semirings: the Essence of Monadplus and Alternative

Total Page:16

File Type:pdf, Size:1020Kb

From Monoids to Near-Semirings: the Essence of Monadplus and Alternative From monoids to near-semirings: the essence of MonadPlus and Alternative Exequiel Rivas Mauro Jaskelioff Tom Schrijvers CIFASIS-CONICET KU Leuven, Belgium Universidad Nacional de Rosario, Argentina [email protected] jaskelioff@cifasis-conicet.gov.ar [email protected] Abstract 2. The codensity transformation CodT m provides a continuation- It is well-known that monads are monoids in the category of endo- based representation for a monad m. functors, and in fact so are applicative functors. Unfortunately, newtype CodT m a = CodT (8x:(a ! m x) ! m x) the benefits of this unified view are lost when the additional non- determinism structure of MonadPlus or Alternative is required. rep :: Monad m ) m a ! CodT m a This article recovers the essence of these two type classes by rep v = CodT (v>>=) extending monoids to near-semirings with both additive and multi- abs :: Monad m ) CodT m a ! m a plicative structure. This unified algebraic view enables us to gener- abs (CodT c) = c return ically define the free construction as well as a novel double Cayley representation that optimises both left-nested sums and left-nested Since CodT m is a representation for m, we can lift m- products. computations to CodT m, compute in that monad, and when we are finished go back to m using abs. This change of repre- Keywords monoid, near-semiring, monad, monadplus, applica- sentation is useful because it turns left-nested binds into right- tive functor, alternative, free construction, Cayley representation nested binds [10, 22]. This is very convenient for monads (like the free monad) where left-nested binds are costly and right- 1. Introduction nested binds are cheap. The monad interface provides a basic structure for computations: instance Monad (CodT m) where class Monad m where return x = CodT (λk ! k x) return :: a ! m a CodT c >>= f = CodT (λk ! c (λa ! (>>=) :: m a ! (a ! m b) ! m b let CodT g = f a in g k)) where the operations return, for injecting values, and >>=, for se- quentially composing computations, are subject to the three monad Both results can be derived by viewing a monad as a monoid in laws. Study of this structure has led to many insights and applica- a monoidal category. The free monad is just the free monoid in tions. Two of these are especially notable: that category and the codensity transformation arises as the Cayley representation of that monoid [17]. Moreover, useful generality is 1. The free instance of the monad interface, the free monad, has gained by this approach, as not only monads are monoids, but also many applications in defining new monads and extending the applicative functors and arrows. capabilities of existing ones, e.g., in the form of algebraic effect While the monad interface is well understood and comes handlers [16]. with many useful results, it is also very limiting. When dealing with specific computations, we always require additional opera- data Free f a = Return x j Op (f (Free f a)) tions. A prominent example is non-determinism that occurs, e.g., instance Functor f ) Monad (Free f ) where in logic programming languages and parser combinators. Non- return x = Return x deterministic computations involve two additional operations: a Return x >>= f = f x failing computation (mzero) and a non-deterministic choice be- Op op >>= f = Op (fmap (>>=f ) op) tween two computations (mplus). These additional operations are captured in Haskell by the MonadPlus type class: class Monad m ) MonadPlus m where Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed mzero :: m a for profit or commercial advantage and that copies bear this notice and the full citation mplus :: m a ! m a ! m a on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or This type class comes with five additional laws that govern the republish, to post on servers or to redistribute to lists, requires prior specific permission interaction between the operations. and/or a fee. Request permissions from [email protected]. It is not difficult to see that the above two constructions for the PPDP ’15, July 14–16, 2015, Siena, Italy. Copyright is held by the owner/author(s). Publication rights licensed to ACM. Monad interface do not work for the MonadPlus interface. Firstly, ACM 978-1-4503-3516-4/15/07. $15.00. the free monad has no provision for the two additional operations http://dx.doi.org/10.1145/2790449.2790514 of MonadPlus and the five additional laws. Secondly, the codensity construction does not optimise left- Using type classes, we can describe monoids in Haskell as nested uses of mplus. Consider for instance, the following program follows: due to Fischer [5]: class Monoid m where anyof :: MonadPlus m ) [a ] ! m a mempty :: m anyof [ ] = mzero mappend :: m ! m ! m anyof (x : xs) = anyof xs `mplus` return x Here, mempty is the unit element and mappend is the multi- If we instantiate m with the list monad, whose MonadPlus instance plication. Instances of this class are required to satisfy the monoid is defined as follows laws. However, these are not enforced by Haskell, and it is left to the programmer to verify them. instance MonadPlus [] where There are two important constructions that are important for this mzero = [ ] paper: free monoids and the Cayley representation for monoids. mplus = (++) Free Monoids The notion of free monoid is defined in terms of we obtain the naive-reverse program, which has a quadratic running monoid homomorphisms. A monoid homomorphism is a function time. from one monoid to another that preserves the monoid structure. Let us now consider what happens if we use CodT [] instead. While there is no established CodT instance for MonadPlus, we Definition 2.1. A monoid homomorphism from a monoid (M; ⊗M ; 1 can easily provide one in terms of the underlying operations: eM ) to a monoid (N; ⊗N ; eN ) is a function f : M ! N such that 0 0 f(eM ) = eN and f(m ⊗M m ) = f(m) ⊗N f(m ). instance MonadPlus m ) MonadPlus (CodT m) where mzero = CodT (λk ! mzero) Now we can define the notion of free monoid. CodT p `mplus` CodT q = CodT (λk ! p k `mplus` q k) Definition 2.2. The free monoid over a set X is a monoid ∗ ∗ However, there is no improvement by running the computation (X ; ⊗∗; e∗) together with a function inj : X ! X such that on CodT []. The problem is that CodT [] just delegates the for every monoid (M; ⊗M ; eM ) and function h : X ! M, there ∗ MonadPlus operations to the underlying instance. This obviously exists a unique monoid homomorphism h : X ! M such that does not improve the running time. h ◦ inj = h. This paper provides a new algebraic understanding of the oper- A concrete representation for the free monoid over a set X are ations of the MonadPlus type class, one that enables us to derive lists with elements of that set; concatenation is its multiplication both the free structure and an optimised Cayley-like representation. and the empty list is its unit. As we have argued, the monoid view is insufficient for this pur- The free monoid construction extends to a functor. That is, for pose; we require a richer algebraic structure that augments monoids every function f : X ! Y , we define the monoid homomorphism with additional operations. This algebraic structure is that of a near- f ∗ : X∗ ! Y ∗ as f ∗ = inj ◦ f. semiring. For every monoid (M; ⊗ ; e ), the monoid morphism Specifically, our contributions are as follows: M M id : M ∗ ! M • We present a generalised form of near-semirings (Section 3), M and provide generic definitions for its free construction and a behaves as an evaluation algebra in the following sense: M ∗ rep- novel double Cayley representation. resents the syntax of programs constructed from the monoid opera- • tions and elements of M. The algebra idM simply gives semantics We establish that both MonadPlus (Section 4) and Alternative ∗ (Section 5) are instances of this generalised notion, and we to these programs by replacing the syntactic operations in M with specialise the constructions for both cases. the corresponding monoid operations in M. • We demonstrate the use of the constructions on two examples: Monoid Representation A representation for a given monoid combinatorial search and interleaving parsers (Section 6). (M; ⊗M ; eM ) is a monoid (R(M); ⊗R(M); eR(M)), together with functions rep : M ! R(M) and abs : R(M) ! M such that the There is quite a bit of related work; this is discussed in Section 7. following diagram commutes. rep∗ 2. Monoids and Near-Semirings M ∗ / R(M)∗ In this section we introduce ordinary monoids and near-semirings. That is, we present monoids and near-semirings over sets. idM idR(M) MR(M) 2.1 Background: Monoids o abs A monoid (M; ⊗; e) is a triple consisting of a set M, together with Intuitively, the diagram states that running a monoid program on an operation ⊗ : M × M ! M and an element e 2 M such that M is the same as first interpreting it as a monoid program on the the following axioms hold for all a, b, and c 2 M: representation R(M), running it there, and then abstracting the a ⊗ e = a (1) result back into M. e ⊗ a = a (2) Cayley Representation The Cayley representation of a monoid a ⊗ (b ⊗ c) = (a ⊗ b) ⊗ c (3) is an efficient representation of that monoid with a constant time multiplication.
Recommended publications
  • Semiring Frameworks and Algorithms for Shortest-Distance Problems
    Journal of Automata, Languages and Combinatorics u (v) w, x–y c Otto-von-Guericke-Universit¨at Magdeburg Semiring Frameworks and Algorithms for Shortest-Distance Problems Mehryar Mohri AT&T Labs – Research 180 Park Avenue, Rm E135 Florham Park, NJ 07932 e-mail: [email protected] ABSTRACT We define general algebraic frameworks for shortest-distance problems based on the structure of semirings. We give a generic algorithm for finding single-source shortest distances in a weighted directed graph when the weights satisfy the conditions of our general semiring framework. The same algorithm can be used to solve efficiently clas- sical shortest paths problems or to find the k-shortest distances in a directed graph. It can be used to solve single-source shortest-distance problems in weighted directed acyclic graphs over any semiring. We examine several semirings and describe some specific instances of our generic algorithms to illustrate their use and compare them with existing methods and algorithms. The proof of the soundness of all algorithms is given in detail, including their pseudocode and a full analysis of their running time complexity. Keywords: semirings, finite automata, shortest-paths algorithms, rational power series Classical shortest-paths problems in a weighted directed graph arise in various contexts. The problems divide into two related categories: single-source shortest- paths problems and all-pairs shortest-paths problems. The single-source shortest-path problem in a directed graph consists of determining the shortest path from a fixed source vertex s to all other vertices. The all-pairs shortest-distance problem is that of finding the shortest paths between all pairs of vertices of a graph.
    [Show full text]
  • Subset Semirings
    University of New Mexico UNM Digital Repository Faculty and Staff Publications Mathematics 2013 Subset Semirings Florentin Smarandache University of New Mexico, [email protected] W.B. Vasantha Kandasamy [email protected] Follow this and additional works at: https://digitalrepository.unm.edu/math_fsp Part of the Algebraic Geometry Commons, Analysis Commons, and the Other Mathematics Commons Recommended Citation W.B. Vasantha Kandasamy & F. Smarandache. Subset Semirings. Ohio: Educational Publishing, 2013. This Book is brought to you for free and open access by the Mathematics at UNM Digital Repository. It has been accepted for inclusion in Faculty and Staff Publications by an authorized administrator of UNM Digital Repository. For more information, please contact [email protected], [email protected], [email protected]. Subset Semirings W. B. Vasantha Kandasamy Florentin Smarandache Educational Publisher Inc. Ohio 2013 This book can be ordered from: Education Publisher Inc. 1313 Chesapeake Ave. Columbus, Ohio 43212, USA Toll Free: 1-866-880-5373 Copyright 2013 by Educational Publisher Inc. and the Authors Peer reviewers: Marius Coman, researcher, Bucharest, Romania. Dr. Arsham Borumand Saeid, University of Kerman, Iran. Said Broumi, University of Hassan II Mohammedia, Casablanca, Morocco. Dr. Stefan Vladutescu, University of Craiova, Romania. Many books can be downloaded from the following Digital Library of Science: http://www.gallup.unm.edu/eBooks-otherformats.htm ISBN-13: 978-1-59973-234-3 EAN: 9781599732343 Printed in the United States of America 2 CONTENTS Preface 5 Chapter One INTRODUCTION 7 Chapter Two SUBSET SEMIRINGS OF TYPE I 9 Chapter Three SUBSET SEMIRINGS OF TYPE II 107 Chapter Four NEW SUBSET SPECIAL TYPE OF TOPOLOGICAL SPACES 189 3 FURTHER READING 255 INDEX 258 ABOUT THE AUTHORS 260 4 PREFACE In this book authors study the new notion of the algebraic structure of the subset semirings using the subsets of rings or semirings.
    [Show full text]
  • On Free Quasigroups and Quasigroup Representations Stefanie Grace Wang Iowa State University
    Iowa State University Capstones, Theses and Graduate Theses and Dissertations Dissertations 2017 On free quasigroups and quasigroup representations Stefanie Grace Wang Iowa State University Follow this and additional works at: https://lib.dr.iastate.edu/etd Part of the Mathematics Commons Recommended Citation Wang, Stefanie Grace, "On free quasigroups and quasigroup representations" (2017). Graduate Theses and Dissertations. 16298. https://lib.dr.iastate.edu/etd/16298 This Dissertation is brought to you for free and open access by the Iowa State University Capstones, Theses and Dissertations at Iowa State University Digital Repository. It has been accepted for inclusion in Graduate Theses and Dissertations by an authorized administrator of Iowa State University Digital Repository. For more information, please contact [email protected]. On free quasigroups and quasigroup representations by Stefanie Grace Wang A dissertation submitted to the graduate faculty in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY Major: Mathematics Program of Study Committee: Jonathan D.H. Smith, Major Professor Jonas Hartwig Justin Peters Yiu Tung Poon Paul Sacks The student author and the program of study committee are solely responsible for the content of this dissertation. The Graduate College will ensure this dissertation is globally accessible and will not permit alterations after a degree is conferred. Iowa State University Ames, Iowa 2017 Copyright c Stefanie Grace Wang, 2017. All rights reserved. ii DEDICATION I would like to dedicate this dissertation to the Integral Liberal Arts Program. The Program changed my life, and I am forever grateful. It is as Aristotle said, \All men by nature desire to know." And Montaigne was certainly correct as well when he said, \There is a plague on Man: his opinion that he knows something." iii TABLE OF CONTENTS LIST OF TABLES .
    [Show full text]
  • Sage 9.4 Reference Manual: Monoids Release 9.4
    Sage 9.4 Reference Manual: Monoids Release 9.4 The Sage Development Team Aug 24, 2021 CONTENTS 1 Monoids 3 2 Free Monoids 5 3 Elements of Free Monoids 9 4 Free abelian monoids 11 5 Abelian Monoid Elements 15 6 Indexed Monoids 17 7 Free String Monoids 23 8 String Monoid Elements 29 9 Utility functions on strings 33 10 Hecke Monoids 35 11 Automatic Semigroups 37 12 Module of trace monoids (free partially commutative monoids). 47 13 Indices and Tables 55 Python Module Index 57 Index 59 i ii Sage 9.4 Reference Manual: Monoids, Release 9.4 Sage supports free monoids and free abelian monoids in any finite number of indeterminates, as well as free partially commutative monoids (trace monoids). CONTENTS 1 Sage 9.4 Reference Manual: Monoids, Release 9.4 2 CONTENTS CHAPTER ONE MONOIDS class sage.monoids.monoid.Monoid_class(names) Bases: sage.structure.parent.Parent EXAMPLES: sage: from sage.monoids.monoid import Monoid_class sage: Monoid_class(('a','b')) <sage.monoids.monoid.Monoid_class_with_category object at ...> gens() Returns the generators for self. EXAMPLES: sage: F.<a,b,c,d,e>= FreeMonoid(5) sage: F.gens() (a, b, c, d, e) monoid_generators() Returns the generators for self. EXAMPLES: sage: F.<a,b,c,d,e>= FreeMonoid(5) sage: F.monoid_generators() Family (a, b, c, d, e) sage.monoids.monoid.is_Monoid(x) Returns True if x is of type Monoid_class. EXAMPLES: sage: from sage.monoids.monoid import is_Monoid sage: is_Monoid(0) False sage: is_Monoid(ZZ) # The technical math meaning of monoid has ....: # no bearing whatsoever on the result: it's ....: # a typecheck which is not satisfied by ZZ ....: # since it does not inherit from Monoid_class.
    [Show full text]
  • Irreducible Representations of Finite Monoids
    U.U.D.M. Project Report 2019:11 Irreducible representations of finite monoids Christoffer Hindlycke Examensarbete i matematik, 30 hp Handledare: Volodymyr Mazorchuk Examinator: Denis Gaidashev Mars 2019 Department of Mathematics Uppsala University Irreducible representations of finite monoids Christoffer Hindlycke Contents Introduction 2 Theory 3 Finite monoids and their structure . .3 Introductory notions . .3 Cyclic semigroups . .6 Green’s relations . .7 von Neumann regularity . 10 The theory of an idempotent . 11 The five functors Inde, Coinde, Rese,Te and Ne ..................... 11 Idempotents and simple modules . 14 Irreducible representations of a finite monoid . 17 Monoid algebras . 17 Clifford-Munn-Ponizovski˘ıtheory . 20 Application 24 The symmetric inverse monoid . 24 Calculating the irreducible representations of I3 ........................ 25 Appendix: Prerequisite theory 37 Basic definitions . 37 Finite dimensional algebras . 41 Semisimple modules and algebras . 41 Indecomposable modules . 42 An introduction to idempotents . 42 1 Irreducible representations of finite monoids Christoffer Hindlycke Introduction This paper is a literature study of the 2016 book Representation Theory of Finite Monoids by Benjamin Steinberg [3]. As this book contains too much interesting material for a simple master thesis, we have narrowed our attention to chapters 1, 4 and 5. This thesis is divided into three main parts: Theory, Application and Appendix. Within the Theory chapter, we (as the name might suggest) develop the necessary theory to assist with finding irreducible representations of finite monoids. Finite monoids and their structure gives elementary definitions as regards to finite monoids, and expands on the basic theory of their structure. This part corresponds to chapter 1 in [3]. The theory of an idempotent develops just enough theory regarding idempotents to enable us to state a key result, from which the principal result later follows almost immediately.
    [Show full text]
  • Monoids (I = 1, 2) We Can Define 1  C 2000 M
    Geometria Superiore Reference Cards Push out (Sommes amalgam´ees). Given a diagram i : P ! Qi Monoids (i = 1; 2) we can define 1 c 2000 M. Cailotto, Permissions on last. v0.0 u −!2 Send comments and corrections to [email protected] Q1 ⊕P Q2 := coker P −! Q1 ⊕ Q2 u1 The category of Monoids. 1 and it is a standard fact that the natural arrows ji : Qi ! A monoid (M; ·; 1) (commutative with unit) is a set M with a Q1 ⊕P Q2 define a cocartesian square: u1 composition law · : M × M ! M and an element 1 2 M such P −−−! Q1 that: the composition is associative: (a · b) · c = a · (b · c) (for ? ? all a; b; c 2 M), commutative: a · b = b · a (for all a; b 2 M), u2 y y j1 and 1 is a neutral element for the composition: 1 · a = a (for Q2 −! Q1 ⊕P Q2 : all a 2 M). j2 ' ' More explicitly we have Q1 ⊕P Q2 = (Q1 ⊕ Q2)=R with R the A morphism (M; ·; 1M ) −!(N; ·; 1N ) of monoids is a map M ! N smallest equivalence relation stable under product (in Q1 ⊕P of sets commuting with · and 1: '(ab) = '(a)'(b) for all Q2) and making (u1(p); 1) ∼R (1; u2(p)) for all p 2 P . a; b 2 M and '(1 ) = 1 . Thus we have defined the cat- M N In general it is not easy to understand the relation involved in egory Mon of monoids. the description of Q1 ⊕P Q2, but in the case in which one of f1g is a monoid, initial and final object of the category Mon.
    [Show full text]
  • Algebras of Boolean Inverse Monoids – Traces and Invariant Means
    C*-algebras of Boolean inverse monoids { traces and invariant means Charles Starling∗ Abstract ∗ To a Boolean inverse monoid S we associate a universal C*-algebra CB(S) and show that it is equal to Exel's tight C*-algebra of S. We then show that any invariant mean on S (in the sense of Kudryavtseva, Lawson, Lenz and Resende) gives rise to a ∗ trace on CB(S), and vice-versa, under a condition on S equivalent to the underlying ∗ groupoid being Hausdorff. Under certain mild conditions, the space of traces of CB(S) is shown to be isomorphic to the space of invariant means of S. We then use many known results about traces of C*-algebras to draw conclusions about invariant means on Boolean inverse monoids; in particular we quote a result of Blackadar to show that any metrizable Choquet simplex arises as the space of invariant means for some AF inverse monoid S. 1 Introduction This article is the continuation of our study of the relationship between inverse semigroups and C*-algebras. An inverse semigroup is a semigroup S for which every element s 2 S has a unique \inverse" s∗ in the sense that ss∗s = s and s∗ss∗ = s∗: An important subsemigroup of any inverse semigroup is its set of idempotents E(S) = fe 2 S j e2 = eg = fs∗s j s 2 Sg. Any set of partial isometries closed under product and arXiv:1605.05189v3 [math.OA] 19 Jul 2016 involution inside a C*-algebra is an inverse semigroup, and its set of idempotents forms a commuting set of projections.
    [Show full text]
  • On Kleene Algebras and Closed Semirings
    On Kleene Algebras and Closed Semirings y Dexter Kozen Department of Computer Science Cornell University Ithaca New York USA May Abstract Kleene algebras are an imp ortant class of algebraic structures that arise in diverse areas of computer science program logic and semantics relational algebra automata theory and the design and analysis of algorithms The literature contains several inequivalent denitions of Kleene algebras and related algebraic structures In this pap er we establish some new relationships among these structures Our main results are There is a Kleene algebra in the sense of that is not continuous The categories of continuous Kleene algebras closed semirings and Salgebras are strongly related by adjunctions The axioms of Kleene algebra in the sense of are not complete for the universal Horn theory of the regular events This refutes a conjecture of Conway p Righthanded Kleene algebras are not necessarily lefthanded Kleene algebras This veries a weaker version of a conjecture of Pratt In Rovan ed Proc Math Found Comput Scivolume of Lect Notes in Comput Sci pages Springer y Supp orted by NSF grant CCR Intro duction Kleene algebras are algebraic structures with op erators and satisfying certain prop erties They have b een used to mo del programs in Dynamic Logic to prove the equivalence of regular expressions and nite automata to give fast algorithms for transitive closure and shortest paths in directed graphs and to axiomatize relational algebra There has b een some disagreement
    [Show full text]
  • Binary Opera- Tions, Magmas, Monoids, Groups, Rings, fields and Their Homomorphisms
    1. Introduction In this chapter, I introduce some of the fundamental objects of algbera: binary opera- tions, magmas, monoids, groups, rings, fields and their homomorphisms. 2. Binary Operations Definition 2.1. Let M be a set. A binary operation on M is a function · : M × M ! M often written (x; y) 7! x · y. A pair (M; ·) consisting of a set M and a binary operation · on M is called a magma. Example 2.2. Let M = Z and let + : Z × Z ! Z be the function (x; y) 7! x + y. Then, + is a binary operation and, consequently, (Z; +) is a magma. Example 2.3. Let n be an integer and set Z≥n := fx 2 Z j x ≥ ng. Now suppose n ≥ 0. Then, for x; y 2 Z≥n, x + y 2 Z≥n. Consequently, Z≥n with the operation (x; y) 7! x + y is a magma. In particular, Z+ is a magma under addition. Example 2.4. Let S = f0; 1g. There are 16 = 42 possible binary operations m : S ×S ! S . Therefore, there are 16 possible magmas of the form (S; m). Example 2.5. Let n be a non-negative integer and let · : Z≥n × Z≥n ! Z≥n be the operation (x; y) 7! xy. Then Z≥n is a magma. Similarly, the pair (Z; ·) is a magma (where · : Z×Z ! Z is given by (x; y) 7! xy). Example 2.6. Let M2(R) denote the set of 2 × 2 matrices with real entries. If ! ! a a b b A = 11 12 , and B = 11 12 a21 a22 b21 b22 are two matrices, define ! a b + a b a b + a b A ◦ B = 11 11 12 21 11 12 12 22 : a21b11 + a22b21 a21b12 + a22b22 Then (M2(R); ◦) is a magma.
    [Show full text]
  • Skew and Infinitary Formal Power Series
    Appeared in: ICALP’03, c Springer Lecture Notes in Computer Science, vol. 2719, pages 426-438. Skew and infinitary formal power series Manfred Droste and Dietrich Kuske⋆ Institut f¨ur Algebra, Technische Universit¨at Dresden, D-01062 Dresden, Germany {droste,kuske}@math.tu-dresden.de Abstract. We investigate finite-state systems with costs. Departing from classi- cal theory, in this paper the cost of an action does not only depend on the state of the system, but also on the time when it is executed. We first characterize the terminating behaviors of such systems in terms of rational formal power series. This generalizes a classical result of Sch¨utzenberger. Using the previous results, we also deal with nonterminating behaviors and their costs. This includes an extension of the B¨uchi-acceptance condition from finite automata to weighted automata and provides a characterization of these nonter- minating behaviors in terms of ω-rational formal power series. This generalizes a classical theorem of B¨uchi. 1 Introduction In automata theory, Kleene’s fundamental theorem [17] on the coincidence of regular and rational languages has been extended in several directions. Sch¨utzenberger [26] showed that the formal power series (cost functions) associated with weighted finite automata over words and an arbitrary semiring for the weights, are precisely the rational formal power series. Weighted automata have recently received much interest due to their applications in image compression (Culik II and Kari [6], Hafner [14], Katritzke [16], Jiang, Litow and de Vel [15]) and in speech-to-text processing (Mohri [20], [21], Buchsbaum, Giancarlo and Westbrook [4]).
    [Show full text]
  • Ring (Mathematics) 1 Ring (Mathematics)
    Ring (mathematics) 1 Ring (mathematics) In mathematics, a ring is an algebraic structure consisting of a set together with two binary operations usually called addition and multiplication, where the set is an abelian group under addition (called the additive group of the ring) and a monoid under multiplication such that multiplication distributes over addition.a[›] In other words the ring axioms require that addition is commutative, addition and multiplication are associative, multiplication distributes over addition, each element in the set has an additive inverse, and there exists an additive identity. One of the most common examples of a ring is the set of integers endowed with its natural operations of addition and multiplication. Certain variations of the definition of a ring are sometimes employed, and these are outlined later in the article. Polynomials, represented here by curves, form a ring under addition The branch of mathematics that studies rings is known and multiplication. as ring theory. Ring theorists study properties common to both familiar mathematical structures such as integers and polynomials, and to the many less well-known mathematical structures that also satisfy the axioms of ring theory. The ubiquity of rings makes them a central organizing principle of contemporary mathematics.[1] Ring theory may be used to understand fundamental physical laws, such as those underlying special relativity and symmetry phenomena in molecular chemistry. The concept of a ring first arose from attempts to prove Fermat's last theorem, starting with Richard Dedekind in the 1880s. After contributions from other fields, mainly number theory, the ring notion was generalized and firmly established during the 1920s by Emmy Noether and Wolfgang Krull.[2] Modern ring theory—a very active mathematical discipline—studies rings in their own right.
    [Show full text]
  • Loop Near-Rings and Unique Decompositions of H-Spaces
    Algebraic & Geometric Topology 16 (2016) 3563–3580 msp Loop near-rings and unique decompositions of H-spaces DAMIR FRANETICˇ PETAR PAVEŠIC´ For every H-space X , the set of homotopy classes ŒX; X possesses a natural al- gebraic structure of a loop near-ring. Albeit one cannot say much about general loop near-rings, it turns out that those that arise from H-spaces are sufficiently close to rings to have a viable Krull–Schmidt type decomposition theory, which is then reflected into decomposition results of H-spaces. In the paper, we develop the algebraic theory of local loop near-rings and derive an algebraic characterization of indecomposable and strongly indecomposable H-spaces. As a consequence, we obtain unique decomposition theorems for products of H-spaces. In particular, we are able to treat certain infinite products of H-spaces, thanks to a recent breakthrough in the Krull–Schmidt theory for infinite products. Finally, we show that indecomposable finite p–local H-spaces are automatically strongly indecomposable, which leads to an easy alternative proof of classical unique decomposition theorems of Wilkerson and Gray. 55P45; 16Y30 Introduction In this paper, we discuss relations between unique decomposition theorems in alge- bra and homotopy theory. Unique decomposition theorems usually state that sum or product decompositions (depending on the category) whose factors are strongly indecomposable are essentially unique. The standard algebraic example is the Krull– Schmidt–Remak–Azumaya theorem. In its modern form, the theorem states that any decomposition of an R–module into a direct sum of indecomposable modules is unique, provided that the endomorphism rings of the summands are local rings; see Facchini [8, Theorem 2.12].
    [Show full text]