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
Letp
be a pomset over an alphabet Act, letA
Act,fpg, and letf
map every evente
inp
whose label is inA
to some (possibly empty) pomsetp
eover Act. The pomsetq
=p
[A
:=f
] is dened as:Eventsq =f(
e;
):e
2Eventsp andl
p(e
)62A
g[f(
e;e
0):e
2Eventsp; l
p(e
)2A
ande
02Eventspeg.
l
q((e;
)) =l
p(e
) andl
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 eithere
1<
pe
2 or (e
1 =pe
2,l
p(e
1)2A
, and 1<
pe1 2).If
A
is a singleton set fa
g, we writep
[a
:=f
] to denotep
[fa
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
LetPT
andPT
a be sets of pomsets over a common alphabet, Act, and leta
2Act,fpg. Then:h
PT;
Acti[a
:=hPT
a;
Acti]def= augment(fp
[a
:=f
]:p
2PT
andf
maps everya
-labeled evente
inp
to some pomsetp
e inPT
a such thatif
e
62max(p
) thenp
e;p2PT
ag)Denition 5.2.4
Letp
be a pomset over an alphabet Act, letD
p be a (possibly empty) set of downward-closed subsets of Eventsp, and letA
Act. Letg
map every evente
inp
whose label is inA
to some pairhp
e;D
ei, wherep
e is a (possibly empty) pomset over Act andD
e is a (possibly empty) set of downward-closed subsets of Eventspe. Then hq;D
qi=hp;D
pi[A
:=g
] is dened as:
q
=p
[A
:=f
], where dom(f
) = dom(g
) andf
(e
) =p
e(= fst(g
(e
))) for every evente
2dom(g
).
D
q =fdownq(f(e;
)2Eventsq:e
2d
g):d
2D
pg[fdownq(f
e
gd
):e
2Eventsp; l
p(e
)2A; d
2D
e;
andd
6=;g[fdownq(f(
e
0;
)2Eventsq:e
0<
pe
g):e
2Eventsp; l
p(e
)2A;
and ;2D
egSince
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
1and
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 somenite sequence of
-transitions will have the possible eect of hiding thea
-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 = fa
i:a
2Act,fpgand 0i
2g[f;
pg, and leta
2 Act,fpg. LetPF;PF
a be sets of pomset-failures over Act0, and letPD;PD
a be sets of pomset-divergences over Act0. Then:h
PF;PD;
Act0i[a
replace hPF
a;PD
a;
Act0i]def= hPF
0;PD
0;
Act0i;
wherePF
00 = fhp
[fa
0;a
1g:=f
];F
0i:hp;F
pi21-2-respect(PF
) for someF
p;
and
f
maps every evente
inp
withl
p(e
)2fa
0;a
1gto some pomset-failure h
p
e;F
eiinPF
a such that if hp;
;i2PF
a thena
02F
p;
if
l
p(e
) =a
0 thenhp
e;p;
;i2PF
a;
if
l
p(e
) =a
1 thenp2F
e andp
e contains no p-labeled events, andF
0(F
p[X
)\TfF
e:l
p(e
) =a
1g;
where
X
=fa
0;a
1;a
2g,init(PF
a)gPD
00 = fhp;D
pi[fa
0;a
1g:=g
]:hp;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 evente
inp
withl
p(e
)2fa
0;a
1gto some h
p
e;D
eiinPF
a[PD
a such thatD
e is a (possibly empty) set of downward-closed subsets of Eventspe; D
p[SfD
e:e
2dom(g
)gis non-empty;
and if
l
p(e
) =a
0 thenhp
e;p;
;i2PF
agPF
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 = fa
i:a
2Act,fpgand 0i
2g[f;
pg, and leta
2 Act,fpg. LetPF;PF
a be sets of pomset-failures over Act0, and letPD;PD
a be sets of pomset-divergences over Act0. Furthermore, leta
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
;
;i62PF
a, thenh
PF;PD;
Act0i[a
:=hPF
a;PD
a;
Act0i]def= hPF;PD;
Act0i[a
replacehPF
a;PD
a;
Act0i]Otherwise, if hp
;
;i2PF
a, thenh
PF;PD;
Act0i[a
:=hPF
a;PD
a;
Act0i]def=
(((
choice
(a;a;a0)(hPF;PD;
Act0igrow
fa
0g))hide a
0)shrink
Act0)[a
replacehPF
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, leta
2Act,fpg, and lethN;
Acti;
hN
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
:=hN
a;
Acti]) =f
p
[a
:=f
] :p
2pomset-traces(hN;
Acti) andf
maps everya
-labeled evente
inp
to some pomsetp
e in pomset-traces(hN
a;
Acti) such thatif
e
62max(p
) thenp
e;p2pomset-traces(hN
a;
Acti)g The details are straightforward and are left to the reader.It is now easy to see that
[[h
N;
Acti[a
:=hN
a;
Acti]]]MAY= [[hN;
Acti]]MAY [a
:=[[hN
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([[hN
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 havepomset-failures(h
N;
Acti[a
:=hN
a;
Acti]) =0-split(fh
p
[fa
0;a
1g:=f
];F
0i : hp;F
pi21-2-respect(pomset-failures(hN;
Acti)) for someF
p;
andf
maps every evente
inp
withl
p(e
)2fa
0;a
1gto some pomset-failureh
p
e;F
eiof hN
a;
Acti such that ifl
p(e
) =a
0 thenhp
e;p;
;i2pomset-failures(hN
a;
Acti);
ifl
p(e
) =a
1 thenp2F
e andp
e contains no p-labeled events, andF
0(F
p[X
)\TfF
e:l
p(e
) =a
1g;
where
X
=fa
0;a
1;a
2g,init(pomset-failures(hN
a;
Acti))g)pomset-divergences(h
N;
Acti[a
:=hN
a;
Acti]) =0-split(fh
p;D
pi[fa
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(hN;
Acti))[1-2-respect(pomset-divergences(hN;
Acti)); g
maps every evente
inp
withl
p(e
)2fa
0;a
1gto some h
p
e;D
eiin pomset-failures(hN
a;
Acti)[pomset-divergences(hN
a;
Acti) such thatD
e is a (possibly empty) set of downward-closed subsets of Eventspe; D
p[SfD
e:e
2dom(g
)gis non-empty;
and if
l
p(e
) =a
0 thenhp
e;p;
;i2pomset-failures(hN
a;
Acti)g) The details are straightforward but tedious and are left to the reader.We now show that for the case whenhp
;
;i62fst([[hN
a;
Acti]]MUSTsplit-),[[h
N;
Acti[a
:=hN
a;
Acti]]]MUSTsplit- = [[hN;
Acti]]MUSTsplit- [a
:=[[hN
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([[hN;
Acti]]MUSTsplit-[a
:=[[hN
a;
Acti]]MUSTsplit-); then hr;D
ri 2augment(extendAct(h
q;D
qi)) for some pomset-divergence hq;D
qi such that hq;D
qi =h
q
1;D
q1i[fa
0;a
1g:=g
] for some hq
1;D
q1i 2 [[hN;
Acti]]MUSTsplit- and someg
mappinga
0-labeled anda
1-labeled eventse
ofq
1to [[hN
a;
Acti]]MUSTsplit-. In turn, hq
1;D
q1i2augment(extendAct(hp
1;D
p1i)) for some hp
1;D
p1i that is a pomset-divergence/pomset-failure ofN
, and eachg
(e
)2augment(extendAct(h
p
e;D
pei)) for some hp
e;D
pei that is a pomset-divergence/pomset-failure ofN
a. It is easy to show thathq;D
qi2augment(extendAct(hp
1;D
p1i[fa
0;a
1g:=g
0]), whereg
0 is the restriction ofg
toa
0-labeled anda
1-labeled eventse
ofp
1. Hence, the highlighted fact above together with the denition of [[]]MUSTsplit- implies thathq;D
qi2snd([[hN;
Acti[a
:=hN
a;
Acti]]]MUSTsplit-).It now follows from Proposition 3.2.18 thath
r;D
ri 2snd([[hN;
Acti[a
:=hN
a;
Acti]]]MUSTsplit-). The proof for pomset-failures in hr;D
ri 2fst([[hN;
Acti]]MUSTsplit-[a
:=[[hN
a;
Acti]]MUSTsplit-]) is similar and is left to the reader.The other case, whenhp
;
;i2fst([[hN
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([[hN
a;
Acti]]MUSTsplit-), then[[h
N;
Acti[a
:=hN
a;
Acti]]]MUSTsplit-(((
choice
(a;a;a0)([[hN;
Acti]]MUSTsplit-grow
fa
0g))hide
=a
0)shrink
Act0)[a
replace[[hN
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
Letq
be an interval pomset such thatq
2augment(p
[a
:=f
]) for some pom-setp
and functionf
mappinga
-labeled events inp
to pomsets. Thenq
2augment(p
0[a
:=f
0]) for some interval pomsetp
0p
and some functionf
0mappinga
-labeled events inp
0to interval pomsets such thatf
0(e
)f
(e
) for alle
2dom(f
).Proposition 5.2.9
Lethq;D
qibe an interval pomset-divergence such thath
q;D
qi2augment(hp;D
pi[A
:=g
]) for some pomset-divergence hp;D
pi and functiong
mapping events inp
with labels inA
to pomset-divergences. Thenhq;D
qi 2augment(hp
0;D
p0i[A
:=g
0]) for some interval pomset-divergencehp
0;D
p0ihp;D
piand some functiong
0mapping events inp
0 with labels inA
to interval pomset-divergences such thatg
0(e
)g
(e
) for alle
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, leta
2Act,fpg, and lethN;
Acti;
hN
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
:=hN
a;
Acti]]]MAYintvl = intervals([[hN;
Acti]]MAYintvl [a
:=[[hN
a;
Acti]]MAYintvl]) [[hN;
Acti[a
:=hN
a;
Acti]]]MUSTintvl- = intervals([[hN;
Acti]]MUSTintvl- [a
:=[[hN
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([[hN;
Acti[a
:=hN
a;
Acti]]]MUSTintvl-); thenhr;D
ri2intervals(augment(extendAct(hp;D
pi))) for some pomset-divergencehp;D
piofhN;
Acti[a
:=hN
a;
Acti]. By Lemma 3.2.15and Lemma 3.3.9, there is some interval pomset-divergencehq;
fd
0ggisuch thathr;D
ri2augment(extendAct(hq;
fd
0gi)),q
is an augmentation of a prex ofp
andd
0d
for somed
2D
p. By Proposition 3.2.14,h
q;
fd
0gi2extendAct(augment(pomset-divergences(hN;
Acti[a
:=hN
a;
Acti]))):
It then follows easily from the highlighted fact in the proof of Theorem 5.2.7 that h
q;
fd
0gi2 extendAct(augment(0-split(hp
0;D
p0i))) for some hp
0;D
p0i2hp
1;D
1i[fa
0;a
1g:=g
], where hp
1;D
1iis 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 hp
0;D
p0i,hq
1;D
q1i hp
1;D
1i andg
0(e
)g
(e
) for alle
2dom(g
), such thathq;
fd
0gi2extendAct(augment(0-split(hq
0;D
q0i)))andhq
0;D
q0i2augment(hq
1;D
q1i[fa
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;
fd
0gi2augment(extendAct(0-split(hq
1;D
q1i[fa
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: