Basic Process Algebra with Iteration: Completeness of its Equational Axioms

Size: px
Start display at page:

Download "Basic Process Algebra with Iteration: Completeness of its Equational Axioms"

Transcription

1 Bsic Process Algebr with Itertion: Completeness of its Equtionl Axioms Wn Fokkink CWI Kruisln 413, 1098 SJ Amsterdm, The Netherlnds Hns Zntem Utrecht University Pduln 14, 3508 TB Utrecht, The Netherlnds Abstrct Bergstr, Bethke nd Ponse proposed n xiomtiztion for Bsic Process Algebr extended with (binry) itertion. In this pper, we prove tht this xiomtiztion is complete with respect to strong bisimultion equivlence. To obtin this result, we will set up term rewriting system, bsed on the xioms, nd prove tht this term rewriting system is terminting, nd tht bisimilr norml forms re syntcticlly equl modulo AC. 1 Introduction Kleene [10] defined binry opertor x y in the context of finite utomt, which denotes the iterte of x nd y. Intuitively, the expression x y cn choose to execute either x, fter which it evolves into x y gin, or y, fter which it termintes. Kleene formulted some lgebric lws for this opertor, notbly (in our nottion) x y = x x y + y. Copi, Elgot nd Wright [6] proposed simplifiction of Kleene s setting, e.g. they defined unry version of the Kleene str in the presence of n empty word. The unry Kleene str hs been studied extensively ever since. Redko [15] (see lso [5]) proved for the unry Kleene str tht complete finite xiomtiztion for lnguge equlity does not exist. Slom [16] presented complete finite xiomtiztion which incorportes one conditionl xiom, nmely (in our nottion) x = y x + z implies x = y z if y does not incorporte the empty word. According to Kozen [11] this lst property 1

2 is not lgebric, in the sense tht it is not preserved under substitution of terms for ctions. He proposed two lterntive conditionl xioms which do not hve this drwbck. These xioms however re not sound in the setting of (strong) bisimultion equivlence. 1 Milner [12] studied the Kleene str in the setting of bisimultion equivlence, nd rised the question whether there exists complete xiomtiztion for it. Bergstr, Bethke nd Ponse [3] incorported the binry Kleene str in Bsic Process Algebr (BPA). They suggested three xioms BKS1-3 for BPA, where xiom BKS1 is the defining xiom from Kleene, while their most dvnced xiom BKS3 origintes from Troeger [18]: x (y (x + y) z + z) = (x + y) z In this pper we prove tht BKS1-3, together with the five stndrd xioms for BPA, form complete xiomtiztion for BPA with respect to bisimultion equivlence. For this purpose, we will replce itertion by proper itertion x y. This construct executes x t lest one time, or in other words, x y is equivlent to x x y. The xioms BKS1-3 re dpted to this new setting, nd we will define term rewriting system bsed on the xioms of BPA. Deducing termintion of this TRS is key step in the completeness proof; we will pply the strtegy of semntic lbelling from one of the uthors [20]. Finlly, we will show tht bisimilr norml forms re syntcticlly equl modulo AC. These results together imply tht the xiomtiztion for BPA is complete with respect to bisimultion equivlence. Moreover, the pplied method yields n efficient lgorithm to decide whether or not two terms re bisimilr. Sewell [17] proved tht if the dedlock δ is dded to BPA, then complete finite equtionl xiomtiztion does not exist. In [7] it hs been shown tht if sequentil composition nd itertion re replced by their prefix counterprts, then six simple equtionl xioms re complete for this lgebr. Acknowledgements. Jn Bergstr is thnked for his enthusistic support, nd Jos vn Wmel for mny stimulting discussions. 2 BPA with Binry Kleene Str This section introduces the bsic notions. We ssume n lphbet A of tomic ctions, together with three binry opertors: lterntive composi- 1 For exmple, one of Kozen s xioms is x + y x + z = x = x + y z = x, which induces ( + b) c + c = ( + b) c. 2

3 tion +, sequentil composition, nd binry Kleene str. Tble 1 presents n opertionl semntics for BPA in Plotkin style [14]. The specil symbol represents (successful) termintion. x + y x x x y y y + x x x y x y y x y x + y x x x y + x x x x y x y x x x y x x y y y x y y Tble 1: Action rules for BPA Our model for BPA consists of ll the closed terms tht cn be constructed from the tomic ctions nd the three binry opertors. Tht is, the BNF grmmr for the collection of process terms is s follows, where A: p ::= p + p p p p p. In the sequel the opertor will often be omitted, so pq denotes p q. As binding convention, nd bind stronger thn +. Often, p q will be bbrevited to pq. Process terms re considered modulo (strong) bisimultion equivlence from Prk [13]. Intuitively, two process terms re bisimilr if they hve the sme brnching structure. Definition 1 Two processes p nd q re bisimilr, denoted by p q, if there exists symmetric binry reltion B on processe which reltes p nd q, such tht: - if rbs nd r - if rbs nd r r, then there is trnsition s s such tht r Bs,, then s. 3

4 The ction rules in Tble 1 re in the pth formt of Beten nd Verhoef [2]. Hence, bisimultion equivlence is congruence with respect to ll the opertors, which mens tht if p p nd q q, then p + q p + q nd pq p q nd p q p q. See [2] for the definition of the pth formt, nd for proof of this congruence result. (This proof uses the extr ssumption tht the rules re well-founded. Fokkink nd vn Glbbeek [8] showed tht this requirement cn be dropped.) Furthermore, the ction rules for BPA re pure, which is syntctic criterion from Groote nd Vndrger (1992), nd the two rules for itertion incorporte the Kleene str in the left-hnd side of their conclusions. Hence, BPA is n opertionlly conservtive extension of BPA, i.e. the ction rules for itertion do not influence the trnsition systems of BPA terms. See Verhoef [19] for the definitions, nd for proof of this conservtivity result. Tble 2 contins n xiom system for BPA. It consists of the stndrd xioms A1-5 for BPA, together with three xioms BKS1-3 for itertion. In the sequel, p = q will men tht the equlity cn be derived from these xioms. The xiomtiztion for BPA is sound with respect to bisimultion equivlence, i.e. if p = q then p q. Since bisimultion equivlence is congruence, this cn be verified by checking soundness for ech xiom seprtely, which is left to the reder. The purpose of this pper is to prove tht the xiomtiztion is complete with respect to bisimultion, i.e. if p q then p = q. A1 x + y = y + x A2 (x + y) + z = x + (y + z) A3 x + x = x A4 (x + y)z = xz + yz A5 (xy)z = x(yz) BKS1 x(x y) + y = x y BKS2 (x y)z = x (yz) BKS3 x (y((x + y) z) + z) = (x + y) z Tble 2: Axioms for BPA 4

5 3 A Conditionl Term Rewriting System Our im is to define Term Rewriting System (TRS) for process terms in BPA tht reduces ech term to unique norml form, such tht if two terms re bisimilr, then they hve the sme norml form. However, we shll see tht one cnnot hope to find such TRS for itertion. Therefore, we will replce it by new, equivlent opertor p q, representing the behviour of p(p q), nd we will develop TRS for the lgebr BPA. We wnt our TRS to be terminting, so we cnnot dd the xioms A1,2 s rewrite rules. Therefore, process terms re considered modulo AC, tht is, modulo ssocitivity nd commuttivity of the Turning round two rules for BPA The xiom A3 yields the expected rewrite rule x + x x. Usully, in BPA, the xiom A4 s rewrite rule ims from left to right. However, in BPA we need this rewrite rule in the opposite direction. For exmple, in order to reduce the term (( + b) c) + b(( + b) c) + c to the term ( + b) c, we need the reduction ( + b) c) + b(( + b) c) ( + b)(( + b) c). Hence, we define the rewrite rule for A4 the other wy round. xz + yz (x + y)z. In BPA the xiom A5 ims from left to right too, but since we hve reversed A4, we must do the sme for A5, otherwise the TRS would not be confluent. For exmple, the term (b)d + (c)d would hve two different norml forms: (bd) + (cd) nd (b + c)d. So we opt for the rule 3.2 Proper itertion x(yz) (xy)z. Although we hve lredy defined prt of TRS tht should reduce terms tht re bisimilr to the sme norml form, we shll see now tht such TRS does not exist t ll. 5

6 Since x y + z x y if y + z y, such terms should hve the sme norml form. Therefore, one would expect rule x y + z x y if y + z y. However, this rule does not yield unique norml forms, becuse we hve reversed the rule for A4. For exmple, the term (b + ce) + ce + de would hve two different norml forms: (b + ce) + de nd (b + ce) + (c + d)e. To void this compliction, we replce itertion by n opertor x y, clled proper itertion, which displys the behviour of x(x y). 2 The opertionl semntics nd the xiomtiztion for proper itertion re given in Tbles 3 nd 4. They re obtined from the ction rules nd xioms for itertion, using the equivlences x y x y + y nd x y x(x y). Note tht BPA + (x y = x(x y)) PI1-3, BPA + (x y = x y + y) BKS1-3. So we find tht the xiomtiztion in Tble 4 is complete for BPA if nd only if the xiomtiztion in Tble 2 is complete for BPA. x x x y x (x y + y) x x y x y + y Tble 3: Action rules for proper itertion PI1 x(x y + y) = x y PI2 (x y)z = x (yz) PI3 x (y((x + y) z + z) + z) = x((x + y) z + z) Tble 4: Axioms for proper itertion 2 The stndrd nottion for this construct would be x + y, but we wnt to void mbiguous use of the +. 6

7 3.3 One rule for xiom PI2 Now tht we hve replced itertion by proper itertion, we cn continue to define rewrite rules for this new opertor. We strt with the one for xiom PI2. The question is whether it should rewrite from left to right or vice vers. If it would rewrite from left to right, it would clsh with the rule for A4. For exmple, then the term ( b)c+dc would hve two different norml forms: (bc) + dc nd ( b + d)c. Hence, PI2 yields the rule 3.4 Four rules for xiom PI1 The next rule stems from xiom PI1: x (yz) (x y)z. x(x y + y) x y. This rewrite rule cuses serious complictions concerning confluence; it turns out tht we need three extr rules to obtin this property. 1. A term x(y z + z) + y(y z + z) hs two different reductions: x(y z + z) + y z nd (x + y)(y z + z). So for the ske of confluence, one of these two reducts should reduce to the other. If we would dd the rule (x+y)(y z+z) x(y z+z)+y z to the TRS, then the term (c+bc)((bc) d+d) would hve two different norml forms: (c)((bc) d + d) + (bc) d nd (( + b)c)((bc) d + d). Hence, we opt for the rule x(y z + z) + y z (x + y)(y z + z). 2. A term x(y(y z + z)) hs two different reductions: x(y z) nd (xy)(y z + z). A rule (xy)(y z + z) x(y z) clshes with the rule for A5, becuse then the term ((bc))((bc) d + d)) would get two different norml forms: ((bc) d) nd ((b)c)((bc) d + d)). 7

8 Therefore, we define x(y z) (xy)(y z + z). 3. Finlly, term x (y(y z + z)) hs two different reductions: x (y z) nd (x y)(y z + z). Since rule (x y)(y z + z) x (y z) would clsh with the rule for PI2, we opt for x (y z) (x y)(y z + z). 3.5 Two conditionl rules for xiom PI3 The obvious interprettion of xiom PI3 s rewrite rule, x (x ((x + x ) z + z) + z) x((x + x ) z + z), obstructs confluence. For if x nd x re norml forms, while the expression x + x is not, then fter reducing x + x we cn no longer pply this rule. Therefore, we trnslte PI3 to conditionl rule: x (x (y z + z) + z) x(y z + z) if x + x y. Agin, this rule leds to TRS tht is not confluent, becuse term x (y(y z + z) + z) with x + y y hs two reductions: x (y z + z) nd x(y z + z). So in order to obtin confluence, we dd one lst conditionl rule to the TRS: x (y z + z) x(y z + z) if x + y y. 3.6 The entire TRS The entire TRS is given once gin in Tble 5. The rules re to be interpreted modulo AC. It is esy to see tht ll rules cn be deduced from BPA. The usul strtegy for deducing tht ech term hs unique norml form, is to prove tht the TRS is both wekly confluent, (i.e. if term p hs reductions p p p, then there exists q such tht p q p ), nd terminting (i.e. there re no infinite reductions). Newmn s Lemm sys tht such TRS reduces ech term to unique norml form, which does not reduce ny further. 8

9 1. x + x x 2. xz + yz (x + y)z 3. x(yz) (xy)z 4. x (yz) (x y)z 5. x(x y + y) x y 6. x(y z + z) + y z (x + y)(y z + z) 7. x(y z) (xy)(y z + z) 8. x (y z) (x y)(y z + z) 9. x (x (y z + z) + z) x(y z + z) if x + x y 10. x (y z + z) x(y z + z) if x + y y Tble 5: Rewrite rules for BPA Although our choice of rewrite rules hs been motivted by the wish for wekly confluent TRS, it is not so esy to deduce this property yet, due to the presence of conditionl rules. The next exmple shows tht the usul method for checking wek confluence of TRS, nmely verifying this property for ll overlpping redexes, does not work in conditionl setting. Exmple 2 Consider the TRS which consists of the rules f(x) b if x, c. There re no overlpping redexes, but this TRS is not wekly confluent: f(c) f() b. However, it will turn out tht the confluence property is not needed in the proof of the min theorem, which sttes tht bisimilr norml forms re equl modulo AC. Hence, confluence will simply be consequence of this theorem. 9

10 3.7 Termintion Proving termintion of the TRS in Tble 5, modulo AC, is complicted mtter. This is minly due to the presence of Rule 7, in which the left-hnd side cn be obtined from the right-hnd side by the removl of subterms. A powerful technique for proving termintion of TRSs tht incorporte such rules is semntic lbelling [20], where opertion symbols tht occur in the rewrite rules re supplied with lbels, which depend on the semntics of the rguments. Then two TRSs re involved: the originl system nd the lbelled system. The min theorem of [20] sttes tht the lbelled system termintes if nd only if the originl system termintes. The theory of semntic lbelling hs been developed for unconditionl TRSs. Therefore, we dpt the TRS in Tble 5 to n unconditionl TRS R, simply by removing the conditions from the lst two rules. We shll prove tht R is terminting, which immeditely implies termintion of the conditionl TRS in Tble 5. Proposition 3 The TRS R is terminting. Proof. The method from [20] strts with choosing model, which consists of set M, nd for ech function symbol f in the originl signture with rity n mpping f M : M n M, such tht for every rewrite rule, nd for ll possible vlues for its vribles in the model, the left-hnd side nd the right-hnd side re equl in the model. Here we choose the model to be the positive nturl numbers. Ech process p is interpreted by its norm p, being the lest number of steps in which it cn terminte. This norm cn be defined inductively s follows: = 1 p + q = min{ p, q } pq = p + q p q = p + q. Note tht norm is ssocitive nd commuttive with respect to the choice opertor, which is essentil in order to obtin the termintion result modulo AC. Clerly norm is preserved under bisimultion equivlence. Since the Rules 1-8 of R re sound with respect to bisimultion, it follows tht norm is preserved under ppliction of these rewrite rules. And it is esy to verify tht Rules 9 nd 10 of R, which re not sound becuse they lck their originl conditions, preserve norm too. Next, we select lbels for the function symbols. As lbels for the opertors sequentil composition nd proper itertion we choose the positive nturl numbers, while the toms nd the choice opertor remin unchnged. 10

11 In ech ground term, the occurrences of sequentil composition nd proper itertion re lbelled s follows: we replce p q by p q q nd p q by p[ q ]q. Finlly, for ech rule in the TRS we construct collection of lbelled rules. This is done by replcing the vribles in the originl rule by ll possible vlues in the model, nd computing the resulting lbels for the opertors. This results in the following TRS R, where the rules re defined for positive nturl numbers i nd j. x + x x x i z + y i z (x + y) i z x i + j (y j z) (x i y) j z x[i + j](y j z) (x[i]y) j z x i (x[i]y + y) x[i]y x i (y[i]z + z) + y[i]z (x + y) i (y[i]z + z) x i + j (y[j]z) (x i y) j (y[j]z + z) x[i + j](y[j]z) (x[i]y) j (y[j]z + z) x[i](x i (y[i]z + z) + z) x i (y[i]z + z) x[i](y[i]z + z) x i (y[i]z + z) Suppose tht R dmits n infinite reduction. Replce the vribles in this reduction by constnt to obtin n infinite ground reduction in R. For ech symbol nd tht occurs in this reduction, compute its corresponding lbel. This wy the infinite ground reduction in R trnsforms into n infinite ground reduction in R. Hence, termintion of R implies termintion of R. It remins to prove termintion of R. Although R is TRS with infinitely mny rules, this is much esier thn proving termintion of R. Define weight function w: w() = 1 w(p + q) = w(p) + w(q) w(p i q) = w(p) + iw(q) w(p[i]q) = w(p) + (i + 1)w(q) It is esy to verify tht for ny choice of vlues for vribles in ny rule, the weight of the left-hnd side is strictly greter thn the weight of the right-hnd side. For exmple, in the cse of Rule 7 these weights re nd w(x) + (i + j)w(y) + (i + j)(j + 1)w(z) w(x) + (i + j)w(y) + j(j + 2)w(z) 11

12 respectively. And (i + j)(j + 1) > j(j + 2) for i, j 1. Due to the strict monotonic behviour of w (here it is essentil tht i > 0) we conclude tht ech reduction step yields strict decrese of weight. Hence the system R is terminting, nd so R is terminting. 4 Norml Forms Decide Bisimilrity In the previous section we hve developed TRS for BPA tht reduces terms to norml form. Since ll rewrite rules re sound with respect to bisimultion equivlence, it follows tht ech term is bisimilr with its norml forms. So in order to determine completeness of the xiomtiztion for BPA with respect to bisimultion equivlence, it is sufficient to prove tht if two norml forms re bisimilr, then they re equl modulo AC. 4.1 An ordering on process terms As induction bse in the proof of our min theorem, we will need wellfounded ordering on process terms tht should preferbly hve the following properties: 1. p p + q p < pq p < p q q p + q q < pq q < p q. 2. The ordering is preserved under bisimultion. However, n ordering combining these properties is never well-founded, becuse for such n ordering we hve p q p q + q < p(p q + q) Since p(p q + q) p q, it follows tht p q < p q. The norm, indicting the lest number of steps process must mke before it cn terminte, induces n ordering tht lmost stisfies ll desired properties. The only serious drwbck of this ordering is tht p p + q. Therefore we dpt it to n ordering induced by L-vlue, which is defined s follows: L(p) = mx{ p p is proper substte of p} where proper substte mens tht p cn evolve into p by one or more trnsitions. Since norm is preserved under bisimultion equivlence, the sme holds for L. 12

13 Lemm 4 If p q, then L(p) = L(q). Proof. If p is proper substte of p, then bisimilrity of p nd q implies tht there is proper substte q of q such tht p q, nd so p = q. Hence, L(p) L(q), nd by symmetry L(q) L(p). We deduce the inductive definition for L-vlue. L(p+q) is the mximum of the collection { p p proper substte of p} { q q proper substte of q}, so L(p+q) = mx{l(p), L(q)}. Next, L(pq) is the mximum of the collection { p q p proper substte of p} { q } { q q proper substte of q}, so L(pq) = mx{l(p) + q, L(q)}. Finlly, L(p q) is the mximum of the collection { p (p q + q) p proper substte of p} { p q + q } { q q proper substte of q}, so p q = mx{l(p) + q, L(q)}. Recpitulting, we hve found: L() = 0 L(p + q) = mx{l(p), L(q)} L(pq) = mx{l(p) + q, L(q)} L(p q) = mx{l(p) + q, L(q)}. Hence, L-vlue too stisfies lmost ll the requirements formulted bove; only, we hve inequlities L(q) L(pq) nd L(q) L(p q), insted of the desired strict inequlities. Therefore, we introduce second weight function g on process terms, defined by: g() = 0 g(p + q) = mx{g(p), g(q)} g(pq) = g(q) + 1 g(p q) = g(q) + 1. Note tht g-vlue is not preserved under bisimultion equivlence. However, the following lemm holds. Lemm 5 If p q, then g(p) g(q). 13

14 Proof. For ech rewrite rule it is esily checked tht the g-vlue of the left-hnd side is greter thn or equl thn the g-vlue of the right-hnd side. Since the functions tht re used in the definition of g re wekly monotonous in their coordintes, we my conclude tht g-vlue is never incresed by rewrite step. In the proof of the min theorem we will pply induction on lexicogrphicl combintion of L-vlue nd g-vlue. 4.2 Some lemms We deduce three lemms tht will be used in the proof of the min theorem. The first lemm is typicl for normed processes [1], i.e. for processes tht re ble to terminte in finitely mny trnsitions. This lemm origintes from Cucl [4]. Lemm 6 If pr qr, then p q. Proof. A trnsition p r p r in pr cnnot be mimicked by trnsition q r r in qr, becuse p r > r. Hence, ech trnsition p r p r is mimicked by trnsition q r q r, nd vice vers. This induces bisimultion reltion between p nd q; the trnsition p p in p is mimicked by the trnsition q q in q, nd vice vers. Definition 7 We sy tht two process terms p nd q hve behviour in common if there re p nd q such tht p p nd q q nd p q. Lemm 8 If two terms pq nd rs hve behviour in common, nd q s, then either q ts for some t, or q s. Proof. If pq q nd rs r s with q r s, or if pq q nd rs s with q s, then we re done. And pq p q nd rs s with p q s would contrdict q s. Thus, the only interesting cse is if pq p q nd rs r s with p q r s. The inequlity q s then yields p r. We show, with induction on p, tht p q r s together with p r indicte either q ts for some t or q s. If p = 1, then p, nd so p q q. Since p q r s, this trnsition cn be mimicked by trnsition r s r s or r s s, nd so q r s or q s respectively. Next, let p = n + 1. Clerly, there is trnsition p p with p = n. Since p q r s, nd p q p q, there must be trnsition r s r s with p q r s. Since r p = n + 1 implies r n = p, the induction hypothesis lerns tht either q ts for some t, or q s. 14

15 Lemm 9 If term rs hs norml form q, then pq or p q is not norml form. Proof. Suppose tht q is norml form of term rs. Ech rule in Tble 5 tht pplies to term of the form tu or t u, reduces it to one of either forms gin. So q must be in one of either forms. But Rules 3, 4, 7 nd 8 reduce p(tu) nd p (tu) nd p(t u) nd p (t u) respectively. Hence, pq nd p q re not in norml form. 4.3 The min theorem Process terms re considered modulo AC. From now on, this equivlence is denoted by p = AC q, nd we sy tht p nd q re of the sme form. Clerly, ech process term p is sum of terms of the form nd qr nd q r, which re clled the summnds of p. Theorem 10 If two norml forms p nd q re bisimilr, then p = AC q. Proof. In order to prove the theorem, we prove three extr sttements in prllel. A. If two norml forms p = AC rs nd q = AC tu hve common behviour, then s = AC u. B. If two norml forms p = AC rs nd q = AC t u hve common behviour, then s = AC t u + u. C. If two norml forms p = AC r s nd q = AC t u hve common behviour, then r s = AC t u. The sttement in the min theorem is lbelled D. If L(p) = L(q) = 0, then both p nd q must be sums of toms. So in this cse A nd B nd C re empty sttements. And D holds too, becuse bisimilrity of p nd q indictes tht they contin exctly the sme toms, nd Rule 1 ensures tht both terms contin ech of these toms only once. Next, fix n m > 0 nd ssume tht we hve lredy proved the four sttements if L(p) nd L(q) re smller thn m. We will prove it for the cse tht they re equl to m. Let A n nd B n nd C n nd D n denote the ssertions for pirs p, q with mx{l(p), L(q)} m nd g(p) + g(q) n. They re proved by induction on n. The cse n = 0 corresponds with the cse L(p) = L(q) = 0, becuse if g(p) + g(q) = 0, then both p nd q must be sums of toms. As induction hypothesis we now ssume A n, B n, C n nd D n, nd we shll prove A n+1, B n+1, C n+1 nd D n+1. 15

16 1. A n+1 is true. Let norml forms rs nd tu hve behviour in common, with L(rs) m nd L(tu) m nd g(rs) + g(tu) = n + 1. We wnt to prove s = AC u. By symmetry we my ssume s u, so Lemm 8 offers two possibilities. 1.1 s u. L(s) L(rs) m nd L(u) L(tu) m nd g(s) + g(u) < g(rs) + g(tu) = n + 1. Hence, D n yields s = AC u. 1.2 s vu for some v. Let w be norml form of vu. According to Lemm 5 g(w) g(vu), so g(s)+g(w) < g(rs)+g(vu) = n+1. Further, since s w, L(w) = L(s) m. Hence, D n yields s = AC w. However, Lemm 9 sys tht s cnnot be norml form of term vu. Contrdiction. 2. B n+1 is true. According to the previous point we my ssume A n+1. Let norml forms rs nd t u hve behviour in common, with L(rs) m nd L(t u) m nd g(rs) + g(t u) = n + 1. We wnt to prove s = AC t u + u. Since t u t(t u + u), Lemm 8 offers three possibilities. 2.1 s t u + u. The term t u + u is norml form, becuse we cnnot pply Rules 1,2 or 6 to it. Moreover, g(s) + g(t u + u) = g(s) + g(t u) = n, so D n yields s = AC t u + u. 2.2 vs t u + u for some v. This implies v s u for some v. As in 1.2, we cn deduce tht then u is norml form of v s, which is contrdiction ccording to Lemm s v(t u + u) for some v. Note tht g(s) + g(v(t u + u)) = n + 1, so we cnnot yet pply D n. Let v be norml form. If v = AC t then s t u, so tht D n yields s = AC t u. Then Rule 7 reduces rs, which is contrdiction. So pprently v cnnot be of the form t. Thus, Rule 5 cnnot be pplied to v(t u + u), so this term is norml form. First, consider summnd αβ of s. This term nd v(t u + u) hve behviour in common, so A n+1 yields β = AC t u + u. 16

17 Next, consider summnd α β of s. This term nd v(t u + u) hve behviour in common. Since α β α(α β + β), Lemm 8 offers three possibilities. - α β + β t u + u. g(α β+β)+g(t u+u) g(s)+g(t u) = n, so D n implies α β+β = AC t u + u. Since the summnds of α β + β nd t u + u with gretest size re α β nd t u respectively, it follows tht α β = AC t u. - w(α β + β) t u + u for some w. Then w (α β + β) u for some w, nd we obtin contrdiction s in α β + β w(t u + u) for some w. Then β w (t u + u) for some w, nd we obtin contrdiction s in 1.2. So we my conclude α β = AC t u. If s contins severl summnds of the form α(t u + u) or t u, then we cn pply Rule 1,2 or 6 to s. However, s is in norml form, so pprently it consists of single term α(t u + u) or t u. Then pply Rule 3 or 7 pplies to rs, which gin is contrdiction, becuse rs is in norml form. 3. C n+1 is true. Assume norml forms r s nd t u tht hve behviour in common, with L(r s) m nd L(t u) m nd g(r s) + g(t u) = n + 1. We wnt to prove r s = AC t u. By symmetry we my ssume r s t u, so Lemm 8 offers two possibilities. 3.1 r s + s v(t u + u) for some v. Then s v (t u + u) for some v. This leds to contrdiction s in r s + s t u + u. First, suppose tht s nd u hve no behviour in common with t u nd r s respectively, so tht s u nd r s t u. Since D n pplies to the first equivlence, we get s = AC u. And the second equivlence yields r(r s + s) t(t u + u) t(r s + s), so Lemm 6 implies r t. Since L(r) = L(t) < m, sttement D then implies r = AC t, nd we re done. So we cn suppose tht either s nd t u hve behviour in common, or u nd r s hve behviour in common. We deduce contrdiction. 17

18 By symmetry it is sufficient to deduce contrdiction for the first cse only, where s nd t u hve behviour in common. If summnd αβ or α β of s hs behviour in common with t u, then B n or C n implies β = AC t u+u or α β = AC t u respectively. If s contins severl summnds of the form α(t u + u) or t u, then Rules 1,2 or 6 cn be pplied to it. However, s is norml form, so pprently it contins exctly one such summnd. If u nd r s hve behviour in common too, then similrly we cn deduce tht u hs summnd of the form β(r s + s) or r s, which indictes tht u hs size greter thn s. On the other hnd, s hs summnd α(t u + u) or t u, so s hs size greter thn u. This cnnot be, so u nd r s hve no behviour in common. And if u hs behviour in common with the summnd α(t u + u) or t u of s, then it follows from A n or B n or C n tht u hs summnd of the form β(t u + u) or t u. Agin we estblish contrdiction; u hs greter size thn itself. Hence, we hve found tht - r s + s t u + u, - s hs summnd α(t u + u) or t u, nd ll other summnds of s hve no behviour in common with t u, - u hs no behviour in common with r s, nor with the summnd α(t u + u) or t u of s. From these fcts it follows tht - s = AC α(t u + u) + s or s = AC t u + s, - s u, - r s + α(t u + u) or r s + t u is bisimilr to t u. Since s u, D n yields s = AC u. We distinguish the two possible forms of s. - s = AC α(t u + u) + u. Then r s + α(t u + u) t u. Since r s + s t u + u, this yields (r + α)(t u + u) t(t u + u). Lemm 6 implies r + α t, so since L(r + α) = L(t) < m, we obtin r + α t. Then Rule 9 cn be pplied to r s = AC r (α(t u + u) + u). Since r s is norml form, this is contrdiction. 18

19 - s = AC t u + u. Then r s + t u t u. Since r s + s t u + u, this yields (r + t)(t u + u) t(t u + u). Lemm 6 implies r + t t, so since L(r + t) = L(t) < m, we obtin r + t t. Then Rule 10 cn be pplied to r s = AC r (t u + u), nd once more we hve found contrdiction. 4. D n+1 is true. We my ssume A n+1 nd B n+1 nd C n+1. Let p nd q be bisimilr norml forms with L(p) = L(q) = m nd g(p) + g(q) = n + 1. We wnt to prove p = AC q. First, we show tht ech summnd of p is bisimilr to summnd of q, nd vice vers. Clerly, ech tomic summnd of p corresponds with summnd of q. We show tht ech non-tomic summnd of p lso corresponds to summnd of q. Suppose tht summnd rs of p hs behviour in common with two summnds of q. If these summnds re of the form tu nd t u, then A n+1 implies u = AC s = AC u, so tht Rule 2 reduces this pir. If they re of the form tu nd t u, then A n+1 nd B n+1 give u = AC s = AC t u + u, so tht Rule 6 reduces this pir. Finlly, if they re of the form t u nd t u, then B n+1 implies t u + u = AC s = AC t u + u. This mens t u = AC t u, so Rule 1 reduces this pir. Similrly, if summnd r s of p hs behviour in common with two summnds of q, we find using B n+1 nd C n+1 tht Rule 1, 2 or 6 cn be pplied to this pir. So, since q is norml form, the ssumption of non-tomic summnd of p hving behviour in common with two summnds of q leds to contrdiction. By symmetry, ech non-tomic summnd of q too cn hve behviour in common with only one summnd of p. So pprently, ech non-tomic summnd of p is bisimilr to non-tomic summnd of q nd vice vers. - Suppose tht summnds rs nd tu re bisimilr. Then A n+1 implies s = AC u, so ccording to Lemm 6 r t. Since L(r) = L(t) < m, we obtin r = AC t. - If summnds rs nd t u re bisimilr, then B n+1 implies s = AC t u+u. Then r(t u+u) = AC rs t u t(t u+u), so Lemm 6 implies r t. Since L(r) = L(t) < m, this yields r = AC t. Hence rs = AC t(t u + u), so we cn pply Rule 5 to rs. Contrdiction. 19

20 - Finlly, if summnds r s nd t u re bisimilr, then C n+1 sys tht they re of the sme form. Hence, p nd q contin exctly the sme summnds. Rule 1 indictes tht ech of these summnds occurs only once in both p nd q, so p = AC q. Corollry 11 The TRS in Tble 5 is confluent. Corollry 12 The xioms A1-5 + BKS1-3 for BPA re complete with respect to bisimultion equivlence. Proof. If two terms in BPA re bisimilr, then ccording to Theorem 10 their norml forms re of the sme form. Since ll the rewrite rules cn be deduced from A1-5 + PI1-3, it follows tht this is complete xiom system for BPA. Then A1-5 + BKS1-3 is complete xiomtiztion for BPA. References [1] J.C.M. Beten, J.A. Bergstr, nd J.W. Klop. Decidbility of bisimultion equivlence for processes generting context-free lnguges. Journl of the ACM, 40(3): , [2] J.C.M. Beten nd C. Verhoef. A congruence theorem for structured opertionl semntics with predictes. In E. Best, editor, Proceedings CONCUR 93, Hildesheim, LNCS 715, pges Springer-Verlg, [3] J.A. Bergstr, I. Bethke, nd A. Ponse. Process lgebr with itertion nd nesting. The Computer Journl, 37(4): , [4] D. Cucl. Grphes cnoniques de grphes lgébriques. Theoreticl Informtics nd Applictions, 24(4): , [5] J.H. Conwy. Regulr Algebr nd Finite Mchines. Chpmn nd Hll, [6] I.M. Copi, C.C. Elgot, nd J.B. Wright. Reliztion of events by logicl nets. Journl of the ACM, 5: , [7] W. J. Fokkink. A complete equtionl xiomtiztion for prefix itertion. Informtion Processing Letters, 52(6): ,

21 [8] W. J. Fokkink nd R. J. vn Glbbeek. Ntyft/tyxt rules reduce to ntree rules. Informtion nd Computtion, 126(1):1 10, [9] J. F. Groote nd F. W. Vndrger. Structured opertionl semntics nd bisimultion s congruence, Informtion nd Computtion, 100(2): , [10] S.C. Kleene. Representtion of events in nerve nets nd finite utomt. In Automt Studies, pges Princeton University Press, [11] D. Kozen. A completeness theorem for Kleene lgebrs nd the lgebr of regulr events. Informtion nd Computtion, 110(2): , [12] R. Milner. A complete inference system for clss of regulr behviours. Journl of Computer nd System Sciences, 28: , [13] D.M.R. Prk. Concurrency nd utomt on infinite sequences. In P. Deussen, editor, Proceedings 5th GI Conference, LNCS 104, pges Springer-Verlg, [14] G.D. Plotkin. A structurl pproch to opertionl semntics. Report DAIMI FN-19, Arhus University, [15] V.N. Redko. On defining reltions for the lgebr of regulr events. Ukrinskii Mtemticheskii Zhurnl, 16: , In Russin. [16] A. Slom. Two complete xiom systems for the lgebr of regulr events. Journl of the ACM, 13(1): , [17] P. Sewell. Bisimultion is not finitely (first order) equtionlly xiomtisble. In Proceedings 9th IEEE Symposium on Logic in Computer Science (LICS 94), Pris, pges IEEE Computer Society Press, [18] D.R. Troeger. Step bisimultion is pomset equivlence on prllel lnguge without explicit internl choice. Mthemticl Structures in Computer Science, 3:25 62, [19] C. Verhoef. A generl conservtive extension theorem in process lgebr. In E.-R. Olderog, editor, Proceedings IFIP Conference on Progrmming Concepts, Methods nd Clculi (PROCOMET 94), Sn Minito, IFIP Trnsctions A-56, pges Elsevier, [20] H. Zntem. Termintion of term rewriting by semntic lbelling. Fundment Informtice, 24(1,2):89 105,

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

Process Algebra with Recursive Operations

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

More information

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

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

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

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

More information

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

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

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

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

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

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

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

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

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

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

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

CS 330 Formal Methods and Models

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

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

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

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

More information

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

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

Convex Sets and Functions

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

More information

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

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

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

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

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

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

More information

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

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

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

DIRECT CURRENT CIRCUITS

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

More information

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

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

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

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

We will see what is meant by standard form very shortly

We will see what is meant by standard form very shortly THEOREM: For fesible liner progrm in its stndrd form, the optimum vlue of the objective over its nonempty fesible region is () either unbounded or (b) is chievble t lest t one extreme point of the fesible

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

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

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

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

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar) Lecture 3 (5.3.2018) (trnslted nd slightly dpted from lecture notes by Mrtin Klzr) Riemnn integrl Now we define precisely the concept of the re, in prticulr, the re of figure U(, b, f) under the grph of

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

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

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

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

Lecture 08: Feb. 08, 2019

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

More information

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

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

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

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive

More information

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p

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

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, section 003, George Mson University, Fll 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Septemer 7 1. Prove (p q) (p q), () (5pts) using truth tles. p q

More information

Relating logic to formal languages

Relating logic to formal languages Relting logic to forml lnguges Kml Lody The Institute of Mthemticl Sciences, Chenni October 2018 Reding 1. Howrd Strubing: Forml lnguges, finite utomt nd circuit complexity, birkhäuser. 2. Wolfgng Thoms:

More information

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

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

More information

Harvard University Computer Science 121 Midterm October 23, 2012

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

More information

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

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

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

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

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

Generalized Fano and non-fano networks

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

More information

Math 61CM - Solutions to homework 9

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

More information

Linearly Similar Polynomials

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

More information

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

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

More information

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

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer Divisibility In this note we introduce the notion of divisibility for two integers nd b then we discuss the division lgorithm. First we give forml definition nd note some properties of the division opertion.

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

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

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

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

More information

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

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

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

Decomposition of terms in Lucas sequences

Decomposition of terms in Lucas sequences Journl of Logic & Anlysis 1:4 009 1 3 ISSN 1759-9008 1 Decomposition of terms in Lucs sequences ABDELMADJID BOUDAOUD Let P, Q be non-zero integers such tht D = P 4Q is different from zero. The sequences

More information

1 Sets Functions and Relations Mathematical Induction Equivalence of Sets and Countability The Real Numbers...

1 Sets Functions and Relations Mathematical Induction Equivalence of Sets and Countability The Real Numbers... Contents 1 Sets 1 1.1 Functions nd Reltions....................... 3 1.2 Mthemticl Induction....................... 5 1.3 Equivlence of Sets nd Countbility................ 6 1.4 The Rel Numbers..........................

More information

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

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

More information

Zero-Sum Magic Graphs and Their Null Sets

Zero-Sum Magic Graphs and Their Null Sets Zero-Sum Mgic Grphs nd Their Null Sets Ebrhim Slehi Deprtment of Mthemticl Sciences University of Nevd Ls Vegs Ls Vegs, NV 89154-4020. ebrhim.slehi@unlv.edu Abstrct For ny h N, grph G = (V, E) is sid to

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

On the Axiomatizability of Impossible Futures: Preorder versus Equivalence

On the Axiomatizability of Impossible Futures: Preorder versus Equivalence 23rd Annul IEEE Symposium on Logic in Computer Science On the Axiomtizbility of Impossible Futures: Preorder versus Equivlence Tolue Chen CWI PO Box 94079, 1090 GB Amsterdm, NL chen@cwi.nl Wn Fokkink Vrije

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

approaches as n becomes larger and larger. Since e > 1, the graph of the natural exponential function is as below

approaches as n becomes larger and larger. Since e > 1, the graph of the natural exponential function is as below . Eponentil nd rithmic functions.1 Eponentil Functions A function of the form f() =, > 0, 1 is clled n eponentil function. Its domin is the set of ll rel f ( 1) numbers. For n eponentil function f we hve.

More information

Deadlocking States in Context-free Process Algebra

Deadlocking States in Context-free Process Algebra Dedlocking Sttes in Context-free Process Algebr JiříSrb Fculty of Informtics MU, Botnická 68, 60200 Brno, Czech Republic srb@fi.muni.cz Abstrct. Recently the clss of BPA (or context-free) processes hs

More information

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

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

More information

Formal Languages and Automata

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

More information

THE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS. Circa 1870, G. Zolotarev observed that the Legendre symbol ( a p

THE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS. Circa 1870, G. Zolotarev observed that the Legendre symbol ( a p THE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS PETE L CLARK Circ 1870, Zolotrev observed tht the Legendre symbol ( p ) cn be interpreted s the sign of multipliction by viewed s permuttion of the set Z/pZ

More information

1 Structural induction

1 Structural induction Discrete Structures Prelim 2 smple questions Solutions CS2800 Questions selected for Spring 2018 1 Structurl induction 1. We define set S of functions from Z to Z inductively s follows: Rule 1. For ny

More information

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30

Talen en Automaten Test 1, Mon 7 th Dec, h45 17h30 Tlen en Automten Test 1, Mon 7 th Dec, 2015 15h45 17h30 This test consists of four exercises over 5 pges. Explin your pproch, nd write your nswer to ech exercise on seprte pge. You cn score mximum of 100

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

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

Homework Solution - Set 5 Due: Friday 10/03/08

Homework Solution - Set 5 Due: Friday 10/03/08 CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.

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

Simple Gamma Rings With Involutions.

Simple Gamma Rings With Involutions. IOSR Journl of Mthemtics (IOSR-JM) ISSN: 2278-5728. Volume 4, Issue (Nov. - Dec. 2012), PP 40-48 Simple Gmm Rings With Involutions. 1 A.C. Pul nd 2 Md. Sbur Uddin 1 Deprtment of Mthemtics University of

More information

UniversitaireWiskundeCompetitie. Problem 2005/4-A We have k=1. Show that for every q Q satisfying 0 < q < 1, there exists a finite subset K N so that

UniversitaireWiskundeCompetitie. Problem 2005/4-A We have k=1. Show that for every q Q satisfying 0 < q < 1, there exists a finite subset K N so that Problemen/UWC NAW 5/7 nr juni 006 47 Problemen/UWC UniversitireWiskundeCompetitie Edition 005/4 For Session 005/4 we received submissions from Peter Vndendriessche, Vldislv Frnk, Arne Smeets, Jn vn de

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

Formal languages, automata, and theory of computation

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

More information

MAT612-REAL ANALYSIS RIEMANN STIELTJES INTEGRAL

MAT612-REAL ANALYSIS RIEMANN STIELTJES INTEGRAL MAT612-REAL ANALYSIS RIEMANN STIELTJES INTEGRAL DR. RITU AGARWAL MALVIYA NATIONAL INSTITUTE OF TECHNOLOGY, JAIPUR, INDIA-302017 Tble of Contents Contents Tble of Contents 1 1. Introduction 1 2. Prtition

More information

1 Structural induction, finite automata, regular expressions

1 Structural induction, finite automata, regular expressions Discrete Structures Prelim 2 smple uestions s CS2800 Questions selected for spring 2017 1 Structurl induction, finite utomt, regulr expressions 1. We define set S of functions from Z to Z inductively s

More information

For convenience, we rewrite m2 s m2 = m m m ; where m is repeted m times. Since xyz = m m m nd jxyj»m, we hve tht the string y is substring of the fir

For convenience, we rewrite m2 s m2 = m m m ; where m is repeted m times. Since xyz = m m m nd jxyj»m, we hve tht the string y is substring of the fir CSCI 2400 Models of Computtion, Section 3 Solutions to Homework 4 Problem 1. ll the solutions below refer to the Pumping Lemm of Theorem 4.8, pge 119. () L = f n b l k : k n + lg Let's ssume for contrdiction

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

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

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

More information