Playing Games with Timed Games,

Size: px
Start display at page:

Download "Playing Games with Timed Games,"

Transcription

1 Plying Gmes with Timed Gmes, Thoms Chtin Alexndre Dvid Kim G. Lrsen LSV, ENS Cchn, CNRS, Frnce (emil: Deprtment of Computer Science, Alborg University, Denmrk (emil: Abstrct: In this pper we focus on property-preserving preorders between timed gme utomt nd their ppliction to control of prtilly observble systems. Following the exmple of timed simultion between timed utomt, we define timed lternting simultion s preorder between timed gme utomt, which preserves controllbility. We define method to reduce the timed lternting simultion problem to sfety gme. We show how timed lternting simultion cn be used to control efficiently prtilly observble system. This method is illustrted by generic cse study. Keywords: Timed utomt, timed gmes, simultion, Uppl, forml verifiction tool. 1. INTRODUCTION Since the introduction of timed utomt the technology nd tool support (Lrsen et l., 1997; Bozg et l., 1998) for model-checking nd nlysis of timed utomt bsed formlisms hve reched level mture enough for industril pplictions s witnessed by lrge number of cse studies. Most recently, efficient on-the-fly lgorithms for solving rechbility nd sfety gmes bsed on timed gme utomt hve been put forwrd (Cssez et l., 2005) nd mde vilble within the tool Uppl-Tig. The tool hs been recently used in n industril cse study (Jessen et l., 2007) with the compny Skov A/S for synthesizing climte control progrms for modern pig stbles. Despite this success, the stte-spce explosion problem is relity preventing the tools to scle up to rbitrrily lrge nd complex systems. Wht is needed re complementry techniques llowing for the verifiction nd nlysis efforts to be crried out on suitble bstrctions. Assume tht S is timed (gme) utomton, nd ssume tht φ is property to be estblished (solved) for S. Now S my be timed utomton too complex for our verifiction tool to settle the property φ, or S my be timed gme utomton with number of unobservble fetures tht cn not be exploited in ny relizble strtegy for solving the gme. The gol of bstrction is to replce the complex (or unobservble) model S with n bstrct timed (gme) utomton A being smller in size, less complex nd fully observble. This method requires the user not only to supply the bstrction but lso to rgue tht the bstrction is correct in the sense tht ll relevnt properties estblished (controllble) for A lso hold for S; i.e. it should be estblished tht S A for some property-preserving reltionship between timed (gme) utomt. A long version of this pper cn be found in (Chtin et l., 2008) This work hs been supported by the EC FP7 under grnt numbers INFSO-ICT (Multiform nd ICT (Qusimodo nd the VKR Center of Excellence MT-LAB ( The possible choices for the preorder obviously depend hevily on the clss of properties to be preserved s well s the underlying modelling formlism. In this pper we introduce the logic ATCTL being universl frgment of the rel-time logic TCTL (Alur et l., 1993) (with propositions both on sttes nd events). We introduce the notions of strong nd wek lternting timed simultion between timed gme utomt. These reltions re proved to preserve controllbility with respect to ATCTL. As min results of the pper we show how strong nd wek timed lternting simultion problems my be reduced to sfety gmes for suitbly constructed products of timed gme utomt. These constructions llow the use of Uppl-Tig to provide direct tool support for checking preorders between timed gme utomt. Finlly, we show how timed lternting simultion cn be used to control efficiently prtilly observble system. This method is illustrted by generic cse study: We pply our construction for timed lternting simultion to synthesize control progrms for scenrio where the move of box on conveyor belt is prtilly observble. We compre experimentl results obtined by two different methods for this problem, one method using our wek lternting timed simultion preorder. Relted work. Decidbility for timed (bi)simultion between timed utomt ws given in (Cerns, 1992) using product region construction. This technique provided the computtionl bsis of the tool Epsilon (Cerns et l., 1993). In (Weise nd Lenzkes, 1997) zone-bsed lgorithm for checking (wek) timed bisimultion nd hence not suffering the region-explosion in Epsilon ws proposed though never implemented. For fully observble nd deterministic bstrct models timed simultion my be reduced to rechbility problem of S in the context of suitbly constructed testing utomton monitoring tht the behvior exhibited is within the bounds of A (Jensen et l., 2000). Alternting temporl logics were introduced

2 in (Alur et l., 1997) nd lternting simultion between finite-stte systems ws introduced in (Alur et l., 1998). In this pper we offer to our knowledge the first timed extension of lternting simultion. The ppliction of our method using wek lternting simultion for the problem of timed control under prtil observbility improves the direct method proposed in (Cssez et l., 2007) 2. TIMED GAMES AND PRELIMINARIES 2.1 Timed Automt Let X be finite set of rel-vlued vribles clled clocks. We note C(X) the set of constrints ϕ generted by the grmmr: ϕ ::= x k x y k ϕ ϕ where k Z, x,y X nd {<,,=,>, }. B(X) is the subset of C(X) tht uses only rectngulr constrints of the form x k. A vlution of the vribles in X is mpping v : X R 0. We write 0 for the vlution tht ssigns 0 to ech clock. For Y X, we denote by v[y ] the vlution ssigning 0 (resp. v(x)) for ny x Y (resp. x X \ Y ). We denote v + for R 0 the vlution s.t. for ll x X, (v + )(x) = v(x) +. For g C(X) nd v R X 0, we write v = g if v stisfies g nd [[g]] denotes the set of vlutions {v R X 0 v = g}. Definition 1. A Timed Automton (TA) (Alur nd Dill, 1994) is tuple A = (L,l 0,Σ,X,E,Inv) where L is finite set of loctions, l 0 L is the initil loction, Σ is the set of ctions, X is finite set of rel-vlued clocks, Inv : L B(X) ssocites to ech loction its invrint nd E L B(X) Σ 2 X L is finite set of trnsitions, where t = (l,g,,r,l ) E represents trnsition from the loction l to l, lbeled by, with the gurd g, tht resets the clocks in R. One specil lbel τ is used to code the fct tht trnsition is not observble. A stte of TA is pir (l,v) L R X 0 tht consists of discrete prt nd vlution of the clocks. From stte (l,v) L R X 0 s.t. v = Inv(l), TA cn either let time progress or do discrete trnsition nd rech new stte. This is defined by the trnsition reltion built s follows: for Σ, (l,v) (l,v ) if there exists g,,y trnsition l l in E s.t. v = g, v = v[y ] nd v = Inv(l ); for 0, (l,v) (l,v ) if v = v + nd v,v [[Inv(l)]]. Thus the semntics of TA is the lbeled trnsition system S A = (Q,q 0, ) where Q = L R X 0, q 0 = (l 0,0) nd the set of lbels is Σ R 0. A run of timed utomton A is sequence q 1 t 0 1 q1 q 2 1 t q 2 2 q 2... of lternting time nd discrete trnsitions in S A. We use Runs((l,v),A) for the set of runs tht strt in (l,v). We write Runs(A) for Runs((l 0,0),A). If ρ is finite run we denote lst(ρ) the lst stte of the run nd Durtion(ρ) the totl elpsed time ll long the run. Definition 2. We define inductively the observtion ssocited to run ρ s the (possibly infinite) word Obs(ρ) over the lphbet Σ R defined s: Obs(( 1,t 1, 2,t 2,...)) def = ( i 1 i=1 i,t i1, i 2 i=i 1+1 i,t i2, i 3 i=i 2+1 i,t i3,...), where i 1 < i 2 <... re the indices of the observble trnsitions: Assumptions. We ssume tht: 1) every infinite run contins infinitely mny observble trnsitions; 2) from every stte, either dely ction with positive durtion or controllble ction cn occur. 2.2 ATCTL In this rticle, we consider universl frgment ATCTL of the rel-time logic TCTL (Alur et l., 1993) with propositions both on sttes nd ctions. Definition 3. A formul of ATCTL is either A φ 1 U φ 2 or A φ 1 W φ 2, where A denotes the quntifier for ll pth nd U (resp. W) denotes the temporl opertor until (resp. wek until ), the φ i s re pirs (φ s i,φλ i ) nd φs i (resp. φ λ i ) is set of sttes (resp. observble ctions). A run ρ of timed utomton A stisfies φ 1 U φ 2 iff there exists prefix ρ of ρ such tht: 1) only ctions of φ λ 1 occur in ρ nd 2) ll the sttes reched during the execution of ρ re in φ s 1 φ s 2 nd 3) either lst(ρ ) φ s 2 or the lst ction of ρ is in φ λ 2. Then we write ρ = φ 1 U φ 2. A run ρ of timed utomton A stisfies φ 1 W φ 2 iff either it stisfies φ 1 U φ 2 or only ctions of φ λ 1 occur in ρ nd ll the sttes reched during the execution of ρ re in φ s 1. Then we write ρ = φ 1 W φ 2. When ll the runs of timed utomton A stisfy property φ, we write A = A φ. We define lso the frgment ATCTL λ of ATCTL where only ctions re considered: the formuls of ATCTL λ re only the formuls A φ 1 Uφ 2 nd A φ 1 Wφ 2 where φ s 1 = L R X 0 nd φs 2 =. 2.3 Timed Gmes Definition 4. A Timed Gme Automton (TGA) (Mler et l., 1995) is timed utomton G with its set of trnsitions E prtitioned into controllble (E c ) nd uncontrollble (E u ) ctions. We ssume tht controllble trnsition nd n uncontrollble trnsition never shre the sme observble lbel. In ddition, invrints re restricted to Inv : L B (X) where B is the subset of B using constrints of the form x k. Given TGA G nd control property φ A φ 1 U φ 2 (resp. A φ 1 Wφ 2 ) of ATCTL, the rechbility (resp. sfety) control problem consists in finding strtegy f for the controller such tht ll the runs of G supervised by f stisfy the formul. By the gme (G,φ) we refer to the control problem for G nd φ. The forml definition of the control problems is bsed on the definitions of strtegies nd outcomes. In ny given sitution, the strtegies suggest to do prticulr ction fter given dely. A strtegy (Mler et l., 1995) is described by function tht during the course of the gme constntly gives informtion s to wht the plyers wnt to do, under the form of pir (,e) (R 0 E) {(, )}. (, ) mens tht the strtegy wnts to dely forever. The environment hs priority when choosing its ctions: if the controller nd the environment wnt to ply t the sme time, the environment ctully plys. In ddition, the environment cn decide not to tke ction if n invrint requires to leve stte nd the controller cn do so.

3 Assumption. A specil cse occurs in sttes in sttes where n invrint expires nd only n uncontrollble trnsition is possible. It is nturl to force such trnsition but this would complicte this pper significntly. To keep redbility, we consider models without this cse. Definition 5. Let G = (L,l 0,Σ,X,E,Inv) be TGA. A strtegy over G for the controller (resp. the environment) is function f from the set of runs Runs((l 0,0),G) to (R 0 E c ) {(, )} (resp. (R 0 E u ) {(, )}). We denote ((ρ),e(ρ)) def = f(ρ) nd we require tht for every run ρ leding to stte q, if (ρ) = 0 then the trnsition e(ρ) is possible from q. for ll (ρ), witing time units fter ρ is possible nd the ugmented run ρ = ρ (busing nottions) stisfies: f(ρ ) = ((ρ),e(ρ)). Furthermore, the controller is forced to ply if n invrint expires, (nd, by ssumption it cn lwys ply). This cn be specified s follows: if no positive dely is possible from q, then the strtegy of the controller stisfies (ρ) = 0. The restricted behvior of TGA when the controller plys strtegy f c nd the opponent plys strtegy f u is defined by the notion of outcome 1. The proposed notions of strtegies nd outcome re similr to the setting of symmetric concurrent gmes in de Alfro et l. (2003). Definition 6. Let G = (L,l 0, Σ,X,E,Inv) be TGA nd f c, resp. f u, strtegy over G for the controller, resp. the environment. The outcome Outcome(q,f c,f u ) from q in G is the (possibly infinite) mximl run ρ = (ρ 0,...,ρ i,...) such tht for every i N (or 0 i < ρ 2 for finite runs), ρ 2i = min{ { c (ρ 0,...,ρ 2i 1 ), u (ρ 0,...,ρ 2i 1 )} eu (ρ ρ 2i+1 = 0,...,ρ 2i ) if u (ρ 0,...,ρ 2i ) = 0 e c (ρ 0,...,ρ 2i ) otherwise A strtegy f c for the controller is winning in the gme (A, A φ) if for every f u, Outcome(q 0,f c,f u ) stisfies φ. We sy tht formul φ is controllble in A, nd we write A = c : A φ, if there exists winning strtegy for the gme (A, A φ). 3. PLAYING GAMES WITH TIMED GAMES In this section we let A nd B be two timed gme utomt. We wnt to find conditions tht ensure tht ny property of ATCTL λ tht is controllble in B is lso controllble in A. In the context of model-checking, simultion reltions llow us to verify some properties of concrete model using more bstrct version of the model, fter checking tht the bstrct model (wekly) simultes the concrete one. Here we re considering the more generl problem of controller synthesis: Some ctions re controllble (the models A nd B re TGA) nd we wnt to use n bstrction of the model to build controllers for some properties of the concrete model. For this we define two lternting simultion reltions ( strong one s nd wek one w ), such tht if A s B or A w B, then ny property of ATCTL λ tht is controllble in B is lso controllble in A. Moreover, the (wek) lternting 1 Unlike other ppers, we define here one single mximl run for ech (q, f c, f u) insted of the set of possible runs for (q, f c). simultion reltion cn be used to build the controller (or the winning strtegy) for A. 3.1 Strong Alternting Simultion In this section we ssume tht ll the trnsitions of the timed gmes re observble. We define lternting simultion reltions s reltions R between the sttes of A nd those of B such tht if (q A,q B ) R, then every property tht is controllble in B from q B is lso controllble in A from q A. Thus every controllble trnsition tht cn be tken from q B must be mtched by n eqully lbeled controllble trnsition from q A. And on the other hnd, every uncontrollble trnsition in A tends to mke A hrder to control thn B; then we require tht it is mtched by n eqully lbeled uncontrollble trnsition in B. Progress of time. We hve to check tht if the controller of B is ble to void plying ny ction during given dely, then the controller of A is ble to do the sme. To understnd why this is required, think of control property where the gol is simply to rech given time without plying ny observble ction, unless the environment plys n uncontrollble ction. If the controller of B is ble to wit, then it hs winning strtegy for this property. So the controller of A must be ble to win too. Symmetriclly, we should in principle check tht if the environment of A is ble to void plying during given dely, then the environment of B is ble to do the sme. Actully this property does not need to be checked since, by ssumption, the environment is never forced to ply. Definition 7. A strong lternting simultion reltion between two TGAs A nd B is reltion R Q A Q B such tht (q 0A,q 0B ) R nd for every (q A,q B ) R: (q B c q B ) = q A (q A u q A ) = q B (q B q B ) = q A (q A c q A (q A,q B ) R) (q B u q B (q A,q B ) R) (q A q A (q A,q B ) R) We write A s B if there exists strong lternting simultion reltion between A nd B. Theorem 1. If A nd B re two timed gmes such tht A s B, then for every formul A φ ATCTL λ, if B = c : A φ, then A = c : A φ. 3.2 Strong Alternting Simultion s Timed Gme In this section we show how to build timed gme Gme s (A,B) such tht A s B iff the controller hs winning strtegy. For simplicity we ssume tht A nd B shre no clock, h is free clock, nd the lbels used by controllble trnsitions of one timed gme re not used by ny uncontrollble trnsition of the other timed gme. Intuition Behind the Construction of Gme s (A,B). In order to check the existence of strong lternting simultion reltion between A nd B, we build gme tht consists in simulting the timed gmes A nd B simultneously, with the ide tht t ech time they re in sttes q A nd q B such tht (q A,q B ) R if there exists n lternting simultion reltion R between A nd B. More precisely, the controller of Gme s (A,B) tries to keep the gmes A nd B in sttes q A nd q B such tht (q A,q B ) R.

4 On the other hnd, the environment of Gme s (A,B) tries to show tht this is not lwys possible. For this it shows tht one of the implictions in Definition 7 does not hold from the current pir of sttes (q A,q B ). The wy of doing this depends on the kind of impliction tht is considered. For the first two implictions, the technique is the following: The environment plys one trnsition corresponding to the left hnd side of the impliction, nd chllenges the controller of Gme s (A,B) to ply trnsition corresponding to the right hnd side, tht imittes the trnsition plyed by the environment of Gme s (A,B). Therefore ll the controllble trnsitions of A nd the uncontrollble trnsitions of B become controllble in Gme s (A,B); nd the uncontrollble trnsitions of A nd the controllble trnsitions of B become uncontrollble in Gme s (A,B). We use the lbels to show which trnsitions re controllble (c) nd uncontrollble (u). The ide is to use vrible l to store the lst ction plyed by A, when A hs plyed nd B hs not imitted it yet. As soon s the ction of A hs been imitted by B, l is set to the vlue τ. As we did not present model with vribles in this rticle, we define the TGA by duplicting the sttes ccording to the possible vlues for l. But in rel-time context, we wnt to check tht the ctions re immeditely imitted. Moreover the gme must be plyed such tht every ply corresponds to vlid runs of A nd B. This implies tht the time constrints of A nd B re stisfied. For this reson we keep the clocks of A nd B nd we dd one clock h (ssumed to be different from those in A nd B). h is used to check tht the ctions re immeditely imitted: When the environment of Gme s (A,B) plys, h is reset, nd s soon s h > 0 nd l τ (i.e. the controller of Gme s (A,B) hs not plyed), the controller of Gme s (A,B) loses. Finlly, when the environment wnts to show tht the third impliction of Definition 7 does not hold, it simply wits until the invrint of q A expires. Of course, during this time, the invrint of q B must hold. This mounts to check tht for every ply, the corresponding runs of A nd B respect the invrints. Copying simply the invrints in the gme would not give the expected result: When n invrint of A expires, the environment would hve the freedom of forcing the controller to tke trnsition of B, which is not wht we wnt. Insted, we remove ll the invrints from the model nd tke them into ccount into the winning condition. If the invrint of Invst A of A (resp. Invst B of B) is not stisfied, then the controller (resp. the environment) loses the gme. Definition 8. The TGA of Gme s (A,B) is defined s (L,l 0, {u,c},x,e,inv) where L = L A L B (Σ {τ}), l 0 = (l 0A,l 0B,τ), X = X A X B {h}, Inv = true nd E = {((l A, l B, τ), g, u, R {h}, (l A, l B, )) (l A, g,, R, l A ) Eu A } {((l A, l B, τ), g, u, R {h}, (l A, l B, )) (l B, g,, R, l B ) Ec B } {((l A, l B, ), g, c, R, (l A, l B, τ)) (l A, g,, R, l A ) Ec A } {((l A, l B, ), g, c, R, (l A, l B, τ)) (l B, g,, R, l B ) Eu B } If the current stte of Gme s (A,B) is denoted ((l A,l B,l), v), the control property is the following: { } { } InvstA InvstB A W l τ = v(h) = 0 l τ = v(h) = 0 L1 L2 z>=1 z=0 b L3 y>=1 x=0 y=0 L5 x<=2 Fig. 1. Two timed gme utomt, where the trnsitions lbeled by re uncontrollble. Theorem 2. A s B iff B hs winning strtegy in the timed gme Gme s (A,B). 3.3 Wek Alternting Simultion As it is often the cse tht only observble ctions re of interest, we define wek reltion where only the observble behvior of the utomt is tken into ccount. We present here simple version of wek lternting simultion, where the use of unobservble controllble trnsitions of A nd unobservble uncontrollble trnsitions of B is restricted. Other choices re possible, but they usully mke the definition of wek lternting simultion nd/or its coding s timed gme very tricky. 2 Definition 9. A wek lternting simultion reltion between two TGAs A nd B is reltion R Q A Q B such tht (q 0A,q 0B ) R nd for every (q A,q B ) R: (q B c q B ) q A (q A c q A (q A,q B ) R) (q A u q A ) q B (q B u q B (q A,q B ) R) (q B q B ) q A (q { A q A (q A,q B ) R) τ (q B c q B ) (qa,q B ) R q A (q τ { A c q A (q A,q B ) R) τ (q (q A u q A ) A,q B ) R q B (q τ B u q B (q A,q B ) R) We write A w B if there exists wek lternting simultion reltion between A nd B. Remrk tht wek lternting simultion is lrger thn strong lternting simultion nd tht if A nd B re fully observble, then wek lternting simultion nd strong lternting simultion coincide. In Fig. 1 we show two timed gme utomt (denote A the one on the left nd B the one on the right) where the trnsitions lbeled by re uncontrollble. The other trnsitions re controllble, some lbeled by b, some unobservble. We hve A w B. Intuitively, the reson is tht the controller hs more freedom in A thn in B, becuse only one ction b is possible in B; but the environment of B cn lwys imitte the ctions of the environment of A. Theorem 3. If A nd B re two timed gmes such tht A w B, then for every formul A φ ATCTL λ, if B = c : A φ, then A = c : A φ. 2 For exmple, simply llowing n observble controllble trnsition to be imitted by sequence mde of n unobservble controllble trnsition τ followed by controllble poses the following problem: We must check tht the environment hs no possible ction from the intermedite stte, so tht it cnnot prevent the second ction from occurring. b L4

5 3.4 Wek Alternting Simultion s Timed Gme In this section we dpt the contruction of Section 3.2 to the cse of wek lternting simultion. The symbols τ c nd τ u re used to code the situtions where the environment of Gme w (A,B) hs plyed n unobservble ction. This ction corresponds either to n unobservble uncontrollble ction of A (in which cse the symbol τ u is used), or to n unobservble controllble ction of B (in which cse the symbol τ c is used. As well s in the coding of strong lternting simultion, the symbol τ codes the situtions where ll the uncontrollble ctions of A nd ll the controllble ctions of B hve been imitted. The trnsitions of Gme w (A,B) (see the construction of E in Definition 10) re: those corresponding to the observble trnsitions (lines 1 to 4), similr to those in Definition 8; the unobservble trnsitions plyed by the environment of Gme w (A,B) (lines 5 nd 6); the trnsitions tht the controller of Gme w (A,B) tkes fter the environment hs plyed n unobservble trnsition (lines 7 to 10). They re of two kinds, corresponding to the disjunctions tht pper t the right of the lst two implictions in Definition 9: The controller of Gme w (A,B) hs the choice to tke zero or one unobservble ction. Definition 10. The TGA of Gme w (A,B) is defined s (L,l 0, {u,c},x,e,inv) where L = L A L B (Σ {τ c,τ u,τ}), l 0 = (l 0A,l 0B,τ), X = X A X B {h}, Inv = true nd E = {((l A, l B, τ), g, u, R {h}, (l A, l B, )) (l A, g,, R, l A ) Eu A τ} {((l A, l B, τ), g, u, R {h}, (l A, l B, )) (l B, g,, R, l B ) Ec B τ} {((l A, l B, ), g, c, R, (l A, l B, τ)) (l A, g,, R, l A ) Ec A τ} {((l A, l B, ), g, c, R, (l A, l B, τ)) (l B, g,, R, l B ) Eu B τ} {((l A, l B, τ), g, u, R {h}, (l A, l B, τ u)) (l A, g, τ, R, l A ) Eu A } {((l A, l B, τ), g, u, R {h}, (l A, l B, τc)) (l B, g, τ, R, l B ) Ec B } {((l A, l B, τ c), g, c, R, (l A, l B, τ)) (l A, g, τ, R, l A ) Ec A } {((l A, l B, τ u), g, c, R, (l A, l B, τ)) (l B, g, τ, R, l B ) Eu B } {((l A, l B, τ c),true, c,, (l A, l B, τ)) l A L A l B L B } {((l A, l B, τ u),true, c,, (l A, l B, τ)) l A L A l B L B } The control property is the sme s in Definition 8. Theorem 4. A w B iff B hs winning strtegy in the timed gme Gme w (A,B). 4. CONTROL UNDER PARTIAL OBSERVABILITY In (Cssez et l., 2007) we gve n on-the-fly lgorithm to solve the problem of timed controllbility under prtil observbility. The generl setup is the sme s in Section 2 where the controller nd the environment re competing for ctions. But in ddition, controller hs only imperfect or prtil informtion on the stte of the system (tht includes the environment), given in terms of finite number of observtions, tht re triggered either when discrete ction is plyed or when some clock reches given vlue. The controller cn only use such observtions to distinguish sttes nd bse its strtegy on. According to these rules, controllble ction is plyed until the observtion chnges. Therefore we re interested in strtegies where the ctions re chnged only when the observtion chnges. Such strtegies re clled observtion pos < N x := 0, pos++ x <= 1 x := 0 x > 0 Redy Win x >= N+3 Lose x > N+1 Win x >= N+3 Lose Fig. 2. Concrete (left) nd bstrct (right) model of box. bsed stuttering invrint strtegies (OBSI). A winning OBSI strtegy is such tht it leds to winning observtion whtever the environment chooses. The winning condition is given s prticulr observtion. The lgorithm presented in (Cssez et l., 2007) tht solves this problem is bsed on constructing sets of symbolic sttes ( l,z) with l being the discrete prt nd Z zone. The importnt point in the explortion lgorithm tht explins the experimentl results is tht the explortion is done by computing successors of sets of such sttes ccording to given ction σ until the current observtion chnges. The resulting spce-spce is prtitioned by the combintions of the observtions (exponentil), the number of sets of symbolic sttes is exponentil in function of the number of symbolic sttes, nd the number of sttes is itself exponentil in the number of clocks. 4.1 Exmple of Use of Alternting Simultion for Timed Control under Prtil Observbility In this cse-study, box is plced on moving conveyor belt to rech plce where it will be filled. The box hs to go through number of steps, tht is prmeter N in the model. Ech step tkes vrible durtion (0 to 1 time unit); consequently, the exct time when the box rrives in the stte Redy is unknown. And the box might sty only N + 3 time units in the stte Redy. Figure 2 (left prt) shows model of the system s timed gme utomton. The loop represents the progress on the conveyor belt, incrementing the vrible pos, which represents the position on the belt. Thus the chllenge for the controller is to fill the box while it is in the stteredy. This would be esy if the controller observes the progress of the box on the conveyor belt. But we ssume precisely tht this is not the cse. Then the controller hs to fill the box t time where it is sure tht the box is in the stte Redy, however the box hs progressed on the conveyor belt. Now, using the control formul: c : A Win (where is the temporl opertor eventully, φ is shorthnd for true U φ), Uppl-Tig llows us to generte controller which will fill the box while it is in the stte Redy. However, the strtegy synthesized is bsed on full informtion, including the position of the box on the conveyor belt. In our context, this informtion is not vilble for the controller. We therefore introduce fully observble, bstrct model, shown in Figure 2 (right). Agin we use Uppl-Tig to check for controllbility. To gurntee tht the strtegy obtined from this bstrct model lso correctly controls our originl concrete model we use Uppl-Tig to estblish wek, timed lternting simultion between the two models using the technique presented in Section 3.

6 simultion N symbolic time sttes (seconds) Tble 1. Experimentl results prtil observbility N sets of time symbolic (seconds) sttes Actully, in order to tret this cse-study, we hd to use more generl simultion reltion thn the one presented in this pper: Indeed, the bstrct model does not fit the requirement tht controllble trnsition cn fire when n invrint expires. This cse requires quite tricky constructions tht we did not detil in this pper. 4.2 Experimentl Results We compre two methods for checking the controllbility of our property. Tble 1 shows the number of explored symbolic sttes nd the execution time obtined experimentlly. The first method is bsed on our simultion technique. The second method uses n implementtion in Ruby of the lgorithm presented in (Cssez et l., 2007) tht solves directly the control problem under prtil observbility. Beyond the fct tht the Ruby code is interpreted nd slow, we see clerly tht its execution time grows s n exponentil of N. In contrst the time required for checking the simultion reltion using Uppl-Tig is qudrtic. The number of symbolic sttes explored by our simultion-bsed method is liner, while the first method for prtil observbility explores qudrtic number of sets of symbolic sttes. In our exmple we hve the observtion y [0,1) for clock y tht belongs. This hs the effect of cutting zones down to regions in prctice. In ddition, those regions cn combine nd define different sets of symbolic sttes, which is exponentil. This exponentil shows up only in time nd not in spce. This is due to on-the-fly inclusion checks tht remove sets, hence they do not pper t the end. We note tht the inclusion check between two sets of sttes is more complex thn ordinry inclusion check between two zones. This behviour is similr to determiniztion of nondeterministic utomt tht cn give such combintoril blow-ups. 5. CONCLUSION We hve defined strong nd wek lternting timed simultion between timed gme utomt nd shown tht these reltions preserve controllbility w.r.t. ATCTL λ. Moreover we hve proposed coding of the strong nd wek lternting simultion problems s timed gmes. Any winning strtegy of the timed gme cn be used to build the wek lternting timed simultion reltion nd vice vers. We hve shown how lternting timed simultion reltions cn be used to control efficiently prtilly observble systems. We used our tool Uppl-Tig to solve the timed gmes generted from generic cse-study. Though focus in this pper is on timed (wek) lternting simultion preorders the given constructions my be dpted to support the checking of other timed preorders, including redy simultion preorder nd (wek) bisimultion. Also our constructions were designed so tht it is stritforwrd to ddpt them to preorders between networks of timed gme utomt. REFERENCES Alur, R., Courcoubetis, C., nd Dill, D.L. (1993). Modelchecking in dense rel-time. Inf. Comput., 104(1), Alur, R. nd Dill, D. (1994). A theory of timed utomt. Theoreticl Computer Science, 126(2), Alur, R., Henzinger, T.A., nd Kupfermn, O. (1997). Alternting-time temporl logic. In FOCS, Alur, R., Henzinger, T.A., Kupfermn, O., nd Vrdi, M.Y. (1998). Alternting refinement reltions. In CONCUR, volume 1466 of LNCS, Springer. Bozg, M., Dws, C., Mler, O., Olivero, A., Tripkis, S., nd Yovine, S. (1998). Kronos: model-checking tool for rel-time systems. In CAV, volume 1427 of LNCS. Cssez, F., Dvid, A., Fleury, E., Lrsen, K.G., nd Lime, D. (2005). Efficient on-the-fly lgoriths for the nlysis of timed gmes. In CONCUR, volume 3653 of LNCS. Cssez, F., Dvid, A., Lrsen, K.G., Lime, D., nd Rskin, J.F. (2007). Timed control with observtion bsed nd stuttering invrint strtegies. In ATVA, volume 4762 of LNCS, Springer. Cerns, K. (1992). Decidbility of bisimultion equivlences for prllel timer processes. In CAV, volume 663 of LNCS. Springer. Cerns, K., Godskesen, J.C., nd Lrsen, K.G. (1993). Timed modl specifiction theory nd tools. In CAV, volume 697 of LNCS. Springer. Chtin, Th., Dvid, A., nd Lrsen, K.G. (2008). Plying gmes with timed gmes. Reserch Report LSV-08-34, LSV, ENS Cchn, Frnce. de Alfro, L., Fell, M., Henzinger, T.A., Mjumdr, R., nd Stoeling, M. (2003). The element of surprise in timed gmes. In CONCUR Concurrency Theory, volume 2761 of LNCS, Jensen, H.E., Lrsen, K.G., nd Skou, A. (2000). Scling up Uppl utomtic verifiction of rel-time systems using compositionlity nd bstrction. In FTRTFTS, volume 1926 of LNCS. Springer. Jessen, J.J., Rsmussen, J.I., Lrsen, K.G., nd Dvid, A. (2007). Guided controller synthesis for climte controller using uppl-tig. In FORMATS, volume 4763 of LNCS. Springer. Lrsen, K.G., Pettersson, P., nd Yi, W. (1997). Uppl in nutshell. Journl of Softwre Tools for Technology Trnsfer (STTT), 1(1-2), Mler, O., Pnueli, A., nd Sifkis, J. (1995). On the synthesis of discrete controllers for timed systems. In STACS, volume 900 of LNCS. Springer. Weise, C. nd Lenzkes, D. (1997). Efficient sclinginvrint checking of timed bisimultion. In STACS, volume 1200 of LNCS. Springer.

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

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

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

Foundations for Timed Systems

Foundations for Timed Systems Foundtions for Timed Systems Ptrici Bouyer LSV CNRS UMR 8643 & ENS de Cchn 6, venue du Président Wilson 9423 Cchn Frnce emil: bouyer@lsv.ens-cchn.fr Introduction Explicit timing constrints re nturlly present

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

Refined interfaces for compositional verification

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

More information

Modal Logics for Timed Control

Modal Logics for Timed Control Modl Logics for Timed Control Ptrici Bouyer, Frnck Cssez, Frnçois Lroussinie To cite this version: Ptrici Bouyer, Frnck Cssez, Frnçois Lroussinie. Modl Logics for Timed Control. 16th nt. onf. on oncurrency

More information

1 Online Learning and Regret Minimization

1 Online Learning and Regret Minimization 2.997 Decision-Mking in Lrge-Scle Systems My 10 MIT, Spring 2004 Hndout #29 Lecture Note 24 1 Online Lerning nd Regret Minimiztion In this lecture, we consider the problem of sequentil decision mking in

More information

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

Reinforcement learning II

Reinforcement learning II CS 1675 Introduction to Mchine Lerning Lecture 26 Reinforcement lerning II Milos Huskrecht milos@cs.pitt.edu 5329 Sennott Squre Reinforcement lerning Bsics: Input x Lerner Output Reinforcement r Critic

More information

Riemann Sums and Riemann Integrals

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

More information

Riemann Sums and Riemann Integrals

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

More information

Summer School Verification Technology, Systems & Applications

Summer School Verification Technology, Systems & Applications VTSA 2011 Summer School Verifiction Technology, Systems & Applictions 4th edition since 2008: Liège (Belgium), Sep. 19 23, 2011 free prticiption, limited number of prticipnts ppliction dedline: July 22,

More information

Handout: Natural deduction for first order logic

Handout: Natural deduction for first order logic MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Lerning Tom Mitchell, Mchine Lerning, chpter 13 Outline Introduction Comprison with inductive lerning Mrkov Decision Processes: the model Optiml policy: The tsk Q Lerning: Q function Algorithm

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

How to simulate Turing machines by invertible one-dimensional cellular automata

How to simulate Turing machines by invertible one-dimensional cellular automata How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

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

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

N 0 completions on partial matrices

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

More information

19 Optimal behavior: Game theory

19 Optimal behavior: Game theory Intro. to Artificil Intelligence: Dle Schuurmns, Relu Ptrscu 1 19 Optiml behvior: Gme theory Adversril stte dynmics hve to ccount for worst cse Compute policy π : S A tht mximizes minimum rewrd Let S (,

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

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

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

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

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7

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

More information

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

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

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

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

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

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

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

Chapter 0. What is the Lebesgue integral about?

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

More information

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

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

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

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

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

More information

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

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

More information

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

Finite Automata Part Three

Finite Automata Part Three Finite Automt Prt Three Hello Hello Wonderful Wonderful Condensed Condensed Slide Slide Reders! Reders! The The first first hlf hlf of of this this lecture lecture consists consists lmost lmost exclusively

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

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

Extended nonlocal games from quantum-classical games

Extended nonlocal games from quantum-classical games Extended nonlocl gmes from quntum-clssicl gmes Theory Seminr incent Russo niversity of Wterloo October 17, 2016 Outline Extended nonlocl gmes nd quntum-clssicl gmes Entngled vlues nd the dimension of entnglement

More information

Continuous Random Variables

Continuous Random Variables STAT/MATH 395 A - PROBABILITY II UW Winter Qurter 217 Néhémy Lim Continuous Rndom Vribles Nottion. The indictor function of set S is rel-vlued function defined by : { 1 if x S 1 S (x) if x S Suppose tht

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

The 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

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

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

Learning Moore Machines from Input-Output Traces

Learning Moore Machines from Input-Output Traces Lerning Moore Mchines from Input-Output Trces Georgios Gintmidis 1 nd Stvros Tripkis 1,2 1 Alto University, Finlnd 2 UC Berkeley, USA Motivtion: lerning models from blck boxes Inputs? Lerner Forml Model

More information

Stuttering for Abstract Probabilistic Automata

Stuttering for Abstract Probabilistic Automata Stuttering for Abstrct Probbilistic Automt Benoît Delhye 1, Kim G. Lrsen 2, nd Axel Legy 1 1 INRIA/IRISA, Frnce, {benoit.delhye,xel.legy}@inri.fr 2 Alborg University, Denmrk, kgl@cs.u.dk Abstrct. Probbilistic

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

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

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

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

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

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

More information

New Expansion and Infinite Series

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

More information

Improper Integrals, and Differential Equations

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

More information

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

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

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

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

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

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

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More information

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations. Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one

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

Timed Automata as Task Models for Event-Driven Systems

Timed Automata as Task Models for Event-Driven Systems Timed Automt s Tsk Models for Event-Driven Systems Christer Norström 1 nd Anders Wll 1 1 Mälrdlen University Deprtment of Computer Engineering P.O. Box 883, S-721 23 Västerås, Sweden fwl,ceng @mdh.se Wng

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

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

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

More information

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

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

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

Lecture 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

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

Chapter 5 : Continuous Random Variables

Chapter 5 : Continuous Random Variables STAT/MATH 395 A - PROBABILITY II UW Winter Qurter 216 Néhémy Lim Chpter 5 : Continuous Rndom Vribles Nottions. N {, 1, 2,...}, set of nturl numbers (i.e. ll nonnegtive integers); N {1, 2,...}, set of ll

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

Math Lecture 23

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

More information

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

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

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

Problem Set 7: Monopoly and Game Theory

Problem Set 7: Monopoly and Game Theory ECON 000 Problem Set 7: Monopoly nd Gme Theory. () The monopolist will choose the production level tht mximizes its profits: The FOC of monopolist s problem is: So, the monopolist would set the quntity

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

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

Riemann Integrals and the Fundamental Theorem of Calculus

Riemann Integrals and the Fundamental Theorem of Calculus Riemnn Integrls nd the Fundmentl Theorem of Clculus Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University September 16, 2013 Outline Grphing Riemnn Sums

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Quadratic Forms. Quadratic Forms

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

More information

On Timed Automata with Discrete Time Structural and Language Theoretical Characterization

On Timed Automata with Discrete Time Structural and Language Theoretical Characterization On Timed Automt with Discrete Time Structurl nd Lnguge Theoreticl Chrcteriztion Hermnn Gruber 1, Mrkus Holzer 1, Astrid Kiehn 2, nd Brbr König 3 1 Institut für Informtik, Technische Universität München,

More information

New data structures to reduce data size and search time

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

More information

1 1D heat and wave equations on a finite interval

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

More information

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

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

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

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

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

More information

An Automata Toolbox. Mikołaj Bojańczyk and Wojciech Czerwiński

An Automata Toolbox. Mikołaj Bojańczyk and Wojciech Czerwiński An Automt Toolbox Mikołj Bojńczyk nd Wojciech Czerwiński Prefce T hese re lecture notes for course on dvnced utomt theory, tht we gve t the University of Wrsw in the yers 2015-2018. The mteril ws chosen

More information

Vyacheslav Telnin. Search for New Numbers.

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

More information

Managing non-determinism in symbolic robot motion planning and control

Managing non-determinism in symbolic robot motion planning and control 2007 IEEE Interntionl Conference on Robotics nd Automtion Rom, Itly, 10 14 April 2007 ThD11.4 Mnging non-determinism in symbolic robot motion plnning nd control Mrius Kloetzer nd Clin Belt Center for Informtion

More information

f(x)dx . Show that there 1, 0 < x 1 does not exist a differentiable function g : [ 1, 1] R such that g (x) = f(x) for all

f(x)dx . Show that there 1, 0 < x 1 does not exist a differentiable function g : [ 1, 1] R such that g (x) = f(x) for all 3 Definite Integrl 3.1 Introduction In school one comes cross the definition of the integrl of rel vlued function defined on closed nd bounded intervl [, b] between the limits nd b, i.e., f(x)dx s the

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