![]()
![]()
Next:Example
of contextual equivalentUpAn
Equational Relation forPrevious:An
Equational Relation for
As an example of the simulation, we define an external choice which we can use for both deterministic and non-deterministic purpose as follows:
Definition 1 (External Choice Operation ``+'')
be any processes of ambient calculus. Then, we define
as follows:
![\begin{displaymath}\hspace{-1em}\begin{array}[b]{ll}b[B]+c[C]\\\stackrel{\m......}[\mbox{\it out $c$}] \vert C)]).\\\end{array} \end{array}\end{displaymath}](img13.png)
Example
1 We explain the behavior of the choice operation ``+''
by the following transitions: when the ambient ![]()
(we call it a traveling ambient) is running parallel to
,
that is,
the traveling ambient can enter into either the ambient
of
or
of
.
Suppose it happened to choose the former:
![\begin{displaymath}\begin{array}[t]{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\m......ace{12.3em} \vert c[])]),\end{array} \end{array} \end{array}\end{displaymath}](img22.png)
then, the capability
in
is activated and consumed:
![\begin{displaymath}\begin{array}[t]{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\m......ce{12.3em} \vert c[])]),\end{array} \end{array} \end{array} \end{displaymath}](img25.png)
then, the ambients
go out of the ambient
:
![\begin{displaymath}\begin{array}[t]{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\m......2.3em} \vert c[])]),\end{array} \end{array}\\\end{array} \end{displaymath}](img27.png)
since the ambient
appeared as a sibling of the ambient
and
,
they can move into the ambient
:
![\begin{displaymath}\begin{array}[t]{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\m......a$}] \vert c[])]]),\end{array} \end{array}\\\end{array} \end{displaymath}](img29.png)
then, the only ambient which have been chosen by traveling ambient (that
is,
in this case) can escape from the ambient
:
![\begin{displaymath}\begin{array}{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\mbox......e{9.65em} \vert c[])]]),\end{array} \end{array} \end{array} \end{displaymath}](img30.png)
finally, the traveling ambient can reach the destination:
![\begin{displaymath}\begin{array}[t]{ll}\begin{array}[t]{ll}\mbox{$\Yields^{\m......e{9.65em} \vert c[])]] ).\end{array} \end{array} \end{array}\end{displaymath}](img31.png)