• Aucun résultat trouvé

Semantics for Action Renement

Dans le document Observing True" Concurrency (Page 111-117)

Action Renement

5.2 Semantics for Action Renement

Since RWT Nets by denition are a subclass of WT Nets, all of the net semantics developed in Chapter 3 are well-dened on RWT Nets. This section shows that all of these semantics are compositional for action renement, except for [[]]MUSTand [[]]TEST.

Proposition 5.2.1

[[]]MUST and [[]]TEST are not compositional for RWT Nets as either targets or operators of action renement.

By Theorem 3.2.47, [[]]TESTsplit--equality implies [[]]TEST-equality. The proposition is then a simple consequence of Proposition 3.2.33 and Proposition 5.1.8.

The following denitions will be useful in proving the compositionality of the other seman-tics.

Denition 5.2.2

Let

p

be a pomset over an alphabet Act, let

A

Act,fpg, and let

f

map every event

e

in

p

whose label is in

A

to some (possibly empty) pomset

p

eover Act. The pomset

q

=

p

[

A

:=

f

] is dened as:

Eventsq =f(

e;

):

e

2Eventsp and

l

p(

e

)62

A

g

[f(

e;e

0):

e

2Eventsp

; l

p(

e

)2

A

and

e

02Eventspeg.

l

q((

e;

)) =

l

p(

e

) and

l

q((

e;e

0)) =

l

pe(

e

0).

For all (

e

1

;

1)

;

(

e

2

;

2) 2 Eventsq, (

e

1

;

1)

<

q (

e

2

;

2) i either

e

1

<

p

e

2 or (

e

1 =p

e

2,

l

p(

e

1)2

A

, and

1

<

pe1

2).

If

A

is a singleton set f

a

g, we write

p

[

a

:=

f

] to denote

p

[f

a

g:=

f

].

Since non-maximal events in a pomset-trace of a target net represent \fully red" transitions, we must be careful to replace them only with \successfully terminated" pomset-traces of the renement nets. The following denition reects this fact:

Denition 5.2.3

Let

PT

and

PT

a be sets of pomsets over a common alphabet, Act, and let

a

2Act,fpg. Then:

h

PT;

Acti[

a

:=h

PT

a

;

Acti]def= augment(f

p

[

a

:=

f

]:

p

2

PT

and

f

maps every

a

-labeled event

e

in

p

to some pomset

p

e in

PT

a such that

if

e

62max(

p

) then

p

e;p2

PT

ag)

Denition 5.2.4

Let

p

be a pomset over an alphabet Act, let

D

p be a (possibly empty) set of downward-closed subsets of Eventsp, and let

A

Act. Let

g

map every event

e

in

p

whose label is in

A

to some pairh

p

e

;D

ei, where

p

e is a (possibly empty) pomset over Act and

D

e is a (possibly empty) set of downward-closed subsets of Eventspe. Then h

q;D

qi=h

p;D

pi[

A

:=

g

] is dened as:

q

=

p

[

A

:=

f

], where dom(

f

) = dom(

g

) and

f

(

e

) =

p

e(= fst(

g

(

e

))) for every event

e

2dom(

g

).

D

q =fdownq(f(

e;

)2Eventsq:

e

2

d

g):

d

2

D

pg

[fdownq(f

e

g

d

):

e

2Eventsp

; l

p(

e

)2

A; d

2

D

e

;

and

d

6=;g

[fdownq(f(

e

0

;

)2Eventsq:

e

0

<

p

e

g):

e

2Eventsp

; l

p(

e

)2

A;

and ;2

D

eg

Since

a

0-labeled events of dupl-split nets represent \fully red" transitions, we must be care-ful to replace them only with \successcare-fully terminated" pomset-traces of the renement net.

Similarly, since

a

1-labeled events of dupl-split nets represent \half red" transitions, we must be careful to replace them only with \non-terminated" pomset-traces of the renement net.

Furthermore, in order to be sure that the failure sets corresponding to these non-terminated pomset-traces remain valid after renement, we require that these failure sets contain p; this ensures that new actions do not become ready by \looking through" the

-transition corre-sponding to successful termination. As in the semantic denition of CSP-style parallel com-position, we only rene 1-2-respecting pomsets to avoid confusion between \non-matching"

a

1

and

a

2-labeled actions.

As evidenced by Proposition 5.1.8, hiding is denable from action renement. More gener-ally, rening

a

-labeled transitions with any net that can successfully terminate after ring some

nite sequence of

-transitions will have the possible eect of hiding the

a

-labeled transitions, and hence may create additional divergences. In order to simplify our denition of action rene-ment on sets of pomset-failures and pomset-divergences, we rst dene a replace operator that ignores the eects of hiding on pomset-divergences (but does account for the independent eects on pomset-failures). Using this replace operator, we then dene a semantic action renement operator that properly accounts for all the eects of hiding.

Denition 5.2.5

Let Act be a nite alphabet containing the distinguished symbol p, let Act0 = f

a

i:

a

2Act,fpgand 0

i

2g[f

;

pg, and let

a

2 Act,fpg. Let

PF;PF

a be sets of pomset-failures over Act0, and let

PD;PD

a be sets of pomset-divergences over Act0. Then:

h

PF;PD;

Act0i[

a

replace h

PF

a

;PD

a

;

Act0i]def= h

PF

0

;PD

0

;

Act0i

;

where

PF

00 = fh

p

[f

a

0

;a

1g:=

f

]

;F

0i:h

p;F

pi21-2-respect(

PF

) for some

F

p

;

and

f

maps every event

e

in

p

with

l

p(

e

)2f

a

0

;a

1g

to some pomset-failure h

p

e

;F

eiin

PF

a such that if hp

;

;i2

PF

a then

a

02

F

p

;

if

l

p(

e

) =

a

0 thenh

p

e;p

;

;i2

PF

a

;

if

l

p(

e

) =

a

1 thenp2

F

e and

p

e contains no p-labeled events, and

F

0(

F

p[

X

)\Tf

F

e:

l

p(

e

) =

a

1g

;

where

X

=f

a

0

;a

1

;a

2g,init(

PF

a)g

PD

00 = fh

p;D

pi[f

a

0

;a

1g:=

g

]:h

p;D

pi21-2-respect(

PF

)[1-2-respect(

PD

)

;

D

p is a (possibly empty) set of downward-closed subsets of Eventsp

; g

maps every event

e

in

p

with

l

p(

e

)2f

a

0

;a

1g

to some h

p

e

;D

eiin

PF

a[

PD

a such that

D

e is a (possibly empty) set of downward-closed subsets of Eventspe

; D

p[Sf

D

e:

e

2dom(

g

)gis non-empty

;

and if

l

p(

e

) =

a

0 thenh

p

e;p

;

;i2

PF

ag

PF

0 = augment(0-split(

PF

00))[implied-failuresAct0(

PD

0)

PD

0 = augment(extendAct0(0-split(

PD

00)))

We now dene the semantic action renement to reect the hiding behavior of action re-nement:

Denition 5.2.6

Let Act be a nite alphabet containing the distinguished symbol p, let Act0 = f

a

i:

a

2Act,fpgand 0

i

2g[f

;

pg, and let

a

2 Act,fpg. Let

PF;PF

a be sets of pomset-failures over Act0, and let

PD;PD

a be sets of pomset-divergences over Act0. Furthermore, let

a

0be an action not in Act[Act0. The following denitions use the operations presented in Denition 3.2.45 and Denition 5.2.5.

Ifhp

;

;i62

PF

a, then

h

PF;PD;

Act0i[

a

:=h

PF

a

;PD

a

;

Act0i]def= h

PF;PD;

Act0i[

a

replaceh

PF

a

;PD

a

;

Act0i]

Otherwise, if hp

;

;i2

PF

a, then

h

PF;PD;

Act0i[

a

:=h

PF

a

;PD

a

;

Act0i]

def=

(((

choice

(a;a;a0)(h

PF;PD;

Act0i

grow

f

a

0g))

hide a

0)

shrink

Act0)[

a

replaceh

PF

a

;PD

a

;

Act0i] We now show that our [[]]MAY, [[]]MUSTsplit-, and [[]]TESTsplit- semantics are compositional for nets as targetsand operators of action renement. As discussed in the Introduction, this is in contrast to the semantics of [47], which is not compositional for nets as action renement operators.

Theorem 5.2.7

[[]]MAY, [[]]MUSTsplit-, and [[]]TESTsplit- are compositional for RWT Nets as targets and operators of action renement.

Proof.

Let Act be a nite alphabet containingp, let

a

2Act,fpg, and leth

N;

Acti

;

h

N

a

;

Acti be RWT Nets.

To prove compositionality of the [[]]MAY semantics, we rst observe that as a simple conse-quence of Lemma 5.1.5, Lemma 5.1.6, and the denition of pomset-traces and pomset-runs,

pomset-traces(h

N;

Acti[

a

:=h

N

a

;

Acti]) =

f

p

[

a

:=

f

] :

p

2pomset-traces(h

N;

Acti) and

f

maps every

a

-labeled event

e

in

p

to some pomset

p

e in pomset-traces(h

N

a

;

Acti) such that

if

e

62max(

p

) then

p

e;p2pomset-traces(h

N

a

;

Acti)g The details are straightforward and are left to the reader.

It is now easy to see that

[[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MAY= [[h

N;

Acti]]MAY [

a

:=[[h

N

a

;

Acti]]MAY]

;

where the action renement operation on the right-hand side of the equation is that given in Denition 5.2.3.

We now prove compositionality of the [[]]MUSTsplit- semantics. For the rst case, suppose that

h

p

;

;i62fst([[h

N

a

;

Acti]]MUSTsplit-). As a consequence of Lemma 5.1.5, Lemma 5.1.6, and the deni-tion of pomset-runs, pomset-traces, pomset-failures, and pomset-divergences, we have

pomset-failures(h

N;

Acti[

a

:=h

N

a

;

Acti]) =

0-split(fh

p

[f

a

0

;a

1g:=

f

]

;F

0i : h

p;F

pi21-2-respect(pomset-failures(h

N;

Acti)) for some

F

p

;

and

f

maps every event

e

in

p

with

l

p(

e

)2f

a

0

;a

1g

to some pomset-failureh

p

e

;F

eiof h

N

a

;

Acti such that if

l

p(

e

) =

a

0 thenh

p

e;p

;

;i2pomset-failures(h

N

a

;

Acti)

;

if

l

p(

e

) =

a

1 thenp2

F

e and

p

e contains no p-labeled events, and

F

0(

F

p[

X

)\Tf

F

e:

l

p(

e

) =

a

1g

;

where

X

=f

a

0

;a

1

;a

2g,init(pomset-failures(h

N

a

;

Acti))g)

pomset-divergences(h

N;

Acti[

a

:=h

N

a

;

Acti]) =

0-split(fh

p;D

pi[f

a

0

;a

1g:=

g

]:

D

p is a (possibly empty) set of downward-closed subsets of Eventsp

;

h

p;D

pi21-2-respect(pomset-failures(h

N;

Acti))[1-2-respect(pomset-divergences(h

N;

Acti))

; g

maps every event

e

in

p

with

l

p(

e

)2f

a

0

;a

1g

to some h

p

e

;D

eiin pomset-failures(h

N

a

;

Acti)[pomset-divergences(h

N

a

;

Acti) such that

D

e is a (possibly empty) set of downward-closed subsets of Eventspe

; D

p[Sf

D

e:

e

2dom(

g

)gis non-empty

;

and if

l

p(

e

) =

a

0 thenh

p

e;p

;

;i2pomset-failures(h

N

a

;

Acti)g) The details are straightforward but tedious and are left to the reader.

We now show that for the case whenhp

;

;i62fst([[h

N

a

;

Acti]]MUSTsplit-),

[[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTsplit- = [[h

N;

Acti]]MUSTsplit- [

a

:=[[h

N

a

;

Acti]]MUSTsplit-]

;

where the action renement operation on the right-hand side of the equation is that given in Denition 5.2.6.

One direction is a simple consequence of the denition of [[]]MUSTsplit-, Denition 5.2.6, and the highlighted equality above for the pomset-failures and pomset-divergences of the rened net.

For the other direction, let h

r;D

ri 2 snd([[h

N;

Acti]]MUSTsplit-[

a

:=[[h

N

a

;

Acti]]MUSTsplit-); then h

r;D

ri 2

augment(extendAct(h

q;D

qi)) for some pomset-divergence h

q;D

qi such that h

q;D

qi =

h

q

1

;D

q1i[f

a

0

;a

1g:=

g

] for some h

q

1

;D

q1i 2 [[h

N;

Acti]]MUSTsplit- and some

g

mapping

a

0-labeled and

a

1-labeled events

e

of

q

1to [[h

N

a

;

Acti]]MUSTsplit-. In turn, h

q

1

;D

q1i2augment(extendAct(h

p

1

;D

p1i)) for some h

p

1

;D

p1i that is a pomset-divergence/pomset-failure of

N

, and each

g

(

e

)

2augment(extendAct(h

p

e

;D

pei)) for some h

p

e

;D

pei that is a pomset-divergence/pomset-failure of

N

a. It is easy to show thath

q;D

qi2augment(extendAct(h

p

1

;D

p1i[f

a

0

;a

1g:=

g

0]), where

g

0 is the restriction of

g

to

a

0-labeled and

a

1-labeled events

e

of

p

1. Hence, the highlighted fact above together with the denition of [[]]MUSTsplit- implies thath

q;D

qi2snd([[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTsplit-).

It now follows from Proposition 3.2.18 thath

r;D

ri 2snd([[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTsplit-). The proof for pomset-failures in h

r;D

ri 2fst([[h

N;

Acti]]MUSTsplit-[

a

:=[[h

N

a

;

Acti]]MUSTsplit-]) is similar and is left to the reader.

The other case, whenhp

;

;i2fst([[h

N

a

;

Acti]]MUSTsplit-), then follows from the above proof, De-nition 5.2.6, Theorem 3.2.46, and the following easily proved fact: ifhp

;

;i2fst([[h

N

a

;

Acti]]MUSTsplit-), then

[[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTsplit-

(((

choice

(a;a;a0)([[h

N;

Acti]]MUSTsplit-

grow

f

a

0g))

hide

=

a

0)

shrink

Act0)[

a

replace[[h

N

a

;

Acti]]MUSTsplit-] The details are left to the reader.

In order to prove compositionality of the corresponding interval semantics, we will need the following facts about rening interval pomsets and interval pomset-divergences:

Proposition 5.2.8

Let

q

be an interval pomset such that

q

2augment(

p

[

a

:=

f

]) for some pom-set

p

and function

f

mapping

a

-labeled events in

p

to pomsets. Then

q

2augment(

p

0[

a

:=

f

0]) for some interval pomset

p

0

p

and some function

f

0mapping

a

-labeled events in

p

0to interval pomsets such that

f

0(

e

)

f

(

e

) for all

e

2dom(

f

).

Proposition 5.2.9

Leth

q;D

qibe an interval pomset-divergence such that

h

q;D

qi2augment(h

p;D

pi[

A

:=

g

]) for some pomset-divergence h

p;D

pi and function

g

mapping events in

p

with labels in

A

to pomset-divergences. Thenh

q;D

qi 2augment(h

p

0

;D

p0i[

A

:=

g

0]) for some interval pomset-divergenceh

p

0

;D

p0ih

p;D

piand some function

g

0mapping events in

p

0 with labels in

A

to interval pomset-divergences such that

g

0(

e

)

g

(

e

) for all

e

2dom(

g

).

Using Lemmas 3.3.7 and 3.3.8 to account for the possible hiding eect of action renement, the proofs of the propositions are straightforward and left to the reader.

We now have:

Theorem 5.2.10

The [[]]MAYintvl, [[]]MUSTintvl-, and [[]]TESTintvl- are compositional for RWT Nets as targets and operators of action renement.

Proof.

Let Act be a nite alphabet containingp, let

a

2Act,fpg, and leth

N;

Acti

;

h

N

a

;

Acti be RWT Nets.

We show that the following identities hold, where operations on the right-hand side of the equations are those given in Denition 5.2.3 and Denition 5.2.6.

[[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MAYintvl = intervals([[h

N;

Acti]]MAYintvl [

a

:=[[h

N

a

;

Acti]]MAYintvl]) [[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTintvl- = intervals([[h

N;

Acti]]MUSTintvl- [

a

:=[[h

N

a

;

Acti]]MUSTintvl-])

The identity for [[]]MAYintvl is a simple consequence of the augmentation-closure of the [[]]MAY semantics, Theorem 5.2.7, and Proposition 5.2.8.

It is easy to see that one direction of the equation for [[]]MUSTintvl- follows easily from Theo-rem 5.2.7 and the monotonicity of the action renement operation. For the other direction, let

h

r;D

ri2snd([[h

N;

Acti[

a

:=h

N

a

;

Acti]]]MUSTintvl-); thenh

r;D

ri2intervals(augment(extendAct(h

p;D

pi))) for some pomset-divergenceh

p;D

piofh

N;

Acti[

a

:=h

N

a

;

Acti]. By Lemma 3.2.15and Lemma 3.3.9, there is some interval pomset-divergenceh

q;

f

d

0ggisuch thath

r;D

ri2augment(extendAct(h

q;

f

d

0gi)),

q

is an augmentation of a prex of

p

and

d

0

d

for some

d

2

D

p. By Proposition 3.2.14,

h

q;

f

d

0gi2extendAct(augment(pomset-divergences(h

N;

Acti[

a

:=h

N

a

;

Acti])))

:

It then follows easily from the highlighted fact in the proof of Theorem 5.2.7 that h

q;

f

d

0gi2 extendAct(augment(0-split(h

p

0

;D

p0i))) for some h

p

0

;D

p0i2h

p

1

;D

1i[f

a

0

;a

1g:=

g

], where h

p

1

;D

1i

is an appropriate pomset-divergence or pomset-failure and

g

is a suitable function.

It follows from Lemma 3.3.9 and Proposition 5.2.9 that there are some interval pomset-divergences h

q

0

;D

q0i h

p

0

;D

p0i,h

q

1

;D

q1i h

p

1

;D

1i and

g

0(

e

)

g

(

e

) for all

e

2dom(

g

), such thath

q;

f

d

0gi2extendAct(augment(0-split(h

q

0

;D

q0i)))andh

q

0

;D

q0i2augment(h

q

1

;D

q1i[f

a

0

;a

1g:=

g

0]).

From the denition of 0-split and augment and Lemma 3.2.16, it is easy to see that

h

q;

f

d

0gi2augment(extendAct(0-split(h

q

1

;D

q1i[f

a

0

;a

1g:=

g

0])))

:

The desired equality then follows easily. The proof for pomset-failures is similar, except that it uses Proposition 5.2.8 as well.

We then have:

Theorem 5.2.11

The [[]]MAYintvl, [[]]MUSTintvl-, and [[]]TESTintvl- semantics are respectively fully abstract for may-equivalence, must-equivalence, and Testing-equivalence with respect to alphabet expan-sion and action renement.

Proof.

It is easy to see from the denitions of the [[]]TESTsplit- and [[]]TESTintvl- that [[]]TESTsplit- -equality implies [[]]TESTintvl--equality. Thus, Proposition 5.1.8 shows that split renements, choice renements, and CCS choice can be dened from action renement up to [[]]TESTintvl--equality. The theorem is then a simple consequence of Theorem 3.3.11 and Theorem 5.2.10.

Dans le document Observing True" Concurrency (Page 111-117)