dierent process-lgebric theories in order to cpture dierent spects of system behvior; however, ech such formlism generlly includes the following chrct

Size: px
Start display at page:

Download "dierent process-lgebric theories in order to cpture dierent spects of system behvior; however, ech such formlism generlly includes the following chrct"

Transcription

1 Process Algebr Rnce Clevelnd Deprtment of Computer Science P.O. Box 7534 North Crolin Stte University Rleigh, NC USA Scott A. Smolk Deprtment of Computer Science Stte University of New York t Stony Brook Stony Brook, NY USA April 7, 1999 Abstrct Process lgebr represents mthemticlly rigorous frmework for modeling concurrent systems of intercting processes. The process-lgebric pproch relies on equtionl nd inequtionl resoning s the bsis for nlyzing the behvior of such systems. This chpter surveys some of the key results obtined in the re within the setting of prticulr process-lgebric nottion, the Clculus of Communicting Systems (CCS) of Milner. In prticulr, the Structurl Opertionl Semntics pproch to dening opertionl behvior of lnguges is illustrted vi CCS, nd severl opertionl equivlences nd renement orderings re discussed. Mechnisms re presented for deducing tht systems re relted by the equivlence reltions nd renement orderings, nd dierent process-lgebric modeling formlisms re briey surveyed. Keywords: process lgebr, equtionl resoning, veriction, veriction tools, bisimultion, filures/testing reltions. 1 Introduction The term process lgebr encompsses collection of theories tht support mthemticlly rigorous (in)equtionl resoning bout systems consisting of concurrent, intercting processes. The eld grew out of seminl book due to Milner [34] in 1980 nd hs been n ctive re of reserch since then. In prticulr, reserchers hve developed number of 1

2 dierent process-lgebric theories in order to cpture dierent spects of system behvior; however, ech such formlism generlly includes the following chrcteristics. 1. A lnguge, or lgebr, is dened for describing systems. 2. A behviorl equivlence is introduced tht is intended to relte systems whose behvior is indistinguishble to n externl observer. 3. Equtionl rules, or xioms, re developed tht permit proofs of equivlences between systems to be conducted in syntx-driven mnner. Some formlisms include renement ordering, in lieu of n equivlence; in this cse, the theories llow one to determine if system is \greter thn or equl to" (i.e. renes) nother. The literture typiclly refers to ech theory s process lgebr; so the eld of process lgebr contins mny process lgebrs. Process lgebrs derive their motivtion from the fct tht system design often consists of severl dierent descriptions of the system involving dierent levels of detil. The behviorl equivlence or renement reltion provided by process lgebr my be used to determine whether these dierent descriptions conform to one nother. More speciclly, higher-level descriptions of system behvior my be relted to lower-level ones using the equivlence or renement ordering supplied by the lgebr. These reltions re typiclly substitutive, mening tht relted systems my be used interchngebly inside lrger system descriptions; this fcilittes compositionl system veriction, since low-level designs of system components my be checked in isoltion ginst their high-level designs. This chpter surveys some of the min fetures of process lgebr, nd it develops long the following lines. The next section introduces CCS, the process lgebr tht we use throughout the chpter to illustrte the principles we cover. Section 3 then introduces behviorl equivlences bsed on the notion of bisimultion, fundmentl concept due to Milner nd Prk. We then show how two of these equivlences my be given equtionl xiomtiztions. The section following then introduces the filures/testing renement reltions nd provides inequtionl xiomtiztions for them for CCS. Section 6 then shows how these reltions my be computed for nite-stte systems. The penultimte section surveys relted work, nd the nl one summrizes the contents of the chpter. 2 A Clculus of Communicting Systems This section introduces the syntx nd semntics of the process lgebr A Clculus of Communicting Systems (CCS). CCS will serve s vehicle for illustrting the dierent ingredients tht mke up process lgebr throughout the reminder of this chpter. Other process lgebrs re briey discussed in Section The Syntctic Form of CCS Processes CCS provides smll set of opertors tht my be used to construct system descriptions from denitions of subsystems. The bsic building blocks of these descriptions, nd indeed of 2

3 system denitions in ll existing process lgebrs, re ctions. Intuitively, ctions represent tomic, uninterruptible execution steps, with some ctions denoting internl execution nd others representing potentil interctions with its environment tht the system my engge in. Actions in CCS. A binry, synchronous model of process communiction underlies CCS, nd the structure of the set of ctions reects this design decision. Actions represent either inputs/outputs on ports or internl computtion steps. The former re sometimes clled externl, s they require interction from the environment in order to tke plce. To formlize these intuitions, let represent countbly innite set of lbels, or ports, not contining the distinguished symbol. Then n ction in CCS hs one of the following three forms., where 2, represents the ct of receiving signl on port., where 2, represents the ct of emitting signl on port. represents n internl computtion step. In wht follows we use A CCS to stnd for the set of ll CCS ctions; tht is, A CCS = [ f j 2 g [ fg: We lso buse nottion by dening = ; note tht is not vlid ction. We refer to the ctions nd, where 2, s complementry, s they represent the input nd output ction on the sme chnnel. The set A CCS? fg then contins the set of externl, or visible, ctions; the only internl ction is. CCS opertors. Hving dened the set A CCS of CCS ctions we now introduce the opertors the process lgebr provides for ssembling ctions into systems. In wht follows, we ssume tht p, p 1 nd p 2 denote CCS system descriptions tht hve previously been constructed, nd we lso ssume countbly innite set C of process vribles. CCS then includes seven dierent mechnisms for building systems. nil represent the terminted process tht hs nished execution. Given 2 A CCS, the prexing opertor : llows n ction to be \prepended" onto n existing system description. Intuitively, :p is cpble rst of n nd then behves like p. + represents choice construct. The system p 1 + p 2 oers the potentil of behving like either p 1 or p 2, depending on the interctions oered by the environment. j denotes prllel composition. The system p 1 jp 2 interleves the execution of p 1 nd p 2 while lso permitting complementry ctions of p 1 nd p 2 to synchronize; in this cse cse, the resulting composite ction is. 3

4 If L A CCS? fg then the restriction opertor nl permits ctions to be loclized within system. Intuitively, pnl behves like p except tht it is disllowed from intercting with its environment using ctions mentioned in L. Note tht cn never be restricted. The opertor [f] llows ctions in process to be renmed. Here f is function from A CCS to A CCS tht is required to stisfy the following two restrictions. { f() = { f() = f(). When this is the cse, f is clled renming. The system p[f] behves exctly like p except tht f is pplied to ech ction tht p wishes to engge in. If C 2 C then C represents vlid system provided tht dening eqution of the form C = p hs been given. Intuitively, C represents n \invoction" tht behves like p. This construct llows systems to be dened recursively. In process-lgebric prlnce, system descriptions built using the bove opertors re often referred to s terms or processes. We use P CCS to represent the set of ll CCS processes. As exmples, consider the following, where we ssume tht contins send, recv, msg, ck, get, put, get ck nd put ck. The term send:recv:nil represents system tht engges in sequence of two ctions: n \input" on the send chnnel, followed by n \output" on the recv chnnel. Consider the denition M = put:get:m + put ck:get ck:m This denes system M tht my be thought of s one-plce communiction buer: given \messge" on its put chnnel it delivers it on its get chnnel, nd similrly for cknowledgments. This exmple illustrtes how, lthough the version of CCS considered here does not explicitly support vlue-pssing, limited form of dt exchnge cn be implemented by encoding vlues in port nmes. Here M cn hndle two kinds of \dt": messges nd cknowledgments. Now consider the following denitions, where M is s dened previously. S = send:msg:ck:s R = msg:recv:ck:r P = (S[put=msg; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg P represents the CCS term for simple communictions protocol consisting of sender S, receiver R, nd medium M, grphicl depiction of which my be found in Figure 1. The sender repetedly ccepts \messges" on its send chnnel, outputs them 4

5 send recv S R msg ck msg ck put get_ck get put_ck M Figure 1: The rchitecture of smple communictions protocol. on its msg chnnel, nd then wits n cknowledgment on its ck chnnel. The receiver behves similrly: it wits messge on its msg chnnel, delivers it on its recv chnnel, nd then sends n cknowledgment vi its ck chnnel. The relbeling opertors re given in the form =b; c=d; : : :; intuitively, such relbeling chnges b (nd its inverse) to, d to c, etc. Actions not mentioned re unected. In this exmple the relbelings eect the \wiring" given in the gure. The restriction opertor ensures tht only the sender nd receive my interct directly with the medium. 2.2 The Opertionl Semntics of CCS Terms In the ccount so fr we hve relied on the reder's intuition to understnd the mening of the CCS opertors. To mke these menings precise, CCS nd other process lgebrs usully include n opertionl semntics tht is intended precisely to dene the \execution steps" tht processes my engge in. This semntics is usully specied in the form of ternry reltion,?!; intuitively, p?! p 0 holds if system p is cpble of engging in ction nd then behving like p 0. Process lgebrs such s CCS typiclly dene?! inductively using collection of inference rules for ech opertor. These rules hve the following form. premises conclusion (side condition) A rule sttes tht, if one hs estblished the premises, nd the side condition holds, then one my infer the conclusion. This presenttion style for opertionl semntics is often clled 5

6 SOS, for Structurl Opertionl Semntics, nd ws devised by Plotkin [39]. The reminder of this section covers the SOS rules for CCS nd shows how they my be used rigorously to chrcterize the behvior of CCS system descriptions. We group the rules on the bsis of the CCS opertors to which they pply. nil. The CCS process nil hs no rules; consequently, it is incpble of ny trnsitions. Prexing. The prexing opertor contins one rule. :p?! p This rule hs no premises, nd the conclusion sttes tht processes of the form :p my engge in nd therefter behve like p. Note tht the side condition is omitted; in such cses it is ssumed to be \true". Choice. The choice opertor hs two symmetric rules. p?! p 0 q?! q 0 p + q?! p 0 p + q?! q 0 These rules in essence stte tht system of the form p + q \inherits" the trnsitions of its subsystems p nd q. Prllel Composition. The prllel composition opertor hs three rules, the rst two of which re symmetric. p?! p 0 q?! q 0 pjq?! p 0 jq pjq?! pjq 0 These rules indicte tht j interleves the trnsitions of its subsystems. The next rule llows processes connected by j to interct. p?! p 0 ; q?! q 0 pjq?! p 0 jq 0 According to this rule, subsystems my synchronize on complementry ctions (i.e. inputs nd outputs on the sme port). Note tht the ction produced s the result of the synchroniztion is ; since is undened, this ensures tht synchroniztions involve only two prtners. Restriction. The restriction opertor hs one rule. p?! p 0 pnl?! p 0 nl (; 62 L) This rule, which includes side condition, only llows ctions not mentioned in L (or whose complements re not in L) to be performed by pnl. Restriction in eect \loclizes" ctions in L, since the opertor forbids the system's environment from intercting with the system using them. 6

7 Relbeling. The relbeling opertion hs one rule. p?! p 0 p[f] f()?! p 0 [f] As the intuitive ccount bove suggests, p[f] engges in the sme trnsitions s p, the dierence being tht the ctions re relbeled vi f. Process Vribles. The behvior of process vribles is given by one rule. p?! p 0 C?! (C = p) p 0 This rule sttes tht system C behves like its \body", p, provided tht C hs been provided with denition of the form C = p. Exmples. As stted bove, the SOS rules for CCS dene the single-step trnsitions tht CCS processes my engge in. As one exmple, consider the medium process M dened bove. Using the prexing rule, one my infer the trnsition put:get:m?! put get:m Using this fct nd one of the rules for +, one my therefore infer tht put:get:m + put ck:get ck:m?! put get:m This observtion nd the rule for constnts then permit the following trnsition to be inferred. M?! put get:m Using similr lines of resoning, one my lso deduce tht P?! send ((msg:ck:s)[put=msg; get ck=ck] j M j R[get=msg; put ck=ck])nfget; get ck; put; put ckg Note tht this is the only trnsition vilble to P, since the trnsitions of M nd R ll involve ctions in the restriction set. 2.3 CCS, Processes nd Lbeled Trnsition Systems The denition of?! just given llows CCS processes to be viewed s stte mchines of certin type. To begin with, we show how CCS my be viewed s structure clled lbeled trnsition system consisting of collection of possible system sttes nd trnsitions. Denition 2.1 A lbeled trnsition system (LTS) is triple hq; A;?!i, where Q is set of sttes, A is set of ctions, nd?! Q A Q is trnsition reltion. 7

8 Some denitions of LTS lso designte strt stte. We refer to lbeled trnsitions of this form (i.e. qudruples of the form hq; A;?!; q S i where q S 2 Q is the strt stte) s rooted lbeled trnsition systems. Perhps surprisingly, the denitions of this chpter show tht CCS my be viewed s single LTS. Recll tht P CCS represents the (innite) set of syntcticlly vlid CCS system denitions, nd let?! CCS be the trnsition reltion dened in the previous subsection. Then hp CCS ; A CCS ;?! CCS i stises the denition of LTS. This observtion lso holds for other process lgebrs nd hs two consequences. The rst is tht certin denitions, such s those for behviorl equivlences nd renement orderings, my be given in lngugeindependent mnner by dening them with respect to LTS's. The second consequence is tht tht individul system descriptions my be \converted" into rooted LTS's. Mthemticlly, for ny CCS system p the qudruple hp CCS ; A CCS ;?! CCS ; pi constitutes rooted LTS. As P CCS is innite this observtion is only of theoreticl interest until one observes tht not every stte in P CCS is \rechble" from p vi?! CCS. Consequently, we my insted dene nother LTS, M p, consisting only of CCS terms rechble from p vi sequences of trnsitions. If M p contins only nitely mny sttes, then it my be nlyzed using lgorithms for mnipulting nite-stte mchines. As n exmple, Figure 2 contins the nite-stte rooted LTS corresponding to the communiction protocol P described bove. 3 Behviorl Congruences for CCS Process lgebrs usully use notion of behviorl congruence s bsis for system nlysis. A congruence for n lgebr is n equivlence reltion (i.e. reltion tht is reexive, symmetric nd trnsitive) tht lso hs the substitution property: equivlent systems my be used interchngebly inside ny lrger system. Formlly, dene context C[ ] to be system description with \hole", [ ]; given system description p, then, C[p] represents the system obtined by \lling" the hole with p. Then n equivlence is congruence for lnguge if, whenever p q, then C[p] C[q] for ny context C[ ] built using opertors in the lnguge. It should be noted tht reltions tht re congruences for some lnguges re not congruences for others. In this section we study congruences for CCS with view towrd dening reltion tht reltes systems with respect to their \observble" behvior. In ech cse we rst dene n equivlence reltion on sttes in n rbitrry LTS; since CCS my be viewed s n LTS, these reltions my then be used to relte CCS system descriptions. We then consider the suitbility of the equivlence from the stndpoint of the observble behvior to which it is sensitive nd study whether or not the reltion is congruence for CCS. In the rst prt of the section we mke no specil llownce for the \unobservbility" of the ction, deferring its tretment to lter. 3.1 The Indequcy of Trce Equivlence Stte mchines hve well-studied equivlence, lnguge equivlence, tht stipultes tht two mchines re equivlent if they ccept the sme sequences of symbols. Rooted lbeled trnsition systems do not contin \ccepting sttes" per se, nd consequently the notion 8

9 (S[...] M R[...})\{...} send ((msg.ck.s)[...] M R[...])\{...} τ ((ck.s)[...] get.m R[...])\{...} τ τ ((ck.s)[...] M ( recv.ck.r)[...])\{...} recv ((ck.s)[...] M ( ck.r)[...])\{...} τ ((ck.s)[...] get_ck.m R[...])\{...} Figure 2: The stte mchine for P. 9

10 of lnguge equivlence from nite-stte mchine theory cnnot be directly pplied. However, if we identify every stte in rooted LTS s being ccepting, then the \lnguge" of the mchine contins the execution sequences, or \trces", tht mchine my engge in. Consequently, resonble rst ttempt t dening behviorl equivlence for CCS nd other process lgebrs might be to relte two system descriptions (i.e. sttes in the LTS hq; A;?!i exctly when the mchines for them hve exctly the sme trces. Before formlizing these notions we rst review some concepts from the theory of nite sequences. If A is set, then A consists of the set of (possibly empty) nite sequences of elements of A. We use to represent the empty sequence. One my now dene trces, nd trce equivlence, s follows. Denition 3.1 Let hq; A;?!i be lbeled trnsition system. 1. Let s = 1 : : : n 2 A be sequence of ctions. Then q q 0 ; : : : ; q n such tht q = q 0, q i i?! q i+1, nd q 0 = q n. s?! q 0 if there re sttes 2. s is strong trce of q if there exists q 0 such tht q the set of ll strong trces of q. 3. p S q exctly when S(p) = S(q). s?! q 0. We use S(q) to represent We use the term strong trces becuse the denition given bove does not distinguish between internl nd externl ctions; ll my pper in strong trce. In contrst, the trditionl denition of trces trets ctions in specil mnner. Since CCS is lbeled trnsition system whose sttes re system descriptions we my pply the denition of S to CCS systems. Unfortuntely, S suers from severe deciencies for CCS nd other lnguges tht permit the denition of nondeterministic systems, s the following exmples illustrte. 1. Let p be :b:nil + :c:nil nd q be :(b:nil + c:nil ). Then p S q, s S(p) = S(q) = f; ; b; cg. However, fter n -trnsition q cn perform both b nd c, wheres p must reject one or the other of these possibilities fter ech of its (two) -trnsitions. 2. Let C 1 = :C 1 nd C 2 = :C 2 + :nil. Then C 1 S C 2, nd yet C 2 cn rech \dedlocked" stte fter n -trnsition (i.e. stte tht is incpble of ny trnsitions) while C 1 cnnot. The trouble with trce equivlence nd nondeterministic systems is tht even though two systems hve the sme trces, they my go through inequivlent sttes in performing them. (This sitution cnnot occur in deterministic systems.) In prticulr, trce equivlent systems cn hve dierent dedlocking behvior. 10

11 3.2 Bisimultion Equivlence The lst observtion in the previous section suggests tht n pproprite equivlence for CCS, nd indeed for ny lnguge permitting the denition of nondeterministic systems, ought to hve recursive vor: execution sequences for equivlent systems ought to \pss through" equivlent sttes. This intuition underlies the denition of bisimultion, or strong equivlence. The nme of the equivlence stems from the fct tht it is dened in terms of specil reltions clled bisimultions. Denition 3.2 Let hq; A;?!i be n LTS. A reltion R Q Q is bisimultion if, whenever hp; qi 2 R, then the following conditions hold for ny, p 0 nd q if p?! p 0 then q?! q 0 for some q 0 such tht hp 0 ; q 0 i 2 R. 2. if q?! q 0 then p?! p 0 for some p 0 such tht hp 0 ; q 0 i 2 R. Intuitively, if two systems re relted by bisimultion, then it is possible for ech to simulte, or \trck", the other's behvior: hence the term bisimultion. More speciclly, for reltion to be bisimultion, relted sttes must be ble to \mtch" trnsitions of ech other by moving to relted sttes. Two sttes re then bisimultion equivlent exctly when bisimultion my be found relting them. Denition 3.3 Systems p nd q re bisimultion equivlent, or bisimilr, if there exists bisimultion R contining hp; qi. We write p q whenever p nd q re bisimilr. Since CCS my be viewed s n LTS, one my use to relte CCS processes. As exmples, we hve the following. 1. :b:nil + :b:nil :b:nil 2. :b:nil + :c:nil 6 :(b:nil + c:nil) 3. C 1 6 C 2. Bisimultion equivlence hs number of plesing properties. Firstly, for ny lbeled trnsition system it is indeed n equivlence; tht is, the reltion is reexive, symmetric nd trnsitive. Secondly it cn be shown in precise sense tht two equivlent systems must hve the sme \dedlock potentil"; this point is ddressed in more detil below. Thirdly, implies S nd coincides with it if the LTS is deterministic in the sense tht every stte hs t most one outgoing trnsition per ction. Finlly, is congruence for CCS; if p q then p nd q my be used interchngebly inside ny lrger system. However, does suer from mjor w from the perspective of CCS nd other process lgebrs llowing synchronous execution: it is too sensitive to internl computtion. In prticulr, the denition does not tke ccount of the specil sttus tht hs vis vis other ctions. For exmple, the systems ::b:nil nd :b:nil re not bisimultion equivlent, even though n externl observble cnnot detect the dierence between them. Nevertheless, hs been studied extensively in the literture, nd for process lgebrs in which internl computtion in one component cn indeed ect the behvior of other components, it is resonble bsis for veriction. 11

12 Dedlock, Logicl Chrcteriztions nd The preceding discussion sttes tht reltes systems on the bsis of their reltive \dedlock potentils". The reminder of this subsection mkes this sttement precise by dening logic, clled the Hennessy-Milner Logic (HML) [26], tht permits the formultion of simple system properties, including potentils for dedlock. The logic lso chrcterizes in the following sense: two systems re bisimilr if nd only if they stisfy exctly the sme formuls in the logic. Syntx of HML. The denition of HML is prmeterized with respect to set A of ctions. Given such set, the syntx of HML formuls cn be given vi the following grmmr. ::= tt j j j j j ^ _ We use for the set of ll well-formed HML formuls. The constructs in the logic my be understood s follows. First, it should be noted tht formuls re intended to be interpreted with respect sttes in lbeled trnsition system. Then tt nd represent the constnts \true" nd \flse" tht hold of ny stte nd no stte, respectively, while ^ nd _ denote conjunction (\nd") nd disjunction (\or"), respectively. The nl two opertors re referred to s modlities, s they permit sttements to be mde bout the trnsitions emnting from stte; thus HML is modl logic. A stte stises hi if trget stte of one of its -trnsitions stises, while [] holds of stte if the trget sttes of ll of its -trnsitions stisfy. Semntics of HML. In order to formlize the previous informl discussion, we rst x lbeled trnsition system L = hq; A;?!i hving the sme ction set s HML. We then dene reltion j= L Q ; intuitively, q j= L should hold if stte q \stises". The forml denition is given inductively s follows. q j= L tt for ny q 2 Q. q j= L for no q 2 Q. hi [] q j= L 1 ^ 2 if nd only if q j= L 1 nd q j= L 2. q j= L 1 _ 2 if nd only if q j= L 1 or q j= L 2. q j= L hi if nd only if q?! q 0 nd q 0 j= L for some q 0 2 Q. q j= L [] if nd only if for every q 0 such tht q?! q 0, q 0 j= L. 12

13 This denition includes some subtleties tht deserve comment. To begin with, formul [] is stised by ny stte not hving n -trnsition; such sttes vcuously fulll the requirement imposed by []. Indeed, stte with no -trnsitions stises [] for ny. These fcts lso imply tht stte incpble of ny ction in the set f 1 ; : : : ; n g will stisfy the formul [ 1 ] ^ ^ [ n ]. If such stte occurs in n environment tht requires one of these ctions, then dedlock results. In relted vein, stte stises hbitt if nd only if it hs n b-trnsition; more generlly, given (nonempty) sequence of ctions b 1 : : : b m, stte includes b 1 : : : b m s one of its strong trces if nd only if the stte stises the formul hb 1 i hb m itt. Finlly, consider stte stisfying formul of the form hb 1 i hb m i([ 1 ] ^ ^ [ n ]): Such stte stises this formul if it cn engge in the sequence b 1 : : : b m nd rrive t stte tht rejects oers for interction involving ny of 1 ; : : : ; n. In n environment cpble of exercising the sequence b 1 : : : b m nd then requiring n interction involving one of 1 ; : : : ; n, the given stte could dedlock. It is in this sense tht HML permits the formultion of properties expressing potentils for dedlock. HML nd. The reltionship between HML nd is cptured by the following theorem tht sttes tht HML chrcterizes for lbeled trnsition systems tht re imge-nite. An LTS is imge-nite if every stte in the LTS hs t most nitely mny trnsitions shring the sme ction lbel. In prctice lmost ll lbeled trnsition systems stisfy this requirement; in prticulr, CCS does provided the denitions of process vribles obey smll restriction. Theorem 3.4 Let L = hq; A;?!i be n imge-nite LTS, nd let p; q 2 Q. Then p q if nd only if for ll HML formuls, either p j= L nd q j= L or p 6j= L nd q 6j= L. On the one hnd, this result nd the previous discussion substntites the clim tht bisimultion equivlence requires equivlent systems to hve the sme \dedlock potentils". On the other hnd, the theorem provides useful mechnism for explining why two systems fil to be equivlent; one need only present formul stised by one system nd not the other. The following provides exmples illustrting this ltter point in the context of CCS. Consider the system p given by :b:nil+:c:nil nd the system q given by :(b:nil+c:nil). Since p 6 q there must be formul stised by one nd not the other. One such formul is hi[b], which is stised by p but not by q. Consider C 1 nd C 2 given bove. The formul hi[] distinguishes them, s C 2 stises it nd C 1 does not. 3.3 Observtionl Equivlence nd Congruence for CCS This subsection presents corsening of bisimultion equivlence tht is intended to relx the sensitivity of the former to internl computtion. The denition of this reltion relies on the introduction of so-clled \wek" trnsitions. 13

14 Denition 3.5 Let hq; A;?!i be n LTS with 2 A, nd let q 2 Q. 1. If s 2 A then ^s 2 (A?fg) is the ction sequence obtined by deleting ll occurrences of from s. 2. Let s 2 (A? fg). Then q s =) q 0 if there exists s 0 such tht q s0?! q 0 nd s = ^s 0. Intuitively, ^s returns the \visible content" (i.e. non- elements) of sequence s; in prticulr, s if 2 A then ^ = if =, while ^ = if 6=. In ddition, q =) q 0 if q cn perform sequence of trnsitions with the sme visible content s s nd evolve to q 0. In this cse note tht the sequence of trnsitions tht is performed is the sme s s except tht it potentilly includes n rbitrry number of trnsitions in between the visible ctions of s. In prticulr, q =) q 0 if sequence of -trnsitions leds from q to q 0, while for single visible ction, q =) q 0 if q cn perform n, possibly \surrounded" by some internl computtion, in order to rrive t q 0. We my now dene wek bisimultions s follows. Denition 3.6 Let hq; A;?!i be n LTS, with 2 A. Then reltion R Q Q is wek bisimultion if, whenever hp; qi 2 R, then the following hold for ll 2 A nd p 0 ; q 0 2 Q. 1. If p?! p 0 ^ then q =) q 0 for some q 0 such tht hp 0 ; q 0 i 2 R. 2. If q?! q 0 then p =) ^ p 0 for some p 0 such tht hp 0 ; q 0 i 2 R. Sttes p nd q re observtionlly equivlent, or wekly equivlent, or wekly bisimilr, if there exists wek bisimultion R contining hp; qi. When this is the cse we write p q. A wek bisimultion closely resembles regulr bisimultion; the only dierence lies in the fct tht systems my use wek trnsitions to simulte norml trnsitions in the other system. As CCS is lbeled trnsition system whose ction set contins, the denition of my be used to relte CCS system descriptions. Doing so leds to the following observtions. ::b:nil :b:nil. For ny p, :p p. Let Svc = send:recv:svc. Then P Svc, where P is the simple communictions protocol described in the previous section. The lst exmple illustrtes the power of equivlences in relting system designs t dierent levels of bstrction, since Svc could be thought of s \high-level" design tht P is intended to conform to. Even though it ignores internl computtion observtionl equivlence still enjoys similr degree of dedlock-sensitivity to bisimultion equivlence: vrint of HML cn be dened tht chrcterizes in the sme wy tht HML chrcterizes. (This logic replces the hi nd [] modlities of HML by two new opertors, hhii nd [[]]; stte 14

15 q j= L hhii if there exists q 0 such tht q =) q 0 nd q 0 j= L, nd similrly for [[]].) Consequently it would pper to be vible cndidte for relting CCS system descriptions. Unfortuntely, however, it is not congruence for CCS. To see why, consider the context C[ ] given by [ ] + b:nil. It is esy to estblish tht p q, where p is given by ::nil nd q by :nil. However, C[p] 6 C[q]. To see this, note tht C[p]?! :nil. This trnsition must be mtched by wek -lbeled trnsition from C[q]. The only such trnsition C[q] hs is C[q] =) C[q]. However, :nil 6 C[q], since the ltter cn engge in b-lbeled trnsition tht cnnot be mtched by the former. This defect of rises from the interply between + nd the initil internl computtion tht system might engge in; in prticulr, the only CCS opertor tht \breks" the congruence-hood of is +. Some reserchers resonbly suggest tht this is n rgument ginst including + in the lnguge. Milner [34, 36] dopts nother point of view tht we pursue in the reminder of this section, nd tht is to focus on nding the lrgest CCS congruence C tht implies. Such lrgest congruence is gurnteed to exist [26]. Denition 3.7 Let hq; A;?!i be n LTS with 2 A, nd let p; q 2 Q. Then p C q if the following hold for ll 2 A nd p 0 ; q 0 2 Q. 1. If p?! p 0 then q =) q 0 for some q 0 such tht p 0 q If q?! q 0 then p =) p 0 for some p 0 such tht p 0 q 0. Some remrks bout this reltion re in order. Firstly, it should be noted tht for p C q to hold, ny -trnsition of p must be mtched by =)-trnsition of q; in prticulr, this wek trnsition must consist of non-empty sequence of -trnsitions. Secondly, the denition is not recursive: the trgets of initil mtching trnsitions need only be relted by. Finlly, it indeed turns out tht C is congruence for CCS nd tht it is the lrgest CCS congruence entiling. Tht is, p C q implies p q, nd for ny other congruence R such tht p R q implies p q, p R q lso implies p C q. As exmples, we hve the following. 1. ::b:nil C :b:nil 2. ::nil 6 C :nil, since the trnsition of the ltter. 3. For ny p; q, if p q then :p C :q. 4. Svc C P, where Svc nd P re s dened bove.?! trnsition of the former cnnot be mtched by =) 4 Equtionl Resoning in CCS In ddition to denitions of behviorl congruences, process lgebrs trditionlly provide equtionl xiomtiztions tht permit equivlences to be estblished by mens of simple syntctic mnipultions. This section presents such xiomtiztions for CCS for both nd C. 15

16 Tble 1: Axiomtizing for Bsic CCS: Rule Set E 1. (A1) x + y = y + x (A2) x + (y + z) = (x + y) + z (A3) x + nil = x (A4) x + x = x 4.1 Axiomtizing We present the xiomtiztion of for CCS in stges by considering successively lrger frgments of CCS. The rst, nd most bsic, subset of CCS we investigte we term \Bsic CCS" Axiomtizing Bsic CCS Bsic CCS contins only the nil, prexing nd + opertors of CCS, nd hence it only llows the denition of \sequentil" (i.e. no prllelism) terminting systems. The xiomtiztion of for Bsic CCS consists of the four rules given in Tble 1. Some words of explntion bout these xioms re in order. Firstly, nd for convenience, ech rule we present hs nme; in this cse, the rules re nmed (A1){(A4). Secondly, ech rule contins vribles tht re intended to be rbitrry terms in the lnguge under considertion. In (A2), for exmple, x; y nd z re vribles, nd the rule should be red s sserting tht regrdless of the Bsic CCS terms substituted for these vribles, the indicted equivlence holds. Finlly, xioms re used to construct equtionl proofs s illustrted by the following exmple. :(b:nil + nil) + (:nil + :b:nil) = :b:nil + (:nil + :b:nil) by (A3) = :b:nil + (:b:nil + :nil) by (A1) = (:b:nil + :b:nil) + :nil by (A2) = :b:nil + :nil by (A4) This proof estblishes tht :(b:nil + nil) + (:nil + :b:nil) = :b:nil + :nil in four steps, where ech step represents the \ppliction" of rule to subterm, yielding new term. The development of such equtionl proofs typiclly relies on four rules of inference reecting the fct tht = is reexive, symmetric, nd trnsitive nd tht equl terms my be used interchngebly; these rules implicitly support the construction of proofs such s the one bove. We will not sy more bout this mtter. When proof tht terms t 1 nd t 2 exists using xioms in set E, we write E ` t 1 = t 2. Thus, E 1 ` :(b:nil + nil) + (:nil + :b:nil) = :b:nil + :nil; where E 1 contins the four rules in Tble 1. Returning to the rules in Tble 1, Rules (A1) nd (A2) ssert tht + is commuttive nd ssocitive, respectively. Rule (A3) indictes tht nil is n identity element for +; these rst three rules re sometimes referred to s the monoid lws, monoid being ny mthemticl 16

17 Tble 2: Axiomtizing for Bsic Prllel CCS: Rule Set E 2. (A1){(A4) from Tble 1 P P (Exp) ( i2i i :x i ) j ( j2j b j :y j ) = P P P P P i2i i :(x i j j2j b j :y j ) + j2j b j :(( i2i i :x i ) j y j ) + :(x f (i;j)j i =b j g i j y j ) structure obeying these xioms. The nl rule is often clled the bsorption lw, s it llows multiple copies of the sme summnd to be \bsorbed" into one. Mettheory. two questions. Given proposed xiomtiztion for n equivlence reltion, one my sk 1. Is the xiomtiztion sound? Tht is, re ll proved equlities true? 2. Is the xiomtiztion complete? Tht is, re ll true equlities provble? Soundness is n bsolute necessity; n unsound proof system is worse thn useless, since it llows the derivtion of untrue informtion. Completeness is highly desirble, since once proof system is shown complete, one knows tht there cn be no \missing" xioms. The following results estblish the soundness nd completeness of the xioms in Tble 1 for over Bsic CCS. Theorem 4.1 (Soundness) Let t 1 nd t 2 be terms in Bsic CCS, nd suppose tht E 1 ` t 1 = t 2. Then t 1 t 2. Theorem 4.2 (Completeness) Let t 1 nd t 2 be terms in Bsic CCS such tht t 1 t 2. Then E 1 ` t 1 = t Axiomtizing Bsic Prllel CCS The next frgment of CCS we present n xiomtiztion for extends Bsic CCS with the inclusion of the prllel composition opertor, j. We cll this frgment Bsic Prllel CCS. As it turns out Rules (A1){(A4) remin sound for Bsic Prllel CCS, but they re obviously not complete, since none of the rules mentions j. In order to devise complete xiomtiztion for this subset of CCS we therefore must dd xioms for j. The new xiomtiztion is presented in Tble 2. The single new xiom, (Exp), is often referred to s the expnsion lw, s it shows how terms involving j t the top level my be \expnded" into ones involving prexing nd summtion. This xiom is the most complicted rule for CCS, nd it deserves further commentry. Firstly, the P nottion needs explntion. Rules (A1) nd (A2) indicte tht + is commuttive nd ssocitive. This mens tht expressions of the form t t n, while not strictly speking expressions since they re not fully prenthesized, nevertheless 17

18 hve precise mening, since ll prenthesiztions of such expressions re equivlent. More generlly, given nite index set I nd n I-indexed set of terms of the form t i, we my dene P i2i t i s nil if I is empty nd s the summtion of ll the t i 's otherwise. The second feture of (Exp) is tht it my only be pplied to term t 1 jt 2 if both t 1 nd t 2 hve specil form: nmely, ech must be summtion of terms whose outermost opertor involves prexing. Techniclly speking, (Exp) is not single xiom but n xiom schem, with ech dierent vlue of I nd J yielding dierent xiom. Finlly, the right-hnd side of (Exp) consists of three summnds, ech corresponding to dierent SOS rule for j. The rst summnd llows the left subterm to \move" utonomously, nd the second permits the sme behvior from the right subterm. The third summnd hndles possible synchroniztions. To see how (Exp) is used in eqution proofs, consider the following exmple showing tht E 2 ` nil j b:nil = b:nil; recll tht nil is the sme s P i2; t i. nil j b:nil = nil + b:(nil j nil) + nil by (Exp) = b:(nil j nil) by (A3) twice = b:(nil + nil + nil) by (Exp) = b:nil by (A3) twice Indeed, for ny term t in Bsic Prllel CCS it follows tht E 2 ` nil j t = t. It my lso be shown tht for ny terms t 1 ; t 2 nd t 3 E 2 ` t 1 jt 2 = t 2 jt 1 nd E 2 ` t 1 j(t 2 jt 3 ) = (t 1 jt 2 )jt 3 ; consequently, j is commuttive nd ssocitive. Finlly, s the strict ppliction of (Exp) results in mny occurrences of nil s summnd, these nil's re suppressed in prctice, since they my be removed by pplying (A3) ppropritely. It my be shown tht E 2 is sound nd complete xiomtiztion of for Bsic Prllel CCS Axiomtizing for Finite CCS The next frgment of CCS we xiomtize includes ll opertors except for process vribles; the literture refers to this frgment s Finite CCS. Finite CCS extends Bsic Prllel CCS with the restriction nd relbeling opertors; the xioms for this subset of CCS pper in Tble 3. The xioms for nl nd [f] only explin how these opertors interct with nil, prexing nd +. Tht no rules re needed dening the interction between j nd nl, or nl nd [f], is consequence of the fct tht the innermost occurrences of these so-clled sttic opertors (with nil, prexing nd + being the dynmic ones) cn be eliminted by repeted use of the lws for the opertor in conjunction with (A1){(A4). This rgument my be formlized nd used to show tht rule set E 3 constitutes sound nd complete xiomtiztion of for Finite CCS Rules for Recursive Processes In order to xiomtize full CCS, we need rules for resoning bout terms tht include process vribles. Unfortuntely, results from computbility theory imply tht no complete xiom- 18

19 Tble 3: Axiomtizing for Finite CCS: Rule Set E 3. (A1){(A4) from Tble 1; (Exp) from Tble 2 (Res1) nilnl = nil ( nil if ; 2 L (Res2) (:x)nl = :(xnl) otherwise (Res3) (x + y)nl = xnl + ynl (Rel1) nil[f] = nil (Rel2) (:x)[f] = f():(x[f]) (Rel3) (x + y)[f] = x[f] + y[f] tiztion cn exist for for full CCS. 1 However, two useful heuristics hve been developed for hndling process vribles, nd we review these here. Both techniques tke the form of inference rules nd re therefore similr in form to the SOS rules used to dene the opertionl semntics of CCS. The rst rule, clled the unrolling rule, sttes tht process invoction is equivlent to the body of the invoction. (Unr) C = p C = p The second inference rule is often clled the unique xpoint induction principle, nd stting it relies on introducing the notion of eqution nd solution. Given vrible X nd CCS term t potentilly contining X, such tht t most X ppers \free" in t, 2 we cll the expression X = t n eqution. A CCS process p is solution to X = t if nd only if p t[p=x], where t[p=x] is the CCS term obtined by replcing ll occurrences of vrible X by p. An eqution hs unique solution up to if for ny two solutions p nd q to the eqution, p q. We my now formulte the unique xpoint induction rule s follows. (UFI) p = t[p=x] q = t[q=x] p = q (X = t hs unique solution) This rule llows one to conclude tht two terms re equl, provided one cn prove tht they re both solutions to the sme eqution nd the eqution hs unique solution. A couple of comments bout (UFI) re in order. Firstly, every eqution X = t hs solution: given denition X = t, it is esy to see tht process X is solution of X = t. Secondly, (UFI) is only useful insofr s one my redily identify when equtions hve unique solution. One such clss of equtions, nd lrge one t tht, cn be dened s follows. 1 The set of equlities one cn prove using ny xiomtiztion cn only be recursively enumerble; however, for full CCS is known not to be recursively enumerble. 2 For the present discussion, vribles only occur free; i.e. they re not bounded by xed-point opertor. See [36] for further detils. 19

20 Tble 4: Axiomtizing C for Finite CCS: Rule Set E 4. (A1){(A4) from Tble 1; (Exp) from Tble 2; (Res1){(Res3), (Rel1){(Rel3) from Tble 3 ( 1) ::x = :x (2) x + :x = :x (3) :(x + :y) = :(x + :y) + :y Denition 4.3 Let X be vrible, nd t be CCS term involving X. Then X is gurded in t if every occurrence of X in t flls within the scope of prex opertor. For exmple, X is gurded in :X nd :Xj(b:(X + c:nil)), but it is not gurded in X + b:x. We now hve the following result. Theorem 4.4 Let X be gurded in t. Then eqution X = t hs unique solution up to. As n ppliction of (Unr) nd (UFI), suppose we wish to prove tht A nd B re bisimilr, where A = :A nd B = ::B. Consider the eqution X = ::X. We cn show tht both A nd B re solutions to this eqution: A = :A by (Unr) = ::A by (Unr) B = :B by (Unr) Since X is gurded in ::X, X = ::X hs unique solution, nd consequently using (UFI) one my conclude tht A = B. 4.2 Axiomtizing C This section presents n xiomtiztion for C nd CCS. Following the development in the previous subsection, we rst consider the Finite CCS frgment nd then full CCS Axiomtizing Finite CCS To begin with, it should be noted tht the xioms in rule set E 3 of Tble 3 re lso sound for C, since whenever p q it immeditely follows tht p C q. In order to obtin full xiomtiztion for C, then, we need only dd xioms reecting the specil sttus of the ction in this congruence. One tempting xiom to dd would be x = :x; however, this is not sound for C, since it would llow one to prove tht ::nil = :nil, which is not vlid. The correct rules re listed in Tble 4 nd re often clled the lws. Rule ( 1) llows for the \bsorption" of ctions tht immeditely follows prexing opertions. Rule ( 2) is more subtle, nd my be understood s follows. First, note tht 20

21 ny strong trnsition of :x is lso strong trnsition of x + :x. Secondly, ny strong trnsition of x + :x, including ny -trnsition, my be mtched by n pproprite wek trnsition in :x. The nl rule, (3) is perhps the most dicult to interpret; note tht the strong trnsition :(x + :y) + :y?! y of the right-hnd side my however be mtched by the wek trnsition :(x + :y) =) y of the left-hnd side. Somewht surprisingly, these rules suce; the xiomtiztion E 4 is sound nd complete for C nd Finite CCS Axiomtizing Full CCS The sme observtions for lso hold for C vis vis sound nd complete xiomtiztions: none cn exist. The (Unr) nd (UFI) rules nevertheless still hold, lthough the chrcteriztion of which equtions hve unique xpoints becomes somewht more complex; gurdedness no longer suces. To see this, consider the eqution X = :X. X is gurded in :X, nd yet ny process cpble of n initil ction is solution to this eqution up to C. In prticulr, ::nil C :::nil nd :b:nil C ::b:nil, nd yet ::nil 6 C :b:nil. One potentil solution to this problem is to require stronger condition thn gurdedness in equtions. Denition 4.5 Let X be vrible nd t CCS term involving X. Then X is strongly gurded in t if every occurrence of X flls within the scope of prexing opertor where 6=. Tht is, X is strongly gurded in t if prex opertor involving visible ction \gurds" ech occurrence of X in t. Note tht X is not strongly gurded in :X. However, even if X is strongly gurded in t it does not follow tht X = t hs unique solution up to C. To see this, consider the eqution X = (:X j :nil)nfg: X is strongly gurded in the right-hnd side of the eqution, nd yet it cn be shown tht e.g. :b:nil nd :c:nil re both solutions. We my nevertheless x this problem by requiring the following. Denition 4.6 Let X be vrible nd t CCS term involving X. Then X is sequentil in t if no occurrence of X in t flls within the scope of prllel composition opertor. As exmples, X is sequentil in :X nd :X + (b:nil j c:nil) but not sequentil in :X j b:nil. The following cn now be proved. Theorem 4.7 Let X = t be n eqution with X strongly gurded nd sequentil in t. Then X = t hs unique solution up to C. 21

22 We conclude this section with n extended exmple illustrting the use of the xioms. Recll the simple communictions protocol P given in Section 2.1 nd the speciction Svc in Section 3.3. We my estblish tht E 4 [ f(unr); (UFI)g ` P = Svc s follows. First note tht X is strongly gurded nd sequentil in send:recv:x nd consequently hs unique solution up to C. Therefore, we need only show tht both P nd Svc re solutions to this eqution; then, by (UFI), P = Svc. Now, Svc = send:recv:svc by (Unr) so Svc is solution. As for P, we cn prove tht P = (S[put=msg; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg using (Unr), so it suces to prove tht the right-hnd side is solution to the given eqution. The proof of this my be found in Figure 3. 5 Renement Orderings for CCS This chpter hs so fr concentrted on the role of behviorl equivlences in process lgebr in generl, nd CCS in prticulr. We now shift our ttention to renement orderings, nd to prticulr clss of renement orderings tht re often referred to s the filures/testing orderings. This section presents denition of these orderings nd gives xiomtiztions for them for CCS. 5.1 The Filures/Testing Orderings The motivtion for the filures/testing orderings rises from two sources. On the one hnd, equivlences sometimes impose overly severe restrictions on designer dening lowerlevel design tht is intended to implement higher-level one. In prticulr, equivlences require tht the behviors of the designs be identicl; this precludes higher-level design oering severl possibilities for behvior or including \don't-cre points". This suggests tht n ordering in which \more deterministic" system is lrger, or \better", thn less deterministic one would be desirble. On the other hnd, while nd C bstrct from internl computtion nd re sensitive to dedlock, it cn be rgued tht they re overly sensitive to unobservble dierences in the brnching structure of systems. As n exmple, consider the two CCS denitions P = :b:c:nil + :b:d:nil nd Q = :(b:c:nil + b:d:nil). These two systems re not relted by ; the formul [[]]hhbiihhciitt is stised by the ltter nd not the former. However, user ought not to be ble to distinguish them, since to user it does not mtter when the nondeterministic choice tht ultimtely elimintes the possibility of c or d is mde. The filures [12, 27] nd testing [19, 25] orderings dier substntilly in their pproches to ddressing these issues, nd yet the resulting orderings turn out to coincide. In this section we follow the filures presenttion given in [32] becuse it requires the introduction of less nottion given the mchinery we hve lredy developed. We need the following denitions. 22

23 (S[put=ck; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg = send: ((msg:ck:s)[put=ck; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send:: ((ck:s)[put=ck; get ck=ck] j (get:m) j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send: ((ck:s)[put=ck; get ck=ck] j (get:m) j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (1) = send:: ((ck:s)[put=ck; get ck=ck] j M j (recv:ck:r)[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send: ((ck:s)[put=ck; get ck=ck] j M j (recv:ck:r)[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (1) = send:recv: ((ck:s)[put=ck; get ck=ck] j M j (ck:r)[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send:recv:: ((ck:s)[put=ck; get ck=ck] j get ck:m j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send:recv: ((ck:s)[put=ck; get ck=ck] j get ck:m j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (1) = send:recv: (S[put=ck; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (Exp), (Rel1){(Rel3), (Res1){(Res3) = send:recv: (S[put=ck; get ck=ck] j M j R[get=msg; put ck=ck])nfget; put; get ck; put ckg) by (1) Figure 3: Proving tht P = Svc. 23

24 Denition 5.1 Let hq; A;?!i be n LTS with 2 A, let q 2 Q, nd let s 2 (A? fg) be sequence of visible ctions. s 1. q =) holds if there exists q 0 such tht q L(q) denotes the set of ll trces of q. s =) q 0. In this cse we sy s is trce of q. 2. q refuses B A? fg if jbj < 1 nd for ll b 2 B; there exists no q 0 such tht b q =) q q is divergent, written q *, if nd only if there exists n innite sequence q 0 ; q 1 ; : : : such tht q = q 0 nd q i?! q i+1 for ll i 0. q * s if nd only if there exists (possibly empty) prex s 0 of s nd stte q 0 such tht q =) s0 q 0 nd q 0 *. When this is the cse we sy q diverges on s. We write q + s if q * s is not true nd sy tht q converges on s in this cse. 4. A stte q is totlly convergent if q + s holds for ll sequences s. 5. Let s be sequence of visible ctions nd B A be nite. Then hs; Bi is filure for q if either q * s or there is q 0 s such tht q =) q 0 nd q 0 refuses B. We use F (q) to represent the set of ll filures of q. The filures/testing ordering rely on the notions of trce, refusl, divergence nd filure. Intuitively, trce of stte consists of sequence of visible ctions the stte cn perform, with rbitrry mounts of internl computtion llowed in between. A refusl consists of nite set of visible ctions tht stte is incpble of engging in, no mtter how much internl computtion is performed. A stte is divergent if it cn engge in n innite sequence of internl trnsitions, thereby ignoring its environment; q * s holds if, in the course of \executing" s, q could enter divergent stte. Finlly, filure consists of sequence of ctions nd set of \oered ctions" tht stte cn fil to complete, either by diverging in the course of performing the sequence or completing the sequence nd rriving t stte tht is incpble of responding to the oered ctions. As exmples, consider the following. The pir h; fbgi is filure of :b:nil + :c:nil nd of :(:b:nil + :c:nil) but not of :(b:nil+c:nil). Both of the former processes hve =) trnsitions to c:nil, which refuses fbg; the lst process hs no such trnsition. Consider D = :D; D * s for ny sequence s of visible ctions, nd consequently hs; Bi is filure for ny D for ny sequence s nd nite set of ctions B. The sets L(q) nd F (q) stisfy number of properties. For exmple, the empty sequence is in L(q) for ny q. In ddition, if q + s then s 2 L(q) if nd only if there is B such tht hs; Bi 2 F (q). It should lso be noted tht if hs; Bi 2 F (q) nd B 0 B then hs; B 0 i 2 F (q). Reders re referred to [32] for other such properties. We now introduce the following orderings nd equivlences. Denition 5.2 Let hq; A;?!i be n LTS, with p; q 2 Q. 24

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A BRIEF INTRODUCTION TO UNIFORM CONVERGENCE. In the study of Fourier series, several questions arise naturally, such as: c n e int

A BRIEF INTRODUCTION TO UNIFORM CONVERGENCE. In the study of Fourier series, several questions arise naturally, such as: c n e int A BRIEF INTRODUCTION TO UNIFORM CONVERGENCE HANS RINGSTRÖM. Questions nd exmples In the study of Fourier series, severl questions rise nturlly, such s: () (2) re there conditions on c n, n Z, which ensure

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

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

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

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

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

The Algebra (al-jabr) of Matrices

The Algebra (al-jabr) of Matrices Section : Mtri lgebr nd Clculus Wshkewicz College of Engineering he lgebr (l-jbr) of Mtrices lgebr s brnch of mthemtics is much broder thn elementry lgebr ll of us studied in our high school dys. In sense

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

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

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

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

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

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

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

More information

1.4 Nonregular Languages

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

More information

Review of Control Flow Semantics

Review of Control Flow Semantics Review of Control Flow Semntics Riccrdo Pucell Deprtment of Computer Science Cornell University April 19, 2001 I hve to dmit, I ws looking forwrd to reviewing this book. It nswered wht ws for me 6-yer

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

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

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

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

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

More information

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

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

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

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

More information

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

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

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

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

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

1 Introduction. Abstract

1 Introduction. Abstract LANGUAGES FOR CONCURRENCY Ctusci Plmidessi INRIA nd LIX, École Polytechnique ctusci@lix.polytechnique.fr Frnk D. Vlenci CNRS nd LIX, École Polytechnique frnk.vlenci@lix.polytechnique.fr Abstrct This essy

More information

Vyacheslav Telnin. Search for New Numbers.

Vyacheslav Telnin. Search for New Numbers. Vycheslv Telnin Serch for New Numbers. 1 CHAPTER I 2 I.1 Introduction. In 1984, in the first issue for tht yer of the Science nd Life mgzine, I red the rticle "Non-Stndrd Anlysis" by V. Uspensky, in which

More information

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

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

More information

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

Chapter 1. Basic Concepts

Chapter 1. Basic Concepts Socrtes Dilecticl Process: The Þrst step is the seprtion of subject into its elements. After this, by deþning nd discovering more bout its prts, one better comprehends the entire subject Socrtes (469-399)

More information

Numerical Integration

Numerical Integration Chpter 5 Numericl Integrtion Numericl integrtion is the study of how the numericl vlue of n integrl cn be found. Methods of function pproximtion discussed in Chpter??, i.e., function pproximtion vi the

More information

Ordinary differential equations

Ordinary differential equations Ordinry differentil equtions Introduction to Synthetic Biology E Nvrro A Montgud P Fernndez de Cordob JF Urchueguí Overview Introduction-Modelling Bsic concepts to understnd n ODE. Description nd properties

More information

CS375: Logic and Theory of Computing

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

More information

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

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1 3 9. SEQUENCES AND SERIES 63. Representtion of functions s power series Consider power series x 2 + x 4 x 6 + x 8 + = ( ) n x 2n It is geometric series with q = x 2 nd therefore it converges for ll q =

More information

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity

Dually quasi-de Morgan Stone semi-heyting algebras II. Regularity Volume 2, Number, July 204, 65-82 ISSN Print: 2345-5853 Online: 2345-586 Dully qusi-de Morgn Stone semi-heyting lgebrs II. Regulrity Hnmntgoud P. Snkppnvr Abstrct. This pper is the second of two prt series.

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

STEP FUNCTIONS, DELTA FUNCTIONS, AND THE VARIATION OF PARAMETERS FORMULA. 0 if t < 0, 1 if t > 0.

STEP FUNCTIONS, DELTA FUNCTIONS, AND THE VARIATION OF PARAMETERS FORMULA. 0 if t < 0, 1 if t > 0. STEP FUNCTIONS, DELTA FUNCTIONS, AND THE VARIATION OF PARAMETERS FORMULA STEPHEN SCHECTER. The unit step function nd piecewise continuous functions The Heviside unit step function u(t) is given by if t

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

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

Module 6: LINEAR TRANSFORMATIONS

Module 6: LINEAR TRANSFORMATIONS Module 6: LINEAR TRANSFORMATIONS. Trnsformtions nd mtrices Trnsformtions re generliztions of functions. A vector x in some set S n is mpped into m nother vector y T( x). A trnsformtion is liner if, for

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

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 dierentil eqution (ODE) du f(t) dt with initil condition u() : Just

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

x = b a N. (13-1) The set of points used to subdivide the range [a, b] (see Fig. 13.1) is

x = b a N. (13-1) The set of points used to subdivide the range [a, b] (see Fig. 13.1) is Jnury 28, 2002 13. The Integrl The concept of integrtion, nd the motivtion for developing this concept, were described in the previous chpter. Now we must define the integrl, crefully nd completely. According

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

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

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

More information

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

Lecture 3: Curves in Calculus. Table of contents

Lecture 3: Curves in Calculus. Table of contents Mth 348 Fll 7 Lecture 3: Curves in Clculus Disclimer. As we hve textook, this lecture note is for guidnce nd supplement only. It should not e relied on when prepring for exms. In this lecture we set up

More information

Chapter 2 Finite Automata

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

More information

Solution for Assignment 1 : Intro to Probability and Statistics, PAC learning

Solution for Assignment 1 : Intro to Probability and Statistics, PAC learning Solution for Assignment 1 : Intro to Probbility nd Sttistics, PAC lerning 10-701/15-781: Mchine Lerning (Fll 004) Due: Sept. 30th 004, Thursdy, Strt of clss Question 1. Bsic Probbility ( 18 pts) 1.1 (

More information