Contents. Bibliography 25

Size: px
Start display at page:

Download "Contents. Bibliography 25"

Transcription

1 Contents 1 Bisimultion nd Logic pge Introduction Modl logic nd bisimilrity Bisimultion invrince Modl mu-clculus Mondic second-order logic nd bisimultion invrince Bibliogrphy 25 1

2 1 Bisimultion nd Logic 1.1 Introduction Bisimultion is rich concept which ppers in vrious res of theoreticl computer science s this book testifies. Besides its origin by Prk [P81] s smll refinement of the behviourl equivlence originlly defined by Hennessy nd Milner between bsic concurrent processes [HM80, HM85], it ws independently, nd erlier, defined nd developed in the context of the model theory of modl logic (under the nmes of p-reltions nd zigzg reltions) by Vn Benthem [vb84] to give n exct ccount of which subfmily of first-order logic is definble in modl logic. Interestingly, to mke their definition of process equivlence more pltble, Hennessy nd Milner introduced modl logic to chrcterize it. For more detils of the history of bisimultion see Chpter [DAVIDE:HIST]. A lbelled trnsition system (LTS) is triple (Pr, Act, ), see Chpter [DA- VIDE:INTRO], where Pr is non-empty set of sttes or processes, Act is set of lbels nd (Pr Act Pr) is the trnsition reltion. As usul, we write P Q when (P,, Q). A trnsition P Q indictes tht P cn perform ction nd become Q. In logicl presenttions, there is often extr structure in trnsition system, lbelling of sttes with tomic propositions (or colours): let Prop be set of propositions with elements p, q. Formlly, this extr component is vlution, function V : Prop (Pr) tht mps ech p Prop to set V (p) Pr (those sttes coloured p). An LTS with vlution is often clled Kripke model 1. We recll the importnt definition of bisimultion nd bisimilrity, see Chpter [DAVIDE:INTRO] 2. 1 Trditionlly, Kripke model hs unlbelled trnsitions of the form P Q representing tht stte Q is ccessible to P. 2 This is reference to Volume 1. 2

3 1.1 Introduction 3 b P 3 Q 2 b Q 3 P 1 P 2 Q 1 c P 2 Q 4 c Q 5 R 1 c S 1 c c b R 2 b R 3 S 2 S 3 c c c S 4 S 5 b Fig Exmples of bisimilr nd non-bisimilr processes Definition A binry reltion R on sttes of n LTS is bisimultion if whenever P 1 R P 2 nd A, (1) for ll P 1 with P 1 P 1, there is P 2 such tht P 2 P 2 nd P 1 R P 2 ; (2) for ll P 2 with P 2 P 2, there is P 1 such tht P 1 P 1 nd P 1 R P 2. P 1 is bisimilr to P 2, P 1 P 2, if there is bisimultion R with P 1 R P 2. In the cse of n enriched LTS with vlution V there is n extr cluse in the definition of bisimultion tht it preserves colours. (0) for ll p Prop, P 1 V (p) iff P 2 V (p). Definition ssumes tht bisimultion reltion is between sttes of single LTS. Occsionlly, we lso llow bisimultions between sttes of different LTSs ( minor relxtion becuse the disjoint union of two LTSs is n LTS). Exmple In Figure 1.1, R 1 S 1 becuse the following reltion R is bisimultion {(R 1, S 1 ), (R 2, S 2 ), (R 2, S 4 ), (R 3, S 3 ), (R 3, S 5 )}. For instnce, tke the pir (R 3, S 3 ) R; we need to show it obeys the hereditry conditions of c c c Definition R 3 R 1 nd R 3 R 2 ; however, S 3 S 1 nd (R 1, S 1 ) R; c lso, S 3 S 4 nd (R 2, S 4 ) R. If this trnsition system were enriched with V (p) = {R 2, S 4 } then R 1 nd S 1 would no longer be bisimilr. Furthermore,

4 4 1 Bisimultion nd Logic P 1 Q 1 becuse P 2 cn engge in both b nd c trnsitions wheres Q 2 nd Q 4 cnnot. In the reminder of this chpter, we shll describe key reltionships between logics nd bisimultion. In Section 1.2, we exmine Henessy-Milner s modl chrcteriztion of bisimilrity. In Section 1.3 we prove vn Benthem s expressiveness result tht modl logic corresponds to the frgment of first-order logic tht is bisimultion invrint. These results re then extended in Sections 1.4 nd 1.5 to modl mu-clculus, tht is, modl logic with fixed-points, nd to the bisimultion invrint frgment of mondic second-order logic. 1.2 Modl logic nd bisimilrity Let M be the following modl logic where rnges over Act. φ ::= tt φ φ 1 φ 2 φ A formul is either the true formul tt, the negtion of formul, φ, disjunction of two formuls, φ 1 φ 2, or modl formul, φ, dimond φ. M is often clled Hennessy-Milner logic s it ws introduced by Hennessy nd Milner to clrify process equivlence [HM80, HM85]. Unlike stndrd presenttion of modl logic t tht time, such s [Ch80], it is multi-modl, involving fmilies of modl opertors, one for ech element of Act, nd it voids tomic propositions. The inductive stipultion below defines when stte P Pr of LTS L hs modl property φ, written P = L φ; however we drop the index L. P = tt P = φ iff P = φ P = φ 1 φ 2 iff P = φ 1 or P = φ 2 P = φ iff P = φ for some P with P P The criticl cluse here is the interprettion of s fter some -trnsition ; for instnce, Q 1 = b tt, where Q 1 is in Figure 1.1, becuse Q 1 Q 2 nd Q 2 = b tt. In the context of full propositionl modl logic over n enriched LTS with vlution V one dds propositions p Prop, with semntic cluse P = p iff P V (p). Other connectives re introduced s follows: flse, ff = tt, conjunction, φ 1 φ 2 = ( φ 1 φ 2 ), impliction, φ 1 φ 2 = φ 1 φ 2 nd the dul modl opertor box, []φ = φ. Derived semntic cluses for these defined connectives re s follows.

5 1.2 Modl logic nd bisimilrity 5 P = ff P = φ 1 φ 2 iff P = φ 1 nd P = φ 2 P = φ 1 φ 2 iff if P = φ 1 then P = φ 2 P = []φ iff P = φ for every P with P P So, [] mens fter every -trnsition ; for exmple P 1 = [] b tt wheres Q 1 = [] b tt, where these re in Figure 1.1, becuse Q 1 Q 4 nd Q 4 = b tt. Exercise Show the following using the inductive definition of the stisfction reltion = where the processes re depicted in Figure 1.1. (1) S 2 = []( b tt c tt) (2) S 1 = []( b tt c tt) (3) S 2 = [b][c]( tt c tt) (4) S 1 = [b][c]( tt c tt) A nturl notion of equivlence between sttes of n LTS is induced by the modl logic (with or without tomic propositions). Definition P nd P hve the sme modl properties, written P M P, if {φ M P = φ} = {φ M P = φ}. Bisimilr sttes hve the sme modl properties. Theorem If P P then P M P. Proof By structurl induction on φ M we show for ny P, P if P P then P = φ iff P = φ. The bse cse is when φ is tt which is cler (s is the cse p Prop when considering n enriched LTS). For the inductive step, there re three cses when φ = φ 1, φ = φ 1 φ 2 nd φ = φ 1, ssuming the property holds for φ 1 nd for φ 2. We just consider the lst of these three nd leve the other two s n exercise for the reder. Assume P = φ 1. So, P P 1 nd P 1 = φ 1 for some P 1. However, P P nd so P P 1 for some P 1 such tht P 1 P 1. By the induction hypothesis, if Q Q then Q = φ 1 iff Q = φ 1. Therefore, P 1 = φ 1 becuse P 1 = φ 1 nd so P = φ 1, s required. A symmetric rgument pplies if P = φ. The converse is true in the circumstnce tht the LTS is imge-finite: tht is, when the set {P P P } is finite for ech P Pr nd Act, see Chpter [DAVIDE:INTRO]. Theorem If the LTS is imge-finite nd P M P then P P.

6 6 1 Bisimultion nd Logic Proof By showing tht the binry reltion M is bisimultion. Assume P M P. If the LTS is enriched then, clerly, P = p iff P = p for ny p Prop. Assume P P 1. We need to show tht P P i such tht P 1 M P i. Since P = tt lso P = tt nd, so, the set {P i P P i } is non-empty. As the LTS is imge-finite, this set is finite, sy {P 1,..., P n}. If P 1 M P i for ech i : 1 i n then there re formuls φ 1,..., φ n of M where P 1 = φ i nd P i = φ i nd so P 1 = φ nd P i = φ for ech i when φ = φ 1... φ n. But this contrdicts P M P s P = []φ nd P = []φ. So, for some P i, 1 i n, P 1 M P i. The proof for the cse P P 1 is symmetric. Theorems nd together re known s the Hennessy-Milner Theorem, the modl chrcteriztion of bisimilrity. Modl formuls cn, therefore, be witnesses for inequivlent (imge-finite) processes; n exmple is tht [b]ff distinguishes Q 1 nd P 1 of Figure 1.1. Exercise Sets of formuls of M cn be strtified ccording to their modl depth. The modl depth of φ M, md(φ), is defined inductively: md(tt) = 0; md( φ) = md(φ); md(φ 1 φ 2 ) = mx{md(φ 1 ), md(φ 2 )}; md( φ) = md(φ)+1. Let n M men hving the sme modl properties with modl depth t most n nd recll the strtified bisimilr reltions n defined in Chpter [DAVIDE:INTRO]. Wht Hennessy nd Milner showed is P n P iff P n M P. (1) Prove by induction on n, P n P iff P n M P. (2) Therefore, show tht the restriction to imge-finite LTSs in Theorem is essentil. (3) Assume n LTS where Act is finite nd which need not be imge-finite. Show tht for ech P Pr nd for ech n 0, there is formul φ of modl depth n such tht P = φ iff P n P. (Hint: if Act is finite then for ech n 0 there re only finitely mny inequivlent formuls of model depth n.) Exercise Let M be modl logic M with rbitrry countble disjunction (nd, therefore, conjunction becuse of negtion). If Φ is countble set of formuls then Φ is formul whose semntics is: P = Φ iff P = φ for some φ Φ. Prove tht if Pr is countble set then P Q iff P M Q. Next, we identify when process hs the Hennessy-Milner property [BRV01]. Definition P Pr hs the Hennessy-Milner property iff if P M then P P. P

7 1.2 Modl logic nd bisimilrity 7 P 1 P 2 P 3 b P 4 Fig The trnsition grph for Exmple Exercise Pr is modlly sturted if for ech Act, P Pr nd Φ M if for ech finite set Φ Φ there is Q {Q P Q} nd Q = φ for ll φ Φ then there is Q {Q P Q} such tht Q = φ for ll φ Φ. Show tht if Pr is modlly sturted then ech P Pr hs the Hennessy-Milner property. (See, for instnce, [BRV01] for the notion of modl sturtion nd how to build LTSs with this feture using ultrfilter extensions.) A formul φ is chrcteristic for process P (with respect to bisimilrity) provided tht P = φ nd if P = φ then P P. An LTS is cyclic if its trnsition grph does not contin cycles; tht is, if P Pr nd P P nd P 1 2 P1... n Pn for n 0 then P P n. Proposition Assume n cyclic LTS (Pr, Act, ) where Pr, Act nd Prop re finite. If P Pr then there is formul φ M tht is chrcteristic for P. Proof Assume n cyclic LTS with finite sets Pr, Act nd Prop. For ech P Pr we define propositionl formul PROP(P ) nd for ech Act modl formul MOD(, P ). Then FORM(P ) = PROP(P ) {MOD(, P ) Act} is the chrcteristic formul for P. PROP(P ) = {p Prop P = p} { p Prop P = p} MOD(, P ) = { FORM(P ) P P } [] {FORM(P ) P P } where s usul = tt nd = ff. We need to show tht PROP(P ) is indeed well-defined nd modl formul; nd tht it is chrcteristic for P. The first depends on the fct tht the LTS is cyclic nd tht the sets Pr, Act nd Prop re finite; why? The proof tht FORM(P ) is chrcteristic for P is lso left s n exercise for the reder.

8 8 1 Bisimultion nd Logic Exmple The LTS in Figure 1.2 is cyclic with Pr = {P 1,..., P 4 }, Act = {, b} nd Prop =. Now, FORM(P 2 ) = FORM(P 4 ) = []ff [b]ff FORM(P 3 ) = FORM(P 4 ) []FORM(P 4 ) [b[ff FORM(P 1 ) = FORM(P 2 ) FORM(P 3 ) [](FORM(P 2 ) FORM(P 3 )) [b]ff Here, we construct the formuls strting from the nodes P 2 nd P 4 tht hve no outgoing trnsitions; then we construct the formul for P 3 ; nd then finlly for P 1. Exercise Give n exmple of finite-stte P such tht no formul of M is chrcteristic for P. Exercise Recll tht trce equivlence equtes two sttes P nd Q if they cn perform the sme finite sequences of trnsitions, see Chpter [DA- VIDE:INTRO]. (1) Show tht Proposition lso holds for trce equivlence. Tht is, ssume n cyclic LTS where Pr nd Act re finite nd Prop is empty. Prove tht if P Pr then there is formul φ M tht is chrcteristic for P with respect to trce equivlence. (2) Construct the chrcteristic formul for P 1 nd Q 1 of Figure 1.1. (3) OTHER EQUIVALENCES, PREORDERS? 1.3 Bisimultion invrince An lterntive semntics of modl logic emphsizes properties. Reltive to LTS nd vlution V, let φ = {P P = φ}: we cn think of φ s the property expressed by φ on the LTS. In the cse of the LTS in Figure 1.2, tt b tt = {P 1, P 3 }. Exercise Define φ on LTS directly by induction on φ (without ppeling to the stisfction reltion =). Another wy of understnding Theorem is tht properties of sttes of n LTS expressed by modl formuls re bisimultion invrint: if P φ nd P P then P φ. There re mny kinds of properties tht re not bisimultion invrint. Exmples include counting of successor trnsitions, hs 3 -trnsitions, or invoctions of finiteness such s is finite-stte or behviourl cyclicity, hs sequence of trnsitions tht is eventully cyclic :

9 P 1 P Bisimultion invrince 9 Q 1 Q 2 Q 3 Q 4 P 3 Q 1 Q 3 P 4 Fig More trnsition grphs ech of these properties distinguishes P 1 nd Q 1 in Figure 1.3 even though P 1 Q 1. The definition of invrince is neither restricted to mondic properties nor to prticulr logic within which properties of LTSs re expressed. Definition Assume Pr n is (Pr... Pr) n-times, n 1. (1) An nry property, n 1, of LTS is set Γ Pr n. (2) Property Γ Pr n is bisimultion invrint if whenever (P 1,..., P n ) Γ nd P i P i for ech i : 1 i n, then lso (P 1,..., P n) Γ. Exercise (1) Prove tht the property {(P, Q) P, Q re trce equivlent} is bisimultion invrint. More generlly, show tht if is behviourl equivlence between processes such tht P Q implies P Q, then is bisimultion invrint. (2) A property Γ Pr n is sfe for bisimultion if whenever (P 1,..., P n ) Γ nd P 1 P 1 then (P 1,..., P n) Γ for some P 2,..., P n ( notion due to vn Benthem [vb98]). Show tht the generl trnsition reltions, w w Act *, Chpter [DAVIDE:INTRO] re sfe for bisimultion. (3) Show tht if Γ is bisimultion invrint then it is sfe for bisimultion. Another logic within which to express properties of LTS is first-order logic, FOL. It hs countble fmily of vribles Vr typiclly represented s x, y, z nd binry reltion E for ech Act (nd mondic predicte p for ech p Prop when the LTS is enriched). Formuls of FOL hve the following form. φ ::= p(x) xe y x = y φ φ 1 φ 2 x. φ To interpret formuls with free vribles we need vlution σ : Vr Pr tht ssocites stte with ech vrible. Also, we use stndrd updting

10 10 1 Bisimultion nd Logic nottion: σ{p 1 /x 1,..., P n /x n } is the vlution tht is the sme s σ except tht its vlue for x i is P i, 1 i n (where ech x i is distinct). We inductively define when FOL formul φ is true on n LTS L with respect to vlution σ s σ = L φ, where gin we drop the index L. σ = p(x) iff σ(x) V (p) σ = xe y iff σ(x) σ(y) σ = x = y iff σ(x) = σ(y) σ = φ iff σ = φ σ = φ 1 φ 2 iff σ = φ 1 or σ = φ 2 σ = x. φ iff σ{p/x} = φ for some P Pr The universl quntifier, the dul of x, is introduced s x. φ = φ. Its derived semntic cluse is: σ = x. φ iff σ{p/x} = φ for ll P Pr. Exmple Assume σ(x 1 ) = P 1 nd σ(x 2 ) = Q 1 of Figure 1.3. Then the following pir hold. (1) σ = x. y. z. (x 1 E x x 1 E y x 1 E z x y x z y z) (2) σ = y. z. (x 2 E y ye z z x 2 ) There is recognized trnsltion of modl formuls into first-order formuls, for instnce, see [BRV01]. Definition The FOL trnsltion of modl formul φ reltive to vrible x is T x (φ) which is defined inductively. T x (p) = p(x) T x (tt) = x = x T x ( φ) = T x (φ) T x (φ 1 φ 2 ) = T x (φ 1 ) T x (φ 2 ) T x ( φ) = y. xe y T y (φ) Exercise (1) For ech of the following formuls φ, present its FOL trnsltion T x (φ). () [] b tt (b) p [] p (c) []([]p p) []p (2) FOL 2 is first-order logic when Vr is restricted to two vribles {x, y} which cn be reused in formuls. Show tht modl formuls cn be trnslted into FOL 2.

11 1.3 Bisimultion invrince 11 The trnsltion of modl formuls into FOL, Definition 1.3.5, is clerly correct s it imittes the semntics. Proposition P = φ iff σ{p/x} = T x (φ) Proof By structurl induction on φ M. For the bse cses, first P = p iff P V (p) iff σ{p/x} = p(x) iff σ{p/x} = T x (p). Similrly, for the other bse cse, P = tt iff σ{p/x} = x = x iff σ{p/x} = T x (tt). For the inductive step we only exmine the interesting cse when φ = φ 1. P = φ iff P = φ 1 for some P where P P iff σ{p /z} = T z (φ 1 ) for some P where P P, by the induction hypothesis, iff σ{p/x} = z. xe z T z (φ 1 ) iff σ{p/x} = T x (φ). A FOL formul with free vribles is bisimultion invrint if the property it expresses is bisimultion invrint. Definition Formul φ FOL whose free vribles belong to {x 1,..., x n } is bisimultion invrint if {(P 1,..., P n ) σ{p 1 /x 1,..., P n /x n } = φ} is bisimultion invrint. Corollry Any first-order formul T x (φ) is bisimultion invrint. Not ll first-order formuls re bisimultion invrint. The two formuls in Exmple refexmp3 re cses; the first sys tht x 1 hs t lest three different -trnsitions. Vn Benthem introduced the notion of bisimultion (s p- reltion nd zig-zg reltion) to identify which formuls φ(x) FOL with one free vrible re equivlent to modl formuls [vb96]. Definition A FOL formul φ(x) is equivlent to modl φ M provided tht for ny LTS nd for ny stte P, σ{p/x} = φ iff P = φ. Vn Benthem proved Proposition , FOL formul φ(x) is equivlent to modl formul iff it is bisimultion invrint. The proof utilises some model theory. Some nottion first: if Φ is set of first-order formuls then Φ = ψ provided tht for ny LTS nd vlution σ, if for ll φ Φ, σ = φ then σ = ψ. The compctness theorem for first-order logic sttes tht if Φ = ψ then there is finite set Φ Φ such tht Φ = ψ. Next we stte further property of first-order logic tht will lso be used. Fct If Φ is set of first-order formuls ll of whose free vribles belong to {x 1,..., x n } nd σ{p 1 /x 1,..., P n /x n } = φ for ll φ Φ, then there is LTS nd processes P 1,..., P n Pr such tht σ{p 1 /x 1,..., P n/x n } = φ for ll φ Φ nd ech P i hs the Hennessy-Milner property (Definition 1.2.7).

12 12 1 Bisimultion nd Logic Proposition A FOL formul φ(x) is equivlent to modl formul iff φ(x) is bisimultion invrint. Proof If φ(x) is equivlent to modl formul φ then {P σ{p/x} = φ} = φ which is bisimultion invrint. For the converse property, ssume tht φ(x) is bisimultion invrint. Consider the following fmily Φ = {T x (ψ) ψ M nd {φ(x)} = T x (ψ)}. We prove Φ = φ(x) nd, therefore, by the compctness theorem, φ(x) is equivlent to modl formul ψ such tht T x (ψ ) Φ. Assume σ{p/x} = ψ for ll ψ Φ. We need to show tht σ{p/x} = φ. We choose P with the Hennessy-Milner property by Fct Let Ψ = {T x (ψ) P = ψ}. First, Φ Ψ. Next we show tht Ψ {φ} is stisfible. For suppose otherwise, Ψ = φ nd so by the compctness theorem there is finite subset Ψ = {T x (ψ 1 ),..., T x (ψ k )} Ψ such tht Ψ = φ. But then φ = T x (ψ ) where ψ is the modl formul ψ 1... ψ k nd so T x (ψ ) Φ which contrdicts tht Φ Ψ. Therefore, for some Q, σ{q/x} = ψ for ll ψ Ψ nd σ{q/x} = φ. However, Q P nd becuse φ is bisimultion invrint, σ{p/x} = φ s required. Exercise Prove tht FOL formul φ(x 1,..., x n ) is bisimultion invrint iff it is equivlent to boolen combintion of formuls of the following form T x1 (ψ 11 ),..., T x1 (ψ 1k1 ),..., T xn (ψ n1 ),..., T xn (ψ nkn ) for some k 1,..., k n 0. An lterntive proof of Proposition ppels to tree (or forest) models. A LTS is forest if it is cyclic nd the trget of ech trnsition is unique; if P Q nd R b Q then P = R nd = b. The trnsition grph tht is rooted t Q 1 in Figure 1.3 is tree ( forest with single tree). Given LTS there is wy of unfolding P Pr nd ll its rechble processes into tree rooted t P which is clled unrvelling. Definition Assume LTS L = (Pr, Act, ) with P 0 Pr. The k- unrvelling of P 0, for k 0, is the following LTS, L k = (Pr k, Act, k ) where (1) Pr k = {P 0 1 k 1 P 1... n k n P n n 0, 0 k i k, P 1 0 P1... Pn }; (2) if P P nd P is the finl stte in π Pr k then π k πk P for ech 0 k k; (3) if V is the vlution for L then V k is the vlution for L k where V k (p) = {π Pr k P is finl in π nd P V (p)}. The ω-unrvelling of P 0, the LTS L ω, permits ll indices k 0: so, Pr ω includes ll sequences P 0 1 k 1 P 1... n k n P n such tht P 0 1 P1... n Pn nd ech k i 0. n

13 1.4 Modl mu-clculus 13 π 1 π 3 π 1 π 2 π 3 π 4 π 1 π 3 Fig Unrvelled LTS Exmple The 0-unrvelling of P 1 of Figure 1.3 is presented in Figure 1.4 where π 1 = P 1, π 2(i+1) = π 2i+1 0P 1, π 2i+1 = π 2i 0P 1 π 2i+1 = π 2i+10P 3 nd π 2i+1 = π 2i+10P 4. The reder is invited to describe the 2-unrvelleing nd the ω-unrvelling of P 1. Proposition For ny LTS nd k : 0 k ω, if P Pr nd π Pr k nd the finl stte in π is P, then P π. Proof Clerly, the binry reltion R Pr Pr k contining ll pirs (P, π) when the finl stte of π is P is bisimultion becuse first, P V (p) iff π V k (p) nd second, P P iff π k πk P for k k. Exercise Let R 1 nd S 1 be the processes depicted in Figure 1.1. (1) Define the 0-unrvellings of R 1 nd S 1. (2) Define the ω-unrvelling of R 1 nd S 1 nd show tht they re isomorphic. (3) Assume L is LTS contining P nd Q nd P Q. Show tht the ω-unrvellings of P nd Q re isomorphic. (4) Reprove Proposition using ω-unrvelled LTSs. 1.4 Modl mu-clculus Modl logic M of Section 1.2 is not very expressive. For instnce, temporl properties of sttes of LTS, such s liveness, this desirble property will eventully hold, nd sfety, this defective property never holds, re not expressible in M. (Prove this; hint, use Exercise ) Such properties hve been found to be very useful when nlysing the behviour of concurrent systems. (Reference to Chpter [DAVIDE:INTRO]?) Modl mu-clculus, µm, modl logic with fixpoints, introduced by Kozen [Ko83], hs the required extr expressive power.

14 14 1 Bisimultion nd Logic The setting for µm is the complete lttice generted by the powerset construction (Pr) where the ordering is, join is union nd meet is intersection, is the bottom element nd Pr is the top element, see Chpter [DAVIDE:INTRO]. Exercise Consider LTS nd recll the definitions of monotone nd continuous function f on the powerset (Pr): f is monotone provided tht if S S then f(s) f(s ); f is continuous just in cse if S 1,..., S n,... is n incresing sequence of subsets of Pr, (tht is, if i j then S i S j Pr), then f( i S i) = i f(s i); see Chpter [DAVIDE:INTRO]. (1) Define the semntic functions nd [] on (Pr) such tht for ny φ M, φ = φ nd [] φ = []φ. (2) Show tht these functions nd [] re monotone. (3) Prove tht is continuous iff the LTS is imge-finite with respect to the lbel ; tht is, if for ech P Pr, the set {P P P } is finite. The new constructs of µm over nd bove those of M re φ ::= X... µx. φ where X rnges over fmily of propositionl vribles. The semntics for formul φ of µm is the set φ V Pr where V is vlution tht not only mps elements of Prop but lso propositionl vribles to (Pr). As usul we employ updting nottion: φ V {S/X} uses vlution V like V except tht V (X) = S. Exercise Assume tht φ is formul of M when extended with propositionl vribles. Prove tht if ll free occurrences of X in φ re within the scope of n even number of negtions nd V is vlution then the function f : (Pr) (Pr) such tht f(s) = φ V {S/X} is monotone. Therefore, show the following (see Chpter [DAVIDE:INTRO]) (1) the lest fixed point lfp(f) exists nd is the intersection of ll pre-fixed points, {S f(s) S}; (2) the gretest fixed point gfp(f) exists nd is the union of post-fixed points, {S S f(s)}. In the cse of µx. φ there is, therefore, the restriction tht ll free occurrences of X in φ re within the scope of n even number of negtions (to gurntee monotonicity). This formul expresses the lest fixed point lfp of the semntic function induced by φ. Its dul, νx. φ, expresses the gretest fixed point gfp nd is derived construct in µm: νx. φ = µx φ{ X/X}. Here re the semntics for µm formuls.

15 1.4 Modl mu-clculus 15 p V = V (p) Z V = V (Z) φ V = Pr φ V φ 1 φ 2 V = φ 1 V φ 2 V φ V = { P Pr for some Q. P Q nd Q φ V } µz. φ V = {S Pr φ V {S/Z} S} Exercise Extend the first prt of Exercise by proving tht if ll free occurrences of X in φ µm re within the scope of n even number of negtions nd V is vlution then the function f on (Pr) such tht f(s) = φ V {S/X} for S Pr is monotone. Derived semntic cluses for other connectives re below. φ 1 φ 2 V = φ 1 V φ 2 V []φ V = {P Pr for ll Q. if P Q then Q φ V } νz. φ V = {S Pr S φ V {S/Z} } P stisfies the µm formul φ reltive to vlution V, P = V φ, iff P φ V ; s usul we omit V wherever possible. The stndrd theory of fixpoints tells us, see Chpter [DAVIDE:INTRO], tht if f is monotone function on lttice, we cn construct lfp(f) by pplying f repetedly on the lest element of the lttice to form n incresing chin, whose limit is the lest fixed point. Similrly, gfp(f) is constructed by pplying f repetedly on the lrgest element to form decresing chin, whose limit is the gretest fixed point. The stges of these itertions µ α X. φ nd ν α X. φ cn be be defined s M formuls, see Exercise 1.2.6, inductively s follows. µ 0 X. φ = ff ν 0 X. φ = tt µ β+1 X. φ = φ{µ β X. φ/x} ν β+1 X. φ = φ{ν β X. φ/x} µ λ X. φ = β<λ µβ X. φ ν λ X. φ = β<λ νβ X. φ So for miniml fixpoint formul µx. φ, if P stisfies the fixpoint, it stisfies some iterte, sy the β + 1 th so tht P = µ β+1 X. φ. Now if we unfold this formul once, we get P = φ{µ β X. φ/x}. Therefore, the fct tht P stisfies the fixpoint depends, vi φ, on the fct tht other sttes in Pr stisfy the fixpoint t smller itertes thn P does. So if one follows chin of dependencies, the chin

16 16 1 Bisimultion nd Logic termintes. Therefore, µ mens finite looping, which, with little refinement, is sufficient to understnd the logic µm. On the other hnd, for mximl fixpoint νx. φ, there is no such decresing chin: P = νx. φ iff P = ν β X. φ for every iterte β iff P = φ{ν β X. φ/x} for every iterte β iff P = φ{νx. φ/x}, nd so we my loop for ever. Exmple Assume P 1 is the process in Figure 1.3, which cn repetedly do n trnsition. P 1 fils to hve the property µx. []X (which expresses tht there cnnot be n infinite sequence of trnsitions). Consider its itertes, µ 1 X. []X = []ff, so P 3 nd P 4 hve this property; µ 3 X. []X is [][][]ff nd µ ω X. []X is n 0 []n ff where [] 0 ff = ff nd [] i+1 ff = [][] i ff. Consequently, P 1 = νx. X. Itertes of this formul include ν ω X. X = n 0 n tt where i is i-times. Exercise Wht properties re expressed by the following formuls? (1) µx. p []X (2) µx. q (p X) (3) νx. p []X (4) µx. νy. (p []X) ( p []Y ) Definition of M, hving the sme modl properties, is extended to µm; so, P µm P mens P nd P hve the sme µm properties, s expressed by closed formuls of µm (tht is, formuls without free vribles). Bisimilr sttes hve the sme µm properties. Theorem If P P then P µm P. Proof The proof of this uses Exercise tht M chrcterizes bisimilrity nd the observtion bove tht closed formuls of µm cn be trnslted into M. Theorem If the LTS is imge-finite nd P µm P then P P. Proof Becuse µm contins M this follows directly from Theorem Is imge-finiteness still necessry in Theorem 1.4.7? In Exercise the reltionship between strtified bisimilrity, n, nd formuls of M with modl depth n is explored. It is possible P Q but P n Q for ll n 0 nd so, P M Q. For instnce, let P be i 0 P i nd Q = P + R where P j+1 P j, P 0 hs no trnsitions nd R R. Unlike P, Q hs n infinite sequence of

17 1.4 Modl mu-clculus 17 trnsitions: so, P µm Q (becuse P = µx. []X). So, more sophisticted exmple is needed for the presence of imge-finiteness. Exmple The following exmple is from [BS07]. It uses key property of µm, the finite model property : if P = φ then there is finite LTS nd P within it with P = φ. Let φ 1, φ 2,... be n enumertion of ll closed µm formuls over the finite lbel set {, b} tht re true t some stte of some LTS. Let Pr i, with initil stte P i, be finite LTS such tht P i = φ i, with ll Pr i disjoint. Let Pr 0 be constructed by tking n initil stte P 0 nd mking P 0 P i for ll i > 0. Similrly, let Pr 0 be constructed from initil stte P 0 with trnsitions P 0 P i for ll i > 0 nd P 0 P 0. Clerly, P 0 P 0 becuse in Pr 0 it is possible to defer indefinitely the choice of which Pr i to enter. On the other hnd, suppose tht ψ is closed µm formul, nd w.l.o.g. ssume the topmost opertor is modlity. If the modlity is [b], ψ is true of both P 0 nd P 0 ; if it is b, ψ is flse of both; if ψ is ψ, then ψ is flse t both P 0 nd P 0 iff ψ is unstisfible, nd true t both otherwise; if ψ is []ψ, then ψ is true t both P 0 nd P 0 iff ψ is vlid, nd flse t both otherwise. Consequently, P 0 µm P 0. Definition cn be extended to µm formuls: P Pr hs the extended Hennessy-Milner property provided tht if P µm P then P P. Little is known bout this property except tht, if P hs the Hennessy-Milner property then it lso hs the extended Hennessy-Milner property. Exercise In Exercise modlly sturted LTS ws defined. This notion does not redily extend to µm formuls. A set of µm formuls is unstisfible if there is not LTS nd process P belonging to it such tht P stisfies every formul in the set. Show tht there is n unstisfible set Φ µm such tht every finite subset Φ Φ is stisfible. Show tht this is equivlent to showing tht µm fils the compctness theorem. Another indiction tht µm is more expressive thn M is tht it contins chrcteristic formuls with respect to bisimilrity for finite-stte processes. So, the restriction to cyclic LTSs in Proposition cn be relxed. Proposition Assume (Pr, Act, ) where Pr, Act nd Prop re finite. If P Pr then there is formul φ µm tht is chrcteristic for P. Proof Let (Pr, Act, ) be LTS with finite sets Act, Prop nd Pr. Assume we wnt to define chrcteristic formul for P Pr. Let P 1,..., P n be the distinct elements of Pr with P = P 1 nd let X 1,..., X n be distinct propositionl

18 18 1 Bisimultion nd Logic vribles. We define modl eqution X i = φ i (X 1,..., X n ) for ech i which cptures the behviour of P i. X(i) = PROP(P i ) {MOD (, P ) Act} where PROP(P i ) = {p Prop P = p} { p Prop P = p} MOD (, P i ) = { X j P i P j } [] {X j P i P j } where s usul = tt nd = ff. We now define the chrcteristic formul for P 1 s ψ 1 where ψ n = νx n. φ n (X 1,..., X n ).. ψ j = νx j. φ j (X 1,..., X j, ψ j+1,..., ψ n ).. ψ 1 = νx 1. φ 1 (X 1, ψ 2,..., ψ n ) The proof tht ψ 1 is chrcteristic for P is left s n exercise for the reder. Exmple Let R 1, R 2 nd R 3 be the processes in Figure 1.1 nd ssume Prop =. The modl equtions re s follows. X 1 = φ 1 (X 1, X 2, X 3 ) = ( X 2 X 3 ) [](X 2 X 3 ) [b]ff [c]ff X 2 = φ 2 (X 1, X 2, X 3 ) = []ff b X 3 [b]x 3 [c]ff X 3 = φ 3 (X 1, X 2, X 3 ) = []ff [b]ff c X 1 c X 2 [c](x 1 X 2 ) So, ψ 3 is νx 3. φ 3 (X 1, X 2, X 3 ), nd ψ 2 is νx 2. φ 2 (X 1, X 2, ψ 3 ) nd ψ 1 is the following formul νx 1. ( ψ 2 ψ 3 ) [](ψ 2 ψ 3 ) [b]ff [c]ff The reder cn check tht S 1 = ψ 1 where S 1 is lso in Figure 1.1. Exercise Provide chrcteristic formul for P 1 of Figure 1.3 nd show tht Q 1 in the sme figure stisfies it. The proof of Proposition shows tht chrcteristic formul for finite stte process only uses gretest fixpoints. Furthermore, there is more succinct representtion if simultneous fixpoints re llowed 1. One ppliction of chrcteristic formuls is the reduction of equivlence checking (whether two given processes re equivlent) to model checking (whether given process hs given property). This is especilly useful in the cse when only one of the two 1 Insted of defining ψ i itertively in the proof of Proposition , they re defined t the sme time in vectoril form.

19 1.5 Mondic second-order logic nd bisimultion invrince 19 given processes is finite stte, see [KJ06] for survey of known results which lso covers wek bisimilrity nd preorder checking. A simple corollry of Theorem is tht µm hs the tree model property. If µm formul hs model, it hs model tht is tree. Just 0-unrvel, see Definition , the originl model, thereby preserving bisimultion. This cn be strengthened to the bounded brnching degree tree model property (just cut off ll the brnches tht re not ctully required by some dimond subformul; this leves t most (number of dimond subformuls) brnches t ech node). Clerly we cnnot trnslte µm into FOL becuse of the fixpoints. (See Exercise ) However, it cn be trnslted into mondic second-order logic. 1.5 Mondic second-order logic nd bisimultion invrince MSO, mondic second-order logic of LTSs, extends FOL in Section 1.3 by llowing quntifiction over subsets of Pr. The new constructs over nd bove those of FOL re φ ::= X(x)... X. φ where X rnges over fmily of mondic predicte vribles, nd X. φ quntifies over such predictes. To interpret formuls with free predicte nd individul vribles we extend vlution σ to include mpping from predicte vribles to sets of sttes. We inductively define when MSO formul φ is true on n LTS L with respect to vlution σ s σ = L φ, where gin we drop the index L. The new cluses re s follows. σ = X(x) iff σ(x) σ(x) σ = X. φ iff σ{s/x} = φ for some S Pr The universl mondic quntifier, the dul of X, is X. φ = X φ. derived semntic cluse is: σ = X. φ iff σ{s/x} = φ for ll S Pr. Exmple Given LTS with Act = {} the property tht it is three colourble is expressible in MSO s follows X. Y. Z. x. φ(x, X, Y, Z) y. z. ψ(y, z, X, Y, Z) where φ(x, X, Y, Z) expresses x hs unique colour X, Y or Z (X(x) Y (x) Z(x)) ( X(x) Y (x) Z(x)) ( X(x) Y (x) Z(x)) nd ψ(y, z, X, Y, Z) confirms tht if there is n trnsition from y to z then they re not coloured the sme ye z (X(y) X(z)) (Y (y) Y (z)) (Z(y) Z(z)) Its

20 20 1 Bisimultion nd Logic There is trnsltion of µm formuls into MSO tht extends Definition Definition The MSO trnsltion of µm formuls φ reltive to vrible x is T + x (φ) which is defined inductively. T x + (p) = p(x) T x + (X) = X(x) T x + (tt) = x = x T x + ( φ) = T x + (φ) T x + (φ 1 φ 2 ) = T x + (φ 1 ) T x + (φ 2 ) T x + ( φ) = y. xe y T y + (φ) T x + (µx. φ) = X. ( y. (T y + (φ) X(y))) X(x) The trnsltion of lest fixpoint formul uses quntifiction nd impliction to cpture tht x belongs to every pre-fixed point. Exercise For ech of the following formuls φ, present its MSO trnsltion T + x (φ). (1) µx. p []X (2) µx. q (p X) (3) νx. p []X (4) µx. νy. (p []X) ( p []Y ) The trnsltion of µm formuls into MSO, Definition 1.5.2, is correct. Proposition If for ech vrible Z, V (Z) = σ(z) then P = V φ iff σ{p/x} = T x + (φ). Proof By structurl induction on φ M. The proofs for the modl nd boolen cses follow Proposition There re just the two new cses. P = V X iff P V (X) iff P σ(x) iff σ{p/x}(x) σ{p/x}(x) iff σ{p/x} = T x + (X). P = V µx. φ iff for ll S, if φ V {S/X} S then P S iff for ll S, if y, y = V {S/X} φ implies y S then P S iff for ll S, if y, σ{s/x} = T y + (φ) by the induction hypothesis where σ obeys tht for ll Z, σ(z) = V (Z) iff σ{p/x} = X. ( y. (T y + (φ) X(y))) X(x) iff σ{p/x} = T x + (µx. φ). A corollry of Theorem is tht if φ is closed µm formul then the MSO formul ψ(x) = T + x (φ) with one free vrible is bisimultion invrint. As with FOL there re formuls of MSO which re not bisimultion invrint.

21 1.5 Mondic second-order logic nd bisimultion invrince 21 Therefore, it is nturl to sk the question whether vn Benthem s theorem, Proposition , cn be extended to MSO formuls. The following result ws shown by Jnin nd Wlukiewicz [JW96]. Proposition A MSO formul φ(x) is equivlent to closed µm formul iff φ(x) is bisimultion invrint. However, its proof utilizes utomt (nd gmes) which we shll provide flvour of. The im is now to think of different chrcteriztion of logics on LTSs using utomt or gmes which operte loclly on the LTS (compre Chpter [DA- VIDE:INTRO]). A prticulr logicl formul of MSO or µm cn only mention finitely mny different elements of Prop nd finitely mny different elements of Act; therefore, we ssume now tht these sets re finite in ny given LTS. They will constitute finite lphbets for utomt; let Σ 1 = Act nd Σ 2 = Prop. Let us begin with the notion of n utomton fmilir from introductory computer science courses. Definition An utomton A = (S, Σ, δ, s 0, F ) consists of finite set of sttes S, finite lphbet Σ, trnsition function δ, n initil stte s 0 S nd n cceptnce condition F. Trditionlly, A does not operte on LTSs but on words, recognizing lnguge, subset of Σ *. Assuming A is nondeterministic, its trnsition function δ : S Σ S. Given word w = 1... n Σ *, run of A on w is sequence of sttes s 0... s n tht trverses w, so s i+1 δ(s i, i+1 ) for ech i : 0 i < n. The run is ccepting if the sequence s 0... s n obeys F : clssiclly, F S is the subset of ccepting sttes nd s 0... s n is ccepting if the lst stte s n F. There my be mny different runs of A on w, some ccepting the others rejecting, or no runs t ll. The lnguge recognized by A is the set of words for which there is t lest one ccepting run. Exmple Let A = ({s 0, s 1 }, {}, δ, s 0, {s 0 }) with δ(s 0, ) = {s 1 } nd δ(s 1, ) = {s 0 }. The lnguge ccepted by A is the set { 2n n 0} of even length words. A simple extension is recognition of infinite length words. A run of A on w = 1... i... is n infinite sequence of sttes π = s 0... s i... tht trvels over w, so s i+1 δ(s i, i+1 ), for ll i 0; it is ccepting if it obeys the condition F. Let inf (π) S contin exctly the sttes tht occur infinitely often in π. Clssiclly, F Q nd π is ccepting if inf (π) F which is the Büchi cceptnce condition.

22 22 1 Bisimultion nd Logic Büchi utomt re n lterntive nottion for chrcterizing infinite pths of LTS. There re different choices ccording to the lphbet Σ. If Σ = Σ 1 nd π = P P1... is n infinite sequence of trnsitions, then π = A if the utomton ccepts the word ; lterntively, Σ = Σ 2 nd π = A if it ccepts Prop(P 0 ) Prop(P 1 )... where Prop(P ) is the subset of Prop tht is true t P. Exercise Let Prop = {p}, S = {s, t}, δ(s, {p}) = {t}, δ(s, ) = {s}, δ(t, {p}) = {t} nd δ(t, ) = {t}, s 0 = s nd F = {t}. Wht property of n infinite run of LTS does this Büchi utomton express? When ech formul of logic is equivlent to n utomton, stisfibility checking reduces to the non-emptiness problem for those utomt: whether n utomton ccepts some word (pth or whtever). This my hve lgorithmic benefits in reducing n pprently complex stisfibility question into simple grph-theoretic procedures: Büchi utomton, for instnce, is non-empty if there is pth s 0 * s F nd cycle s * s (equivlent to n eventully cyclic model). Indeed the introduction of Büchi nd Rbin utomt ws for showing decidbility of mondic second-order theories by reducing them to utomt, see the tutoril text [GTW02] for detils. The ide of recognizing bounded brnching trees extends the definition of A to ccept n-brnching infinite trees. With word utomton, stte s belonged to δ(s, ); now it is tuples (s 1,..., s n) tht belong to δ(s, ). A tree utomton trverses the tree, descending from node to ll n-child nodes, so the utomton splits itself into n copies, nd proceeds independently. A run of the utomton is then n n-brnching infinite tree lbelled with sttes of the utomton. A run is ccepting if every pth through this tree stisfies the cceptnce condition F. In the cse of Rbin cceptnce F = {(G 1, R 1 ),..., (G k, R k )} where ech G i, R i S nd π obeys F if there is j such tht inf (π) G j nd inf (π) R j =. A vrint definition is prity cceptnce where F mps ech stte s of the utomton to priority F (s) N. We sy tht pth stisfies F if the lest priority seen infinitely often is even. It is not hrd to see tht prity condition is specil cse of Rbin condition; it is lso true, though somewht trickier, tht Rbin utomton cn be trnslted to n equivlent prity utomton. Such utomt cn recognize bounded brnching unrvellings of LTSs. Exercise Tree utomt chrcterize rooted n-brnching infinite tree LTS models for µm formuls. Such model L = A if A ccepts the behviour tree tht replces ech stte P Pr with Prop(P ). Let Prop = {p}, S = {s, t}, δ(s, {p}) = {(s, s)}, δ(s, ) = {(t, t)}, δ(t, {p}) = {(s, s)} nd δ(t, ) = {(t, t)} nd s 0 = s. This utomton A hs prity cceptnce condition F (s) = 1 nd

23 1.5 Mondic second-order logic nd bisimultion invrince 23 F (t) = 2. Wht µm formul is equivlent to A over infinite binry-tree models? (Hint: wht fixpoints re coded by sttes s nd t?) There is slight mismtch between (the unrvellings of) LTSs nd bounded brnching trees becuse of the fixed brnching degree nd the explicit indexed successors; for instnce, see the unrvelled LTS of Figure 1.4. Wht is wnted is n utomton tht cn directly recognize LTS nd which preserves the virtue of simple locl definition of trnsition function. We shll define vrint of lternting prity utomt which is due to Wlukiewicz (lso see [KVW00]). The rnge of trnsition function of n utomton A will be locl formul. For word utomton, if δ(s, ) = {s 1,..., s m } then it is the formul s 1... s m. For n-brnching tree utomton if δ(s, ) = {(s 1 1,..., s1 n),..., (s m 1,..., sm n )} then it is ((1, s 1 1 )... (n, s1 n))... ((1, s m 1 )... (n, sm n )): here the element (i, s ) mens crete n ith-child with lbel s. A word or tree is ccepted if there exists n ccepting run for tht word or tree; hence, the disjuncts. However, for tree, every pth through it must be ccepting; hence the conjuncts. In lternting word utomt, the trnsition function is given s n rbitrry boolen expression over sttes: for instnce, δ(s, ) = s 1 (s 2 s 3 ). In lternting tree utomt it is boolen expression over directions nd sttes: for instnce, ((1, s 1 ) (1, s 2 )) (2, s 3 ). Now the definition of run becomes tree in which, successor trnsitions obey the boolen formul. In prticulr, even for n lternting utomton on words, run is tree, nd not just word. The cceptnce criterion is s before, tht every pth of the run must be ccepting. An lternting utomton is just two plyer gme too where one plyer is responsible for choices nd the other plyer for choices. The trnsition function for n utomton A tht recognises LTSs hs the form δ : S Σ 2 Φ(Σ 1, S) where Φ(X, Y ) is set of formuls over X nd Y. One ide is tht this formul could be simple modl formul. For instnce, if s is the current utomton stte t P Pr nd δ(s, Prop(P )) = s 1 [c]s 2 nd P P 1, P b P 2, P c Q i, for ll i 0 then the utomton moves to P 1 with stte s 1 nd to ech Q i with stte s 2. As with tree utomt, run of A on LTS is lbelled tree of rbitrry degree. Such modl utomt when the cceptnce condition for infinite brnches is the prity condition hve the sme expressive power s µm. However, to prove Proposition Jnin nd Wlukiewiciz use FOL formuls. The ide for tomic predictes is to replce pirs (i, s) of tree utomton with elements of U = {(, s) Σ 1 nd s S}. Now, for ech s S nd W Prop, δ(s, W ) is formul of the form (*) x 1... x k. (u 1 (x 1 )... u k (x k )) x. (u 1 (x)... u k (x))

24 24 1 Bisimultion nd Logic where ech u i U. An exmple, is φ = x 1. x 2. (, s)(x 1 ) (b, s )(x 2 ) x. (, s)(x) (b, s )(x). If t lbels the stte P of the LTS nd W = Prop(P ) nd δ(t, W ) = φ nd P P i, P b Q j, i, j > 0 then the utomton t the next step would spwn copy t ech P i with stte s nd ech Q j with stte s. Notice tht such formul is quite similr to the components MOD (, P ) of chrcteristic formul described in Proposition Every µm formul is equivlent to such n utomton; the different kinds of fixpoint re ctered for in the prity cceptnce condition. Let dis(x 1,..., x n ) be the FOL formul 1 i<j n x i x j. There is very similr chrcteriztion of MSO formuls over trees. where now ech δ(s, W ) hs the form (**) x 1... x k. (D u 1 (x 1 )... u k (x k )) x. D (u 1 (x)... u k (x)) where D = dis(x 1,..., x k ) nd D = dis(x, x 1,..., x k ). Now the result follows: if φ(x) is n MSO formul tht is bisimultion invrint then it is true on ny n-unrvelled model nd so (*) nd (**) will be equivlent for n k.

25 Bibliogrphy [vb84] J. vn Benthem. Correspondence theory. In Hndbook of Philosophicl Logic, Vol. II, ed. D. Gbby nd F. Guenthner, , Reidel, (1984). [vb96] J. vn Benthem. Exploring Logicl Dynmics. CSLI Publictions, (1996). [vb98] J. vn Benthem. Progrm constructions tht re sfe for bisimultion, Studi Logic, (1998). [BRV01] P. Blckburn, M. de Rijke nd Y. Venem. Modl Logic, Cmbridge University Press, (2001). [BS07] J. Brdfield nd C. Stirling, Modl mu-clculi. In Hndbook of Modl Logic, ed. P. Blckburn, J. vn Benthem nd F. Wolter, Elsevier, , (2007). [Ch80] B. Chells, Modl Logic: An Introduction. Cmbridge University Press (1980). [GTW02] E. Grädel, W. Thoms nd T. Wilke (Eds.), Automt, Logics, nd Infinite Gmes, Lecture Notes in Computer Science 2500 (2002). [HM80] M. Hennessy nd R. Milner, On observing nondeterminism nd concurrency, Lecture Notes in Computer Science (1980). [HM85] M. Hennessy nd R. Milner. Algebric lws for nondeterminism nd concurrency. Journl of Assocition of Computer Mchinery , [JW96] D. Jnin nd I. Wlukiewicz, On the expressive completeness of the propositionl mu-clculus with respect to mondic second order logic. Lecture Notes in Computer Science (1996). [Ko83] D. Kozen, Results on the propositionl mu-clculus. Theoreticl Computer Science (1983). [KJ06] A. Kučer nd P. Jnčr, Equivlence-checking on infinite-stte systems: techniques nd results. Theory nd Prctice of Logic Progrmming 6(3), (2006). [KVW00] O. Kupfermn, M. Vrdi nd P. Wolper, An utomt-theoretic pproch to brnching-time model checking, Journl of Assocition of Computer Mchinery 42(2) (2000). [P81] D. Prk. Concurrency nd utomt on infinite sequences. Lecture Notes in Computer Science (1981). 25

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

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

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

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

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probbilistic Model Checking Michelms Term 2011 Dr. Dve Prker Deprtment of Computer Science University of Oxford Long-run properties Lst lecture: regulr sfety properties e.g. messge filure never occurs

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

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

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

Automata, Games, and Verification

Automata, Games, and Verification Automt, Gmes, nd Verifiction Prof. Bernd Finkbeiner, Ph.D. Srlnd University Summer Term 2015 Lecture Notes by Bernd Finkbeiner, Felix Klein, Tobis Slzmnn These lecture notes re working document nd my contin

More information

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

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

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

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

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

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

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

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

More information

Modal Mu-Calculi. Julian Bradfield and Colin Stirling. Contents

Modal Mu-Calculi. Julian Bradfield and Colin Stirling. Contents Modl Mu-Clculi Julin Brdfield nd Colin Stirling Contents 1 Introduction 2 2 Contextul bckground 2 2.1 Modl logics in progrm verifiction 2 2.2 Precursors to modl mu-clculus 4 2.3 The smll model property

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

Supervisory Control (4CM30)

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

More information

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

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

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

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

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

Software Engineering using Formal Methods

Software Engineering using Formal Methods Softwre Engineering using Forml Methods Propositionl nd (Liner) Temporl Logic Wolfgng Ahrendt 13th Septemer 2016 SEFM: Liner Temporl Logic /GU 160913 1 / 60 Recpitultion: FormlistionFormlistion: Syntx,

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

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

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

1 Nondeterministic Finite Automata

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

More information

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

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

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

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

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

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

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

On Determinisation of History-Deterministic Automata.

On Determinisation of History-Deterministic Automata. On Deterministion of History-Deterministic Automt. Denis Kupererg Mich l Skrzypczk University of Wrsw YR-ICALP 2014 Copenhgen Introduction Deterministic utomt re centrl tool in utomt theory: Polynomil

More information

Categorical approaches to bisimilarity

Categorical approaches to bisimilarity Ctegoricl pproches to bisimilrity PPS seminr, IRIF, Pris 7 Jérémy Dubut Ntionl Institute of Informtics Jpnese-French Lbortory for Informtics April 2nd Jérémy Dubut (NII & JFLI) Ctegoricl pproches to bisimilrity

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

(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

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

1 From NFA to regular expression

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

More information

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets

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

More information

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

Bisimulation, Games & Hennessy Milner logic

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

More information

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

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.) MORE FUNCTION GRAPHING; OPTIMIZATION FRI, OCT 25, 203 (Lst edited October 28, 203 t :09pm.) Exercise. Let n be n rbitrry positive integer. Give n exmple of function with exctly n verticl symptotes. Give

More information

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

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

More information

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

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

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

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

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

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

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

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

More information

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

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

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

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

SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 2014

SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 2014 SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 014 Mrk Scheme: Ech prt of Question 1 is worth four mrks which re wrded solely for the correct nswer.

More information

Nondeterminism and Nodeterministic Automata

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

More information

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

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

More information

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

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

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

More information

CMSC 330: Organization of Programming Languages

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

More information

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

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

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

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

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

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

More information

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

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

More information

A recursive construction of efficiently decodable list-disjunct matrices

A recursive construction of efficiently decodable list-disjunct matrices CSE 709: Compressed Sensing nd Group Testing. Prt I Lecturers: Hung Q. Ngo nd Atri Rudr SUNY t Bufflo, Fll 2011 Lst updte: October 13, 2011 A recursive construction of efficiently decodble list-disjunct

More information

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

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

More information

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

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

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

More information

Petri Nets and Regular Processes

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

More information

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

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

CSCI FOUNDATIONS OF COMPUTER SCIENCE

CSCI FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI- 2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 My 7, 2015 2 Announcements Homework 9 is due now. Some finl exm review problems will be posted on the web site tody. These re prcqce problems not

More information

3 Regular expressions

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

More information

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

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

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

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

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

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

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

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

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

Lecture 3: Equivalence Relations

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

More information

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

Finite Automata-cont d

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

More information

A tutorial on sequential functions

A tutorial on sequential functions A tutoril on sequentil functions Jen-Éric Pin LIAFA, CNRS nd University Pris 7 30 Jnury 2006, CWI, Amsterdm Outline (1) Sequentil functions (2) A chrcteriztion of sequentil trnsducers (3) Miniml sequentil

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

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

CHAPTER 4 MULTIPLE INTEGRALS

CHAPTER 4 MULTIPLE INTEGRALS CHAPTE 4 MULTIPLE INTEGAL The objects of this chpter re five-fold. They re: (1 Discuss when sclr-vlued functions f cn be integrted over closed rectngulr boxes in n ; simply put, f is integrble over iff

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