Computation Tree Logic with Deadlock Detection

Size: px
Start display at page:

Download "Computation Tree Logic with Deadlock Detection"

Transcription

1 Comuttion Tree Logic with Dedlock Detection Rob vn Glbbeek 1,2, Bs Luttik 3,4 & Nikol Trčk 3 1 Ntionl ICT Austrli, Sydney, Austrli 2 School of Comuter Science nd Engineering, Univ. of New South Wles, Sydney 3 Det. of Mth. & Com. Sc., Technische Universiteit Eindhoven, The Netherlnds 4 CWI, The Netherlnds Abstrct. We study the equivlence reltion on sttes of lbelled trnsition systems of stisfying the sme formuls in Comuttion Tree Logic without the next stte modlity (CTL X ). This reltion is obtined by De Nicol & Vndrger by trnslting lbelled trnsition systems to Krike structures, while lifting the totlity restriction on the ltter. They chrcterised it s divergence sensitive brnching bisimultion equivlence. We find tht this equivlence fils to be congruence for interleving rllel comosition. The reson is tht the roosed liction of CTL X to non-totl Krike structures lcks the exressiveness to coe with dedlock roerties tht re imortnt in the context of rllel comosition. We roose n extension of CTL X, or n lterntive tretment of nontotlity, tht fills this hitus. The equivlence induced by our extension is chrcterised s brnching bisimultion equivlence with exlicit divergence, which is, moreover, shown to be the corsest congruence contined in divergence sensitive brnching bisimultion equivlence. 1 Introduction CTL [5] is owerful temorl logic combining liner time nd brnching time modlities; it generlises the brnching time temorl logic CTL [4]. CTL is interreted in terms of Krike structures. As the next stte modlity X is incomtible with bstrction of the notion of stte, it is often excluded in high-level secifictions. By CTL X we denote CTL without this modlity. To chrcterise the equivlence induced on sttes of Krike structures by vlidity of CTL X formuls, Browne, Clrke & Grumberg [2] defined the notion of stuttering equivlence. They roved tht two sttes in finite Krike structure re stuttering equivlent if nd only if they stisfy the sme CTL X formuls, nd moreover, they estblished tht this is lredy the cse if nd only if the two sttes stisfy the sme CTL X formuls. There is n intuitive corresondence between the notions of stuttering equivlence on Krike structures nd brnching bisimultion equivlence on lbelled trnsition systems (LTSs) s defined in [8]. De Nicol & Vndrger [3] hve rovided frmework for constructing nturl trnsltions between LTSs nd Krike structures in which this corresondence cn be formlised. Stuttering equivlence corresonds in their frmework to divergence sensitive vrint

2 2 Rob vn Glbbeek, Bs Luttik & Nikol Trčk of brnching bisimultion equivlence, nd conversely, brnching bisimultion equivlence corresonds to divergence blind vrint of stuttering equivlence. The ltter chrcterises the equivlence induced on sttes of Krike structures by divergence blind vrint of vlidity of CTL X formuls. In [4,5, 2] nd other work on CTL, Krike structures re required to be totl, mening tht every stte hs n outgoing trnsition. These corresond with LTSs tht re dedlock-free. In the world of LTSs requiring dedlock-freeness is considered serious limittion, s dedlock is introduced by useful rocess lgebric oertors like the restriction of CCS nd the synchronous rllel comosition of CSP. Concetully, dedlock my rise s the result of n unsuccessful synchronistion ttemt between rllel comonents, nd often one wnts to verify tht the result of rllel comosition is dedlock-free. This is ossible only when working in model of concurrency where dedlocks cn be exressed. Through the trnsltions of [3] it is ossible to define the vlidity of CTL X formuls on sttes of LTSs. To ly CTL X-formuls to LTSs tht my contin dedlocks we consider Krike structures with dedlocks s well, nd hence lift the requirement of totlity. Following [3], we do so by using mximl ths insted of infinite ths in the definition of vlidity of CTL X formuls. Brring further chnges, this mounts to the ddition of self loo to every dedlock stte. As consequence, CTL X formuls cnnot see the difference between stte without outgoing trnsitions ( dedlock) nd one whose only outgoing trnsition constitutes self loo ( livelock), nd ccordingly dedlock stte is stuttering equivlent to livelock stte tht stisfies the sme tomic roositions. This er will chllenge the wisdom of this set-u. We observe tht for systems with dedlock, the divergence sensitive brnching bisimultion equivlence of [3] fils to be congruence for interleving oertors. We chrcterise the corsest congruence contined in divergence sensitive brnching bisimultion equivlence s the brnching bisimultion equivlence with exlicit divergence, introduced in [8]. This equivlence differs from divergence sensitive brnching bisimultion equivlence in tht it distinguishes dedlock nd livelock. For dedlock-free systems the equivlences coincide. Tht divergence sensitive brnching bisimultion equivlence is not congruence for interleving oertors mens tht there re roerties of concurrent systems, ertining to their dedlock behviour, tht cnnot be exressed in CTL X, but tht cn be exressed in terms of the vlidity of CTL X formul on the result of utting these systems in given context involving n interleving oertor. We find this unstisfctory, nd therefore roose n extension of CTL X in which this tye of roerty cn be exressed directly. We obtin tht two sttes re brnching bisimultion equivlent with exlicit divergence if nd only if they stisfy the sme formuls in the resulting logic. Treting CTL X in the sme wy leds either to n extension of CTL X or, equivlently, to modifiction of its semntics. The new semntics we roose for CTL X is vlid extension of the originl semntics [4] to non-totl Krike structures. It slightly differs from the semntics of [3] nd it is rgubly better suited to del with dedlock behviour.

3 Comuttion Tree Logic with Dedlock Detection 3 Insted of extending CTL X or modifying CTL X we lso chieve the sme effect by mending the trnsltion from LTSs to Krike structures in such wy tht every LTS ms to totl Krike structure. 2 CTL X nd stuttering equivlence We resuose set AP of tomic roositions. A Krike structure is tule (S, L, ) consisting of set of sttes S, lbelling function L : S 2 AP nd trnsition reltion S S. For the reminder of the section we fix Krike structure (S, L, ). A finite th from s is finite sequence of sttes s 0,..., s n such tht s = s 0 nd s k s k+1 for ll 0 k < n. An infinite th from s is n infinite sequence of sttes s 0, s 1, s 2,... such tht s = s 0 nd s k s k+1 for ll k ω. A th is finite or infinite th. A mximl th is n infinite th or finite th s 0,..., s n such tht s. s n s. We write π π if the th π is suffix of the th π, nd π π if π π nd π π. Temorl roerties of sttes in S re defined using CTL X formuls. Definition 1. The clsses Φ of CTL X stte formuls nd Ψ of CTL X th formuls re generted by the following grmmr: ϕ ::= ϕ Φ ψ ψ ::= ϕ ψ Ψ ψ U ψ with AP, ϕ Φ, Φ Φ, ψ Ψ nd Ψ Ψ. In cse the crdinlity of the set of sttes of our Krike structure is less thn some infinite crdinl κ, 1 we my require tht Φ < κ nd Ψ < κ in conjunctions, thus obtining set of formuls rther thn roer clss. Normlly, S is required to be finite, nd ccordingly CTL X dmits finite conjunctions only. Definition 2. We define when CTL X stte formul ϕ is vlid in stte s (nottion: s = ϕ) nd when CTL X th formul ψ is vlid on mximl th π (nottion: π = ψ) by simultneous induction s follows: s = iff L(s); s = ϕ iff s = ϕ; s = Φ iff s = ϕ for ll ϕ Φ ; s = ψ iff there exists mximl th π from s such tht π = ψ; π = ϕ iff s is the first stte of π nd s = ϕ; π = ψ iff π = ψ; π = Ψ iff π = ψ for ll ψ Ψ ; nd π = ψ U ψ iff there exists suffix π of π such tht π = ψ, nd π = ψ for ll π π π. A formul ψ U ψ sys tht, long given th, ψ holds until ψ holds. One writes for the emty conjunction (which is lwys vlid), Fψ for U ψ ( ψ will hold eventully ) nd Gψ for F ψ ( ψ holds lwys (long th) ). 1 In fct it suffices to require tht for every stte s the crdinlity of the set of sttes rechble from s is less thn κ.

4 4 Rob vn Glbbeek, Bs Luttik & Nikol Trčk The bove is the stndrd, divergence sensitive interrettion of CTL X [5,2], but extended to Krike structures tht re not required to be totl. Following [3], this is chieved by using mximl ths in the definition of vlidity of CTL X formuls, insted of the trditionl use of infinite ths [5, 2]. The resulting definition generlises the trditionl one, becuse for totl Krike structures th is mximl iff it is infinite. An equivlent wy of thinking of this generlistion of CTL X to non-totl Krike structures is by mens of trnsformtion tht mkes Krike structure K totl by the ddition of self loo s s to every dedlock stte s, together with the convention tht formul is vlid in stte of K iff it is vlid in the sme stte of the totl Krike structure obtined by this trnsformtion. It is not hrd to check tht this yields the sme notion of vlidity s our Definition 2. The divergence blind interrettion of [3] (nottion: s = db ϕ nd π = db ψ) is obtined by droing the word mximl in the fourth cluse of Definition 2. Definition 3. A colouring is function C : S C, for C ny set of colours. Given colouring C nd (finite or infinite) th π = s 0, s 1, s 2,... from s, let C(π) be the sequence of colours obtined from C(s 0 ), C(s 1 ), C(s 2 ),... by contrcting ll its (finite or infinite) mximl consecutive subsequences C, C, C,... to C. The sequence C(π) is clled C-coloured trce of s; it is comlete if π is mximl. A colouring C is [fully] consistent if two sttes of the sme colour lwys stisfy the sme tomic roositions nd hve the sme [comlete] C-coloured trces. Two sttes s nd t re divergence blind stuttering equivlent, nottion s dbs t, if there exists consistent colouring C such tht C(s) = C(t). They re (divergence sensitive) stuttering equivlent, nottion s s t, if there exists fully consistent colouring C such tht C(s) = C(t). The difference between dbs nd s is illustrted in the following exmle. Exmle 1. Consider the Krike structure nd its colouring deicted in Figure 1. This colouring is consistent, imlying s dbs t dbs u nd x dbs y, but it is not fully consistent becuse stte t hs comlete trce while u does not. Note tht t hs, due to the self loo, comlete coloured trce tht consists of just the colour of -lbelled stte, wheres the unique comlete coloured trce of u contins the colour of q-lbelled stte too. Since consistent colouring ssigns different colours to sttes with different lbels, every fully consistent colouring must ssign different colours to sttes t nd u, i.e. it must be tht t s u. One such colouring is given in Figure 1b. This colouring shows tht x s y. Lemm 1. Let C be colouring such tht two sttes with the sme colour stisfy the sme tomic roositions nd hve the sme C-coloured trces of length two. Then C is consistent. Proof. Suose C(s 0 ) = C(t 0 ) nd C 0, C 1, C 2,... is n infinite coloured trce of s 0. Then, for i > 0, there re sttes s i nd finite ths π i from s i 1 to s i, such tht C(π i ) = C i 1, C i. With induction on i, for i > 0 we find sttes t i with

5 Comuttion Tree Logic with Dedlock Detection 5 ) s b) s t u t u x q q y x q q y Fig.1. Difference between ) dbs nd b) s. C(s i ) = C(t i ) nd finite ths ρ i from t i 1 to t i such tht C(ρ i ) = C i 1, C i. Nmely, the ssumtion bout C llows us to find ρ i given t i 1, nd then t i is defined s the lst stte of ρ i. Conctenting ll the ths ρ i yields n infinite th ρ from t 0 with C(ρ) = C 0, C 1, C 2,.... The cse tht C(s 0 ) = C(t 0 ) nd C 0,..., C n is finite coloured trce of s 0 goes likewise. Lemm 2. Let C be colouring such tht two sttes with the sme colour stisfy the sme tomic roositions nd hve the sme C-coloured trces of length two, nd the sme comlete C-coloured trces of length one. Then C is fully consistent. Proof. Suose C(s) = C(t) nd σ is comlete C-coloured trce of s. Then σ = C(π) for mximl th π from s. By Lemm 1, σ is lso C-coloured trce of t. It remins to show tht it is comlete C-coloured trce of t. Let ρ be th from t with C(ρ) = σ. If ρ is infinite, we re done. Otherwise, let t be the lst stte of ρ. Then C(t ) is the lst colour of σ. Therefore, there is stte s on π such tht the suffix π of π strting from s is mximl th with C(π ) = C(s ) = C(t ). By the ssumtion bout C, C(t ) must lso be comlete C-coloured trce of t, i.e. there is mximl th ρ from t with C(ρ ) = C(t ). Conctenting ρ nd ρ yields mximl th ρ from t with C(ρ ) = σ. The following two theorems were roved in [3] nd [2], resectively, for sttes s nd t in finite Krike structure. Here we dro the finiteness restriction. Theorem 1. s dbs t iff s = db ϕ t = db ϕ for ll CTL X stte formuls ϕ. Proof. Only if : Let C be consistent colouring. With structurl induction on ϕ nd ψ we show tht C(s) = C(t) (s = db ϕ t = db ϕ) nd C(π) = C(ρ) (π = db ψ ρ = db ψ). The cse ϕ = for AP follows immeditely from Definition 3. The cses ϕ = ϕ nd ϕ = Φ follow immeditely from the induction hyothesis. Suose C(s) = C(t) nd s = db ψ. Then there exists th π from s such tht π = db ψ. C(π) is coloured trce of s, nd hence of t. Thus there must be th ρ from t with C(π) = C(ρ). By induction, ρ = db ψ. Hence, t = db ψ.

6 6 Rob vn Glbbeek, Bs Luttik & Nikol Trčk The cse ϕ Φ follows since the first sttes of two ths with the sme colour lso hve the sme colour. The cses ψ = ψ nd ψ = Ψ follow immeditely from the induction hyothesis. Finlly, suose C(π) = C(ρ) nd π = db ψ U ψ. Then there exists suffix π of π such tht π = db ψ nd π = db ψ for ll π π π. As C(π) = C(ρ), there must be suffix ρ of ρ such tht C(π ) = C(ρ ) nd for every th ρ such tht ρ ρ ρ there exists th π with π π π such tht C(π ) = C(ρ ). By induction, this imlies ρ = db ψ nd ρ = db ψ for ll ρ ρ ρ. Hence ρ = db ψ U ψ. If : Let C be the colouring given by C(s) = {ϕ Φ s = db ϕ}. It suffices to show tht C is consistent. So suose C(s) = C(t). Trivilly, s nd t stisfy the sme tomic roositions. By Lemm 1 it remins to show tht s nd t hve the sme coloured trces of length two. Suose s hs coloured trce C, D. Let s 0,...,s k be th from s such tht C(s i ) = C for 0 i < k nd C(s k ) = D C. Let U = {u there is th from t to u nd C(u) C}, V = {v there is th from t to v nd C(v) D}. For every u U ick CTL X formul ϕ u C C(u) (using negtion on formul in C(u) C if needed), nd for every v V ick CTL X formul ϕ v D C(v). Now s = db ( u U ϕ u) U ( v V ϕ v) nd, s C(s) = C(t), lso t = db ( u U ϕ u ) U ( v V ϕ v ). Thus, there is th t 0,...,t l from t such tht t l = db v V ϕ v nd t j = db u U ϕ u for 0 j < l. It follows tht t l V nd t j U for 0 j < l. Hence C(t l ) = D nd C(t j ) = C for 0 j < l, so C, D is lso coloured trce of t. Theorem 2. s s t iff s = ϕ t = ϕ for ll CTL X stte formuls ϕ. Proof. Only if goes exctly s in the revious roof, reding = for = db, but requiring C to be fully consistent nd, in the second rgrh, the ths π nd ρ to be mximl nd C(π) to be comlete coloured trce of s nd t. If goes s in the revious roof, but this time we hve to show tht C is fully consistent. Thus, lying Lemm 2, nd ssuming C(s) = C(t), we dditionlly hve to show tht s nd t hve the sme comlete coloured trces of length one. Let π be mximl th from s with C(π) = C. Let U = {u there is th from t to u nd C(u) C}. For every u U ick CTL X formul ϕ u C C(u). Now s = G( u U ϕ u) nd, s C(s) = C(t), lso t = G( u U ϕ u ). Thus, there is mximl th ρ from t such tht t = u U ϕ u for ll sttes t in ρ. It follows tht t U. Hence C(t ) = C nd thus C(ρ) = C. Corollry 1. dbs nd s re equivlence reltions. Note tht, for ny colouring C, the C-coloured trces of stte s re comletely determined by the comlete C-coloured trces of s, nmely s their refixes.

7 Comuttion Tree Logic with Dedlock Detection 7 Hence, ny colouring tht is fully consistent is certinly consistent, nd thus s is finer (i.e. smller, more discriminting) equivlence reltion thn dbs. Above, the divergence blind interrettion of CTL X is defined by using ths insted of mximl ths. It cn equivlently be defined in terms of trnsformtion on Krike structures, nmely the ddition of self loo s s for every stte s. Now s dbs t holds in certin Krike structure iff s s t holds in the Krike structure obtined by dding ll these self loos. This is becuse the colour of th doesn t chnge when self-loos re dded to it, nd u to self loos ny th is mximl. Likewise, s = db ϕ in the originl Krike structure iff s = ϕ in the modified one. Just like dbs cn be exressed in terms of s by mens of trnsformtion on Krike structures, by mens of different trnsformtion, t lest for finite Krike structures, s cn be exressed in terms of dbs. This is done in [3], Definitions nd Brnching bisimultion in terms of coloured trces We resuose set A of ctions with secil element A. A lbelled trnsition system (LTS) is structure (S, ) consisting of set of sttes S nd trnsition reltion S A S. For the reminder of the section we fix n LTS (S, ). We write s s for (s,, s ). A th from s is n lternting sequence s 0, 1, s 1, 2, s 2,... of sttes nd ctions, ending with stte if the sequence is finite, such tht s = s 0 nd s k k 1 sk for ll relevnt k > 0. A mximl th is n infinite th or finite th s 0, 1, s 1, 2,..., n, s n such tht, s. s n s. We write π π if the th π is suffix of the th π, nd π π if π π nd π π. Definition 4. A colouring is function C : S C, for C ny set of colours. For π = s 0, 1, s 1, 2, s 2,... th from s, let C(π) be the lternting sequence of colours nd ctions obtined from C(s 0 ), 1, C(s 1 ), 2, C(s 2 ),... by contrcting ll (finite or infinite) mximl consecutive subsequences C,, C,, C,... to C. The sequence C(π) is clled C-coloured trce of s; it is comlete if π is mximl; it is divergent if it is finite whilst π is infinite. A colouring C is [fully] consistent if two sttes of the sme colour lwys hve the sme [comlete] C-coloured trces. Two sttes s nd t re (divergence blind) brnching bisimultion equivlent, nottion s b t, if there exists consistent colouring C such tht C(s) = C(t). They re divergence sensitive brnching bisimultion equivlent, nottion s λ b t, if there exists fully consistent colouring C such tht C(s) = C(t). A consistent colouring reserves divergence if two sttes of the sme colour lwys hve the sme divergent C-coloured trces. Two sttes s nd t re brnching bisimultion equivlent with exlicit divergence, nottion s b t, if there exists consistent, divergence reserving colouring C with C(s) = C(t). The difference between b, λ b, nd b is illustrted in the following exmle.

8 8 Rob vn Glbbeek, Bs Luttik & Nikol Trčk ) s t u v b) s t u v c) s t u v x y z x y z x y z Fig.2. Difference between ) b, b) λ b, nd c) b. Exmle 2. Consider first the LTS nd its colouring deicted in Figure 2. This colouring is consistent nd we hve s b t b u b v nd x b y b z. It is not fully consistent becuse stte s hs comlete trce wheres t hs not. It is esy to see tht every fully consistent colouring must ssign different colours to sttes t nd u, nd so tht t λ b u. One such colouring is given in Figure 2b nd it shows tht u λ b v nd x λ b y λ b z. Note, however, tht this colouring, lthough fully consistent, does not reserve divergence. Stte v hs divergent trce wheres u hs not, nd similrly stte z hs divergent trce wheres y hs not. Any colouring tht reserves divergence must ssign different colours to sttes u nd v nd to sttes y nd z, mening tht u b v nd y b z. One such colouring is given in Figure 2c. It shows tht x b y. In fct, these re the only two (different) sttes tht re brnching bisimultion equivlent with exlicit divergence. In the definition of b bove, consistency nd reservtion of divergence er s two serte roerties of colourings. Insted we could hve integrted them by dding n extr bit ( ) t the end of those finite coloured trces tht stem from infinite ths. Likewise, λ b could hve been defined by dding such n extr bit t the end of those finite coloured trces tht stem from mximl ths. Lemms 1 nd 2 bout colourings on Krike structures ly to lbelled trnsition systems s well. The roofs re essentilly the sme. Lemm 3. Let C be colouring such tht two sttes with the sme colour hve the sme C-coloured trces of length three (i.e. colour - ction - colour). Then C is consistent. Lemm 4. Let C be consistent colouring such tht two sttes with the sme colour hve the sme comlete C-coloured trces of length one. Then C is fully consistent. Lemm 5. Let C be consistent colouring such tht two sttes with the sme colour hve the sme divergent C-coloured trces of length one. Then C reserves divergence.

9 Comuttion Tree Logic with Dedlock Detection 9 Proof. Exctly like the roof of Lemm 2, but letting σ be divergent C-coloured trce of s; π, π infinite ths; C(t ) divergent C-coloured trce of t ; nd ρ, ρ infinite ths. Brnching bisimultion equivlence nd brnching bisimultion equivlence with exlicit divergence were originlly defined in Vn Glbbeek & Weijlnd [8]. There, only finite coloured trces re considered, nd consistent colouring ws defined s colouring with the roerty tht two sttes hve the sme colour only if they hve the sme finite coloured trces. By Lemm 3 this yields the sme concet of consistent colouring s Definition 4 bove. In [8], consistent colouring is sid to reserve divergence if no divergent stte hs the sme colour s nondivergent stte. Here stte s is divergent if it is the strting oint of n infinite th of which ll nodes hve the sme colour. This is the cse if s hs divergent coloured trce of length one. Now Lemm 5 sys tht the definition of reservtion of divergence from [8] grees with the one roosed bove. Hence the concets of brnching bisimultion nd brnching bisimultion with exlicit divergence of [8] gree with ours. Theorem 3. b, λ b nd b re equivlence reltions. Proof. We show the roof for b ; the other two cses roceed likewise. We will regrd ny equivlence reltion on S s colouring, the colour of stte being its equivlence clss. Conversely, ny colouring cn be considered s n equivlence reltion on sttes. The digonl on S (i.e., the binry reltion {(s, s) s S}) is consistent colouring, so b is reflexive. Tht b is symmetric is immedite from the required symmetry of colourings. To rove tht b is trnsitive, suose s b t nd t b u. So there exist consistent colourings C nd D with C(s) = C(t) nd D(t) = D(u). Let E be the finest equivlence reltion contining C nd D. Then E(s) = E(t) = E(u). It suffices to show tht E is consistent. First of ll note tht the E-colour of stte is comletely determined by its C-colour, s well s by its D-colour: C() = C(q) E() = E(q) nd D() = D(q) E() = E(q) for ll, q S. Thus, if two sttes hve the sme sets of C-coloured trces or the sme sets of D-coloured trces, they must lso hve the sme sets of E-coloured trces. Suose E() = E(q). Then there must be sequence of sttes ( i ) 0 i n such tht = 0, q = n nd for 0 i < n we hve either C( i ) = C( i+1 ) or D( i ) = D( i+1 ). As C nd D re consistent colourings, i nd i+1 hve the sme C-coloured trces or the sme D-coloured trces. In either cse they lso hve the sme E-coloured trces. This holds for 0 i < n, so nd q hve the sme E-coloured trces. Thus E is consistent. Lemm 6. Let C be consistent colouring nd s S. Then the comlete C- coloured trces of s consist of the C-coloured trces of s tht re infinite, divergent, or mximl, in the sense tht they cnnot be extended.

10 10 Rob vn Glbbeek, Bs Luttik & Nikol Trčk Proof. By definition, infinite nd divergent C-coloured trces of s re comlete. Let σ be mximl C-coloured trce of s, nd let π be th from s such tht C(π) = σ. Let π be n extension of π to mximl th. As σ is mximl C-coloured trce, in the sense tht it cnnot be extended, we hve C(π ) = σ. Hence σ is comlete C-coloured trce of s. Now let σ be comlete C-coloured trce of s tht is not infinite, nor divergent C-coloured trce of s. In tht cse σ = C(π) for π finite mximl th from s. Let t be the lst stte of π. We hve, t. t t. Suose, towrds contrdiction, tht σ is not mximl, i.e. there is th π from s such tht C(π ) is roer extension of σ. Then there must be stte u on π with C(u) = C(t), such tht u hs coloured trce σ of length > 1, which is suffix of C(π ). As C is consistent, σ is lso coloured trce of t, contrdicting, t. t t. As for Krike structures, for ny colouring C, the C-coloured trces of stte s re the refixes of the comlete C-coloured trces of s. Moreover, Lemm 6 sys tht the comlete C-coloured trces of stte s re comletely determined by the C-coloured trces of s together with the divergent C-coloured trces of s. Hence, ny colouring tht is consistent nd reserves divergence is lso fully consistent. Therefore, b is finer thn λ b, which is finer thn b. The difference between λ b nd b is tht only the ltter sees the difference between those mximl finite coloured trces tht stem from finite ths (ending in dedlock) nd those tht stem from infinite ths (ending in livelock). For dedlock-free LTSs (hving no sttes s with, s. s s ) the equivlences λ b nd b coincide. 4 Trnslting between Krike structures nd lbelled trnsition systems We resuose set A of ctions with secil element A, nd set AP of tomic roositions. A doubly lbelled trnsition system (L 2 TS) is structure (S, L, ) tht consists of set of sttes S, lbelling function L : S 2 AP nd lbelled trnsition reltion S A S. From n L 2 TS one nturlly obtins n LTS by omitting the lbelling function L, nd Krike structure by relcing the lbelled trnsition reltion by one from which the lbels re omitted. We cll these the LTS or Krike structure ssocited to the L 2 TS. An L 2 TS (S, L, ) is consistent if it stisfies the following three conditions: (i) if s t, then (L(s) = L(t) iff = ); (ii) if s t, s t nd L(s) = L(s ), then L(t) = L(t ); nd (iii) if s t, s b t, L(s) = L(s ) nd L(t) = L(t ), then = b. Consistent L 2 TSs were introduced in De Nicol & Vndrger [3] for studying reltionshis between notions defined for Krike structures nd notions defined for LTSs. Condition (iii) sys tht the lbel of trnsition is fully determined by the lbels of its source nd trget stte, wheres condition (ii) entils tht

11 Comuttion Tree Logic with Dedlock Detection 11 the lbel of stte t rechble from stte s is comletely determined by the lbel of s nd the sequence of lbels of the trnsitions leding from s to t. Exmle 3. The three L 2 TSs from Figure 3 re not consistent becuse they violte condition (i), (ii), nd (iii) resectively; the L 2 TS in Figure 3b is consistent. ) q r q b q b) b q q r Fig.3. ) Three inconsistent L 2 TSs nd b) consistent L 2 TS. Mny semntic equivlences on LTSs, such s b, λ b nd b, re considered in the literture; for n overview see [6]. Definition 5. Any semntic equivlence on LTSs extends to L 2 TSs by declring, for ll sttes s nd t in n L 2 TS, tht s t iff L(s) = L(t) nd s t in the ssocited LTS. Any semntic equivlence on Krike structures extends to L 2 TSs by declring, for ll sttes s nd t in n L 2 TS, tht s t iff s t in the ssocited Krike structure. The following theorem ws roved in [3] for finite consistent L 2 TSs. Here we dro the finiteness restriction. Theorem 4. On consistent L 2 TS, dbs equls b, nd s equls λ b. Proof. Suose s dbs t [or s s t]. Then there is colouring C on the sttes of the L 2 TS tht is [fully] consistent on the ssocited Krike structure K nd stisfies C(s) = C(t). By definition, this entils L(s) = L(t). It remins to show tht C is [fully] consistent on the ssocited LTS L. So let C() = C(q), nd let σ be [comlete] coloured trce of in L. Using symmetry, it suffices to show tht σ is lso [comlete] coloured trce of q in L. Let ρ be obtined by omitting ll ctions from the lternting sequence of sttes nd ctions σ. Using direction only if of cluse (i) in the definition of consistent L 2 TS, ρ must be [comlete] coloured trce of in K. As C is [fully] consistent on K, ρ must lso be [comlete] coloured trce of q in K. Finlly, using cluses (i) only if nd (iii), σ must be [comlete] coloured trce of q in L. Now suose s b t [or s λ b t]. Then L(s) = L(t) nd there is colouring C on the sttes of the L 2 TS, with C(s) = C(t), tht is [fully] consistent on L. Let D be the colouring given by D() := (C(), L()) for ll S, so tht we hve D() = D(q) [C() = C(q) L() = L(q)]. It suffices to show tht D is [fully]

12 12 Rob vn Glbbeek, Bs Luttik & Nikol Trčk consistent on K. The requirement D() = D(q) L() = L(q) is built into the definition of D. So let D() = D(q), nd let ν be [comlete] D-coloured trce of in K. Using symmetry, it suffices to show tht ν is lso [comlete] D-coloured trce of q in K. Using cluse (i) only if, there must be [comlete] D-coloured trce ρ of in L such tht ν is obtined from ρ by omitting its ctions. Let σ be the [comlete] C-coloured trce of s in K obtined from ρ by omitting the second comonent of ech D-colour of stte. As C() = C(q) nd C is [fully] consistent on L, σ must lso be [comlete] C-coloured trce of q in L. By lying cluses (i) if nd (ii) one derives tht ρ is [comlete] D-coloured trce of q in L. Therefore, gin using cluse (i) only if, ν must be [comlete] D-coloured trce of q in K. Observtion 1. For every Krike structure K there exists consistent L 2 TS D such tht K is the Krike structure ssocited to D. One wy to obtin D is to lbel ny trnsition s t by the ir (L(s), L(t)) (or simly by L(t)) when L(s) L(t), or when L(s) = L(t). An lterntive is the lbel (L(s) L(t), L(t) L(s)), where (, ) is identified with. Unlike the sitution for Krike structures (Observtion 1) it is not the cse tht every LTS cn be obtined s the LTS ssocited to consistent L 2 TS. A simle counterexmle is resented in [3]. Thus, in encoding LTSs s L 2 TSs, it is in generl not ossible to kee the set of sttes the sme. Definition 6. An LTS-to-L 2 TS trnsformtion η consist of function tking ny LTS L to consistent L 2 TS η(l), nd in ddition tking ny stte s in L to stte η(s) in η(l). Such trnsformtion should t lest stisfy s λ b t η(s) λ b η(t), tht is, it reserves ( ) nd reflects ( ) divergence sensitive brnching bisimultion equivlence, nd likewise for b, nd b. A common LTS-to-L 2 TS trnsformtion is resented in [3]. It tkes n LTS L = (S, ) to n L 2 TS η(l) by inserting new stte hlfwy ny trnsition s t with. This new stte is lbelled {}, nd ech of the two trnsitions relcing s t (from s to the new stte nd from there to t) is lbelled. Trnsitions s t re untouched. One tkes η(s) = s for s S nd ll such sttes from L re lbelled { } in η(l). (Consult [3] for the forml definition nd exmles.) In [3] it is shown tht this trnsformtion reserves nd reflects λ b ; the sme roof lies to b nd b. An LTS-to-L 2 TS trnsformtion η yields n LTS-to-Krike-structure trnsformtion tht we lso cll η, nmely the one trnsforming n LTS L into the Krike structure ssocited to η(l). In fct, using Theorem 4 nd Observtion 1, ny LTS-to-Krike-structure trnsformtion η tht reserves nd reflects the required equivlences cn be obtined in this wy. An LTS-to-L 2 TS trnsformtion η mkes it ossible to define when stte s in n LTS stisfies CTL X formul ϕ. Nmely, one defines s =η ϕ iff η(s) = ϕ. This wy, CTL X cn be used s temorl logic on LTSs. Theorem 5. Let s nd t be sttes in n LTS, nd let η be n LTS-to-L 2 TS trnsformtion. Then

13 Comuttion Tree Logic with Dedlock Detection 13 s b t iff s = η db ϕ t =η db ϕ for ll CTL X stte formuls ϕ s λ b t iff s =η ϕ t = η ϕ for ll CTL X stte formuls ϕ. Proof. This is n immedite consequence of the requirement tht η reserves nd reflects b nd λ b, in combintion with Theorems 1, 2 nd 4. 5 Prllel comosition For behviourl equivlence to be useful in rocess lgebric setting, it is essentil tht it is congruence for the oertions under considertion. In this section we rove tht b nd b re congruences for the merge or interleving oertor. This oertor is often used to reresent (synchronous) rllel comosition. However, λ b fils to be congruence for. We chrcterise the lest discriminting congruence tht mkes ll the distinctions of λ b s b. Definition 7. A binry oertion on the sttes of n LTS is merge if for ll s, t, u S nd for ll A it holds tht s t u iff there exists s S such tht s s nd u = s t; or there exists t S such tht t t nd u = s t. Using well known techniques from structurl oertionl semntics [1] ny LTS cn be ugmented with merge. Moreover, n LTS with merge is generted by the structurl oertionl semntics of ny rocess clculus tht includes n oertion for ure interleving. Henceforth we del with LTSs with merge. Theorem 6. The reltion b is congruence for, i.e., if s b t nd u b v, then s u b t v. Proof. Let R be the reflexive nd trnsitive closure of the reltion {( q, q ) b & q b q }. Let C be the function tht ssigns to ech stte its equivlence clss with resect to R. It suffices to rove tht C is consistent divergence reserving colouring. So suose C(r) = C(r ). Using Lemms 3 nd 5 it suffices to show tht r nd r hve the sme C-coloured trces of length three nd the sme divergent C- coloured trces of length one. It is strightforwrd, but nottionlly cumbersome, to estblish this in the secil cse tht r = q nd r = q with b nd q b q. The generl cse then follows by induction on the length of chin of irs from the reltion dislyed bove showing tht the ir (r, r ) is in its reflexive nd trnsitive closure. A similr roof shows tht lso b is congruence for. However, λ b is not. Exmle 4. Consider n LTS with merge tht contins stte 0 without outgoing trnsitions, stte 0 with -loo (n outgoing -lbelled trnsition to itself) nd no other outgoing trnsitions, nd stte with 0 nd no other outgoing trnsitions. (Note tht such n LTS is, e.g., generted by the

14 14 Rob vn Glbbeek, Bs Luttik & Nikol Trčk structurl oertionl semntics of CCS with recursion.) Then 0 λ b 0. Figure 4 shows the frgment consisting of the sttes 0, 0 nd of the LTS under considertion. Figure 4b shows frgment where the merge is lied. Observe tht 0 λ b 0. The reson is tht 0 hs mximl th tht stys in its initil stte, wheres 0 hs not. This roblem does not ly to b becuse 0 b 0. It does not ly to b becuse 0 b 0. ) b) 0 λ b 0 0 λ b Fig.4. λ b is not congruence for rllel comosition The exmle bove involves dedlock stte, nmely 0. This is unvoidble, s on LTSs without dedlock λ b coincides with b (cf. Section 3) nd hence is congruence for. The stndrd solution to the roblem of n equivlence filing to be congruence for desirble oertor O is to relce it by the corsest congruence for O tht is included in [10]. Alying this technique to the current sitution, the corsest congruence for included in λ b turns out to be b. Theorem 7. b is the corsest congruence for tht is included in λ b.2 Proof. We hve lredy seen tht b is congruence for, nd tht it is included in λ b. To show tht it is the corsest, it suffices to show tht whenever s b t, we cn find stte u such tht s u λ b t u. In fct, we cn lwys tke u to be the stte from Exmle 4, for n ction tht does not occur in ny th from s or t. Nmely, suose tht s λ b t. Let C be fully consistent colouring with C(s ) = C(t ). Define the colouring D by D() = C( ) for stte 2 Strictly seking, we merely show tht b is the corsest congruence for tht is included in λ b nd stisfies the Fresh Atom Princile (FAP). This rincile, described in [7], is stisfied by semntic equivlence on LTSs when on n LTS L cn lwys be obtined s the restriction of on ny given lrger LTS of which L is sublts, nd whose trnsition lbels my be drwn from lrger set of ctions thn those of L. FAP llows us to use the stte tht figures in the roof of Theorem 7, regrdless of whether such stte, or the fresh ction, occurs in the given LTS or not. FAP is stisfied by virtully ll semntic equivlences documented in the literture, nd cn be used s snity check for meningful equivlences [7].

15 Comuttion Tree Logic with Dedlock Detection 15 rechble from s or t, nd D() = otherwise. Then D(s) = D(t). It suffices to show tht D is consistent nd reserves divergence, imlying s b t. So suose D() = D(q) with q. Then C( ) = C(q ). First we show tht nd q hve the sme D-coloured trces. Let σ be D-coloured trce of. Then σ is lso C-coloured trce of. As nd q hve the sme comlete C-coloured trces, they surely hve the sme C-coloured trces (for the coloured trces of stte re the refixes of its comlete coloured trces). Hence σ is C-coloured trce of q. As is rechble from s or t, the ction cnnot occur in σ. Therefore, σ must lso be D-coloured trce of q. By symmetry, ny D-coloured trce of q is lso D-coloured trce of, nd hence nd q hve the sme D-coloured trces. Next, we show tht nd q hve the sme divergent D-coloured trces. So let σ be divergent D-coloured trce of. Then σ is lso divergent C-coloured trce of. Hence σ is comlete C-coloured trce of nd thus lso of q. As the ction cnnot occur in σ, it is not ossible tht σ stems from finite mximl th from q. Therefore, σ must be divergent C-coloured trce of q, nd hence divergent D-coloured trce of q. Agin invoking symmetry, nd q hve the sme divergent D-coloured trces. It follows tht D is consistent nd reserves divergence; thus s b t. So if one is in serch of semntics such tht, for s nd t sttes in n LTS, if there is CTL X stte formul ϕ such tht s =η ϕ but t = η ϕ, then s nd t should be distinguished, if s nd t cn be distinguished fter lcing them in context u for some u, then they should be distinguished to strt with nd no two sttes should be distinguished unless this is required by the revious two conditions, then brnching bisimultion semntics with exlicit divergence is the nswer, for s b t iff for ll u nd ll ϕ Φ we hve s u =η ϕ t u = η ϕ. 6 Adding dedlock detection to CTL X We sw bove tht there re imortnt roerties of sttes s in n LTS tht cn be exressed in terms of context u nd CTL X formul ϕ, nmely s s u = η ϕ, but tht cnnot be directly exressed in terms of CTL X. This is somewht unstisfctory, nd therefore we roose n extension of CTL X in which this tye of roerty cn be exressed directly. We dd th modlity tht is vlid on th π iff π is infinite. This th modlity, or ctully n eqully exressive one, ws studied rior by Kivol & Vlmri [9] in the context of Liner Temorl Logic without the next stte oertor see Section 9. Definition 8. The syntx of CTL is given by ϕ ::= ϕ Φ ψ ψ ::= ϕ ψ Ψ ψ U ψ with AP, ϕ Φ, Φ Φ, ψ Ψ nd Ψ Ψ. Vlidity is defined s in Definition 2, but dding the cluse

16 16 Rob vn Glbbeek, Bs Luttik & Nikol Trčk π = iff the th π is infinite. We write ψ for ( ψ); this formul holds in stte s if there exists n infinite th π from s such tht π = ψ. Likewise ψ = ( ψ) holds in s if for ll infinite ths π from s we hve tht s = ψ. These constructs re dul, in the sense tht s = ψ iff s = ψ. The negtion of holds for mximl th π iff π is finite, nd hence ends in dedlock. It is temting to simly extend CTL X with stte formul δ such tht s = δ iff s. s s. This would mke it ossible to exress s Fδ. However, this would mke the resulting logic too exressive: the two sttes in the Krike structure (with the emty lbelling) re brnching bisimultion equivlent with exlicit divergence, yet they would be distinguished by this extension of CTL X, s only the lst stte stisfies δ. CTL is n extension of CTL X. There is no need for similr extension of CTL, for δ cn be exressed s X. In rticulr, CTL is not more exressive thn CTL. The definition of brnching bisimultion equivlence with exlicit divergence lifts esily to Krike structures: s b t, for s nd t sttes in Krike structure, iff there exists consistent nd divergence reserving colouring C such tht C(s) = C(t). Here divergence reserving is defined s in Section 3; by Lemm 5, this time lied to Krike structures, consistent colouring reserves divergence iff, for ny sttes s nd t, C(s) = C(t) imlies for ny infinite th π from s with C(π) = C(s) there is n infinite th ρ from t with C(ρ) = C(t). Theorem 8. s b t iff s = ϕ t = ϕ for ll CTL stte formuls ϕ. Proof. Only if goes s in the roof of Theorem 1, reding = for = db, requiring C to be consistent nd divergence reserving, nd, in the second rgrh, requiring the ths π nd ρ to be mximl nd C(π) to be comlete coloured trce of s nd t. Here we use tht if colouring is consistent nd divergence reserving, then two sttes with the sme colour must lso hve the sme comlete coloured trces. This follows from Lemm 6, this time lied to Krike structures. There is one extr cse to check. Suose C(π) = C(ρ) nd π =, but ρ =. Then the lst stte t of ρ hs the sme colour C(t) s one of the sttes s of π. Let π be the (infinite) suffix of π strting t s. Then C(π ) = C(s) = C(t), yet there is no infinite th from t, contrdicting tht C is divergence reserving. If goes s in the roof of Theorem 1, but this time we hve lso to show tht C reserves divergence. So let s nd t be sttes nd π n infinite th from s with C(π) = C(s) = C(t) = C. Let U = {u there is th from t to u nd C(u) C}. For every u U ick CTL formul ϕ u C C(u). Now s = G( u U ϕ u) nd, s C(s) = C(t), lso t = G( u U ϕ u ). Thus, there is n infinite th ρ from t such tht t = u U ϕ u for ll sttes t in ρ. It follows tht t U. Hence C(t ) = C nd thus C(ρ) = C.

17 Comuttion Tree Logic with Dedlock Detection 17 7 Adding dedlock detection to CTL X CTL X is the sublogic of CTL X tht only llows th formuls of the form ϕ Uϕ nd (ϕ Uϕ ), where ϕ nd ϕ re stte formuls. Equivlently, it cn be defined s only llowing th formuls of the form ϕ U ϕ nd Gϕ, for we hve s = Gϕ iff s = ( U ϕ) s = (ϕ U ϕ ) iff s = [( ϕ ) U (ϕ ϕ )] G ϕ. Theorems 1 nd 2 re lso vlid when using CTL X insted of CTL X, for their roofs use no other temorl constructs thn (ϕ U ϕ ) nd Gϕ. A nturl roosl for CTL would be to dd the th quntifier to CTL X, thus yielding the syntx ϕ ::= ϕ Φ (ϕ U ϕ) (ϕ U ϕ) Gϕ Gϕ. However, we cn economise on tht, for s = (ϕ U ϕ ) iff s = (ϕ U (ϕ G )) s = Gϕ iff s = Gϕ (ϕ U ( Gϕ)) where Gϕ is n bbrevition for ( U ϕ). Hence CTL cn be given by the syntx ϕ ::= ϕ Φ (ϕ U ϕ) Gϕ. It follows immeditely from the roof of Theorem 8 tht this lnguge is sufficiently exressive to chrcterise brnching bisimultion equivlence with exlicit divergence: Theorem 9. s b t iff s = ϕ t = ϕ for ll CTL formuls ϕ. It is temting to simly write G s G; tht is, to kee the sme syntx s for CTL X but define its semntics in such wy tht (ϕ U ϕ ) sks merely for finite th, wheres Gϕ sks for n infinite one. This dedlock sensitive interrettion of CTL X is n lterntive for the interrettion of [3]. It is consistent with the clssicl interrettion of CTL [5, 2], s for totl Krike structures there is no difference between nd. 8 The dedlock extension of Krike structures Following De Nicol & Vndrger [3] we hve lied CTL X to non-totl Krike structures by using mximl insted of infinite ths in the definition of vlidity. As remrked in Section 2, the sme effect cn be obtined by trnsforming non-totl Krike structure into totl one by dding self loo s s to every dedlock stte s, nd lying the stndrd CTL X semntics to the resulting totl Krike structure. However, the ltter does not ly to CTL, becuse the self loo s s invlidtes the formul tht holds in ny dedlock stte s. Here we define nother trnsformtion on Krike structures tht mkes ny Krike structure totl, nd llows encoding of CTL in terms of CTL X.

18 18 Rob vn Glbbeek, Bs Luttik & Nikol Trčk Definition 9. The dedlock extension D(K) of Krike structure K is obtined by the ddition of fresh stte s δ, lbelled by the fresh tomic roosition δ, together with trnsition from s δ nd from every dedlock stte in K to s δ. An exmle of this trnsformtion is deicted in Figure 5. K : q D(K) : q r r s δ δ Fig.5. Dedlock extension of Krike structure Theorem 10. Let K be Krike structure, with sttes s nd t. Then s b within the Krike structure K iff s b t within the Krike structure D(K). Proof. If : Let D be consistent nd divergence reserving colouring on D(K). Note tht D(s δ ) D(s) for ny stte s s δ in D(K). Let C be the restriction of D to the sttes of K. Then the C-coloured trces of stte s in K equl the D- coloured trces of s in D(K), but with the colour D(s δ ) omitted from the end of such trces. It follows tht C is consistent. It reserves divergence by Lemm 5. Only if : Let C be consistent nd divergence reserving colouring on K. Extend it to colouring D on D(K) by ssigning fresh colour δ to the extr stte s δ of D(K). It suffices to check tht D is consistent nd divergence reserving. Clim. From ny stte s in K with the sme colour s dedlock stte t in K there must be th π to dedlock stte such tht C(π) = C(t). Proof of clim. As t hs no C-coloured trces of length two, neither does s, nd s t hs no divergent C-coloured trces, neither does s. Thus, ll ths from s re finite nd only ss through sttes with colour C(t). Aliction of the clim. The D-coloured trces of length two of stte s s δ in D(K) re the C-coloured trces of length two of the stte s in K, together with the trce C(t)δ in cse s hs the sme colour s dedlock stte t in K. Thus D is consistent by Lemm 1, nd reserves divergence by Lemm 5. The if -direction of the theorem, with similr roof, lso lies to s nd dbs, but the only if -direction does not. As counterexmle, let K be Krike structure with dedlock stte d (hving no outgoing trnsitions) nd livelock stte l (with self-loo s its only one outgoing trnsition); neither stte stisfies ny tomic roositions. In K we hve d s l, nd hence d dbs l, but in D(K) we hve d dbs l, nd hence d s l. Considering tht Krike structures of the form D(K) re totl, nd tht on totl Krike structures s nd b coincide, it is in fct imossible to define trnsformtion like D for which Theorem 10 holds for both b nd s. t

19 Comuttion Tree Logic with Dedlock Detection 19 Now let η be n rbitrry LTS-to-L 2 TS-trnsformtion, yielding n LTS-to- Krike-structure trnsformtion tht is lso clled η (see Section 4). Then D η is not vlid LTS-to-Krike-structure trnsformtion s intended in [3], for it fils to reserve λ b / s nd b / dbs (cf. Definition 6). Yet, it stisfies s b t D η(s) s D η(t) (becuse s b t η(s) b η(t) D η(s) b D η(t) nd on totl Krike structures b nd s coincide), nd s such it is suitble trnsformtion for defining vlidity of CTL X formul on sttes in LTSs. We obtin: Corollry 2. Let s nd t be sttes in n LTS, nd let η be n LTS-to-L 2 TS trnsformtion. Then s b t iff s =D η ϕ t = D η ϕ for ll CTL X stte formuls ϕ. Thus, one wy to mke CTL X suitble for deling with dedlock behviour on LTSs is to stick to totl Krike structures nd trnslte LTSs to Krike structures by trnsltion D η insted of trnsformtion η s roosed in [3]. This wy brnching bisimultion equivlence with exlicit divergence becomes the nturl counterrt of stuttering equivlence on Krike structures, nd we hve the modl chrcteristion of Corollry 2. An lterntive is to stick to more nturl trnsformtions η meeting the criteri on Definition 6, ly the definition of vlidity of CTL X formuls to non-totl Krike structures s in [3], nd extend CTL X to CTL s indicted in Section 6. Below we show tht these solutions led to eqully exressive logics on LTSs. Definition 10. Given set of tomic roositions, let CTL δ be the logic CTL X extended with n extr tomic roosition δ. The mings D from CTL to CTL δ formul nd E from CTL to CTL δ formul re defined inductively by D() = E () = D( ϕ) = δ D(ϕ) E( ϕ) = E(ϕ) D( i I ϕ i) = i I D(ϕ i) E( i I ϕ i) = i I E(ϕ i) D( ψ) = D(ψ) E( ψ) = E(ψ) D( ψ) = δ D(ψ) E( ψ) = E(ψ) D( i I ψ i) = i I D(ψ i) E( i I ψ i) = i I E(ψ i) D(ψ U ψ ) = D(ψ) U D(ψ ) E(ψ U ψ ) = (E(ψ) U δ ψ ) (E(ψ) U E(ψ )) D( ) = Fδ E(δ) =. { δ if sδ = ψ Here δ ψ =, nd ψ U δ bbrevites Gψ. otherwise Theorem 11. Let K be Krike structure nd s stte in K. Then for ny CTL stte formul ϕ we hve s = ϕ in K iff s = D(ϕ) in D(K), nd for ny CTL δ stte formul ϕ we hve s = ϕ in D(K) iff s = E(ϕ) in K.

20 20 Rob vn Glbbeek, Bs Luttik & Nikol Trčk Proof. For stte formul ϕ, let [[ϕ]] K denote the set of sttes s in K with s = ϕ. Likewise, for th formul ψ, [[ψ]] K denotes the set of mximl ths π in K with π = ϕ. Note tht there is bijective corresondence between the mximl ths in K nd those in D(K) not strting in s δ. A strightforwrd structurl induction shows tht [[ϕ]] K = [[D(ϕ)]] D(K) for ny CTL stte formul ϕ nd, u to the forementioned bijective corresondence, [[ψ]] K = [[D(ψ)]] D(K) for ny CTL th formul ψ. For the second sttement, let π δ be the unique th in D(K) strting in s δ. A strightforwrd structurl induction shows tht [[ϕ]] D(K) {s δ } = [[E(ϕ)]] K for ny CTL δ stte formul ϕ nd, u to the bove bijective corresondence, [[ψ]] D(K) {π δ } = [[E(ψ)]] K for ny CTL δ th formul ψ. In CTL the th modlity is eqully exressive s the th modlity ψuδ of Definition 10, sying of th tht it is finite nd ll its suffixes stisfy ψ. This is becuse π = ψuδ π = Gψ nd π = π = Fδ π = Uδ. In this light, the encoding D of CTL into CTL δ merely dds conjunct δ here nd there. These conjuncts re not otionl; they enble, for instnce, the correct trnsltion of the CTL th formul G by the CTL δ formul δ G(δ ). Theorem 12. Also the logics CTL δ nd CTL re eqully exressive. Proof. This follows becuse D cn be restricted to ming from CTL to CTL δ formul nd E to ming from CTL to CTL δ formul. In rticulr, D( (ϕ U ϕ )) = (D(ϕ) U D(ϕ )) D( G ϕ) = G( δ D(ϕ)) { E( (ϕ U ϕ (E(ϕ) U E(ϕ )) = )) (E(ϕ) U ( G GE(ϕ))) if s δ = ϕ (E(ϕ) U E(ϕ )) otherwise { G nd E( Gϕ) = E(ϕ) if s δ = ϕ G E(ϕ) otherwise. 9 Concluding remrk: liner lemorl logic Liner Temorl Logic [11] (LTL) is the sublogic of CTL tht llows roositionl vribles AP but no other stte formuls to be used s th formuls. Pth formuls re lied to sttes by n imlicit universl quntifiction: s = π iff s = π. Kivol & Vlmri [9] study equivlences on LTSs with the roerty tht under ll lusible trnsformtions of LTSs into Krike structures two equivlent sttes (trnsformed into sttes of Krike structures) stisfy the sme formuls in either LTL X (LTL without the next stte modlity) or LTL (LTL X ugmented with n oertor tht is eqully exressive s our modlity ). They chrcterise the corsest such congruences for selection of stndrd rocess lgebr oertors including the merge s NDFD-equivlence (for LTL X ) nd CFFD-equivlence (for LTL ). There re two striking differences with the brnching time cse: Wheres b, the equivlence chrcterising vlidity in

21 Comuttion Tree Logic with Dedlock Detection 21 CTL, is congruence for the selected rocess lgebr oertors directly, in the cse of LTL the resulting equivlence becomes much finer s result of congruence closure. Furthermore, the ddition of to LTL X leds to distinctions tht re not mde by CFFD-equivlence. Kivol & Vlmri do not consider the question of rising the exressiveness of LTL X to the level where it chrcterises NDFD- or CFFD-equivlence directly. References 1. L. Aceto, W.J. Fokkink & C. Verhoef (2001): Structurl oertionl semntics. In J.A. Bergstr, A. Ponse & S.A. Smolk, editors: Hndbook of Process Algebr, Elsevier, M.C. Browne, E.M. Clrke & O. Grumberg (1988): Chrcterizing finite Krike structures in roositionl temorl logic. Theoreticl Comuter Science 59, R. De Nicol & F.W. Vndrger (1995): Three logics for brnching bisimultion. Journl of the ACM 42(2), E.A. Emerson & E.M. Clrke (1982): Using brnching time temorl logic to synthesize synchroniztion skeletons. Science of Comuter Progrmming 2(3), E.A. Emerson & J.Y. Hlern (1986): Sometimes nd Not Never revisited: on brnching time versus liner time temorl logic. Journl of the ACM 33(1), R.J. vn Glbbeek (1993): The liner time - brnching time sectrum II. In E. Best, editor: Proceedings of CONCUR 93, LNCS 715, Sringer, R.J. vn Glbbeek (2005): A chrcteristion of wek bisimultion congruence. In A. Middeldor, V. vn Oostrom, F. vn Rmsdonk & R. de Vrijer, editors: Processes, Terms nd Cycles: Stes on the Rod to Infinity: Essys Dedicted to Jn Willem Klo on the Occsion of His 60th Birthdy, LNCS 3838, Sringer, R.J. vn Glbbeek & W.P. Weijlnd (1996): Brnching time nd bstrction in bisimultion semntics. Journl of the ACM 43(3), R. Kivol & A. Vlmri (1992): The wekest comositionl semntic equivlence reserving Nexttime-less Liner Temorl Logic. In W.R. Clevelnd, editor: Proceedings of CONCUR 02, LNCS 630, R. Milner (1989): Communiction nd Concurrency. Prentice Hll, Englewood Cliffs. 11. A. Pnueli (1977): The Temorl Logic of Progrms. In: Proceedings of FOCS 77, IEEE Comuter Society Press,

Finite state automata

Finite state automata Finite stte utomt Lecture 2 Model-Checking Finite-Stte Systems (untimed systems) Finite grhs with lels on edges/nodes set of nodes (sttes) set of edges (trnsitions) set of lels (lhet) Finite Automt, CTL,

More information

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

Supplement 4 Permutations, Legendre symbol and quadratic reciprocity

Supplement 4 Permutations, Legendre symbol and quadratic reciprocity Sulement 4 Permuttions, Legendre symbol nd qudrtic recirocity 1. Permuttions. If S is nite set contining n elements then ermuttion of S is one to one ming of S onto S. Usully S is the set f1; ; :::; ng

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

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

USA Mathematical Talent Search Round 1 Solutions Year 25 Academic Year

USA Mathematical Talent Search Round 1 Solutions Year 25 Academic Year 1/1/5. Alex is trying to oen lock whose code is sequence tht is three letters long, with ech of the letters being one of A, B or C, ossibly reeted. The lock hs three buttons, lbeled A, B nd C. When the

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

Infinite Geometric Series

Infinite Geometric Series Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to

More information

Families of Solutions to Bernoulli ODEs

Families of Solutions to Bernoulli ODEs In the fmily of solutions to the differentil eqution y ry dx + = it is shown tht vrition of the initil condition y( 0 = cuses horizontl shift in the solution curve y = f ( x, rther thn the verticl shift

More information

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

Expressiveness modulo Bisimilarity of Regular Expressions with Parallel Composition (Extended Abstract) Expressiveness modulo Bisimilrity of Regulr Expressions with Prllel Composition (Extended Abstrct) Jos C. M. Beten Eindhoven University of Technology, The Netherlnds j.c.m.beten@tue.nl Tim Muller University

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

PRIMES AND QUADRATIC RECIPROCITY

PRIMES AND QUADRATIC RECIPROCITY PRIMES AND QUADRATIC RECIPROCITY ANGELICA WONG Abstrct We discuss number theory with the ultimte gol of understnding udrtic recirocity We begin by discussing Fermt s Little Theorem, the Chinese Reminder

More information

Lecture 3: Equivalence Relations

Lecture 3: Equivalence Relations Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts

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

Bernoulli Numbers Jeff Morton

Bernoulli Numbers Jeff Morton Bernoulli Numbers Jeff Morton. We re interested in the opertor e t k d k t k, which is to sy k tk. Applying this to some function f E to get e t f d k k tk d k f f + d k k tk dk f, we note tht since f

More information

Quadratic reciprocity

Quadratic reciprocity Qudrtic recirocity Frncisc Bozgn Los Angeles Mth Circle Octoer 8, 01 1 Qudrtic Recirocity nd Legendre Symol In the eginning of this lecture, we recll some sic knowledge out modulr rithmetic: Definition

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

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

Quadratic Forms. Quadratic Forms

Quadratic Forms. Quadratic Forms Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte

More information

Quadratic Residues. Chapter Quadratic residues

Quadratic Residues. Chapter Quadratic residues Chter 8 Qudrtic Residues 8. Qudrtic residues Let n>be given ositive integer, nd gcd, n. We sy tht Z n is qudrtic residue mod n if the congruence x mod n is solvble. Otherwise, is clled qudrtic nonresidue

More information

MAA 4212 Improper Integrals

MAA 4212 Improper Integrals Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which

More information

Duke Math Meet

Duke Math Meet Duke Mth Meet 01-14 Power Round Qudrtic Residues nd Prime Numers For integers nd, we write to indicte tht evenly divides, nd to indicte tht does not divide For exmle, 4 nd 4 Let e rime numer An integer

More information

LECTURE 10: JACOBI SYMBOL

LECTURE 10: JACOBI SYMBOL LECTURE 0: JACOBI SYMBOL The Jcobi symbol We wish to generlise the Legendre symbol to ccomodte comosite moduli Definition Let be n odd ositive integer, nd suose tht s, where the i re rime numbers not necessrily

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

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

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

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

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

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

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

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

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

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

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

and that at t = 0 the object is at position 5. Find the position of the object at t = 2. 7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we

More information

arxiv: v2 [cs.ai] 25 Feb 2016

arxiv: v2 [cs.ai] 25 Feb 2016 Bisimultion nd exressivity for conditionl belief, degrees of belief, nd sfe belief Mikkel Birkegrd Andersen, Thoms Bolnder, Hns vn Ditmrsch, nd Mrtin Holm Jensen rxiv:1506.07990v2 [cs.ai] 25 Feb 2016 Februry

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

Chapter 14. Matrix Representations of Linear Transformations

Chapter 14. Matrix Representations of Linear Transformations Chpter 4 Mtrix Representtions of Liner Trnsformtions When considering the Het Stte Evolution, we found tht we could describe this process using multipliction by mtrix. This ws nice becuse computers cn

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Mth 520 Finl Exm Topic Outline Sections 1 3 (Xio/Dums/Liw) Spring 2008 The finl exm will be held on Tuesdy, My 13, 2-5pm in 117 McMilln Wht will be covered The finl exm will cover the mteril from ll of

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

Name of the Student:

Name of the Student: SUBJECT NAME : Discrete Mthemtics SUBJECT CODE : MA 2265 MATERIAL NAME : Formul Mteril MATERIAL CODE : JM08ADM009 Nme of the Student: Brnch: Unit I (Logic nd Proofs) 1) Truth Tble: Conjunction Disjunction

More information

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties; Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

DIRECT CURRENT CIRCUITS

DIRECT CURRENT CIRCUITS DRECT CURRENT CUTS ELECTRC POWER Consider the circuit shown in the Figure where bttery is connected to resistor R. A positive chrge dq will gin potentil energy s it moves from point to point b through

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

QUADRATIC RESIDUES MATH 372. FALL INSTRUCTOR: PROFESSOR AITKEN

QUADRATIC RESIDUES MATH 372. FALL INSTRUCTOR: PROFESSOR AITKEN QUADRATIC RESIDUES MATH 37 FALL 005 INSTRUCTOR: PROFESSOR AITKEN When is n integer sure modulo? When does udrtic eution hve roots modulo? These re the uestions tht will concern us in this hndout 1 The

More information

arxiv:math/ v2 [math.ho] 16 Dec 2003

arxiv:math/ v2 [math.ho] 16 Dec 2003 rxiv:mth/0312293v2 [mth.ho] 16 Dec 2003 Clssicl Lebesgue Integrtion Theorems for the Riemnn Integrl Josh Isrlowitz 244 Ridge Rd. Rutherford, NJ 07070 jbi2@njit.edu Februry 1, 2008 Abstrct In this pper,

More information

5.7 Improper Integrals

5.7 Improper Integrals 458 pplictions of definite integrls 5.7 Improper Integrls In Section 5.4, we computed the work required to lift pylod of mss m from the surfce of moon of mss nd rdius R to height H bove the surfce of the

More information

Review of Riemann Integral

Review of Riemann Integral 1 Review of Riemnn Integrl In this chpter we review the definition of Riemnn integrl of bounded function f : [, b] R, nd point out its limittions so s to be convinced of the necessity of more generl integrl.

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

Natural examples of rings are the ring of integers, a ring of polynomials in one variable, the ring

Natural examples of rings are the ring of integers, a ring of polynomials in one variable, the ring More generlly, we define ring to be non-empty set R hving two binry opertions (we ll think of these s ddition nd multipliction) which is n Abelin group under + (we ll denote the dditive identity by 0),

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

Generalized Fano and non-fano networks

Generalized Fano and non-fano networks Generlized Fno nd non-fno networks Nildri Ds nd Brijesh Kumr Ri Deprtment of Electronics nd Electricl Engineering Indin Institute of Technology Guwhti, Guwhti, Assm, Indi Emil: {d.nildri, bkri}@iitg.ernet.in

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

Completeness of an Euler Diagrammatic System with Constant and Existential Points

Completeness of an Euler Diagrammatic System with Constant and Existential Points omleteness of n uler igrmmtic System with onstnt nd xistentil Points Ryo Tkemur Nihon University, Jn. tkemur.ryo@nihon-u.c.j strct We extend uler digrmmtic system of Minshim, Okd, & Tkemur (2012) y distinguishing

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

Exercises with (Some) Solutions

Exercises with (Some) Solutions Exercises with (Some) Solutions Techer: Luc Tesei Mster of Science in Computer Science - University of Cmerino Contents 1 Strong Bisimultion nd HML 2 2 Wek Bisimultion 31 3 Complete Lttices nd Fix Points

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

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 2013 Outline 1 Riemnn Sums 2 Riemnn Integrls 3 Properties

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

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 203 Outline Riemnn Sums Riemnn Integrls Properties Abstrct

More information

Tries and suffixes trees

Tries and suffixes trees Trie: A dt-structure for set of words Tries nd suffixes trees Alon Efrt Comuter Science Dertment University of Arizon All words over the lhet Σ={,,..z}. In the slides, let sy tht the lhet is only {,,c,d}

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

Math Lecture 23

Math Lecture 23 Mth 8 - Lecture 3 Dyln Zwick Fll 3 In our lst lecture we delt with solutions to the system: x = Ax where A is n n n mtrix with n distinct eigenvlues. As promised, tody we will del with the question of

More information

MAT 215: Analysis in a single variable Course notes, Fall Michael Damron

MAT 215: Analysis in a single variable Course notes, Fall Michael Damron MAT 215: Anlysis in single vrible Course notes, Fll 2012 Michel Dmron Compiled from lectures nd exercises designed with Mrk McConnell following Principles of Mthemticl Anlysis, Rudin Princeton University

More information

Section 6.1 INTRO to LAPLACE TRANSFORMS

Section 6.1 INTRO to LAPLACE TRANSFORMS Section 6. INTRO to LAPLACE TRANSFORMS Key terms: Improper Integrl; diverge, converge A A f(t)dt lim f(t)dt Piecewise Continuous Function; jump discontinuity Function of Exponentil Order Lplce Trnsform

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

Lumpability and Absorbing Markov Chains

Lumpability and Absorbing Markov Chains umbility nd Absorbing rov Chins By Ahmed A.El-Sheih Dertment of Alied Sttistics & Econometrics Institute of Sttisticl Studies & Reserch (I.S.S.R Ciro University Abstrct We consider n bsorbing rov Chin

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

Math 61CM - Solutions to homework 9

Math 61CM - Solutions to homework 9 Mth 61CM - Solutions to homework 9 Cédric De Groote November 30 th, 2018 Problem 1: Recll tht the left limit of function f t point c is defined s follows: lim f(x) = l x c if for ny > 0 there exists δ

More information

Math 4310 Solutions to homework 1 Due 9/1/16

Math 4310 Solutions to homework 1 Due 9/1/16 Mth 4310 Solutions to homework 1 Due 9/1/16 1. Use the Eucliden lgorithm to find the following gretest common divisors. () gcd(252, 180) = 36 (b) gcd(513, 187) = 1 (c) gcd(7684, 4148) = 68 252 = 180 1

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

ad = cb (1) cf = ed (2) adf = cbf (3) cf b = edb (4)

ad = cb (1) cf = ed (2) adf = cbf (3) cf b = edb (4) 10 Most proofs re left s reding exercises. Definition 10.1. Z = Z {0}. Definition 10.2. Let be the binry reltion defined on Z Z by, b c, d iff d = cb. Theorem 10.3. is n equivlence reltion on Z Z. Proof.

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

Bisimulation, Games & Hennessy Milner logic

Bisimulation, Games & Hennessy Milner logic Bisimultion, Gmes & Hennessy Milner logi Leture 1 of Modelli Mtemtii dei Proessi Conorrenti Pweł Soboiński Univeristy of Southmpton, UK Bisimultion, Gmes & Hennessy Milner logi p.1/32 Clssil lnguge theory

More information

Linearly Similar Polynomials

Linearly Similar Polynomials Linerly Similr Polynomils rthur Holshouser 3600 Bullrd St. Chrlotte, NC, US Hrold Reiter Deprtment of Mthemticl Sciences University of North Crolin Chrlotte, Chrlotte, NC 28223, US hbreiter@uncc.edu stndrd

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

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Riemann is the Mann! (But Lebesgue may besgue to differ.) Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >

More information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

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

DISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS

DISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS JC Due in clss Wednesdy September 17. You my collborte but must write up your solutions by yourself. Lte homework will not be ccepted. Homework must either

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

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

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac REVIEW OF ALGEBRA Here we review the bsic rules nd procedures of lgebr tht you need to know in order to be successful in clculus. ARITHMETIC OPERATIONS The rel numbers hve the following properties: b b

More information

Lecture 13 - Linking E, ϕ, and ρ

Lecture 13 - Linking E, ϕ, and ρ Lecture 13 - Linking E, ϕ, nd ρ A Puzzle... Inner-Surfce Chrge Density A positive point chrge q is locted off-center inside neutrl conducting sphericl shell. We know from Guss s lw tht the totl chrge on

More information

ODE: Existence and Uniqueness of a Solution

ODE: Existence and Uniqueness of a Solution Mth 22 Fll 213 Jerry Kzdn ODE: Existence nd Uniqueness of Solution The Fundmentl Theorem of Clculus tells us how to solve the ordinry differentil eqution (ODE) du = f(t) dt with initil condition u() =

More information

arxiv: v9 [math.nt] 8 Jun 2010

arxiv: v9 [math.nt] 8 Jun 2010 Int. J. Number Theory, in ress. ON SOME NEW CONGRUENCES FOR BINOMIAL COEFFICIENTS rxiv:0709.665v9 [mth.nt] 8 Jun 200 Zhi-Wei Sun Roberto Turso 2 Dertment of Mthemtics, Nning University Nning 2009, Peole

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More information

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 9. Modules over PID This week we re proving the fundmentl theorem for finitely generted modules over PID, nmely tht they re ll direct sums of cyclic modules.

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

1 1D heat and wave equations on a finite interval

1 1D heat and wave equations on a finite interval 1 1D het nd wve equtions on finite intervl In this section we consider generl method of seprtion of vribles nd its pplictions to solving het eqution nd wve eqution on finite intervl ( 1, 2. Since by trnsltion

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

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

1.9 C 2 inner variations

1.9 C 2 inner variations 46 CHAPTER 1. INDIRECT METHODS 1.9 C 2 inner vritions So fr, we hve restricted ttention to liner vritions. These re vritions of the form vx; ǫ = ux + ǫφx where φ is in some liner perturbtion clss P, for

More information

II. Integration and Cauchy s Theorem

II. Integration and Cauchy s Theorem MTH6111 Complex Anlysis 2009-10 Lecture Notes c Shun Bullett QMUL 2009 II. Integrtion nd Cuchy s Theorem 1. Pths nd integrtion Wrning Different uthors hve different definitions for terms like pth nd curve.

More information

Notes on specifying systems in EST

Notes on specifying systems in EST Robert Meolic, Ttjn Kpus: Notes on specifying systems in EST 1 Notes on specifying systems in EST Robert Meolic, Ttjn Kpus Fculty of EE & CS University of Mribor Robert Meolic, Ttjn Kpus: Notes on specifying

More information

Conjunction on processes: Full abstraction via ready-tree semantics

Conjunction on processes: Full abstraction via ready-tree semantics Theoreticl Computer Science 373 (2007) 19 40 www.elsevier.com/locte/tcs Conjunction on processes: Full bstrction vi redy-tree semntics Gerld Lüttgen, Wlter Vogler b, Deprtment of Computer Science, University

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

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

More information

Linear Algebra 1A - solutions of ex.4

Linear Algebra 1A - solutions of ex.4 Liner Algebr A - solutions of ex.4 For ech of the following, nd the inverse mtrix (mtritz hofkhit if it exists - ( 6 6 A, B (, C 3, D, 4 4 ( E i, F (inverse over C for F. i Also, pick n invertible mtrix

More information