A Theory of Weak Bisimulation for Core CML

Size: px
Start display at page:

Download "A Theory of Weak Bisimulation for Core CML"

Transcription

1 J. Functiona Programming (): 000, January 993 c 993 Cambridg Unirsity Prss A Thory of Wak Bisimuation for Cor CML WILLIAM FERREIRA Computing Laboratory Unirsity of Cambridg MATTHEW HENNESSY AND ALAN JEFFREY Schoo of Cogniti and Computing Scincs Unirsity of Sussx Abstract Concurrnt ML (CML) is an xtnsion of Standard ML of Nw Jrsy with concurrnt faturs simiar to thos of procss agbra. In this papr, w buid upon John Rppy s rduction smantics for CML by constructing a compositiona oprationa smantics for a fragmnt of CML, basd on highrordr procss agbra. Using th oprationa smantics w gnrais th notion of wak bisimuation quianc to buid a smantic thory of CML. W gi som sma xamps of proofs about CML xprssions, and show that our smantics corrsponds to Rppy s up to wak first-ordr bisimuation. Introduction Thr ha bn arious attmpts to xtnd standard programming anguags with concurrnt or distributd faturs, (Giacaon t a., 989; Homström, 983; Nikhi, 990). Concurrnt ML (CML) (Rppy, 99a; Rppy, 992; Panangadn & Rppy, 996) is a practica and gant xamp. Th anguag Standard ML is xtndd with two nw typ constructors, on for gnrating communication channs, and th othr for dayd computations, and a nw function for spawning concurrnt thrads of computation. Thus th anguag has a th functiona and highr-ordr faturs of ML, but in addition programs aso ha th abiity to communicat with ach othr by transmitting aus aong communication channs. In (Rppy, 992), a rduction sty oprationa smantics is gin for a subst of CML cad λ c, which may b iwd as a concurrnt rsion of th ca-by-au λ-cacuus of (Potkin, 975). Rppy s smantics gis rduction rus for who programs, not for program fragmnts. It is not compositiona, in that th smantics of a program is not dfind in trms of th smantics of its subtrms. Rppy s smantics is dsignd to pro proprtis about programs (for xamp typ safty), and not about program fragmnts (for xamp quationa rasoning). In this papr w construct a compositiona oprationa smantics in trms of a abd Wiiam Frrira was fundd by a CASE studntship from British Tcom. This work is carrid out in th contxt of EC BRA 766 CONCUR 2.

2 2 W. Frrira, M. Hnnssy and A. S. A. Jffry transition systm, for a cor subst of CML which w ca µcml. This smantics not ony dscribs th auation stps of programs, as in (Rppy, 992), but aso thir communication potntias in trms of thir abiity to input and output aus aong communication channs. This smantics xtnds th smantics of highr-ordr procsss (Thomsn, 995) with typs and first-cass functions. W thn procd to dmonstrat th usfunss of this smantics by using it to dfin a rsion of wak bisimuation, (Minr, 989), suitab for µcml. W pro that, moduo th usua probms associatd with th choic oprator of CCS, our chosn quianc is prsrd by a µcml contxts and thrfor may b usd as th basis for rasoning about CML programs. In this papr w do not instigat in dtai th rsuting thory but confin ourss to pointing out som of its saint faturs; for xamp standard idntitis on woud xpct of a ca-by-au λ-cacuus ar gin and w aso show that crtain agbraic aws common to procss agbras, (Minr, 989), hod. W now xpain in mor dtai th contnts of th rmaindr of th papr. In Sction 2 w dscrib µcml, a monomorphicay typd cor subst of CML, which nonthss incuds bas typs for chann nams, booans and intgrs, and typ constructors for pairs, functions, and dayd computations which ar known as nts. µcml aso incuds a sction of th constructs and constants for manipuating nt typs, such as and for constructing basic nts for snding and rciing aus, for combining dayd computations, for scting btwn dayd computations, and a function for aunching nw concurrnt thrads of computation within a program. Th major omission is that µcml has no faciity for gnrating nw chann nams. Howr w bi that this can b rmdid by using tchniqus common to th π-cacuus, (Minr, 99; Minr t a., 992; Sangiorgi, 992). In th rmaindr of this sction w prsnt th oprationa smantics of µcml in trms of a abd transition systm. In ordr to dscrib a possib stats which can aris during th computation of a w-typd µcml program w nd to xtnd th anguag. This xtnsion is twofod. Th first consists in adding th constants of nt typ usd by Rppy in (Rppy, 992) to dfin λ c, i.. constants to dnot crtain dayd computations. This xtndd anguag, which w ca µcml c, ssntiay coincids with th λ c, th anguag usd in (Rppy, 992), xcpt for th omissions citd abo. Howr to obtain a compositiona smantics w mak furthr xtnsions to µcml c. W add a para oprator, commony usd in procss agbras, which aows us to us programs in pac of th mutists of programs of (Rppy, 992). Th fina addition is mor subt; w incud in µcml c xprssions which corrspond to th d rsions of Rppy s constants for rprsnting dayd computations. Thus th abd transition systm uss as stats programs from a anguag which w ca µcml. This anguag is a suprst of µcml c, which is our rsion of Rppy s λ c, which in turn is a suprst of µcml, our mini-rsion of CML. Th foowing diagram

3 A Thory of Wak Bisimuation for Cor CML 3 indicats th rationships btwn ths anguags: µcml µcml c λ c CML µcml In Sction 3 w discuss smantic quiancs dfind on th abd transition of Sction 2. W dmonstrat th inadquacis of th obious adaptations of strong and wak bisimuation quianc, (Minr, 989), and thn considr adaptations of highr-ordr and irrfxi bisimuations from (Thomsn, 995). Finay w suggst a nw ariation cad hrditary bisimuation quianc which orcoms som of th probms ncountrd with using highr-ordr and irrfxi bisimuations. In Sction 4 w show that hrditary bisimuation is prsrd by a µcml contxts. This is an appication of th proof mthod originay suggstd in (How, 989) but th proof is furthr compicatd by th fact that hrditary bisimuations ar dfind in trms of pairs of rations satisfying mutuay dpndnt proprtis. In Sction 5 w brify discuss th rsuting agbraic thory of µcml xprssions. This papr is intndd ony to ay th foundations of this thory and so hr w simpy indicat that our thory xtnds both that of ca-by-au λ-cacuus (Potkin, 975) and procss agbras (Minr, 989). In Sction 6 w show that, up to wak bisimuation quianc, our smantics coincids with th rduction smantics for λ c prsntd in (Rppy, 992). This tchnica rsut appis ony to th common sub-anguag, namy µcml c. In Sction 7 w brify considr othr approachs to th smantics of CML and ratd anguags and w nd with som suggstions for furthr work. 2 Th Languag In this sction w introduc our anguag µcml, a subst of Concurrnt ML (Rppy, 99a; Rppy, 992; Panangadn & Rppy, 996). W dscrib th syntax, incuding a typing systm, and an oprationa smantics in trms of a abd transition systm. Unfortunaty, thr is not nough spac in this papr to proid an introduction to programming in CML: s (Panangadn & Rppy, 996) for a discussion of th dsign and phiosophy of CML. Th typ xprssions for our anguag ar gin by: A :: A A A A A A Thus w ha thr bas typs,, and ; th attr two ar simpy xamps of usfu bas typs and on coud asiy incud mor. Ths typs ar cosd undr four constructors: pairing, function spac, and th ss common and typ constructors.

4 4 W. Frrira, M. Hnnssy and A. S. A. Jffry Our anguag may b iwd as a typd λ-cacuus augmntd with th typ constructors A for communication channs snding and rciing data of typ A, and A for constructing dayd computations of typ A. Lt Chan A b a typ-indxd famiy of disjoint sts of chann nams, rangd or by k, and t Var dnot a st of ariabs rangd or by x, y and z. Th xprssions of µcml ar gin by th foowing abstract syntax: f g Exp :: c x w Va :: x y x k 0 c Const :: Th main syntactic catgory is that of Exp which ook ry much ik th st of xprssions for an appid ca-by-au rsion of th λ-cacuus. Thr ar th usua pairing, tbinding and branching constructors, and two forms of appication: th appication of on xprssion to anothr,, th appication of a constant to an xprssion, c. Thr is aso a syntactic catgory of au xprssions Va, usd in giing a smantics to ca-by-au functions and communicat-by-au channs. Thy ar rstrictd in form: ithr a ariab, a rcursiy dfind function, x y, or a prdfind itra au for th bas typs. W wi us som syntax sugar, writing y for x y whn x dos not occur in, and ; f for x f whn x dos not occur in f. Finay thr ar a sma coction of constant functions. Ths consist of a rprsntati samp of constants for manipuating objcts of bas typ,, which coud asiy b xtndd, th projction functions and, togthr with th st of constants for manipuating dayd computations takn dircty from (Rppy, 992): and, for constructing dayd computations which can snd and rci aus,, for constructing atrnatis btwn dayd computations,, for spawning nw computationa thrads,, for aunching dayd computations,, for combining dayd computations,, for a dayd computation which aways dadocks, and, for a dayd computation which immdiaty trminats with a au. Not that thr is no mthod for gnrating chann nams othr than using th prdfind st of nams Chan A. Thr ar two constructs in th anguag which bind occurrncs of ariabs, x 2 whr fr occurrncs of x in 2 ar bound and x y whr fr occurrncs of both x and y in ar bound. W wi not dw on th prcis dfinitions of fr and bound ariabs but simpy us f to dnot th st of ariabs which ha fr occurrncs in. If f /0 thn is said to b a cosd xprssion, which w somtims rfr to as a program. W aso us th standard notation of x to dnot th substitution of th au for a fr occurrncs of x in whr bound nams may b changd in ordr to aoid th captur of fr ariabs in. (Sinc w ar moding a

5 !! ' A Thory of Wak Bisimuation for Cor CML 5 : A B A : A B B :! : ) : *+! - : A A #. - : A A " #$ #$ " : A A : A A : A A A (' : % & & : A,% A B ' B : A Figur a. Typ rus for µcml constant functions Γ 0 Γ 09% : Γ 0 : A c : A B4 Γ 0 c : B 5 Γ/ x : A 0 x : A : *6! Γ 0 7! Γ 0 y : B x 32 y4 Γ/ x : A 0 y : B : *+! Γ 0 k : A Γ 0 n : Γ/ x : A B/ y : A 0 : B Γ 0;:6<% x 3 y = ' : A B Γ 0 : A B Γ 0 f : A Γ 0 f : B Γ 0 : *6! Γ 0 f : A Γ 0 g : A Γ 0 f! g : A k 8 Chan A 4 Γ 0 : A Γ 0 f : B Γ 09% / f ' : A B Γ 0 : A Γ/ x : A 0 f : B Γ 0>! x 3 f : B Figur b. Typ rus for µcml xprssions. ca-by-au anguag, w ha imitd substitution to aus x rathr than th mor gnra f x. In ordr to mod apha-conrsion, w ha thrfor incudd ariabs as possib aus.) W now xamin brify th typ systm for this anguag. Th typs for th constant functions of th anguag ar gin in Figur a; this is in agrmnt with th typing rus gin in (Rppy, 992) for λ c. Not that many of th constants (such as : A A A ) ha a famiy of typs. This assignmnt of typs to constant functions is usd to infr typs for arbitrary xprssions in th standard way, using a typ infrnc systm. A typing judgmnt Γ? : A consists of a typ assignmnt Γ, an xprssion and a typ A such that f A@CB x DDD x ne. A typ assignmnt is a squnc of th form x : t DDD x n : t n, whr ach t i is a typ. Intuitiy a typ judgmnt shoud b rad as in th typ assignmnt Γ th xprssion has typ A. Th typ infrnc systm is gin in Figur b and is straightforward. Thr ar two structura rus, itras ar assignd thir natura typs whi th typs of functiona aus ar infrrd using a minor modification of th standard ru for functiona abstractions. Th rmaining constructs ar aso handd using standard infrnc rus, (Guntr, 992). W now turn our attntion to th oprationa smantics. In (Rppy, 992; Brry t a., 992) a rduction smantics is gin to λ c and sinc µcml c is a subst of λ c, this inducs a rduction smantics for µcml c ; this is discussd in fu in Sction 6. Th judgmnts in

6 6 W. Frrira, M. Hnnssy and A. S. A. Jffry this rduction smantics ar of th form: C C whr C C ar configurations which combin a cosd xprssion with a run-tim nironmnt ncssary for its auation, and is Minr s notation for a sint action. Howr this smantics is not compositiona as th rductions of an xprssion can not b dducd dircty from th rductions of it constitunt componnts. Hr w gi a compositiona oprationa smantics with four kinds of judgmnts: k?x k!, rprsnting a on stp auation or rduction,, rprsnting th production of th au, with a sid ffct,, rprsnting th potntia to input a au x aong th chann k, and, rprsnting th output of th au aong th chann k. Ths ar formay dfind in Figur 2, but w first gi an informa oriw. In ordr to dfin ths rations w introduc xtra syntactic constructs. Ths ar introducd as rquird in th oriw but ar summarizd in Figur 3. Th rus for on stp auation or rduction ha much in common with thos for a standard ca-by-au λ-cacuus. But in addition a cosd xprssion of typ A shoud auat to a au of typ A and it is this production of aus which is th subjct of th scond kind of judgmnt. Howr µcml xprssions can spawn subprocsss bfor rturning a au, so w ha to aow xprssions to continu auation n aftr thy ha rturnd a rsut. For xamp in th xprssion: on possib rduction is (whr 0 a ; a indicats a squnc of -rductions): 0 a ; a a? a!0 whr th procss rturns th au bfor outputting 0. For this rason w nd a rduction rathr than th mor usua trmination. Th foowing diagram iustrats a of th possib transitions from this xprssion: a? a!0 a? a!0 a!0 0 a ; 0 a Whn giing an oprationa smantics to a anguag with sid-ffcts thr ar two standard approachs to rtaining th information ncssary to intrprt thm. Th first, usd for xamp in (Brry t a., 992; Rppy, 992), is to dfin a notion of stat or configuration; ths contain th program bing auatd togthr with auxiiary stat information, and th

7 α α α A Thory of Wak Bisimuation for Cor CML 7 judgmnts of th oprationa smantics appy to ths configurations. Th scond, mor common in work on procss agbras, (Brgstra & Kop, 985; Minr, 989), xtnds th syntax of th anguag bing intrprtd to ncompass configurations. W choos th attr approach and on xtra construct w add to th anguag is a para oprator, f. This has th sam oprationa rus as in CCS, aowing rduction of both procsss: α f f and communication btwn th procsss: k! k?x f f f f x f f k?x f f k! f f f x f Th assymtry is introducd by trmination (a fatur missing from CCS). A CML procss has a main thrad of contro, and ony th main thrad can rturn a au. By conntion, w writ th main thrad on th right, so th ru is: f f f f Thr is no corrsponding symmtric ru. For xamp: Λ Sinc th ony diffrnc btwn concurrnt procsss is which trm can rturn a au, concurrncy is associati and symmtric on th ft, so f g is bisimiar to f g. In gnra, w can rgard n procsss in para: n f as bing a mutist of spawnd thrads n pus on main thrad of contro f, corrsponding to th us of muti-sts in th rduction smantics of (Brry t a., 992; Rppy, 992). Concurrnt procsss ar gnratd using th constant appication. A first attmpt to writ th smantics for woud b th ru: y y On stp in th auation of y ads to two xprssions running in para, on bing th spawnd function appication y and th othr th dfaut au which rsuts from ry appication of. Howr, this ru for is not gnra nough. Firsty, it ignors th fact that th xprssion may nd to prform som computation bfor rturning a function, which is capturd by instantiating th static ru for constant appication as: α α Scondy, may ha spawnd som concurrnt procsss bfor rturning a function, and ths shoud carry on auation, so w us th sint ru for constant appication: Λ

8 α 8 W. Frrira, M. Hnnssy and A. S. A. Jffry Th w-typdnss of th oprationa smantics wi nsur that is a function of th appropriat typ,. With this mthod of rprsnting nwy cratd computation thrads mor of th rus corrsponding to β-rduction in a ca-by-au λ-cacuus may now b gin. To auat an appication xprssion f, first is auatd to a au of functiona form and thn th auation of f is initiatd. This is rprsntd by th rus: α y g f f f y f g (In fact w us a sighty mor compicatd rsion of th attr ru as functions ar aowd to b rcursi.) Continuing with th auation of f, w now auat f to a au which is thn substitutd into g for y. This is rprsntd by th two rus: f f x f g x f f f g x f g f g x Th auation of th appication xprssion c f is simiar; f is auatd to a au and thn th constant c is appid to th rsuting au. This is rprsntd by th two rus f f c f c f f f c f f δ c Hr, borrowing th notation of (Rppy, 992), w us th function δ to rprsnt th ffct of appying th constant c to th au. This ffct dpnds on th constant in qustion and w ha arady sn on instanc of this ru, for th constant, which rsut from th fact that δ. Th dfinition of δ for a constants in th anguag is gin in Figur 2f. For th constants associatd with th bas typs this is sf-xpanatory; th othrs wi b xpaind bow as th constant in qustion is considrd. Not that bcaus of th introduction of into th anguag w can trat a constants uniformy, unik (Rppy, 992) whr and ha to considrd in a spcia mannr. In ordr to impmnt th standard ft-to-right auation of pairs of xprssions w introduc a nw au w rprsnting a pair which has bn fuy auatd. Thn to auat f : first aow to auat: α f α f thn whn it trminats, start th auation of f : f x f Ths au pairs may thn b usd by bing appid to functions of typ A B. For xamp th foowing infrncs rsut from th dfinition of th function δ for th constants and : w m n m n D It rmains to xpain how dayd computations, i.. programs of typ A, ar handd. It is important to rais that xprssions of typ A rprsnt potntia rathr than actua computations and this potntia can ony b actiatd by an appication of th x

9 / / / / / α ' ' /! / A Thory of Wak Bisimuation for Cor CML 9 α c α c α f α f % / f ' α % / f ' α f! g α f α! g! x 3 f α! x 3 f α f α f α f f f α f f f f f Figur 2a. Oprationa smantics: static rus g α g g 2 α g 2 α g g 2 α g α g = α Figur 2b. Oprationa smantics: dynamic rus c δ% c/ ' f! g f f! g g % / f '! x 3 f / x f! y 3 f g x4 3 :+<+% x 3 y = g ' 4! x 3 f f k! k?x f f x4 f f k?x k! f f x4 f x4 f Figur 2c. Oprationa smantics: sint rus Λ k! k! % k? k?x x A Figur 2d. Oprationa smantics: axioms a :: 3 k! k?x α :: 3 a :: 3 α δ% δ% ) δ%! Figur 2. Oprationa smantics: grammar of abs ' / w 3 ' δ% m/ n 3 m n ' δ%! / m/ n 3 m n ' / w 3 w ' m/ n 3 m n ' δ% k/ 3 k!4 δ% / k ' 3 k?4 ' δ% g 4/ g #$ " ' g g 2 4 δ% g4/ 3 g '' = δ% /7% 3 #. - Λ4 δ% / ' 3 " 5# A4 δ% / ' 3 ' - ' % % δ% / g4 3 g Figur 2f. Oprationa smantics:rduction of constants 4

10 ! '! 0 W. Frrira, M. Hnnssy and A. S. A. Jffry / f / g 8 Exp :: 3 c! % / '! x 3 / w 8 Va :: 3 :+<% x 3 y = ' 7 x k % 0 c 8 Const :: 3 )!! " #$ - # " #. - Figur 3a. Syntax of µcml / w 8 Va :: 3 / g4 g 8 GExp :: 3!? g = g g Λ A Figur 3b. Syntax of µcml c / f / g 8 Exp :: 3 g Figur 3c. Syntax of µcml constant, of typ A A. Thus for xamp th xprssion k is of typ A and rprsnts a dayd computation which has th potntia to rci a au of typ A aong th chann k. Th xprssion k can actuay rci such a au aong chann k, or mor accuraty can auat to such a au, proidd som othr computation thrad can snd th au aong chann k. Th smantics of is handd by introducing a nw constructor for aus. For crtain kinds of xprssions g of typ A, which w ca guardd xprssions, t g b a au of typ A ; this rprsnts a dayd computation which whn aunchd initiats a nw computation thrad which auats th xprssion g. Thn th xprssion g rducs in on stp to th xprssion g. Mor gnray th auation of th xprssion procds as foows: First auat unti it can produc a au: thn aunch th rsuting dayd computation: g g Not that hr, as aways, th production of a au may ha as a sid-ffct th gnration of a nw computation thrad and this is aunchd concurrnty with th dayd computation g. Aso both of ths rus ar instancs of mor gnra rus arady considrd. Th first is obtaind from th ru for th auation of appications of th form c and th scond by dfining δ g to b g. Th prcis syntax for guardd xprssions wi mrg by considring what typs of aus of th form can rsut from th auation of xprssions of typ from th basic anguag µcml. Th constant is of typ A A and thrfor

11 A Thory of Wak Bisimuation for Cor CML th auation of th xprssion procds by first auating to a au of typ A unti it rturns a au k, and thn rturning a dayd computation consisting of an nt which can rci any au of typ A on th chann k. To rprsnt this nt w xtnd th syntax furthr by tting k? b a guardd xprssion for any k and A, with th associatd ru: k k? Th construct is handd in a simiar mannr, using guardd xprssions of th form k!: k k! It is ths two nw xprssions k? and k! which prform communication btwn computation thrads. Formay k! is of typ and w ha th axiom: k! k! Intuitiy this may b rad as k! auats in on stp to th xprssion and this auation has as a sid ffct th transmission of th au to th chann k. Th smantics w considr for input is th at smantics, whr th rduction ru binds a nw ariab x: k? k?x x Thrfor in gnra input mos ar of th form k?x f whr : B and x : A f : B. Communication can now b modd as in CCS by th simutanous occurrnc of input and output actions: k?x k! f f f x f Thr rmain four constructs for dayd computations to b xpaind. Th first, of typ A, is handd by th introduction of th guardd xprssion Λ, rprsnting a dadockd auation, togthr with th infrnc ru: Λ obtaind, onc mor, by dfining δ to b Λ. Th constant is of typ A A B B. Th auation of procds in th standard way by auating unti it producs a au, which must b of th form g, whr g is a guardd xprssion of typ A and has typ A B. Thn th auation of continus by th construction of th nw dayd computation g. Baring in mind th fact that th production of aus can gnrat nw computation thrads, this is formay rprsntd by th infrnc ru: g g Th guardd xprssion g Th is a wrappr which appis to th rsut of auating g: g α g α construct, of typ A A, auats its argumnt to a au, and thn

12 α α 2 W. Frrira, M. Hnnssy and A. S. A. Jffry rturns a triia a dayd computation; this computation, whn actiatd, immdiaty auats to th au. In ordr to rprsnt ths triia computations w introduc a nw constructor for guardd xprssions, A and th smantics of is thn capturd by th ru: A Sinc A immdiaty auats to th constant w ha: A Th choic construct is a choic btwn dayd computations as has th typ A A A. To intrprt it w introduc a nw choic constructor g g 2 whr g and g 2 ar guardd xprssions of th sam typ. Thn procds by auating unti it can produc a au, which must b of th form g g 2, and th auation continus by constructing th dayd computation g g 2. This is rprsntd by th ru: g g 2 g g 2 Th notation, introducd in (Rppy, 992), is unfortunat, as it is usd in (Hnnssy, 988) to rprsnt th intrna choic btwn procsss whras hr it rprsnts xtrna choic: w ha th foowing auxiiary rus, which ar th sam as CCS summation: g g 2 g g α 2 g g α 2 This nds our informa dscription of th oprationa smantics of µcml. W now summaris, giing th prcis dfinitions of th nw syntax. For th purposs of comparison with th rduction smantics of λ c, (Rppy, 992), it is connint to iw th xtnsion to µcml in two stags. Th first is obtaind by adding th nw syntactic catgory of guardd xprssions, and two nw constructors for aus: Va :: g g GExp ::!? g g g Λ A Th rsuting anguag w ca µcml c, as it corrsponds ry cosy to Rppy s λ c. A prcis comparison is gin in Sction 6. Th fina anguag, µcml, is obtaind by xtnding µcml c with: Exp :: g and typ judgmnts for a th xtra constructs appar in Figur 4. Th oprationa smantics is gin as a st of transition rations or cosd xprssions from µcml. Ths transition rations ha as abs Lab: a :: k! k?x α :: a :: α which ar typd with judgmnts? : A in Figur 5, and ar dfind to b th ast rations satisfying th rus in Figur 2. Th rus ar diidd into thr parts. Th first gis th st of contxt rus, showing whn mos may b propagatd through crtain contxts; th scond gi th rduction rus whi th third contains th axioms.

13 A Thory of Wak Bisimuation for Cor CML 3 Γ 0 : A Γ 0 w : B Γ 0 g : A Γ 0 / w : A B Γ 0 g4 : A Γ 0 : A Γ 0 w : A Γ 0 : A Γ 0 g : A Γ 0 : A B Γ 0!w : Γ 0? : A Γ 0 g = : B Γ g : A Γ g 2 : A Γ g g 2 : A Γ Λ : A Γ 0 : A Γ 0 f : B Γ 0 f : B Γ 0 : A Γ 0 A : A Fig. 4. Typ rus for xtra µcml constructs Γ 0 : A Γ 0 : A Γ 0 : A Γ 0 k?x : A Γ 0 w : B k 8 Chan Γ 0 k!w : A B 4 Fig. 5. Typ rus for abs It is worth pointing out that th contxt rus ar asymmtric for th propagation of au production though th contxt ; in f ony th computation thrad f can produc a au. This is in agrmnt with th rduction smantics of (Rppy, 992) whr in a gin stat rprsntd by a muti-st of xprssions ony on distinguishd xprssion is aowd to produc a au. Aso in th ru for appication, th auation of f is somwhat mor compicatd than priousy statd; aus of functiona typ a ino th fix point oprator and ths fix points ar automaticay unfodd at th point of appication. W nd this sction with a Subjct Rduction Thorm for our smantics: Thorm 2. For ry cosd xprssion? : A in µcml if thn? : A, if thn? : A and? : A, if k?x and k Chan B thn x : B? : A, and if k! and k Chan B thn? : A and? : B. By ru induction on th infrncs. 3 Wak Bisimuation Equianc In this sction w dmonstrat th usfunss of our oprationa smantics by proiding µcml with an appropriat rsion of bisimuation quianc. W discuss a rang of possib bisimuation basd quiancs and ntuay propos a nw ariation cad hrditary bisimuation quianc, which w f is most suitd to µcml. W first show how to adapt th notion of strong bisimuation quianc to µcml. Sinc our anguag is typd it is mor connint to dfin th quianc in trms of typ-indxd famiis of rations. Moror sinc th oprationa smantics uss actions

14 4 W. Frrira, M. Hnnssy and A. S. A. Jffry of th form k?x f whr f may b an opn xprssion w nd to considr rations or opn xprssions. Lt an opn typ-indxd ration R b a famiy of rations R Γ A such that if R Γ A f thn Γ? : A and Γ? f : A. W wi oftn id th subscripts from rations, for xamp writing R f for R Γ A f whn contxt maks th typ obious. Lt a cosd typ-indxd ration R b an opn typ-indxd ration whr Γ is rywhr th mpty contxt, and can thrfor b idd. For any cosd typ-indxd ration R, t its opn xtnsion R b dfind as: R x: A B f iff x R B f x for a? A cosd typ-indxd ration R is structur prsring iff: if R A w and A is a bas typ thn w, if 2 R A A 2 w w 2 thn i R Ai w i, if g R A g 2 thn g R A g 2, and if R A B thn for a? w : A w ha w R B w. : AD With this notation w can now dfin strong bisimuations or µcml xprssions. A cosd typ-indxd ration R is a first-ordr strong simuation iff it is structurprsring and th foowing diagram can b comptd: R 2 R 2 as R 2 Not th us of th opn xtnsion R. This mans, for xamp, that if R 2 w rquir k?x k?x that th mo f b matchd by a mo 2 f 2 whr f 2 is such that for a aus of th appropriat typ f x R f 2 x. Thus in th trminoogy of (Minr t a., 992) our dfinition corrsponds to th at rsion of bisimuation. (An atrnati woud b ary bisimuation whr input mos ar abd with cosd aus rathr than ariabs. This is computationay mor appaing, but it is an opn probm whthr th tchniqus of th nxt sction can b appid to opn bisimuation). R is a first-ordr strong bisimuation iff R and R ar first-ordr strong simuations. Lt b th argst first-ordr strong bisimuation. Proposition 3. is an quianc. Us diagram chass to show that if R is a first-ordr strong simuation thn so ar th idntity ration I and th ration composition R R. Th rsut foows. Unfortunaty, is not a congrunc for µcml, sinc w ha: 2 2 howr, snding th thunkd xprssions on chann k w gt: k! x 2 k! x 2

15 A Thory of Wak Bisimuation for Cor CML 5 sinc th dfinition of strong bisimuation dmands that th actions prformd by xprssions match up to syntactic idntity. This countr-xamp can aso b rproducd using ony µcml contxts: k x 2 k x 2 sinc th ft hand sid can prform th mo: k x 2 k! x 2 but this can ony b matchd by th right hand sid up to strong bisimuation: k! k x 2 x 2 In fact, it is asy to rify that th ony first-ordr strong bisimuation which is a congrunc for µcml is th idntity ration. To find a satisfactory tratmnt of bisimuation for µcml, w nd to ook to highrordr bisimuation, whr th structur of th abs is accountd for. To this nd, gin a cosd typ-indxd ration R, dfin its xtnsion to abs R as: R A R A w R A w k?x R A k?x R B w k! R A k!w k Chan B Thn R is a highr-ordr strong simuation iff it is structur-prsring and th foowing diagram can b comptd: R 2 R 2 as whr R 2 2 Lt R 2 h b th argst highr-ordr strong bisimuation. Proposition 3.2 h is a congrunc. Us a simiar tchniqu to th proof of Proposition 3. to show that To show that h is a congrunc, dfin R as: R &B C C f h f E h is an quianc. and thn show by induction on C that R is a simuation. Th rsut foows. For many purposs, strong bisimuation is too fin an quianc as it is snsiti to th numbr of rductions prformd by xprssions. This mans it wi not n aidat mntary proprtis of β-rduction such as x x 0 0. W rquir th coarsr wak bisimuation which aows -actions to b ignord. ε This in turn rquirs som mor notation. Lt b th rfxi transiti cosur of ε, and t b (i.. any squnc of sint action foowd by an action). ˆ ε Not that w ar not aowing sint actions aftr th action. Lt b if and

16 6 W. Frrira, M. Hnnssy and A. S. A. Jffry othrwis. Thn R is a first-ordr wak simuation iff it is structur-prsring and th foowing diagram can b comptd: R 2 R 2 as ˆ Lt b th argst first-ordr wak bisimuation. Proposition 3.3 is an quianc. R 2 Simiar to th proof of Proposition 3.. Unfortunaty, is not a congrunc, for th sam rason as, and so w can attmpt th sam modification. R is a highr-ordr wak simuation iff it is structur-prsring and th foowing diagram can b comptd: Lt R 2 R 2 h b th argst highr-ordr wak bisimuation. Proposition 3.4 h is an quianc. Simiar to th proof of Proposition 3.. as whr R ˆ 2 2 R 2 Howr, h is sti not a congrunc, for th usua rason that wak bisimuation quianc is not a congrunc for CCS summation. Rca from (Minr, 989) that in CCS 0 D 0 but ad 0 0 ad 0 D 0. W can dupicat this countr-xamp in µcml sinc th CCS oprator corrsponds to th µcml oprator and 0 corrsponds to Λ. Howr may ony b appid to guardd xprssions and thrfor w nd a guardd xprssion which bhas ik D 0; th rquird xprssion is A Λ. Thus: Λ h A Λ sinc th right hand sid has ony on rduction: but: Λ k!0 A Λ Λ Λ h A Λ k!0

17 A Thory of Wak Bisimuation for Cor CML 7 bcaus th ony rduction of Λ k!0 is Λ k!0 k!0 Λ Λ and: A Λ k!0 Λ Λ This countr-xamp can aso b rpicatd using th rstrictd syntax of µcml. W ha: h sinc th ft hand sid has ony on rduction: Λ Λ and th right hand sid can match this with: A Λ Λ and w ha sn: Howr: Λ h A Λ k 0 h sinc th ft hand sid has ony on rduction: Λ k!0 whras th right hand sid has th rduction: A Λ k!0 D k 0 k 0 k 0 A first attmpt to rctify this is to adapt Minr s obsrationa quianc for µcml, and to dfin h as th smast symmtric ration such that th foowing diagram can b comptd: Proposition 3.5 h is an quianc. Simiar to th proof of Proposition 3.. h 2 h 2 as 2 whr This attmpt fais, howr, sinc it ony ooks at th first mo of a procss, and not at th h 2 h 2

18 8 W. Frrira, M. Hnnssy and A. S. A. Jffry first mos of any procsss in its transitions. Thus, th abo µcml countr-xamp for h bing a congrunc aso appis to h ; i.. but: h k 0 h k 0 This faiur was first notd in (Thomsn, 995) for CHOCS. Thomsn s soution to this probm is to rquir that -mos can aways b matchd by at ast on -mo, which producs his dfinition of an irrfxi simuation as a structur-prsring ration whr th foowing diagram can b comptd: R 2 R 2 as whr R 2 2 R 2 Lt i b th argst irrfxi bisimuation. Proposition 3.6 i is a congrunc. Th proof that i is an quianc is simiar to th proof of Proposition 3.. Th proof that it is a congrunc is simiar to th proof of Thorm 4.7 in th nxt sction. Howr this ration is rathr too strong for many purposs, for xamp 2 i sinc th right hand sid can prform mor -mos than th ft hand sid. This is simiar to th probm in CHOCS whr ad D P i ad P. In ordr to find an appropriat dfinition of bisimuation for µcml, w obsr that µcml ony aows to b usd on guardd xprssions, and not on arbitrary xprssions. W can thus ignor th initia -mos of a xprssions xcpt for guardd xprssions. For this rason, w ha to proid two quiancs: on on trms whr w ar not intrstd in initia -mos, and on on trms whr w ar. A pair of cosd typ-indxd rations R R n R s form a hrditary simuation (w ca R n an insnsiti simuation and R s a snsiti simuation) iff R s is structurprsring and w can compt th foowing diagrams: R n 2 R n 2 as whr R s ˆ 2 2 R n 2

19 A Thory of Wak Bisimuation for Cor CML 9 and: R s 2 R s 2 as whr R s 2 2 R n 2 Lt n s b th argst hrditary bisimuation. Not that w rquir R s to b structurprsring bcaus it is usd to compar th abs in transitions, which may contain abstractions or guardd nts. In th oprationa smantics of µcml xprssions, guardd xprssions can ony appar in abs, and not as th rsiduas of transitions. This xpains why in th dfinition of n abs ar compard with rspct to th snsiti ration s whras th insnsiti ration is usd for th rsiduas. For xamp, if g n s g 2 thn w ha: x g n x g 2 sinc onc ithr sid is appid to an argumnt, thir first action wi b a -stp. On th othr hand: g n g 2 sinc is prcisy th construct which aows us to mbd g and g 2 in a contxt. Thorm 3.7 s is a congrunc for µcml, and n is a congrunc for µcml. Th proof that s and n ar quiancs is simiar to th proof of Proposition 3.. Th proof that thy form congruncs is th subjct of th nxt sction. Proposition 3.8 Th quiancs on µcml ha th foowing strict incusions: h i s n For ach incusion, show that th first bisimuation satisfis th condition rquird to b th scond form of bisimuation. To show that th incusions ar strict, w us th foowing xamps: x 2 h h x h 2

20 B B B B B 20 W. Frrira, M. Hnnssy and A. S. A. Jffry whr: k x k 2 i s i x x h k n s x x h n h h x x x (Not that this stts an opn qustion (Thomsn, 995) as to whthr congrunc containd in h.) i is th argst It is th oprator which diffrntiats btwn th two quiancs n and h. Howr in ordr to dmonstrat th diffrnc w nd to b ab to appy to guardd xprssions which can spontanousy o, i.. prform -mos. Th ony µcml constructor for guardd xprssions which aows this is A, and in turn occurrncs of this can ony b gnratd by th µcml constructor. Thrfor: Proposition 3.9 For th subst of µcml without as h. From Proposition 3.8 n h. For th subst of µcml without w h we g g 2 and A, n is th sam as and A, dfin R s as: g h g 2 E w 2 w h, and h 2 E s is th sam Thn sinc no nt without A can prform a -mo, and sinc th ony initia mos of i w ar β-rductions, w can show that h R s forms an hrditary bisimuation, and so n. From this it is routin to show that s h. Unfortunaty w ha not bn ab to show that n is th argst µcml congrunc containd in wak highr-ordr bisimuation quianc. Howr w do ha th foowing charactrisation: Thorm 3.0 n is th argst highr-ordr wak bisimuation which rspcts µcml contxts. By dfinition, n is a highr-ordr wak bisimuation, and w ha shown that it rspcts µcml contxts. A that rmains is to show that it is th argst such. Lt R b a highr-ordr wak bisimuation which rspcts µcml contxts. Thn dfin: R n R B w 2 R s B w R we R 2 2 w g g 2 2E B 2 w g R g 2 E R 2 w w 2 w E R 2 E W wi now show that R n R s forms an hrditary simuation, from which w can dduc R n.

21 A Thory of Wak Bisimuation for Cor CML 2 First, w not that R s is structur prsring, and that R s R. Thn w show that w can compt th rquird diagrams for R n R s to b an hrditary simuation. Th ony tricky cas is if: g R s g 2 in which cas, by th dfinition of R s, g R g 2, and sinc R rspcts µcml contxts w ha (for frsh k): g g k R k? g 2 Λ R Λ and sinc R is a highr-ordr wak bisimuation, w ha: g k? R g 2 k? g 2 k k? which can b comptd as: k?x but sinc and g k? R g 2 k? ˆ 2 whr R 2 R 2 k?x k?x, w ha 2 and 2 k?x, and so: g R s g 2 2 R 2 whr R s 2 Th othr cass ar simpr, and so R n R s is an hrditary bisimuation. Thus R n, and so n is th argst highr-ordr wak bisimuation which rspcts µcml contxts. This Thorm shoud b contrastd with th cas of CCS. In (Minr, 989) sction 7D 2 it is shown that th argst congrunc containd in wak bisimuation is not itsf a wak bisimuation.

22 22 W. Frrira, M. Hnnssy and A. S. A. Jffry 4 Bisimuation as a congrunc To sr as th basis of a usfu smantic thory of µcml, bisimuation shoud b prsrd by a of th constructs of th anguag. In this sction w wi show that s is a congrunc for µcml, and that n is a congrunc for µcml. Unfortunaty, this proof is not straightforward, du to th highr-ordr natur of hrditary bisimuation. Th probm is not uniqu to µcml, and it occurs in many highr-ordr anguags, for xamp typd λ-cacui (Gordon, 995), th untypd λ-cacuus (How, 989), and th Cacuus of Highr-Ordr Communicating Systms (CHOCS) (Thomsn, 995). Th difficuty is in finding th right form of induction to us, whn a of th standard inductions (for xamp on structur of trms, on numbr of -mos, on structur of proof) fai. For xamp, th proof of congrunc for CHOCS (Thomsn, 995, Prop. 6.6) adapts Minr s tchniqu (Minr, 989, Thorm 8, p. 55) but uss a non-w-foundd induction. It sms that any inducti proof that wak bisimuation is a congrunc for highrordr anguags rquirs an induction on both syntax and proof structur. Th usua mthods of prforming nstd induction fai in this cas, and so anothr mthod of prforming simutanous induction is rquird. Fortunaty this is achid by a tchniqu dopd for th azy λ-cacuus (How, 989). W sha appy How s tchniqu to show that s is a congrunc for µcml, and that n is a congrunc for µcml without g and g g 2. This particuar appication is mad compicatd by th fact that w ha to da a pair of rations, n s which ar dfind in trms of ach othr. So athough w foow th gnra proof mthod usd in (How, 989) and th notation of (Gordon, 995), th arious tchnica dfinitions about rations which foow wi appy to pairs of rations of th form R R n R s with R R n. W wi continu to appy th usua oprations associatd with rations, such as composition, undr th assumption that such oprations ar appid pointwis. Dfin a contxt to b gin by th grammar: C :: i cc C C C C C CC x y C C C C C!C C? C C C C AC C x C C Lt C b th trm gin by rpacing ach ho i by th trm i (unik substitution, w aow for captur of fr ariabs). An quianc R is a congrunc iff i R f i impis C R C f. Dfin an unntfu contxt to b on which dos not us C or C C, that is on gin by th grammar: C n :: i cc n C n C n C n C n C n C n C n x y C n C n C n C n!c n C n? C n C n AC n C n C n C x C n C n An quianc R is an unntfu congrunc iff i R f i impis C n R C n f. Not that any µcml contxt is an unntfu contxt, and so any unntfu congrunc is a

23 B A Thory of Wak Bisimuation for Cor CML 23 congrunc for µcml. So w concntrat on showing that an unntfu congrunc. Dfin th on- dp contxts with th grammar: D :: x c x y 2! 2? 2 2 s is a congrunc, Lt D n rang or unntfu on- dp contxts. For any pair of rations R R n R s with R s R n, t its compatib rfinmnt, R b dfind: R n B R s B D n D n f D D f i R n f ie i R s f ie x y R s x A x y f 2 2 R n f E This dfinition is rathr diffrnt from How s and Gordon s dfinition of R CB i R f ie. Th diffrncs ar that: n is D D f n is not a congrunc, it is ony an unntfu congrunc, so w ony cos R n undr unntfu on- dp contxts rathr than arbitrary on- dp contxts, w want to maintain th inariant that for a pairs of rations w considr, R R n, hnc w incud R s in th dfinition of R n, and if two insnsiti bisimiar xprssions ar thunkd, th rsuting xprssions ar snsiti bisimiar; for this rason th proof of Thorm 4.7 rquirs x y R s x y f whn R n f. Proposition 4. If R is an quianc and congrunc. R, thn R s is a congrunc and R n is an unntfu A ariant of th proof in (Gordon, 995; How, 989). Show by induction on C that if i R s f i thn C R s C f. Eithr C i, in which cas th rsut is immdiat, or C D C and by inductionc i R s C i f, so by dfinitionc D C R s D C f C f. It foows that R s is a congrunc. Th proof that R n is an unntfu congrunc is simiar. For any R, its compatib cosur, R, is gin by: R R R Not that R R n. This dfinition of R is spcificay dsignd to faciitat simutanous inducti proof on syntax (sinc th dfinition inos on- dp contxts) and on rductions (sinc th dfinition inos inducti us of R ). This form of induction is prcisy what is rquird to show th dsird congrunc rsuts. Its rant proprtis ar summd up in th foowing proposition.

24 @ 24 W. Frrira, M. Hnnssy and A. S. A. Jffry Proposition 4.2 If R is a prordr thn R is th smast ration satisfying:. R R, 2. R, and 3. R. A ariant of th proof in (Gordon, 995). First w show that R is rfxi, by showing by structura induction on that R s. Find D such that D, so by induction i R s i, so by dfinition of R, D R s D R s D. Thn w show th rquird proprtis:. R R R 2. R R R. 3. R R. R R $@ R. To s that R is th smast ration satisfying ths proprtis w show that if S satisfis ths proprtis, thn S, and so S. Sinc R R, w know from Proposition 4. that if R is an quianc thn R s is a congrunc and R n is an unntfu congrunc. Howr, w can show a strongr rsut than that, which is that R is cosd undr substitution of cosd aus: Proposition 4.3 If R is a prordr thn for any R s w:. if R s f thn x R s f w x, and 2. if R n f thn x R n f w x. A ariant of th proof in (Gordon, 995; How, 989). To pro th first part, w procd by induction on. If x thn x R s f, so x R s w R s s f w x so by Proposition 4.2 x R f w x. If y z thn w can find a g such that R n g and y z g R s f, so by induction x R n g w x, so x y z x R s y z g w x R s s f w x, so by dfinition of R, x R f w x. Othrwis, w ha D and D x D x, so w can find g such s that R g and D g R s f, so by induction i x R s f i w x, hnc x D x D x R s D f w x D f w x R s f w x, so by dfinition of R, x R s f w x. Th proof of th scond part is simiar. Our proof stratgy is to show that and coincid. this amounts to showing which w do by proing that, whn rstrictd to programs, is an hrditary simuation.

25 A Thory of Wak Bisimuation for Cor CML 25 Proposition 4.4 Whn rstrictd to cosd xprssions of µcml, is an hrditary simuation. W ha to show that s is structur-prsring, and that th diagrams for an hrditary simuation can b comptd. Showing that s is structur prsring is a routin structura induction. If: n f thn w procd by induction on to show that w can compt th diagram as: whr s 2, and simiary for s. W sha show thr of th mor intrsting cass, th othrs ar simiar but mor routin: if w ha: n n x 2 ˆ 2 f f n x g g 2 n f 2 x whr n i g i and, thn by induction g w g, s w and n g, so using Proposition 4.3, w ha: if w ha: x 2 2 x n x g g 2 n g 2 n g 2 w x g g 2 n n n ε f f f y 2 3 x

26 26 W. Frrira, M. Hnnssy and A. S. A. Jffry whr n i g i,, and w x y 3 thn by induction g g, s w, up to α-conrsion w x y g 3, and n g. Thn by th dfinition of, w can find an x y h 3 such that n 3 h 3 and s w, so by Proposition 4.3, 3 x n h 3 x n y n wy n g 3 w x, and so: 2 if w ha: y 2 3 x x y n n g g g 2 y g 2 g 3 w x n x y g n n n f ε f f whr Λ n g thn t x y g, so: x y n x y g Λ n Λ n n w f f and s s w. Thus is an hrditary simuation. W now ha that is a simuation, and w woud ik to show that it is a bisimuation, for which it suffics to show that is symmtric. Unfortunaty, this is not asy to pro dircty, and so w us a rsut of (How, 992) (pointd out to th authors by Andrw Pitts) which aows us to show that is symmtric. Proposition 4.5 If R is an quianc thn R is symmtric. A ariant of th proof in (How, 992). It suffics to show that if R s s f thn f R, and that if R n n f thn f R, which w show by induction on. If R s f, thn ithr: D R s D f R s f and i R s s f i, so by induction f i R i, so f R s D f D R s, or x y R s x y f R s f and R n f, so by induction n f R, so f R s s x y f R x y.

27 Th proof for R n is simiar. A Thory of Wak Bisimuation for Cor CML 27 W can us this rsut to show that is a bisimuation. Proposition 4.6 Whn rstrictd to cosd xprssions of µcml, is an hrditary bisimuation. By Proposition 4.4, By Proposition 4.5, is an hrditary simuation, and so is an hrditary simuation. is symmtric, and so is an hrditary bisimuation. This gis us th rsut w st out to pro. Thorm 4.7 s is a congrunc, and n is an unntfu congrunc. From Proposition 4.6, is an hrditary bisimuation, so, so and ar th sam ration. Sinc by Proposition and by Proposition 4.2, w ha th dsird rsut 5 Proprtis of Wak Bisimuation In this sction, w show som rsuts about program quianc up to hrditary wak bisimuation. Som of ths quiancs ar asy to show, but som ar trickir, and rquir proprtis about th transition systms gnratd by µcml. Athough much rmains to b don on aborating th agbraic thory of µcml programs w hop that th rsuts in this sction indicat that this quianc can form th basis of a usfu thory which gnraiss thos associatd with procss agbras and functiona programming. W ha gin an oprationa smantics to µcml by xtnding it with nw constructs, most of which corrspond to constructs found in standard procss agbras. Ths incud a choic oprator, a para oprator and suitab rsions of input and output prfixing, (Minr, 989). Th prfixs in µcml c ha a sighty unusua syntax thir quiants in CCS ar gin as: CCS prfix µcml c quiant k?xd P k? x P k!d P k! x P D P A x P W now xamin th xtnt to which and act ik choic and para oprators from a procss agbras W can find bisimuations for th foowing (and hnc thy ar snsiti bisimiar): Λ Thus satisfis many of th standard aws associatd with a para oprator in a procss agbra. Howr it is not in gnra symmtric bcaus of its intraction with th

28 28 W. Frrira, M. Hnnssy and A. S. A. Jffry production of aus: For xamp: Λ Λ Λ This mans that w can iw th para composition of procsss as bing of th form: i i whr th ordr of th i is unimportant. Not that it is important which is th right-most xprssion in a para composition, sinc it is th main thrad of computation, and so can rturn a au, which non of th othr xprssions can. Th choic oprator of µcml aso satisfis th xpctd aws from procss agbras, thos of a commutati monoid, athough it can ony b appid to guardd xprssions: Λ g g g 2 g 3 f g g g 2 g 3 g g 2 g 2 g This mans that w can iw th sum of guardd xprssions as bing of th form: i whr th ordr of th g i is unimportant. In fact guardd xprssions can b iwd in a mannr quit simiar to th sum forms usd in th dopmnt of th agbraic thory of CCS, (Minr, 989). W can find bisimuations for th foowing (and hnc thy ar snsiti bisimiar): g g 2 g x x A s g i g g s A x g 2 From this, w can show, by structura induction on syntax that a guardd xprssions ar of a gin form: g s i g i whr ach g i is ithr k i! i, k i? or A. From this and: i c δ c w can show that a aus? : A ar of th form: n DDD n n whr n is ithr k i i, k i, or. W coud continu in this mannr muating th agbraic thory of CCS, for xamp with xpansion thorms for guardd xprssions or aus of nt typ. Howr w a this for futur work.

29 A Thory of Wak Bisimuation for Cor CML 29 W now turn our attntion to µcml iwd as a functiona anguag. On woud not xpct β-rduction in its fu gnraity in a anguag with sid-ffcts such as µcml but w do obtain an appropriat ca-by-au rsion: y y W aso ha xpctd aws such as: y x y x x x f g x x y x y y f g whr x f g Th ast two quations ar of particuar intrst, sinc thy ar xacty th ft unit and associatiity axioms of th monadic mtaanguag (Moggi, 99). Th right unit quation: x x n is not so simp to show, and indd if wr an arbitrary abd transition systm thn it woud not b tru, as can b sn by: k! n k! x x Λ Λ Λ Λ (This is th sam xamp which maks SKIP not act as a right unit for squntia composition in CSP (Hoar, 985) and xit not act as a right unit for in LOTOS (ISO 8807, 989).) Fortunaty, w can show that our oprationa smantics for µcml satisfis four proprtis which aow us to show th right unit quation. A abd transition systm is sing-aud iff: if thn w Λ It is au dtrministic iff: if w thn w and

30 B B B 30 W. Frrira, M. Hnnssy and A. S. A. Jffry It is forward commutati iff: if α thn α α Not that sinc α may b an input mo, may b an opn trm, so w nd to tak th opn xtnsion of th trmination ration. It is backward commutati iff: if α thn α Not in particuar that LOTOS and CSP do not satisfy forward commutatiity, which is why thir squntia composition oprators do not ha a right unit. Howr, µcml dos satisfy ths conditions. Proposition 5. µcml satisfis sing-audnss, au dtrminacy, forward commutatiity and backward commutatiity. A routin induction on syntax. Th important proprty which such ts s satisfy is th foowing, whr w assum th xistnc of th oprator. Proposition 5.2 In any sing-aud, au dtrministic, forward commutati, backward commutati ts, if thn. Us th proprtis of th ts to stabish that th foowing is a first-ordr wak bisimuation: Th rsut foows. E As a coroary to this proposition, it is routin to show that th foowing is a first-ordr wak bisimuation: x x E So w ha th right unit quation w wr ooking for: x x Ths quations nab us to dfin a catgorica mod for µcml whr: Λ α E

31 A Thory of Wak Bisimuation for Cor CML 3 objcts ar typs, morphisms btwn A and B ar typd xprssions with on fr ariab x : A? : B, iwd up to wak bisimuation, th idntity morphism is x : A? x : A, and composition is x : A? : B ; y : B? f : C x : A? y f : C. Th quations for wak bisimuation discussd abo show that morphism composition is associati and has th idntity as both a ft unit and right unit. Thus µcml forms a catgory. Again w a th instigation of th proprtis of this catgory to futur work but w shoud point out that so far w ha bn unab to cast it as an instanc of gnra catgorica framwork of (Moggi, 99). 6 Comparing µcml and λ c In sction 2 w prsntd th oprationa smantics of a subst of CML, as a abd transition systm, in ordr that w might instigat its bhaioura proprtis. In this sction w sha mak a forma connction btwn this smantics and th rduction smantics for λ c prsntd in (Rppy, 992). W ha not considrd λ c in its ntirty and so th comparison wi b confind to th common subst, namy µcml c. W first rproduc, as faithfuy as possib, th rduction smantics of Rppy as it appis to µcml. From this rduction smantics w thn dri a abd transition systm for µcml xprssions and our main thorm stats that this abd transition systm (up to first-ordr wak bisimuation) is th sam as ours. In fact th mor tchnica rsuts w dri conncting th two smantics woud support a much cosr rationship but xprssing it woud ino doping yt anothr bisimuation basd quianc. Bfor prsnting th oprationa smantics and our main thorm w carify th diffrncs btwn λ c and µcml c : W do not considr th λ c constructs and. W conjctur that th oprationa smantics of µcml woud nd to b considraby atrd to cop with transating ths constructs. W omit th λ c construct sinc w cannot ncod uniqu chann nam gnration in µcml, athough it shoud not b difficut to add it using oprationa rus à a π-cacuus. Howr this woud rquir using a bisimuation simiar to Sangiorgi s (Sangiorgi, 992) contxt bisimuation for th highr-ordr π-cacuus. W ha addd rcursi function typs to µcml c bcaus in (Rppy, 992) rcursion is ncodd using procss cration and uniqu chann nam gnration. In λ c, constant functions such as ar aus, whr in µcml thy ha to b codd as x x. This rstriction has no ffct on th xprssi powr of µcml, and maks it simpr to rason about th oprationa smantics, sinc any au of typ A B must b of th form x y. W now prsnt Rppy s rduction smantics for µcml c. In (Rppy, 992) this is rprsntd by a transition ration btwn muti-sts of µcml c, or mor gnray λ c

Exact and Approximate Detection Probability Formulas in Fundamentals of Radar Signal Processing

Exact and Approximate Detection Probability Formulas in Fundamentals of Radar Signal Processing Exact and Approximat tction robabiity Formuas in Fundamntas of Radar Signa rocssing Mark A. Richards Sptmbr 8 Introduction Tab 6. in th txt Fundamntas of Radar Signa rocssing, nd d. [], is rproducd bow.

More information

UNTYPED LAMBDA CALCULUS (II)

UNTYPED LAMBDA CALCULUS (II) 1 UNTYPED LAMBDA CALCULUS (II) RECALL: CALL-BY-VALUE O.S. Basic rul Sarch ruls: (\x.) v [v/x] 1 1 1 1 v v CALL-BY-VALUE EVALUATION EXAMPLE (\x. x x) (\y. y) x x [\y. y / x] = (\y. y) (\y. y) y [\y. y /

More information

Higher order derivatives

Higher order derivatives Robrto s Nots on Diffrntial Calculus Chaptr 4: Basic diffrntiation ruls Sction 7 Highr ordr drivativs What you nd to know alrady: Basic diffrntiation ruls. What you can larn hr: How to rpat th procss of

More information

Clausius-Clapeyron Equation

Clausius-Clapeyron Equation ausius-apyron Equation 22000 p (mb) Liquid Soid 03 6. Vapor 0 00 374 (º) oud drops first form whn th aporization quiibrium point is rachd (i.., th air parc bcoms saturatd) Hr w dop an quation that dscribs

More information

The Matrix Exponential

The Matrix Exponential Th Matrix Exponntial (with xrciss) by Dan Klain Vrsion 28928 Corrctions and commnts ar wlcom Th Matrix Exponntial For ach n n complx matrix A, dfin th xponntial of A to b th matrix () A A k I + A + k!

More information

The Matrix Exponential

The Matrix Exponential Th Matrix Exponntial (with xrciss) by D. Klain Vrsion 207.0.05 Corrctions and commnts ar wlcom. Th Matrix Exponntial For ach n n complx matrix A, dfin th xponntial of A to b th matrix A A k I + A + k!

More information

CS 361 Meeting 12 10/3/18

CS 361 Meeting 12 10/3/18 CS 36 Mting 2 /3/8 Announcmnts. Homwork 4 is du Friday. If Friday is Mountain Day, homwork should b turnd in at my offic or th dpartmnt offic bfor 4. 2. Homwork 5 will b availabl ovr th wknd. 3. Our midtrm

More information

Basic Polyhedral theory

Basic Polyhedral theory Basic Polyhdral thory Th st P = { A b} is calld a polyhdron. Lmma 1. Eithr th systm A = b, b 0, 0 has a solution or thr is a vctorπ such that π A 0, πb < 0 Thr cass, if solution in top row dos not ist

More information

Collisions between electrons and ions

Collisions between electrons and ions DRAFT 1 Collisions btwn lctrons and ions Flix I. Parra Rudolf Pirls Cntr for Thortical Physics, Unirsity of Oxford, Oxford OX1 NP, UK This rsion is of 8 May 217 1. Introduction Th Fokkr-Planck collision

More information

cycle that does not cross any edges (including its own), then it has at least

cycle that does not cross any edges (including its own), then it has at least W prov th following thorm: Thorm If a K n is drawn in th plan in such a way that it has a hamiltonian cycl that dos not cross any dgs (including its own, thn it has at last n ( 4 48 π + O(n crossings Th

More information

Construction of asymmetric orthogonal arrays of strength three via a replacement method

Construction of asymmetric orthogonal arrays of strength three via a replacement method isid/ms/26/2 Fbruary, 26 http://www.isid.ac.in/ statmath/indx.php?modul=prprint Construction of asymmtric orthogonal arrays of strngth thr via a rplacmnt mthod Tian-fang Zhang, Qiaoling Dng and Alok Dy

More information

CPE702 Algorithm Analysis and Design Week 11 String Processing

CPE702 Algorithm Analysis and Design Week 11 String Processing CPE702 Agorithm Anaysis and Dsign Wk 11 String Procssing Prut Boonma prut@ng.cmu.ac.th Dpartmnt of Computr Enginring Facuty of Enginring, Chiang Mai Univrsity Basd on Sids by M.T. Goodrich and R. Tamassia

More information

(Upside-Down o Direct Rotation) β - Numbers

(Upside-Down o Direct Rotation) β - Numbers Amrican Journal of Mathmatics and Statistics 014, 4(): 58-64 DOI: 10593/jajms0140400 (Upsid-Down o Dirct Rotation) β - Numbrs Ammar Sddiq Mahmood 1, Shukriyah Sabir Ali,* 1 Dpartmnt of Mathmatics, Collg

More information

A Propagating Wave Packet Group Velocity Dispersion

A Propagating Wave Packet Group Velocity Dispersion Lctur 8 Phys 375 A Propagating Wav Packt Group Vlocity Disprsion Ovrviw and Motivation: In th last lctur w lookd at a localizd solution t) to th 1D fr-particl Schrödingr quation (SE) that corrsponds to

More information

Addition of angular momentum

Addition of angular momentum Addition of angular momntum April, 0 Oftn w nd to combin diffrnt sourcs of angular momntum to charactriz th total angular momntum of a systm, or to divid th total angular momntum into parts to valuat th

More information

Fourier Transforms and the Wave Equation. Key Mathematics: More Fourier transform theory, especially as applied to solving the wave equation.

Fourier Transforms and the Wave Equation. Key Mathematics: More Fourier transform theory, especially as applied to solving the wave equation. Lur 7 Fourir Transforms and th Wav Euation Ovrviw and Motivation: W first discuss a fw faturs of th Fourir transform (FT), and thn w solv th initial-valu problm for th wav uation using th Fourir transform

More information

Abstract Interpretation. Lecture 5. Profs. Aiken, Barrett & Dill CS 357 Lecture 5 1

Abstract Interpretation. Lecture 5. Profs. Aiken, Barrett & Dill CS 357 Lecture 5 1 Abstract Intrprtation 1 History On brakthrough papr Cousot & Cousot 77 (?) Inspird by Dataflow analysis Dnotational smantics Enthusiastically mbracd by th community At last th functional community... At

More information

Bayesian Decision Theory

Bayesian Decision Theory Baysian Dcision Thory Baysian Dcision Thory Know probabiity distribution of th catgoris Amost nvr th cas in ra if! Nvrthss usfu sinc othr cass can b rducd to this on aftr som work Do not vn nd training

More information

Addition of angular momentum

Addition of angular momentum Addition of angular momntum April, 07 Oftn w nd to combin diffrnt sourcs of angular momntum to charactriz th total angular momntum of a systm, or to divid th total angular momntum into parts to valuat

More information

Introduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013

Introduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013 18.782 Introduction to Arithmtic Gomtry Fall 2013 Lctur #20 11/14/2013 20.1 Dgr thorm for morphisms of curvs Lt us rstat th thorm givn at th nd of th last lctur, which w will now prov. Thorm 20.1. Lt φ:

More information

SCHUR S THEOREM REU SUMMER 2005

SCHUR S THEOREM REU SUMMER 2005 SCHUR S THEOREM REU SUMMER 2005 1. Combinatorial aroach Prhas th first rsult in th subjct blongs to I. Schur and dats back to 1916. On of his motivation was to study th local vrsion of th famous quation

More information

Introduction to the quantum theory of matter and Schrödinger s equation

Introduction to the quantum theory of matter and Schrödinger s equation Introduction to th quantum thory of mattr and Schrödingr s quation Th quantum thory of mattr assums that mattr has two naturs: a particl natur and a wa natur. Th particl natur is dscribd by classical physics

More information

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018 Propositional Logic Combinatorial Problm Solving (CPS) Albrt Olivras Enric Rodríguz-Carbonll May 17, 2018 Ovrviw of th sssion Dfinition of Propositional Logic Gnral Concpts in Logic Rduction to SAT CNFs

More information

SME 3033 FINITE ELEMENT METHOD. Bending of Prismatic Beams (Initial notes designed by Dr. Nazri Kamsah)

SME 3033 FINITE ELEMENT METHOD. Bending of Prismatic Beams (Initial notes designed by Dr. Nazri Kamsah) Bnding of Prismatic Bams (Initia nots dsignd by Dr. Nazri Kamsah) St I-bams usd in a roof construction. 5- Gnra Loading Conditions For our anaysis, w wi considr thr typs of oading, as iustratd bow. Not:

More information

1 Minimum Cut Problem

1 Minimum Cut Problem CS 6 Lctur 6 Min Cut and argr s Algorithm Scribs: Png Hui How (05), Virginia Dat: May 4, 06 Minimum Cut Problm Today, w introduc th minimum cut problm. This problm has many motivations, on of which coms

More information

Note If the candidate believes that e x = 0 solves to x = 0 or gives an extra solution of x = 0, then withhold the final accuracy mark.

Note If the candidate believes that e x = 0 solves to x = 0 or gives an extra solution of x = 0, then withhold the final accuracy mark. . (a) Eithr y = or ( 0, ) (b) Whn =, y = ( 0 + ) = 0 = 0 ( + ) = 0 ( )( ) = 0 Eithr = (for possibly abov) or = A 3. Not If th candidat blivs that = 0 solvs to = 0 or givs an tra solution of = 0, thn withhold

More information

Differential Equations

Differential Equations UNIT I Diffrntial Equations.0 INTRODUCTION W li in a world of intrrlatd changing ntitis. Th locit of a falling bod changs with distanc, th position of th arth changs with tim, th ara of a circl changs

More information

The van der Waals interaction 1 D. E. Soper 2 University of Oregon 20 April 2012

The van der Waals interaction 1 D. E. Soper 2 University of Oregon 20 April 2012 Th van dr Waals intraction D. E. Sopr 2 Univrsity of Orgon 20 pril 202 Th van dr Waals intraction is discussd in Chaptr 5 of J. J. Sakurai, Modrn Quantum Mchanics. Hr I tak a look at it in a littl mor

More information

CPSC 665 : An Algorithmist s Toolkit Lecture 4 : 21 Jan Linear Programming

CPSC 665 : An Algorithmist s Toolkit Lecture 4 : 21 Jan Linear Programming CPSC 665 : An Algorithmist s Toolkit Lctur 4 : 21 Jan 2015 Lcturr: Sushant Sachdva Linar Programming Scrib: Rasmus Kyng 1. Introduction An optimization problm rquirs us to find th minimum or maximum) of

More information

u 3 = u 3 (x 1, x 2, x 3 )

u 3 = u 3 (x 1, x 2, x 3 ) Lctur 23: Curvilinar Coordinats (RHB 8.0 It is oftn convnint to work with variabls othr than th Cartsian coordinats x i ( = x, y, z. For xampl in Lctur 5 w mt sphrical polar and cylindrical polar coordinats.

More information

dt d Chapter 30: 1-Faraday s Law of induction (induced EMF) Chapter 30: 1-Faraday s Law of induction (induced Electromotive Force)

dt d Chapter 30: 1-Faraday s Law of induction (induced EMF) Chapter 30: 1-Faraday s Law of induction (induced Electromotive Force) Chaptr 3: 1-Faraday s aw of induction (inducd ctromotiv Forc) Variab (incrasing) Constant Variab (dcrasing) whn a magnt is movd nar a wir oop of ara A, currnt fows through that wir without any battris!

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 401 Digital Signal Procssing Prof. Mark Fowlr Dtails of th ot St #19 Rading Assignmnt: Sct. 7.1.2, 7.1.3, & 7.2 of Proakis & Manolakis Dfinition of th So Givn signal data points x[n] for n = 0,, -1

More information

Elements of Statistical Thermodynamics

Elements of Statistical Thermodynamics 24 Elmnts of Statistical Thrmodynamics Statistical thrmodynamics is a branch of knowldg that has its own postulats and tchniqus. W do not attmpt to giv hr vn an introduction to th fild. In this chaptr,

More information

COMPUTER GENERATED HOLOGRAMS Optical Sciences 627 W.J. Dallas (Monday, April 04, 2005, 8:35 AM) PART I: CHAPTER TWO COMB MATH.

COMPUTER GENERATED HOLOGRAMS Optical Sciences 627 W.J. Dallas (Monday, April 04, 2005, 8:35 AM) PART I: CHAPTER TWO COMB MATH. C:\Dallas\0_Courss\03A_OpSci_67\0 Cgh_Book\0_athmaticalPrliminaris\0_0 Combath.doc of 8 COPUTER GENERATED HOLOGRAS Optical Scincs 67 W.J. Dallas (onday, April 04, 005, 8:35 A) PART I: CHAPTER TWO COB ATH

More information

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages:

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages: CS 6353 Compilr Construction, Homwork #1 1. Writ rgular xprssions for th following informally dscribd languags: a. All strings of 0 s and 1 s with th substring 01*1. Answr: (0 1)*01*1(0 1)* b. All strings

More information

Week 3: Connected Subgraphs

Week 3: Connected Subgraphs Wk 3: Connctd Subgraphs Sptmbr 19, 2016 1 Connctd Graphs Path, Distanc: A path from a vrtx x to a vrtx y in a graph G is rfrrd to an xy-path. Lt X, Y V (G). An (X, Y )-path is an xy-path with x X and y

More information

Abstract Interpretation: concrete and abstract semantics

Abstract Interpretation: concrete and abstract semantics Abstract Intrprtation: concrt and abstract smantics Concrt smantics W considr a vry tiny languag that manags arithmtic oprations on intgrs valus. Th (concrt) smantics of th languags cab b dfind by th funzcion

More information

Application of Vague Soft Sets in students evaluation

Application of Vague Soft Sets in students evaluation Availabl onlin at www.plagiarsarchlibrary.com Advancs in Applid Scinc Rsarch, 0, (6):48-43 ISSN: 0976-860 CODEN (USA): AASRFC Application of Vagu Soft Sts in studnts valuation B. Chtia*and P. K. Das Dpartmnt

More information

Combining the typed λ-calculus with. W. Ferreira M. Hennessy A.S.A. Jeffrey UNIVERSITY OF SUSSEX COMPUTER SCIENCE. Report 2/96 May 1996

Combining the typed λ-calculus with. W. Ferreira M. Hennessy A.S.A. Jeffrey UNIVERSITY OF SUSSEX COMPUTER SCIENCE. Report 2/96 May 1996 UNIVESITY OF SUSSEX COMPUTE SCIENCE Combinin th tyd λ-cacuus with CCS W. FEEIA, M. HENNESSY and A.S.A. JEFFEY ABSTACT. W instiat a anua obtaind by tndin th tyd ca-by-au λ cacuus with th communication constructs

More information

SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH.

SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH. SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH. K VASUDEVAN, K. SWATHY AND K. MANIKANDAN 1 Dpartmnt of Mathmatics, Prsidncy Collg, Chnnai-05, India. E-Mail:vasu k dvan@yahoo.com. 2,

More information

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0 unction Spacs Prrquisit: Sction 4.7, Coordinatization n this sction, w apply th tchniqus of Chaptr 4 to vctor spacs whos lmnts ar functions. Th vctor spacs P n and P ar familiar xampls of such spacs. Othr

More information

EXST Regression Techniques Page 1

EXST Regression Techniques Page 1 EXST704 - Rgrssion Tchniqus Pag 1 Masurmnt rrors in X W hav assumd that all variation is in Y. Masurmnt rror in this variabl will not ffct th rsults, as long as thy ar uncorrlatd and unbiasd, sinc thy

More information

ECE602 Exam 1 April 5, You must show ALL of your work for full credit.

ECE602 Exam 1 April 5, You must show ALL of your work for full credit. ECE62 Exam April 5, 27 Nam: Solution Scor: / This xam is closd-book. You must show ALL of your work for full crdit. Plas rad th qustions carfully. Plas chck your answrs carfully. Calculators may NOT b

More information

u x v x dx u x v x v x u x dx d u x v x u x v x dx u x v x dx Integration by Parts Formula

u x v x dx u x v x v x u x dx d u x v x u x v x dx u x v x dx Integration by Parts Formula 7. Intgration by Parts Each drivativ formula givs ris to a corrsponding intgral formula, as w v sn many tims. Th drivativ product rul yilds a vry usful intgration tchniqu calld intgration by parts. Starting

More information

Background: We have discussed the PIB, HO, and the energy of the RR model. In this chapter, the H-atom, and atomic orbitals.

Background: We have discussed the PIB, HO, and the energy of the RR model. In this chapter, the H-atom, and atomic orbitals. Chaptr 7 Th Hydrogn Atom Background: W hav discussd th PIB HO and th nrgy of th RR modl. In this chaptr th H-atom and atomic orbitals. * A singl particl moving undr a cntral forc adoptd from Scott Kirby

More information

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation.

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation. MAT 444 H Barclo Spring 004 Homwork 6 Solutions Sction 6 Lt H b a subgroup of a group G Thn H oprats on G by lft multiplication Dscrib th orbits for this opration Th orbits of G ar th right costs of H

More information

ph People Grade Level: basic Duration: minutes Setting: classroom or field site

ph People Grade Level: basic Duration: minutes Setting: classroom or field site ph Popl Adaptd from: Whr Ar th Frogs? in Projct WET: Curriculum & Activity Guid. Bozman: Th Watrcours and th Council for Environmntal Education, 1995. ph Grad Lvl: basic Duration: 10 15 minuts Stting:

More information

Derangements and Applications

Derangements and Applications 2 3 47 6 23 Journal of Intgr Squncs, Vol. 6 (2003), Articl 03..2 Drangmnts and Applications Mhdi Hassani Dpartmnt of Mathmatics Institut for Advancd Studis in Basic Scincs Zanjan, Iran mhassani@iasbs.ac.ir

More information

Recall that by Theorems 10.3 and 10.4 together provide us the estimate o(n2 ), S(q) q 9, q=1

Recall that by Theorems 10.3 and 10.4 together provide us the estimate o(n2 ), S(q) q 9, q=1 Chaptr 11 Th singular sris Rcall that by Thorms 10 and 104 togthr provid us th stimat 9 4 n 2 111 Rn = SnΓ 2 + on2, whr th singular sris Sn was dfind in Chaptr 10 as Sn = q=1 Sq q 9, with Sq = 1 a q gcda,q=1

More information

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems Daling with quantitati data and problm soling lif is a story problm! A larg portion of scinc inols quantitati data that has both alu and units. Units can sa your butt! Nd handl on mtric prfixs Dimnsional

More information

LINEAR DELAY DIFFERENTIAL EQUATION WITH A POSITIVE AND A NEGATIVE TERM

LINEAR DELAY DIFFERENTIAL EQUATION WITH A POSITIVE AND A NEGATIVE TERM Elctronic Journal of Diffrntial Equations, Vol. 2003(2003), No. 92, pp. 1 6. ISSN: 1072-6691. URL: http://jd.math.swt.du or http://jd.math.unt.du ftp jd.math.swt.du (login: ftp) LINEAR DELAY DIFFERENTIAL

More information

That is, we start with a general matrix: And end with a simpler matrix:

That is, we start with a general matrix: And end with a simpler matrix: DIAGON ALIZATION OF THE STR ESS TEN SOR INTRO DUCTIO N By th us of Cauchy s thorm w ar abl to rduc th numbr of strss componnts in th strss tnsor to only nin valus. An additional simplification of th strss

More information

Category Theory Approach to Fusion of Wavelet-Based Features

Category Theory Approach to Fusion of Wavelet-Based Features Catgory Thory Approach to Fusion of Wavlt-Basd Faturs Scott A. DLoach Air Forc Institut of Tchnology Dpartmnt of Elctrical and Computr Enginring Wright-Pattrson AFB, Ohio 45433 Scott.DLoach@afit.af.mil

More information

Based on Unication-Driven. Leftmost Outermost Narrowing. Heinz Fabender and Heiko Vogler. Abt. Theoretische Informatik, Universitat Ulm

Based on Unication-Driven. Leftmost Outermost Narrowing. Heinz Fabender and Heiko Vogler. Abt. Theoretische Informatik, Universitat Ulm Univrsa Unication gorithm Basd on Unication-Drivn ftmost Outrmost Narrowing Hinz Fabndr and Hiko Vogr bt. Thortisch Informatik, Univrsitat Um Obrr Essbrg, W-7900 Um, Grmany -mai: ffassbnd,vogrg@informatik.uni-um.d

More information

2.3 Matrix Formulation

2.3 Matrix Formulation 23 Matrix Formulation 43 A mor complicatd xampl ariss for a nonlinar systm of diffrntial quations Considr th following xampl Exampl 23 x y + x( x 2 y 2 y x + y( x 2 y 2 (233 Transforming to polar coordinats,

More information

Square of Hamilton cycle in a random graph

Square of Hamilton cycle in a random graph Squar of Hamilton cycl in a random graph Andrzj Dudk Alan Friz Jun 28, 2016 Abstract W show that p = n is a sharp thrshold for th random graph G n,p to contain th squar of a Hamilton cycl. This improvs

More information

surface of a dielectric-metal interface. It is commonly used today for discovering the ways in

surface of a dielectric-metal interface. It is commonly used today for discovering the ways in Surfac plasmon rsonanc is snsitiv mchanism for obsrving slight changs nar th surfac of a dilctric-mtal intrfac. It is commonl usd toda for discovring th was in which protins intract with thir nvironmnt,

More information

Differential Equations

Differential Equations Prfac Hr ar m onlin nots for m diffrntial quations cours that I tach hr at Lamar Univrsit. Dspit th fact that ths ar m class nots, th should b accssibl to anon wanting to larn how to solv diffrntial quations

More information

22/ Breakdown of the Born-Oppenheimer approximation. Selection rules for rotational-vibrational transitions. P, R branches.

22/ Breakdown of the Born-Oppenheimer approximation. Selection rules for rotational-vibrational transitions. P, R branches. Subjct Chmistry Papr No and Titl Modul No and Titl Modul Tag 8/ Physical Spctroscopy / Brakdown of th Born-Oppnhimr approximation. Slction ruls for rotational-vibrational transitions. P, R branchs. CHE_P8_M

More information

Estimation of apparent fraction defective: A mathematical approach

Estimation of apparent fraction defective: A mathematical approach Availabl onlin at www.plagiarsarchlibrary.com Plagia Rsarch Library Advancs in Applid Scinc Rsarch, 011, (): 84-89 ISSN: 0976-8610 CODEN (USA): AASRFC Estimation of apparnt fraction dfctiv: A mathmatical

More information

10. The Discrete-Time Fourier Transform (DTFT)

10. The Discrete-Time Fourier Transform (DTFT) Th Discrt-Tim Fourir Transform (DTFT Dfinition of th discrt-tim Fourir transform Th Fourir rprsntation of signals plays an important rol in both continuous and discrt signal procssing In this sction w

More information

Deift/Zhou Steepest descent, Part I

Deift/Zhou Steepest descent, Part I Lctur 9 Dift/Zhou Stpst dscnt, Part I W now focus on th cas of orthogonal polynomials for th wight w(x) = NV (x), V (x) = t x2 2 + x4 4. Sinc th wight dpnds on th paramtr N N w will writ π n,n, a n,n,

More information

General Notes About 2007 AP Physics Scoring Guidelines

General Notes About 2007 AP Physics Scoring Guidelines AP PHYSICS C: ELECTRICITY AND MAGNETISM 2007 SCORING GUIDELINES Gnral Nots About 2007 AP Physics Scoring Guidlins 1. Th solutions contain th most common mthod of solving th fr-rspons qustions and th allocation

More information

Title: Vibrational structure of electronic transition

Title: Vibrational structure of electronic transition Titl: Vibrational structur of lctronic transition Pag- Th band spctrum sn in th Ultra-Violt (UV) and visibl (VIS) rgions of th lctromagntic spctrum can not intrprtd as vibrational and rotational spctrum

More information

ARIMA Methods of Detecting Outliers in Time Series Periodic Processes

ARIMA Methods of Detecting Outliers in Time Series Periodic Processes Articl Intrnational Journal of Modrn Mathmatical Scincs 014 11(1): 40-48 Intrnational Journal of Modrn Mathmatical Scincs Journal hompag:www.modrnscintificprss.com/journals/ijmms.aspx ISSN:166-86X Florida

More information

Finding low cost TSP and 2-matching solutions using certain half integer subtour vertices

Finding low cost TSP and 2-matching solutions using certain half integer subtour vertices Finding low cost TSP and 2-matching solutions using crtain half intgr subtour vrtics Sylvia Boyd and Robrt Carr Novmbr 996 Introduction Givn th complt graph K n = (V, E) on n nods with dg costs c R E,

More information

COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM

COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM Jim Brown Dpartmnt of Mathmatical Scincs, Clmson Univrsity, Clmson, SC 9634, USA jimlb@g.clmson.du Robrt Cass Dpartmnt of Mathmatics,

More information

What are those βs anyway? Understanding Design Matrix & Odds ratios

What are those βs anyway? Understanding Design Matrix & Odds ratios Ral paramtr stimat WILD 750 - Wildlif Population Analysis of 6 What ar thos βs anyway? Undrsting Dsign Matrix & Odds ratios Rfrncs Hosmr D.W.. Lmshow. 000. Applid logistic rgrssion. John Wily & ons Inc.

More information

Observer Bias and Reliability By Xunchi Pu

Observer Bias and Reliability By Xunchi Pu Obsrvr Bias and Rliability By Xunchi Pu Introduction Clarly all masurmnts or obsrvations nd to b mad as accuratly as possibl and invstigators nd to pay carful attntion to chcking th rliability of thir

More information

Some Results on E - Cordial Graphs

Some Results on E - Cordial Graphs Intrnational Journal of Mathmatics Trnds and Tchnology Volum 7 Numbr 2 March 24 Som Rsults on E - Cordial Graphs S.Vnkatsh, Jamal Salah 2, G.Sthuraman 3 Corrsponding author, Dpartmnt of Basic Scincs, Collg

More information

Search sequence databases 3 10/25/2016

Search sequence databases 3 10/25/2016 Sarch squnc databass 3 10/25/2016 Etrm valu distribution Ø Suppos X is a random variabl with probability dnsity function p(, w sampl a larg numbr S of indpndnt valus of X from this distribution for an

More information

The pn junction: 2 Current vs Voltage (IV) characteristics

The pn junction: 2 Current vs Voltage (IV) characteristics Th pn junction: Currnt vs Voltag (V) charactristics Considr a pn junction in quilibrium with no applid xtrnal voltag: o th V E F E F V p-typ Dpltion rgion n-typ Elctron movmnt across th junction: 1. n

More information

Separating principles below Ramsey s Theorem for Pairs

Separating principles below Ramsey s Theorem for Pairs Sparating principls blow Ramsy s Thorm for Pairs Manul Lrman, Rd Solomon, Hnry Towsnr Fbruary 4, 2013 1 Introduction In rcnt yars, thr has bn a substantial amount of work in rvrs mathmatics concrning natural

More information

u r du = ur+1 r + 1 du = ln u + C u sin u du = cos u + C cos u du = sin u + C sec u tan u du = sec u + C e u du = e u + C

u r du = ur+1 r + 1 du = ln u + C u sin u du = cos u + C cos u du = sin u + C sec u tan u du = sec u + C e u du = e u + C Tchniqus of Intgration c Donald Kridr and Dwight Lahr In this sction w ar going to introduc th first approachs to valuating an indfinit intgral whos intgrand dos not hav an immdiat antidrivativ. W bgin

More information

6.1 Integration by Parts and Present Value. Copyright Cengage Learning. All rights reserved.

6.1 Integration by Parts and Present Value. Copyright Cengage Learning. All rights reserved. 6.1 Intgration by Parts and Prsnt Valu Copyright Cngag Larning. All rights rsrvd. Warm-Up: Find f () 1. F() = ln(+1). F() = 3 3. F() =. F() = ln ( 1) 5. F() = 6. F() = - Objctivs, Day #1 Studnts will b

More information

MATH 319, WEEK 15: The Fundamental Matrix, Non-Homogeneous Systems of Differential Equations

MATH 319, WEEK 15: The Fundamental Matrix, Non-Homogeneous Systems of Differential Equations MATH 39, WEEK 5: Th Fundamntal Matrix, Non-Homognous Systms of Diffrntial Equations Fundamntal Matrics Considr th problm of dtrmining th particular solution for an nsmbl of initial conditions For instanc,

More information

4. (5a + b) 7 & x 1 = (3x 1)log 10 4 = log (M1) [4] d = 3 [4] T 2 = 5 + = 16 or or 16.

4. (5a + b) 7 & x 1 = (3x 1)log 10 4 = log (M1) [4] d = 3 [4] T 2 = 5 + = 16 or or 16. . 7 7 7... 7 7 (n )0 7 (M) 0(n ) 00 n (A) S ((7) 0(0)) (M) (7 00) 8897 (A). (5a b) 7 7... (5a)... (M) 7 5 5 (a b ) 5 5 a b (M)(A) So th cofficint is 75 (A) (C) [] S (7 7) (M) () 8897 (A) (C) [] 5. x.55

More information

Lecture 37 (Schrödinger Equation) Physics Spring 2018 Douglas Fields

Lecture 37 (Schrödinger Equation) Physics Spring 2018 Douglas Fields Lctur 37 (Schrödingr Equation) Physics 6-01 Spring 018 Douglas Filds Rducd Mass OK, so th Bohr modl of th atom givs nrgy lvls: E n 1 k m n 4 But, this has on problm it was dvlopd assuming th acclration

More information

Random Access Techniques: ALOHA (cont.)

Random Access Techniques: ALOHA (cont.) Random Accss Tchniqus: ALOHA (cont.) 1 Exampl [ Aloha avoiding collision ] A pur ALOHA ntwork transmits a 200-bit fram on a shard channl Of 200 kbps at tim. What is th rquirmnt to mak this fram collision

More information

GEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES. Eduard N. Klenov* Rostov-on-Don, Russia

GEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES. Eduard N. Klenov* Rostov-on-Don, Russia GEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES Eduard N. Klnov* Rostov-on-Don, Russia Th articl considrs phnomnal gomtry figurs bing th carrirs of valu spctra for th pairs of th rmaining additiv

More information

Einstein Equations for Tetrad Fields

Einstein Equations for Tetrad Fields Apiron, Vol 13, No, Octobr 006 6 Einstin Equations for Ttrad Filds Ali Rıza ŞAHİN, R T L Istanbul (Turky) Evry mtric tnsor can b xprssd by th innr product of ttrad filds W prov that Einstin quations for

More information

On the Hamiltonian of a Multi-Electron Atom

On the Hamiltonian of a Multi-Electron Atom On th Hamiltonian of a Multi-Elctron Atom Austn Gronr Drxl Univrsity Philadlphia, PA Octobr 29, 2010 1 Introduction In this papr, w will xhibit th procss of achiving th Hamiltonian for an lctron gas. Making

More information

PHA 5127 Answers Homework 2 Fall 2001

PHA 5127 Answers Homework 2 Fall 2001 PH 5127 nswrs Homwork 2 Fall 2001 OK, bfor you rad th answrs, many of you spnt a lot of tim on this homwork. Plas, nxt tim if you hav qustions plas com talk/ask us. Thr is no nd to suffr (wll a littl suffring

More information

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim. MTH rviw part b Lucian Mitroiu Th LOG and EXP functions Th ponntial function p : R, dfind as Proprtis: lim > lim p Eponntial function Y 8 6 - -8-6 - - X Th natural logarithm function ln in US- log: function

More information

Indexed Search Tree (Trie)

Indexed Search Tree (Trie) Indxd Sarch Tr (Tri) Fawzi Emad Chau-Wn Tsng Dpartmnt of Computr Scinc Univrsity of Maryand, Cog Park Indxd Sarch Tr (Tri) Spcia cas of tr Appicab whn Ky C can b dcomposd into a squnc of subkys C 1, C

More information

Properties of Phase Space Wavefunctions and Eigenvalue Equation of Momentum Dispersion Operator

Properties of Phase Space Wavefunctions and Eigenvalue Equation of Momentum Dispersion Operator Proprtis of Phas Spac Wavfunctions and Eignvalu Equation of Momntum Disprsion Oprator Ravo Tokiniaina Ranaivoson 1, Raolina Andriambololona 2, Hanitriarivo Rakotoson 3 raolinasp@yahoo.fr 1 ;jacqulinraolina@hotmail.com

More information

ME 321 Kinematics and Dynamics of Machines S. Lambert Winter 2002

ME 321 Kinematics and Dynamics of Machines S. Lambert Winter 2002 3.4 Forc Analysis of Linkas An undrstandin of forc analysis of linkas is rquird to: Dtrmin th raction forcs on pins, tc. as a consqunc of a spcifid motion (don t undrstimat th sinificanc of dynamic or

More information

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES DONALD M. DAVIS Abstract. If p is a prim (implicit in notation and n a positiv intgr, lt ν(n dnot th xponnt of p in n, and U(n n/p ν(n, th unit

More information

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES. 1. Statement of results

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES. 1. Statement of results BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES DONALD M. DAVIS Abstract. If p is a prim and n a positiv intgr, lt ν p (n dnot th xponnt of p in n, and u p (n n/p νp(n th unit part of n. If α

More information

Alpha and beta decay equation practice

Alpha and beta decay equation practice Alpha and bta dcay quation practic Introduction Alpha and bta particls may b rprsntd in quations in svral diffrnt ways. Diffrnt xam boards hav thir own prfrnc. For xampl: Alpha Bta α β alpha bta Dspit

More information

Brief Introduction to Statistical Mechanics

Brief Introduction to Statistical Mechanics Brif Introduction to Statistical Mchanics. Purpos: Ths nots ar intndd to provid a vry quick introduction to Statistical Mchanics. Th fild is of cours far mor vast than could b containd in ths fw pags.

More information

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems Roadmap XML Indxing CPS 296.1 Topics in Databas Systms Indx fabric Coopr t al. A Fast Indx for Smistructurd Data. VLDB, 2001 DataGuid Goldman and Widom. DataGuids: Enabling Qury Formulation and Optimization

More information

Mutually Independent Hamiltonian Cycles of Pancake Networks

Mutually Independent Hamiltonian Cycles of Pancake Networks Mutually Indpndnt Hamiltonian Cycls of Pancak Ntworks Chng-Kuan Lin Dpartmnt of Mathmatics National Cntral Univrsity, Chung-Li, Taiwan 00, R O C discipl@ms0urlcomtw Hua-Min Huang Dpartmnt of Mathmatics

More information

Probability Translation Guide

Probability Translation Guide Quick Guid to Translation for th inbuilt SWARM Calculator If you s information looking lik this: Us this statmnt or any variant* (not th backticks) And this is what you ll s whn you prss Calculat Th chancs

More information

DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P

DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P Tsz Ho Chan Dartmnt of Mathmatics, Cas Wstrn Rsrv Univrsity, Clvland, OH 4406, USA txc50@cwru.du Rcivd: /9/03, Rvisd: /9/04,

More information

Zero Point Energy: Thermodynamic Equilibrium and Planck Radiation Law

Zero Point Energy: Thermodynamic Equilibrium and Planck Radiation Law Gaug Institut Journa Vo. No 4, Novmbr 005, Zro Point Enrgy: Thrmodynamic Equiibrium and Panck Radiation Law Novmbr, 005 vick@adnc.com Abstract: In a rcnt papr, w provd that Panck s radiation aw with zro

More information

Optics and Non-Linear Optics I Non-linear Optics Tutorial Sheet November 2007

Optics and Non-Linear Optics I Non-linear Optics Tutorial Sheet November 2007 Optics and Non-Linar Optics I - 007 Non-linar Optics Tutorial Sht Novmbr 007 1. An altrnativ xponntial notion somtims usd in NLO is to writ Acos (") # 1 ( Ai" + A * $i" ). By using this notation and substituting

More information

2 AN OVERVIEW OF THE TENSOR PRODUCT

2 AN OVERVIEW OF THE TENSOR PRODUCT 98 IEEE TRASACTIS PARALLEL AD DISTRIBUTED SYSTEMS, VL 10, 3, MARCH 1999 1 Th choic of data distribution has a larg influnc on th prformanc of th synthsizd programs, ur simpl algorithm for slcting th appropriat

More information

First derivative analysis

First derivative analysis Robrto s Nots on Dirntial Calculus Chaptr 8: Graphical analysis Sction First drivativ analysis What you nd to know alrady: How to us drivativs to idntiy th critical valus o a unction and its trm points

More information

Symmetric centrosymmetric matrix vector multiplication

Symmetric centrosymmetric matrix vector multiplication Linar Algbra and its Applications 320 (2000) 193 198 www.lsvir.com/locat/laa Symmtric cntrosymmtric matrix vctor multiplication A. Mlman 1 Dpartmnt of Mathmatics, Univrsity of San Francisco, San Francisco,

More information