Expressiveness modulo Bisimilarity of Regular Expressions with Parallel Composition (Extended Abstract)

Size: px
Start display at page:

Download "Expressiveness modulo Bisimilarity of Regular Expressions with Parallel Composition (Extended Abstract)"

Transcription

1 Expressiveness modulo Bisimilrity of Regulr Expressions with Prllel Composition (Extended Abstrct) Jos C. M. Beten Eindhoven University of Technology, The Netherlnds Tim Muller University of Luxembourg, Luxembourg Bs Luttik Eindhoven University of Technology, The Netherlnds Vrije Universiteit Amsterdm, The Netherlnds Pul vn Tilburg Eindhoven University of Technology, The Netherlnds The lnguges ccepted by finite utomt re precisely the lnguges denoted by regulr expressions. In contrst, finite utomt my exhibit behviours tht cnnot be described by regulr expressions up to bisimilrity. In this pper, we consider extensions of the theory of regulr expressions with vrious forms of prllel composition nd study the effect on expressiveness. First we prove tht dding pure interleving to the theory of regulr expressions strictly increses its expressiveness modulo bisimilrity. Then, we prove tht replcing the opertion for pure interleving by ACP-style prllel composition gives further increse in expressiveness. Finlly, we prove tht the theory of regulr expressions with ACP-style prllel composition nd encpsultion is expressive enough to express ll finite utomt modulo bisimilrity. Our results extend the expressiveness results obtined by Bergstr, Bethke nd Ponse for process lgebrs with (the binry vrint of) Kleene s str opertion. 1 Introduction A well-known theorem by Kleene sttes tht the lnguges ccepted by finite utomt re precisely the lnguges denoted by regulr expression (see, e.g., [8]). Milner, in [10], showed how regulr expressions cn be used to describe behviour by defining n interprettion of regulr expressions directly s finite utomt. He then observed tht the process-theoretic counterprt of Kleene s theorem stting tht every finite utomton is described by regulr expression fils: there exist finite utomt whose behviours cnnot fithfully, i.e., up to bisimilrity, be described by regulr expressions. Beten, Corrdini nd Grbmyer [1] recently found structurl property on finite utomt tht chrcterises those tht re denoted with regulr expression modulo bisimilrity. In this pper, we study to wht extent the expressiveness of regulr expressions increses when vrious forms of prllel composition re dded. Our first contribution, in Section 3, is to show tht dding n opertion for pure interleving to regulr expressions strictly increses their expressiveness modulo bisimilrity. A crucil step in our proof consists of chrcterising the strongly connected components in finite utomt denoted by regulr expressions. The chrcteristion llows us to prove property pertining to the exit trnsitions from such strongly connected components. If interleving is dded, then it is possible to denote finite utomt violting this property. Our second contribution, in Section 4, is to show tht replcing the opertion for pure interleving by ACP-style prllel composition [5], which implements form of synchronistion by communiction S. Fröschle, F.D. Vlenci (Eds.): Workshop on Expressiveness in Concurrency 2010 (EXPRESS 10). EPTCS 41, 2010, pp. 1 15, doi: /eptcs.41.1

2 2 Regulr Expressions with Prllel Composition modulo Bisimilrity between components, leds to further increse in expressiveness. To this end, we first chrcterise the strongly connected components in finite utomt denoted by regulr expressions with interleving, nd deduce property on the exit trnsitions from such strongly connected components. Then, we present n expression in the theory of regulr expressions with ACP-style prllel composition tht denotes finite utomton violting this property. Our third contribution, in Section 5, is to estblish tht dding ACP-style prllel composition nd encpsultion to the theory of regulr expressions ctully yields theory in which every finite utomton cn be expressed up to isomorphism, nd hence, since bisimilrity is corser thn isomorphism, lso up to bisimilrity. Every expression in the resulting theory, in turn, denotes finite utomton, so this result cn be thought of s n lterntive process-theoretic counterprt of Kleene s theorem. The results in this pper re inspired by the results of Bergstr, Bethke nd Ponse pertining to the reltive expressiveness of process lgebrs with binry vrint of Kleene s str opertion. In [3] they estblish n expressiveness hierrchy on the extensions of the process theories BPA(A), BPA δ (A), PA(A), PA δ (A), ACP(A,γ), nd ACP τ (A,γ) with binry Kleene str. The reson tht their results re bsed on extensions with the binry version of the Kleene str is tht they wnt to void the processtheoretic complictions rising from the notion of intermedite termintion (we sy tht stte in finite utomton is intermeditely terminting if it is terminting but lso dmits trnsition). Most of the expressiveness results in [3] re included in [4], with more elborte proofs. Csting our contributions mentioned bove in process-theoretic terminology, we estblish strict expressiveness hierrchy on the process theories BPA 0,1 (A) (regulr expressions) modulo bisimilrity, PA 0,1 (A) (regulr expressions with interleving) modulo bisimilrity nd ACP 0,1 (A,γ) (regulr expressions with ACP-style prllel composition nd encpsultion) modulo bisimilrity. The differences between the process theories BPA δ (A), PA δ (A) nd ACP(A,γ) considered [3, 4] nd the process theories BPA 0,1 (A), PA 0,1 (A) nd ACP 0,1 (A,γ) considered in this pper re s follows: we write 0 for the constnt dedlock which is denoted by δ in [3, 4], we include the unry Kleene str insted of its binry vrint, nd we include constnt 1 denoting the successfully terminted process. The first difference is, of course, cosmetic, nd with the ddition of the constnt 1 the unry nd binry vrints of Kleene s str re interdefinble. So, our results pertining to the reltive expressiveness of BPA 0,1 (A), PA 0,1 (A) nd ACP 0,1 (A,γ) extend the expressiveness hierrchy of [3, 4] with the constnt 1. In [4] the expressiveness proofs re bsed on identifying cycles nd exit trnsitions from these cycles. There re two resons why the proofs in [3] nd [4] cnnot esily be dpted to setting with 1. First, in setting with 1 nd Kleene str there re cycles without ny exit trnsitions. Second, the inclusion of the empty process 1 gives intermedite termintion, which, combined with the previously described different behviour of cycles, forces us to consider the more generl structure of strongly connected component. 2 Preliminries In this section, we present the relevnt definitions for the process theory ACP 0,1 (A,γ) nd its subtheories PA 0,1 (A) nd BPA 0,1 (A). We give their syntx nd opertionl semntics, nd the notion of (strong) bisimilrity. We lso introduce some uxiliry technicl notions tht we need in the reminder of the pper, most notbly tht of strongly connected component. The expressions of the process theory BPA 0,1 (A) re precisely the well-known regulr expressions from the theory of utomt nd forml lnguges, but we shll consider the utomt ssocited with them modulo bisimilrity insted of modulo lnguge equivlence. The process theory ACP 0,1 (A,γ) is prmetrised by non-empty set A of ctions, nd commu-

3 Beten, Luttik, Muller & Vn Tilburg 3 niction function γ on A, i.e., n ssocitive nd commuttive binry prtil opertion γ : A A A. ACP 0,1 (A,γ) incorportes form of synchronistion between the components of prllel composition by llowing certin ctions to engge in communiction resulting in nother ction. The communiction function γ then defines which ctions my communicte nd wht is the result. The detils of this feture will become cler when we present the opertionl semntics of prllel composition. The set of ACP 0,1 (A,γ) expressions P ACP 0,1 (A,γ) is generted by the following grmmr: p ::= 0 1 p p p+ p p p p H (p), with rnging over A nd H rnging over subsets ofa. The process theory ACP(A,γ) (excluding the constnts 0 nd 1, but including constnt δ with exctly the sme behviour s 0, nd without the opertion ) origintes with [5]. The extension of ACP(A,γ) with constnt 1 ws investigted by [9, 2, 14] (in these rticles, the constnt ws denoted ε). The extension of ACP(A,γ) with the binry version of the Kleene str ws first proposed in [3]. The reder lredy fmilir with the process theory ACP 0,1 (A,γ) will hve noticed tht the opertions (left merge) nd (communiction merge) re missing from our syntx definition. In [5], these opertions re included s uxiliry opertions necessry for finite xiomtistion of the theory. They do not, however, dd expressiveness in our setting with Kleene str insted of generl form of recursion. We hve omitted them to chieve more efficient presenttion of our results. The constnts 0 nd 1 respectively stnd for the dedlocked process nd the successfully terminted process, nd the constnts A denote processes of which the only behviour is to execute the ction. An expression of the form p q is clled sequentil composition, n expression of the form p+q is clled n lterntive composition, nd n expression of the form p is clled str expression. An expression of the form p q is clled prllel composition, nd n expression of the form H (p) is clled n encpsultion. From the nmes for the constructions in the syntx of ACP 0,1 (A,γ), the reder probbly hs lredy n intuitive understnding of the behviour of the corresponding processes. We proceed to formlise the opertionl behviour by mens of collection of opertionl rules (see Tble 1) in the style of Plotkin s Structurl Opertionl Semntics [13]. Note how the communiction function in rule 14 is employed to model form of communiction between prllel components: if one of the components of prllel composition cn execute trnsition lbelled with, the other cn execute trnsition lbelled with b, nd the communiction function γ is defined on nd b, then the prllel composition cn execute trnsition lbelled with γ(,b). (It my help to think of the ction s stnding for the event of sending some dtum d, the ction b s stnding for the event of receiving dtum d, nd the ction γ(, b) s stnding for the event tht two components communicte dtum d.) The A-lbelled trnsition reltion ACP 0,1 (A,γ) nd the termintion reltion ACP 0,1 (A,γ) on P ACP 0,1 (A,γ) re the lest reltions P ACP 0,1 (A,γ) A P ACP 0,1 (A,γ) nd P ACP 0,1 (A,γ) stisfying the rules in Tble 1. The triple T ACP 0,1 (A,γ) = (P ACP 0,1 (A,γ), ACP 0,1 (A,γ), ACP 0,1 (A,γ)), consisting of the ACP 0,1 (A,γ) expressions together with the A-lbelled trnsition reltion nd the termintion predicte ssocited with them, is n exmple of n A-lbelled trnsition system spce. In generl, n A-lbelled trnsition system spce (S,, ) consists of (non-empty) set S, the elements of which re clled sttes, together with n A-lbelled trnsition reltion S A S nd subset S. We shll in this pper consider two more exmples of trnsition system spces, obtined by restricting the syntx of ACP 0,1 (A,γ) nd mking specil ssumptions bout the communiction function. Next, we define the A-lbelled trnsition system spce T PA 0,1 (A) = (P PA 0,1 (A), PA 0,1 (A), PA 0,1 (A)) corresponding with the process theory PA 0,1 (A). The set of PA 0,1 (A) expressions P PA 0,1 (A) consists of

4 4 Regulr Expressions with Prllel Composition modulo Bisimilrity p p p q p q p p p p p+q p 4 p q q p q q 9 p p p q p q 13 q q p+q q 5 p q p q q q q b q γ(,b) is defined p q γ(,b) 16 p q 10 p q p q 14 p p+q p p 6 p p p 11 p q p q p p H H (p) H (p ) 17 q p+q p p H (p) Tble 1: Opertionl rules for ACP 0,1 (A,γ), with A nd H A. the ACP 0,1 (A,γ) process expressions without occurrences of the construct H( ). The PA 0,1 (A) trnsition reltion PA 0,1 (A) on P PA 0,1 (A) nd the termintion predicte PA 0,1 (A) on P PA 0,1 (A) re the trnsition reltion nd termintion predicte induced on PA 0,1 (A) expressions by the opertionl rules in Tble 1 minus the rules Alterntively (nd equivlently) the trnsition reltion PA 0,1 (A) cn be defined s the restriction of the trnsition reltion ACP 0,1 (A,/0), with /0 denoting the communiction function tht is everywhere undefined, top PA 0,1 (A). To define the A-lbelled trnsition system spce T BPA 0,1 (A) =(P BPA 0,1 (A), BPA 0,1 (A), BPA 0,1 (A)) ssocited with the process theory BPA 0,1 (A), let P BPA 0,1 (A) consist of ll PA 0,1 (A) expressions without occurrences of the construct. The BPA 0,1 (A) trnsition reltion BPA 0,1 (A) nd the BPA 0,1 (A) termintion predicte BPA 0,1 (A) re the trnsition reltion nd the termintion predicte induced on BPA 0,1 (A) expressions by the opertionl rules in Tble 1 minus the rules Tht is, BPA 0,1 (A) nd BPA 0,1 (A) re obtined by restricting ACP 0,1 (A,γ) nd ACP 0,1 (A,γ) to P BPA 0,1 (A). Henceforth, we shll omit the subscripts ACP 0,1 (A,γ), PA 0,1 (A) nd BPA 0,1 (A) from trnsition reltions nd termintion predictes whenever it is cler from the context which trnsition reltion or termintion predicte is ment. Furthermore, we shll often use ACP 0,1 (A,γ), PA 0,1 (A) nd BPA 0,1 (A), respectively, to denote the ssocited trnsition system spces T ACP 0,1 (A,γ), T PA 0,1 (A) nd T BPA 0,1 (A). Let T =(S,, ) be na-lbelled trnsition system spce. If s,s S, then we write s s if there exists Asuch tht s s, nd s s if there exists no such A. We denote by + the trnsitive closure of, nd by the reflexive-trnsitive closure of. If s s then we sy tht s is rechble from s; the set of ll sttes rechble from s is denoted by [s]. We sy tht stte s is normed if there exists s such tht s s nd s. T is clled regulr if [s] is finite for ll s S. Lemm 2.1. The trnsition system spces ACP 0,1 (A,γ), PA 0,1 (A), nd BPA 0,1 (A) re ll regulr. With every stte s in T we cn ssocite n utomton (or: trnsition system) ([s], ([s] A [s] ), [s], s). Its sttes re the sttes rechble from s, its trnsition reltion nd termintion predicte re obtined by restricting nd ccordingly, nd the stte s is declred s the initil stte of the utomton. If trnsition system spce is regulr, then the utomton ssocited with stte in it is finite, i.e., it is finite utomton in the terminology of utomt theory. Thus, we get by Lemm 2.1 tht the opertionl semntics of ACP 0,1 (A,γ), nd, fortiori, tht of PA 0,1 (A) nd BPA 0,1 (A), ssocites finite utomton with every process expression.

5 Beten, Luttik, Muller & Vn Tilburg 5 In utomt theory, utomt re usully considered s lnguge cceptors nd two utomt re deemed indistinguishble if they ccept the sme lnguges. Lnguge equivlence is, however, rgubly too corse in process theory, where the prevlent notion is bisimilrity [11, 12]. Definition 2.2. LetT 1 =(S 1, 1, 1 ) ndt 2 =(S 2, 2, 2 ) be trnsition system spces. A binry reltion R S 1 S 2 is bisimultion betweent 1 ndt 2 if it stisfies, for ll A nd for ll s 1 S 1 nd s 2 S 2 such tht s 1 R s 2, the following conditions: (i) if there exists s 1 S 1 such tht s 1 1 s 1, then there exists s 2 S 2 such tht s 2 2 s 2 nd s 1 R s 2 ; (ii) if there exists s 2 S 2 such tht s 2 2 s 2, then there exists s 1 S 1 such tht s 1 1 s 1 nd s 1 R s 2 ; nd (iii) s 1 1 if, nd only if, s 2 2. Sttes s 1 S 1 nd s 2 S 2 re bisimilr (nottion: s 1 s 2 ) if there exists bisimultion R between T 1 nd T 2 such tht s 1 R s 2. To chieve sufficient level of generlity, we hve defined bisimilrity s reltion between trnsition system spces; to obtin suitble notion of bisimultion between utomt one should dd the requirement tht the initil sttes of the utomt be relted. Bsed on the ssocited trnsition system spces, we cn now define wht we men when some trnsition system spce is, modulo bisimilrity, less expressive thn some other trnsition system spce. Definition 2.3. Let T 1 nd T 2 be trnsition system spces. We sy tht T 1 is less expressive thn T 2 (nottion: T 1 T 2 ) if every stte in T 1 is bisimilr to stte in T 2, nd, moreover, there is stte in T 2 tht is not bisimilr to some stte int 1. When we investigte the expressiveness of ACP 0,1 (A,γ), we wnt to be ble to choose γ. So, we re ctully interested in the expressiveness of the (disjoint) union of ll trnsition system spces ACP 0,1 (A,γ) with γ rnging over ll communiction functions. We denote this trnsition system spce by γ ACP 0,1 (A,γ). In this pper we shll then estblish tht BPA 0,1 (A) PA 0,1 (A) γ ACP 0,1 (A,γ). We recll below the notion of strongly connected component (see, e.g., [6]) tht will ply n importnt rôle in estblishing tht the bove hierrchy of trnsition system spces is strict. Definition 2.4. A strongly connected component in trnsition system spce T =(S,, ) is mximl subset C of S such tht s s for ll s,s C. A strongly connected component C is trivil if it consists of only one stte, sy C={s}, nd s s; otherwise, it is non-trivil. Note tht every element of trnsition system spce is n element of precisely one strongly connected component of tht spce. Furthermore, if s is n element of non-trivil strongly connected component, then s + s. Since in strongly connected component from every element every other element cn be reched, we get s corollry to Lemm 2.1 tht strongly connected components in ACP 0,1 (A,γ), PA 0,1 (A) nd BPA 0,1 (A) re finite. Let T = (S,, ) be trnsition system spce, let s S, nd let C S be strongly connected component in S. We sy tht C is rechble from s if s s for ll s C. Lemm 2.5. Let T 1 = (S 1, 1, 1 ) nd T 2 = (S 2, 2, 2 ) be regulr trnsition system spces, nd let s 1 S 1 nd s 2 S 2 be such tht s 1 s 2. If s 1 is n element of strongly connected component C 1 in T 1, then there exists strongly connected component C 2 rechble from s 2 stisfying tht for ll s 1 C 1 there exists s 2 C 2 such tht s 1 s 2.

6 6 Regulr Expressions with Prllel Composition modulo Bisimilrity 3 Reltive Expressiveness of BPA 0,1 (A) nd PA 0,1 (A) In [3] it is proved tht BPA 0 (A) is less expressive thn PA 0 (A). The proof in [3] is by rguing tht the PA 0 (A) expression ( b) c d is not bisimilr with BPA 0 (A) expression. (Actully, the PA 0 (A) expression employed in [4] uses only single ction, i.e., considers the PA 0 (A) expression ( ) ; we use the ctions b, c nd d for clrity.) An lterntive nd more generl proof tht the PA 0 (A) expression bove is not expressible in BPA 0 (A) is presented in [4]. There it is estblished tht the PA 0 (A) expression bove fils the following generl property, which is stisfied by ll BPA 0 (A)-expressible utomt: If C is cycle in n utomton ssocited with BPA 0 (A) expression, then there is t most one stte p C tht hs n exit trnsition. (A cycle is sequence (p 1,..., p n ) such tht p i p i+1 (1 i<n) nd p n p 1 ; n exit trnsition from p i is trnsition p i p i such tht no element of the cycle is rechble from p i.) The following exmple shows tht utomt ssocited with BPA 0,1 (A) expressions do not stisfy the property bove. Exmple 3.1. Consider the utomton ssocited with the BPA 0,1 (A) expression 1 ( (+ 1)) b (see Figure 1) with cycle; both sttes on the cycle hve b-trnsition off the cycle. 1 ( (+1)) b 1 b b (+1) ( (+1)) b Figure 1: A trnsition system in BPA 0,1 (A) with cycle with multiple exit trnsitions. In this section we shll estblish tht BPA 0,1 (A) is less expressive thn PA 0,1 (A). As in [4] we prove tht BPA 0,1 (A)-expressible utomt stisfy generl property tht some utomton expressible in PA 0,1 (A) fils to stisfy. We find it techniclly convenient, however, to bse our reltive expressiveness proofs on the notion of strongly connected component, insted of cycle. Note, e.g., tht every process expression is n element of precisely one strongly connected component, while it my reside in more thn one cycle. Furthermore, if p q nd p nd q re in distinct strongly connected components, then we cn be sure tht p q is n exit trnsition, while if p nd q re on distinct cycles, then it my hppen tht p is rechble from q. 3.1 Strongly Connected Components in BPA 0,1 (A) We shll now estblish tht non-trivil strongly connected component in BPA 0,1 (A) is either of the form {p 1 q,..., p n q } with p i (0 i n) rechble from q nd {p 1,..., p n } not strongly connected component, or of the form {p 1 q,..., p n q} where {p 1,..., p n } is strongly connected component. To this end, let us first estblish, by resoning on the bsis of the opertionl semntics, tht process expressions in non-trivil strongly connected component re necessrily sequentil compositions; t the hert of the rgument will be the following mesure on process expressions. Definition 3.2. Let p BPA 0,1 (A) expression; then #(p) is defined with recursion on the structure of p by the following cluses:

7 Beten, Luttik, Muller & Vn Tilburg 7 (i) #(0)=#(1)= 0, nd #()=1; (ii) #(p q)=0 if q is str expression, nd #(p q)=#(q)+1 otherwise; (iii) #(p+q)=mx{#(p),#(q)}+1; nd (iv) #(p )=1. We estblish tht #( ) is non-incresing over trnsitions, nd, in fct, in most cses decreses. Lemm 3.3. If p nd p re BPA 0,1 (A) expressions such tht p + p, then #(p) #(p ). Moreover, if #(p)=#(p ), then p= p 1 q nd p = p 1 q for some p 1, p 1 nd q. Proof. First, the specil cse of the lemm in which p p is estblished with induction on derivtions ccording to the opertionl rules for BPA 0,1 (A). Then, the generl cse of the lemm follows from the specil cse with strightforwrd induction on the length of trnsition sequence from p to p. Let P be set of process expressions, nd let q be process expression; by P q we denote the set of process expressions P q={p q p P}. Lemm 3.4. If C is non-trivil strongly connected component in BPA 0,1 (A), then there exist set of process expressions C nd process expression q such tht C= C q. We proceed to give n inductive description of the non-trivil strongly connected components in BPA 0,1 (A). The bsis for the inductive description is the following notion of bsic strongly connected component. Definition 3.5. A non-trivil strongly connected component C = {p 1,..., p n } in BPA 0,1 (A) is bsic if there exist BPA 0,1 (A) expressions p 1,..., p n nd BPA 0,1 (A) expression q such tht p i = p i q (1 i n) nd {p 1,..., p n} is not strongly connected component in BPA 0,1 (A). Proposition 3.6. Let C be non-trivil strongly connected component in BPA 0,1 (A). Then either C is bsic, or there exist non-trivil strongly connected component C nd BPA 0,1 (A) expression q such tht C = C q. Proof. By Lemm 3.4 there exists set of sttes C nd BPA 0,1 (A) expression q such tht C = C q. If C is non-trivil strongly connected component, then the proposition follows, so it remins to prove tht if C is not non-trivil strongly connected component, then C is bsic. Note tht if C is not strongly connected component, then there re p, p C such tht p + p. Since C is non-trivil strongly connected component nd C = C q, it holds tht p q + p q. Using tht p + p, it cn be estblished with induction on the length of the trnsition sequence from p q to p q tht q + p q. It follows by Lemm 3.3 tht #(q) #(p q), nd therefore, ccording to the definition of #( ), q must be str expression. We conclude tht C is bsic. 3.2 BPA 0,1 (A) PA 0,1 (A) The crucil tool tht will llow us to estblish tht BPA 0,1 (A) is less expressive thn PA 0,1 (A) will be specil property of sttes with trnsition out of their strongly connected component in BPA 0,1 (A). Roughly, if C is strongly connected component in BPA 0,1 (A), then ll sttes with trnsition out of C hve the sme trnsitions out of C. Definition 3.7. Let C be strongly connected component in the trnsition system spce T = (S,, ) nd let s C. An exit trnsition from s is pir (,s ) such tht s s nd s C. We denote by ET(s) the set of ll exit trnsitions from s, i.e., ET(s)={(,s ) s s s C}. An element s C is clled n exit stte if s or there exists n exit trnsition from s.

8 8 Regulr Expressions with Prllel Composition modulo Bisimilrity Exmple 3.8. Consider the utomton ssocited with the BPA 0,1 (A) expression 1 ( b (c+ 1)) d, (see Figure 2). It hs strongly connecting component with two exit sttes, both with one exit trnsition (d,1). 1 ( b (c+1)) d b (c+1) ( b (c+1)) b d (c+1) ( b (c+1)) d 1 d c d Figure 2: A non-trivil strongly connected component in BPA 0,1 (A) with multiple exit trnsitions. Non-trivil strongly connected components in BPA 0,1 (A) rise from executing the rgument of Kleene str. An exit stte of strongly connected component in BPA 0,1 (A) is then stte in which the execution hs the option to terminte. Due to the presence of 0 in BPA 0,1 (A) this is, however, not the only type of exit stte in BPA 0,1 (A) strongly connected components. Exmple 3.9. Consider the utomton ssocited with the BPA 0,1 (A) expression 1 ( ((b 0)+ 1)) c (see Figure 3). The strongly connected component contins two exit sttes nd two (distinct) exit trnsitions. One of these exit trnsitions leds to dedlocked stte. 1 ( ((b 0)+1)) c 1 c c ((b 0)+ 1) ( ((b 0)+1)) c b 0 ( ((b 0)+1)) c Figure 3: A strongly connected component with normed exit trnsitions. The preceding exmple illustrtes tht the specil property of strongly connected components in BPA 0,1 (A) tht we re fter, should exclude from considertion ny exit trnsition rising from n occurrence of 0. This is chieved in the following definitions. Definition Let C be strongly connected component nd let s C. An exit trnsition (,s ) from s is normed if s is normed. We denote by ET n (s) the set of normed exit trnsitions from s. An exit stte s C is live if s or there exists normed exit trnsition from s. Lemm If p q r, then either there exists p such tht p p nd r = p q or there exist p nd q such tht p p, p, q q, nd r=q q. Lemm If C is bsic strongly connected component, then ET n (p)= /0 for ll p C. Lemm Let C be non-trivil strongly connected component in BPA 0,1 (A), let p C, nd let q be BPA 0,1 (A) process expression such tht C q is strongly connected component. Then p q is n live exit stte in C q iff p is n live exit stte in C nd q is normed. For chrcteristion of the set of normed exit trnsitions of sequentil composition, it is convenient to hve the following nottion: if E is set of exit trnsitions E nd p is BPA 0,1 (A) expression, then E p is defined by E p={(,q p) (,q) E}.

9 Beten, Luttik, Muller & Vn Tilburg 9 Lemm Let C be non-trivil strongly connected component in BPA 0,1 (A), let p C, nd let q be normed BPA 0,1 (A) process expression such tht C q is strongly connected component. Then { ETn (p) q {(,r) r C q r is normed q r} if p ; nd ET n (p q)= ET n (p) q if p. Proposition Let C be non-trivil strongly connected component in BPA 0,1 (A). If p 1 nd p 2 re live exit sttes in C, then ET n (p 1 )=ET n (p 2 ). Proof. Suppose tht p 1 nd p 2 re live exit sttes; we prove by induction on the structure of non-trivil strongly connected components in BPA 0,1 (A) s given by Proposition 3.6 tht ET n(p 1 ) = ET n (p 2 ) nd p 1 iff p 2. If C is bsic, then by Lemm 3.12 ET n (p 1 )= /0=ET n (p 2 ), nd, since p 1 nd p 2 re live exit sttes, it lso follows from this tht both p 1 nd p 2. Suppose tht C = C q, with C non-trivil strongly connected component, nd let p 1, p 2 C be such tht p 1 = p 1 q nd p 2 = p 2 q. Since p 1 nd p 2 re live exit sttes, by Lemm 3.13 so re p 1 nd p 2. Hence, by the induction hypothesis, ET n(p 1 )=ET n(p 2 ) nd p 1 iff p 2. From the ltter it follows tht p 1 iff p 2. We now pply Lemm 3.14: if, on the one hnd, p 1 nd p 2, then ET n (p 1 )=ET n (p 1 ) q {(,r) r C r. q r r } = ET n (p 2) q {(,r) r C r. q r r }=ET n (p 2 ), nd if, on the other hnd, p 1 nd p 2, then ET n (p 1 )=ET n (p 1 ) q=et n(p 2 ) q=et n(p 2 ). p 0 p 1 c b c p 2 b p 3 Figure 4: A PA 0,1 (A)-expressible utomton tht is not expressible in BPA 0,1 (A). The PA 0,1 (A) expression p 0 = 1 ( b) c gives rise to the utomton shown in Figure 4. It hs strongly connected component C ={p 0, p 1 } of which the live exit sttes hve different normed exit trnsitions. Hence, by Proposition 3.15, p 0 is not BPA 0,1 (A)-expressible. Theorem BPA 0,1 (A) is less expressive thn PA 0,1 (A). 4 Reltive Expressiveness of PA 0,1 (A) nd ACP 0,1 (A,γ) The proof in [4] tht PA δ (A) is less expressive thn ACP (A,γ) uses the sme expression s the one showing tht BPA δ (A) is less expressive thn PA δ (A), but it presupposes tht γ(c,d)=e. It is climed tht the ssocited utomton fils the following generl property of cycles in PA δ (A): If C is cycle rechble from PA 0 (A) process term nd there is stte in C with trnsition to terminting stte, then ll other sttes in C hve only successors in C. The clim, however, is incorrect, s illustrted by the following exmple. (We present the exmple in the syntx of PA 0,1 (A), but it hs strightforwrd trnsltion into the syntx of PA δ (A).)

10 10 Regulr Expressions with Prllel Composition modulo Bisimilrity Exmple 4.1. Consider the PA 0,1 (A) expression ( (b+b b)) d, from which the cycle C={1 ( (b+b b)) d, (b+b b) ( (b+b b)) d} is rechble. Clerly, the first expression in C cn perform d-trnsition to 1. Then, ccording to the property bove, every other expression only hs trnsitions to expressions in C. However, (b+b b) ( (b+b b)) d b b ( (b+b b)) d C. If we replce, in the property bove, the notion of cycle by the notion of strongly connected component, then the resulting property does hold for PA 0 (A), but it still fils for PA 0,1 (A). Exmple 4.2. Consider the PA 0,1 (A) expression ( b) cit gives rise to the following non-trivil strongly connected component: {1 ( b) c, b ( b) c}. The expression 1 ( b) c cn do c-trnsition to 1 ( b) 1, for which the termintion predicte holds, but t the sme time b ( b) c hs n exit trnsition (c,b ( b) 1). In this section we shll estblish tht PA 0,1 (A) is less expressive thn ACP 0,1 (A,γ). To this end, we pply the sme method s in Section 3. First, we syntcticlly chrcterise the non-trivil strongly connected components ssocited with PA 0,1 (A) expressions. Then, we conclude tht wekened version of the forementioned property for strongly connected components holds in PA 0,1 (A), nd present n (A,γ) expression tht does not stisfy it. ACP 0,1 4.1 Strongly Connected Components in PA 0,1 (A) To give syntctic chrcteristion of the non-trivil strongly connected components in PA 0,1 (A), we reson gin bout the opertionl semntics. First, we extend the mesure #( ) from Section 3 to (A) expressions. PA 0,1 Definition 4.3. Let p be PA 0,1 (A) expression; #(p) is defined with recursion on the structure of p by the cluses (i) (iv) in Definition 3.2 with the following cluse dded: (v) #(p q)=0. With the extension, the non-incresing mesure #( ) still in most cses decreses over trnsitions. Lemm 4.4. If p nd p re PA 0,1 (A) expressions such tht p + p, then #(p) #(p ). Moreover, if #(p) = #(p ), then either p= p 1 q nd p = p 1 q, or p = p 1 p 2 nd p = p 1 p 2 for some process expressions p 1, p 2, p 1, p 2, nd q. Lemm 4.5. Let p, q nd r be PA 0,1 (A) process expressions such tht p q r. Then there exist PA 0,1 (A) process expressions p nd q such tht r= p q, p p nd q q. Let P nd Q be sets of process expressions; by P Q we denote the set of process expressions P Q={p q p P q Q}. We lso write P qnd p Qfor P {q} nd {p} Q, respectively. The proof of the following lemm, chrcterising the syntctic form of non-trivil strongly connected components in PA 0,1 (A), is strightforwrd dpttion nd extension of the proof of Lemm 3.4, using Lemm 4.4 nd Lemm 4.5 insted of Lemm 3.3. Lemm 4.6. If C is non-trivil strongly connected component in PA 0,1 (A), then either there exist set of process expressions C nd process expression q such tht C=C q, or there exist strongly connected components C 1 nd C 2 in PA 0,1 (A), t lest one of them non-trivil, such tht C= C 1 C 2.

11 Beten, Luttik, Muller & Vn Tilburg 11 The notion of bsic strongly connected component in PA 0,1 (A) is obtined from Definition 3.5 by replcing BPA 0,1 (A) by PA 0,1 (A) everywhere in the definition. In Proposition 3.6 we gve n inductive chrcteristion of non-trivil strongly connected components in BPA 0,1 (A). There is similr inductive chrcteristion of non-trivil strongly connected components in PA 0,1 (A), obtined by dding cse for prllel composition. Proposition 4.7. Let C be non-trivil strongly connected component in PA 0,1 (A). Then one of the following holds: (i) C is bsic strongly connected component; or (ii) there exist non-trivil strongly connected component C nd PA 0,1 (A) expression q such tht C= C q; or (iii) there exist strongly connected components C 1 nd C 2, t lest one of them non-trivil, such tht C= C 1 C 2. Note tht, in the bove proposition, one of the strongly connected components C 1 nd C 2 my be trivil in which cse it consists of single PA 0,1 (A) expression. 4.2 PA 0,1 (A) ACP 0,1 (A,γ) In Section 3 we deduced, from our syntctic chrcteristion of strongly connected components in BPA 0,1 (A), the property tht ll live exit sttes of strongly connected component hve the sme sets of normed exit trnsitions. This property my fil for strongly connected components in PA 0,1 (A): the utomton in Figure 4 is PA 0,1 (A)-expressible, but the live exit sttes p 0 nd p 1 of the strongly connected component {p 0, p 1 } hve different normed exit trnsitions. Note, however, tht these normed exit trnsitions both end up in nother strongly connected component {p 2, p 3 }. It turns out tht we cn relx the requirement on normed exit trnsitions from strongly connected components in BPA 0,1 (A) to get requirement tht holds for strongly connected components in PA 0,1 (A). The ide is to identify exit trnsitions if they hve the sme ction nd end up in the sme strongly connected component. Definition 4.8. Let T =(S,, ) be n A-lbelled trnsition system spce. We define binry reltion ona S by(,s) (,s ) iff = nd s nd s re in the sme strongly connected component int. Since the reltion of being in the sme strongly connected component is n equivlence on sttes in trnsition system spce, it is cler tht is n equivlence reltion on exit trnsitions. The following lemm will give some further properties of the reltion ssocited with PA 0,1 (A). Lemm 4.9. Let p nd q be PA 0,1 (A) expressions, nd let nd b be ctions. If (, p) (b,q), then (, p r) (b,q r), (, p r) (b,q r), nd (,r p) (b,r q). To formulte strightforwrd corollry of this lemm we use the following nottion: if E is set of exit trnsitions E nd p is PA 0,1 (A) expression, then E p, E p nd p E re defined by E p={(,q p) (,q) E}, nd p E ={(, p q) (,q) E}. We re now in position to estblish property of strongly connected components in PA 0,1 (A) tht will llow us to prove tht PA 0,1 (A) is less expressive thn ACP 0,1 (A,γ): strongly connected component C in PA 0,1 (A) lwys hs specil exit stte from which, up to, ll exit trnsitions re enbled.

12 12 Regulr Expressions with Prllel Composition modulo Bisimilrity Lemm Let C 1 nd C 2 be sets of PA 0,1 (A) expressions. Then C 1 C 2 is strongly connected component iff both C 1 nd C 2 re strongly connected components. Moreover, C 1 C 2 is non-trivil iff t lest one of C 1 nd C 2 is non-trivil. Lemm Let C 1 nd C 2 be strongly connected components in PA 0,1 (A), both with live exit sttes. Then C 1 C 2 is strongly connected component with live exit sttes too, nd, for ll p C 1 nd q C 2, ET n (p q)=(et n (p) q) (p ET n (q)). To formulte the specil property of strongly connected components in PA 0,1 (A) tht will llow us to prove tht some ACP 0,1 (A,γ) expressions do not hve counterprt in PA 0,1 (A), we need the notion of mximl live exit stte. Definition Let T =(S,, ) be n A-lbelled trnsition system spce, let A S be the equivlence reltion ssocited with T ccording to Definition 4.8, let C be strongly connected component in T, nd let s C be n live exit stte. We sy tht s is mximl (modulo ) if for ll live exit sttes s C nd for ll e ET n (s ) there exists n exit trnsition e ET n (s) such tht e e. The following proposition estblishes the property with which we shll prove tht PA 0,1 (A) is less expressive thn ACP 0,1 (A,γ). Proposition If C is strongly connected component in PA 0,1 (A) nd C hs n live exit stte, then C hs mximl live exit stte. p 4 p 0 p 1 d b c c e c p 5 p 2 p 3 d b Figure 5: An ACP 0,1 (A,γ)-expressible utomton tht is not expressible in PA 0,1 (A). Suppose γ(b,c)=e; then the ACP 0,1 (A,γ) expression p 0 = 1 ( b) d c gives rise to the utomton shown in Figure 5. It hs strongly connected component C = {p 0, p 1 }, nd none of its live exit sttes is mximl. Hence, by Proposition 4.13, p 0 is not PA 0,1 (A)-expressible. Theorem PA 0,1 (A) is less expressive thn γ ACP 0,1 (A,γ). 5 Every Finite Automton is ACP 0,1 (A,γ)-expressible Milner observed in [10] tht there exist finite utomt tht re not bisimilr to the finite utomton ssocited with BPA 0,1 (A) expression. Our proof of Theorem 3.16 hs Milner s observtion s n immedite consequence: the finite utomton ssocited with the PA 0,1 (A) expression used in the proof is not BPA 0,1 (A)-expressible. Similrly, by Theorem 4.14, there re finite utomt tht re not expressible in PA 0,1 (A). In this section we shll prove tht every finite utomton is expressible in ACP 0,1 (A,γ), for suitble choices of A nd γ, even up to isomorphism. Before we formlly prove the result, let us first explin the ide informlly, nd illustrte it with n exmple. The ACP 0,1 (A,γ) expression tht we shll ssocite with finite utomton will hve one prllel component per stte of the utomton, representing the behviour in tht stte (i.e., which outgoing trnsitions it hs to which other sttes nd whether it is terminting). At ny time, one of those prllel components, the one corresponding with the current

13 Beten, Luttik, Muller & Vn Tilburg 13 stte, hs control. An -trnsition from tht current stte to next stte corresponds with communiction between two components. We mke essentil use of ACP 0,1 (A,γ) s fcility to let the ction be the result of communiction. Exmple 5.1. Consider the finite utomton in Figure 6. 0 s 0 s s 1 2 s 3 1 Figure 6: A finite utomton. We ssocite with every stte s i n ACP 0,1 (A,γ) expression p i s follows: ( ) ( ) p 0 = enter 0 (leve 0,1 + leve 1,1 ), p 2 = enter 2 (leve 0,0 + leve 1,3 + 1) ( ) ( ) p 1 = enter 1 1 (leve 2,2 ), p 3 = enter 3 0 Every p i hs n enter i trnsition to gin control, nd by executing leve k, j it my then relese control to p j with ction k s effect. We define the communiction function so tht n enter i ction communictes with leve k,i ction, resulting in the ction k. Loops in the utomton (such s the loop on stte s 1 ) require specil tretment s they should not relese control. Let p 0 be the result of executing the enter 0-trnsition from p 0. We define the ACP 0,1 (A,γ) expression tht simultes the finite utomton in Figure 6 s the prllel composition of p 0, p 1, p 2 nd p 3, encpsulting the control ctions enter i nd leve k,i, i.e., s {enteri,leve k,i 0 i 3, 0 k 2}(p 0 p 1 p 2 p 3 ). We now present the technique illustrted in the preceding exmple in full generlity. Let F = (S,,s 0, ) be finite utomton, let S = {s 0,...,s n }, nd let A = { 1,..., m } be the set of ctions occurring on trnsitions in F. We shll ssocite with F n ACP 0,1 (A,γ) expression p F tht hs precisely one prllel component p i for every stte s i in S. To llow prllel component to gin nd relese control, we use collection of control ctions C, ssumed to be disjoint from A, nd defined s C={enter i 1 i n} {leve k,i 1 i n, 1 k m}. Gining nd relesing control is modelled by the communiction function γ stisfying: { k if i= j; nd γ(enter i,leve k, j )= undefined otherwise. For the specifiction of the ACP 0,1 (A,γ) expressions p i we need one more definition: for 1 i, j n we denote by K i, j the set of indices of ctions occurring s the lbel on trnsition from s i to s j, i.e., k K i, j ={k s i s j }. Now we cn specify the ACP 0,1 (A,γ) expressions p i (1 i n) by ( ) p i = 1 leve k,i (+ 1) si ). k K i, j enter i ( k K i,i k ) ( 1 j n j i.,

14 14 Regulr Expressions with Prllel Composition modulo Bisimilrity By(+ 1) si we men tht the summnd + 1 is optionl; it is only included if s i. The empty summtion denotes 0. (We let p i strt with 1 to get tht the finite utomton ssocited with p F is isomorphic nd not just bisimilr with F.) Note tht, in ACP 0,1 (A,γ), every p enter i hs unique outgoing trnsition; specificlly p i i p i, where p i denotes: p i =(1 ( k K i,i k ) ( 0 j n j i k K i, j leve k,i (+ 1) si )) p i. We now define p F = C (p 0 p 1 p n ). Clerly, the construction of p F works for every finite utomton F. The bijection defined by s i C (p 0 p i 1 p i p i+1 p n ) is n isomorphism from F to the utomton ssocited with p F by the opertionl semntics. We shll refer to p F s the ACP 0,1 (A,γ) expression ssocited with F. Theorem 5.2. Let F be finite utomton, nd let p F be its ssocited ACP 0,1 (A,γ) expression. The utomton ssocited with p F by the opertionl rules for ACP 0,1 (A,γ) is isomorphic to F. Corollry 5.3. For every finite utomtonf there exists n instnce of ACP 0,1 (A,γ) with suitble finite set of ctions A nd hndshking communiction function γ such tht F is ACP 0,1 (A,γ)-expressible up to isomorphism. 6 Conclusion In this pper we hve investigted the effect on the expressiveness of regulr expressions modulo bisimilrity if different forms of prllel composition re dded. We hve estblished n expressiveness hierrchy tht cn be briefly summrised s: BPA 0,1 (A) PA 0,1 (A) γ ACP 0,1 (A,γ). Furthermore, while not every finite utomton cn be expressed modulo bisimilrity with regulr expression, it suffices to dd form of ACP(A, γ)-style prllel composition, with hndshking communiction nd encpsultion, to get lnguge tht is sufficiently expressive to express ll finite utomt modulo bisimilrity. This result should be contrsted with the well-known result from utomt theory tht every non-deterministic finite utomton cn be expressed with regulr expression modulo lnguge equivlence. As n importnt tool in our proof, we hve chrcterised the strongly connected components in BPA 0,1 (A) nd PA 0,1 (A). An interesting open question is whether the two given chrcteristions re complete, in the sense tht finite utomton is expressible in BPA 0,1 (A) or PA 0,1 (A) iff ll its strongly connected components stisfy our chrcteristion. If so, then our chrcteristion would constitute useful complement to the chrcteristion of [1] nd perhps led to more efficient lgorithm for deciding whether non-deterministic utomton is expressible. In [4] it is proved tht every finite trnsition system without intermedite termintion cn be denoted in ACP 0,τ (A,γ) up to brnching bisimilrity [7], nd tht ACP 0 (A,γ) modulo (strong) bisimilrity is strictly less expressive thn ACP 0,τ (A,γ). In contrst, we hve estblished tht every finite utomton (i.e., every finite trnsition system not excluding intermedite termintion) is denoted by n ACP 0,1 (A,γ) expression. It follows tht ACP 0,1 (A,γ) nd ACP 0,1,τ (A,γ) re eqully expressive. An interesting question tht remins is whether it is possible to omit constructions from ACP 0,1 (A,γ) without losing expressiveness. We conjecture tht H ( ) cnnot be omitted without losing expressiveness: encpsulting c in the ACP 0,1 (A,γ) expression 1 ( b) b c, which is used in Section 4 to show tht PA 0,1 (A) is less expressive thn ACP 0,1 (A,γ), yields trnsition system tht we think cnnot be expressed in ACP 0,1 (A,γ) without encpsultion.

15 Beten, Luttik, Muller & Vn Tilburg 15 Acknowledgement We thnk Leonrdo Vito nd the other prticipnts of the Forml Methods seminr of 2007 for their contributions in n erly stge of the reserch for this pper. References [1] J. C. M. Beten, F. Corrdini & C. A. Grbmyer (2007): A Chrcteriztion of Regulr Expressions under Bisimultion. Journl of the ACM 54(2). [2] J. C. M. Beten & R. J. vn Glbbeek (1987): Merge nd Termintion in Process Algebr. In: Kesv V. Nori, editor: FSTTCS, Lecture Notes in Computer Science 287, Springer, pp [3] J. A. Bergstr, I. Bethke & A. Ponse (1994): Process Algebr with Itertion nd Nesting. The Computer Journl 37(4), pp [4] J. A. Bergstr, W. Fokkink & A. Ponse (2001): Process Algebr with Recursive Opertions. In: J. A. Bergstr, A. J. Ponse & S. A. Smolk, editors: Hndbook of Process Algebr, Elsevier, pp [5] J. A. Bergstr & J. W. Klop (1984): Process lgebr for synchronous communiction. Informtion nd Control 1/3(60), pp [6] T. H. Cormen, C. E. Leiserson, R. L. Rivest & C. Stein (2001): Introduction to Algorithms. MIT Press, 2nd edition. [7] R. J. vn Glbbeek & W. P. Weijlnd (1996): Brnching Time nd Abstrction in Bisimultion Semntics. Journl of the ACM 43(3), pp [8] J.E. Hopcroft, R. Motwni & J. D. Ullmn (2006): Introduction to Automt Theory, Lnguges, nd Computtion. Person. [9] C. J. P. Koymns & J. L. M. Vrncken (1985): Extending process lgebr with the empty process ε. Logic Group Preprint Series 1, Stte University of Utrecht. [10] R. Milner (1984): A Complete Inference System for Clss of Regulr Behviours. Journl of Comput. System Sci. 28(3), pp [11] R. Milner (1989): Communiction nd Concurrency. Prentice-Hll Interntionl, Englewood Cliffs. [12] D. Prk (1981): Concurrency nd utomt on infinite sequences. In: P. Deussen, editor: Proc. of the 5th GI Conference, LNCS 104, Springer-Verlg, Krlsruhe, Germny, pp [13] G. D. Plotkin (2004): A structurl pproch to opertionl semntics. J. Log. Algebr. Progrm , pp [14] J. L. M. Vrncken (1997): The Algebr of Communicting Processes With Empty Process. Theor. Comput. Sci. 177(2), pp

Bisimulation. R.J. van Glabbeek

Bisimulation. R.J. van Glabbeek Bisimultion R.J. vn Glbbeek NICTA, Sydney, Austrli. School of Computer Science nd Engineering, The University of New South Wles, Sydney, Austrli. Computer Science Deprtment, Stnford University, CA 94305-9045,

More information

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation Strong Bisimultion Overview Actions Lbeled trnsition system Trnsition semntics Simultion Bisimultion References Robin Milner, Communiction nd Concurrency Robin Milner, Communicting nd Mobil Systems 32

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed

More information

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

Handout: Natural deduction for first order logic

Handout: Natural deduction for first order logic MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

Summer School Verification Technology, Systems & Applications

Summer School Verification Technology, Systems & Applications VTSA 2011 Summer School Verifiction Technology, Systems & Applictions 4th edition since 2008: Liège (Belgium), Sep. 19 23, 2011 free prticiption, limited number of prticipnts ppliction dedline: July 22,

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

Process Algebra with Recursive Operations

Process Algebra with Recursive Operations Process Algebr with Recursive Opertions Jn Bergstr 2,3 Wn Fokkink 1 Albn Ponse 1,3 1 CWI Kruisln 413, 1098 SJ Amsterdm, The Netherlnds url: http://www.cwi.nl/ 2 Utrecht University, Deprtment of Philosophy

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

More information

Closure Properties of Regular Languages

Closure Properties of Regular Languages Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L

More information

3 Regular expressions

3 Regular expressions 3 Regulr expressions Given n lphet Σ lnguge is set of words L Σ. So fr we were le to descrie lnguges either y using set theory (i.e. enumertion or comprehension) or y n utomton. In this section we shll

More information

Basic Process Algebra with Iteration: Completeness of its Equational Axioms

Basic Process Algebra with Iteration: Completeness of its Equational Axioms Bsic Process Algebr with Itertion: Completeness of its Equtionl Axioms Wn Fokkink CWI Kruisln 413, 1098 SJ Amsterdm, The Netherlnds Hns Zntem Utrecht University Pduln 14, 3508 TB Utrecht, The Netherlnds

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

How to simulate Turing machines by invertible one-dimensional cellular automata

How to simulate Turing machines by invertible one-dimensional cellular automata How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex

More information

Semantic reachability for simple process algebras. Richard Mayr. Abstract

Semantic reachability for simple process algebras. Richard Mayr. Abstract Semntic rechbility for simple process lgebrs Richrd Myr Abstrct This pper is n pproch to combine the rechbility problem with semntic notions like bisimultion equivlence. It dels with questions of the following

More information

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S.

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S. URL: http://www.elsevier.nl/locte/entcs/volume6.html?? pges Semntic Rechbility Richrd Myr Institut fur Informtik Technische Universitt Munchen Arcisstr. 21, D-80290 Munchen, Germny e-mil: myrri@informtik.tu-muenchen.de

More information

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below. Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we

More information

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,

More information

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!) CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All

More information

1 From NFA to regular expression

1 From NFA to regular expression Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work

More information

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004 Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when

More information

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015

Advanced Calculus: MATH 410 Uniform Convergence of Functions Professor David Levermore 11 December 2015 Advnced Clculus: MATH 410 Uniform Convergence of Functions Professor Dvid Levermore 11 December 2015 12. Sequences of Functions We now explore two notions of wht it mens for sequence of functions {f n

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

More on automata. Michael George. March 24 April 7, 2014

More on automata. Michael George. March 24 April 7, 2014 More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute Victor Admchik Dnny Sletor Gret Theoreticl Ides In Computer Science CS 5-25 Spring 2 Lecture 2 Mr 3, 2 Crnegie Mellon University Deterministic Finite Automt Finite Automt A mchine so simple tht you cn

More information

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tble of Contents: Week 1: Preliminries (set lgebr, reltions, functions) (red Chpters 1-4) Weeks

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck. Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent

More information

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd T. vn Lrhoven Institute for Computing nd Informtion Sciences Intelligent

More information

Lecture 09: Myhill-Nerode Theorem

Lecture 09: Myhill-Nerode Theorem CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers

More information

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Session Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

Introduction to Group Theory

Introduction to Group Theory Introduction to Group Theory Let G be n rbitrry set of elements, typiclly denoted s, b, c,, tht is, let G = {, b, c, }. A binry opertion in G is rule tht ssocites with ech ordered pir (,b) of elements

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras Intuitionistic Fuzzy Lttices nd Intuitionistic Fuzzy oolen Algebrs.K. Tripthy #1, M.K. Stpthy *2 nd P.K.Choudhury ##3 # School of Computing Science nd Engineering VIT University Vellore-632014, TN, Indi

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q

More information

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More information

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages lgorithms & Models of omputtion S/EE 374, Spring 209 NFs continued, losure Properties of Regulr Lnguges Lecture 5 Tuesdy, Jnury 29, 209 Regulr Lnguges, DFs, NFs Lnguges ccepted y DFs, NFs, nd regulr expressions

More information

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9. Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.

More information

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

More information

Integral points on the rational curve

Integral points on the rational curve Integrl points on the rtionl curve y x bx c x ;, b, c integers. Konstntine Zeltor Mthemtics University of Wisconsin - Mrinette 750 W. Byshore Street Mrinette, WI 5443-453 Also: Konstntine Zeltor P.O. Box

More information

1.3 Regular Expressions

1.3 Regular Expressions 56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,

More information

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018 CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA

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

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

More information

Equality and Inequality in the Dataflow Algebra. A. J. Cowling

Equality and Inequality in the Dataflow Algebra. A. J. Cowling Verifiction nd Testing Reserch Group, Deprtment of Computer Science, University of Sheffield, Regent Court, 211, Portobello Street, Sheffield, S1 4DP, United Kingdom Emil: A.Cowling @ dcs.shef.c.uk Telephone:

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More information

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 1. Functional series. Pointwise and uniform convergence. 1 Introduction. Lecture 1. Functionl series. Pointwise nd uniform convergence. In this course we study mongst other things Fourier series. The Fourier series for periodic function f(x) with period 2π is

More information

This lecture covers Chapter 8 of HMU: Properties of CFLs

This lecture covers Chapter 8 of HMU: Properties of CFLs This lecture covers Chpter 8 of HMU: Properties of CFLs Turing Mchine Extensions of Turing Mchines Restrictions of Turing Mchines Additionl Reding: Chpter 8 of HMU. Turing Mchine: Informl Definition B

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

More information

Deterministic Finite Automata

Deterministic Finite Automata Finite Automt Deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion Sciences Version: fll 2016 J. Rot Version: fll 2016 Tlen en Automten 1 / 21 Outline Finite Automt Finite

More information

arxiv: v1 [math.ra] 1 Nov 2014

arxiv: v1 [math.ra] 1 Nov 2014 CLASSIFICATION OF COMPLEX CYCLIC LEIBNIZ ALGEBRAS DANIEL SCOFIELD AND S MCKAY SULLIVAN rxiv:14110170v1 [mthra] 1 Nov 2014 Abstrct Since Leibniz lgebrs were introduced by Lody s generliztion of Lie lgebrs,

More information

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)

More information

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan CS 267: Automted Verifiction Lecture 8: Automt Theoretic Model Checking Instructor: Tevfik Bultn LTL Properties Büchi utomt [Vrdi nd Wolper LICS 86] Büchi utomt: Finite stte utomt tht ccept infinite strings

More information

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a). The Fundmentl Theorems of Clculus Mth 4, Section 0, Spring 009 We now know enough bout definite integrls to give precise formultions of the Fundmentl Theorems of Clculus. We will lso look t some bsic emples

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Convex Sets and Functions

Convex Sets and Functions B Convex Sets nd Functions Definition B1 Let L, +, ) be rel liner spce nd let C be subset of L The set C is convex if, for ll x,y C nd ll [, 1], we hve 1 )x+y C In other words, every point on the line

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Theoretical foundations of Gaussian quadrature

Theoretical foundations of Gaussian quadrature Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of

More information

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd

More information

Discrete Time Process Algebra with Relative Timing

Discrete Time Process Algebra with Relative Timing Discrete Time Process Alger with Reltive Timing J.C.M. Beten nd M.A. Reniers Deprtment of Mthemtics nd Computing Science, Eindhoven University of Technology, P.O. Box 513, NL-5600 MB Eindhoven, The Netherlnds

More information

Petri Nets and Regular Processes

Petri Nets and Regular Processes Uppsl Computing Science Reserch Report No. 162 Mrch 22, 1999 ISSN 1100 0686 Petri Nets nd Regulr Processes Petr Jnčr y Deprtment of Computer Science, Technicl University of Ostrv 17. listopdu 15, CZ-708

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.

More information

1 Online Learning and Regret Minimization

1 Online Learning and Regret Minimization 2.997 Decision-Mking in Lrge-Scle Systems My 10 MIT, Spring 2004 Hndout #29 Lecture Note 24 1 Online Lerning nd Regret Minimiztion In this lecture, we consider the problem of sequentil decision mking in

More information

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams Chpter 4 Contrvrince, Covrince, nd Spcetime Digrms 4. The Components of Vector in Skewed Coordintes We hve seen in Chpter 3; figure 3.9, tht in order to show inertil motion tht is consistent with the Lorentz

More information

Supervisory Control (4CM30)

Supervisory Control (4CM30) Supervisory Control (4CM30) Verifiction in mcrl2 Michel Reniers M.A.Reniers@tue.nl 2016-2017 Verifiction in mcrl2 M CIF = φ CIF iff M mcrl2 = φ mcrl2 1. Adpt CIF model 2. Formulte property in modl µ-clculus

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Tutorial Automata and formal Languages

Tutorial Automata and formal Languages Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we

More information

Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets

Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets Kleene Theorems for Free Choice Nets Lbelled with Distributed Alphbets Rmchndr Phwde Indin Institute of Technology Dhrwd, Dhrwd 580011, Indi Emil: prb@iitdh.c.in Abstrct. We provided [15] expressions for

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

Hennessy-Milner Logic 1.

Hennessy-Milner Logic 1. Hennessy-Milner Logic 1. Colloquium in honor of Robin Milner. Crlos Olrte. Pontifici Universidd Jverin 28 April 2010. 1 Bsed on the tlks: [1,2,3] Prof. Robin Milner (R.I.P). LIX, Ecole Polytechnique. Motivtion

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS The University of Nottinghm SCHOOL OF COMPUTER SCIENCE LEVEL 2 MODULE, SPRING SEMESTER 2016 2017 LNGUGES ND COMPUTTION NSWERS Time llowed TWO hours Cndidtes my complete the front cover of their nswer ook

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

Recitation 3: More Applications of the Derivative

Recitation 3: More Applications of the Derivative Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech

More information

1 The Lagrange interpolation formula

1 The Lagrange interpolation formula Notes on Qudrture 1 The Lgrnge interpoltion formul We briefly recll the Lgrnge interpoltion formul. The strting point is collection of N + 1 rel points (x 0, y 0 ), (x 1, y 1 ),..., (x N, y N ), with x

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information