HAL Id: hal-00148816
https://hal.archives-ouvertes.fr/hal-00148816
Submitted on 14 Jun 2007
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of
sci-entific research documents, whether they are
pub-lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.
Interpreting a Finitary Pi-Calculus in Differential
Interaction Nets
Thomas Ehrhard, Olivier Laurent
To cite this version:
Thomas Ehrhard, Olivier Laurent. Interpreting a Finitary Pi-Calculus in Differential Interaction Nets.
CONCUR 2007, Sep 2007, Lisboa, Portugal. pp.333-348, �10.1007/978-3-540-74407-8�. �hal-00148816�
Intera tion Nets
ThomasEhrhardandOlivierLaurent
Preuves,Programmes&Systèmes UniversitéDenisDiderotandCNRS
Abstra t. Weproposeandstudyatranslationofapi- al uluswithout sumsnorrepli ation/re ursionintoanuntypedandessentially promotion-freeversionofdierentialintera tionnets.Wedeneatransitionsystem of labeled pro esses and a transition system of labeled dierential in-tera tionnets. Weprovethat ourtranslation from pro essesto netsis a bisimulation between these two transition systems. This shows that dierential intera tion nets are su iently expressive for representing on urren yandmobility,asformalizedbythepi- al ulus.
Introdu tion
Linear Logi proofs[Gir87℄ admit aproof net representation whi h has avery asyn hronousandlo alredu tionpro edure,suggestingstrong onne tionswith parallel omputation. Thisimpressionhasbeenenfor edbytheintrodu tionof intera tionnets andintera tion ombinators byLafontin [Laf95℄.
But the attempts at relating on urren y with linear logi (e.g. [EW97℄, [AM99℄, [Mel06℄, [Bef05℄, [CF06℄ based on[FM05℄...)missed a ru ial feature oftrue on urren y,su hasmodelledbypro ess al ulilikeMilner's
π
- al ulus [Mil93,SW01℄: itsintrinsi non-determinism.Indeed, allknownlogi alsystems had either an essentially deterministi redu tion pro edure this is the ase of intuitionisti and linearlogi , and of lassi al systems su h asGirard's LC orParigot'sλµ
or anex essivelynon-determiniti one,asGentzen's lassi al sequent al ulusLK,whi h equatesallproofsofthesameformula.However, many denotational models of the lambda- al ulus and of linear
logi admit some form of non-determinisms (e.g. [Plo76,Gir88℄), showing that a non-deterministi proof al ulus is not ne essarily trivial. The rst author introdu ed su h models, based onve torspa es (see e.g.[Ehr05℄), whi h have a ni e proof-theoreti ounterpart, orresponding to a simple extension of the rulesthatlinearlogi asso iateswiththeexponentials.
Inthisdierentialsetting,theweakeningrulehasamirrorimagerule alled oweakening,andsimilarlyfordereli tionandfor ontra tion,andtheredu tion
rules have the orresponding mirror symmetry. The orresponding formalism
of dierential intera tion nets hasbeenintrodu ed in ajointworkby therst
authorandRegnier[ER06℄
1 . 1
translationofaversionofthe
π
- al ulusinproof-netsforaversionoflinearlogi extended with the o ontra tionrule (as wenow understand). The basi idea onsistsin interpretingtheparallel omposition asa utbetweena ontra tion link (to whi h several outputs are onne ted, throughdereli tion links) and a o ontra tion link, to whi h several promoted re eivers are onne ted. Being promoted,thesere eiversarerepli able,inthesenseoftheπ
- al ulus.Theother fundamental ideaof this translation onsists in using linearlogi polaritiesfor makingthedieren ebetweenoutputs (negative) andinputs(positive),and of imposing astri talternationbetweenthesetwopolarities.Thisallowsto re ast in apolarizedlinearlogi settingatypingsystemfortheπ
- al uluspreviously introdu edbyBerger,HondaandYoshidain[BHY03℄.Thistranslationhastwo features whi h an be onsidered as slight defe ts: it a epts only repli able re eiversand is not really modular (the parallel omposition of twopro esses annotbedes ribedasa ombinationof the orrespondingnets).Prin ipleofthetranslation. Thepurposeofthepresentpaperisto ontinue this line of ideas, using moresystemati allythe new stru tures introdu ed by dierentialintera tionnets
2 .
!
?
?
?
!
!
Fig.1. Communi ation areaThe rst key de ision we made, guided by the
stru tureofthetypi al o ontra tion/ ontra tion ut intendedto interpretparallel omposition,wasof as-so iating with ea h free name of a pro ess not one, but two free ports in the orresponding dierential intera tion net.Oneofthese ports willhavea
!
-type (positivetype)and willhaveto be onsideredasthe inputport ofthe orrespondingnameforthispro ess, and theother onewill havea?
-type(negativetype) andwillbe onsideredasanoutput port.Wedis overedstru tures whi h allowto ombine thesepairsofwires forinterpretingparallel omposi-tion and alled them ommuni ation areas: they are
obtainedby ombiningin a ompletelysymmetri way o ontra tionand
on-tra tion ells.Thereare ommuni ationareasofanyarity (numberofpairsof wires onne tedtoit).The ommuni ationareaofarity
3
anbepi turedasin Figure 1,where o ontra tion ellsarepi tured as!
-labeledtriangles and on-tra tion ellsas?
-labeledtriangles. Theports orrespondingto thesamepairs aretheprin ipalportsofantipodi ells.and thisidenti ation whi hresultsfrom non-determinismdoesnotextendto themultipli ative onne tives:
⊗
and are distin t.2
One should mention here that translations of the
π
- al ulus into nets of various kinds,subje t tolo al redu tion relations, have beenprovidedby various authors ( f. the workof Laneve, Parrow and Vi toron solo diagrams [LPV01 ℄, of Beara and Maurel [BM05℄,ofMilner onbigraphs [JM04℄,ofMazza[Maz05℄onmultiport intera tion nets et .).But thesesettings haveno lear logi al grounds norsimplesive typing system (introdu ed by Danos and Regnier in [Reg92℄ and whi h orrespondstotheuntypedlambda- al ulus)foravoidingtheappearan eofnon redu ible ongurations.Thesenetsarenitaryin thesensethat theyuseonly a weak form of promotion. In this setting, we dene a toolbox, a olle tion of nets that we shall ombine for interpreting pro esses, and a few asso iated redu tions,derivedfromthebasi redu tionrulesofdierentialintera tionnets. Weorganizeredu tionrulesofnetsasalabeledtransitionsystem,whose ver-ti esarenets,andwherethetransitions orrespondto dereli tion/ odereli tion redu tion.Thenwedeneapro essalgebrawhi hisapolyadi
π
- al ulus, with-outrepli ationand withoutsums.Wespe ifytheoperationalsemanti sof thisal ulus by means of an abstra t ma hine inspired by the ma hine presented
in [AC98, Chapter 16℄. We dene a transition system whose verti es are the
states ofthis ma hine,andtransitions orrespondto input/output redu tions. Lastwedeneatranslationrelationfromma hinestatestonetsandshowthat thistranslationrelationisabisimulationbetweenthetwotransitionsystems.
1 Dierential intera tion nets
Intera tion netshavebeen introdu ed by Lafont[Laf95℄ asageneralization of linearlogi proofnets.A signature ofintera tion netsis aset ofsymbols,ea h ofthembeinggivenwithanarityandatypingrule.Anetismadeof ells.Ina net,ea h ell
γ
bearsexa tlyonesymbol,andhasthereforeanarityn
; the ellγ
must haven
auxiliary ports (numbered from1
ton
) and oneprin ipal port (numbered0
).Anet analsohavefreeports.Spe ifyingthenet onsistslastin givingitswiring,whi hisapartitionof itsportsin2
-elementssets(the wires). Typingthenet meansasso iatingaformula ofsomelinearlogi alsystemwith ea hofits orientedwiresin su hawaythat,when reversingthe orientationof the wire, the formula be turned to its orthogonal. Of ourse, the typing rule atta hedtoea h ellofthenetmustalsoberespe tedbythetyping.Seealso[ER06℄foranintrodu tiontodierentialintera tionnets.
1.1 Presentationof the ells
Our netswill be typed usingatype systemwhi h orrespondsto the untyped lambda- al ulus.This system is based on a single typesymbol
o
(the type of outputs),subje ttothefollowingre ursiveequationo
= ?o
⊥
o
.Weset
ι
= o
⊥
, sothat
ι
= !o ⊗ ι
ando
= ?ι
o
.Inthepresentsetting,thereareelevensymbols:par(arity
2
),bottom(arity0
), tensor (arity2
), one (arity0
), dereli tion (arity1
), weakening (arity0
), ontra tion(arity2
), odereli tion(arity1
), oweakening(arity0
), o ontra tion (arity2
)and losedpromotion(arity0
).Wepresentnowthevarious ellsymbols, withtheirtypingrules,in api torialway.Theprin ipalportofa ellislo ated at one of the angles of the triangle representing the ell, the other ports are lo ated on the opposit edge. We put often a bla k dot to lo ate the auxiliary portnumber1
.versionsbottom andone areasfollows:
•
o
o
?ι
•
!o
⊗
ι
ι
⊥
o
1
ι
1.1.2 Exponential ells. Theyaretyped a ordingto astri tlypolarized
dis ipline.Herearerstthewhynot ells,whi hare alleddereli tion,weakening and ontra tion:
?
ι
?ι
?
?ι
?
?ι
?ι
?ι
andthenthebang ells, alled odereli tion, oweakening and o ontra tion:
!
o
!o
!
!o
!
!o
!o
!o
1.1.3 Closed promotion ells and the denition of nets. Thenotion
of simple net is then dened indu tively, together with the notion of losed promotion ell.
Given a (non ne essarily simple) net
s
with only one free porto
s
we introdu ea ells
!
!o
.Asimplenetisatypedintera tionnet,inthesignaturewehavejustdened. A net is a nite formal sum of simple nets having all the same interfa e. Rememberthattheinterfa eofasimplenet
s
isthesetofitsfreeports,together with themappingasso iatingto ea hfreeport thetypeoftheorientedwireofs
whoseendingpointisthe orrespondingport.Let
L
bea ountablesetoflabels ontainingadistinguishedelementτ
(tobe understood astheabsen eof label).Alabeledsimple net isasimplenetwhere all dereli tion and odereli tion ellsare equipped with labels belonging toL
. Werequiremoreoverthat,iftwolabelso urringinalabelednetareequal,they areequaltoτ
.Allthenetswe onsiderinthispaperarelabeled.Inourpi tures, thelabelsof dereli tionand odereli tion ellswill beindi ated,unless it isτ
, in whi h asethe( o)dereli tion ellwillbedrawnwithoutanylabel.2 Redu tion rules
Wedenote by
∆
the olle tionof allsimplenetsand byN
h∆i
the olle tionof allnets(nitesumsofsimplenetswiththesameinterfa e).Aredu tionrule is asubset
R
of∆
× Nh∆i
onsistingofpairs(s, s
′
)
where
s
is made of two ells onne tedby their prin ipal ports ands
′
hasthe same
interfa eas
s
.Thisset anbeniteorinnite.Su harelationiseasilyextended to arbitrary simple nets(s
R t
if there is(s
0
, u
1
+ · · · + u
n
) ∈ R
wheres
0
is a subnet ofs
, ea hu
i
is simpleandt
= t
1
+ · · · + t
n
wheret
i
is obtainedby repla ings
0
byu
i
ins
).Thisrelationisextended tonets(sumsofsimplenets):s
1
+ · · · + s
n
(where ea hs
i
is simple) is relatedtos
′
by this extension
R
Σ
if
s
′
= s
′
1
+ · · · + s
′
n
where,forea hi
,s
i
R s
′
i
ors
i
= s
′
i
.Last,R
∗
isthetransitive losureofR
Σ
.2.1.1 Multipli ativeredu tion. Thersttworules on erntheintera tion oftwomultipli ative ellsofthesamearity.
•
•
⊗
?ι
?ι
o
o
;
m
o
o
?ι
⊥
o
;
m
ε
1
where
ε
standsfor theemptysimplenet (not to be onfused withthe net0 ∈
N
h∆i
, theempty sum,whi h isnot asimplenet). Thenext tworules on ern theintera tionbetweenabinaryandanullarymultipli ative ell.1
o
;
m
?ι
o
?ι
o
1
!
;
m
!o
ι
⊗
⊥
!o
ι
?
⊥
Soheretheredu tionrule(denoted as
;
m
)hasfourelements.2.1.2 Communi ation redu tion. Let
R
⊆ L
. Wehavethe followingre-du tionsif
l, m
∈ R
.?
!
ι
?ι
ι
;
c,R
ι
l
m
Sothe set
;
c,R
isin bije tive orresponden e withthe setof pairs(l, m)
withl, m
∈ R
andl
= m ⇒ l = m = τ
.2.1.3 Non-deterministi redu tion. Let
R
⊆ L
. We have the followingredu tionsif
l
∈ R
.?
?
?
?
ι
?ι
?ι
?ι
!
?
+
l
l
;
nd,R
?ι
l
!
!
!
!
!
?
o
!o
!o
!o
+
l
l
;
nd,R
l
?
!
ι
?ι
l
;
nd,R
0
!
?
o
!o
l
;
nd,R
0
2.1.4 Stru turalredu tion.?ι
?ι
?ι
?
!
!
!
;
s
!
!o
!o
!o
?
?
?
;
s
?ι
?
;
s
ε
s
!
?
?ι
?ι
?ι
;
s
s
!
s
!
s
!
?ι
?
!
;
s
ε
?
!
?ι
?ι
?ι
?ι
?ι
;
s
!
!
?
?
?
ι
?ι
s
;
b
s
!
l
Observe that the redu tionrules are ompatible with the identi ation of the oweakening ellwith apromotion ell ontainingthe
0
net.Observealso that the only rules whi h do notadmit asymmetri rule are those whi h involve apromotion ell. Indeed,promotionis theonly asymmetri ruleof dierential linearlogi .One an he kthatwehaveprovidedredu tionrulesforallpossibleredexes, ompatible withourtypingsystem:foranysimplenet
s
madeoftwo ells on-ne tedthroughtheirprin ipalports,thereisaredu tionrulewhoseleftmember iss
.This ruleisunique, uptothe hoi eofaset oflabels,but this hoi ehas noinuen eontherightmemberoftherule.2.2 Conuen e
Theorem1. Let
R, R
′
⊆ L
. Let
R ⊆ ∆ × Nh∆i
be the union of some of the redu tionrelations;
c,R
,;
nd,R
′
,;
m
,;
s
and;
b
.TherelationR
∗
is onuent on
N
h∆i
.The proof is essentially trivial sin ethe rewriting relation has no riti al pair (see [ER06℄). Given
R
⊆ L
, we onsider in parti ular the followingredu tion:;
R
= ;
m
∪;
c,{τ }
∪;
s
∪;
b
∪;
nd,R
.Weset;
d
= ;
∅
(dfordeterministi ) anddenoteby∼
d
thesymmetri and transitive losureofthisrelation.Someoftheredu tionruleswehavedened dependonasetoflabels.This dependen e is learly monotone in the sense that the relation be omes larger whenthesetoflabelsin reases.
2.3 A transition systemofsimplenets
2.3.1
{l, m}
-neutrality. Letl
andm
bedistin telementsofL \ {τ }
.We all(l, m)
- ommuni ation redex a ommuni ation redex whose ( o)dereli tion ells arelabeledbyl
andm
.Wesaythatasimplenets
is{l, m}
-neutral if,whenevers ;
∗
{l,m}
s
′
,noneofthesimplesummandsofs
′
ontainsan
(l, m)
- ommuni ation redex.Lemma1. Let
s
beasimplenet.Ifs ;
∗
{l,m}
s
′
whereallthesimplesummands ofs
′
are
{l, m}
-neutral,thens
isalso{l, m}
-neutral.2.3.2 The transition system. We dene a labeled transition system
D
L
whose obje ts are simplenets, and transitions are labeled by pairs of distin t elementsof
L \ {τ }
.Lets
andt
besimplenets,wehaves
lm
−→ t
ifthefollowingholds:
s ;
∗
{l,m}
s
1
+ s
2
+ · · · + s
n
wheres
1
is a simple net whi h ontains an(l, m)
- ommuni ationredex(withdereli tionlabeledbym
and odereli tion labeledbyl
)andbe omest
whenoneredu esthisredex,andea hs
i
(fori >
1
) is{l, m}
-neutral.3.1 Compound ells
3.1.1 Generalized ontra tion and o ontra tion. A generalized
on-tra tion ell or ontra tion tree is asimplenet
γ
(withoneprin ipal port and anitenumberofauxiliaryports)whi hiseither awireoraweakening ellor a ontra tion ellwhose auxiliaryports are onne tedto the prin ipal port of other ontra tiontrees,whose auxiliaryports be ometheauxiliaryports ofγ
. Generalized o ontra tion ells( o ontra tiontrees)aredeneddually.Weusethesamegraphi alnotationsforgeneralized( o) ontra tion ellsas for ordinary ( o) ontra tion ells, with a
∗
in supers ript to the!
or?
symbolstoavoid onfusions.Observethatthere areinnitelymanygeneralized ( o) ontra tion ellsofanygivenarity.3.1.2 Thedereli tion-tensorandthe odereli tion-par ells. Let
n
beanon-negativeinteger.We dene an
n
-ary ellasfollows.It will be de orated bythelabelofitsdereli tion ell(if dierentfromτ
).?⊗
!o
!o
?ι
⊗
⊗
⊗
1
?
!o
!o
!o
ι
?ι
•
•
•
•
=
. . .l
l
Thenumberoftensor ellsinthis ompound ellisequalto
n
.Onedenesduallythe
!
ompound ell.3.1.3 The prex ells. Now we andene the ompound ellswhi h will
playthemain roleintheinterpretationofprexesofthe
π
- al ulus.Thanksto theabovedened ells,alltheorientedwiresofthenetsweshalldenewillbear type?ι
or!o
. Therefore we omit types and drawall wires with an orientation orrespondingtothe?ι
type.The
n
-ary input ell andthen
-ary output ell aredenedas!
?⊗
?⊗
!
•
•
. . . . . . . . .=
l
l
?
!
!
?⊗
•
•
. . . . . . . . .=
l
l
with
n
pairsofauxiliaryports.Prex ells are labeled by thelabel arriedby their outermost dereli tion-tensoror odereli tion-par ompound ell,ifdierentfrom
τ
,theother odereli tion-parordereli tion-tensor ompound ellsbeingunlabeled(thatis,labeledbyτ
).3.1.4 Transistorsandboxedidentity. Inordertoimplementthe
sequen-tiality orrespondingtosequen esofprexesinthe
π
- al ulus,weshallusethe unaryoutputprex elldenedaboveasakindoftransistor,thatis,asakindThisideaisstronglyinspiredbythetranslationofthe
π
- al ulusinthe al ulus ofsolos 3 .?⊗
⊥
o
•
Fig.2.Identity Theseswit heswillbe losedbyboxedidentity ells,whi h are the unique use we make of promotion in the
presentwork.Let
I
betheidentity netof Figure2. Thenweshallusethe losedpromotion elllabeledbyI
!
:I
!
.
3.2 Communi ation tools
3
Fig.3. Area of or-der3
3.2.1 The ommuni ation areas. Let
n
≥ −2
. Wedene a family of nets with
2(n + 2)
free ports, alled ommuni ationareasofordern
,that weshalldrawusingre tangles with beveled angles. Figure 3 shows how we
pi turea ommuni ationareaoforder
3
.A ommuni ationareaoforder
n
ismadeofn
+ 2
pairs of(n + 1)
-ary generalized o ontra tionand ontra tion ells(γ
+
1
, γ
1
−
), . . . , (γ
n+1
+
, γ
n+1
−
)
,with,forea hi
andj
su h that1 ≤ i < j ≤ n + 2
,awirefromanauxiliaryportofγ
+
i
toanauxiliaryport ofγ
−
j
andawirefromanauxiliaryportofγ
−
i
to anauxiliaryport ofγ
+
j
. Sothe ommuni ationareaoforder−2
istheemptynetε
,and ommuni a-tionareasoforder−1
,0
and1
arerespe tivelyoftheshape?
∗
!
∗
!
∗
?
∗
!
∗
?
∗
!
∗
?
∗
?
∗
!
∗
?
∗
!
∗
3.2.2 Identi ation stru tures. Let
n, p
∈ N
and letf
: {1, . . . , p} →
{1, . . . , n}
beafun tion.Anf
-identi ation net isastru turewithp
+ n
pairs of free ports (p
pairs orrespond to the domain off
and, in our pi tures, will beatta hedto thenon beveledside oftheidenti ation stru ture,andn
pairs orrespondtothe odomainoff
,atta hedtothebeveledsideofthestru ture) asinFigure4(a).Su hanetismadeofn
ommuni ationareas,andonthej
'th area, thej
'th pair of wires of the odomain is onne ted, as well asthe pairs of wires of indexi
of the domain su h thatf
(i) = j
. For instan e, ifn
= 4
,p
= 3
,f
(1) = 2
,f
(2) = 3
andf
(3) = 2
,a orrespondingidenti ationstru ture is madeof four ommuni ationareas,twoof order−1
,oneof order0
andone oforder1
,asin Figure4(b).3
It is shown in[LV03 ℄ that one anen ode the
π
- al ulussequentiality indu edby prexnestinginthe ompletelyasyn hronoussoloformalism:theideaofsu h trans-lationsistoobservethat,inasolopro esslikeP
= νy (u(x, y) | y(. . . )) | Q
,therst solomustintera tbeforethese ondonewiththeenvironmentQ
.1
. . .
. . .
f
p
n
1
(a)Notation−1
1
0
−1
(b)Example;
∗
s
f
g
g
◦ f
. . .
. . .
. . .
. . .
. . .
( )Redu tionFig.4.Identi ationstru tures
3.3 Usefulredu tions.
3.3.1 Aggregationof ommuni ation areas. Oneoftheni eproperties
of ommuni ationareasisthat,whenone onne tstwosu hareasthroughapair ofwires,onegetsanother ommuni ationarea;ifthetwoareasareofrespe tive orders
p
andq
,theresultingareaisoforderp
+ q
,seeFigure5.p
+ q
. . . . . .p
q
;
∗
s
. . . . . . Fig.5.Aggregation3.3.2 Composition of identi ation stru tures. In parti ular, we get
theredu tionofFigure 4( ).
3.3.3 Port forwarding in a net. Let
t
beanetandp
beafreeportoft
.Wesaythat
p
isforwardedint
ifthereisafreeportq
oft
su hthatt
isofone ofthetwofollowingshapes:?
∗
p
q
. . .· · ·
. . .!
∗
p
q
· · ·
. . . . . .3.3.4 Forwardingofdereli tionsand odereli tionsin ommuni ation
areas. Thefollowingredu tionshowsthatdereli tions and odereli tions an
meetea hother,when onne tedtoa ommon ommuni ationareas.Let
l, m
∈
L
, then?
!
!
?
?
!
!
t
i
?
r
r
′
;
∗
{l,m}
· · ·
p
+ 1
p
+
N
X
i=1
· · ·
· · ·
l
m
l
m
l
m
where
N
isanon-negativeinteger(a tually,N
= (p + 1)
2
)and, inea hsimple net
t
i
,bothportsr
andr
′
areforwarded.
3.3.5 Generalforwarding. Let
l
∈ L
.Thefollowingmoregeneralbutlessinformativepropertywillalsobeused:onehas
?
. . .u
i
r
. . .?
∗
?
;
∗
{l}
N
X
i=1
l
. . . . . .p
l
where in ea hsimplenet
u
i
, theportr
is forwarded(see 3.3.3).Of ourseone also hasadual redu tion(where thedereli tion is repla ed by a odereli tion, andthegeneralized ontra tionbyageneralized o ontra tion).3.3.6 Redu tionof prexes. Let
l, m
∈ L
.Ifwe onne tann
-aryoutputprexlabeledby
m
to ap
-ary inputprexlabeledbyl
,weobtainanetwhi h redu esby;
c,{l,m}
toanetu
whi hredu esby;
∗
{τ }
to0
ifn
6= p
andtosimple wires,inFigure6(a),ifn
= p
.3.3.7 Transistor triggering. Aboxed identity onne tedto the prin ipal
portof aunary output ellusedasatransistor turnsitintoasimplewireas in Figure6(b).
•
•
. . .!
?
. . . . . .m
l
;
c,{l,m}
u ;
∗
∅
(a)Prexesintera tion
I
!
?
•
;
∗
∅
(b)Transistortriggering Fig.6.Prexredu tion
4 A polyadi nitary
π
- al ulus and its en odingThepro ess al uluswe onsiderisafragmentofthe
π
- al uluswherewehave suppressedthefollowingfeatures:sums,repli ation,re ursivedenitions,mat h andmismat h. Thisdoesnotmeanthat dierentialintera tionnets annot in-terpret these features4
. Let
N
bea ountable set of names. Ourpro essesare dened bythefollowingsyntax.Weusethesamesetoflabelsasbefore.
nil
istheemptypro ess.If
P
1
andP
2
arepro esses,thenP
1
| P
2
isapro ess.If
P
isapro essanda
∈ N
,thenνa
· P
isapro esswherea
isbound. IfP
isapro ess,a, b
1
, . . . , b
n
∈ N
,thenamesb
i
beingpairwisedistin tandif
l
∈ L
,thenQ
= [l]a(b
1
. . . b
n
) · P
isapro ess(prexedbyaninputa tion, whosesubje tisa
andwhoseobje tsaretheb
i
s;thenamea
isfreeandea hb
i
isboundinQ
andhen ea
isdistin tfromea hb
i
).If
P
is a pro ess,a, b
1
, . . . , b
n
∈ N
andl
∈ L
, then[l]ahb
1
. . . b
n
i · P
is a pro ess(prexedbyanoutputa tion,whosesubje tisa
andwhoseobje ts aretheb
i
s).This onstru tiondoesnotbindthenamesb
i
,andonedoesnot requiretheb
i
stobedistin t. Thenamea
anbeequaltosomeoftheb
i
s. Thepurposeofthislabelingofprexesistodistinguishthevariouso urren es ofnamesassubje tofprexes.ThesetFV
(P )
offreenamesofapro essP
and theα
-equivalen erelationonpro essesaredenedintheusualway.4
distin t labels,allthese labelsbeingdierentfrom
τ
. IfP
is alabeledpro ess,L(P )
denotesthesetofitslabels.Allthepro esseswe onsiderinthispaperare labeled.4.1 Anexe ution model
Rather than onsidering arewriting relationon pro esses asoneusually does, weprefertodeneanenvironmentma hine,similartothema hineintrodu ed in [AC98,Chapter 16℄
5 .
Anenvironment isafun tion
e
: Dom e → Codom e
betweennitesubsetsofN
.A losure isapair(P, e)
whereP
isapro essande
isanenvironmentsu h thatFV
(P ) ⊆ Dom(e)
.Asoup isamultisetS
= (P
1
, e
1
) · · · (P
N
, e
N
)
of losures (denoted bysimplejuxtaposition). ThesetFV
(S)
offree namesof asoupS
is theunion ofthe odomains ofthe environmentsofS
.The soupS
is labeledif all theP
i
s are labeled, with pairwise disjoint sets of labels. A state is a pair(S, L)
whereS
isasoup andL
isaset of names(the nameswhi h haveto be onsideredaslo altothestate)andwesetFV
(S, L) = FV(S) \ L
.Thestate
(S, L)
islabeledifthesoupS
islabeled.Allthestateswe onsider are labeled. One denes the setL(S, L)
of all labels of the state(S, L)
asthe disjointunionofthesets oflabelsasso iated tothepro essesofthe losuresofS
.4.1.1 Canoni al form of a state. We say that a pro ess is guarded if
it starts with an input prex or an output prex. We say that a soup
S
=
(P
1
, e
1
) · · · (P
N
, e
N
)
is anoni al ifea hP
i
isguarded,andthatastate(S, L)
is anoni alifthesoupS
is anoni al.Onedenesarewritingrelation;
can
whi h allowstoturnastateintoa anoni alone.((nil, e)S, L) ;
can
(S, L)
((νa · P, e)S, L) ;
can
((P, e[a 7→ a
′
])S, L ∪ {a
′
})
((P | Q, e)S, L) ;
can
((P, e)(Q, e)S, L)
where, in the se ond rule,
a
′
∈ N \ (L ∪ Codom(e) ∪ Codom(S))
. One shows
easily that, up to
α
- onversion, this redu tion relation is onuent, and it is learly strongly normalizing. We denote byCan
(S, L)
the normal form of the state(S, L)
forthis rewritingrelation. Observethat if(S, L) ;
can
(T, M )
thenFV
(T, M ) ⊆ FV(S, L)
.4.1.2 Transitions. Next, one denes a labeled transition system
S
L
. Theobje tsof this systemare labeled anoni alstatesand the transitions, labeled
5
Thereason for this hoi eis that the rewritingapproa husesanoperation whi h onsists inrepla ing anameby anothernameinapro ess. The orresponding
op-(([l]a(b
1
. . . b
n
) · P, e)([m]a
′
hb
1
′
. . . b
′
n
i · P
′
, e
′
)S, L)
lm
−→ Can((P, e[b
1
7→ e
′
(b
′
1
), . . . , b
n
7→ e
′
(b
′
n
)])(P
′
, e
′
)S, L)
ife(a) = e
′
(a
′
)
.Observethatif(S, L)
lm
−→ (T, M )
thenFV
(T, M ) ⊆ FV(S, L)
. 4.2 Translationof pro essesSin ewedonotworkuptoasso iativityand ommutativityof ontra tionand o ontra tion,itdoesnotmakesensetodenethistranslationasafun tionfrom pro essesto nets.Forea h repetition-free list ofnames
a
1
, . . . , a
n
, wedene a relationI
a
1
,...,a
n
from pro esseswhosefreenamesare ontainedin{a
1
, . . . , a
n
}
tonetst
whi hhave2n + 1
freeportsa
ι
1
, a
o
1
, . . . , a
ι
n
, a
o
n
andc
asinFigure7(a). Theadditionalportc
willbeusedfor ontrollingthesequentialityofthe redu -tion,thankstotransistors.Redu ingthetranslationofapro esswillbepossible only when a boxed identity ell will be onne ted to its ontrol port. This is ompletely similarto theadditional ontrol freenameinthe translationoftheπ
- al ulusinsolos,in [LV03℄6 . Clearly,if
P
andP
′
are
α
-equivalent,thenP
I
a
1
,...,a
n
s
iP
′
I
a
1
,...,a
n
s
.4.2.1 Empty pro ess. Onehas
nil
I
b
1
,...,b
n
t
ift
isasinFigure7(b).4.2.2 Namerestri tion. Onehas
νa
· P I
b
1
,...,b
n
t
it
isasinFigure7( ), withs
satisfyingP
I
a,b
1
,...,b
n
s
.4.2.3 Parallel omposition. One has
P
1
| P
2
I
b
1
,...,b
n
t
ithe simplenett
is as in Figure 7(d),whereP
1
I
b
1
,...,b
n
t
1
,P
2
I
b
1
,...,b
n
t
2
andγ
1
, . . . , γ
n
are ommuni ationareasoforder1
.4.2.4 Inputprex. Let
l
∈ L
.Assumethata, b
1
, . . . , b
n
, c
1
, . . . , c
p
are pair-wisedistin t namesand letQ
= [l]a(b
1
. . . b
n
) · P
. OnehasQ
I
a,c
1
,...,c
p
t
ifall thefreenamesofP
are ontainedina, b
1
, . . . , b
n
, c
1
, . . . , c
p
andift
isasin Fig-ure7(e),whereγ
isa ommuni ationareaoforder1
andwheres
isasimplenet whi hsatisesP
I
a,b
1
,...,b
n
,c
1
,...,c
p
s
. 6Thereisasimpleinterpretationofofsolodiagramsintodierentialintera tionnets, whi husesonlyourtoolbox withoutpromotion sothat solodiagrams anbe seen as anintermediategraphi al languagewhi h anbe implemented inthe low level dierentialsyntax.Ourtranslationofthe
π
- al ulusresultsfromananalysisanda simpli ationofthe omposedtranslationπ
- al ulus→
solodiagrams→
dierential nets.Thesimpli ationresultsfromsomerewiringandfrom theuseoftheboxed identity ellswhi hiseasilyrepli able.Thetranslationofsolosintodierentialnets leadsto y les(whi happearwhenanameisidentiedwithitself)whi hareavoided inthepresentdire ttranslation.Wellbehaved onditionsonsolosforavoidingsu ht
a
1
a
n
. . .
c
(a)Notationb
n
. . .
b
1
?
∗
c
(b)Emptypro esss
a
b
1
b
n
. . .
c
( )Restri tionb
1
b
n
. . .
b
1
b
n
. . .
. . .
c
c
c
t
1
t
2
γ
1
γ
n
?
∗
(d)Parallel omposition!
I
!
•
?
•
s
. . .
a
c
1
. . .
c
p
c
c
1
c
p
b
1
. . .
. . .
b
n
a
c
l
γ
?
∗
(e)Inputprex
•
?
?
•
I
!
. . .b
n
b
1
. . .
. . .
b
1
b
n
. . .1
n
q
0
c
f
. . .c
. . .
s
l
γ
n
δ
!
∗
γ
1
(f) OutputprexI
!
I
!
e
. . .
. . .
. . .
. . .
. . .
1
1
p
n
c
c
. . .
s
1
. . .
δ
s
N
(g)StateFig.7.Pro essandstatetranslation
4.2.5 Outputprex. Let
l
∈ L
.Letb
1
, . . . , b
n
bealistofpairwisedistin t namesandletQ
= [l]b
f(0)
hb
f(1)
. . . b
f(q)
i · P
,wheref
: {0, 1, . . . , q} → {1, . . . , n}
is afun tion. OnehasQ
I
b
1
,...,b
n
t
ifall thefree names ofP
are ontainedinb
1
, . . . , b
n
andift
isasinFigure7(f),whereγ
1
, . . . , γ
n
are ommuni ationareas of order1
,δ
is anf
-identi ation stru tureand wheres
is asimplenetwhi h satisesP
I
b
1
,...,b
n
s
.4.2.6 States. Let
S
= (P
1
, e
1
) . . . (P
N
, e
N
)
be a soup andb
1
, . . . , b
n
be a repetition-free list of names ontainingall the odomains of the environmentse
1
, . . . , e
N
.OnehasS
I
b
1
,...,b
n
t
if,forsomesimplenetss
i
(i
= 1, . . . , N
)onehasP
i
I
b
i
1
,...,b
i
ni
s
i
where
b
i
1
, . . . , b
i
n
i
isarepetition-freeenumerationofthedomainofe
i
,andt
isobtainedby onne tingthepairoffreeportsofs
i
asso iatedtoea hb
i
k
tothe orrespondingpairoffreeportofanidenti ationstru tureasso iated tothefun tione
denedbye(b
i
k
) = e
i
(b
i
k
)
,see Figure7(g).Last, if we are moreover given
L
⊆ N
and a repetition-free list of namesb
1
, . . . , b
n
ontainingallthefreenamesofthestate(S, L)
,onehas(S, L) I
b
1
,...,b
n
u
ifonehasS
I
b
1
,...,b
n
,c
1
,...,c
p
t
forsomerepetition-freeenumerationc
1
, . . . , c
p
ofL
(assumedof oursetobedisjointfromb
1
, . . . , b
n
)andu
isobtainedbypluggingommuni ationareasof order
−1
onthe pairsof freeports oft
orresponding tothec
j
s.5 Comparing the transition systems
Wearenowready tostateabisimulation 7
theorem. Givenarepetition-freelist
b
1
, . . . , b
n
ofnames,wedenearelationI
e
b
1
,...,b
n
betweenstatesandsimplenets by:(S, L) e
I
b
1
,...,b
n
s
if there exists asimplenets
0
su h that(S, L) I
b
1
,...,b
n
s
0
and
s
0
∼
d
s
.Theorem2. The relation
I
e
b
1
,...,b
n
is astrongbisimulation between the labeled transitionsystemsS
L
andD
L
.Con lusion. Themaingoalofthisworkwasnottodeneonemoretranslation ofthe
π
- al ulusinto yetanotherexoti formalism.Wewantedto illustrateby ourbisimulationresultthat dierentialintera tionnets aresu iently expres-sive for simulating on urren y and mobility, as formalized in theπ
- al ulus. We believe that dierential intera tion nets have their own interest and nd a strong mathemati aland logi aljusti ation in their onne tion with linear logi , in the existen e of various denotational models and in the analogybe-tween its basi onstru ts and fundamental mathemati al operations su h as
dierentiation and onvolution produ t. The fa t that dierential intera tion nets support on urren yand mobilitysuggeststhat theymightprovidemore onvenientmathemati alandlogi alfoundationsto on urrent omputing.
Referen es
[AC98℄ RobertoAmadioandPierre-LouisCurien. Domains andlambda- al uli, vol-ume46 of Cambridge Tra ts in Theoreti al Computer S ien e. Cambridge UniversityPress, 1998.
[AM99℄ SamsonAbramskyandPaul-AndréMelliès. Con urrentgamesandfull om-pleteness. In Pro eedings of the 14thAnnual IEEE Symposiumon Logi in ComputerS ien e.IEEE,1999.
[Bef05℄ EmmanuelBeara. Logique,Réalisabilité etCon urren e. PhDthesis, Uni-versitéDenisDiderot,2005.
[BHY03℄ MartinBerger, Kohei Honda, andNobukoYoshida. Strongnormalisability inthepi- al ulus. InformationandComputation,2003. Toappear.
[BM05℄ EmmanuelBearaandFrançoisMaurel.Con urrentnets:astudyofprexing inpro ess al uli. Theoreti alComputerS ien e,356,2005.
[CF06℄ Pierre-Louis Curienand ClaudiaFaggian. Anapproa hto inno ent strate-gies as graphs. Te hni al report, Preuves, Programmes et Systèmes,2006. Submittedfor publi ation.
7
Wearenotusingtransitionsystemsandbisimulationinthestandardpro ess theo-reti way,foranalyzingthepossibleintera tionsofpro esseswiththeirenvironment. Onthe ontrary,weusethemfordes ribingand omparingtheinternal redu tions
S ien e,15(4):615646,2005.
[EL07℄ ThomasEhrhardandOlivierLaurent. A y li solos. Submitted,2007. [ER06℄ Thomas Ehrhardand Laurent Regnier. Dierentialintera tionnets.
Theo-reti alComputer S ien e,2006. Toappear.
[EW97℄ UeEngberg and Glynn Winskel. Completeness results for linear logi on petrinets. Annalsof Pure andAppliedLogi ,86(2):101135,1997.
[FM05℄ Claudia Faggian and François Maurel. Ludi s nets, a game modelof on- urrentintera tion. InPro eedingsof the20thAnnual IEEE Symposiumon Logi inComputerS ien e,pages376385.IEEEComputerSo iety,2005. [Gir87℄ Jean-Yves Girard. Linear logi . Theoreti al Computer S ien e, 50:1102,
1987.
[Gir88℄ Jean-YvesGirard. Normalfun tors,powerseriesandthe
λ
- al ulus. Annals ofPureandAppliedLogi ,37:129177, 1988.[HL07℄ KoheiHondaandOlivierLaurent. Anexa t orresponden ebetweenatyped
π
- al ulusandpolarizedproof-nets. Inpreparation,2007.[JM04℄ OleJensenandRobinMilner.Bigraphsandmobilepro esses(revised). Te h-ni alreport, CambridgeUniversityComputerLaboratory,2004.
[Laf95℄ YvesLafont. Fromproofnetstointera tionnets. InJ.-Y.Girard,Y.Lafont, andL.Regnier,editors,Advan esinLinearLogi ,pages225247.Cambridge UniversityPress,1995. Pro eedingsoftheWorkshoponLinearLogi ,Itha a, NewYork,June1993.
[LPV01℄ CosimoLaneve,Joa himParrow,andBjörnVi tor. Solo diagrams. In Pro- eedings of the 4th onferen e on Theoreti al Aspe ts of Computer S ien e, TACS'01, number 2215 in Le ture Notes in Computer S ien e. Springer-Verlag,2001.
[LV03℄ CosimoLaneveandBjörnVi tor. Solosin on ert. Mathemati alStru tures inComputerS ien e,13(5):657683,2003.
[Maz05℄ DamianoMazza. Multiportintera tionnetsand on urren y. InPro eedings ofCONCUR2005,number3653inLe tureNotesinComputerS ien e,pages 2135.Springer-Verlag,2005.
[Mel06℄ Paul-André Melliès. Asyn hronousgames 2: the true on urren yof inno- en e. Theoreti alComputerS ien e,358(2):200228,2006.
[Mil93℄ RobinMilner. Thepolyadi pi- al ulus:atutorial. InLogi and Algebra of Spe i ation, pages203246.Springer-Verlag,1993.
[Plo76℄ GordonPlotkin. Apowerdomain onstru tion. SIAMJournalofComputing, 5(3):452487,1976.
[Reg92℄ Laurent Regnier. Lambda-Cal ulet Réseaux. Thèsede do torat,Université Paris7,January1992.
[SW01℄ Davide Sangiorgi and David Walker. The pi- al ulus: a Theory of Mobile Pro esses. CambridgeUniversityPress,2001.