PDF hosted at the Radboud Repository of the Radboud University Nijmegen

Size: px
Start display at page:

Download "PDF hosted at the Radboud Repository of the Radboud University Nijmegen"

Transcription

1 PDF hosted t the Rdboud Repository of the Rdboud University Nijmegen The following full text is publisher's version. For dditionl informtion bout this publiction click this link. Plese be dvised tht this informtion ws generted on nd my be subject to chnge.

2 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN Rdboud University Nijmegen nd Centrum Wiskunde & Informtic e-mil ddress: ENS Lyon, Université de Lyon, LIP (UMR 5668 CNRS ENS Lyon UCBL INRIA) e-mil ddress: LIACS - Leiden University e-mil ddress: mrcello@lics.nl Centrum Wiskunde & Informtic nd Rdboud University Nijmegen e-mil ddress: jnr@cwi.nl Abstrct. The powerset construction is stndrd method for converting nondeterministic utomton into deterministic one recognizing the sme lnguge. In this pper, we lift the powerset construction from utomt to the more generl frmework of colgebrs with structured stte spces. Colgebr is n bstrct frmework for the uniform study of different kinds of dynmicl systems. An endofunctor F determines both the type of systems (F -colgebrs) nd notion of behviourl equivlence ( F ) mongst them. Mny types of trnsition systems nd their equivlences cn be cptured by functor F. For exmple, for deterministic utomt the derived equivlence is lnguge equivlence, while for non-deterministic utomt it is ordinry bisimilrity. We give severl exmples of pplictions of our generlized determiniztion construction, including prtil Mely mchines, (structured) Moore utomt, Rbin probbilistic utomt, nd, somewht surprisingly, even pushdown utomt. To further witness the generlity of the pproch we show how to chrcterize colgebriclly severl equivlences which hve been object of interest in the concurrency community, such s filure or redy semntics ACM Subject Clssifiction: F.3.2. Key words nd phrses: Colgebrs, Powerset Construction, Liner Semntics. The work of Alexndr Silv is prtilly funded by the ERDF through the Progrmme COMPETE nd by the Portuguese Foundtion for Science nd Technology, project ref. PTDC/EIA-CCO/122240/2010 nd SFRH/BPD/71956/2010. The work of Filippo Bonchi is supported by the CNRS PEPS project CoGIP nd the project ANR 12IS02001 PACE. The reserch of Mrcello Bonsngue nd Jn Rutten hs been crried out under the Dutch NWO project CoRE: Coinductive Clculi for Regulr Expressions., dossier number LOGICAL METHODS IN COMPUTER SCIENCE DOI: /LMCS-??? c Alexndr Silv, Filippo Bonchi, Mrcello Bonsngue, nd Jn Rutten Cretive Commons 1

3 2 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN Introduction Colgebr is by now well estblished generl frmework for the study of the behviour of lrge clsses of dynmicl systems, including vrious kinds of utomt (deterministic, probbilistic etc.) nd infinite dt types (strems, trees nd the like). For functor F : Set Set, n F -colgebr is pir (X, f), consisting of set X of sttes nd function f : X F (X) defining the observtions nd trnsitions of the sttes. Colgebrs generlly come equipped with stndrd notion of equivlence clled F -behviourl equivlence tht is fully determined by their (functor) type F. Moreover, for most functors F there exists finl colgebr into which ny F -colgebr is mpped by unique homomorphism tht identifies ll F -equivlent sttes. Much of the colgebric pproch cn be nicely illustrted with deterministic utomt (DA), which re colgebrs of the functor D(X) = 2 X A. In DA, two sttes re D- equivlent precisely when they ccept the sme lnguge. The set 2 A of ll forml lnguges constitutes finl D-colgebr, into which every DA is mpped by homomorphism tht sends ny stte to the lnguge it ccepts. It is well-known tht non-deterministic utomt (NDA) often provide more efficient (smller) representtions of forml lnguges thn DA s. Lnguge cceptnce of NDA s is typiclly defined by turning them into DA s vi the powerset construction. Colgebriclly this works s follows. NDA s re colgebrs of the functor N(X) = 2 P ω (X) A, where P ω is the finite powerset. An N-colgebr (X, f : X 2 P ω (X) A ) is determinized by trnsforming it into D-colgebr (P ω (X), f : P ω (X) 2 P ω (X) A ) (for detils see Section 2). Then, the lnguge ccepted by stte s in the NDA (X, f) is defined s the lnguge ccepted by the stte s} in the DA (P ω (X), f ). For second vrition on DA s, we look t prtil utomt (PA): colgebrs of the functor P (X) = 2 (1 + X) A, where for certin input letters trnsitions my be undefined. Agin, one is often interested in the DA-behviour (i.e., lnguge cceptnce) of PA s. This cn be obtined by turning them into DA s using totliztion. Colgebriclly, this mounts to the trnsformtion of P -colgebr (X, f : X 2 (1+X) A ) into D-colgebr (1 + X, f : 1 + X 2 (1 + X) A ). Although the two exmples bove my seem very different, they re both instnces of one nd the sme phenomenon, which it is the gol of the present pper to describe t generl level. Both with NDA s nd PA s, two things hppen t the sme time: (i) more (or, more generlly, different types of) trnsitions re llowed, s consequence of chnging the functor type by replcing X by P ω (X) nd (1 + X), respectively; nd (ii) the behviour of NDA s nd PA s is still given in terms of the behviour of the originl DA s (lnguge cceptnce). For lrge fmily of F -colgebrs, both (i) nd (ii) cn be cptured simultneously with the help of the ctegoricl notion of mond, which generlizes the notion of lgebric theory. The structuring of the stte spce X cn be expressed s chnge of functor type from F (X) to F (T (X)). In our exmples bove, both the functors T 1 (X) = P ω (X) nd T 2 (X) = 1 + X re monds, nd NDA s nd PA s re obtined from DA s by chnging the originl functor type D(X) into N(X) = D(T 1 (X)) nd P (X) = D(T 2 (X)). Regrding (ii), one ssigns F -semntics to n F T -colgebr (X, f) by trnsforming it into n F -colgebr (T (X), f ), gin using the mond T. In our exmples bove, the determiniztion of NDA s nd the totliztion of PA s consists of the trnsformtion of N- nd P -colgebrs (X, f) into D-colgebrs (T 1 (X), f ) nd (T 2 (X), f ), respectively.

4 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 3 We shll investigte generl conditions on the functor types under which the bove constructions cn be pplied: for one thing, one hs to ensure tht the F T -colgebr mp f : X F (T (X)) induces suitble F -colgebr mp f : T (X) F (T (X)). Our results will led to uniform tretment of ll kinds of existing nd new vritions of utomt, tht is, F T -colgebrs, by n lgebric structuring of their stte spce through mond T. Furthermore, we shll prove number of generl properties tht hold in ll situtions similr to the ones bove. For instnce, there is the notion of N-behviourl equivlence with which NDA s, being N-colgebrs, come equipped. It coincides with the well-known notion of Prk-Milner bisimilrity from process lgebr. A generl observtion is tht if two sttes in n NDA re N-equivlent then they re lso D- (tht is, lnguge-) equivlent. For PA s, similr sttement holds. One further contribution of this pper is proof of these sttements, once nd for ll for ll F T -colgebrs under considertion. Colgebrs of type F T were studied in [29, 4, 22]. In [4, 22] the min concern ws definitions by coinduction, wheres in [29] proof principle ws lso presented. All in ll, the present pper cn be seen s the understnding of the forementioned ppers from new perspective, presenting uniform view on vrious utomt constructions nd equivlences. The structure of the pper is s follows. After preliminries (Section 1) nd the detils of the motivting exmples bove (Section 2), Section 3 presents the generl construction s well s mny more exmples, including the colgebric chrcteristion of pushdown utomt (Section 3.2). In Section 4, lrge fmily of utomt (techniclly: functors) is chrcterised to which the constructions bove cn be pplied. Section 5 contins the ppliction of the frmework in order to recover severl interesting equivlences stemming from the world of concurrency, such s filure nd redy semntics. Section 6 discusses relted work nd presents pointers to future work. This pper is n extended version of [43]. Compred to the conference version, we include the proofs nd more exmples. More interestingly, the chrcteristion of pushdown utomt colgebriclly (Section 3.2) nd the mteril in Section 5 re originl. 1. Bckground In this section we introduce the preliminries on colgebrs nd lgebrs. First, we fix some nottion on sets. We will denote sets by cpitl letters X, Y,... nd functions by lower cse letters f, g,... Given sets X nd Y, X Y is the crtesin product of X nd Y (with the usul projection mps π 1 nd π 2 ), X + Y is the disjoint union (with injection mps κ 1 nd κ 2 ) nd X Y is the set of functions f : Y X. The collection of finite subsets of X is denoted by P ω (X), while the collection of full-probbility distributions with finite support is D ω (X) = f : X [0, 1] f finite support nd x X f(x) = 1}. For set of letters A, A denotes the set of ll words over A; ɛ the empty word; nd w 1 w 2 (nd w 1 w 2 ) the conctention of words w 1, w 2 A Colgebrs. A colgebr is pir (X, f : X F (X)), where X is set of sttes nd F : Set Set is functor. The functor F, together with the function f, determines the trnsition structure (or dynmics) of the F -colgebr [37]. An F -homomorphism from n F -colgebr (X, f) to n F -colgebr (Y, g) is function h: X Y preserving the trnsition structure, i.e., g h = F (h) f.

5 4 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN An F -colgebr (Ω, ω) is sid to be finl if for ny F -colgebr (X, f) there exists unique F -homomorphism [[ ]] X : X Ω. All the functors considered in exmples in this pper hve finl colgebr. Let (X, f) nd (Y, g) be two F -colgebrs. We sy tht the sttes x X nd y Y re behviourlly equivlent, written x F y, if nd only if they re mpped into the sme element in the finl colgebr, tht is [[x]] X = [[y ] Y. For wek pullbck preserving functors, behviourl equivlence coincides with the usul notion of bisimilrity [37] Algebrs. Monds cn be thought of s generliztion of lgebric theories. A mond T = (T, µ, η) is triple consisting of n endofunctor T on Set nd two nturl trnsformtions: unit η : Id T nd multipliction µ: T 2 T. They stisfy the following commuttive lws µ η T = id T = µ T η nd µ µ T = µ T µ. Sometimes it is more convenient to represent mond T, equivlently, s Kleisli triple (T, ( ), η) [31], where T ssigns set T (X) to ech set X, the unit η ssigns function η X : X T (X) to ech set X, nd the extension opertion ( ) ssigns to ech f : X T (Y ) function f : T (X) T (Y ), such tht, f η X = f (η X ) = id T (X) (g f) = g f, for g : Y T (Z). Monds re frequently referred to s computtionl types [32]. We list now few exmples. In wht follows, f : X T (Y ) nd c T (X). Nondeterminism. T (X) = P ω (X); η X is the singleton mp x x}; f (c) = x c f(x). Prtility. T (X) = 1 + X where 1 = } represents terminting (or diverging) computtion; η X is the injection mp κ 2 : X 1 + X; f (κ 1 ( )) = κ 1 ( ) nd f (κ 2 (x)) = f(x). Further exmples of monds include: exceptions (T (X) = E + X), side-effects (T (X) = (S X) S ), interctive output (T (X) = µv.x + (O v) = O X) nd full-probbility (T (X) = D ω (X)). We will use ll these monds in our exmples nd we will define η X nd f for ech lter in Section 3.1. A T-lgebr of mond T is pir (X, h) consisting of set X, clled crrier, nd function h: T (X) X such tht h µ X = h T h nd h η X = id X. A T -homomorphism between two T-lgebrs (X, h) nd (Y, k) is function f : X Y such tht f h = k T f. T-lgebrs nd their homomorphisms form the so-clled Eilenberg-Moore ctegory Set T. There is forgetful functor U T : Set T Set defined by U T ((X, h)) = X nd U T (f : (X, h) (Y, k)) = f : X Y. The forgetful functor U T hs left djoint X (T (X), µ X : T T (X) T (X)), mpping set X to its free T-lgebr. If f : X Y with (Y, h) T-lgebr, the unique T-homomorphism f : (T (X), µ X ) (Y, h) with f η X = f is given by f : T (X) T f T (Y ) h Y. The function f : (T (X), µ X ) (T (Y ), µ Y ) coincides with function extension for Kleisli triple. For the mond P ω the ssocited Eilenberg-Moore ctegory is the ctegory of join semi-lttices, wheres for the mond 1 + is the ctegory of pointed sets.

6 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 5 2. Motivting exmples In this section, we introduce two motivting exmples. We will present two constructions, the determiniztion of non-deterministic utomton nd the totliztion of prtil utomton, which we will lter show to be n instnce of the sme, more generl, construction Non-deterministic utomt. A deterministic utomton (DA) over the input lphbet A is pir (X, o, t ), where X is set of sttes nd o, t : X 2 X A is function with two components: o, the output function, determines if stte x is finl (o(x) = 1) or not (o(x) = 0); nd t, the trnsition function, returns for ech input letter the next stte. DA s re colgebrs for the functor 2 Id A. The finl colgebr of this functor is (2 A, ɛ, ( ) ) where 2 A is the set of lnguges over A nd ɛ, ( ), given lnguge L, determines whether or not the empty word is in the lnguge (ɛ(l) = 1 or ɛ(l) = 0, resp.) nd, for ech input letter, returns the derivtive of L: L = w A w L}. From ny DA, there is unique mp l into 2 A which ssigns to ech stte its behviour (tht is, the lnguge tht the stte recognizes). X l 2 A o,t ɛ,( ) 2 X A 2 (2 A ) A id l A A non-deterministic utomton (NDA) is similr to DA but the trnsition function gives set of next-sttes for ech input letter insted of single stte. Thus, n NDA over the input lphbet A is pir (X, o, δ ), where X is set of sttes nd o, δ : X 2 (P ω (X)) A is pir of functions with o s before nd where δ determines for ech input letter set of possible next sttes. In order to compute the lnguge recognized by stte x of n NDA A, it is usul to first determinize it, constructing DA det(a) where the stte spce is P ω (X), nd then compute the lnguge recognized by the stte x} of det(a). Next, we describe in colgebric terms how to construct the utomton det(a). Given n NDA A = (X, o, δ ), we construct det(a) = (P ω (X), o, t ), where, for ll Y P ω (X), A, the functions o: P ω (X) 2 nd t: P ω (X) P ω (X) A re 1 y Y o(y) = 1 o(y ) = t(y )() = δ(y)(). 0 otherwise (Observe tht these definitions exploit the join-semilttice structures of 2 nd P ω (X) A ). The utomton det(a) is such tht the lnguge l(x}) recognized by x} is the sme s the one recognized by x in the originl NDA A (more generlly, the lnguge recognized by stte X of det(a) is the union of the lnguges recognized by ech stte x of A). y Y

7 6 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN We summrize the sitution bove with the following commuting digrm: } X P ω (X) 2 A o,δ o,t 2 P ω (X) A 2 (2 A ) A id l A l ɛ,( ) We note tht the lnguge semntics of NDA s, presented in the bove digrm, cn lso be obtined s n instnce of the bstrct definition scheme of λ-coinduction [4, 22] Prtil utomt. A prtil utomton (PA) over the input lphbet A is pir (X, o, ) consisting of set of sttes X nd pir of functions o, : X 2 (1 + X) A. Here o: X 2 is the sme s with DA. The second function : X (1+X) A is trnsition function tht sends ny stte x X to function (x): A 1 + X, which for ny input letter A is either undefined (no -lbelled trnsition tkes plce) or specifies the next stte tht is reched. PA s re colgebrs for the functor 2 (1 + Id) A. Given PA A, we cn construct totl (deterministic) utomton tot(a) by dding n extr sink stte to the stte spce: every undefined -trnsition from stte x is then replced by -lbelled trnsition from x to the sink stte. More precisely, given PA A = (X, o, ), we construct tot(a) = (1 + X, o, t ), where o(κ 1 ( )) = 0 o(κ 2 (x)) = o(x) t(κ 1 ( ))() = κ 1 ( ) t(κ 2 (x))() = (x)() (Observe tht these definitions exploit the pointed-set structures of 2 nd 1 + X). The lnguge l(x) recognized by stte x will be precisely the lnguge recognized by x in the originl prtil utomton. Moreover, the new sink stte recognizes the empty lnguge. Agin we summrize the sitution bove with the help of following commuting digrm, which illustrtes the similrities between both constructions: κ 2 X 1 + X 2 A o, o,t 2 (1 + X) A 2 (2 A ) A id l A l ɛ,( ) 3. Algebriclly structured colgebrs In this section we present generl frmework where both motivting exmples cn be embedded nd uniformly studied. We will consider colgebrs for which the functor type F T cn be decomposed into trnsition type F specifying the relevnt dynmics of system nd mond T providing the stte spce with n lgebric structure. For simplicity, we fix our bse ctegory to be Set. We study colgebrs f : X F T (X) for functor F nd mond T such tht F T (X) is T-lgebr, tht is F T (X) is the crrier of T-lgebr (F T (X), h). In the motivting

8 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 7 exmples, F would be instntited to 2 Id A (in both) nd T to P ω, for NDAs, nd to 1 + for PAs. The condition tht F T (X) is T-lgebr would mount to require tht 2 P ω (X) A is join-semilttice, for NDAs, nd tht 2 (1 + X) A is pointed set, for PAs. This is indeed the cse, since the set 2 cn be regrded both s join-semilttice (2 = P ω (1)) or s pointed set (2 = 1 + 1) nd, moreover, products nd exponentils preserve the lgebr structure. The inter-ply between the trnsition type F nd the computtionl type T (more precisely, the fct tht F T (X) is T-lgebr) llows ech colgebr f : X F T (X) to be extended uniquely to T -lgebr morphism f : (T (X), µ X ) (F T (X), h) which mkes the following digrm commute. η X X T (X) f f F T (X) f η X = f Intuitively, η X : X T (X) is the inclusion of the stte spce of the colgebr f : X F T (X) into the structured stte spce T (X), nd f : T (X) F T (X) is the extension of the colgebr f to T (X). Next, we study the behviour of given stte or, more generlly, we would like to sy when two sttes x 1 nd x 2 re equivlent. The obvious choice for n equivlence would be F T -behviourl equivlence. However, this equivlence is not exctly wht we re looking for. In the motivting exmple of non-deterministic utomt we wnted two sttes to be equivlent if they recognize the sme lnguge. If we would tke the equivlence rising from the functor 2 P ω (Id) A we would be distinguishing sttes tht recognize the sme lnguge but hve difference brnching types, s in the following exmple. b c b We now define new equivlence, which bsorbs the effect of the mond T. We sy tht two elements x 1 nd x 2 in X re F -equivlent with respect to mond T, written x 1 T F x 2, if nd only if η X (x 1 ) F η X (x 2 ). The equivlence F is just F - behviourl equivlence for the F -colgebr f : T (X) F T (X). If the functor F hs finl colgebr (Ω, ω), we cn cpture the semntic equivlence bove in the following commuting digrm η X [[ ]] X T (X) Ω f ω f F T (X) F (Ω) F [[ ]] c (3.1)

9 8 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN Returning to our first exmple, two sttes x 1 nd x 2 of n NDA (in which T is instntited to P ω nd F to 2 Id A ) would stisfy x 1 T F x 2 if nd only if they recognize the sme lnguge (recll tht the finl colgebr of the functor 2 Id A is 2 A ). It is lso interesting to remrk the difference between the two equivlences in the cse of prtil utomt. The colgebric semntics of PAs [39] is given in terms of pirs of prefix-closed lnguges V, W where V contins the words tht re ccepted (tht is, re the lbel of pth leding to finl stte) nd W contins ll words tht lbel ny pth (tht is ll tht re in V plus the words lbeling pths leding to non-finl sttes). We describe V nd W in the following two exmples, for the sttes s 0 nd q 0 : W = c + c b + c b V = c b c s 0 b s 2 s 1 b c q 0 q 1 b W = c + c b V = c b Thus, the sttes s 0 nd q 0 would be distinguished by F T -equivlence (for F = 2 Id A nd T = 1 + ) but they re equivlent with respect to the mond 1 +, s 0 T F q 0, since they ccept the sme lnguge. We will show in Section 4 tht the equivlence F T is lwys contined in T F Exmples. In this section we show more exmples of pplictions of the frmework bove Prtil Mely mchines. A prtil Mely mchine is set of sttes X together with function t: X (B (1 + X)) A, where A is set of inputs nd B is set of output vlues. We ssume tht B hs distinguished element B. For ech stte x nd for ech input the utomton produces n output vlue nd either termintes or continues to next stte. Applying the frmework bove we will be totlizing the utomton, similrly to wht hppened in the exmple of prtil utomt, by dding n extr stte to the stte spce which will ct s sink stte. The behviour of the totlized utomton is given by the set of cusl functions from A ω (infinite sequences of A) to B ω, which we denote by Γ(A ω, B ω ) [38]. A function f : A ω B ω is cusl if, for σ A ω, the n-th vlue of the output strem f(σ) depends only on the first n vlues of the input strem σ. In the digrm below, we define the finl mp [[ ]: 1 + X Γ(A ω, B ω ): κ 2 X 1 + X Γ(A ω, B ω ) [[κ 1 ( )]](σ) = (,,...) t [[κ 2 (x)]]( : τ) = b : ([[z]](τ)) t where t(x)() = b, z (B (1 + X)) A (B Γ(A ω, B ω )) A Here 1, x X, A, b B, σ A ω, z 1 + X, nd :τ denotes the prefixing of the strem τ A ω with the element. [[ ]]

10 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS Structured Moore utomt. In the following exmples we look t the functor F (X) = T (B) X A for rbitrry sets A nd B nd n rbitrry mond T = (T, η, ( ) ). The colgebrs of F represents Moore utomt with outputs in T (B) nd inputs in A. Since T (B) is T-lgebr, T (X) A is T-lgebr nd the product of T-lgebrs is still T-lgebr, then F T (X) is T-lgebr. For this reson, the (pir of) functions o: X T (B) nd t: X T (X) A lift to (pir of) functions o : T (X) T (B) t : T (X) T (X) A The finl colgebr of F is T (B) A. We cn chrcterize the finl mp [[ ]: T (X) T (B) A, for ll m T (X), A nd w A, by η X X T (X) T (B) A o,t [[m]](ɛ) = o (m) o,t [[m]]( w) = [[t ɛ,( ) (m)()]](w) T (B) T (X) A T (B) (T (B) A ) A Below we shll look t vrious concrete instnces of this scheme, for different choices of the mond T. Moore utomt with exceptions. Let E be n rbitrry set, the elements of which we think of s exceptions. We consider the exception mond T (X) = E + X which hs the function η(x) = κ 2 (x) s its unit. We define the lifting f : T (X) T (Y ), for ny function f : X T (Y ), by f = [id, f]. An F T -colgebr o, t : X (E + B) (E + X) A will ssocite with every stte x n output vlue (either in B or n exception in E) nd, for ech input, next stte or n exception. The behviour of stte x, given by [[η(x)]], will be forml power series over A with output vlues in E + B; tht is, function from A to E + B. The finl mp is defined s follows, for ll e E, x X, A, nd w A : κ 2 X E + X (E + B) A o,t [κ 1 (e)]](w) = κ 1 (e) o,t [κ 2 (x)]](ɛ) = o(x) [κ 2 (x)]]( w) = [[t(x)()](w) (E + B) (E + X) A (E + B) ((E + B) A ) A [[ ]] [[ ]] Moore utomt with side effects. Let S be n rbitrry set of so-clled side-effects. We consider the mond T (X) = (S X) S, with unit η defined, for ll x X nd s S, by η(x)(s) = s, x. We define the lifting f : T (X) T (Y ) of function f : X T (Y ) by f (g)(s) = f(x)(s ), for ny g T (X) nd s S, nd with g(s) = s, x. Consider n F T -colgebr o, t : X (B S) S ((S X) S ) A nd let us explin the intuition behind this type of utomton type. The set S X cn be interpreted s the configurtions of the utomton, where S contins informtion bout the stte of the system nd X bout the control of the system. Using the isomorphism X (S B) S =

11 10 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN S X S B, we cn think of o: X (S B) S s function tht for ech configurtion in S X provides n output in B nd the new stte of the system in S. The trnsition function t: X ((S X) S ) A gives new configurtion for ech input letter nd current configurtion, using gin the fct tht X ((S X) S ) A = S X (S X) A. In ll of this, concrete instnce of the set of side-effects could be, for exmple, the set S = V L of functions ssociting memory loctions to vlues. The behviour of stte x X will be given by [[η(x)]], where the finl mpping is s follows. For ll g (S X) S, s S, A nd w A, nd with g(s) = s, x, we hve η X (S X) S ((B S) S ) A o,t [g]](ɛ)(s) = o(x)(s ) o,t [g]]( w) = [[λs.t(x)()(s )](w) (B S) S ((S X) S ) A (B S) S (((B S) S ) A ) A Moore utomt with interctive output. Let O be n rbitrry set of outputs. Consider the interctive output mond defined by the functor T (X) = µv.x +(O v) = O X together with the nturl trnsformtion η X = λx X. ɛ, x, nd for which the lifting f : T (X) T (Y ) of function f : X T (Y ) is given by f ( w, x ) = ww, y with f(x) = w, y. We consider F T -colgebrs [[ ]] o, t : X (O B) (O X) A For B = 1, the bove colgebrs coincide with (totl) subsequentil trnsducers [17]: o: X O is the finl output function; t: X (O X) A is the piring of the output function nd the next stte-function. The behviour of stte x will be given by [[η(x)]] = [[ ɛ, x ]], where, for every w, x O X, [[ w, x ]]: A O, is given by [[ w, x ]](ɛ) = w o(x) [[ w, x ]](w 1 ) = w ([[t(x)()](w 1 )) Probbilistic Moore utomt. Consider the mond of probbility distributions defined, for ny set X, by T (X) = D ω (X) Its unit is given by the Dirc distribution, defined for x, x X by η(x)(x 1 x = x ) = 0 otherwise The lifting f : T (X) T (Y ) of function f : X T (Y ) is given, for ny distribution c D ω (X) nd ny y Y, by f (c)(y) = c(x) d(y) We will consider F T -colgebrs d D ω(y ) x f 1 (d) o, t : X D ω (B) D ω (X) A

12 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 11 More specificlly, we tke B = 2 which implies D ω (2) = [0, 1]. For this choice of B, the bove F T -colgebrs re precisely the (Rbin) probbilistic utomt [36]. Ech stte x hs n output vlue in o(x) [0, 1] nd, for ech input, t(x)() is probbility distribution of next sttes. The behviour of stte x is given by [[η(x)]]: A [0, 1], defined below. Intuitively, one cn think of [[η(x)]] s probbilistic lnguge: ech word is ssocited with vlue p [0, 1]. The finl mpping η X o,t D ω (X) [0, 1] A o,t [0, 1] D ω (X) A [0, 1] ([0, 1] A ) A is given, for ny d D ω (X), x X, A, nd w A, by [[d]](ɛ) = ( d(x)) b b [0,1] o(x)=b [[d]](w) = [[λx. ( b=t(x)() d(x)) c(x )]](w) c D ω (X) It is worth noting tht this exctly cptures the semntics of [36], while the ordinry F T coincides with probbilistic bisimilrity of [28]. Moreover T F coincides with the trce semntics of probbilistic trnsition systems defined in [19] (see Section 7.2 of [23]) Pushdown utomt, colgebriclly. Recursive functions in computer progrm led nturlly to stck of recursive function clls during the execution of the progrm. In this section, we provide colgebric model of utomt equipped with stck memory. A pushdown mchine is tuple (Q, A, B, δ), where Q is set of control loctions (sttes), A is set of input symbols, B is set of stck symbols, nd δ is finite subset of Q A B Q B, clled the set of trnsition rules. Note tht we do not insist on the sets Q, A nd B to be finite nd consider only reltime pushdown mchines, i.e. without internl trnsitions (lso clled ɛ-trnsitions) [21]. A configurtion k of pushdown mchine is pir q, β denoting the current control stte q Q nd the current content of the stck β B. In denoting the stck s string of stck symbols we ssume tht the topmost symbol is written first. There is trnsition q, bβ q, αβ if q, α δ(q,, b). A convenient nottion is to introduce for ny string w A the trnsition reltion on configurtions s the lest reltion such tht (1) k ɛ k (2) k w k if nd only if k k nd k w k. A pushdown utomton (pd) is pushdown mchine together with n initil configurtion k 0 nd set K of ccepting configurtions. The sets of ccepting configurtions usully considered re (1) the set F B, where F Q is clled the set of ccepting sttes, or (2) Q ɛ}, but lso (3) F ɛ} for F Q, or (4) Q B B for B subset of B. A word w A w is sid to be ccepted by pd (Q, A, B, δ, k 0, K) if k 0 k for some k K. A pd with ccepting configurtions s in (1) is sid to be with ccepting sttes, wheres, when they re s in (2) then the pd is sid to be ccepting by empty stck. They both [[ ]]

13 12 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN ccept exctly proper context free lnguges (i.e. context free lnguges without the empty word) [3]. Computtions in pushdown mchine re generlly non-deterministic nd cn cuse chnge in the control stte of the utomton s well s in its stck. For this reson we will model the effects of the computtions by mens of the so-clled non-deterministic side-effect mond [5]. For set of sttes S, let T be the functor P ω ( S) S. It is mond when equipped with the unit η X : X T (X), defined by η(x)(s) = x, s }, nd the multipliction µ X : T (T (X)) T (X) given by µ X (k)(s) = c(s ) c,s k(s) Note tht, for function f : X T (Y ), the extension f : T (X) T (Y ) is defined by f (c)(s) = f(x )(s ). x,s c(s) Exmples of lgebrs for this mond re T (1) = P ω (S) S nd 2 S. The ltter cn in fct be obtined s quotient of the former by equting those functions k 1, k 2 : S P ω (S) such tht for ll s S, k 1 (s) = if nd only if k 2 (s) =. Every pushdown mchine (Q, A, B, δ) together with set of ccepting configurtions K induces function o, t : Q F T Q where F is the functor 2 B id A nd T is the mond defined bove specilized for S = B (intuitively, side effects in pushdown mchine re chnges in its stck). The functions o: Q 2 B nd t: Q P ω (Q B ) B A re defined s o(q)(β) = 1 if nd only if q, β K t(q)()(ɛ) = t(q)()(bβ) = q, αβ q, α δ(q,, b)} The trnsition function t describes the steps between pd configurtions nd it is specified in terms of the trnsition instructions δ of the originl mchine. From the bove is cler tht not every function o, t : Q F T Q defines pushdown mchine with ccepting configurtions, s, for exmple, t(q) my depend on the whole stck β nd not just on the top element b. Therefore we restrict our ttention to consider functions o, t : Q F T Q such tht (1) t(q)()(ɛ) = (2) t(q)()(bβ) = q, αβ q, α t(q)()(b)}, Every o, t stisfying (1) nd (2) bove defines the pushdown mchine (Q, A, B, δ) with δ(q,, b) = t(q)()(b) nd with ccepting configurtion K = q, β o(q)(β) = 1}. The first condition is sserting tht mchine is in dedlock configurtion when the stck is empty, while the lst condition ensures tht trnsition steps depend only on the control stte nd the top element of the stck. For this reson we will write q,b α q for q, αβ t(q)()(b) indicting tht the pushdown mchine in the stte q by reding n input symbol nd popping b off the stck, cn move to control stte q pushing the string α B on the current stck (here denoted by β). Similrly to wht we hve shown in the exmples of structured Moore utomt, for every function o, t : Q F T Q there is unique F -colgebr mp [[ ]]: T (Q) 2 B A, which is lso T -lgebr homomorphism. It is defined for ll c P ω (Q B ) B nd β B

14 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 13 s η Q P ω (Q B ) B 2 B A o,t o,t 2 B P ω (Q B ) B A 2 B 2 B A A [[ ]] [[η(q)](ɛ) = o(q) [[η(q)](w) = [[λβ.t(q)()(β)]](w) [[c]](β) = [[η(q)]](α). q,α c(β) We then hve tht word w A is ccepted by the pd (Q, A, B, δ, k 0, K) with k 0 = q, β if nd only if [[η(q)](w)(β) = 1. The bove definition implies tht for given word w A we cn decide if it is ccepted by o, t : Q F T Q from n initil configurtion k 0 = q, β in exctly w steps (ssuming there is procedure to decide whether o(q)(β) = 1). As consequence, we cnnot use structured Moore utomt to model Turing mchines, for which the hlting problem is undecidble: in generl terms, for Turing mchines, we would need internl trnsitions tht do not consume input symbols. We conclude with n exmple of our construction using pushdown mchine with control sttes Q = q 0, q 1 }, over n input lphbet A =, b} nd using stck symbols B = x, s}. The trnsitions rules δ re given below:,s x q 0 b,x ɛ,x xx We tke K = q 0, ɛ, q 1, ɛ }, mening tht o(q 0 )(ɛ) = 1, o(q 1 )(ɛ) = 1 nd o(q i )(β) = 0 in ll other cses. By considering k 0 = q 0, s s initil configurtion, we then hve q 1 b,x ɛ [[η(q 0 )]](ɛ)(s) = o(q 0 )(s) = 0 mening tht the empty word is not ccepted by the pd (Q, A, B, δ, k 0, K). However, the word b is ccepted: [[η(q 0 )](b)(s) = [[λβ.t(q 0 )()(β)]](b)(s) = [[η(p)](b)(β) p,β t(q 0 )()(s) = [[η(q 1 )]](b)(x) = [[λβ.t(q 1 )(b)(β)]](ɛ)(x) = [[η(p)]](ɛ)(β) p,β t(q 1 )(b)(x) = [[η(q 1 )]](ɛ)(ɛ) = o(q 1 )(ɛ) = 1. In fct, the lnguge ccepted by the bove pushdown utomton is n b n n 1}. The structured sttes c i T Q, their trnsitions nd their outputs of (prt of) the ssocited Moore utomton re given in Figure 1. Context-free grmmrs generting proper lnguges (i.e. not contining the empty word ɛ) re equivlent to reltime pd s [11, 13, 42]. Given n input lphbet A, nd set

15 14 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN,s x q 0 b,x ɛ q 1,x xx b,x ɛ c 4 c b 2 b c 5 c 0 c 1 c 6,b b b c b 3 b c 7 q 0, xβ } if β = sβ c 2 = λβ. q 0, xxβ } if β = xβ otherwise q 0, xxβ } if β = sβ c 4 = λβ. q 0, xxxβ } if β = xβ otherwise c 6 = λβ. b 1 if β = ɛ o (c 0 ) = o (c 1 ) = λβ. 0 otherwise o (c 2 ) = o (c 4 ) = o (c 6 ) = λβ.0 1 if β = x o (c 3 ) = o (c 5 ) = λβ. 0 otherwise 1 if β = xxs o (c 7 ) = λβ. 0 otherwise c 0 = η(q 0 ) c 1 = η(q 1 ) q1, β c 3 = λβ. } if β = xβ otherwise q 1, β } if β = sβ c 5 = λβ. q 1, xβ } if β = xβ otherwise q1, β c 7 = λβ. } if β = xxβ otherwise Figure 1: The structured sttes c i T Q, their trnsitions nd their output of (prt of) the Moore utomton ssocited to the pd (Q, A, B, δ, k 0, K) where Q = q 0, q 1 }, A =, b}, B = x, s}, δ is depicted on the left top, k 0 = q 0, s nd K = q 0, ɛ, q 1, ɛ }. of vribles B, let G = (A, B, s, P ) be context-free grmmr in Greibch norml form [15], i.e. with productions in P of the form b α with b B, A nd α B. We cn construct function o, t : 1 F T 1 (where 1 = }) by setting o( )(β) = 1 if nd only if β = ɛ nd t( )()(bβ) =, αβ b α P }. Clerly this function stisfies conditions (1) nd (2) bove, nd thus, together with the initil configurtion, s defines pd. Furthermore, [[η( )]](w)(s) = 1 if nd only if there exists derivtion for w A in the grmmr G. As n exmple, let us consider the grmmr (, b}, s, x}, s, P ) with productions P = s sx, s x, x b} generting the lnguge n b n n 1}. The ssocited colgebr o, t : 1 F T 1 is given by,s sx *,s x with o( )(β) = 1 iff β = ɛ b,x ɛ

16 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 15,s sx *,s x b,x ɛ c 3 b c 4 c 0 = η( ), sxβ c 1 = λβ.,, xβ } if β = sβ otherwise c 1, β c 2 = λβ. } if β = xβ otherwise c 0 b c 2 b c 5 c 6, sxxβ c 3 = λβ.,, xβ } if β = sβ otherwise, β c 4 = λβ. } if β = sβ otherwise c 7, sxβ c 5 = λβ.,, xβ } if β = ssβ otherwise 1 if β = ɛ o (c 0 ) = λβ. 0 otherwise 1 if β = x o (c 2 ) = λβ. 0 otherwise, sxβ c 6 = λβ.,, xβ } if β = xsβ otherwise, β c 7 = λβ. } if β = xxβ otherwise o (c 1 ) = o (c 3 ) = o (c 5 ) = o (c 6 ) = λβ.0 1 if β = xx o (c 7 ) = λβ. 0 otherwise 1 if β = s o (c 4 ) = λβ. 0 otherwise Figure 2: The structured sttes c i T Q, their trnsitions nd their output of (prt of) the Moore utomton ssocited to the pd (Q, A, B, δ, k 0, K) where Q = }, A =, b}, B = x, s}, δ is depicted on the left top, k 0 =, s nd K =, ɛ }. Even if the lnguge ccepted by the bove pd is the sme s the one ccepted by the pd in the previous exmple (i.e., [[η( )](w)(s) = [[η(q 0 )]](w)(s) for ll w A ), the two ssocited Moore utomton re not in T F (tht is [[η( )]] [[η(q 0)]]). In fct, the Moore utomton ssocited to the bove colgebr (see below) ccepts the string bb when strting from the configurtion, ss, while the one in the previous exmple does not (in symbols, [[η( )]](bb)(ss) = 1 while [[η(q 0 )]](bb)(ss) = 0). The bove chrcteriztion of context free lnguges over n lphbet A is different nd complementry to the colgebric ccount of context-free lnguges presented in [44]. The ltter, in fct, uses the functor D(X) = 2 X A for deterministic utomt (insted of the Moore utomt with output in 2 B bove, for B set of vribles), nd the idempotent semiring mond T (X) = P ω ((X + A) ) (insted of our side effect mond) to study different

17 16 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN but equivlent wys to present context-free lnguges: using grmmrs, behviourl differentil equtions nd generlized regulr expressions in which the Kleene str is replced by unique fixed point opertor. 4. Colgebrs nd T-Algebrs In the previous section we presented frmework, prmeterized by functor F nd mond T, in which systems of type F T (tht is, F T -colgebrs) cn be studied using novel equivlence T F insted of the clssicl F T. The only requirement we imposed ws tht F T (X) hs to be T-lgebr. In this section, we will present functors F for which the requirement of F T (X) being T-lgebr is gurnteed becuse they cn be lifted to functor F on T-lgebr. For these functors, the equivlence T F coincides with F. In other words, working on F T - colgebrs in Set under the novel T F equivlence is the sme s working on F -colgebrs on T-lgebrs under the ordinry F equivlence. Next, we will prove tht for this clss of functors nd n rbitrry mond T the equivlence F T is contined in T F. Instntiting this result for our first motivting exmple of non-deterministic utomt will yield the well known fct tht bisimilrity implies trce equivlence. Let T be mond. An endofunctor F : Set T Set T is sid to be the T-lgebr lifting of functor F : Set Set if the following squre commutes 1 : Set T F Set T U T Set F If the functor F hs T-lgebr lifting F then F T (X) is the crrier of the lgebr F (T (X), µ). Functors tht hve T-lgebr lifting re given, for exmple, by those endofunctors on Set constructed inductively by the following grmmr Set U T F :: = Id B F F F A T G where A is n rbitrry set, B is the constnt functor mpping every set X to the crrier of T-lgebr (B, h), nd G is n rbitrry functor. Since the forgetful functor U T : Set T Set cretes nd preserves limits, both F 1 F 2 nd F A hve T-lgebr lifting if F, F 1, nd F 2 hve. Finlly, T G hs T-lgebr lifting for every endofunctor G given by the ssignment (X, h) (T GX, µ GX ). Note tht we do not llow tking coproducts in the bove grmmr, becuse coproducts of T-lgebrs re not preserved in generl by the forgetful functor U T. Insted, one could resort to extending the grmmr with the crrier of the coproduct tken directly in Set T. For instnce, if T is the (finite) powerset mond, then we could extend the bove grmmr with the functor F 1 F 2 = F 1 + F 2 +, }. All the functors of the exmples in Sections 2 nd 3, s well s those in Section 5, cn be generted by the bove grmmr nd, therefore, they hve T-lgebr lifting. Now, let F be functor with T-lgebr lifting nd for which finl colgebr Ω exists. If Ω cn be constructed s the limit of the finl sequence (for exmple ssuming the functor 1 This is equivlent to the existence of distributive lw λ: T F F T [24].

18 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS 17 ccessible [1]), then, becuse the forgetful functor U T : Set T Set preserves nd cretes limits, Ω is the crrier of T-lgebr, nd it is the finl colgebr of the lifted functor F. Further, for ny F T -colgebr f : X F T (X), the unique F -colgebr homomorphism [[ ]] s in digrm (3.1) is T -lgebr homomorphism between T (X) nd Ω. Conversely, the crrier of the finl F -colgebr (in Set T ) is the finl F -colgebr (in Set). Intuitively, the bove mens tht for n ccessible functor F with T-lgebr lifting F, F -equivlence in Set T coincides with F -equivlence with respect to T in Set. The ltter equivlence is corser thn the F T -equivlence in Set, s stted in the following theorem. Theorem 4.1. Let T be mond. If F is n endofunctor on Set for which finl colgebr exists nd with T-lgebr lifting, then F T implies T F. Proof. We first show tht there exists functor from the ctegory of F T -colgebrs to the ctegory of F -colgebrs. This functor mps ech F T -colgebr (X, f) into the F -colgebr (T (X), f ) nd ech F T -homomorphism h: (X, f) (Y, g) into the F -homomorphism T (h): (T (X), f ) (T (Y ), g ). In order to prove tht this is functor we just hve to show tht T (h) is n F -homomorphism (i.e., the bckwrd fce of the following digrm commutes). T (X) η X h X f F T (X) f F T (h) T (h) T (Y ) η Y Y g F T (Y ) Note tht the front fce of the bove digrm commutes becuse h is n F T -homomorphism. Also the top fce commutes becuse η is nturl trnsformtion. Thus F T (h) f η X = F T (h) f = g h nd lso g T (h) η X = g η Y h = g h. Since η is the unit of the djunction, then there exists unique j : T (X) F T (Y ) in Set T such tht g h = j η X. Since both F T (h) f nd g T (h) re (by construction) morphisms in Set T, then F T (h) f = g T (h). Let (X, f) nd (Y, g) be two F T -colgebrs nd [[ ]] X nd [[ ]] Y their morphisms into the finl F T -colgebr (Ω, ω). Let (T (X), f ), (T (Y ), g ) nd (T (Ω), ω ) be the corresponding F -colgebrs nd [[ ]] T X, [[ ]] T Y nd [[ ]] T Ω their morphisms into the finl F -colgebr (Ω, ω ). Since T ([ ] X ): (T (X), f ) (T (Ω), ω ) is n F -homomorphism, then by uniqueness, [[ ]] T X = [[ ]] T Ω T ([[ ]] X ). g

19 18 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN [[ ]] T X T (X) η X X f F T (X) f [[ ]] X F T ([[ ]] X ) T ([[ ]] X ) T (Ω) η Ω Ω ω F T (Ω) F ([[ ]] T X ) ω F ([[ ]] T Ω ) [[ ]] T Ω Ω F (Ω ) ω With the sme proof, we obtin [[ ]] T Y = [[ ]] T Ω T ([[ ]] Y ). Recll tht for ll x X nd y Y, by definition, x F T y iff [[x]] X = [[y]] Y nd x T F y iff [[η X (x)]] T X = [[η Y (y)]] T Y. Suppose tht [[x]] X = [[y]] Y. Then, T ([[η X (x)]] X ) = η Ω [[x]] X = η Ω [[y]] Y = T ([[η Y (y)]] Y ) nd, finlly, [[η X (x)] T X = [[ ]] T Ω T ([[η X (x)]] X ) = [[ ]] T Ω T ([η Y (y)]] Y ) = [[η Y (y)]] T Y. The bove theorem instntites to the well-known fcts: for NDA, where F (X) = 2 X A nd T = P ω, tht bisimilrity implies lnguge equivlence; for prtil utomt, where F (X) = 2 X A nd T = 1 +, tht equivlence of pirs of lnguges, consisting of defined pths nd ccepted words, implies equivlence of ccepted words; for probbilistic utomt, where F (X) = [0, 1] X A nd T = D ω, tht probbilistic bisimilrity implies probbilistic/weighted lnguge equivlence. Note tht, in generl, the bove inclusion is strict. Remrk. Let (X, f) be n F T -colgebr for mond T nd functor F. If η : id T is pointwise injective, then F T on the F T -colgebr (X, f) coincides with T F T on the extended T F T -colgebr (X, η F T (X) f) [37, 4]. If moreover F hs T-lgebr lifting then, by the bove theorem (on the extended T F T -colgebr), T F T implies T T F. Combining the two implictions, it follows tht ht F T on the F T -colgebr (X, f) implies T T F on the extended T F T -colgebr (X, η F T (X) f). Finlly, under the ssumption tht F hs T- lgebr lifting, we lso hve tht T F the F T -colgebr (X, f) implies T T F on the extended T F T -colgebr (X, η F T (X) f). This yields the following hierrchy of equivlences. T T F T F T = F T T F

20 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS Beyond Bisimilrity nd Trces The opertionl semntics of interctive systems is usully specified by lbeled trnsition systems (LTS s). The denottionl semntics is given in terms of behviourl equivlences, which depend the mount of brnching structure considered. Bisimilrity (full brnching) is sometimes considered too strict, while trce equivlence (no brnching) is often considered too corse. The liner time / brnching time spectrum [14] shows txonomy of mny interesting equivlences lying in between bisimilrity nd trces. Lbeled trnsition system re colgebrs for the functor P ω (Id) A nd the colgebric equivlence Pω(Id) A coincides with the stndrd notion of Prk-Milner bisimilrity. In [35], it is shown colgebric chrcteriztion of trces semntics (for LTS s) employing Kleisli ctegories. More recently, [33] hve provided chrcteriztion of trce, filure nd redy semntics by men of behviour objects. Another colgebric pproch [26] relies on test-suite tht, intuitively, re frgments of Hennessy-Milner logic. In this section, we show tht (finite) trce equivlence [20], complete trce equivlence [14], filures [9] nd redy semntics [34] cn be seen s specil cses of T F. Before introducing these semntics, we fix some nottions. A lbeled trnsition system is pir (X, δ) where X is set of sttes nd δ : X P ω (X) A is function ssigning to ech stte x X nd to ech lbel A finite set of possible successors sttes: x y mens tht y δ(x)(). Given word w A, we write x w y for x 1... n y nd w = 1... n. When w = ɛ, x ɛ y iff y = x. For function ϕ P ω (X) A, I(ϕ) denotes the set of ll lbels enbled by ϕ, i.e., A ϕ() }, while Fil(ϕ) denotes the set Z A Z I(ϕ) = }. Let X, δ be LTS nd x X be stte. A trce of x is word w A such tht x w y for some y. A trce w of x is complete if x w y nd y stops, i.e., I(δ(y)) =. A filure pir of x is pir w, Z A P ω (A) such tht x w y nd Z Fil(δ(y)). A redy pir of x is pir w, Z A P ω (A) such tht x w y nd Z = I(δ(y)). We use T (x), CT (x), F(x) nd R(x) to denote, respectively, the set of ll trces, complete trces, filure pirs nd redy pirs of x. For I rnging over T, CT, F nd R, two sttes x nd y re I-equivlent iff I(x) = I(y). For n exmple, consider the following trnsition systems lbeled over A =, b, c}. They re ll trce equivlent becuse their trces re, b, c. The trce is lso complete for p, but not for the others. Only r nd s re filure equivlent, since, bc} is filure pir only of p, while, b} nd, c} re filure pirs of p, r nd s, but not of q. Finlly they re ll redy different, since, is redy pir only of p,, b, c} is redy pir of q nd s but not of r, nd, b} nd, c} re redy pirs only of r nd s. b p c b q c b r c s b c c b We cn now show tht these equivlences re instnces of T F. We first show redy equivlence in detils nd then, briefly, the others.

21 20 ALEXANDRA SILVA, FILIPPO BONCHI, MARCELLO BONSANGUE, AND JAN RUTTEN Tke T = P ω nd F = P ω (P ω (A)) id A. For ech set X, consider the function π R X : P ω(x) A F T (X) defined for ll ϕ P ω (X) A by π R X(ϕ) = I(ϕ)}, ϕ. This function llows to trnsform ech LTS (X, δ) into the F T -colgebr (X, πx R δ). The ltter hs the sme trnsitions of X, δ, but ech stte x is decorted with the set I(ϕ)}. Now, by employing the powerset construction, we trnsform X, πx R δ into the F - colgebr (P ω (X), o, t ), where, for ll Y P ω (X), A, the functions o: P ω (X) P ω (P ω (A)) nd t: P ω (X) P ω (X) A re o(y ) = I(δ(y))} t(y )() = δ(y)(). y Y The finl F -colgebr is (P ω (P ω (A)) A, ɛ, ( ) ) where ɛ, ( ) is defined s usul. } X P ω (X) P ω (P ω (A)) A δ [[Y ](ɛ) = o(y ) (P ω (X)) A ɛ,( ) o,t [[Y ](w) = [[t(y )()]](w) πx R P ω (P ω (A)) (P ω (X)) A P ω (P ω (A)) (P ω (P ω (P ω (A)) A )) A Summrizing, the finl mp [[ ]]: P ω (X) P ω (P ω (A)) A mps ech x} into function ssigning to ech word w, the set Z A x w y nd Z = I(δ(y))}. In other terms, Z [[x}]](w) iff w, Z R(x). For the stte s depicted bove, [[s}]](ɛ) = }}, [[s}]]() = b}, b, c}, c}}, [[s}]](b) = [[s}](c) = } nd for ll the other words w, [[s}]](w) =. The other semntics cn be chrcterized in the sme wy, by choosing different functors F nd different functions π X : P ω (X) A F T. For filure semntics, tke the sme functor s for the redy semntics, tht is F = P ω (P ω (A)) id A nd new function π F X : P ω(x) A F T (X) defined ϕ P ω (X) A by [[ ]] π F X(ϕ) = Fil(ϕ), ϕ. The F T -colgebr (X, πx F δ) hs the sme trnsitions of the LTS X, δ, but ech stte x is decorted with the set Fil(ϕ). For both trce nd complete trce equivlence, tke F = 2 id A (s for NDA). For trce equivlence, πx T : P ω(x) A F T (X) mps ϕ P ω (X) A into 1, ϕ. Intuitively, (X, πx T δ) is n NDA where ll the sttes re ccepting. For complete trces, πx CT : P ω(x) A F T (X) mps ϕ in 1, ϕ if I(ϕ) = (nd in 0, ϕ otherwise). By tking T = D ω insted of T = P ω, we hope to be ble to chrcterize probbilistic trce, complete trce, redy nd filure s defined in [25]. y Y

22 GENERALIZING DETERMINIZATION FROM AUTOMATA TO COALGEBRAS Discussion In this pper, we lifted the powerset construction on utomt to the more generl frmework of F T -colgebrs. Our results led to uniform tretment of severl kinds of existing nd new vritions of utomt (tht is, F T -colgebrs) by n lgebric structuring of their stte spce through mond T. We showed s exmples prtil Mely mchines, structured Moore utomt, nondeterministic, prtil nd probbilistic utomt. Furthermore, we hve presented n interesting colgebric chrcteriztion of pushdown utomt nd showed how severl behviourl equivlences stemming from concurrency theory cn be retrieved from the generl frmework. It is worth mentioning tht the frmework instntites to mny other exmples, mong which re weighted utomt [41]. These re simply structured Moore utomt for B = 1 nd T = S ω (for semiring S) [16]. It is esy to see tht F T coincides with weighted bisimilrity [10], while T F coincides with weighted lnguge equivlence [41]. Some of the forementioned exmples cn lso be colgebriclly chrcterized in the frmework of [19, 18]. There, insted of considering F T -colgebrs on Set nd F - colgebrs on Set T (the Eilenberg-Moore ctegory), T G-colgebrs on Set nd G-colgebrs on Set T (the Kleisli ctegory) re studied. The min theorem of [19] sttes tht under certin ssumptions, the initil G-lgebr is the finl G-colgebr tht chrcterizes (generlized) trce equivlence. The exct reltionship between these two pproches hs been studied in [23] (nd, indirectly, it could be deduced from [6] nd [27]). It is worth to remrk tht mny of our exmples do not fit the frmework in [19]: for instnce, the exception, the side effect, the full-probbility nd the interctive output monds do not fulfill their requirements (the first three do not hve bottom element nd the ltter is not commuttive). Moreover, we lso note tht the exmple of prtil Mely mchines is not purely trce-like, s ll the exmples in [19]. The ide of using monds for modeling utomt with non-determinism, probbilism or side-effects dtes bck to the λ-mchines of [2] tht, rther thn colgebrs, rely on lgebrs. More precisely, the dynmic of λ-mchine is morphism δ : F X T X, where F is functor nd T is mond (for instnce the trnsitions of T -structured Moore utomt re function δ : X A T X mpping stte nd n input symbol into n element of T X). Anlogously to our pproch, ech λ-mchine induces n implicit λ-mchine hving T X s stte spce. Mny exmples of this pper (like Moore utomt) cn be seen s λ-mchines, but those systems tht re essentilly colgebric (like Mely mchines) do not fit the frmework in [2]. There re severl directions for future reserch. On the one hnd, we will try to exploit F -bisimultions up to T [29, 30] s sound nd complete proof technique for T F. On the other hnd, we would like to lift mny of those colgebric tools tht hve been developed for brnching equivlences (such s colgebric modl logic [12, 40] nd (xiomtiztion for) regulr expressions [8]) to work with the liner equivlences induced by T F. We hve pursued further the pplictions to decorted trces nd the chllenging modeling of the full liner-time spectrum in seprte pper [7], work which we lso pln to extend to probbilistic trces.

Regular Sets and Expressions

Regular Sets and Expressions Regulr Sets nd Expressions Finite utomt re importnt in science, mthemtics, nd engineering. Engineers like them ecuse they re super models for circuits (And, since the dvent of VLSI systems sometimes finite

More information

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES DAVID WEBB CONTENTS Liner trnsformtions 2 The representing mtrix of liner trnsformtion 3 3 An ppliction: reflections in the plne 6 4 The lgebr of

More information

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers. 2 Rtionl Numbers Integers such s 5 were importnt when solving the eqution x+5 = 0. In similr wy, frctions re importnt for solving equtions like 2x = 1. Wht bout equtions like 2x + 1 = 0? Equtions of this

More information

4.11 Inner Product Spaces

4.11 Inner Product Spaces 314 CHAPTER 4 Vector Spces 9. A mtrix of the form 0 0 b c 0 d 0 0 e 0 f g 0 h 0 cnnot be invertible. 10. A mtrix of the form bc d e f ghi such tht e bd = 0 cnnot be invertible. 4.11 Inner Product Spces

More information

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY MAT 0630 INTERNET RESOURCES, REVIEW OF CONCEPTS AND COMMON MISTAKES PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY Contents 1. ACT Compss Prctice Tests 1 2. Common Mistkes 2 3. Distributive

More information

Integration by Substitution

Integration by Substitution Integrtion by Substitution Dr. Philippe B. Lvl Kennesw Stte University August, 8 Abstrct This hndout contins mteril on very importnt integrtion method clled integrtion by substitution. Substitution is

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

9 CONTINUOUS DISTRIBUTIONS

9 CONTINUOUS DISTRIBUTIONS 9 CONTINUOUS DISTIBUTIONS A rndom vrible whose vlue my fll nywhere in rnge of vlues is continuous rndom vrible nd will be ssocited with some continuous distribution. Continuous distributions re to discrete

More information

Vectors 2. 1. Recap of vectors

Vectors 2. 1. Recap of vectors Vectors 2. Recp of vectors Vectors re directed line segments - they cn be represented in component form or by direction nd mgnitude. We cn use trigonometry nd Pythgors theorem to switch between the forms

More information

Algebra Review. How well do you remember your algebra?

Algebra Review. How well do you remember your algebra? Algebr Review How well do you remember your lgebr? 1 The Order of Opertions Wht do we men when we write + 4? If we multiply we get 6 nd dding 4 gives 10. But, if we dd + 4 = 7 first, then multiply by then

More information

Operations with Polynomials

Operations with Polynomials 38 Chpter P Prerequisites P.4 Opertions with Polynomils Wht you should lern: Write polynomils in stndrd form nd identify the leding coefficients nd degrees of polynomils Add nd subtrct polynomils Multiply

More information

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

and thus, they are similar. If k = 3 then the Jordan form of both matrices is Homework ssignment 11 Section 7. pp. 249-25 Exercise 1. Let N 1 nd N 2 be nilpotent mtrices over the field F. Prove tht N 1 nd N 2 re similr if nd only if they hve the sme miniml polynomil. Solution: If

More information

All pay auctions with certain and uncertain prizes a comment

All pay auctions with certain and uncertain prizes a comment CENTER FOR RESEARC IN ECONOMICS AND MANAGEMENT CREAM Publiction No. 1-2015 All py uctions with certin nd uncertin prizes comment Christin Riis All py uctions with certin nd uncertin prizes comment Christin

More information

2005-06 Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration

2005-06 Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration Source: http://www.mth.cuhk.edu.hk/~mt26/mt26b/notes/notes3.pdf 25-6 Second Term MAT26B 1 Supplementry Notes 3 Interchnge of Differentition nd Integrtion The theme of this course is bout vrious limiting

More information

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom Byesin Updting with Continuous Priors Clss 3, 8.05, Spring 04 Jeremy Orloff nd Jonthn Bloom Lerning Gols. Understnd prmeterized fmily of distriutions s representing continuous rnge of hypotheses for the

More information

MODULE 3. 0, y = 0 for all y

MODULE 3. 0, y = 0 for all y Topics: Inner products MOULE 3 The inner product of two vectors: The inner product of two vectors x, y V, denoted by x, y is (in generl) complex vlued function which hs the following four properties: i)

More information

Reasoning to Solve Equations and Inequalities

Reasoning to Solve Equations and Inequalities Lesson4 Resoning to Solve Equtions nd Inequlities In erlier work in this unit, you modeled situtions with severl vriles nd equtions. For exmple, suppose you were given usiness plns for concert showing

More information

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one. 5.2. LINE INTEGRALS 265 5.2 Line Integrls 5.2.1 Introduction Let us quickly review the kind of integrls we hve studied so fr before we introduce new one. 1. Definite integrl. Given continuous rel-vlued

More information

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes The Sclr Product 9.3 Introduction There re two kinds of multipliction involving vectors. The first is known s the sclr product or dot product. This is so-clled becuse when the sclr product of two vectors

More information

Graphs on Logarithmic and Semilogarithmic Paper

Graphs on Logarithmic and Semilogarithmic Paper 0CH_PHClter_TMSETE_ 3//00 :3 PM Pge Grphs on Logrithmic nd Semilogrithmic Pper OBJECTIVES When ou hve completed this chpter, ou should be ble to: Mke grphs on logrithmic nd semilogrithmic pper. Grph empiricl

More information

Basic Analysis of Autarky and Free Trade Models

Basic Analysis of Autarky and Free Trade Models Bsic Anlysis of Autrky nd Free Trde Models AUTARKY Autrky condition in prticulr commodity mrket refers to sitution in which country does not engge in ny trde in tht commodity with other countries. Consequently

More information

Math 135 Circles and Completing the Square Examples

Math 135 Circles and Completing the Square Examples Mth 135 Circles nd Completing the Squre Exmples A perfect squre is number such tht = b 2 for some rel number b. Some exmples of perfect squres re 4 = 2 2, 16 = 4 2, 169 = 13 2. We wish to hve method for

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata N Lecture Notes on Regulr Lnguges nd Finite Automt for Prt IA of the Computer Science Tripos Mrcelo Fiore Cmbridge University Computer Lbortory First Edition 1998. Revised 1999, 2000, 2001, 2002, 2003,

More information

Factoring Polynomials

Factoring Polynomials Fctoring Polynomils Some definitions (not necessrily ll for secondry school mthemtics): A polynomil is the sum of one or more terms, in which ech term consists of product of constnt nd one or more vribles

More information

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( ) Polynomil Functions Polynomil functions in one vrible cn be written in expnded form s n n 1 n 2 2 f x = x + x + x + + x + x+ n n 1 n 2 2 1 0 Exmples of polynomils in expnded form re nd 3 8 7 4 = 5 4 +

More information

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions. Lerning Objectives Loci nd Conics Lesson 3: The Ellipse Level: Preclculus Time required: 120 minutes In this lesson, students will generlize their knowledge of the circle to the ellipse. The prmetric nd

More information

6.2 Volumes of Revolution: The Disk Method

6.2 Volumes of Revolution: The Disk Method mth ppliction: volumes of revolution, prt ii Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem ) nd the ccumultion process is to determine so-clled volumes of

More information

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity Bbylonin Method of Computing the Squre Root: Justifictions Bsed on Fuzzy Techniques nd on Computtionl Complexity Olg Koshelev Deprtment of Mthemtics Eduction University of Texs t El Pso 500 W. University

More information

Integration. 148 Chapter 7 Integration

Integration. 148 Chapter 7 Integration 48 Chpter 7 Integrtion 7 Integrtion t ech, by supposing tht during ech tenth of second the object is going t constnt speed Since the object initilly hs speed, we gin suppose it mintins this speed, but

More information

g(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany

g(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany Lecture Notes to Accompny Scientific Computing An Introductory Survey Second Edition by Michel T Heth Boundry Vlue Problems Side conditions prescribing solution or derivtive vlues t specified points required

More information

Experiment 6: Friction

Experiment 6: Friction Experiment 6: Friction In previous lbs we studied Newton s lws in n idel setting, tht is, one where friction nd ir resistnce were ignored. However, from our everydy experience with motion, we know tht

More information

Lecture 3 Gaussian Probability Distribution

Lecture 3 Gaussian Probability Distribution Lecture 3 Gussin Probbility Distribution Introduction l Gussin probbility distribution is perhps the most used distribution in ll of science. u lso clled bell shped curve or norml distribution l Unlike

More information

One Minute To Learn Programming: Finite Automata

One Minute To Learn Programming: Finite Automata Gret Theoreticl Ides In Computer Science Steven Rudich CS 15-251 Spring 2005 Lecture 9 Fe 8 2005 Crnegie Mellon University One Minute To Lern Progrmming: Finite Automt Let me tech you progrmming lnguge

More information

Section 5-4 Trigonometric Functions

Section 5-4 Trigonometric Functions 5- Trigonometric Functions Section 5- Trigonometric Functions Definition of the Trigonometric Functions Clcultor Evlution of Trigonometric Functions Definition of the Trigonometric Functions Alternte Form

More information

Rotating DC Motors Part II

Rotating DC Motors Part II Rotting Motors rt II II.1 Motor Equivlent Circuit The next step in our consiertion of motors is to evelop n equivlent circuit which cn be use to better unerstn motor opertion. The rmtures in rel motors

More information

Econ 4721 Money and Banking Problem Set 2 Answer Key

Econ 4721 Money and Banking Problem Set 2 Answer Key Econ 472 Money nd Bnking Problem Set 2 Answer Key Problem (35 points) Consider n overlpping genertions model in which consumers live for two periods. The number of people born in ech genertion grows in

More information

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2.

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2. Physics 6010, Fll 2010 Symmetries nd Conservtion Lws: Energy, Momentum nd Angulr Momentum Relevnt Sections in Text: 2.6, 2.7 Symmetries nd Conservtion Lws By conservtion lw we men quntity constructed from

More information

SPECIAL PRODUCTS AND FACTORIZATION

SPECIAL PRODUCTS AND FACTORIZATION MODULE - Specil Products nd Fctoriztion 4 SPECIAL PRODUCTS AND FACTORIZATION In n erlier lesson you hve lernt multipliction of lgebric epressions, prticulrly polynomils. In the study of lgebr, we come

More information

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding 1 Exmple A rectngulr box without lid is to be mde from squre crdbord of sides 18 cm by cutting equl squres from ech corner nd then folding up the sides. 1 Exmple A rectngulr box without lid is to be mde

More information

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3.

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3. The nlysis of vrince (ANOVA) Although the t-test is one of the most commonly used sttisticl hypothesis tests, it hs limittions. The mjor limittion is tht the t-test cn be used to compre the mens of only

More information

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm Bibhudendr chry, Girij Snkr Rth, Srt Kumr Ptr, nd Sroj Kumr Pnigrhy Novel Methods of Generting Self-Invertible Mtrix for Hill Cipher lgorithm Bibhudendr chry Deprtment of Electronics & Communiction Engineering

More information

Unambiguous Recognizable Two-dimensional Languages

Unambiguous Recognizable Two-dimensional Languages Unmbiguous Recognizble Two-dimensionl Lnguges Mrcell Anselmo, Dor Gimmrresi, Mri Mdoni, Antonio Restivo (Univ. of Slerno, Univ. Rom Tor Vergt, Univ. of Ctni, Univ. of Plermo) W2DL, My 26 REC fmily I REC

More information

EQUATIONS OF LINES AND PLANES

EQUATIONS OF LINES AND PLANES EQUATIONS OF LINES AND PLANES MATH 195, SECTION 59 (VIPUL NAIK) Corresponding mteril in the ook: Section 12.5. Wht students should definitely get: Prmetric eqution of line given in point-direction nd twopoint

More information

4 Approximations. 4.1 Background. D. Levy

4 Approximations. 4.1 Background. D. Levy D. Levy 4 Approximtions 4.1 Bckground In this chpter we re interested in pproximtion problems. Generlly speking, strting from function f(x) we would like to find different function g(x) tht belongs to

More information

Lectures 8 and 9 1 Rectangular waveguides

Lectures 8 and 9 1 Rectangular waveguides 1 Lectures 8 nd 9 1 Rectngulr wveguides y b x z Consider rectngulr wveguide with 0 < x b. There re two types of wves in hollow wveguide with only one conductor; Trnsverse electric wves

More information

Physics 43 Homework Set 9 Chapter 40 Key

Physics 43 Homework Set 9 Chapter 40 Key Physics 43 Homework Set 9 Chpter 4 Key. The wve function for n electron tht is confined to x nm is. Find the normliztion constnt. b. Wht is the probbility of finding the electron in. nm-wide region t x

More information

Or more simply put, when adding or subtracting quantities, their uncertainties add.

Or more simply put, when adding or subtracting quantities, their uncertainties add. Propgtion of Uncertint through Mthemticl Opertions Since the untit of interest in n eperiment is rrel otined mesuring tht untit directl, we must understnd how error propgtes when mthemticl opertions re

More information

Euler Euler Everywhere Using the Euler-Lagrange Equation to Solve Calculus of Variation Problems

Euler Euler Everywhere Using the Euler-Lagrange Equation to Solve Calculus of Variation Problems Euler Euler Everywhere Using the Euler-Lgrnge Eqution to Solve Clculus of Vrition Problems Jenine Smllwood Principles of Anlysis Professor Flschk My 12, 1998 1 1. Introduction Clculus of vritions is brnch

More information

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation FUNCTIONS AND EQUATIONS. SETS AND SUBSETS.. Definition of set. A set is ny collection of objects which re clled its elements. If x is n element of the set S, we sy tht x belongs to S nd write If y does

More information

Lecture 5. Inner Product

Lecture 5. Inner Product Lecture 5 Inner Product Let us strt with the following problem. Given point P R nd line L R, how cn we find the point on the line closest to P? Answer: Drw line segment from P meeting the line in right

More information

On decidability of LTL model checking for process rewrite systems

On decidability of LTL model checking for process rewrite systems Act Informtic (2009) 46:1 28 DOI 10.1007/s00236-008-0082-3 ORIGINAL ARTICLE On decidbility of LTL model checking for process rewrite systems Lur Bozzelli Mojmír Křetínský Vojtěch Řehák Jn Strejček Received:

More information

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials MEI Mthemtics in Ection nd Instry Topic : Proof MEI Structured Mthemtics Mole Summry Sheets C, Methods for Anced Mthemtics (Version B reference to new book) Topic : Nturl Logrithms nd Eponentils Topic

More information

The Definite Integral

The Definite Integral Chpter 4 The Definite Integrl 4. Determining distnce trveled from velocity Motivting Questions In this section, we strive to understnd the ides generted by the following importnt questions: If we know

More information

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University SYSTEM FAULT AND Hrry G. Kwtny Deprtment of Mechnicl Engineering & Mechnics Drexel University OUTLINE SYSTEM RBD Definition RBDs nd Fult Trees System Structure Structure Functions Pths nd Cutsets Reliility

More information

19. The Fermat-Euler Prime Number Theorem

19. The Fermat-Euler Prime Number Theorem 19. The Fermt-Euler Prime Number Theorem Every prime number of the form 4n 1 cn be written s sum of two squres in only one wy (side from the order of the summnds). This fmous theorem ws discovered bout

More information

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff Protocol Anlysis 17-654/17-764 Anlysis of Softwre Artifcts Kevin Bierhoff Tke-Awys Protocols define temporl ordering of events Cn often be cptured with stte mchines Protocol nlysis needs to py ttention

More information

Review guide for the final exam in Math 233

Review guide for the final exam in Math 233 Review guide for the finl exm in Mth 33 1 Bsic mteril. This review includes the reminder of the mteril for mth 33. The finl exm will be cumultive exm with mny of the problems coming from the mteril covered

More information

Warm-up for Differential Calculus

Warm-up for Differential Calculus Summer Assignment Wrm-up for Differentil Clculus Who should complete this pcket? Students who hve completed Functions or Honors Functions nd will be tking Differentil Clculus in the fll of 015. Due Dte:

More information

Section 7-4 Translation of Axes

Section 7-4 Translation of Axes 62 7 ADDITIONAL TOPICS IN ANALYTIC GEOMETRY Section 7-4 Trnsltion of Aes Trnsltion of Aes Stndrd Equtions of Trnslted Conics Grphing Equtions of the Form A 2 C 2 D E F 0 Finding Equtions of Conics In the

More information

According to Webster s, the

According to Webster s, the dt modeling Universl Dt Models nd P tterns By Len Silversn According Webster s, term universl cn be defined s generlly pplicble s well s pplying whole. There re some very common ptterns tht cn be generlly

More information

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS Known for over 500 yers is the fct tht the sum of the squres of the legs of right tringle equls the squre of the hypotenuse. Tht is +b c. A simple proof is

More information

Hillsborough Township Public Schools Mathematics Department Computer Programming 1

Hillsborough Township Public Schools Mathematics Department Computer Programming 1 Essentil Unit 1 Introduction to Progrmming Pcing: 15 dys Common Unit Test Wht re the ethicl implictions for ming in tody s world? There re ethicl responsibilities to consider when writing computer s. Citizenship,

More information

The Velocity Factor of an Insulated Two-Wire Transmission Line

The Velocity Factor of an Insulated Two-Wire Transmission Line The Velocity Fctor of n Insulted Two-Wire Trnsmission Line Problem Kirk T. McDonld Joseph Henry Lbortories, Princeton University, Princeton, NJ 08544 Mrch 7, 008 Estimte the velocity fctor F = v/c nd the

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

Generating In-Line Monitors For Rabin Automata

Generating In-Line Monitors For Rabin Automata Generting In-Line Monitors For Rin Automt Hugues Chot, Rphel Khoury, nd Ndi Twi Lvl University, Deprtment of Computer Science nd Softwre Engineering, Pvillon Adrien-Pouliot, 1065, venue de l Medecine Queec

More information

Decision Rule Extraction from Trained Neural Networks Using Rough Sets

Decision Rule Extraction from Trained Neural Networks Using Rough Sets Decision Rule Extrction from Trined Neurl Networks Using Rough Sets Alin Lzr nd Ishwr K. Sethi Vision nd Neurl Networks Lbortory Deprtment of Computer Science Wyne Stte University Detroit, MI 48 ABSTRACT

More information

Distributions. (corresponding to the cumulative distribution function for the discrete case).

Distributions. (corresponding to the cumulative distribution function for the discrete case). Distributions Recll tht n integrble function f : R [,] such tht R f()d = is clled probbility density function (pdf). The distribution function for the pdf is given by F() = (corresponding to the cumultive

More information

AA1H Calculus Notes Math1115, Honours 1 1998. John Hutchinson

AA1H Calculus Notes Math1115, Honours 1 1998. John Hutchinson AA1H Clculus Notes Mth1115, Honours 1 1998 John Hutchinson Author ddress: Deprtment of Mthemtics, School of Mthemticl Sciences, Austrlin Ntionl University E-mil ddress: John.Hutchinson@nu.edu.u Contents

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Orthogonally modeling video structuration and annotation: exploiting the concept of granularity

Orthogonally modeling video structuration and annotation: exploiting the concept of granularity From: I Technicl Report WS-00-08. Compiltion copyright 2000, I (www.i.org). ll rights reserved. Orthogonlly modeling video structurtion nd nnottion: exploiting the concept of grnulrity M. Dums, R. Lozno,M.-C.Fuvet,H.MrtinndP.-C.Scholl

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES

UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES UNIVERSITY OF OSLO FACULTY OF MATHEMATICS AND NATURAL SCIENCES Solution to exm in: FYS30, Quntum mechnics Dy of exm: Nov. 30. 05 Permitted mteril: Approved clcultor, D.J. Griffiths: Introduction to Quntum

More information

CHAPTER 11 Numerical Differentiation and Integration

CHAPTER 11 Numerical Differentiation and Integration CHAPTER 11 Numericl Differentition nd Integrtion Differentition nd integrtion re bsic mthemticl opertions with wide rnge of pplictions in mny res of science. It is therefore importnt to hve good methods

More information

QUADRATURE METHODS. July 19, 2011. Kenneth L. Judd. Hoover Institution

QUADRATURE METHODS. July 19, 2011. Kenneth L. Judd. Hoover Institution QUADRATURE METHODS Kenneth L. Judd Hoover Institution July 19, 2011 1 Integrtion Most integrls cnnot be evluted nlyticlly Integrls frequently rise in economics Expected utility Discounted utility nd profits

More information

The Semantics of Graph Programs

The Semantics of Graph Programs The Semntics of Grph Progrms Detlef Plump Deprtment of Computer Science The University of York, UK Sndr Steinert Deprtment of Computer Science The University of York, UK GP (for Grph Progrms) is rule-bsed,

More information

Assumption Generation for Software Component Verification

Assumption Generation for Software Component Verification Assumption Genertion for Softwre Component Verifiction Dimitr Ginnkopoulou Corin S. Păsărenu RIACS/USRA Kestrel Technologies LLC NASA Ames Reserch Center Moffett Field, CA 94035-1000, USA {dimitr, pcorin}@emil.rc.ns.gov

More information

A.7.1 Trigonometric interpretation of dot product... 324. A.7.2 Geometric interpretation of dot product... 324

A.7.1 Trigonometric interpretation of dot product... 324. A.7.2 Geometric interpretation of dot product... 324 A P P E N D I X A Vectors CONTENTS A.1 Scling vector................................................ 321 A.2 Unit or Direction vectors...................................... 321 A.3 Vector ddition.................................................

More information

Understanding Basic Analog Ideal Op Amps

Understanding Basic Analog Ideal Op Amps Appliction Report SLAA068A - April 2000 Understnding Bsic Anlog Idel Op Amps Ron Mncini Mixed Signl Products ABSTRACT This ppliction report develops the equtions for the idel opertionl mplifier (op mp).

More information

Binary Representation of Numbers Autar Kaw

Binary Representation of Numbers Autar Kaw Binry Representtion of Numbers Autr Kw After reding this chpter, you should be ble to: 1. convert bse- rel number to its binry representtion,. convert binry number to n equivlent bse- number. In everydy

More information

How To Network A Smll Business

How To Network A Smll Business Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

COMPONENTS: COMBINED LOADING

COMPONENTS: COMBINED LOADING LECTURE COMPONENTS: COMBINED LOADING Third Edition A. J. Clrk School of Engineering Deprtment of Civil nd Environmentl Engineering 24 Chpter 8.4 by Dr. Ibrhim A. Asskkf SPRING 2003 ENES 220 Mechnics of

More information

Modular Generic Verification of LTL Properties for Aspects

Modular Generic Verification of LTL Properties for Aspects Modulr Generic Verifiction of LTL Properties for Aspects Mx Goldmn Shmuel Ktz Computer Science Deprtment Technion Isrel Institute of Technology {mgoldmn, ktz}@cs.technion.c.il ABSTRACT Aspects re seprte

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

Network Configuration Independence Mechanism

Network Configuration Independence Mechanism 3GPP TSG SA WG3 Security S3#19 S3-010323 3-6 July, 2001 Newbury, UK Source: Title: Document for: AT&T Wireless Network Configurtion Independence Mechnism Approvl 1 Introduction During the lst S3 meeting

More information

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100 hsn.uk.net Higher Mthemtics UNIT 3 OUTCOME 1 Vectors Contents Vectors 18 1 Vectors nd Sclrs 18 Components 18 3 Mgnitude 130 4 Equl Vectors 131 5 Addition nd Subtrction of Vectors 13 6 Multipliction by

More information

PDF hosted at the Radboud Repository of the Radboud University Nijmegen

PDF hosted at the Radboud Repository of the Radboud University Nijmegen PDF hosted at the Radboud Repository of the Radboud University Nijmegen The following full text is a publisher's version. For additional information about this publication click this link. http://hdl.handle.net/2066/83350

More information

PHY 140A: Solid State Physics. Solution to Homework #2

PHY 140A: Solid State Physics. Solution to Homework #2 PHY 140A: Solid Stte Physics Solution to Homework # TA: Xun Ji 1 October 14, 006 1 Emil: jixun@physics.ucl.edu Problem #1 Prove tht the reciprocl lttice for the reciprocl lttice is the originl lttice.

More information

Object Semantics. 6.170 Lecture 2

Object Semantics. 6.170 Lecture 2 Object Semntics 6.170 Lecture 2 The objectives of this lecture re to: to help you become fmilir with the bsic runtime mechnism common to ll object-oriented lnguges (but with prticulr focus on Jv): vribles,

More information

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam 1./1.1 Introduction to Computers nd Engineering Problem Solving Fll 211 - Finl Exm Nme: MIT Emil: TA: Section: You hve 3 hours to complete this exm. In ll questions, you should ssume tht ll necessry pckges

More information

Techniques for Requirements Gathering and Definition. Kristian Persson Principal Product Specialist

Techniques for Requirements Gathering and Definition. Kristian Persson Principal Product Specialist Techniques for Requirements Gthering nd Definition Kristin Persson Principl Product Specilist Requirements Lifecycle Mngement Elicit nd define business/user requirements Vlidte requirements Anlyze requirements

More information

Small Business Cloud Services

Small Business Cloud Services Smll Business Cloud Services Summry. We re thick in the midst of historic se-chnge in computing. Like the emergence of personl computers, grphicl user interfces, nd mobile devices, the cloud is lredy profoundly

More information

Drawing Diagrams From Labelled Graphs

Drawing Diagrams From Labelled Graphs Drwing Digrms From Lbelled Grphs Jérôme Thièvre 1 INA, 4, venue de l Europe, 94366 BRY SUR MARNE FRANCE Anne Verroust-Blondet 2 INRIA Rocquencourt, B.P. 105, 78153 LE CHESNAY Cedex FRANCE Mrie-Luce Viud

More information

Chapter 6. Logic and Action. 6.1 Actions in General

Chapter 6. Logic and Action. 6.1 Actions in General Chpter 6 Logic nd Action Overview An ction is something tht tkes plce in the world, nd tht mkes difference to wht the world looks like. Thus, ctions re mps from sttes of the world to new sttes of the world.

More information

flex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A

flex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A flex Regulr Expressions nd Lexicl Scnning Using flex to Build Scnner flex genertes lexicl scnners: progrms tht discover tokens. Tokens re the smllest meningful units of progrm (or other string). flex is

More information

DIFFERENTIAL FORMS AND INTEGRATION

DIFFERENTIAL FORMS AND INTEGRATION DIFFERENTIAL FORMS AND INTEGRATION TERENCE TAO The concept of integrtion is of course fundmentl in single-vrible clculus. Actully, there re three concepts of integrtion which pper in the subject: the indefinite

More information

3 The Utility Maximization Problem

3 The Utility Maximization Problem 3 The Utility Mxiiztion Proble We hve now discussed how to describe preferences in ters of utility functions nd how to forulte siple budget sets. The rtionl choice ssuption, tht consuers pick the best

More information

1.2 The Integers and Rational Numbers

1.2 The Integers and Rational Numbers .2. THE INTEGERS AND RATIONAL NUMBERS.2 The Integers n Rtionl Numers The elements of the set of integers: consist of three types of numers: Z {..., 5, 4, 3, 2,, 0,, 2, 3, 4, 5,...} I. The (positive) nturl

More information

DATABASDESIGN FÖR INGENJÖRER - 1056F

DATABASDESIGN FÖR INGENJÖRER - 1056F DATABASDESIGN FÖR INGENJÖRER - 06F Sommr 00 En introuktionskurs i tssystem http://user.it.uu.se/~ul/t-sommr0/ lt. http://www.it.uu.se/eu/course/homepge/esign/st0/ Kjell Orsorn (Rusln Fomkin) Uppsl Dtse

More information

Solving BAMO Problems

Solving BAMO Problems Solving BAMO Problems Tom Dvis tomrdvis@erthlink.net http://www.geometer.org/mthcircles Februry 20, 2000 Abstrct Strtegies for solving problems in the BAMO contest (the By Are Mthemticl Olympid). Only

More information

Pentominoes. Pentominoes. Bruce Baguley Cascade Math Systems, LLC. The pentominoes are a simple-looking set of objects through which some powerful

Pentominoes. Pentominoes. Bruce Baguley Cascade Math Systems, LLC. The pentominoes are a simple-looking set of objects through which some powerful Pentominoes Bruce Bguley Cscde Mth Systems, LLC Astrct. Pentominoes nd their reltives the polyominoes, polycues, nd polyhypercues will e used to explore nd pply vrious importnt mthemticl concepts. In this

More information