A Compositional Approach on Modal Specifications for Timed Systems

Size: px
Start display at page:

Download "A Compositional Approach on Modal Specifications for Timed Systems"

Transcription

1 INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE A Compositionl Approch on Modl Specifictions for Timed Systems Nthlie Bertrnd Axel Legy Sophie Pinchint Jen-Bptiste Rclet N 7039 Septembre 2009 Thème COM pport de recherche ISSN ISRN INRIA/RR FR+ENG

2

3 A Compositionl Approch on Modl Specifictions for Timed Systems Nthlie Bertrnd, Axel Legy, Sophie Pinchint, Jen-Bptiste Rclet Thème COM Systèmes communicnts Équipes-Projets VerTeCs (INRIA Rennes/IRISA), S4 (INRIA Rennes/IRISA) et Pop Art (INRIA Grenoble) Rpport de recherche n 7039 Septembre pges Abstrct: On the one hnd, modl specifictions re clssic, convenient, nd expressive mthemticl objects to represent interfces of component-bsed systems. On the other hnd, time is crucil spect of systems for prcticl pplictions, e.g. in the re of embedded systems. And yet, only few results exist on the design of timed component-bsed systems. In this pper, we propose timed extension of modl specifictions, together with fundmentl opertions (conjunction, product, nd quotient) tht enble to reson in compositionl wy bout timed system. The specifictions re given s modl event-clock utomt, where clock resets re esy to hndle. We develop n entire theory tht promotes efficient incrementl design techniques. Key-words: Component-bsed system, interfce-bsed design, timed modl specifiction, conjunction, product, residution. This work ws funded by the Europen project COMBEST, IST-STREP INRIA Rennes/IRISA. prenom.nom@inri.fr Université Rennes 1/IRISA. sophie.pinchint@iris.fr INRIA Rhône-Alpes Grenoble. rclet@inrilpes.fr Centre de recherche INRIA Rennes Bretgne Atlntique IRISA, Cmpus universitire de Beulieu, Rennes Cedex (Frnce) Téléphone : Télécopie :

4 Spécifictions Modles Temporisées pour le Risonnement Compositionnel Résumé : Les spécifictions modles constituent un formlisme expressif dpté pour l représenttion des interfces des différents composnts d un système. Pr illeurs, le temps est un spect crucil lors de l conception d un système informtique, en prticulier, dns le contexte des systèmes embrqués. Cet spect est cependnt insuffismment étudié dns l littérture. Dns ce ppier, nous proposons une extension temporisée des spécifictions modles et définissons des opértions (conjonction, produit et quotient) fondmentles pour le risonnement compositionnel ppliqué ux systèmes temporisés. Les spécifictions sont données en terme d utomtes modux à horloges événementielles, c-à-d. pour lesquelles les réinitilistions d horloges sont fcilement identifibles. Nous développons une théorie complète qui conduit à des techniques efficces. Mots-clés : Composnt logiciel, conception pr interfces, spécifiction modle temporisée, conjonction, produit, résidution.

5 A Compositionl Approch on Modl Specifictions for Timed Systems 3 1 Introduction Nowdys, systems re tremendously big nd complex, resulting from the ssembling of severl components. These mny components re in generl designed by tems, working independently but with common greement on wht the interfce of ech component should be. As consequence, mthemticl foundtions tht llow to reson t the bstrct level of interfces, in order to infer properties of the globl implementtion, nd to design or to dvisedly (re)use components is very ctive reserch re, known s compositionl resoning [15]. In logicl interprettion, interfces re specifictions nd components tht implement n interfce re understood s models. Aiming t prcticl pplictions s the finl gol, the softwre engineering point of view nturlly leds to the following requirements for good theory of interfces. 1. Stisfibility/Consistency nd Stisfction. It should be decidble whether specifiction dmits model, nd whether given component implements given interfce. Moreover, for the synthesis of components to be effective, stisfible interfces should lwys hve finitely presentble models. 2. Refinement nd shred refinement. Refinement of specifictions [19, 22] expresses inclusion of sets of models, nd therefore llows to compre interfces. Relted to this impliction-like concept, the intersection, or gretest lower bound, is n optiml interfce refining two given interfces. 3. Compositionlity of the bstrction. The interfce theory should lso provide combintion opertor on interfces, reflecting the stndrd composition of models by, e.g. prllel product. 4. Quotient. Lst but not lest, quotienting opertion, dul to composition is crucil to perform incrementl design. Intuitively, the quotient enbles to describe prt of globl specifiction ssuming nother prt is lredy relized by some component. Together with the composition the quotient opertor enjoys the following fundmentl property t the component level: C 2 = S S 1 C 1 [C 1 = S 1 C 1 C 2 = S] ( ) where S, S i re interfces, C, C i components, nd = is the stisfction reltion. Building good interfce theories is the subject of intensive studies which hve led to theories bsed on models such s interfce utomt [11, 13], modl utomt or specifictions [18, 21, 22, 23, 5], nd their respective timed extension [12, 8]. Modl specifictions re deterministic utomt equipped with trnsitions of the following two types: my nd must. The components tht implement such interfces re deterministic lbeled trnsition systems; n lterntive lnguge-bsed semntics cn therefore be considered, s presented in RR n 7039

6 4 Bertrnd et l. [21, 22]. Informlly, must trnsition is vilble in every component tht implements the modl specifiction, while my trnsition needs not to be. Modl specifictions re interpreted s logicl specifictions mtching the conjunctive nu-clculus frgment of the mu-clculus [14]. As corollry, but lso proved directly in [21], stisfction nd consistency of modl specifictions re decidble, nd the finite model property holds. Refinement between modl specifictions coincides with stndrd notion of lternting simultion. Since components cn be seen s specifictions where ll trnsitions re typed must (ll possible implementtion choices hve been mde), stisfction is lso expressed vi lternting simultion. Shred refinement is effectively computed vi product-like construction. Combintion of modl specifictions, hndling synchroniztion products à l Arnold nd Nivt [6], nd the dul quotient combintors cn be efficiently hndled in this setting [22]. Recently, timed extension of the theory of modl specifictions hs been introduced [8], motivted by the fct tht time cn be crucil prmeter in prctice, e.g. in embedded system pplictions. In this piece of work, components re timed utomt s defined in [1], nd nturlly, n effective nd expressive region-bsed semntics llows to combine modlities nd timing constrints. In this pper, we build on this preliminry pper nd develop complete compositionl pproch for modl specifictions of timed systems. This frmework fvors methodologies for n incrementl design process: Assume globl system implementing specifiction S hs to be synthesized, nd ssume component implements interfce S 1. Computing S S 1 nd synthesizing model of S S 1 yields component tht, in -combintion with the component for S 1, will yield model for the globl interfce S, thnks to property ( ). As consequence, low complexity lgorithms re needed for computing product nd quotient, s well s for the stisfibility decision procedure. The synchronous product of timed objects requires tight control on clocks [1], nd so should its dul quotient. Actully, developing the theory in the generl frmework where components cn reset their clocks in n rbitrry mnner is difficult question. Indeed, computing the resets of clocks of product or of quotient depends on how the control of clocks is distributed mong the components. This informtion hs to be provided priori, which requires n extr formlism. We therefore restrict the presenttion to the clss of components definble by event-clock utomt [2]: in these timed utomt, resets re fully determined by the ctions. Interfces whose models re event-clock utomt re clled modl event-clock specifictions (mecs). Inheriting from the region-bsed semntics of timed modl specifictions [8], we study the stisfibility s well s the consistency problems for mecs. Stisfibility is PSPACE-complete, hence no hrder thn trditionl decision problems in the clss of timed utomt. Refinement serves s theoreticl bsis to develop the product nd the quotient of mecs. We propose two equivlent chrcteriztions of these opertions. Not surprisingly ccording to the semntics, inefficient EXPTIME constructions vi the region grphs of the mecs (seen s untimed specifictions) re provided. More interestingly, we present lterntive direct nd efficient PTIME constructions. The rest of the pper is orgnized s follows. In Section 2, we introduce the timed modl specifiction setting, with preliminries on untimed modl specifictions nd the definition of modl event-clock specifictions. Section 3 focuses INRIA

7 A Compositionl Approch on Modl Specifictions for Timed Systems 5 on mecs nd exposes effective techniques to compute the binry opertions of gretest lower bound, product, nd quotient. In Section 4, we compre our frmework with the existing literture. Section 5 concludes the pper. 2 Timed modl specifictions In this section we recll the frmework of modl specifictions defined in [17], further studied in [22], nd its timed extension, recently proposed in [8]: We discuss the semntic, the preorder refinement nd the stisfibility problem for untimed nd timed modl specifictions. 2.1 Preliminries on untimed specifictions A modl specifiction is n utomton equipped with two types of trnsitions: must-trnsitions, tht re required nd my-trnsitions, tht re llowed. We fix Σ finite set of ctions. Definition 1 (Modl specifiction) A modl specifiction (ms) is tuple R = (P, λ 0, m, M ) where P = P is finite set of sttes with P =, λ 0 P is the unique initil stte, nd M m P Σ P. M nd m correspond respectively to must-trnsitions nd my-trnsitions. We dditionlly ssume tht m is deterministic (hence so is M ) nd complete, tht is, for every stte p P nd every ction Σ, there is exctly one stte λ P such tht (p,, λ) m. We use p (resp. λ) s typicl element of P (resp. P ). Note tht completeness is not restriction since from ny incomplete specifiction, one cn derive complete one by dding my-trnsitions to possibly new stte. Intuitively, in stte p P -my trnsition to some stte λ lbelled by ction mens tht ction is forbidden in p. This interprettion will become clerer when we define the set of models of modl specifiction. The condition M m nturlly imposes tht every required trnsition is lso llowed; it gurntees the locl consistency of the modl constrints. The set of sttes denotes the bd sttes which crry locl inconsistency. Elements of re sink sttes with no outgoing trnsition since both M nd m re subsets of P Σ P. Globl inconsistency cn be derived s follows: we let I be the set of inconsistent sttes tht must led (tht is vi sequence of must-trnsitions) to locl inconsistency; sttes in P \ I re consistent. Formlly I = {λ 0 n 0, λ 1 λ n P 1 n Σ s.t. λ n nd (λ i, i+1, λ i+1 ) M }. Notice tht in prticulr I. We sy tht the modl specifiction R is consistent whenever its initil stte is consistent, i.e. λ 0 / I; otherwise R is inconsistent. In the following, we write or drw p λ (resp. p λ) to men (p,, λ) M (resp. (p,, λ) m \ M ); in other words, solid rrows denote required trnsition, wheres dshed rrow represent llowed but not required trnsitions. Exmple 1 Consider client for given resource vilble in system. The lphbet of ctions includes: get when the resource is requested; grnt in cse of ccess to the resource; nd, extr which occurs when privileged ccess with extended time is requested. RR n 7039

8 6 Bertrnd et l.!extr 0!get!extr 1?grnt () Client Cl!get!extr!get!get b c?grnt?grnt (b) Automton M Figure 1: The modl specifiction Cl ccepts the utomton M In order to simplify the figures, sttes in re not represented (except if they re necessry) nd trnsitions of the form q re not depicted. Action nmes my be preceded by some! or? when the occurrence of the ctions respectively stems from the designed component or by its environment. The modl specifiction Cl for the client in Fig. 1() specifies tht get request my be sent gin. Moreover every get request must be grnted. Additionlly the client my request extended time t ny moment. Models of ms re deterministic utomt 1, with possibly infinitely mny sttes, which we shortly cll utomt in the sequel. An utomton is structure of the form M = (M, m 0, ) where M is (possibly infinite) set of sttes, m 0 M is unique initil stte, nd M Σ M is prtil trnsition function. The model reltion = defined below is prticulr cse of lternting simultion [4] between the model nd the consistent prt, if ny, of the specifiction. Definition 2 (Model Reltion) Let R = (P, λ 0, m, M ) be ms. An utomton M = (M, m 0, ) is model of R, written M = R, if there exists binry reltion ρ M (P \I) such tht (m 0, λ 0 ) ρ, nd for ll (m, p) ρ, the following hold: (1) for every (p,, λ) M there is trnsition (m,, m ) with (m, λ) ρ, nd (2) for every (m,, m ) there is trnsition (p,, λ) m with (m, λ) ρ. We denote by Mod(R), the set of models of n ms R = (P, λ 0, m, M ). Remrk in Definition 2 tht inconsistent sttes of the specifiction cnnot pper in the reltion ρ. Consequently, trnsition of the form (p,, λ) m where λ I is inconsistent interprets s: in ny model, no -trnsition from stte in reltion with p is llowed. Moreover, for λ 0 I no ρ cn exist nd ctully we hve: Lemm 1 Let R be ms. Mod(R) if, nd only if, R is consistent. Proof ( ) Assume R is inconsistent, i.e. λ 0 I. For every utomton M = (M, m 0, ), there cnnot be ny binry reltion ρ M (P \ I) with (m 0, λ 0 ) ρ, since λ 0 I. Hence R hs no model. ( ) Assume R is consistent. Intuitively, (finite-stte) model is obtined by mimicking the must trnsitions of the specifiction. Let p 0 = λ 0 P, nd consider the utomton M obtined s follows. We let m 0 be the initil stte 1 lso clled deterministic lbeled trnsition systems. INRIA

9 A Compositionl Approch on Modl Specifictions for Timed Systems 7 of M, nd we let m 0 be relted to p 0 by binry reltion ρ M (P \ I) we incrementlly construct: ρ is the lest reltion such tht for every (m, p) ρ, if (p,, p ) M for some p P, then there is trget stte m in M of trnsition (m,, m ) with (m, p ) ρ. It is not difficult to verify tht by construction M = R vi the simultion ρ, which entils Mod(R). Exmple 2 The utomton M in Fig. 1(b) is model of the ms Cl in Fig. 1() s the binry reltion ρ = {(, 0), (b, 1), (c, 1)} witnesses. The semntic preorder between ms relies on n extension of Definition 2. Definition 3 (Modl Refinement Preorder) Given two ms, R 1 = (P 1, λ 0 1, m 1, M 1 ) nd R 2 = (P 2, λ 0 2, m 2, M 2 ), R 1 is refinement of R 2, written R 1 R 2, whenever there exists binry reltion ρ (I 1 I 2 ) (P 1 (P 2 \I 2 )) such tht (λ 0 1, λ0 2 ) ρ, nd for ll (λ 1, λ 2 ) ρ ((P 1 \ I 1 ) (P 2 \ I 2 )): (1) for every (λ 2,, λ 2 ) M 2 there exists (λ 1,, λ 1 ) M 1 with (λ 1, λ 2 ) ρ (2) for every (λ 1,, λ 1 ) m 1 there exists (λ 2,, λ 2 ) m 2 with (λ 1, λ 2 ) ρ. Definition 3 requires some explntions. First, by definition of the domin of ρ, n inconsistent stte of R 2 cn only be refined s n inconsistent stte in R 1 wheres consistent stte in R 2 cn either be linked to consistent or inconsistent stte in R 1. Moreover, for pirs of consistent sttes, Condition (1) ensures tht ll required trnsition in R 2 re lso required in R 1, nd Condition (2) gurntees tht ech possible trnsition in R 1 is lso llowed in R 2. Under our ssumption tht ms re deterministic, we cn show tht the preorder between ms mtches the model inclusion preorder. We estblish n intermedite result tht exploits the embedding of utomt into modl specifictions. Definition 4 (Embedding in ms) An utomton M = (M, m 0, ) cn be interpreted s modl specifiction M = (M { }, m 0, m, M ) where = M m, nd (m,, ) m \ M when (m, ) is undefined in M. Lemm 2 Given n utomton M nd ms R, M = R iff M R. Proof Observe first tht is the unique inconsistent stte in M. Let ρ be the simultion reltion stting tht M = R. For (m, p) ρ nd every (p,, λ) m with λ I, M hs no trnsition from m lbelled by. In M, in this sitution, there is by construction trnsition from m to lbeled by. We then dd (, λ) in ρ. The obtined simultion reltion llows to estblish tht M = R. For the converse direction, the pirs (, λ) with λ I chrcterized bove re removed from the simultion reltion stting tht M R in order to obtin the simultion reltion for M = R. Proposition 1 Let R 1 nd R 2 be two ms, then: R 1 R 2 if, nd only if, Mod(R 1 ) Mod(R 2 ). RR n 7039

10 8 Bertrnd et l. Proof ( ) Let R 1 R 2 nd M = R 1. Then, by Corollry 2, M R 1. By trnsitivity of the refinement preorder, M R 2, nd hence M = R 2. ( ) Suppose Mod(R 1 ) Mod(R 2 ). If R 1 is inconsistent, trivilly R 1 R 2. Assume now tht R 1 is consistent. Then so must be R 2. We cn write p 0 1 (resp. p 0 2 ) the initil stte of R 1 (R 2 ). As R 1 nd R 2 re deterministic, simultion reltion ρ stting tht R 1 is refinement of R 2, if it exists, is unique. We consider the binry reltion ρ s the lest reltion such tht with (p 0 1, p0 2 ) ρ nd for every (p 1, p 2 ) ρ ((P 1 \ I 1 ) (P 2 \ I 2 )), we let (λ 1, λ 2 ) ρ whenever (p 2,, λ 2 ) M 2 nd (p 1,, λ 1 ) M 1, or (p 1,, λ 1 ) m 1 nd (p 2,, λ 2 ) m 2 Ẇe show tht ρ (I 1 I 2 ) (P 1 (P 2 \ I 2 )), which entils tht ρ is witness for R 1 R 2. if (p 2,, λ 2 ) M 2 then λ 2 P 2 \ I 2 otherwise we would hve p 2 I 2. Moreover every model M which hs stte m relted to the stte p 2 of R 2 necessrily hs n -trnsition leving m. A weker clim for p 1 is not possible, otherwise we would not hve Mod(R 1 ) Mod(R 2 ). As result, (p 1,, λ 1 ) M 1 nd (λ 1, λ 2 ) P 1 (P 2 \ I 2 ). if (p 1,, λ 1 ) m 1 then (p 2,, λ 2 ) m 2 s R 2 is complete. We now prove tht (λ 1, λ 2 ) (I 1 I 2 ) (P 1 (P 2 \ I 2 )): if λ 1 P 1 \ I 1, we hve to prove tht λ 2 P 2 \ I 2. As λ 1 P 1 \ I 1, there exists M model of R 1 hving trnsition from p 1 lbeled by. As Mod(R 1 ) Mod(R 2 ) then M should lso be model of R 2 nd thus trnsition should be llowed in p 2. As result, λ 2 P 2 \ I 2 ; if λ 1 I 1 then for λ 2 P 2 we hve (λ 1, λ 2 ) ρ. Note tht the determinism of modl specifictions is crucil for the Proposition 1. In the nondeterministic cse, modl refinement is not complete [19], tht is Mod(R 1 ) Mod(R 2 ) does not imply R 1 R 2 in generl. As consequence of Definition 3, inconsistent ms refine ny ms, nd consistent ms cn only refine consistent ms. In the following, we write R 1 R 2, nd sy tht R 1 nd R 2 re equivlent, whenever R 1 R 2 nd R 2 R 1. Remrk tht by merging ll sttes of I, every ms is equivlent to ms where the set of inconsistent sttes is singleton. 2.2 Modl event-clock specifictions Let X be finite set of clocks nd let IR 0 denote the set of non-negtive rels. A clock vlution over X is mpping ν : X IR 0. The set of clock vlutions over X is denoted V; in prticulr, 0 V is the clock vlution such tht 0(x) = 0 for ll x X. Given ν V nd t IR 0, we let (ν + t) V be the clock-vlution obtined by letting t time units elpse fter ν, formlly, (ν + t)(x) = ν(x) + t for every x X. A gurd over X is finite conjunction of expressions of the form x c where x X, c IN is constnt, nd {<,, =,, >}. We then denote by ξ[x] the set of ll gurds over X. For some fixed N IN, ξ N [X] represents the set of gurds involving only constnts equl to or smller thn N. The stisfction INRIA

11 A Compositionl Approch on Modl Specifictions for Timed Systems 9 reltion = (V ξ[x]) between clock vlutions nd gurds is defined in nturl wy nd we write ν = g whenever ν stisfies g. In the following, we will often buse nottion nd write g to denote the gurd g s well s the set of vlutions which stisfy g. Event-clock utomt [2], form subclss of timed utomt where clock resets re not rbitrry: ech ction comes with clock x which is reset exctly when ction occurs. We consider event-clock utomt with possibly infinitely mny loctions. Definition 5 (Event-clock utomt) An event-clock utomton (ec) over Σ is tuple C = (C, c 0, δ) where C is set of sttes, c 0 C is the initil stte, nd δ C ξ N [X Σ ] Σ C is the trnsition reltion (for some N N). The pir (Σ, N) is the signture of C. The semntics of n ec is similr to the one of timed utomton [1], except tht the set of clocks tht re reset by trnsition is determined by the ction of tht trnsition: while firing trnsition lbeled by, precisely clock x is reset. Event-clock utomt do form strict subclss of timed utomt, but they enjoy nice properties: they re closed under union nd intersection, nd more interestingly they cn be determinized (s opposed to the clss of rbitrry timed utomt). The determinizbility of event-clock utomt comes from the wy clocks re reset nd this property significntly eses the definition of binry opertors (such s lower bound, product nd quotient) on modl vrints of event-clock utomt. For fixed signture (Σ, N), region is n equivlence clss θ of clockvlutions tht stisfy the sme gurds in ξ N [X Σ ]. We denote by Θ N, or simply Θ, the set of ll regions. Given region θ Θ, we write Succ(θ) for the union of ll regions tht cn be obtined from θ by letting time elpse: Succ(θ) = {θ ν θ ν θ t IR 0 s.t. ν = ν + t}. Definition 6 (Region utomton [1]) The region utomton ssocited to n ec C = (C, c 0, δ) is the utomton R(C) = (C Θ, (c 0, 0), ) over the lphbet Θ Σ, where the set of trnsitions is defined s follows: for ech c, c C, θ, θ, θ Θ, nd Σ, ((c, θ), θ,, (c, θ )) whenever there exists (c, g,, c ) δ with θ Succ(θ) g, nd θ = θ [x = 0] is the region obtined from θ by resetting clock x. Note tht the region utomt we consider extend the ones introduced in [1] since their trnsition lbels keep trck of the intermedite region where the ction is fired. As consequence, ny utomton over the lphbet Θ Σ uniquely defines n ec whose signture is of the form (Σ, N Θ ), with N Θ determined by the set of regions Θ. We denote by T the nturl injection of region utomt into ec; this mpping enbles us to distinguish between the two interprettions of the sme syntctic object: R(C) is n utomton wheres T(R(C)) is n ec. Definition 7 (Modl event-clock specifiction) A modl event-clock specifiction (mecs) over the finite lphbet Σ is tuple S = (Q, λ 0, δ m, δ M ) where Q := Q is finite set of loctions, with Q =, nd the initil stte is λ 0 Q. RR n 7039

12 10 Bertrnd et l. δ M δ m Q ξ[x Σ ] Σ Q re finite sets of respectively must- nd my-trnsitions. Given my-trnsition (q, g,, λ) δ m, q is the source stte, λ is the destintion stte, g ξ[x Σ ] is the gurd tht specifies the vlutions for which the trnsition cn be tken, Σ is the ction lbeling the trnsition recll tht the only clock tht is then reset is x. Moreover we require tht δ m is deterministic (hence, so is δ M ) nd complete: for ny stte q Q, ny ction Σ, nd ny clock vlution ν V, there is exctly one trnsition (q, g,, λ) δ m such tht ν = g. Exmple 3 As n exmple of mecs, we consider in Fig. 2() timed vrint of the client Cl introduced erlier. The clock corresponding to the ction get is x get. In this exmple gin, for simplifiction purposes, trnsitions of the form q g, re not depicted. As mecs re complete, these trnsitions cn esily be recovered by tking g = ( i g i) where the g i s re the gurds ppering in the trnsitions of the form q gi, λ or q gi, λ. When the gurd of trnsition is not indicted, it is implicitly true. The mecs Cl for the client in Fig. 2() specifies tht get request my be sent gin t most one time unit fter the lst request.!extr!get!extr 0 1?grnt!get x get 1?get 0?extr 1!grnt x get 2?get!grnt x get 4 () Client Cl (b) Access controller Acc Figure 2: Client Cl nd ccess controller Acc In the sequel, we generlize the grphicl convention lredy used for untimed objects by writing q g, λ whenever (q, g,, λ ) (δ m \δ M ) nd q g, λ whenever (q, g,, λ ) δ M. Remrk tht nturl untimed object ssocited to mecs S is its region modl utomton, obtined by generlizing Definition 6 from event-clock utomt to their modl extension. More precisely, R(S) reflects the modlities of S = (Q, λ 0, δ m, δ M ) s done in [8], the initil stte is (λ 0, 0) nd the set of loclly inconsistent sttes in R(S) is S Θ. A mecs S is sid to be inconsistent if R(S) is inconsistent; otherwise, it is consistent. Given modl event-clock specifiction S over signture (Σ, N), R(S) is modl specifiction over the extended lphbet Σ Θ N ; similrly, given n event-clock utomton C, R(C) is n utomton over lphbet Σ Θ N. Hving this in mind, the model reltion in the timed cse is inherited from the one in the untimed cse vi the region construction: Definition 8 (Model reltion) Let S be mecs. An event-clock utomton C is model of S, written C = S, if R(C) = R(S). INRIA

13 A Compositionl Approch on Modl Specifictions for Timed Systems 11 The set of models of mecs S, is defined by Mod(S) := {C C = S}. Observing tht given mecs S, R(T(R(S))) nd R(S) re isomorphic, we obtin the following: Lemm 3 Let S be mecs. Then, Mod(T(R(S))) = Mod(S). In the spirit of Def.8 for the model reltion, the modl refinement preorder between mecs lso relies on region-bsed construction: Definition 9 (Modl refinement preorder) Given two mecs S 1 nd S 2, S 1 refines S 2, written S 1 S 2, whenever R(S 1 ) R(S 2 ). As corollry of the nlogous results in the untimed setting on ms, it is decidble whether mecs refines nother one. Moreover, refinement nd inclusion of models mtch: Corollry 1 Let S, S 1 nd S 2 be mecs. Then, Mod(S) if, nd only if S is consistent; S 1 S 2 if, nd only if Mod(S 1 ) Mod(S 2 ). Proof The first item is consequence of the similr result for untimed specifictions (see Lemm 1), s well s the immedite observtion tht given n utomton M, M = R(S) implies T(M) = S. The second item is trivil consequence of Proposition 1 nd Definition 9. The clss of deterministic ec cn be embedded into the one of mecs; let C be n ec, we note C the mecs obtined by typing with must every existing trnsitions in C nd by completing it by dding my-trnsitions to stte in. Definition 10 (Embedding in mecs) An ec C = (C, c 0, δ) cn be interpreted s mecs C = (C { }, c 0, δ m, δm ) where δ = δm δ m, nd (λ, g,, ) m \ M with g = ( i g i) nd where the g i s re the gurds ppering in the trnsitions of the form (λ, g i,, λ ) in δ. Assuming determincy of event-clock utomt is not restrictive, since they re known to be determinizble [2]. We then hve: Corollry 2 Let C be n ec nd S mecs, C = S if nd only if C S. Proof This follows from Definition 8 which tells tht C = S whenever R(C) = R(S). Moreover, by Definition 9, C S if nd only if, R(C ) R(S). To conclude, it suffices to consider Corollry 2. About consistency. We recll tht specifiction is consistent if, nd only if, it dmits model. According to Lemm 1, checking whether n untimed specifiction is consistent mounts to checking tht the set of sttes cnnot be reched from its initil stte by sequence of must-trnsitions. The consistency problem is thus NLOGSPACE-complete for modl specifictions nd PSPACEcomplete in the timed cse. RR n 7039

14 12 Bertrnd et l. 3 Opertions on specifictions In this section, we introduce opertions on modl event-clock specifictions, which enble compositionl resoning. More precisely, we define the gretest lower bound, the product, nd the quotient over mecs. For ech of these opertions, we estblish importnt theoreticl properties. 3.1 Gretest lower bound of mecs We study the concept of gretest lower bound, which corresponds to the conjunction of two modl specifictions nd equivlently to their best shred refinement. We first recll the definition of the gretest lower bound in the untimed cse. Let R 1 = (P 1, λ 0 1, m 1, M 1 ) nd R 2 = (P 2, λ 0 2, m 2, M 2 ) be two ms. The gretest lower bound of R 1 nd R 2 is R 1 R 2 = (P, (λ 0 1, λ0 2 ), m, M ) with P := P 1 P 2, := ( 1 P 2 ) (P 1 2 ), nd whose trnsition reltions re derived from the following rules: λ 1 λ 1 λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2) λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2 ) (Glb1) (Glb3) λ 1 λ 1 λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2) λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2 ) (Glb2) (Glb4) Remrk in prticulr, tht if in stte λ = (λ 1, λ 2 ), we hve the contrdictory requirements tht is required (λ 1 λ 1 P 1) nd should not hppen (λ 2 λ 2 2 ), then λ is inconsistent. This is indeed gurnteed by the definition of R 1 R 2 which imposes P 1 2. Gretest lower bound of mecs. The notion of gretest lower bound esily extends to mecs. Let S 1, S 2 be two mecs. The modlities for the trnsitions in S 1 S 2 re derived from those induced in the untimed cse (Rules (Glb1) to (Glb4)), nd the lbels of the trnsitions re obtined by intersecting the gurds for common ctions. As n exmple, Rule (Glb1) becomes (tglb1) s follows. g 1, λ 1 λ 1 nd λ g 2, 2 λ 2 (λ 1, λ 2 ) g1 g2, (tglb1) (λ 1, λ 2 ) Thnks to Lemm 3, the set of models of mecs S mtches the set of models of its region version T(R(S)). The following proposition chrcterizes the gretest lower bound of two mecs vi the region grphs. Proposition 2 For ny two mecs S 1 nd S 2, R(S 1 S 2 ) R(S 1 ) R(S 2 ). Proof Consider the binry reltion R between sttes of R(S 1 S 2 ) nd of R(S 1 ) R(S 2 ) defined by: R = {( (λ1, θ), (λ 2, θ) ), ( (λ 1, λ 2 ), θ )) λ 1 Q 1, λ 2 Q 2 }. Notice tht ny rechble stte in R(S 1 ) R(S 2 ) is of the form ( ( λ 1, θ 1 ), (λ 2, θ 2 ) ) with θ 1 = θ 2. This cn be esily proved inductively since the gretest lower bound INRIA

15 A Compositionl Approch on Modl Specifictions for Timed Systems 13 for R(S 1 ) nd R(S 2 ) is computed on the extended lphbet Σ Θ, where the trget region is completely determined by the lter (since it contins the region when the trnsition is fired nd the clock to be reset). Let λ 1 Q 1, λ 2 Q 2 nd θ Θ. We show tht ny required trnsition from ( ( λ 1, θ), (λ 2, θ) ) in R(S 1 ) R(S 2 ) is lso mndtory from ( (λ 1, λ 2 ), θ ) in R(S 1 S 2 ), nd tht ny llowed trnsition from ( (λ 1, λ 2 ), θ ) in R(S 1 S 2 ) is possible from ( ( λ 1, θ), (λ 2, θ) ) in R(S 1 ) R(S 2 ). Let ( (λ 1, λ 2 ), θ) ) θ, ( (λ 1, λ 2), θ ) ) be my-trnsition in R(S 1 S 2 ). By g, construction of the region grph, there exists my-trnsition (λ 1, λ 2 ) (λ 1, λ 2 ) with θ Succ(θ) g in S 1 S 2. This trnsition cn only be obtined g 1, by pplying Rule (tglb1); hence there exist λ 1 λ g 2, 1 in S 1 nd λ 2 λ 2 in S 2 with g = g 1 g 2. Since θ g 1 g 2 these trnsitions give rise in R(S 1 ) nd R(S 2 ) respectively to trnsitions (λ 1, θ) θ, (λ 1, θ ) nd (λ 2, θ) θ, (λ 2, θ ). Hence, in the gretest lower bound R(S 1 ) R(S 2 ), thnks to Rule (Glb1), there is my-trnsition ( ( λ 1, θ), (λ 2, θ) ) θ, ( ( λ 1, θ ), (λ 2, θ ) ). Assume now ( ( λ 1, θ), (λ 2, θ) ) θ, ( ( λ 1, θ ), (λ 2, θ ) ) is must-trnsition in R(S 1 ) R(S 2 ). According to the rules (Glb2) to (Glb4) this trnsition comes from trnsitions in R(S 1 ) nd R(S 2 ), one of which being must-trnsition. W.l.o.g ssume (λ 1, θ) θ, (λ 1, θ ) nd (λ 2, θ) θ, (λ 2, θ ) ) (the ltter trnsition could lso be must). By construction of the region grph, there re trnsitions g 1, λ 1 λ 1 nd λ 2 g 2, λ 2 in S 1 nd S 2 respectively, with θ Succ(θ) g 1 nd lso θ Succθ g 2. In S 1 S 2 there is thus trnsition (λ 1, λ 2 ) g1 g2, (λ 1, λ 2 ); this yields trnsition ( (λ 1, λ 2 ), θ) ) θ, ( (λ 1, λ 2), θ ) ). To prove tht reltion R is witness for R(S 1 S 2 ) R(S 1 ) R(S 2 ), it now suffices to observe tht inconsistent sttes in R(S 1 ) R(S 2 ) cn only be linked in R to inconsistent sttes in R(S 1 S 2 ). This however is consequence of the fct tht must-trnsition in R(S 1 ) R(S 2 ) re lso required in R(S 1 S 2 ), together with the observtion tht bd sttes (sttes in on ech side) re linked through R. This ends the proof tht R(S 1 S 2 ) refines R(S 1 ) R(S 2 ) through R. Following exctly the sme lines, one cn prove the reverse refinement, nmely: R(S 1 ) R(S 2 ) R(S 1 S 2 ). Hence the desired result: R(S 1 S 2 ) R(S 1 ) R(S 2 ). Note tht reltion R estblishes moreover n isomorphism between R(S 1 S 2 ) nd R(S 1 ) R(S 2 ). In Proposition 2, opertor is overloded: on the right hnd side, it corresponds to the gretest lower bound of ms wheres on the left hnd side, it corresponds to the gretest lower bound of mecs. Computing the conjunction of two ms vi rules (Gbl1) to (Gbl4) is polynomil in the size of the rguments. Due to the construction of the region grphs, strting from two mecs S 1 nd S 2 computing R(S 1 ) R(S 2 ) is exponentil. The direct construction of the gretest lower bound by using the timed vrints of (Gbl1) to (Gbl4) is polynomil nd therefore worth dopting for effective methods. Corollry 3 S 1 S 2 is the -gretest lower bound of S 1 nd S 2. RR n 7039

16 14 Bertrnd et l. Proof From the untimed cse [22], we deduce: R(S 1 ) R(S 2 ) R(S i ), for i = 1, 2. Thus by Prop.2, we hve: R(S 1 S 2 ) R(S i ). Finlly s T is monotonic nd becuse T(R(S)) S (Lemm 3): S 1 S 2 S i. We now show it is the gretest element under S 1 nd S 2. Assume tht there exists S such tht S S i. Therefore, by definition of, R(S) R(S i ) which entils R(S) R(S 1 ) R(S 2 ). Now, we hve S T(R(S)) T(R(S 1 S 2 )) since T is monotonic nd by Prop.2; We then conclude tht S S 1 S 2. Finlly, ccording to the bove, one cn estblish tht the gretest lower bound yields the intersection of the models. Theorem 1 For ny two mecs S 1 nd S 2, Mod(S 1 S 2 )=Mod(S 1 ) Mod(S 2 ). Proof From Corollry 3 we hve S 1 S 2 S i. Then Corollry 1 entils, Mod(S 1 S 2 ) Mod(S i ). Thus Mod(S 1 S 2 ) [Mod(S 1 ) Mod(S 2 )]. Let C be ec such tht C [Mod(S 1 ) Mod(S 2 )]. By Corollry 2, C S 1 nd C S 2. By Corollry 3, C S 1 S 2 nd by Corollry 2, C = S 1 S 2. As result [Mod(S 1 ) Mod(S 2 )] Mod(S 1 S 2 ). Appliction of the gretest lower bound is the following: in the design of component one gives severl specifictions, ech of them describing prticulr requirement. The gretest lower bound of these specifictions enbles to check the comptibility of these requirements, by deciding consistency. 3.2 Product of mecs The product of mecs reltes to the synchronous prllel composition of models. For ms, it generlizes the synchronized product of utomt M 1 M 2 tht denotes the intersection of their behviors (lnguges). We first recll the product of ms: Let R 1 = (P 1, λ 0 1, m 1, M 1 ) nd R 2 = (P 2, λ 0 2, m 2, M 2 ) be two ms over the sme lphbet Σ. The product of R 1 nd R 2, denoted by R 1 R 2, is the ms (P, (λ 0 1, λ0 2 ), m, M ), with P := P 1 P 2, := ( 1 P 2 ) (P 1 2 ), nd whose trnsitions re derived from the following rules: λ 1 λ 1 λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2 ) λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2) (Prod1) (P rod3) λ 1 λ 1 λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2 ) λ 1 nd λ 2 λ 2 (λ 1, λ 2 ) (λ 1, λ 2) (Prod2) (P rod4) Notice tht Rules (P rod1) to (P rod4) uniformly consider consistent nd inconsistent sttes. Product of mecs. The product of mecs extends the synchronized product of ec which consists in synchronizing trnsitions on ction nmes nd in tking the conjunction of the gurds of the combined trnsitions. Let S 1, S 2 be two mecs. The modlities for the trnsitions in S 1 S 2 re derived from those proposed in the untimed cse, nd the lbels of the trnsitions INRIA

17 A Compositionl Approch on Modl Specifictions for Timed Systems 15 re composed of the intersection of the gurds together with the common ction. For exmple, the timed version of (Prod1) becomes (tprod1) s follows. g 1, λ 1 λ 1 nd λ g 2, 2 λ 2 (λ 1, λ 2 ) g1 g2, (tprod1) (λ 1, λ 2 ) Similrly to Proposition 2 for the gretest lower bound, the product of mecs cn be lterntively computed by building the product of the region grphs. This construction however cuses n exponentil blow-up wheres the direct construction is polynomil. Notice tht opertor is overloded to ese the presenttion. Proposition 3 R(S 1 S 2 ) R(S 1 ) R(S 2 ). Proof Similrly to the proof of Proposition 2 the binry reltion R defined s: R = {( (λ1, θ), (λ 2, θ) ), ( (λ 1, λ 2 ), θ )) λ 1 Q 1, λ 2 Q 2 } is witness for R(S 1 S 2 ) R(S 1 ) R(S 2 ). The definitions of the gretest lower bound nd the product re relly similr except for the resulting modlities in some rules, nd in prticulr the definitions for, the set loclly inconsistent sttes, mtch. As consequence, Proposition 3 cn be proved by dpting the rgument in Proposition 2 in strightforwrd mnner; we omit it here. In the untimed setting, it is known [22] tht the product is monotonic with respect to the refinement, nd tht product of models is model of the product. Those properties extend to the timed cse s stted in the following theorem. Theorem 2 (Properties of the product) For ny mecs S 1, S 1, S 2, S 2, nd ny ec C 1, C 2, (S 1 S 2 nd S 1 S 2) = S 1 S 1 S 2 S 2; nd (C 1 = S 1 nd C 2 = S 2 ) = C 1 C 2 = S 1 S 2. Proof Given S 1, S 2, S 1 nd S 2 mecs, such tht: S 1 S 2 nd S 1 S 2. By Definition 9 this is equivlent to: R(S 1 ) R(S 2 ) nd R(S 1 ) R(S 2 ) As the product of simple modl specifictions is monotonic for the modl refinement reltion (see [22] for proof), we hve: R(S 1 ) R(S 1) R(S 2 ) R(S 2) According to Proposition 3, this is equivlent to: R(S 1 S 1 ) R(S 2 S 2 ) Thus, by Definition 9: S 1 S 1 S 2 S 2 Let us now prove tht given two ec C 1, C 2, we hve: (C 1 = S 1 nd C 2 = S 2 ) implies C 1 C 2 = S 1 S 2 RR n 7039

18 16 Bertrnd et l. Now suppose tht C 1 = S 1 nd C 2 = S 2 then C1 S 1 nd C2 S 2. By the first prt of the theorem, we hve C1 C 2 S 1 S 2. One cn esily prove tht C1 C2 (C 1 C 2 ) nd then we conclude tht: C 1 C 2 = S 1 S 2. As consequence, the product opertion stisfies the property of independent implementbility, in the sense of [11]: n implementtion of specifiction of the form S 1 S 2 cn be obtined by composing ny two independent implementtions of S 1 nd S 2 respectively. Exmple 4 The mecs Acc in Fig. 2(b) pge 10 specifies the behvior of n ccess controller; the ccess to the resource will be grnted for 2 time units fter the reception of get request. In cse of privileged ccess with n extr time, this durtion will be extended to 4 time units. The product Cl Acc is depicted in Fig. 3(). In the resulting specifiction, extr cn now only occur fter get request. Timing constrints on the grnt ction issued from the ccess controller re lso propgted. get 00 grnt 10 get x get 1 x get 2 extr get 01 grnt 11 x get 4 get x get 1 grnt x get < 5 get grnt x get < 2 c b extr () The product Cl Acc (b) A desired globl behvior G Figure 3: The globl model Cl Acc nd its specified behvior G 3.3 Quotient of mecs In this section, we define the quotient opertion. Intuitively, the quotient describes prt of globl specifiction ssuming nother prt will be relized by some component. We thus consider quotient of specifictions which is different from the constructions studied in [16] where t lest one of the opernd is system. We strt by reclling the quotient opertion on untimed modl specifictions, then extend it to mecs. In the untimed setting, we im t defining n opertion dul to the product of Section 3.2 in the following sense. Given two ms R = (P, λ 0, m, M ) nd R 1 = (P 1, λ 0 1, m 1, M 1 ), we wnt the quotient of R by R 1 to be the ms written R R 1 which stisfies the following properties. Proposition 4 For every utomton M 2, M 2 = R R 1 M 1. [M 1 = R 1 M 1 M 2 = R] (1) nd R R 1 is the gretest such one, nmely R 1 R 2 R R 2 R R 1 (2) INRIA

19 A Compositionl Approch on Modl Specifictions for Timed Systems 17 Proof The proof of similr proposition in [22] for untimed modl specifictions without inconsistent sttes cn esily be dpted in our context. The definition of the quotient follows [22], but it is here revisited with uniform wy to hndle both consistent nd inconsistent sttes, s opposed to the originl definition where so-clled pseudo-specifictions needed being considered. Formlly, the quotient of R = (P, λ 0, m, M ) by R 1 = (P 1, λ 0 1, m 1, M 1 ) is the ms R R 1 = (P, (λ 0, λ 0 1 ), m, M ), with P (P P 1 ) { }, where is fresh element, nd the set of loclly inconsistent sttes of R R 1 contins t lest n element but lso other elements: the rules below describe these elements s well s the set of trnsitions. Nottion λ I mens tht the -my-trnsition from λ leds to n inconsistent stte in I. We lso use nottions λ P \ I, λ I, nd λ P \ I with the expected mening, nd λ whenever there is no -must-trnsition from stte λ. λ I nd λ 1 / I 1 (λ, λ 1 ) I λ nd λ 1 I 1 (λ, λ 1 ) (I I1) ( Imust I1) λ I nd λ 1 I 1 (λ, λ 1 ) I λ nd λ 1 I 1 (λ, λ 1 ) (I I1) ( Imy I1) (top) Assume now tht both λ nd λ 1 re consistent, i.e., λ / I nd λ 1 / I 1 : λ I nd (λ 1 λ λ λ / I nd (λ 1 P 1 \ I 1 or λ 1 (λ, λ 1 ) nd λ 1 I 1 (λ, λ 1 ) (λ, λ 1 ) λ 1 / I 1 or λ 1 (λ, λ 1) λ λ nd λ 1 λ 1 (λ, λ 1 ) λ nd λ 1 λ 1 (λ, λ 1 ) (λ, λ 1) λ P 1 \ I 1 ) (my1) λ 1 / I 1) (inconsistency) (must) (mynot) (my2) We now give intuitive explntions for the rules bove in prticulr with respect to the first requirement of Proposition 4. To do so, let R λ be the ms informlly defined s the sub-specifiction of R with initil stte λ. When explining rule involving trnsitions outgoing λ in R nd λ 1 in R 1 we will thus spek bout models in R λ, R λ1 1 nd R λ R λ1 1. Rλ nd R λ1 1 re just introduced in order to be ble to regrd locl models of R nd R 1 from sttes λ nd λ 1. When, sy λ I, we hve Mod(R λ ) =. RR n 7039

20 18 Bertrnd et l. Rule (I I 1 ) ensures tht since there re no models for R λ nd there re models for R λ1 1, there should not be models of Rλ R λ1 1, otherwise we would not hve the right to left impliction of Eqution (1) in Proposition 4. For Rules ( Imust I1) nd ( Imy I1) (together with Rule (top)), since Mod(R λ1 1 ) =, the right hnd side of Eqution (1) is trivilly stisfied. Therefore in ( Imust I1), the -trnsition required from λ cnnot be gurnteed; hence the quotient is not consistent. On the other hnd for Rule ( Imy I1), since nothing prticulr is required from λ for the -trnsition, nothing either needs being required for models of the quotient; to gurntee Eqution (2) of Proposition 4 (which sttes the mximlity of the quotient) we set the quotient to be universl, i.e. it ccepts every model. Rule (I I 1 ) together with Rule (top), is the cse where both Mod(R λ ) = nd Mod(R λ1 1 ) =. In this cse, the universl ms tht ccepts every model cn be in the quotient, nd this is wht is chosen in order to get the gretest such ms, s required by Eqution (2). We now come to the set of rules where both λ nd λ 1 re consistent (λ / I nd λ 1 / I 1 ), which by Lemm 1 mounts to sy tht Mod(R λ ) nd Mod(R λ1 1 ). In Rule (my1), is not possible from λ 1, nd is not mndtory from λ, it cn therefore sfely be uthorized in the quotient. Rule (mynot) dels with the cse where is forbidden in R λ, but is uthorized or even mndtory in R λ1 1 : it should be forbidden in the quotient. Rule (my2) is very strightforwrd, s models of the quotient my hve n -trnsition irrespectively of wht is required in R λ1 1. Finlly, Rules (inconsistency) nd (must) consider the cse where we hve must trnsitions in R λ. Rule (inconsistency) corresponds to the inbility of gurnteeing the -trnsition required in R λ since it my not exist in some models of R λ1. Hence only n inconsistent ms cn be considered so tht Eqution (1) holds. Rule (must) is the simple cse of must requirements; notice tht we implicitly hve λ 1 / I 1, since by ssumption λ 1 / I 1. One cn esily verify tht the conditions of the premises of Rules from (I I 1 ) to (must) re exclusive, hence the quotient construction yields deterministic object. Also, the quotient ms is complete. Quotient of mecs. The quotient of mecs S = (Q, λ 0, δ m, δ M ) by mecs S 1 = (Q 1, λ 0 1, δm 1, δm 1 ) is the mecs S S 1 = (Q, (λ 0, λ 0 1 ), δm, δm ), where Q (Q Q 1 ) { } nd where the set of loclly inconsistent sttes nd the trnsition modlities follow the rules (I I 1 ) to (must) of the untimed cse; the gurd of trnsition is the conjunction of the locl gurds of S nd S 1. For exmple, the untimed rule (must) becomes (tmust) s follows. λ g, λ g 1, nd λ 1 λ 1 (λ, λ 1 ) g g1, (λ, λ 1 ) Besides, the rule (ttop) is the following: true, (ttop) (tmust) This quotient opertion for mecs cn be used on ec s the clss of deterministic ec cn be embedded into the one of mecs; it suffices to type with must every INRIA

21 A Compositionl Approch on Modl Specifictions for Timed Systems 19 existing trnsitions in the ec, nd to complete it by dding trnsitions typed by my to stte in. Assuming determincy of event-clock utomt is not restrictive, since they re known to be determinizble [2]. Observe tht then the quotient of two event-clock utomt is not n event-clock utomton since e.g. Rule ( Imy I 1 ) introduces my trnsition to the top stte. Finlly, the quotienting opertion yields deterministic nd complete specifiction. Hence: Lemm 4 Modl event-clock specifictions re closed under quotient. Proof We prove tht the my trnsition reltion δ m of S S 1 = (Q, (λ 0, λ 0 1 ), δ m, δ M ) is deterministic nd complete, tht is, for ll stte (q, q 1 ) Q, ction nd clock vlution ν, there is exctly one trnsition ((q, q 1 ), g,, λ) with λ Q such tht ν = g. By hypothesis, the my trnsition reltions of S nd S 1 re deterministic nd complete. As result, there is exctly one trnsition (q, g,, λ) with λ Q nd ν = g in S, nd one trnsition (q 1, g,, λ 1 ) with λ 1 Q 1 nd ν = g 1 in S 1. By definition of the quotient, there is trnsition T = ((q, q 1 ), g g 1,, λ ) with λ Q in S 1 S. As the possible gurds of this trnsition re conjunctions of mutully exclusive gurds, they re lso mutully exclusive, nd this is the unique trnsition lbeled by tht cn be fired t clock vlution ν. As for the product opertion, the quotient opertion in the timed nd untimed settings reltes vi the region construction (for the extended lphbet) s follows. Proposition 5 R(S S 1 ) R(S) R(S 1 ). Proof Consider the binry reltion R between sttes of R(S 1 S 2 ) nd of R(S 1 ) R(S 2 ) defined by: R = {( ((λ, θ), (λ1, θ) ), ( (λ, λ 1 ), θ )) λ Q, λ 1 Q 1 } {(, θ), )} {(, θ), )}. For the sme reson s in the proof of Proposition 2 for, ny rechble stte of the form ((q, θ), (q 1, θ 1 )) in R(S) R(S 1 ) is such tht θ = θ 1. Observe lso tht ( (λ, θ), (λ 1, θ) ) in R(S) R(S 1 ) is inconsistent if nd only if ( (λ, λ 1 ), θ ) is inconsistent in R(S S 1 ). We clim tht tht R nd R 1 re modl refinements, estblishing thus the sttement of the proposition. We simply desmonstrte tht R is modl refinement for the cse of my trnsition in R(S S 1 ), tht is trnsition derived from the Rule (tmy2), the timed version of Rule (my2). The other cses cn be derived in similr wy. Suppose then in R(S S 1 ) trnsition ((λ, λ 1 ), θ) θ, ((λ, λ 1), θ ) where λ, λ / I nd λ 1, λ 1 / I 1 re ll consistent sttes. Then by Rule (tmy2), there exists in S S 1 trnsition (λ, λ 1 ) g, (λ, λ 1) such tht g = g g 1, λ g, λ in S, nd λ 1 g 1, λ 1 or λ 1 g 1, λ 1 in S 1, nd θ Succ(θ) g. Hence, for every region θ nd ll region θ Succ(θ) g, there is trnsition (λ, θ) θ, (λ, θ ) in R(S), nd trnsition (λ 1, θ) θ, (λ 1, θ ) or (λ 1, θ) θ, (λ 1, θ ) in R(S 1 ). RR n 7039

22 20 Bertrnd et l. These trnsitions re reflected in the untimed quotient R(S) R(S 1 ) by the trnsition ((λ, θ), (λ 1, θ)) θ, ((λ, θ ), (λ 1, θ )), which concludes. The correctness of the quotient construction is stted by the following. Theorem 3 (Properties of the quotient) For ny mecs S, S 1, S 2, nd ny ec C 2, C 2 = S S 1 C 1 = S 1, C 1 C 2 = S, nd (3) S 1 S 2 S S 2 S S 1. (4) Proof The proof relies on the similr result for simple modl specifictions stted by Proposition 4 (see [22] for proof). We strt proving Eqution (3). By Definition 9, S 1 S 2 S if nd only if R(S 1 S 2 ) R(S), if, nd only if, R(S 1 ) R(S 2 ) R(S) (by Proposition 3). By Eqution (2), this is equivlent to R(S 2 ) R(S) R(S 1 ). As Proposition 5 gives R(S) R(S 1 ) R(S 1 S), we equivlently obtin R(S 2 ) R(S 1 S), which finlly, by Definition 9, is equivlent to S 2 S S 1. This concludes. Regrding Eqution (4), we pply Definition 8 nd obtin C 2 = S S 1 if, nd only if, R(C 2 ) = R(S S 1 ). By Proposition 5, this is equivlent to R(C 2 ) = R(S) R(S 1 ). Then, ccording to Proposition 4, M 1 = R(S 1 ), M 1 R(C 2 ) = R(S) (5) In [8], we proved tht tht ny model M of modl region grph R(S) is some R-imge of model of S, tht is of the form R(C) where C is timed utomton. This result cn esily be doted to ec, nd this llows us to replce M 1 by some R(C 1 ), nd obtin the following equivlent to Eqution 5: C 1 = S 1, R(C 1 ) R(C 2 ) = R(S). By Proposition 3, this is equivlent to C 1 = S 1, R(C 1 C 2 ) = R(S). We conclude by Definition 9. From prcticl point of view, the quotient opertion enbles incrementl design: consider desired globl specifiction S, nd the specifiction S 1 of preexisting component. By computing S S 1 nd by checking its consistency, one cn test whether component implementing S 1 cn be reused in order to relize S, or not. Note tht by (4) the specifiction S S 1 is mximlly permissive in the sense tht it chrcterizes ll components C 2 such tht for ny C 1 implementing S 1, the composed system C 1 C 2 implements S. Exmple 5 A desired globl behvior G is depicted in Fig. 3(b), pge 16. It specifies tht ny get request must be fulfilled; the ccess to the resource is grnted for 2 time units nd 5 time units in the privileged mode. A model of G/(Cl Acc) will ct s protocol converter between Cl nd the ccess controller Acc ; the overll obtined system will stisfy G. The mecs G/(Cl Acc) is represented in Fig. 4. Not surprisingly, the stte c/11 is inconsistent. This is becuse, in the stte 11 in Fig. 3(), the resource is grnted for 4 units of time wheres in the stte c of the desired behvior G in Fig. 3(b), it must be grnted for 5 units of time. To void this inconsistency, the trnsition extr from stte b/10 to c/11 will not be implemented in ny model of G/(Cl Acc). Thus, the protocol converter will disllow the privileged mode. INRIA

23 A Compositionl Approch on Modl Specifictions for Timed Systems 21 grnt 4 < x get < 5 get get /00 b/10 extr grnt c/11 grnt /01 b/11 x get 4 grnt x get < 2 x get < 4 grnt, extr get, x get > 1 grnt get, x get > 1 extr get, grnt, extr grnt extr get, x get>1 extr grnt, x get>4 Figure 4: The quotient G/(Cl Acc) The quotient opertion we gve hs nice properties: its construction is in essence crtesin product, thus yielding polynomil time complexity, s opposed to the exponentil blow-up cused by the region grph construction of Proposition 5. Also the quotient, defined t the level of specifictions nd bstrcting from prticulr choice of implementtions, mounts to quotienting logicl sttements denoted by specifictions. In the untimed setting, the quotient opertion is prticulr cse of the exponentil construction introduced by [7] for rbitrry mu-clculus sttements. However, we tke here dvntge of the restricted logicl frgment covered by the modl specifictions, nmely the conjunction nu-clculus [14], to get n d-hoc polynomil-time complexity of this quotient construction. The present contribution suggests similr sitution for timed extension of the mu-clculus. 4 Relted work Regrding theory of interfces, we compre our pproch with the following settings: Interfce utomt of [11], timed interfces of [12], nd timed extensions of modl specifictions of [9]. Interfce utomt. In interfce utomt [12], n interfce is represented by n input/output utomton [20], i.e., n utomton whose trnsitions re typed with input nd output rther thn must nd my modlities. The semntics of such n utomton is given by two-plyer gme: the input plyer represents the environment, nd the output plyer represents the component itself. As explined [23], interfces nd modlities re in essence orthogonl to ech other. Moreover, interfce utomt do not encompss ny notion of model, nd thus neither the model reltion nor the consistency, becuse one cnnot distinguish between interfces nd components. Alterntively, properties of interfces re described in gme-bsed logics, e.g., ATL [3], with high-cost complexity. Refinement between interfce utomt corresponds to the lternting refinement reltion between gmes [4], i.e., n interfce refines nother one if its environment is more permissive wheres its component is more restric- RR n 7039

A Compositional Approach on Modal Specifications for Timed Systems

A Compositional Approach on Modal Specifications for Timed Systems A Compositionl Approch on Modl Specifictions for Timed Systems Nthlie Bertrnd 1, Axel Legy 1, Sophie Pinchint 2, nd Jen-Bptiste Rclet 3 1 INRIA Rennes, Frnce 2 IRISA & Université Rennes 1, Frnce 3 INRIA

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

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

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

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

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

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

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

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

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

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

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

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

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

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

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

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

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

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

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

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

More information

Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets

Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets Kleene Theorems for Free Choice Nets Lbelled with Distributed Alphbets Rmchndr Phwde Indin Institute of Technology Dhrwd, Dhrwd 580011, Indi Emil: prb@iitdh.c.in Abstrct. We provided [15] expressions for

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

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

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

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras Intuitionistic Fuzzy Lttices nd Intuitionistic Fuzzy oolen Algebrs.K. Tripthy #1, M.K. Stpthy *2 nd P.K.Choudhury ##3 # School of Computing Science nd Engineering VIT University Vellore-632014, TN, Indi

More information

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

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

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

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

1.9 C 2 inner variations

1.9 C 2 inner variations 46 CHAPTER 1. INDIRECT METHODS 1.9 C 2 inner vritions So fr, we hve restricted ttention to liner vritions. These re vritions of the form vx; ǫ = ux + ǫφx where φ is in some liner perturbtion clss P, for

More information

THE 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

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

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

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

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

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

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

and that at t = 0 the object is at position 5. Find the position of the object at t = 2. 7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we

More information

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

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

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

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

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

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

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

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

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Session Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

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

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

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

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

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

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

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

PLC-Automaton Composition

PLC-Automaton Composition PLC-Automton Composition Honours Project: 1999 André Renud Dr. Pdmnbhn Krishnn 1 1 Supervisor Abstrct Bsed on discussion of timed utomt nd subset of these clled PLC utomt, described by H. Dierks, the problem

More information

Chapter 3. Vector Spaces

Chapter 3. Vector Spaces 3.4 Liner Trnsformtions 1 Chpter 3. Vector Spces 3.4 Liner Trnsformtions Note. We hve lredy studied liner trnsformtions from R n into R m. Now we look t liner trnsformtions from one generl vector spce

More information

This lecture covers Chapter 8 of HMU: Properties of CFLs

This lecture covers Chapter 8 of HMU: Properties of CFLs This lecture covers Chpter 8 of HMU: Properties of CFLs Turing Mchine Extensions of Turing Mchines Restrictions of Turing Mchines Additionl Reding: Chpter 8 of HMU. Turing Mchine: Informl Definition B

More information

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

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

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

More information

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

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

More information

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

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

More information

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

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

Infinite Geometric Series

Infinite Geometric Series Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to

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

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

5.7 Improper Integrals

5.7 Improper Integrals 458 pplictions of definite integrls 5.7 Improper Integrls In Section 5.4, we computed the work required to lift pylod of mss m from the surfce of moon of mss nd rdius R to height H bove the surfce of the

More information

Main topics for the First Midterm

Main topics for the First Midterm Min topics for the First Midterm The Midterm will cover Section 1.8, Chpters 2-3, Sections 4.1-4.8, nd Sections 5.1-5.3 (essentilly ll of the mteril covered in clss). Be sure to know the results of the

More information

1 The Lagrange interpolation formula

1 The Lagrange interpolation formula Notes on Qudrture 1 The Lgrnge interpoltion formul We briefly recll the Lgrnge interpoltion formul. The strting point is collection of N + 1 rel points (x 0, y 0 ), (x 1, y 1 ),..., (x N, y N ), with x

More information

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

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

More information

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

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

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

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

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

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

More information

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

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

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

CM10196 Topic 4: Functions and Relations

CM10196 Topic 4: Functions and Relations CM096 Topic 4: Functions nd Reltions Guy McCusker W. Functions nd reltions Perhps the most widely used notion in ll of mthemtics is tht of function. Informlly, function is n opertion which tkes n input

More information

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

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

More information

Zero-Sum Magic Graphs and Their Null Sets

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

More information

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

Bounded repairability for regular tree languages

Bounded repairability for regular tree languages Bounded repirbility for regulr tree lnguges Gbriele Puppis Deprtment of Computer Science University of Oxford, UK gbriele.puppiscs.ox.c.uk Cristin Riveros Deprtment of Computer Science University of Oxford,

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

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

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

More information

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

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

State Minimization for DFAs

State Minimization for DFAs Stte Minimiztion for DFAs Red K & S 2.7 Do Homework 10. Consider: Stte Minimiztion 4 5 Is this miniml mchine? Step (1): Get rid of unrechle sttes. Stte Minimiztion 6, Stte is unrechle. Step (2): Get rid

More information

Checking NFA equivalence with bisimulations up to congruence

Checking NFA equivalence with bisimulations up to congruence Checking NFA equivlence with bisimultions up to congruence Filippo Bonchi, Dmien Pous To cite this version: Filippo Bonchi, Dmien Pous. Checking NFA equivlence with bisimultions up to congruence. Principle

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

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

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

More information

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

Model Reduction of Finite State Machines by Contraction

Model Reduction of Finite State Machines by Contraction Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900

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

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

Integral points on the rational curve

Integral points on the rational curve Integrl points on the rtionl curve y x bx c x ;, b, c integers. Konstntine Zeltor Mthemtics University of Wisconsin - Mrinette 750 W. Byshore Street Mrinette, WI 5443-453 Also: Konstntine Zeltor P.O. Box

More information

Chapter 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