Algebraic Language Theory with Effects
Abstract
Regular languages – the languages accepted by deterministic finite automata – are known to be precisely the languages recognized by finite monoids. This characterization is the origin of algebraic language theory. In this paper, we generalize the correspondence between automata and monoids to automata with generic computational effects given by a monad, providing the foundations of an effectful algebraic language theory. We show that, under suitable conditions on the monad, a language is computable by an effectful automaton precisely when it is recognizable by (1) an effectful monoid morphism into an effect-free finite monoid, and (2) a monoid morphism into a monad-monoid bialgebra whose carrier is a finitely generated algebra for the monad, the former mode of recognition being conceptually completely new. Our prime application is a novel algebraic approach to languages computed by probabilistic finite automata. Additionally, we derive new algebraic characterizations for nondeterministic probabilistic finite automata and for weighted finite automata over unrestricted semirings, generalizing previous results on weighted algebraic recognition over commutative rings.
Keywords and phrases:
Automaton, Monoid, Monad, Effect, Algebraic language theoryCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Formal languages and automata theory ; Theory of computation Regular languagesFunding:
Fabian Lenke and Henning Urbat are supported by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 470467389. Stefan Milius is supported by Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 517924115.Editors:
Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele PuppisSeries and Publisher:

1 Introduction
The algebraic approach to finite automata rests on the observation that regular languages (the languages accepted by finite automata) coincide with the languages recognized by finite monoids. This provides the basis for investigating complex properties of regular languages with semigroup-theoretic methods. A prime example is the celebrated result by McNaughton, Papert, and Schützenberger [56, 42] that a regular language is definable in first-order logic over finite words iff its syntactic monoid (the minimal monoid recognizing the language) is aperiodic. Since the latter property is easy to verify, this implies decidability of first-order definability. Similar characterizations and decidability results are known for numerous subclasses of regular languages [46, 25, 48]. The correspondence between automata and monoids has been generalized beyond regular languages, for example to -regular languages [66, 45], languages of words over linear orders [10], data languages [17], tree languages [6, 55, 18, 12], cost functions [23], and weighted languages over commutative rings [52].
In this paper, we show that the equivalence between automata and monoids can be established at the more general level of automata with generic computational effects given by a monad [59, 31]. This class of automata forms a common generalization of a wide range of automata models such as probabilistic automata [51], nondeterministic probabilistic automata [64], weighted automata [26], and even pushdown automata and Turing machines [31]. We introduce two modes of algebraic recognition for -effectful languages, both of which are natural effectful generalizations of the classical recognition by finite monoids: recognition by (1) -effectful monoid morphisms into finite effect-free monoids, and (2) ordinary monoid morphisms into finitely generated -algebras equipped with an additional monoid structure (plus optional compatibility conditions). We subsequently identify suitable conditions on the monad ensuring that (1) and (2) capture precisely the languages computed by finite -automata; this yields an effectful automata/monoid correspondence (Theorems 4.11 and 4.22). Our results fundamentally exploit the double role played by monads in computation, namely as abstractions of both computational effects [43] and algebraic theories [40].
The investigation of algebraic recognition at the present level of generality has several benefits. First and foremost, the abstract perspective provided by generic effects naturally motivates and isolates conceptual ideas that would be easily missed for concrete instantiations of the monad . Notably, recognition mode (1) above is conceptually completely new, and mode (2) generalizes earlier work on algebraic recognition over commutative varieties [2] to arbitrary (non-commutative) effects. In this way, our theory leads to novel algebraic characterizations of several important automata models.
Our prime application is a characterization of languages computed by probabilistic finite automata (PFAs) [51]. PFAs extend classical deterministic finite automata by probabilistic effects, and thus serve as a natural model of state-based computations that involve uncertainty or randomization. These arise in many application domains [44, 8], as witnessed for instance by the wide range and success of probabilistic model checkers [37, 33]. On the theoretical side, PFAs share some remarkable similarities with finite automata; in particular, machine-independent characterizations of PFA-computable languages in terms of probabilistic regular expressions [19, 53] and probabilistic monadic second-order logic [65] are known. However, the fundamental algebraic perspective on finite automata has thus far withstood a probabilistic generalization. We fill this gap by establishing two different modes of probabilistic algebraic recognition (Theorems 3.10 and 3.18) for PFA-computable languages which instantiate the two above-mentioned modes, namely (1) recognition by finite monoids via probabilistic monoid morphisms; (2) recognition by convex monoids carried by a finitely generated convex set. The first mode emphasizes the effectful nature of probabilistic languages, while the second one relies on traditional universal algebra. These characterizations may serve as a starting point for the algebraic investigation of PFA-computable languages.
Further notable instances of the general theory include algebraic characterizations of nondeterministic probabilistic automata and weighted automata. For the latter, a weighted automata/monoid correspondence was only known for weights from a commutative ring [52]; our version applies to general semirings and thus captures additional types of weighted automata such as min-plus and max-plus automata [47, Ch. 5] and transducers [47, Ch. 3].
Related Work.
The use of category theory to unify results for different automata models has a long tradition[30, 7, 5]. -automata were first studied by Goncharov et al. [31] as an instance of effectful coalgebras [54, 59]; they also fit into the framework of functor automata by Colcombet and Petrişan [24]. On the algebra side, Bojańczyk [14] used monads to unify notions of algebraic recognition. This abstract perspective on algebraic language theory has led to a series of works, including a uniform theory of Eilenberg-type correspondences [63] and an abstract account of logical definability of languages [13]. However, while each of the above works studies either automata-based or algebraic recognition individually, formal connections between both approaches are far less explored at categorical generality. The only results in this direction appear in the work of Adámek et al. [2] on the automata/monoid correspondence in commutative varieties. Our approach takes the step to non-commutative monads and on the way develops the entirely new concept of effectful language recognition.
2 Algebraic Recognition of Regular Languages
To set the scene for our algebraic approach to effectful languages, we recall the classical correspondence between finite automata and finite monoids as recognizers for regular languages [48, 50]. Let us settle some notation used in the sequel:
Notation 2.1.
Fix a finite alphabet , and let denote the set of finite words over , with empty word . We put and . A map is identified with the element , which by abuse of notation is also denoted by . Maps (predicates) are identified with subsets of ; in particular, languages are presented as predicates . We denote the composite of two maps , by (note the order!), and the identity map on by . We use to define anonymous functions. Lastly, denotes the set of all maps from to .
Finite Automata.
A deterministic finite automaton (DFA) consists of a finite set of states and maps representing an initial state, transitions, and final states:
Let , , denote the curried form of , and define the iterated transition map and the language computed by by
(2.1) |
Monoids.
A monoid is a set equipped with an associative multiplication and a neutral element ; that is, the equations and hold for all . A map between monoids and is a monoid morphism if and for all .
Example 2.2.
-
(1)
For every set , the set of endomaps forms a monoid with multiplication given by composition and neutral element .
-
(2)
The set of words, with concatenation as multiplication and neutral element , is the free monoid on : for every monoid and every map , there exists a unique monoid morphism such that for all . The morphism , the free extension of , is given by for . For instance, the map defined in (2.1) is the free extension of .
Monoids enable an algebraic notion of language recognition. A monoid recognizes the language if there exists a monoid morphism and a predicate such that . Monoid recognition captures precisely the regular languages:
Theorem 2.3 ([50, Thm. 1]).
For every language , there exists a DFA computing iff there exists a finite monoid recognizing .
Proof sketch.
If a DFA computes , the monoid recognizes via the morphism and predicate defined by .
Conversely, given a finite monoid that recognizes via a monoid morphism and a predicate , we can turn into a DFA computing with transitions defined by
3 Algebraic Recognition of Probabilistic Languages
Before we present the correspondence of automata and monoids on the categorical level of general effectful automata in Section 4, we whet the reader’s appetite by illustrating the important special case of probabilistic languages. These are languages computed by probabilistic finite automata [51], whose computational effects are finite probability distributions. All results in this section are instances of those in Section 4; however, for the convenience of the reader we provide sketches of the concrete arguments our general proofs instantiate to.
3.1 Probability Distributions and Probabilistic Channels
A finite probability distribution on a set is a map whose support is finite and which satisfies . A distribution can be represented as a finite formal sum where , and for . The set of all distributions on is denoted by .
A map of the form , denoted by , is a probabilistic channel or Markov kernel from to . Intuitively, is a map from to that assigns to a given input the output with probability . We write for the set of all probabilistic channels from to . Two probabilistic channels and can be composed to yield a probabilistic channel given by . The unit at is the probabilistic channel sending to the Dirac distribution defined by ). Using sum notation, composition of probabilistic channels is given by , where and , and the unit is . Composition of probabilistic channels is associative and has as an identity: and for and . A channel is a probabilistic predicate on , where we identify with the unit interval. A map induces the pure channel , which we also denote by by abuse of notation.
3.2 Probabilistic Automata
Probabilistic automata, due to Rabin [51], generalize deterministic automata. Transitions are no longer given by a unique successor state for every state and input , but a probability distribution over possible successor states. Accordingly, probabilistic automata compute probabilistic languages, which are simply probabilistic predicates . Formally:
Definition 3.1.
A probabilistic finite automaton (PFA) consists of a finite set of states and the following channels for an initial distribution, the transition distributions, and an acceptance predicate, respectively:
We denote by the curried form of and define the iterated transition map and the language computed by , respectively, by
Comparing with the definition of DFAs in Section 2, we see that DFAs are precisely PFAs where , , are pure maps.
Remark 3.2.
We think of as the probability that starts in state , of as the probability that transitions from to on input , and of as the probability that is accepting. Unravelling the above definition, the language computed by is given by the explicit formula
(3.1) |
The summand for is the probability that, on input , the automaton takes the path and accepts . Hence, is the total acceptance probability.
Remark 3.3.
-
(1)
Rabin’s original notion of PFA [51] features an initial state and a set of final states, which amounts to restricting and in Definition 3.1 to pure channels. Except for the behaviour on the empty word, the two versions are expressively equivalent [21, Lemmas 3.1.1 and 3.1.2].
-
(2)
The PFA model used here is often called reactive in the literature, as opposed to generative PFAs, whose transition map is of type , computing stochastic languages, which are (not necessarily finite!) distributions over . Generative PFA are not instances of -automata (Definition 4.3) and therefore not considered in this paper.
Our aim is to understand PFA-computable probabilistic languages in terms of recognition by algebraic structures, in the same way that finite monoids recognize regular languages. To this end, we introduce two modes of probabilistic algebraic recognition and prove that they capture precisely the PFA-computable languages.
3.3 Recognizing Probabilistic Languages by Finite Monoids
For our first mode of probabilistic algebraic recognition, we stick with finite monoids as recognizing structures, and only add probabilistic effects to the recognizing monoid morphisms. First we need some auxiliary machinery:
Definition 3.4.
For all finite sets and all sets we define the maps
(3.2) | ||||||
(3.3) | ||||||
(3.4) |
Intuitively, is the probability of picking some according to satisfying . For a channel , the probability of in the distribution provides a measure of how compatible is to . The map sends two distributions on and to their product distribution on . Well-definedness of and and the next lemma can be shown by calculation; conceptually, they follow from being an affine monad.
Lemma 3.5.
We have . In particular, the map is surjective.
Notation 3.6.
Given channels and , we define the channel as the composite in diagram in Figure 3.
Definition 3.7.
A probabilistic monoid morphism from a monoid to a monoid is a channel making the diagram in Figure 3 commute, where the maps , , are regarded as pure channels.
Remark 3.8.
The universal property of extends to the probabilistic case: For every monoid and every channel , there exists a unique probabilistic monoid morphism with for all . It is given by
Definition 3.9.
A monoid probabilistically recognizes a probabilistic language if there exists a probabilistic monoid morphism and a probabilistic predicate such that .
We stress that, in Definition 3.9, probabilistic effects only appear in the channels and , while the monoid itself is pure. At first sight, it may seem more natural to use “probabilistic monoids”, with proper channels as neutral element and multiplication , as recognizers. Remarkably, we need not require this additional generality:
Theorem 3.10.
For every probabilistic language , there exists a PFA computing iff there exists a finite monoid probabilistically recognizing .
Proof sketch.
Given a PFA computing , the finite monoid probabilistically recognizes via the probabilistic monoid morphism that freely extends the probabilistic channel , and the probabilistic predicate defined by . Explicitly, the maps and are given by
for . A lengthy calculation using ˜3.5 shows that .
Conversely, if a finite monoid probabilistically recognizes via and , then the PFA computes , with defined by
Example 3.11.
The probabilistic monoid morphism induced by the channel sending , together with the pure predicate recognizes the language . The corresponding PFA due to Theorem 3.10 is shown in Figure 3.
3.4 Recognizing Probabilistic Languages by Convex Monoids
The presence of probabilistic effects in the recognizing morphisms places the above mode of probabilistic recognition outside standard universal algebra. In this section we develop an equivalent, purely algebraic approach based on the theory of convex sets.
A convex set [61] is a set equipped with a family of binary operations () subject to following equations, where and :
A map between convex sets is affine if for and .
Example 3.12.
-
(1)
The prototypical convex sets are convex subsets (for a cardinal ) with the operations . Up to affine isomorphism, these are precisely the cancellative convex sets [61], which are those satisfying
-
(2)
The set of distributions on a set is a convex set with structure given by for . This is the free convex set on : every map to a convex set extends uniquely to an affine map such that . Concretely, can be defined by .
-
(3)
For all sets and , the set forms a convex set with the operations for , and .
Reutenauer [52] showed that finite-dimensional -algebras – real vector spaces equipped with a compatible monoid structure – precisely recognize rational power series . For algebraic recognition of probabilistic languages, we generalize -algebras to convex monoids, which are monoids with an additional convex structure that is respected by the multiplication:
Definition 3.13.
A convex monoid is a convex set equipped with a monoid structure whose multiplication satisfies
(3.5) |
Example 3.14.
-
(1)
The convex set with multiplication and neutral element is the free convex monoid on : every map to a convex monoid extends to a unique affine monoid morphism such that .
-
(2)
For every set , the convex set from Example 3.123 forms a convex monoid with channel composition as multiplication and unit as neutral element.
Definition 3.15.
A convex monoid recognizes a language if there exists a monoid morphism and an affine map such that .
For a correspondence between PFA-computable languages and convex monoids, we need to impose a suitable finiteness restriction on the latter. Finite convex monoids are not sufficient; instead, we shall work with a more permissive notion of finiteness:
Definition 3.16.
A convex set is finitely generated if there exists an affine surjection for some finite set . A convex monoid is fg-carried if its underlying convex set is finitely generated.
Intuitively, this definition says that is the convex hull of a finite subset : every element in is a convex combination of the elements .
Example 3.17.
-
(1)
A convex subset of is finitely generated iff it is a bounded convex polytope [32], that is, it is compact and has finitely many extremal points.
-
(2)
For all finite sets , the convex monoid from Example 3.123 is fg-carried. This is witnessed by the map of (3.2), which is surjective by ˜3.5, and affine, since it is the free extension of the map .
Fg-carried convex monoids give rise to our second algebraic characterization of PFAs:
Theorem 3.18.
For every probabilistic language , there exists a PFA computing iff there exists an fg-carried convex monoid recognizing .
Proof sketch.
Given a PFA computing , the fg-carried convex monoid from Example 3.172 recognizes via the morphism and the affine map given by .
Conversely, suppose that is an fg-carried convex monoid (witnessed by an affine surjection ) recognizing via and . Define the PFA where , the transition distribution is chosen such that for all and , and the initial distribution is chosen such that ; such choices exist by surjectivity of . Then computes .
A remarkable property of fg-carried convex monoids is that they always admit a finite presentation, despite not necessarily being finite themselves. To see this, let us recall some terminology from universal algebra. Given an equational class of algebras over a finitary signature , a finite presentation of an algebra is given by (1) a finite set of generators, (2) a finite set of relations () where are -terms in variables from , and (3) a surjective -algebra morphism satisfying for all , subject to the universal property that every morphism , where and for all , factorizes through . In particular, we have the notions of finitely presentable convex set and finitely presentable convex monoid.
By a non-trivial result due to Sokolova and Woracek [60], finitely generated convex sets are finitely presentable (the converse holds trivially). This is the key to the following theorem; a categorical version of it is later proved in Theorem 4.17.
Theorem 3.19.
Every fg-carried convex monoid is finitely presentable.
Proof sketch.
Let be an fg-carried convex monoid. Choose a finite presentation of as a convex set. Since the multiplication of is fully determined by its action on by (3.5), this extends to a finite presentation of the convex monoid by adding a relation for each , where is any term in the signature of convex sets such that . We will see in Example 3.24 that the converse of Theorem 3.19 does not hold.
3.5 Syntactic Convex Monoids
Compared to ordinary monoids, convex monoids are fairly complex structures. The benefit of the additional complexity is the existence of canonical recognizers for probabilistic languages. Recall that every regular language has a canonical recognizer, the syntactic monoid . It is given by the quotient of the free monoid modulo the syntactic congruence , where iff for all . The projection , sending to its congruence class , recognizes via with . Moreover, factorizes through every surjective morphism recognizing , thus is the “smallest” surjective morphism recognizing . For probabilistic languages, this notion generalizes as follows:
Definition 3.20.
Given a probabilistic language , a syntactic convex monoid of is a convex monoid with a surjective affine monoid morphism such that recognizes and, moreover, factorizes through every surjective affine monoid morphism such that recognizes :
Syntactic structures for formal languages are well-studied from a categorical perspective [14, 63, 2]. The following result is an instance of [2, Thm. 3.14]:
Theorem 3.21.
Every probabilistic language has a syntactic convex monoid, unique up to isomorphism. It is presented by generators and relations given by the syntactic congruence defined in Equation 3.6. The maps and are given by and .
(3.6) |
Alternatively, one can construct the syntactic convex monoid as the transition monoid of the minimal -automaton (see the full version [38]), entailing a restriction on the convex structure of syntactic convex monoids:
Theorem 3.22.
For every language , the convex set is cancellative.
Syntactic convex monoids are useful as a descriptional tool for characterizing (and potentially deciding) properties of languages in algebraic terms. Here is a simple illustration:
Example 3.23.
A probabilistic language is commutative if for all and all permutations of . One easily verifies that is commutative iff is a commutative convex monoid.
Let us note that while every PFA-computable language is recognized by some fg-carried convex monoid (Theorem 3.18), its syntactic convex monoid is generally not fg-carried:
Example 3.24.
Consider the PFA from Example 3.11 computing the probabilistic language . Its syntactic convex monoid is isomorphic to the half-open interval with the usual convex structure and multiplication of reals; indeed, the map given by is easily seen to be an isomorphism. Since the finitely generated convex subsets of are closed intervals, is not fg-carried. However, despite Theorem 3.19 not applying here, the convex monoid can be shown to be finitely presentable, with the finite presentation given by a single generator and a single relation . The proof is somewhat intricate; see the full version [38] for details.
Open Problem.
Is finitely presentable for every PFA-computable language ?
4 Algebraic Recognition of Effectful Languages
We now turn to the main results of our paper: two novel modes of algebraic recognition for languages computed by effectful automata. All results are parametric in the computational effect, which is modelled by a monad satisfying a suitable condition. Our results instatiate to the characterizations of PFA-computable probabilistic languages from Section 3. Other instances of our results yield new algebraic characterizations for languages recognized by weighted automata and automata that combine nondeterministic and probabilistic branching.
4.1 Monads
In the following, familiarity with basic category theory is assumed; see Mac Lane [39] for a gentle introduction. We recall some concepts from the theory of monads [40] to fix our terminology and notation. We write for the category of sets and functions. A monad on is a triple consisting of an endofunctor and two natural transformations (the unit) and (the multiplication), satisfying the laws and .
The Kleisli category has sets as objects, and a morphism from to , denoted , is a map . The composite of and is denoted by and defined by . The identity morphism on is the component of the unit. Intuitively, a Kleisli morphism is a function with computational effects given by the monad [43]. A map is identified with the Kleisli morphism ; such Kleisli morphisms are said to be pure, since they correspond to effect-free computations. Note that there is no need for operator precedence between and since and for all Kleisli morphisms and pure maps .
Further, a -algebra consists of set (the carrier) and a map (the structure) satisfying the associative law and the unit law . A morphism from to a -algebra (a -morphism for short) is a map such that . We write for the category of -algebras and -morphisms. Products in are formed in : the product algebra of , , has the structure , where is the th product projection.
The forgetful functor from to has a left adjoint sending a set to the free -algebra over . For every -algebra and every map , there exists a unique -morphism such that ; that -morphism is the free extension of . The Kleisli category is equivalent to a full subcategory of via the embedding and .
Monads provide a categorical view of universal algebra. Every finitary algebraic theory , given by a signature of finitary operation symbols and a set of equations between -terms, induces a monad on , where is the carrier of the free -algebra (viz. the set of all -terms over modulo the equations in ), and and are given by inclusion of variables and flattening of terms over terms. Then -algebras bijectively correspond to -algebras satisfying all equations in , that is, algebras of the variety specified by . Monads induced by finitary algebraic theories are precisely the finitary monads, that is, those preserving directed colimits [3].
Every monad has a canonical left strength, the natural transformation
Its right strength is defined analogously. The monad is commutative if in . For every monad (be it commutative or not), we denote the left-hand composite of this equation – a double strength – by
(4.1) |
Commutative finitary monads are precisely those induced by a commutative algebraic theory . This means that all operations commute with each other; for example, for all binary operations , we have , and similarly for every pair of operations of other (not necessarily equal) arities.
Example 4.1.
In our applications we shall encounter the following monads:
-
(1)
The distribution monad sends a set to the set of all finite probability distributions on (Section 3.1), and a map to the map defined by ; in sum notation, . Its unit is given by , and the multiplication is defined by . In sum notation, and . The Kleisli category of is the category of sets and probabilistic channels, and algebras for are precisely the convex sets [62]. The monad is commutative; the natural transformation (4.1) is concretely given by (3.4).
-
(2)
The convex power set of distributions monad sends a set to the set of non-empty, finitely generated convex subsets of , and a map to defined by . Its unit is , and the multiplication is defined by
Algebras for are precisely convex semilattices [20], which are convex sets carrying an additional semilattice (i.e. a commutative idempotent semigroup) structure satisfying for . The monad is not commutative.
-
(3)
A semiring is a set equipped with both the structure of a monoid and of a commutative monoid such that multiplication distributes over addition. Every semiring induces a monad sending a set to , and a map to the map defined by . The unit is given by , and the multiplication is defined by . Algebras for correspond precisely to -semimodules, that is, commutative monoids with an associative scalar multiplication that distributes over the additive structures of and . The monad is commutative iff the multiplication of is commutative. The distribution monad is a submonad of for the semiring of reals with the usual operations.
-
(4)
The monad sends a set to (finite words over ), and a map to defined by . The unit is given by and the multiplication by flattening (concatenation) of words. Algebras for correspond precisely to monoids.
4.2 Automata with Effects
Automata with computational effects in a monad were introduced in previous work [59, 31]. PFAs as in Definition 3.1 are the instance where the monad is and the output algebra is the free -algebra .
Assumption 4.2.
We fix a monad on and a -algebra .
Definition 4.3.
A finite -automaton (-FA) consists of a finite set of states together with two -morphisms and a map as shown below:
They represent an initial state, transitions, and outputs, respectively. We define the curried version of and the extended transition map just like in Definition 3.1. The language computed by is given by .
Remark 4.4.
-
(1)
Earlier works [59, 31] model -automata as coalgebras , and their semantics is defined via the final coalgebra for the functor , carried by the set of languages [54]. Definition 4.3 is equivalent to the coalgebraic one – modulo initial state and currying of transitions – yet better suited for our algebraic constructions.
-
(2)
-automata and their language semantics are also instances of the framework of functor automata by Colcombet and Petrişan [24] interpreted either in the Kleisli category for for free output algebras , or in the Eilenberg-Moore category for for general output algebras and the state object being the free algebra .
-
(3)
Every -FA is equivalent to a -FA with a pure initial state: one may simply add a new pure initial state simulating the behaviour of a non-pure one [64, Rem. 1]. Hence, the essence of the effectful nature of -FAs lies in the transitions.
Example 4.5.
-
(1)
-FAs with the convex output set are precisely PFAs.
-
(2)
-FAs are nondeterministic probabilistic finite automata (NPFAs) [64]. They combine nondeterministic and probabilistic branching and as such are closely related to Segala systems [58] and Markov decision processes [47, Ch. 36]. We take the output convex semilattice given by the interval with its usual convex structure and taking maxima as the semilattice operation. An NPFA consists of a finite state set and maps , , and . If is in state and receives the input letter , then it chooses a distribution and transitions to the state with the probability . The choices are made with the goal of maximizing the acceptance probability of the input. Formally, computes the probabilistic language defined for by
Under this semantics, NPFAs are more expressive than PFAs [64]. Two alternative semantics emerge by modifying the output convex semilattice: for , the interval with the minimum operation, an NPFA computes the language of minimal acceptance probabilities. For , the convex semilattice of closed subintervals of , it computes the language sending to the interval . See van Heerdt et al. [64] for a detailed coalgebraic account of the different semantics.
-
(3)
-FAs with the output semimodule , are precisely weighted finite automata (WFAs) [26] over the semiring . A WFA computes a weighted language (or formal power series) , which is given by the formula (3.1), with sums and products formed in . Interesting choices for the semiring include:
-
(1)
the semiring of reals – note that PFAs are a special case of WFAs over ;
-
(2)
the min-plus or max-plus semiring of natural numbers with the operation (resp. ) as addition and the operation as multiplication; WFAs then correspond to min-plus and max-plus automata computing shortest (resp. longest) paths [47, Ch. 5].
-
(3)
the semiring of regular languages over an alphabet w.r.t. union and concatenation; WFAs are equivalent to transducers computing relations [47, Ch. 3].
-
(1)
4.3 Recognizing Effectful Languages by Bialgebras
We now introduce two modes of algebraic recognition for languages computed by -automata. In contrast to the exposition in Section 3 for the instance , we swap the order of presentation and first consider the recognition by algebraic structures and subsequently the recognition by effectful homomorphisms in Section 4.4, since from the categorical viewpoint the latter is best understood in the context of the former.
Definition 4.6.
A ()-bialgebra is a set equipped with both a -algebra structure and the structure of a monoid . It is a -monoid if the monoid multiplication is a -bimorphism: for every the maps are -endomorphisms on .
Remark 4.7.
Both -bialgebras and -monoids admit a categorical view:
-
(1)
-bialgebras correspond to algebras for the coproduct [1] of the monads and .
-
(2)
If is commutative, then -monoids correspond to algebras for the composite monad induced by the canonical distributive law of over [41, Thm 4.3.4]. They also correspond to monoid objects in the closed monoidal category ( whose tensor product represents -bimorphisms (i.e. -morphisms correspond to -bimorphisms ) [9, 36, 57]. The internal hom of is the algebra of all -morphisms from to , viewed as a subalgebra of the product . In particular, composition is a -bimorphism, so is a -monoid.
Example 4.8.
-
(1)
A -bialgebra is a convex set carrying an additional monoid structure (without any interaction between the two structures). A -monoid is a convex monoid, that is, a -bialgebra whose monoid multiplication satisfies (3.5).
- (2)
Both the notion of recognition of probabilistic languages by convex monoids and the respective finiteness condition (Definitions 3.15 and 3.16) are instances of the following:
Definition 4.9.
A -bialgebra recognizes the language if for some monoid morphism and some -morphism .
Definition 4.10.
A -algebra is finitely generated if there exists a surjective -morphism for some finite set . A -bialgebra is fg-carried if its underlying -algebra is finitely generated.
Theorem 4.11.
Suppose that is a finitely generated -algebra for every finite set . Then for every language , the following are equivalent:
-
(1)
There exists a -FA computing .
-
(2)
There exists an fg-carried -bialgebra recognizing .
If the monad is commutative, then these statements are equivalent to:
-
(3)
There exists an fg-carried -monoid recognizing .
Remark 4.12.
The condition of the theorem is equivalent to finitely generated -algebras being closed under finite products.
Proof sketch.
(1)(2) Let be a -FA computing . Then is recognized by the fg-carried -bialgebra via the monoid morphism and the -morphism which is given by . The proof that is a -morphism requires the initial state to be pure, which we may assume due to ˜4.4.
(2)(1) Let be an fg-carried -bialgebra recognizing via the monoid morphism and the -morphism . Since is finitely generated as a -algebra, there exists a surjective -morphism for some finite set . Let denote the monoid structure, and let and be the domain restrictions of and . We construct a -FA computing as follows: we choose and such that the first two diagrams below commute – these choices exist because is surjective. Moreover, we define by as in the third diagram.
One can prove that the -FA computes the language .
Now suppose that the monad is commutative. Then (1)(3) is shown like (1)(2), adding the observation that the recognizing -bialgebra is a -monoid as in Example 4.82. The implication (3)(2) is trivial.
Example 4.13.
The condition of Theorem 4.11 holds for from Example 4.1. We present for each finite set a finite set and a map such that is surjective. The respective witnesses are given in Figure 4, where denotes the set of all partial functions on . For all three monads, the condition amounts to the observation that every effectful function can be built from (partial or total) effect-free functions using -operations.
-FA | |||
---|---|---|---|
PFA | |||
NPFA | |||
WFA | if is defined, else |
Remark 4.14.
Using the abstract theory of syntactic structures [14, 63, 2], it is possible to associate a canonical algebraic recognizer to every language , namely its syntactic -bialgebra and, in the commutative case, its syntactic -monoid. The syntactic convex monoid (Theorem 3.21) is an instance of the latter.
Next, we show that, under conditions on , fg-carried -monoids are finitely presentable.
Definition 4.15.
Let be a monad. An -algebra is finitely presentable if it is the coequalizer in of some pair of -morphisms for finite sets and .
Remark 4.16.
For the monad associated to an algebraic theory , an -algebra is finitely presentable iff its corresponding -algebra in the variety defined by admits a finite presentation by generators and relations [4, Prop. 11.28]. Instantiating to the monad corresponding to the algebraic theory of -monoids, where is finitary, we obtain a notion of finitely presentable -monoid.
Theorem 4.17.
If is finitary and commutative, and finitely generated -algebras are finitely presentable, then every fg-carried -monoid is finitely presentable.
Note that Theorem 3.19 is the instance of this result for .
4.4 Recognizing Effectful Languages by Finite Monoids
Our second mode of recognition of -FA-computable languages uses effectful monoid morphisms to finite monoids; recognition by probabilistic channels from Section 3.3 is an instance.
Notation 4.18.
Given -morphisms (), we define the Kleisli morphism as in ˜3.6, with in lieu of .
Definition 4.19.
A (-)effectful monoid morphism from a monoid to a monoid is a -morphism such that the diagram in Figure 3 commutes. The monoid effectfully recognizes the language if there exists an effectful monoid morphism and a map such that .
The key condition on the monad that makes effectful recognition work is isolated in Theorem 4.22. This requires some technical preparation:
Remark 4.20.
The natural transformations of (4.1) and make a monoidal functor, that is, and satisfy coherence laws w.r.t. the natural isomorphisms and [34, Thm. 2.1]. Consequently, preserves monoid structures: for every monoid , the set forms a monoid with neutral element and multiplication, respectively, defined by
It is folklore that if is commutative, then, for every -monoid , the extension of every monoid morphism is also a monoid morphism. For non-commutative monads , this is not true in general.
Definition 4.21.
A -bialgebra is monoidally finitely generated if there exists a finite monoid and a monoid morphism whose free extension is a surjective monoid morphism.
We are now ready to state the desired general result on effectful recognition. Note that its condition implies that of Theorem 4.11; for a separating example see the full version [38].
Theorem 4.22.
Suppose that for every finite set the -bialgebra from Example 4.82 is monoidally finitely generated. Then for every language , there exists a -FA computing iff there exists a finite monoid -effectfully recognizing .
Proof sketch.
() Suppose that is a -FA computing . The proof of Theorem 4.11 shows that is recognized by the -bialgebra ; say for some monoid morphism and some -morphism . (The specific choices of and in that proof are not relevant here.) Since is monoidally finitely generated, there exists a monoid morphism such that is finite and is a surjective monoid morphism. By the universal property of the free monoid and the surjectivity of , we obtain a (not necessarily unique) monoid morphism with to fill the commutative diagram (4.2). Moreover, one can show that is an effectful monoid morphism. Then the finite monoid effectfully recognizes via and because . (4.2) (4.3) () Suppose that the finite monoid effectfully recognizes via and . Then the -FA whose transition map is given by the composite (4.3) (where for ) computes .
Example 4.23.
The condition of Theorem 4.22 holds for , as the maps from Figure 4 witnessing that is finitely generated also witness that is monoidally finitely generated. We note that the verification that is a monoid morphism is non-trivial unless is commutative (see ˜4.20). Proposition 4.24 below simplifies the computations for non-commutative , and also explains conceptually why the non-commutative monads and satisfy the condition: for a finite set , the -bialgebra is generated by central morphisms.
Recall that a Kleisli morphism is central [22, 49] if for all Kleisli morphisms , the following diagram commutes in .
(4.4) |
Proposition 4.24.
If is a monoid morphism whose uncurried form is central, then its free extension is a monoid morphism.
Remark 4.25.
The witness defined by for the monad from Definition 3.4 works more generally for all affine monads [35] (i.e. monads satisfying ). Hence, our Theorems 4.11 and 4.22 apply to all affine monads .
4.5 Applications
We proceed to instantiate Theorems 4.11 and 4.22 to derive algebraic characterizations for several effectful automata models. For , we recover Theorems 3.10 and 3.18 for PFAs:
Theorem 4.26.
A probabilistic language is PFA-computable iff it is -effectfully recognized by a finite monoid iff it is recognized by an fg-carried convex monoid.
For , we obtain a new algebraic characterization of NPFAs. Note that a -bialgebra is a convex semilattice with an additional monoid structure.
Theorem 4.27.
A probabilistic language is NPFA-computable iff it is -effectfully recognized by a finite monoid iff it is recognized by an fg-carried -bialgebra.
Finally, gives a new algebraic characterization of WFAs. Note that an -bialgebra is an -semimodule with an additional monoid structure. For a commutative semiring , the notion of an -monoid is that of an (associative) -algebra.
Theorem 4.28.
An -weighted language is WFA-computable iff it is -effectfully recognized by a finite monoid iff it is recognized by an fg-carried -bialgebra, and, for a commutative semiring , iff it is recognized by an fg-carried -algebra.
For the case where is a commutative ring (i.e. has additive inverses), we recover the correspondence between WFAs and fg-carried -algebras due to Reutenauer [52]. However, Theorem 4.28 applies to every semiring, so it also yields novel algebraic characterizations of min- and max-plus automata and transducers (Example 4.53) as special instances.
5 Conclusions and Future Work
We have developed the foundations of an algebraic theory of automata with generic computational effects. Under suitable conditions on the effect monad , we characterized -FA-computable languages by algebraic modes of effectful recognition. As special cases, this entails the first algebraic characterizations of probabilistic automata and weighted automata over unrestricted semirings. We proceed to give some prospects for future work.
Proving finite presentability of syntactic convex monoids is challenging even for simple probabilistic languages, as Example 3.24 illustrates. Identifying conditions on the language ensuring this property is thus a natural question.
We aim to extend our theory beyond the category of sets. Of particular interest are nominal sets, which would allow us to capture effectful (e.g. probabilistic or weighted) register automata [15]. The main technical hurdle lies in the construction of function spaces, which does not preserve orbit-finite (i.e. finitely presentable) nominal sets. This might be overcome via the recently proposed restriction to single-use functions [17, 16].
An orthogonal generalization of our theory concerns effectful languages beyond finite words. This requires switching from monoids to algebras for a monad [14]. For example, taking the monad corresponding to -semigroups [45] could lead to algebraic recognition of effectful languages over infinite words. For a generalization of the recognition by -monoids, we expect that the interaction between the monads and be given by some form of distributive law similar to the interaction of and .
Lastly, our effectful automata/monoid correspondence could pave the way to a topological account of effectful languages based on effectful profinite monoids. A first glimpse in this direction is given by Fijalkow [27] who analyzes the value-1 problem for PFAs in terms of a notion of free prostochastic monoid. We aim to study effectful versions of the duality theory of profinite monoids [28, 11] and its applications, notably variety theorems [29, 63].
References
- [1] Jiří Adámek, Stefan Milius, Nathan J. Bowler, and Paul Blain Levy. Coproducts of monads on set. In 27th Annual IEEE Symposium on Logic in Computer Science, (LICS 2012), pages 45–54. IEEE Computer Society, 2012. doi:10.1109/LICS.2012.16.
- [2] Jiří Adámek, Stefan Milius, and Henning Urbat. A categorical approach to syntactic monoids. Log. Methods Comput. Sci., 14(2):9:1–9:34, 2018. doi:10.23638/LMCS-14(2:9)2018.
- [3] Jiří Adámek and Jiří Rosický. Locally Presentable and Accessible Categories. London Mathematical Society Lecture Note Series. Cambridge University Press, 1994. doi:10.1017/CBO9780511600579.
- [4] Jiří Adámek, Jiří Rosický, and E. M. Vitale. Algebraic Theories: A Categorical Introduction to General Algebra. Cambridge Tracts in Mathematics. Cambridge University Press, 2010. doi:10.1017/CBO9780511760754.
- [5] Jiří Adámek and Vera Trnková. Automata and Algebras in Categories. Springer, 1990.
- [6] Jorge Almeida. On pseudovarieties, varieties of languages, filters of congruences, pseudoidentities and related topics. Algebra Universalis, 27(3):333–350, 1990. doi:10.1007/BF01190713.
- [7] Michael A. Arbib and Ernest G. Manes. Machines in a category: An expository introduction. SIAM Review, 16(2):163–192, 1974. doi:10.1137/1016026.
- [8] Christel Baier and Joost-Pieter Katoen. Principles of model checking. MIT Press, 2008.
- [9] Bernhard Banaschewski and Evelyn Nelson. Tensor products and bimorphisms. Canadian Mathematical Bulletin, 19(4):385–402, 1976. doi:10.4153/CMB-1976-060-2.
- [10] Nicolas Bedon and Chloé Rispal. Schützenberger and Eilenberg theorems for words on linear orderings. J. Comput. Syst. Sci., 78(2):517–536, 2012. doi:10.1016/J.JCSS.2011.06.003.
- [11] Fabian Birkmann, Henning Urbat, and Stefan Milius. Monoidal extended Stone duality. In 27th International Conference on Foundations of Software Science and Computation Structures (FoSSaCS 2024), volume 14574 of Lect. Notes Comput. Sci., pages 144–165. Springer, 2024. doi:10.1007/978-3-031-57228-9_8.
- [12] Achim Blumensath. Regular tree algebras. Log. Methods Comput. Sci., 16(1), 2020. doi:10.23638/LMCS-16(1:16)2020.
- [13] Achim Blumensath. Algebraic language theory for Eilenberg–Moore algebras. Log. Methods Comput. Sci., 17(2), 2021. doi:10.23638/LMCS-17(2:6)2021.
- [14] Mikołaj Bojańczyk. Recognisable languages over monads. In Igor Potapov, editor, Proc. 19th International Conference on Developments in Language Theory (DLT), volume 9168 of Lect. Notes Comput. Sci., pages 1–13. Springer, 2015. doi:10.1007/978-3-319-21500-6_1.
- [15] Mikołaj Bojańczyk, Bartek Klin, and Sławomir Lasota. Automata theory in nominal sets. Log. Methods Comput. Sci., 10(3), 2014. doi:10.2168/LMCS-10(3:4)2014.
- [16] Mikołaj Bojańczyk, Lê Thành Dung Nguyên, and Rafal Stefański. Function spaces for orbit-finite sets. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of LIPIcs, pages 130:1–130:20. Schloss Dagstuhl, 2024. doi:10.4230/LIPICS.ICALP.2024.130.
- [17] Mikołaj Bojańczyk and Rafal Stefański. Single-use automata and transducers for infinite alphabets. In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of LIPIcs, pages 113:1–113:14. Schloss Dagstuhl, 2020. doi:10.4230/LIPIcs.ICALP.2020.113.
- [18] Mikołaj Bojanczyk and Igor Walukiewicz. Forest algebras. In Jörg Flum, Erich Grädel, and Thomas Wilke, editors, Logic and Automata: History and Perspectives, volume 2 of Texts in Logic and Games, pages 107–132. Amsterdam University Press, 2008.
- [19] Benedikt Bollig, Paul Gastin, Benjamin Monmege, and Marc Zeitoun. A probabilistic Kleene theorem. In 10th International Symposium on Automated Technology for Verification and Analysis (ATVA 2012), volume 7561 of Lect. Notes Comput. Sci., pages 400–415. Springer, 2012. doi:10.1007/978-3-642-33386-6_31.
- [20] Filippo Bonchi, Ana Sokolova, and Valeria Vignudelli. The theory of traces for systems with nondeterminism, probability, and termination. Log. Methods Comput. Sci., 18(2), 2022. doi:10.46298/LMCS-18(2:21)2022.
- [21] Rais G. Bukharaev. Theorie der stochastischen Automaten. Vieweg+Teubner, 1995.
- [22] Titouan Carette, Louis Lemonnier, and Vladimir Zamdzhiev. Central submonads and notions of computation: Soundness, completeness and internal languages. In 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2023), pages 1–13. IEEE, 2023. doi:10.48550/arXiv.2207.09190.
- [23] Thomas Colcombet. Regular cost functions, part i: Logic and algebra over words. Log. Methods Comput. Sci., 9(3), 2013. doi:10.2168/LMCS-9(3:3)2013.
- [24] Thomas Colcombet and Daniela Petrişan. Automata minimization: a functorial approach. Log. Methods Comput. Sci., 16(1), 2020. doi:10.23638/LMCS-16(1:32)2020.
- [25] Volker Diekert, Paul Gastin, and Manfred Kufleitner. A survey on small fragments of first-order logic over finite words. Int. J. Found. Comput. Sci., 19(3):513–548, 2008. doi:10.1142/S0129054108005802.
- [26] Manfred Droste, Werner Kuich, and Heiko Vogler. Handbook of Weighted Automata. Springer, 2009. doi:10.1007/978-3-642-01492-5.
- [27] Nathanaël Fijalkow. Profinite techniques for probabilistic automata and the Markov monoid algorithm. Theor. Comput. Sci., 680:1–14, 2017. doi:10.1016/j.tcs.2017.04.006.
- [28] Mai Gehrke. Stone duality, topological algebra, and recognition. Journal of Pure and Applied Algebra, 220(7):2711–2747, 2016. doi:10.1016/j.jpaa.2015.12.007.
- [29] Mai Gehrke, Serge Grigorieff, and Jean-Éric Pin. Duality and equational theory of regular languages. In 35th International Colloquium on Automata, Languages and Programming (ICALP 2008), volume 5126 of Lect. Notes Comput. Sci., pages 246–257. Springer, 2008. doi:10.1007/978-3-540-70583-3_21.
- [30] Joseph A. Goguen. Minimal realization of machines in closed categories. Bulletin of the American Mathematical Society, 78(5):777–783, 1972. doi:10.1090/S0002-9904-1972-13032-5.
- [31] Sergey Goncharov, Stefan Milius, and Alexandra Silva. Towards a coalgebraic Chomsky hierarchy. In 8th International Conference on Theoretical Computer Science (TCS 2014), volume 8705 of Lect. Notes Comput. Sci., pages 265–280. Springer, 2014. doi:10.1007/978-3-662-44602-7_21.
- [32] Branko Grünbaum, Volker Kaibel, Victor Klee, and Günter M. Ziegler. Convex Polytopes. Springer, 2003. doi:10.1007/978-1-4613-0019-9.
- [33] Christian Hensel, Sebastian Junges, Joost-Pieter Katoen, Tim Quatmann, and Matthias Volk. The probabilistic model checker Storm. Int. J. Softw. Tools Technol. Transf., 24(4):589–610, 2022. doi:10.1007/s10009-021-00633-z.
- [34] Anders Kock. Monads on symmetric monoidal closed categories. Arch. Math, 21:1–10, 1970. doi:10.1007/BF01220868.
- [35] Anders Kock. Bilinearity and cartesian closed monads. Mathematica Scandinavica, 29:161–174, 1971. doi:10.7146/math.scand.a-11042.
- [36] Anders Kock. Closed categories generated by commutative monads. Journal of the Australian Mathematical Society, 12(4):405–424, 1971. doi:10.1017/S1446788700010272.
- [37] Marta Z. Kwiatkowska, Gethin Norman, and David Parker. PRISM 4.0: Verification of probabilistic real-time systems. In Ganesh Gopalakrishnan and Shaz Qadeer, editors, Computer Aided Verification - 23rd International Conference, CAV 2011, Snowbird, UT, USA, July 14-20, 2011. Proceedings, volume 6806 of Lecture Notes in Computer Science, pages 585–591. Springer, 2011. doi:10.1007/978-3-642-22110-1_47.
- [38] Fabian Lenke, Stefan Milius, Henning Urbat, and Thorsten Wißmann. Algebraic language theory with effects. CoRR, 2024. doi:10.48550/arXiv.2410.12569.
- [39] Saunders Mac Lane. Categories for the Working Mathematician. Springer, 1998. doi:10.1007/978-1-4757-4721-8.
- [40] Ernest G. Manes. Algebraic Theories, volume 26 of Graduate Texts in Mathematics. Springer, 1976. doi:10.1007/978-1-4612-9860-1.
- [41] Ernest G. Manes and Philip Mulry. Monad compositions I: General constructions and recursive distributive laws. Theory and Applications of Categories, 18:172–208, 2007.
- [42] Robert McNaughton and Seymour A. Papert. Counter-Free Automata (M.I.T. Research Monograph No. 65). The MIT Press, 1971. doi:10.5555/1097043.
- [43] Eugenio Moggi. Notions of computation and monads. Information and Computation, 93(1):55–92, 1991. doi:10.1016/0890-5401(91)90052-4.
- [44] Azaria Paz. Introduction to probabilistic automata. Elsevier, 1971. doi:10.1016/c2013-0-11297-4.
- [45] Dominique Perrin and Jean-Éric Pin. Infinite words - automata, semigroups, logic and games, volume 141 of Pure and applied mathematics series. Elsevier Morgan Kaufmann, 2004.
- [46] Jean-Éric Pin. Varieties Of Formal Languages. Plenum Publishing Co., 1986.
- [47] Jean-Éric Pin, editor. Handbook of Automata Theory. European Mathematical Society Publishing House, Zürich, Switzerland, 2021. doi:10.4171/Automata.
- [48] Jean-Eric Pin. Mathematical foundations of automata theory. https://www.irif.fr/ jep/PDF/MPRI/MPRI.pdf, February 2022.
- [49] John Power. Premonoidal categories as categories with algebraic structure. Theor. Comput. Sci., 278(1-2):303–321, 2002. doi:10.1016/S0304-3975(00)00340-6.
- [50] M. O. Rabin and D. Scott. Finite automata and their decision problems. IBM Journal of Research and Development, 3(2):114–125, 1959. doi:10.1147/rd.32.0114.
- [51] Michael O. Rabin. Probabilistic automata. Inform. Control, 6(3):230–245, 1963. doi:10.1016/S0019-9958(63)90290-0.
- [52] C. Reutenauer. Séries formelles et algèbres syntactiques. J. Algebra, 66:448–483, 1980. doi:10.1016/0021-8693(80)90097-6.
- [53] Wojciech Różowski and Alexandra Silva. A completeness theorem for probabilistic regular expressions. In 39th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2024). ACM, 2024. doi:10.1145/3661814.3662084.
- [54] Jan J. M. M. Rutten. Universal coalgebra: a theory of systems. Theor. Comput. Sci., 249(1):3–80, 2000. doi:10.1016/S0304-3975(00)00056-6.
- [55] Saeed Salehi and Magnus Steinby. Tree algebras and varieties of tree languages. Theoret. Comput. Sci., 377(1-3):1–24, 2007. doi:10.1016/j.tcs.2007.02.006.
- [56] Marcel Paul Schützenberger. On finite monoids having only trivial subgroups. Inform. and Control, 8:190–194, 1965. doi:10.1016/S0019-9958(65)90108-7.
- [57] Gavin J. Seal. Tensors, monads and actions. Theory and Applications of Categories, 28:403–433, 2012. doi:10.48550/arXiv.1205.0101.
- [58] Roberto Segala. Modeling and Verification of Randomized Distributed Real-time Systems. PhD thesis, Massachusetts Institute of Technology, 1995. URL: https://hdl.handle.net/1721.1/36560.
- [59] Alexandra Silva, Filippo Bonchi, Marcello Bonsangue, and Jan Rutten. Generalizing determinization from automata to coalgebras. Log. Methods Comput. Sci., 9(1), 2013. doi:10.2168/LMCS-9(1:9)2013.
- [60] Ana Sokolova and Harald Woracek. Congruences of convex algebras. Journal of Pure and Applied Algebra, 219(8):3110–3148, 2015. doi:10.1016/j.jpaa.2014.10.005.
- [61] Marshall H. Stone. Postulates for the barycentric calculus. Annali di Matematica Pura ed Applicata, 29(1):25–30, 1949. doi:10.1007/BF02413910.
- [62] Tadeusz Swirszcz. Monadic functors and convexity. Polonaise des Sciences. Sér. des sciences math., astr. et phys., 22, 1974.
- [63] Henning Urbat, Jiří Adámek, Liang-Ting Chen, and Stefan Milius. Eilenberg theorems for free. In 42nd International Symposium on Mathematical Foundations of Computer Science (MFCS 2017), volume 83 of LIPIcs, pages 43:1–43:14. Schloss Dagstuhl, 2017. doi:10.4230/LIPIcs.MFCS.2017.43.
- [64] Gerco van Heerdt, Justin Hsu, Joël Ouaknine, and Alexandra Silva. Convex language semantics for nondeterministic probabilistic automata. In 15th International Colloquium on Theoretical Aspects of Computing (ICTAC 2018), volume 11187 of lncs, pages 472–492. Springer, 2018. doi:10.1016/j.tcs.2025.115191.
- [65] Thomas Weidner. Probabilistic automata and probabilistic logic. In 37th International Symposium on Mathematical Foundations of Computer Science (MFCS 2012), volume 7464 of Lect. Notes Comput. Sci., pages 813–824. Springer, 2012. doi:10.1007/978-3-642-32589-2_70.
- [66] Thomas Wilke. An Eilenberg theorem for -languages. In Proc. 18th International Colloquium on Automata, Languages and Programming (ICALP), volume 510 of Lect. Notes Comput. Sci., pages 588–599. Springer, 1991. doi:10.5555/646245.756766.