Calculating τ-confluence Compositionally

Size: px
Start display at page:

Download "Calculating τ-confluence Compositionally"

Transcription

1 INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE Clculting -Confluence Compositionlly Gordon Pce Frédéric Lng Rdu Mteescu N 4918 Septembre 2003 THÈME 1 ISSN ISRN INRIA/RR FR+ENG pport de recherche

2

3 Clculting -Confluence Compositionlly Gordon Pce, Frédéric Lng, Rdu Mteescu Thème 1 Réseux et systèmes Projet VASY Rpport de recherche n 4918 Septembre pges Abstrct: -confluence is reduction technique used in exolicit stte model-checking of lbeled trnsition systems to void the stte explosion problem. In this report, we propose new on-the-fly lgorithm to clculte prtil -confluence, nd propose new techniques to do so on lrge systems in compositionl mnner. Using informtion inherent in the wy lrge system is composed of smller systems, we show how we cn deduce prtil -confluence in computtionlly chep mnner. Finlly, these techniques re pplied to number of cse studies, including the rel/rel tomic multicst protocol. Key-words: brnching bisimultion, compositionlity, composition expression, concurrency, explicit stte verifiction, lbeled trnsition system, model checking, network of communicting systems, prtil order reduction technique, -confluence This work hs been prtilly supported by the Europen Reserch Consortium in Informtics nd Mthemtics (ERCIM). A short version of this report is lso vilble s Clculting -Confluence Compositionlly, in W. A. Hunt, Jr. nd F. Somenzi, editors, Proceedings of the 15th Computer-Aided Verifiction conference CAV 2003 (Boulder, Colordo), July 8-12, gordon.pce@um.edu.mt Frederic.Lng@inri.fr Rdu.Mteescu@inri.fr Unité de recherche INRIA Rhône-Alpes 655, venue de l Europe, Montbonnot-St-Mrtin (Frnce) Téléphone : Télécopie

4 Clcul compositionnel de l -confluence Résumé : L -confluence est une technique de réduction utilisée en vérifiction énumértive sur les systèmes de trnsitions étiquetées pour éviter le problème d explosion d étts. Dns ce rpport, nous proposons un nouvel lgorithme à l volée pour clculer l -confluence, et nous proposons de nouvelles techniques pour le fire sur de grnds systèmes de mnière compositionnelle. A l ide d informtions sur l fçon dont un grnd système est composé de systèmes plus petits, nous montrons comment il est possible de déduire l -confluence efficcement. Finlement, ces techniques sont ppliquées à plusieurs études de cs, en prticulier le protocole rel/rel de diffusion tomique. Mots-clés : bisimultion de brnchement, compositionnlité, concurrence, expression de composition, model checking, réseu d utomtes communicnts, système de trnsitions étiquetées, -confluence, technique de réduction bsée sur ordres prtiels, vérifiction énumértive

5 Clculting -Confluence Compositionlly 3 1 Introduction An importnt re of reserch in model checking is the genertion of restricted models using intuition nd nlysis of the system in question to produce smller stte spces smll enough to enumerte nd mnipulte. In prctice, different techniques hve been developed. Of interest to this report, we note: on-the-fly model genertion, where only the interesting prt of the model is generted; prtil-order reduction [17] nd the relted -confluence [12, 22] reduction techniques which exploit independence of certin trnsitions in the system to discrd unnecessry prts; nd compositionl techniques [10, 9] where model is decomposed into smller prts, prtilly generted using knowledge bout future interfce components to void intermedite explosion. In this report, we re minly interested in deriving techniques which use structurl informtion of the system to perform -confluence reduction. Extrcting generl -confluence of flttened system cn be costly nd imprcticl. However, the user usully lso provides the system in the form of symbolic description, which we ttempt to exploit t low cost to clculte -confluence. The informtion we use is the connection pttern of the network of communicting trnsition systems composition expressions. At the leves, we hve trnsition system components, usully vrious mgnitudes of size smller thn the whole system (especilly if techniques such s projection [14] re first pplied). Using the structure of the network, we cn immeditely deduce certin independence between trnsitions to be used for model reduction. We propose new lgorithm to clculte prtil -confluence on-the-fly similr in spirit to [3], but optimized in prticulr for flt trnsition systems. We then prove correct number of lws which llow us to deduce -confluence in composition expression without the need of expensive clcultions. We implemented severl tools bsed on this work in Cdp [7]. We show their performnce when pplied on number of cse studies, including the rel/rel tomic multicst protocol. Pln of the report. Section 2 presents relted work deling with -confluence detection nd more generlly the use of prtil-order techniques in process lgebr. Section 3 defines the bsic notions used throughout the report, in prticulr -confluence nd the -prioritiztion technique. In Section 4, the lgorithm to clculte -confluence on-thefly using boolen eqution systems is presented. Composition expressions re defined in Section 5, nd Section 6 presents our method to deduce -confluence in such expressions. Implementtions nd experimentl results re presented in Section 7. We conclude in Section 8. We then provide proofs of the min results in Appendix A. 2 Relted Work An extensive nd thorough study of -confluence in process lgebr nd Lts verifiction cn be found in [12]. In [22], the results re developed further, extending wek confluence conditions for divergent trnsition systems. RR n 4918

6 4 G. Pce, F. Lng, R. Mteescu The ides we develop in this report hevily borrow from [11], in which globl (not on-the-fly) lgorithm is given for clculting mximl -confluence sets. The lgorithmic complexity is of the order O(m fnout 3 ), where m is the number of trnsitions in the Lts, nd fnout is the mximum number of trnsitions exiting from stte. The pper lso uses -prioritiztion nd -compression (where chins of trnsitions re collpsed), used to reduce n Lts, once -confluence set hs been clculted. We use the sme notion of -confluence s in this pper minly since discovering -confluence sets under this definition is well-trctble. Our lterntive lgorithm to evlute mximl -confluence set hs complexity of the order O(m fnout fnout ) nd works on-the-fly. Furthermore, we use deduction to prtilly identify -confluence in lrge systems by nlyzing their components. [2, 3] build upon the results of [22] nd re closely relted to our work, except tht they concentrte on wek confluence. The lgorithms work eqully well with the stronger confluence condition we use. To clculte -confluent set, they use the symbolic description of the Lts (s gurded ction/event systems) nd feed conditions to n utomted theorem prover to prove the independence of certin gurds. In certin sense, our lgorithm to clculte the mximl -confluent set cn be seen s n extreme cse of this pproch the Lts expnded to the ctul description of the Lts trnsitions, nd given the trivil nture of the resulting gurds nd trnsitions, we replce the utomted theorem prover by Bes solver. Our symbolic description, bsed on composition expressions, differs from theirs, nd llows for certin independence to be concluded esily, but does not llow symbolic reduction s is possible in their cse. -confluence is closely connected to prtil-order reduction techniques [17]. The fct tht trnsitions re prtilly invisible under brnching [21] nd other wek bisimultions, mens tht independence of trnsitions preserving bisimultion is possible, nd cn be useful in prctice. In [20] is n nlysis of prtil-order methods pplied to process lgebr, tht includes set of conditions sufficient to gurntee brnching bisimultion equivlence fter reduction. As remrked in [3], these conditions re stronger thn wek -confluence. The conditions re not comprble to the notion of prtil confluence we use, since we llow for confluence, but closing up to one step hed. [20] llows for multiple invisible trnsitions, but not for confluence. The conditions, however, closely relte to the conditions used in this nd other -confluence ppers. Severl prtil-order reduction techniques pplied to compositions of Ltss hve been proposed. Of interest re the -dimond elimintion technique presented in [19] (implemented for Csp in the Fdr 2 tool) nd technique bsed on the detection of so-clled -inert trnsitions presented in [18] (implemented for Ccs in the Concurrency Fctory). Both consist in identifying -trnsitions tht do not need be interleved with concurrent trnsitions, since the obtined behviour would be equivlent (for some reltion) to the one in which the -trnsition is tken first. The difference relies on the properties being preserved under bisimultion in the cse of behviour equivlence preserved under reduction: wek bisimultion in [18], nd filure/divergence in [19], both of which do not preserve brnching properties of the system. Additionlly, our pproch works on-the-fly, in combintion with ny verifiction tool of Cdp, nd for ny lnguge with front-end for Cdp. INRIA

7 Clculting -Confluence Compositionlly 5 3 Bsic Definitions Definition 1 (Lbeled Trnsition System) A Lbeled Trnsition System (Lts) is qudruple Q, Act,, q 0 where Q is the set of sttes of the system, Act is the set of possible ctions the system my tke (including specil invisible ction ), Q Act Q is the set of trnsitions nd q 0 Q is the initil stte of the system. Using stndrd conventions, we will write q q to sy tht (q,, q ), nd for set of ctions G Act, G is the trnsition reltion restricted to ctions in G. ctions(q) is the set of ctions possible from stte q. If we my wnt to ignore invisible trnsitions, q q, mens tht either q q, or q = q nd = (note tht this cse does not necessrily imply tht q q since q q is true for ny q). is the reflexive trnsitive closure of {}. Finlly, we sy tht n Lts is divergent if there exists n infinite sequence of sttes q i such tht for ll i, q i qi+1. Definition 2 (Brnching Bisimultion) Given two Ltss S 1 nd S 2 defined by S i = Q i, Act, i, q 0,i, reltion between the sttes of the two Ltss Q 1 Q 2 is sid to be brnching bisimultion if for ny q 1 q 2, the following two properties re stisfied: 1. for ny q 1 q 1, there exist q 2, q 2 with q 2 q 2 q 2 nd q 1 q 2, q 1 q for ny q 2 q 2, there exist q 1, q 1 with q 1 q 1 q 1 nd q 1 q 2, q 1 q 2. The mximl brnching bisimultion is well-defined equivlence reltion ( b ). We sy tht two Ltss re brnching bisimilr (S 1 b S 2 ) if their initil sttes re brnching bisimilr q 0,1 b q 0, Confluence -confluence corresponds to the intuition tht certin silent trnsitions do not chnge the set of trnsitions tht cn be undertken now or in the future. If we cn clculte set of silent trnsitions with this property, we cn then reduce the Lts to obtin smller system. Different levels of -confluence hve been defined in the literture. Some encompss more trnsitions (nd hence llow more powerful reductions), but re more expensive to clculte n pproprite confluent set. Others re more restrictive, but llow chep - confluence set deduction. In this report we will concentrte on so-clled strong confluence which we will refer to in the rest of the report simply s confluence. The interested reder is referred to [12, 22] for whole hierrchy of -confluence notions. Definition 3 (-Confluence) Given n Lts S = Q, Act,, q 0, nd T {}, we sy tht T is -confluent in S if for every q 1 q2 T nd q 1 q3, there exists stte q 4 such tht q 2 q4 nd q 3 q4 T. RR n 4918

8 6 G. Pce, F. Lng, R. Mteescu The intuition is tht every other outgoing trnsition of q 1 cn be emulted fter the -confluent trnsition. Grphiclly, the -confluence cn be seen in the following figure. Norml line trnsitions re given (universlly quntified), wheres dshed trnsitions indicte tht their existence must be proved: q 1 q 2 q 3 q 4 Since the brred trnsitions cn be confusing, the different wys in which the hlfdimond with distinct trnsitions cn be completed is split in different cses below: q 1 q 1 q 1 q 2 q 2 q 3 q 4 T q 3 T T q 2 q 3 Proposition 1 If q q is -confluent trnsition in S, then q b q. Proposition 2 The union of two -confluent sets of n Lts S is itself -confluent set of S. We cll the union of ll -confluent sets the mximl -confluent set, nd write it s T(S). The proofs of these propositions cn be found in [11] prioritiztion -prioritiztion is technique to replce n Lts with smller one by giving priority to -confluent trnsitions over other trnsitions. Definition 4 (-Prioritiztion) Given two Ltss S 1 nd S 2 (S i = Q i, Act, i, q 0,i ), we sy tht S 2 is -prioritiztion of S 1 with respect to -confluent set T, if 2 1 nd for every q 1 q, either q 2 q or for some q, q 2 q T. The following figures show two exmples of -prioritiztion (with unrechble sttes removed): q 0 q 0 b Proposition 3 If S 1 is -prioritiztion of non-divergent Lts S 2 with respect to T, then S 1 b S 2. b q0 b q 0 INRIA

9 Clculting -Confluence Compositionlly 7 The proof cn be found in [11]. -prioritiztion thus llows reduction of non-divergent systems with respect to -confluent set, mintining equivlence modulo brnching bisimultion. The min problem with -prioritiztion is tht it is restricted to non-divergent systems. However, one cn ugment the prioritiztion to clculte nd eliminte on-the-fly cycles. Alterntively, other reduction techniques [2, 16] hve been defined in the literture (see Section 2) nd cn be used. 4 Clculting -Confluence using Boolen Equtions In this section, we present n on-the-fly lgorithm to clculte the mximl -confluent set. Definitionl boolen eqution systems without negtion re well-known nd studied field. The following is short summry of definitions nd results to set the picture for the trnsltion lgorithm we propose for on-the-fly -confluence clcultion. 4.1 Boolen Eqution Systems Definition 5 (Boolen Eqution System) A boolen eqution system (Bes) is set of vribles V split into two disjoint subprts V d nd V c, with their definition δ V 2 V. Vribles in V d re defined in terms of disjunction over the definition set, while those in V c re defined s conjunction. Definition 6 (BES Interprettion) An interprettion I of Bes is subset of vribles V of the eqution system, I V. Vrible v is sid to be stisfied in I if v I. An interprettion is sid to be vlid if the definition function holds: ( v V d ) δ(v) I ( v V c ) δ(v) I In words, t lest one vrible in the definition of every disjunctive vrible nd ll vribles in the definition of every conjunctive vrible must be stisfied. Proposition 4 The union of ll vlid interprettions of Bes Eq is itself vlid interprettion. This is clled the gretest fixed point solution: (νv. Eq). Stndrd lgorithms exist to evlute the gretest fixed point of boolen eqution system. In prticulr, we re minly interested in n on-the-fly lgorithm locl one resolving only the necessry vribles we my require. Such lgorithms cn be found in [15, 1] nd work in both bredth-first nd depth-first fshion. This problem cn be solved in time proportionl to the number of vribles nd the size of the definition sets. 4.2 Trnslting -Confluence of Ltss into Boolen Equtions It is rther strightforwrd to trnslte the definition of -confluence in Section 3.1 into Bes whose vlidity implies the confluence of individul trnsitions. RR n 4918

10 8 G. Pce, F. Lng, R. Mteescu Definition 7 Given n Lts S, we introduce conjunctive vrible for every trnsition, nd disjunctive vrible for every hlf-terminted dimond in the -confluence digrm: d q 2,q 3 V c df = {cq1,q 2 ( q 1, q 2 Q) q 1 q2 } V d df = {d q2,q 3 ( q 1, q 2, q 3 Q) q 1 q2, q 1 q3 } The intuitive interprettion we will use is tht: 1. Every confluent trnsition hs to be ble to close ll hlf-dimonds (conjunction). 2. Every hlf-dimond hs to be closed by some other confluent trnsition (disjunction). The boolen vribles c q1,q 2 will be stisfible if nd only if q 1 q2 is confluent, while is stisfible if nd only if the corresponding hlf-dimond cn be stisfctorily closed. Conjunctive vribles: c q1,q 2 should be stisfible if nd only if ll extended hlf-dimonds which re not trivilly closed (vi direct trnsition from q 2 to q 3 ) cn be closed: δ(c q1,q 2 ) df = {d q 2,q 3 q 1 q2, q 1 q3, q 2 q 3 } Disjunctive vribles: d q 2,q 3 is stisfible if nd only if there is some trnsition from q 3 to some q 4 which closes the dimond nd is -confluent: δ(d q 2,q 3 ) δ(d q 2,q 3 ) df = {c q3,q 4 q 2 q4, q 3 q4 } df = {c q3,q 4 q 2 q4, q 3 q4 } {c q3,q 2 q 3 q2 } Note tht in the cse of =, the dimond my be closed s tringle (see the figures depicting how -confluence digrms cn be closed in Section 3.1.) Proposition 5 (Soundness nd Completeness of the Trnsltion) Given vlid interprettion I of trnslted Lts S, {q 1 q2 c q1,q 2 I} is -confluent set (soundness), nd for ny -confluent set T, there is vlid interprettion I such tht I V c = {c q1,q 2 q 1 q2 T } (completeness). Proof: See Appendix A. Theorem 1 then follows from this proposition: Theorem 1 Clculting the gretest fixed point of the Bes obtined by trnslting n Lts gives the mximl -confluent set. Proof: See Appendix A. INRIA

11 Clculting -Confluence Compositionlly Complexity Consider vribles V c. We hve m (the number of trnsitions) such vribles. Furthermore, the definition set of ech vrible is bounded bove by fnout fnout (fnout is the mximum number of successors of stte in the Lts, fnout is the mximum number of -successors). Now consider the disjunctive vribles V d. We hve m fnout such vribles (for ech trnsition, we hve n entry for ech other trnsition which cn be tken from the source node). The definition sets of these vribles never exceeds fnout entries. Recll tht Bes cn be solved in time proportionl to the number of vribles plus the size of the definition sets. The complexity of resolving -confluence using our lgorithm is thus O(m fnout fnout ). This compres fvorbly with the lgorithm given in [11] which hs complexity O(m fnout 3 ). However, this is pessimistic view of the complexity. Due to the regulr nture of the equtions (conjunctions of disjunctions), nd the fct tht we lso know tht the disjunctive vribles re never reused ( disjunctive vrible is revisited only through conjunctive one), we cn hone the lgorithm to work more efficiently (for exmple, by not cching disjunctive vribles). 5 Composition Expressions We introduce in this section the notion of composition expression, used in the reminder of the pper. The composition expressions considered here re built upon Lotos [13] prllel composition nd hiding opertors. Definition 8 (Composition Expression) Composition expressions, noted E, E, E 0,..., re defined s follows: E ::= Lts hide G in E 0 E 1 [G] E 2 The bsic building blocks re Ltss, together with the hiding opertor (renmes ny lbel in the ction set G to ) nd synchronous composition (ctions in G re synchronized, the rest must hppen independently). One cn dd other opertors to this fmily, but these usully suffice for decomposed view of system. For the ske of brevity, in contexts where we spek of expressions, unless otherwise stted, the Lts generted by expression E will be Q, Act,, q 0, nd tht of expression E i will be Q i, Act i, i, q 0,i. A composition expression describes the wy fmily of Ltss communicte together, but cn be seen itself s n Lts. Definition 9 (Composition Expression Semntics) The Lts resulting of the composition expression (hide G in E 0 ) is Q, Act,, q 0 where is the smllest reltion generted by the following structured opertionl semntics rules: RR n 4918

12 10 G. Pce, F. Lng, R. Mteescu q 1 0 q 1, / G q 1 0 q 1, G q 1 q 1 q 1 q 1 The Lts resulting of (E 1 [G] E 2 ) is Q 1 Q 2, Act 1 Act 2,, (q 0,1, q 0,2 ) where is the smllest reltion generted by the following structured opertionl semntics rules: q 1 1 q 1, / G (q 1, q 2 ) (q 1, q 2 ) q 2 2 q 2, / G (q 1, q 2 ) (q 1, q 2) q 1 1 q 1, q 2 2 q 2, G (q 1, q 2 ) (q 1, q 2) Definition 10 (Subterm) The subterm reltion over composition expressions is defined to be the reflexive, trnsitive closure of the smllest reltion 1 stisfying: E 1 hide G in E, E 1 E [G] E, E 1 E [G] E We sy tht trnsition q q of E is immeditely generted from trnsition q q 1 of E 1 (E 1 1 E) if the derivtion of the former trnsition using the opertionl semntic rules requires the use of the ltter. Thus, for exmple, q 1 q2 in (hide in E) is immeditely generted from q 1 q2 in E. We re minly interested in the trnsitive closure of this reltion: E2 E (where E 1 E 2 ), which reltes trnsitions in 2 (of E 2 ) with the trnsitions in 1 (of E 1 ) contributing to their genertion. For this definition to mke sense, we will mke the simplifying ssumption tht n expression will not contin common subexpressions (ll the lef Ltss re different). This is done to simplify the presenttion but cn be esily remedied either by tgging different lef nodes (different tg for every lef) or by resoning in terms of expression contexts. = E1 E 3 The decomposition lw sttes tht if E 1 E 2 E 3 then E2 E 3 E1 E 2 the reltion composition of r nd s). Similrly, we cn tlk bout trnsition generting nother, written t E1 we sy tht t is genertor of t. E1 E 2 is simply the inverse of E1 E 2. We define reltion ppliction s usul: R(X) df = {y x X. x R y}. (where r s is E 2 t. In this cse, Definition 11 (Hidden Above, Synchronized Above, Eventully ) Given composition expression E, the ctions hidden bove, nd synchronized bove subexpression E 1 re defined s: df Hidden E (E 1 ) = {G hide G in E 2 E, E 1 E 2 } Synchronized E (E 1 ) df = {G E 2 [G] E 3 E, E 1 E 2 E 1 E 3 } Given E 1 E, we define Tu E (E 1 ) to be the set of lbels such tht trnsitions in E 1 whose lbel ppers in Tu E (E 1 ) re gurnteed to be trnsformed into trnsitions in E: Tu E (E 1 ) df = Hidden E (E 1 ) \ Synchronized E (E 1 ) Proposition 6 Given E 1 E, every trnsition lbeled by Tu E (E 1 ) genertes t lest one trnsition, nd nothing but trnsitions: INRIA

13 Clculting -Confluence Compositionlly 11 ( t TuE(E1) ) E E 1 (t) E E 1 (t) {} Proof: The proof follows from structurl induction with the inductive hypothesis tht in expression E 2 (E 1 E 2 E), non-empty set of {} Tu E (E 1 ) trnsitions genertes non-empty set of {} Tu E (E 2 ) trnsitions. Furthermore, since by definition, Tu E (E) =, the conclusion follows. We will write the expression obtined by replcing in E the occurrence of sub-expression E 2 by E 1 s E[E 1 /E 2 ]. Proposition 7 Brnching bisimilrity is preserved in composition expressions: If E 1 E nd E 1 b E 2 then E b E[E 2 /E 1 ]. Proposition 8 Actions in Tu E (E 1 ) cn be hidden immeditely in E 1. Given E 1 E nd G Tu E (E 1 ): E[hide G in E 1 /E 1 ] b E. Consider trnsition in lef Lts, which is not confluent. Just by looking t the lef in question, we cn sometimes deduce tht the trnsition cn never become confluent. Trnsitions bout which we cnnot gurntee this will be clled potentil -confluent trnsitions. We identify set of trnsitions which we will lter prove tht ll trnsitions generted higher up in the expression tree will be generted by trnsitions in this set. The intuition is the following: trnsition is potentilly confluent if (i) either it is lredy invisible, or its ction will be hidden higher up in the expression tree, (ii) hidden, it stisfies the -confluence conditions on ll other outgoing trnsitions except (iii) it my not stisfy the -confluence conditions with respect to trnsitions which my lter dispper (synchronized bove). Definition 12 Given E 1 E, P 1 G 1 (where G = Hidden E (E 1 ) {}) is sid to be po- b tentil -confluence set if, for ll q 1 1 q 2 P 1 nd q 1 1 q 3 with b / Synchronized E (E 1 ),?? b? then either q 3 1 q 2 P 1 or there exists q 4 such tht q 3 1 q 4 P 1 nd q 2 1 q 4. q? q is defined s q q ( G G. q q ). Proposition 9 The union of ll potentil -confluence sets of E 1 with respect to E (where E 1 E) is itself potentil -confluence set. We cll this the mximl potentil - confluence set nd write it s P E (E 1 ). Proposition 10 If T is -confluent set of E 1 (where E 1 -confluence set of E 1 with respect to E. E), T is lso potentil Proof: Consider q 1 q2 T. Since it is -confluent trnsition, for ny q 1 q3, there exists q 4 such tht q 2 q4 nd q 3 q4 T. Consider the different cses for nd : (i) RR n 4918

14 12 G. Pce, F. Lng, R. Mteescu =, q 2 = q 4, q 3 = q 4 (ii) =, q 2 = q 4, q 3 q2 T (iii) q 2 q4, q 3 = q 4 (iv) q 2 q4, q 3 q4 T. These stisfy the property required of potentil -confluence. T is thus potentil -confluence set. Proposition 11 If E 1 E, then T(E 1 ) P E (E 1 ). Proof: The proof follows immeditely from Propositions 2, 9 nd Clculting -Confluence in Composition Expressions We now give number of results to deduce -confluence in composition expressions without pplying the lgorithm on the top-level Lts, which cn be very lrge. 6.1 Discovering -confluence in composition expressions The bsic result we will pply to reduce composition expressions, is tht -confluent trnsitions cn only generte -confluent trnsitions. This cn be very useful, especilly if the lef Ltss re reduced using -prioritiztion, where in the resultnt Lts, the -confluent trnsitions become the only trnsitions leving stte, mking them trivilly recognizble s -confluent ones. Theorem 2 If T 1 is -confluent trnsition set of E 1 (E 1 E) then E E 1 (T 1 ), the set of trnsitions of E generted from T 1, is -confluent trnsition set of E. Proof: See Appendix A. Theorem 2 together with the reduction techniques given in Section 3 provides us with two pproches to reduce n Lts in compositionl mnner. One wy is to clculte nd lbel confluent trnsitions in the leves, nd use this informtion to deduce confluence set in the top level Lts nd perform reduction on-the-fly s the top level Lts is generted (using either -prioritiztion or ny other technique). Another pproch is to reduce the leves using mximl -prioritiztion (leving only one confluent outgoing trnsition, when one is vilble), thus mking sure tht s the top level Lts is generted, confluent trnsitions in the leves re esily recognizble (unique trnsitions leving stte) nd use this informtion to generte the reduced Lts. The ltter hs the dvntge tht confluence informtion needs not be stored. INRIA

15 Clculting -Confluence Compositionlly Doing more thn trnsitions One wy in which new -confluence cn mnifest itself is vi new trnsitions ppering from the hide opertor. In generl, we cnnot just tret trnsitions which re eventully hidden s invisible trnsitions, becuse if they re synchronized before being hidden, they my dispper due to the other brnch not complementing the required trnsition. In the cse of hidden trnsitions which re not synchronized, we cn either push the hide opertor into the expression to generte trnsitions s erly s possible, or tret them s invisible trnsitions (despite the fct tht they re not trnsitions). The second solution is preferble, since it does not destroy the structure of the expression s given by the user, nd voids dding new expression nodes, resulting in slower nlysis. The following result justifies their tretment nlogous to trnsitions. Theorem 3 Given E 1 E nd T 1 TuE(E1) 1 which stisfies the confluence conditions if replced by trnsitions, nd E 2, -prioritiztion of E 1 with respect to T 1, then E[E 2 /E 1 ] b E. Proof: See Appendix A. 6.3 Some trnsitions re not worth the bother Finlly, we cn not only identify trnsitions which re, nd will remin confluent, but lso ones which cn under no circumstnces become confluent. Since within composition expressions we cn only prtilly identify -confluent trnsitions, we my wnt to pply the -confluence lgorithm t the top-most level once gin. If certin trnsitions cn be identified s certinly not being -confluent during the expression tree trversl, we cn pply the -confluence detection lgorithm on smller set of trnsitions. Theorem 4 below llows us to do precisely this by using the notion of potentil -confluence. Lemm 1 If P 2 is potentil -confluent set of E 2 with respect to E (E 1 E 2 E) then E2 E 1 (P 2 ) is potentil -confluent set of E 1 with respect to E. Proof: See Appendix A. Lemm 2 If E 1 E 2 E, then P E (E 2 ) E E 1 (P E (E 1 )) Proof: See Appendix A. Theorem 4 Some trnsitions need never be checked for confluence. If E 1 E: T(E) ( 1 \ E E 1 (P E (E 1 ))) = RR n 4918

16 14 G. Pce, F. Lng, R. Mteescu Proof: From Lemm 2 nd Proposition 10 we cn now conclude tht: T(E) E E 1 (P E (E 1 )) from which the theorem directly follows. Thus, by identifying nd mrking the complement of the mximl potentil -confluent set in the lef nodes, we cn mrk trnsitions which they generte t higher levels in the expression tree. Using this theorem, we re gurnteed tht these trnsitions re not confluent, nd we cn thus reduce the computtion required to identify -confluent set of the Lts generted by the whole composition expression. 7 Tools nd Applictions We hve implemented the techniques described within the Cdp toolkit [7] 1 in the Open/Cæsr environment [5]. A collection of front-ends enble the compiltion of source lnguges into C code, which includes function to ccess the Lts described by the system, explored on-the-fly by the verifiction bck-ends. Exp.Open is front-end for composition expressions, while Cæsr.Open is front-end for the Lotos lnguge nd Genertor is bck-end tht explicitly genertes the rechble stte spce of system. A vrint of Genertor, nmed -Confluence, detects nd prioritizes -confluent trnsitions on-the-fly, using Boolen Eqution Systems. Exp.Open hs been extended to enble -confluence detection (brnching option), by tking n ccount of the composition expression s stted in Theorems 2 nd 3. More precisely, in globl Lts of composition expression E, Exp.Open prioritizes the trnsitions tht were detected s -confluent in the components of E. Additionlly, some loclly visible trnsitions re lso prioritized, knowing tht they will led to -confluent trnsitions in the globl Lts of E. Exp.Open flttens the composition expression into tuple of Ltss nd set of so-clled synchroniztion vectors. If n is the size of the Lts tuple, ech synchroniztion vector is tuple of size n + 1, whose elements re either lbels or specil null vlue. The first n elements represent lbels of trnsitions tht must be fireble from the corresponding Lts current stte components (none if element is null), wheres the lst element (which must not be null) is the lbel of the resulting trnsition in the produced Lts. Working globlly on the expression lso llows us to identify certin loclly confluent trnsitions which do not fll under the frmework proposed in this report. Exp.Open lso clcultes trnsitive closures of -confluent trnsitions (to void entering circuits of -confluent trnsitions), nd hence compresses successive -confluent trnsitions into single, prioritized one. These tools hve been used to generte the stte spce of the rel/rel protocol previously studied in [4, 14]. The rel/rel protocol is n tomic multicst protocol between trnsmitter nd severl receivers. This protocol is relible in the sense tht it llows rbitrry filures of the sttions involved in the communiction. The protocol gurntees the following 1 INRIA

17 Clculting -Confluence Compositionlly 15 two properties: (1) when messge M is sent by the trnsmitter, either every functioning sttion correctly receives M, or M is not received by ny of the sttions, nd (2) messges re received in the sme order s they re sent. Two underlying ssumptions re needed to gurntee correctness: tht crshed sttions stop sending nd receiving messges, nd tht functioning sttions cn lwys communicte with ech other. The overll compositionl structure of the system with two receivers is given by the following composition expression: hide R T1, R T2, R1, R2, DEPOSE1, DEPOSE2 in CRASH TRANSMITTER {R T1, R T2} ( (RECEIVER THREAD1 {R T1, R1, R2, GET, CRASH, DEPOSE1} FAIL RECEIVER1) {R1, R2} (RECEIVER THREAD2 {R T2, R1, R2, GET, CRASH, DEPOSE2} FAIL RECEIVER2) ) The composition of Ltss RECEIVER THREADn nd FAIL RECEIVERn (n = 1, 2) defines the behviour of receiver n, including the possibility of crsh. The Lts CRASH TRANSMITTER describes the behviour of the trnsmitter. These Ltss re generted from Lotos description of the system, detiled in [4]. In our experiments, performed using Svl scripts [6], we hve compred two stte-spce genertion pproches for the rel/rel protocol: Norml genertion: the lef Ltss nd the composition expression re generted normlly, without optimiztion (using respectively the Cæsr.Open/Genertor nd Exp.Open/Genertor tools). -prioritized genertion: the lef Ltss re generted using the Cæsr.Open/- Confluence tools nd the composition expression is generted using Exp.Open with brnching option, together with Genertor. Experiment results re displyed in Tbles 1 nd 2. From these results, -prioritiztion techniques on composition expressions seem very promising. Vrious resons contribute to the success of -prioritiztion. Although both FAIL RECEIVERs re purely sequentil, RECEIVER THREADs nd CRASH TRANSMITTER use prllel composition of processes performing silent trnsitions. This genertes mny -confluent trnsitions, which re detected by the -confluence tool. Also, s consequence of successful -prioritiztion in three of the five leves of the composition expression, Exp.Open voids the cretion of new -confluent dimonds. Additionlly, lot of trnsitions present in leves re hidden t the top-level of the composition expression, some of which re confluent. Note tht pplying -prioritiztion t the top-level gives no further reduction showing tht we hve identified the mximl -confluent set. To see wht gin cn be obtined on exmples less dpted with respect to these observtions, we hve pplied the -confluence technique to systems with purely sequentil lef components. We hve chosen exmples from the Cdp distribution: two versions of the Alternting Bit Protocol nd five versions of Distributed Leder Election Protocol [8]. Tble 3 shows the results. Note tht in this cse, compring execution times is irrelevnt, since -prioritiztion of sequentil components is known to be useless. It is very encourging RR n 4918

18 16 G. Pce, F. Lng, R. Mteescu Norml -prioritized Difference % sttes trns. sttes trns. sttes trns. CRASH TRANSMITTER % 22% RECEIVER THREADn % 31% FAIL RECEIVERn % 0% Tble 1: Lef Lts sizes using norml nd -prioritized genertion. Norml -prioritized Difference % Number of sttes % Number of trnsitions % Exp.Open execution time % Exp.Open memory consumption (Kb) % Svl execution time % Tble 2: Cost of norml nd -prioritized composition expression genertion. Exp.Open Stte Spce Difference % time memory sttes trns Alternting Bit(1) 9% 0% 4% 25% Alternting Bit(2) 4% 0% 6% 27% Distributed Leder Election(1) 57% 3% 11% 24% Distributed Leder Election(2) 21% 0% 12% 23% Distributed Leder Election(3) 88% 5% 5% 11% Distributed Leder Election(4) 90% 1% 0% 8% Distributed Leder Election(5) 102% 1% 0% 0% Tble 3: Difference rtios for severl cse studies to note tht in ll experiments, the overhed in memory consumption is negligible, since memory more thn time is usully the bottleneck in verifiction. 8 Conclusions -confluence cn be n effective technique to reduce trnsition systems with respect to brnching bisimultion t resonble cost. When treting lrge systems, minimiztion cn be fr too costly, but -confluence bsed reduction my yield sufficiently smller systems, menble to minimiztion. However, even -confluence set deduction comes t price, nd one usully hs to settle for techniques which prtilly recognize -confluence, but my still be effective in prctice. INRIA

19 Clculting -Confluence Compositionlly 17 We propose to use composition expressions to help identify independent trnsitions resulting in -confluence t negligible cost. The leves of the composition expression need to be nlyzed using trditionl methods, which is usully possible, since one rrely finds huge components t this level. A heuristic pproch is used to identify necessrily confluent nd non-confluent trnsitions t low cost. One nturl question rising from this work is whether we cn do better by enriching the set of composition opertors. In the Cdp toolset, the leves of the composition expressions re Lotos specifictions which themselves use the opertors in the composition expressions together with others such s sequentil composition nd disbling. In this report we concentrte on results for strong confluence, minly becuse we hve no efficient wy of recognizing wek confluence t the lef nodes. However, it would be useful to extend these results, especilly since certin lef nodes my be smll enough to clculte lrger sets of more wekly confluent trnsitions. Overll, we believe tht composition structure informtion cn, in vrious contexts, be used to improve existing lgorithms. In this report, we hve presented one such ppliction, where we improve on Lts genertion, nd -confluence reduction using this informtion. References [1] H.R. Andersen. Model Checking nd Boolen Grphs. Theoreticl Computer Science, 126(1):3 30, [2] S.C.C. Blom. Prtil -Confluence for Efficient Stte Spce Genertion. Technicl Report SEN R0123, Centrum voor Wiskunde en Informtic, [3] Stefn Blom nd Jco vn de Pol. Stte Spce Reduction by Proving Confluence. In Computer Aided Verifiction 2002, volume 2404 of Lecture Notes in Computer Science, [4] Jen-Clude Fernndez, Hubert Grvel, Lurent Mounier, Anne Rsse, Crlos Rodríguez, nd Joseph Sifkis. A Toolbox for the Verifiction of LOTOS Progrms. In Lori A. Clrke, editor, Proceedings of the 14th Interntionl Conference on Softwre Engineering ICSE 14 (Melbourne, Austrli), pges ACM, My [5] Hubert Grvel. OPEN/CÆSAR: An Open Softwre Architecture for Verifiction, Simultion, nd Testing. In Bernhrd Steffen, editor, Proceedings of the First Interntionl Conference on Tools nd Algorithms for the Construction nd Anlysis of Systems TACAS 98 (Lisbon, Portugl), volume 1384 of Lecture Notes in Computer Science, pges 68 84, Berlin, Mrch Springer Verlg. Full version vilble s INRIA Reserch Report RR [6] Hubert Grvel nd Frédéric Lng. SVL: Scripting Lnguge for Compositionl Verifiction. In Myungchul Kim, Byoungmoon Chin, Sungwon Kng, nd Dnhyung Lee, editors, Proceedings of the 21st IFIP WG 6.1 Interntionl Conference on Forml RR n 4918

20 18 G. Pce, F. Lng, R. Mteescu Techniques for Networked nd Distributed Systems FORTE 2001 (Cheju Islnd, Kore), pges IFIP, Kluwer Acdemic Publishers, August Full version vilble s INRIA Reserch Report RR [7] Hubert Grvel, Frédéric Lng, nd Rdu Mteescu. An Overview of CADP Europen Assocition for Softwre Science nd Technology (EASST) Newsletter, 4:13 24, August Also vilble s INRIA Technicl Report RT-0254 (December 2001). [8] Hubert Grvel nd Lurent Mounier. Specifiction nd Verifiction of Vrious Distributed Leder Election Algorithms for Unidirectionl Ring Networks. Science of Computer Progrmming, 29(1 2): , July Specil issue on Industrilly Relevnt Applictions of Forml Anlysis Techniques. Full version vilble s INRIA Reserch Report RR [9] S. Grf, B. Steffen, nd G. Lüttgen. Compositionl Minimiztion of Finite Stte Systems using Interfce Specifictions. Forml Aspects of Computtion, 8(5): , September [10] Susnne Grf nd Bernhrd Steffen. Compositionl Minimiztion of Finite Stte Systems. In R. P. Kurshn nd E. M. Clrke, editors, Proceedings of the 2nd Workshop on Computer-Aided Verifiction (Rutgers, New Jersey, USA), volume 531 of Lecture Notes in Computer Science, pges Springer Verlg, June [11] J.F. Groote nd J. vn de Pol. Stte Spce Reduction using Prtil -Confluence. In Mogens Nielsen nd Brnislv Rovn, editors, Proceedings of the 25th Interntionl Symposium on Mthemticl Foundtions of Computer Science MFCS 2000 (Brtislv, Slovki), volume 1893 of Lecture Notes in Computer Science, pges , Berlin, August Springer Verlg. Also vilble s CWI Technicl Report SEN-R0008, Amsterdm, Mrch [12] J.F. Groote nd M.P.A. Sellink. Confluence for process verifiction. Theoreticl Computer Science, 170(1 2):47 81, December [13] ISO/IEC. LOTOS A Forml Description Technique Bsed on the Temporl Ordering of Observtionl Behviour. Interntionl Stndrd 8807, Interntionl Orgniztion for Stndrdiztion Informtion Processing Systems Open Systems Interconnection, Genève, September [14] Jen-Pierre Krimm nd Lurent Mounier. Compositionl Stte Spce Genertion from LOTOS Progrms. In Ed Brinksm, editor, Proceedings of TACAS 97 Tools nd Algorithms for the Construction nd Anlysis of Systems (University of Twente, Enschede, The Netherlnds), volume 1217 of Lecture Notes in Computer Science, Berlin, April Springer Verlg. Extended version with proofs vilble s Reserch Report VERIMAG RR INRIA

21 Clculting -Confluence Compositionlly 19 [15] Rdu Mteescu. A Generic On-the-Fly Solver for Alterntion-Free Boolen Eqution Systems. In John Htcliff nd Hubert Grvel, editors, Proceedings of the 9th Interntionl Conference on Tools nd Algorithms for the Construction nd Anlysis of Systems TACAS 2003 (Wrsw, Polnd), volume 2619 of Lecture Notes in Computer Science, pges Springer Verlg, April Full version vilble s INRIA Reserch Report RR [16] Rtn Nlumsu nd Gnesh Goplkrishnn. An Efficient Prtil Order Reduction Algorithm with n Alterntive Proviso Implementtion. Forml Methods in System Design, 20(3), My [17] D.A. Peled, V.R. Prtt, nd G.J. Holzmnn, editors. Prtil Order Methods in Verifiction, volume 29 of DIMACS Series in Discrete Mthemtics nd Theoreticl Computer Science. Americn Mthemticl Society, [18] Y.S. Rmkrishn nd S.A. Smolk. Prtil-Order Reduction in the Wek Modl Mu- Clculus. In A. Mzurkiewicz nd J. Winkowski, editors, Proceedings of the 8th Interntionl Conference on Concurrency Theory CONCUR 97, volume 1243 of Lecture Notes in Computer Science, pges Springer Verlg, [19] Andrew W. Roscoe, Poul H.B. Grdiner, Michel H. Goldsmith, Json R. Hulnce, Dvid M. Jckson, nd J. Bryn Scttergood. Hierrchicl compression for modelchecking CSP or how to check dining philosophers for dedlock. In Tools nd Algorithms for the Construction nd Anlysis of Systems (TACAS), [20] A. Vlmri. Stubborn Set Methods for Process Algebrs. In Workshop on Prtil Order Methods in Verifiction, volume 29 of DIMACS Series in Discrete Mthemtics nd Theoreticl Computer Science. Americn Mthemticl Society, [21] Rob J. vn Glbbeek nd W. Peter Weijlnd. Brnching Time nd Abstrction in Bisimultion Semntics. Journl of the ACM, 43(3): , My [22] Mingsheng Ying. Wek confluence nd -inertness. Theoreticl Computer Science, 238(1 2): , My RR n 4918

22 20 G. Pce, F. Lng, R. Mteescu A Proofs of theorems Proposition 5 The trnsltion is sound nd complete: Given vlid interprettion I of trnslted Lts S, {q 1 q2 c q1,q 2 I} is -confluent set (soundness), nd for ny -confluent set T, there is vlid interprettion I such tht I V c = {c q1,q 2 q 1 q2 T } (completeness). Proof: The soundness proof follows directly from the definition of -confluence nd the dditionl interprettion tht d q 2,q 3 is in I if q 1 q2 is confluent with respect to the trnsition q 1 q3. For the completeness proof, we note tht the rest of the interprettion cn be constructed by dding: {d q 2,q 3 q 1 q2, q 1 q3, q 4. q 2 q4, q 3 q4 T } Agin flling bck to the definition of -confluence nd the interprettion of the vribles, the confluence of the given set gurntees the solution. Theorem 2 If E 1 E nd T 1 is -confluent trnsition set of E 1, then E E 1 (T 1 ) form -confluent trnsition set of E. Proof: We prove tht -confluent trnsitions remin -confluent through the hiding nd synchroniztion opertors. The result then follows by structurl induction. Hiding: Consider E = hide G in E 1, nd T 1, set of -confluent trnsitions of E 1. We will prove tht the set of trnsitions T, generted by T 1 is -confluent trnsition set of E. Consider q 1 q2 T. This cn only be generted by trnsition q 1 1 q 2 which is thus in T 1. Consider trnsition q 1 q3 in E. This is generted from q 1 1 q 3 in E 1 (where either / G nd = or G nd = ). In either cse, from the confluence of q 1 1 q 2, we cn deduce tht there exist q 4 with q 2 1 q 4 nd q 3 1 q 4 T 1. These generte the trnsitions q 2 q4 nd q 3 q4 T. Hence, T stisfies the -confluence conditions. Synchronous composition: Consider E = E 1 [G] E 2, nd T 1, set of -confluent trnsitions of E 1. We will prove tht the set of trnsitions T generted by T 1 is -confluent trnsition set of E. Consider trnsition in T, (q 1, r 1 ) (q 2, r 1 ), generted from q 1 1 q 2 T 1. Now consider trnsition (q 1, r 1 ) (q 3, r 3 ). From the opertionl semntic rules, this cn be generted from one of three scenrios: (i) / G, q 1 1 q 3, r 1 = r 3, (ii) / G, r 1 2 r 3, q 1 = q 3 or (iii) G, q 1 1 q 3, r 1 2 r 3. INRIA

23 Clculting -Confluence Compositionlly 21 Cse (i), is strightforwrd. Since q 1 1 q 2 is -confluent, there exists q 4 such tht q 2 1 q 4 nd q 3 1 q 4, which generte (q 2, r 1 ) (q 4, r 1 ) nd (q 2, r 1 ) (q 4, r 1 ). Furthermore, the ltter is in T. Cse (ii), when the second component cts independently is lso strightforwrd. From the semntic rules nd / G, the trnsitions (q 2, r 1 ) (q 2, r 3 ) nd (q 1, r 3 ) (q 2, r 3 ) exist in E. Furthermore, the ltter is in T. This completes cse (ii). Finlly, cse (iii), note tht q 1 1 q 3 is trnsition of E 1. Since q 1 1 q 2 is - confluent, there exists q 4 such tht q 2 1 q 4 ( G mens tht = ) nd q 3 1 q 4, which generte (q 2, r 1 ) (q 4, r 3 ) nd (q 3, r 3 ) (q 4, r 3 ). Furthermore, the ltter is in T. Hence, in ll cses, we cn close the -confluence dimond conditions. The cse nlysis for E 2 is symmetric. By structurl induction, the proof is complete. Theorem 3 Given E 1 E nd T 1 TuE(E1) 1 which stisfies the confluence conditions if replced by trnsitions, nd E 2 the -prioritiztion of E 1 with respect to T 1, then E[E 2 /E 1 ] b E. Proof: The result is bsed on the fct tht: hide Tu E (E 1 ) in E 1 b hide Tu E (E 1 ) in E 2 This cn be proven by showing tht the trnsitions generted by T 1 form -confluent set in hide Tu E (E 1 ) in E 1 nd tht hide Tu E (E 1 ) in E 2 is -prioritiztion of hide Tu E (E 1 ) in E 1 with respect to the trnsitions generted by T 1. The result then follows from Propositions 7 nd 8: E b using Proposition 8 E[hide Tu E (E 1 ) in E 1 /E 1 ] b using Proposition 7 E[hide Tu E (E 1 ) in E 2 /E 1 ] b using Proposition 8 nd the fct tht Tu E (E 1 ) = Tu E[E2/E 1](E 2 ) E[E 2 /E 1 ] Lemm 1 If E 1 E 2 E nd P 2 is potentil -confluent set of E 2 with respect to E, then E2 E 1 (P 2 ) is potentil -confluent set of E 1 with respect to E. Proof: We prove this by structurl induction. If we cn prove the three cses: (i) E 2 = hide G in E 1 (ii) E 2 = E 1 [G] E 3 nd (iii) E 2 = E 3 [G] E 1, the proof then follows from the decomposition rule. RR n 4918

24 22 G. Pce, F. Lng, R. Mteescu The proofs of these three cses follow through uninspiring cse nlysis. Here we will give n outline of cse (ii). The others follow very similrly. Let us cll P 1 = E1 [G] E3 E 1 (P 2 ). We thus wnt to prove tht P 1 is potentil -confluent set of E 1 with respect to E. We first note the following property: If (q, r)? 2 (q, r ) P 2, nd Hidden E (E 2 ) {}, then q? 1 q P 1. Note tht Hidden E (E 2 ) implies tht Hidden E (E 1 ). Now, either r does the? trnsition synchronously, or q prticiptes. In the first cse, q = q, nd thus, since Hidden E (E 2 ), it trivilly follows tht q? 1 q P 1. In the second cse, it follows tht q? 1 q which is genertor of (q, r)? 2 (q, r ) P 2, nd thus in P 1. With this result in hnd, we cn strt the min proof. Consider (q 1, r 1 ) 2 (q 2, r 2 ) P 2. By definition of genertorsof nd syncgenleftof, n element of the whole expression bove is in: {q 1 q2 (q 1, r 1 ) (q 2, r 1 ) P 2, q 1 1 q 2, / G, r 1 Q 3 } {q 1 q2 (q 1, r 1 ) (q 2, r 2 ) P 2, q 1 1 q 2, r 1 3 r 2, G} The proof now proceeds by cse nlysis over the two possibilities: Asynchronous trnsition: q 1 1 q 2, / G, (q 1, r 1 ) (q 2, r 1 ) P 2, r 1 Q 3. Since n trnsition ppers in P 2, Hidden E (E 2 ) {} nd thus, Hidden E (E 1 ) {}. We now require to prove tht q 1 1 q 2 is potentil -confluent trnsition. Consider b trnsition q 1 1 q 3, b / Synchronized E (E 1 ). Since b / Synchronized E (E 1 ) it follows tht b / G, nd thus (q 1, r 1 ) b 2 (q 3, r 1 ). Since (q 1, r 1 ) 2 (q 2, r 1 ) is in the potentil -confluence set P 2, it follows from the definition tht either (i) (q 3, r 1 )? 2 (q 2, r 1 ) P 2 or (ii) there exists (q 4, r 4 ) such tht (q 2, r 1 ) b? 2 (q 4, r 4 ) nd (q 3, r 1 )? 2 (q 4, r 4 ) P 2. Cse (i) is esy, since it follows from q 3? 1 q 2 P 1, proved bove. Consider cse (ii). Agin we note tht q 3? 1 q 4 P 1. Now, looking t (q 2, r 1 ) b? b? 2 (q 4, r 4 ), nd noting tht b / G, either q 2 1 q 4, which? stisfies the second property of potentil -confluence, or q 2 = q 4 (nd thus q 3 s 1q 2 ), which closes the digrm s desired. In ll the cses, it follows tht q 1 b 1 q 3 does not brek potentil -confluence of q 1 1 q 2. Synchronized trnsition: q 1 1 q 2, r 1 3 r 2, G, (q 1, r 1 ) (q 2, r 2 ) P 2. INRIA

25 Clculting -Confluence Compositionlly 23 As before, it follows from (q 1, r 1 ) (q 2, r 2 ) P 2 tht Hidden E (E 2 ) {} nd thus, Hidden E (E 1 ) {}. We now require to prove tht q 1 1 q 2 is potentil -confluent trnsition. Consider b trnsition q 1 1 q 3, b / Synchronized E (E 1 ). Since b / Synchronized E (E 1 ) it follows tht b / G, nd thus (q 1, r 1 ) b 2 (q 3, r 1 ). Since (q 1, r 1 ) (q 2, r 2 ) P 2, the definition of potentil -confluence tells us tht either (i) (q 3, r 1 )? 2 (q 2, r 2 ) P 2 or (ii) there exists (q 4, r 4 ) such tht (q 2, r 2 ) b? 2 (q 4, r 4 ) nd (q 3, r 1 )? 2 (q 4, r 4 ) P 2. Let us look t cse (i) (q 3, r 1 )? 2 (q 2, r 2 ). By the property we strted by proving,? b q 3 1 q 2 P 1. Hence, q 1 1 q 3 does not brek potentil -confluence. In cse (ii) there exists (q 4, r 4 ) such tht (q 2, r 2 ) b? 2 (q 4, r 4 ) nd (q 3, r 1 )? 2 (q 4, r 4 )? P 2. Agin, it follows tht q 3 1 q 4 P 2. But in (q 2, r 2 ) b? 2 (q 4, r 4 ), either q 2 prticiptes, or not. If it does not, q 2 = q 4, nd? b? thus q 3 1 q 2, stisfying potentil -confluence. If it does prticipte, then q 2 1 q 4, gin stisfying the conditions. Agin, in this cse, q 1 b 1 q 3 does not brek potentil -confluence. As cn be seen from this prt of the proof, it is n esy but uninspiring proof. The two remining cses for the right brnch of synchronized composition nd hiding follow on similr lines, nd re left out. By structurl induction, we cn conclude tht E2 E 1 (P 2 ) is potentil -confluent set of E 1 with respect to E, completing the proof. Lemm 2 If E 1 E 2 E, then P E (E 2 ) E E 1 (P E (E 1 )) Proof: By Lemm 1, nd Proposition 9: E2 E 1 (P E (E 2 )) P E (E 1 ) Using monotonicity of it then follows tht: Which implies tht: E2 E 1 ( E2 E 1 (P E (E 2 ))) E2 E 1 (P E (E 1 )) P E (E 2 ) E2 E 1 (P E (E 1 )) RR n 4918

Refined interfaces for compositional verification

Refined interfaces for compositional verification Refined interfces for compositionl verifiction Frédéric Lng INRI Rhône-lpes http://www.inrilpes.fr/vsy Motivtion Enumertive verifiction of concurrent systems Prllel composition of synchronous processes

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

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

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

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

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

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

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

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

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

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

Process Algebra CSP A Technique to Model Concurrent Programs

Process Algebra CSP A Technique to Model Concurrent Programs Process Algebr CSP A Technique to Model Concurrent Progrms Jnury 15, 2002 Hui Shi 1 Contents CSP-Processes Opertionl Semntics Trnsition systems nd stte mchines Bisimultion Firing rules for CSP Model-Checker

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

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

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

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

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

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

Review of Calculus, cont d

Review of Calculus, cont d Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some

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

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature CMDA 4604: Intermedite Topics in Mthemticl Modeling Lecture 19: Interpoltion nd Qudrture In this lecture we mke brief diversion into the res of interpoltion nd qudrture. Given function f C[, b], we sy

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

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

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite

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

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

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

The Riemann-Lebesgue Lemma

The Riemann-Lebesgue Lemma Physics 215 Winter 218 The Riemnn-Lebesgue Lemm The Riemnn Lebesgue Lemm is one of the most importnt results of Fourier nlysis nd symptotic nlysis. It hs mny physics pplictions, especilly in studies of

More information

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7 CS 188 Introduction to Artificil Intelligence Fll 2018 Note 7 These lecture notes re hevily bsed on notes originlly written by Nikhil Shrm. Decision Networks In the third note, we lerned bout gme trees

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

Math 8 Winter 2015 Applications of Integration

Math 8 Winter 2015 Applications of Integration Mth 8 Winter 205 Applictions of Integrtion Here re few importnt pplictions of integrtion. The pplictions you my see on n exm in this course include only the Net Chnge Theorem (which is relly just the Fundmentl

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

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

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

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

Improper Integrals, and Differential Equations

Improper Integrals, and Differential Equations Improper Integrls, nd Differentil Equtions October 22, 204 5.3 Improper Integrls Previously, we discussed how integrls correspond to res. More specificlly, we sid tht for function f(x), the region creted

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

KNOWLEDGE-BASED AGENTS INFERENCE

KNOWLEDGE-BASED AGENTS INFERENCE AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to

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

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

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

RELATIONAL MODEL.

RELATIONAL MODEL. RELATIONAL MODEL Structure of Reltionl Dtbses Reltionl Algebr Tuple Reltionl Clculus Domin Reltionl Clculus Extended Reltionl-Algebr- Opertions Modifiction of the Dtbse Views EXAMPLE OF A RELATION BASIC

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

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

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

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

New data structures to reduce data size and search time

New data structures to reduce data size and search time New dt structures to reduce dt size nd serch time Tsuneo Kuwbr Deprtment of Informtion Sciences, Fculty of Science, Kngw University, Hirtsuk-shi, Jpn FIT2018 1D-1, No2, pp1-4 Copyright (c)2018 by The Institute

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

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

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

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

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes Jim Lmbers MAT 169 Fll Semester 2009-10 Lecture 4 Notes These notes correspond to Section 8.2 in the text. Series Wht is Series? An infinte series, usully referred to simply s series, is n sum of ll of

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificil Intelligence Spring 2007 Lecture 3: Queue-Bsed Serch 1/23/2007 Srini Nrynn UC Berkeley Mny slides over the course dpted from Dn Klein, Sturt Russell or Andrew Moore Announcements Assignment

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

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 7.. Introduction to Integrtion. 7. Integrl Clculus As ws the cse with the chpter on differentil

More information

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1 Exm, Mthemtics 471, Section ETY6 6:5 pm 7:4 pm, Mrch 1, 16, IH-115 Instructor: Attil Máté 1 17 copies 1. ) Stte the usul sufficient condition for the fixed-point itertion to converge when solving the eqution

More information

Centrum voor Wiskunde en Informatica REPORTRAPPORT. Supervisory control for nondeterministic systems

Centrum voor Wiskunde en Informatica REPORTRAPPORT. Supervisory control for nondeterministic systems Centrum voor Wiskunde en Informtic REPORTRAPPORT Supervisory control for nondeterministic systems A. Overkmp Deprtment of Opertions Reserch, Sttistics, nd System Theory BS-R9411 1994 Supervisory Control

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

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007 A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H Thoms Shores Deprtment of Mthemtics University of Nebrsk Spring 2007 Contents Rtes of Chnge nd Derivtives 1 Dierentils 4 Are nd Integrls 5 Multivrite Clculus

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

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets Concepts of Concurrent Computtion Spring 205 Lecture 9: Petri Nets Sebstin Nnz Chris Poskitt Chir of Softwre Engineering Petri nets Petri nets re mthemticl models for describing systems with concurrency

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

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by. NUMERICAL INTEGRATION 1 Introduction The inverse process to differentition in clculus is integrtion. Mthemticlly, integrtion is represented by f(x) dx which stnds for the integrl of the function f(x) with

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

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

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

Chapter 0. What is the Lebesgue integral about?

Chapter 0. What is the Lebesgue integral about? Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous

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

The steps of the hypothesis test

The steps of the hypothesis test ttisticl Methods I (EXT 7005) Pge 78 Mosquito species Time of dy A B C Mid morning 0.0088 5.4900 5.5000 Mid Afternoon.3400 0.0300 0.8700 Dusk 0.600 5.400 3.000 The Chi squre test sttistic is the sum of

More information

Math 1B, lecture 4: Error bounds for numerical methods

Math 1B, lecture 4: Error bounds for numerical methods Mth B, lecture 4: Error bounds for numericl methods Nthn Pflueger 4 September 0 Introduction The five numericl methods descried in the previous lecture ll operte by the sme principle: they pproximte the

More information

Week 10: Line Integrals

Week 10: Line Integrals Week 10: Line Integrls Introduction In this finl week we return to prmetrised curves nd consider integrtion long such curves. We lredy sw this in Week 2 when we integrted long curve to find its length.

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

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

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

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

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as Improper Integrls Two different types of integrls cn qulify s improper. The first type of improper integrl (which we will refer to s Type I) involves evluting n integrl over n infinite region. In the grph

More information

N 0 completions on partial matrices

N 0 completions on partial matrices N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver

More information

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral Improper Integrls Every time tht we hve evluted definite integrl such s f(x) dx, we hve mde two implicit ssumptions bout the integrl:. The intervl [, b] is finite, nd. f(x) is continuous on [, b]. If one

More information

Frobenius numbers of generalized Fibonacci semigroups

Frobenius numbers of generalized Fibonacci semigroups Frobenius numbers of generlized Fiboncci semigroups Gretchen L. Mtthews 1 Deprtment of Mthemticl Sciences, Clemson University, Clemson, SC 29634-0975, USA gmtthe@clemson.edu Received:, Accepted:, Published:

More information

Uninformed Search Lecture 4

Uninformed Search Lecture 4 Lecture 4 Wht re common serch strtegies tht operte given only serch problem? How do they compre? 1 Agend A quick refresher DFS, BFS, ID-DFS, UCS Unifiction! 2 Serch Problem Formlism Defined vi the following

More information

Math& 152 Section Integration by Parts

Math& 152 Section Integration by Parts Mth& 5 Section 7. - Integrtion by Prts Integrtion by prts is rule tht trnsforms the integrl of the product of two functions into other (idelly simpler) integrls. Recll from Clculus I tht given two differentible

More information

INTRODUCTION. The three general approaches to the solution of kinetics problems are:

INTRODUCTION. The three general approaches to the solution of kinetics problems are: INTRODUCTION According to Newton s lw, prticle will ccelerte when it is subjected to unblnced forces. Kinetics is the study of the reltions between unblnced forces nd the resulting chnges in motion. The

More information

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility) CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if

More information

Acceptance Sampling by Attributes

Acceptance Sampling by Attributes Introduction Acceptnce Smpling by Attributes Acceptnce smpling is concerned with inspection nd decision mking regrding products. Three spects of smpling re importnt: o Involves rndom smpling of n entire

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

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

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

The solutions of the single electron Hamiltonian were shown to be Bloch wave of the form: ( ) ( ) ikr

The solutions of the single electron Hamiltonian were shown to be Bloch wave of the form: ( ) ( ) ikr Lecture #1 Progrm 1. Bloch solutions. Reciprocl spce 3. Alternte derivtion of Bloch s theorem 4. Trnsforming the serch for egenfunctions nd eigenvlues from solving PDE to finding the e-vectors nd e-vlues

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

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions Physics 6C Solution of inhomogeneous ordinry differentil equtions using Green s functions Peter Young November 5, 29 Homogeneous Equtions We hve studied, especilly in long HW problem, second order liner

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

Lecture Note 9: Orthogonal Reduction

Lecture Note 9: Orthogonal Reduction MATH : Computtionl Methods of Liner Algebr 1 The Row Echelon Form Lecture Note 9: Orthogonl Reduction Our trget is to solve the norml eution: Xinyi Zeng Deprtment of Mthemticl Sciences, UTEP A t Ax = A

More information

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system.

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system. Section 24 Nonsingulr Liner Systems Here we study squre liner systems nd properties of their coefficient mtrices s they relte to the solution set of the liner system Let A be n n Then we know from previous

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

CALCULUS WITHOUT LIMITS

CALCULUS WITHOUT LIMITS CALCULUS WITHOUT LIMITS The current stndrd for the clculus curriculum is, in my opinion, filure in mny spects. We try to present it with the modern stndrd of mthemticl rigor nd comprehensiveness but of

More information

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique? XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4

More information