π-calculus
In theoretical computer science, the π-calculus (or pi-calculus) is a process calculus. The π-calculus allows channel names to be communicated along the channels themselves, and in this way it is able to describe concurrent computations whose network configuration may change during the computation.
The π-calculus has few terms and is a small, yet expressive language (see § Syntax). Functional programs can be encoded into the π-calculus, and the encoding emphasises the dialogue nature of computation, drawing connections with game semantics. Extensions of the π-calculus, such as the spi calculus and applied π, have been successful in reasoning about cryptographic protocols. Beside the original use in describing concurrent systems, the π-calculus has also been used to reason about business processes[1] and molecular biology.[2]
Informal definition
The π-calculus belongs to the family of process calculi, mathematical formalisms for describing and analyzing properties of concurrent computation. In fact, the π-calculus, like the λ-calculus, is so minimal that it does not contain primitives such as numbers, booleans, data structures, variables, functions, or even the usual control flow statements (such as if-then-else
, while
).
Process constructs
Central to the π-calculus is the notion of name. The simplicity of the calculus lies in the dual role that names play as communication channels and variables.
The process constructs available in the calculus are the following[3] (a precise definition is given in the following section):
- concurrency, written [math]\displaystyle{ P \mid Q }[/math], where [math]\displaystyle{ P }[/math] and [math]\displaystyle{ Q }[/math] are two processes or threads executed concurrently.
- communication, where
- input prefixing [math]\displaystyle{ c\left(x\right).P }[/math] is a process waiting for a message that was sent on a communication channel named [math]\displaystyle{ c }[/math] before proceeding as [math]\displaystyle{ P }[/math], binding the name received to the name x. Typically, this models either a process expecting a communication from the network or a label
c
usable only once by agoto c
operation. - output prefixing [math]\displaystyle{ \overline{c} \langle y \rangle.P }[/math] describes that the name [math]\displaystyle{ y }[/math] is emitted on channel [math]\displaystyle{ c }[/math] before proceeding as [math]\displaystyle{ P }[/math]. Typically, this models either sending a message on the network or a
goto c
operation.
- input prefixing [math]\displaystyle{ c\left(x\right).P }[/math] is a process waiting for a message that was sent on a communication channel named [math]\displaystyle{ c }[/math] before proceeding as [math]\displaystyle{ P }[/math], binding the name received to the name x. Typically, this models either a process expecting a communication from the network or a label
- replication, written [math]\displaystyle{ !\,P }[/math], which may be seen as a process which can always create a new copy of [math]\displaystyle{ P }[/math]. Typically, this models either a network service or a label
c
waiting for any number ofgoto c
operations. - creation of a new name, written [math]\displaystyle{ \left(\nu x\right)P }[/math], which may be seen as a process allocating a new constant x within [math]\displaystyle{ P }[/math]. The constants of π-calculus are defined by their names only and are always communication channels. Creation of a new name in a process is also called restriction.
- the nil process, written [math]\displaystyle{ 0 }[/math], is a process whose execution is complete and has stopped.
Although the minimalism of the π-calculus prevents us from writing programs in the normal sense, it is easy to extend the calculus. In particular, it is easy to define both control structures such as recursion, loops and sequential composition and datatypes such as first-order functions, truth values, lists and integers. Moreover, extensions of the π-calculus have been proposed which take into account distribution or public-key cryptography. The applied π-calculus due to Abadi and Fournet [1] put these various extensions on a formal footing by extending the π-calculus with arbitrary datatypes.
A small example
Below is a tiny example of a process which consists of three parallel components. The channel name x is only known by the first two components.
- [math]\displaystyle{ \begin{align} (\nu x) & \; ( \; \overline{x} \langle z \rangle . \; 0 \\ & \; | \; x(y) . \; \overline{y}\langle x \rangle . \; x(y) . \; 0 \; ) \\ & \; | \; z(v) . \; \overline{v}\langle v \rangle . 0 \end{align} }[/math]
The first two components are able to communicate on the channel x, and the name y becomes bound to z. The next step in the process is therefore
- [math]\displaystyle{ \begin{align} (\nu x) & \; ( \; 0 \\ & \; | \; \overline{z} \langle x \rangle . \; x(y). \; 0 \; ) \\ & \; | \; z(v). \; \overline{v}\langle v \rangle . \; 0 \end{align} }[/math]
Note that the remaining y is not affected because it is defined in an inner scope. The second and third parallel components can now communicate on the channel name z, and the name v becomes bound to x. The next step in the process is now
- [math]\displaystyle{ \begin{align} (\nu x) & \; ( \; 0 \\ & \; | \; x(y). \; 0 \\ & \; | \; \overline{x}\langle x \rangle . \; 0 \; ) \end{align} }[/math]
Note that since the local name x has been output, the scope of x is extended to cover the third component as well. Finally, the channel x can be used for sending the name x. After that all concurrently executing processes have stopped
- [math]\displaystyle{ \begin{align} (\nu x) & \; ( \; 0 \\ & \; | \; 0 \\ & \; | \; 0 \; ) \end{align} }[/math]
Formal definition
Syntax
Let Χ be a set of objects called names. The abstract syntax for the π-calculus is built from the following BNF grammar (where x and y are any names from Χ):[4]
- [math]\displaystyle{ \begin{align} P, Q ::= & \; x(y).P \,\,\, \, \, & \text{Receive on channel }x\text{, bind the result to }y\text{, then run }P \\ & \; | \; \overline{x} \langle y \rangle.P \,\,\, \, \, &\text{Send the value }y\text{ over channel }x\text{, then run }P \\ & \; | \; P|Q \,\,\, \, \, \, \, \, \, &\text{Run }P\text{ and }Q\text{ simultaneously} \\ & \; | \; (\nu x)P \,\,\, &\text{Create a new channel }x\text{ and run }P \\ & \; | \; !P \,\,\, &\text{Repeatedly spawn copies of }P \\ & \; | \; 0 & \text{Terminate the process} \end{align} }[/math]
In the concrete syntax below, the prefixes bind more tightly than the parallel composition (|), and parentheses are used to disambiguate.
Names are bound by the restriction and input prefix constructs. Formally, the set of free names of a process in π–calculus are defined inductively by the table below. The set of bound names of a process are defined as the names of a process that are not in the set of free names.
Construct | Free names |
---|---|
[math]\displaystyle{ 0 }[/math] | None |
[math]\displaystyle{ \overline{a} \langle x \rangle.P }[/math] | a; x; all free names of P |
[math]\displaystyle{ a(x).P }[/math] | a; free names of P except for x |
[math]\displaystyle{ P|Q }[/math] | All free names of P and Q |
[math]\displaystyle{ (\nu x)P }[/math] | Free names of P except for x |
[math]\displaystyle{ !P }[/math] | All free names of P |
Structural congruence
Central to both the reduction semantics and the labelled transition semantics is the notion of structural congruence. Two processes are structurally congruent, if they are identical up to structure. In particular, parallel composition is commutative and associative.
More precisely, structural congruence is defined as the least equivalence relation preserved by the process constructs and satisfying:
Alpha-conversion:
- [math]\displaystyle{ P \equiv Q }[/math] if [math]\displaystyle{ Q }[/math] can be obtained from [math]\displaystyle{ P }[/math] by renaming one or more bound names in [math]\displaystyle{ P }[/math].
Axioms for parallel composition:
- [math]\displaystyle{ P|Q \equiv Q|P }[/math]
- [math]\displaystyle{ (P|Q)|R \equiv P|(Q|R) }[/math]
- [math]\displaystyle{ P | 0 \equiv P }[/math]
Axioms for restriction:
- [math]\displaystyle{ (\nu x)(\nu y)P \equiv (\nu y)(\nu x)P }[/math]
- [math]\displaystyle{ (\nu x)0 \equiv 0 }[/math]
Axiom for replication:
- [math]\displaystyle{ !P \equiv P|!P }[/math]
Axiom relating restriction and parallel:
- [math]\displaystyle{ (\nu x)(P | Q) \equiv (\nu x)P | Q }[/math] if x is not a free name of [math]\displaystyle{ Q }[/math].
This last axiom is known as the "scope extension" axiom. This axiom is central, since it describes how a bound name x may be extruded by an output action, causing the scope of x to be extended. In cases where x is a free name of [math]\displaystyle{ Q }[/math], alpha-conversion may be used to allow extension to proceed.
Reduction semantics
We write [math]\displaystyle{ P \rightarrow P' }[/math] if [math]\displaystyle{ P }[/math] can perform a computation step, following which it is now [math]\displaystyle{ P' }[/math]. This reduction relation [math]\displaystyle{ \rightarrow }[/math] is defined as the least relation closed under a set of reduction rules.
The main reduction rule which captures the ability of processes to communicate through channels is the following:
- [math]\displaystyle{ \overline{x}\langle z \rangle.P | x(y).Q \rightarrow P | Q[z/y] }[/math]
- where [math]\displaystyle{ Q[z/y] }[/math] denotes the process [math]\displaystyle{ Q }[/math] in which the free name [math]\displaystyle{ z }[/math] has been substituted for the free occurrences of [math]\displaystyle{ y }[/math]. If a free occurrence of [math]\displaystyle{ y }[/math] occurs in a location where [math]\displaystyle{ z }[/math] would not be free, alpha-conversion may be required.
There are three additional rules:
- If [math]\displaystyle{ P \rightarrow Q }[/math] then also [math]\displaystyle{ P|R \rightarrow Q|R }[/math].
- This rule says that parallel composition does not inhibit computation.
- If [math]\displaystyle{ P \rightarrow Q }[/math], then also [math]\displaystyle{ (\nu x)P \rightarrow (\nu x)Q }[/math].
- This rule ensures that computation can proceed underneath a restriction.
- If [math]\displaystyle{ P \equiv P' }[/math] and [math]\displaystyle{ P' \rightarrow Q' }[/math] and [math]\displaystyle{ Q' \equiv Q }[/math], then also [math]\displaystyle{ P \rightarrow Q }[/math].
The latter rule states that processes that are structurally congruent have the same reductions.
The example revisited
Consider again the process
- [math]\displaystyle{ (\nu x)(\overline{x} \langle z \rangle.0 | x(y). \overline{y}\langle x \rangle . x(y).0 ) | z(v) . \overline{v}\langle v \rangle. 0 }[/math]
Applying the definition of the reduction semantics, we get the reduction
- [math]\displaystyle{ (\nu x)(\overline{x} \langle z \rangle.0 | x(y). \overline{y}\langle x \rangle . x(y).0 ) | z(v) . \overline{v}\langle v \rangle. 0 \rightarrow (\nu x)(0| \overline{z}\langle x \rangle . x(y). 0 ) | z(v). \overline{v}\langle v \rangle .0 }[/math]
Note how, applying the reduction substitution axiom, free occurrences of [math]\displaystyle{ y }[/math] are now labeled as [math]\displaystyle{ z }[/math].
Next, we get the reduction
- [math]\displaystyle{ (\nu x)(0| \overline{z}\langle x \rangle . x(y). 0 ) | z(v). \overline{v}\langle v \rangle .0 \rightarrow (\nu x)(0| x(y). 0 | \overline{x}\langle x \rangle .0) }[/math]
Note that since the local name x has been output, the scope of x is extended to cover the third component as well. This was captured using the scope extension axiom.
Next, using the reduction substitution axiom, we get
- [math]\displaystyle{ (\nu x)(0 | 0 | 0) }[/math]
Finally, using the axioms for parallel composition and restriction, we get
- [math]\displaystyle{ 0 }[/math]
Labelled semantics
Alternatively, one may give the pi-calculus a labelled transition semantics (as has been done with the Calculus of Communicating Systems).
In this semantics, a transition from a state [math]\displaystyle{ P }[/math] to some other state [math]\displaystyle{ P' }[/math] after an action [math]\displaystyle{ \alpha }[/math] is notated as:
- [math]\displaystyle{ P\,\xrightarrow{\overset{}\alpha} P' }[/math]
Where states [math]\displaystyle{ P }[/math] and [math]\displaystyle{ P' }[/math] represent processes and [math]\displaystyle{ \alpha }[/math] is either an input action [math]\displaystyle{ a(x) }[/math], an output action [math]\displaystyle{ \overline{a}\langle x \rangle }[/math], or a silent action τ.[5]
A standard result about the labelled semantics is that it agrees with the reduction semantics up to structural congruence, in the sense that [math]\displaystyle{ P \rightarrow P' }[/math] if and only if [math]\displaystyle{ P\,\xrightarrow{\overset{}\tau}\equiv P' }[/math] [6]
Extensions and variants
The syntax given above is a minimal one. However, the syntax may be modified in various ways.
A nondeterministic choice operator [math]\displaystyle{ P + Q }[/math] can be added to the syntax.
A test for name equality [math]\displaystyle{ [x=y]P }[/math] can be added to the syntax. This match operator can proceed as [math]\displaystyle{ P }[/math] if and only if x and [math]\displaystyle{ y }[/math] are the same name. Similarly, one may add a mismatch operator for name inequality. Practical programs which can pass names (URLs or pointers) often use such functionality: for directly modeling such functionality inside the calculus, this and related extensions are often useful.
The asynchronous π-calculus[7][8] allows only outputs with no continuation, i.e. output atoms of the form [math]\displaystyle{ \overline{x}\langle y \rangle }[/math], yielding a smaller calculus. However, any process in the original calculus can be represented by the smaller asynchronous π-calculus using an extra channel to simulate explicit acknowledgement from the receiving process. Since a continuation-free output can model a message-in-transit, this fragment shows that the original π-calculus, which is intuitively based on synchronous communication, has an expressive asynchronous communication model inside its syntax. However, the nondeterministic choice operator defined above cannot be expressed in this way, as an unguarded choice would be converted into a guarded one; this fact has been used to demonstrate that the asynchronous calculus is strictly less expressive than the synchronous one (with the choice operator).[9]
The polyadic π-calculus allows communicating more than one name in a single action: [math]\displaystyle{ \overline{x}\langle z_1,...,z_n\rangle.P }[/math] (polyadic output) and [math]\displaystyle{ x(z_1,...,z_n).P }[/math] (polyadic input). This polyadic extension, which is useful especially when studying types for name passing processes, can be encoded in the monadic calculus by passing the name of a private channel through which the multiple arguments are then passed in sequence. The encoding is defined recursively by the clauses
[math]\displaystyle{ \overline{x}\langle y_1,\cdots,y_n\rangle.P }[/math] is encoded as [math]\displaystyle{ (\nu w) \overline{x}\langle w \rangle.\overline{w}\langle y_1\rangle.\cdots.\overline{w}\langle y_n\rangle.[P] }[/math]
[math]\displaystyle{ x(y_1,\cdots,y_n).P }[/math] is encoded as [math]\displaystyle{ x(w).w(y_1).\cdots.w(y_n).[P] }[/math]
All other process constructs are left unchanged by the encoding.
In the above, [math]\displaystyle{ [P] }[/math] denotes the encoding of all prefixes in the continuation [math]\displaystyle{ P }[/math] in the same way.
The full power of replication [math]\displaystyle{ !P }[/math] is not needed. Often, one only considers replicated input [math]\displaystyle{ ! x(y).P }[/math], whose structural congruence axiom is [math]\displaystyle{ ! x(y).P \equiv x(y).P | !x(y).P }[/math].
Replicated input process such as [math]\displaystyle{ !x(y).P }[/math] can be understood as servers, waiting on channel x to be invoked by clients. Invocation of a server spawns a new copy of the process [math]\displaystyle{ P[a/y] }[/math], where a is the name passed by the client to the server, during the latter's invocation.
A higher order π-calculus can be defined where not only names but processes are sent through channels. The key reduction rule for the higher order case is
[math]\displaystyle{ \overline{x}\langle R \rangle.P | x(Y).Q \rightarrow P | Q[R/Y] }[/math]
Here, [math]\displaystyle{ Y }[/math] denotes a process variable which can be instantiated by a process term. Sangiorgi established that the ability to pass processes does not increase the expressivity of the π-calculus: passing a process P can be simulated by just passing a name that points to P instead.
Properties
Turing completeness
The π-calculus is a universal model of computation. This was first observed by Milner in his paper "Functions as Processes",[10] in which he presents two encodings of the lambda-calculus in the π-calculus. One encoding simulates the eager (call-by-value) evaluation strategy, the other encoding simulates the normal-order (call-by-name) strategy. In both of these, the crucial insight is the modeling of environment bindings – for instance, "x is bound to term [math]\displaystyle{ M }[/math]" – as replicating agents that respond to requests for their bindings by sending back a connection to the term [math]\displaystyle{ M }[/math].
The features of the π-calculus that make these encodings possible are name-passing and replication (or, equivalently, recursively defined agents). In the absence of replication/recursion, the π-calculus ceases to be Turing-complete. This can be seen by the fact that bisimulation equivalence becomes decidable for the recursion-free calculus and even for the finite-control π-calculus where the number of parallel components in any process is bounded by a constant.[11]
Bisimulations in the π-calculus
As for process calculi, the π-calculus allows for a definition of bisimulation equivalence. In the π-calculus, the definition of bisimulation equivalence (also known as bisimilarity) may be based on either the reduction semantics or on the labelled transition semantics.
There are (at least) three different ways of defining labelled bisimulation equivalence in the π-calculus: Early, late and open bisimilarity. This stems from the fact that the π-calculus is a value-passing process calculus.
In the remainder of this section, we let [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] denote processes and [math]\displaystyle{ R }[/math] denote binary relations over processes.
Early and late bisimilarity
Early and late bisimilarity were both formulated by Milner, Parrow and Walker in their original paper on the π-calculus.[12]
A binary relation [math]\displaystyle{ R }[/math] over processes is an early bisimulation if for every pair of processes [math]\displaystyle{ (p, q) \in R }[/math],
- whenever [math]\displaystyle{ p \,\xrightarrow{a(x)}\,p' }[/math] then for every name [math]\displaystyle{ y }[/math] there exists some [math]\displaystyle{ q' }[/math] such that [math]\displaystyle{ q \,\xrightarrow{a(x)}\,q' }[/math] and [math]\displaystyle{ (p'[y/x],q'[y/x]) \in R }[/math];
- for any non-input action [math]\displaystyle{ \alpha }[/math], if [math]\displaystyle{ { p \xrightarrow{\overset{}{\alpha}} p' } }[/math] then there exists some [math]\displaystyle{ q' }[/math] such that [math]\displaystyle{ q \xrightarrow{\overset{}{\alpha}} q' }[/math] and [math]\displaystyle{ (p',q') \in R }[/math];
- and symmetric requirements with [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] interchanged.
Processes [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are said to be early bisimilar, written [math]\displaystyle{ p \sim_e q }[/math] if the pair [math]\displaystyle{ (p,q) \in R }[/math] for some early bisimulation [math]\displaystyle{ R }[/math].
In late bisimilarity, the transition match must be independent of the name being transmitted. A binary relation [math]\displaystyle{ R }[/math] over processes is a late bisimulation if for every pair of processes [math]\displaystyle{ (p, q) \in R }[/math],
- whenever [math]\displaystyle{ p \xrightarrow{a(x)} p' }[/math] then for some [math]\displaystyle{ q' }[/math] it holds that [math]\displaystyle{ q \xrightarrow{a(x)} q' }[/math] and [math]\displaystyle{ (p'[y/x],q'[y/x]) \in R }[/math] for every name y;
- for any non-input action [math]\displaystyle{ \alpha }[/math], if [math]\displaystyle{ p \xrightarrow{\overset{}{\alpha}} p' }[/math] implies that there exists some [math]\displaystyle{ q' }[/math] such that [math]\displaystyle{ q \xrightarrow{\overset{}{\alpha}} q' }[/math]and [math]\displaystyle{ (p',q') \in R }[/math];
- and symmetric requirements with [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] interchanged.
Processes [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are said to be late bisimilar, written [math]\displaystyle{ p \sim_l q }[/math] if the pair [math]\displaystyle{ (p,q) \in R }[/math] for some late bisimulation [math]\displaystyle{ R }[/math].
Both [math]\displaystyle{ \sim_e }[/math] and [math]\displaystyle{ \sim_l }[/math] suffer from the problem that they are not congruence relations in the sense that they are not preserved by all process constructs. More precisely, there exist processes [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] such that [math]\displaystyle{ p \sim_e q }[/math] but [math]\displaystyle{ a(x).p \not \sim_e a(x).q }[/math]. One may remedy this problem by considering the maximal congruence relations included in [math]\displaystyle{ \sim_e }[/math] and [math]\displaystyle{ \sim_l }[/math], known as early congruence and late congruence, respectively.
Open bisimilarity
Fortunately, a third definition is possible, which avoids this problem, namely that of open bisimilarity, due to Sangiorgi.[13]
A binary relation [math]\displaystyle{ R }[/math] over processes is an open bisimulation if for every pair of elements [math]\displaystyle{ (p, q) \in R }[/math] and for every name substitution [math]\displaystyle{ \sigma }[/math] and every action [math]\displaystyle{ \alpha }[/math], whenever [math]\displaystyle{ p\sigma \xrightarrow{\overset{}{\alpha}} p' }[/math] then there exists some [math]\displaystyle{ q' }[/math] such that [math]\displaystyle{ q\sigma \xrightarrow{\overset{}{\alpha}} q' }[/math] and [math]\displaystyle{ (p',q') \in R }[/math].
Processes [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are said to be open bisimilar, written [math]\displaystyle{ p \sim_o q }[/math] if the pair [math]\displaystyle{ (p,q) \in R }[/math] for some open bisimulation [math]\displaystyle{ R }[/math].
Early, late and open bisimilarity are distinct
Early, late and open bisimilarity are distinct. The containments are proper, so [math]\displaystyle{ \sim_o \subsetneq \sim_l \subsetneq \sim_e }[/math].
In certain subcalculi such as the asynchronous pi-calculus, late, early and open bisimilarity are known to coincide. However, in this setting a more appropriate notion is that of asynchronous bisimilarity. In the literature, the term open bisimulation usually refers to a more sophisticated notion, where processes and relations are indexed by distinction relations; details are in Sangiorgi's paper cited above.
Barbed equivalence
Alternatively, one may define bisimulation equivalence directly from the reduction semantics. We write [math]\displaystyle{ p \Downarrow a }[/math] if process [math]\displaystyle{ p }[/math] immediately allows an input or an output on name [math]\displaystyle{ a }[/math].
A binary relation [math]\displaystyle{ R }[/math] over processes is a barbed bisimulation if it is a symmetric relation which satisfies that for every pair of elements [math]\displaystyle{ (p, q) \in R }[/math] we have that
- (1) [math]\displaystyle{ p \Downarrow a }[/math] if and only if [math]\displaystyle{ q \Downarrow a }[/math] for every name [math]\displaystyle{ a }[/math]
and
- (2) for every reduction [math]\displaystyle{ p \rightarrow p' }[/math] there exists a reduction [math]\displaystyle{ q \rightarrow q' }[/math]
such that [math]\displaystyle{ (p',q') \in R }[/math].
We say that [math]\displaystyle{ p }[/math] and [math]\displaystyle{ q }[/math] are barbed bisimilar if there exists a barbed bisimulation [math]\displaystyle{ R }[/math] where [math]\displaystyle{ (p,q) \in R }[/math].
Defining a context as a π term with a hole [] we say that two processes P and Q are barbed congruent, written [math]\displaystyle{ P \sim_b Q\,\! }[/math], if for every context [math]\displaystyle{ C[] }[/math] we have that [math]\displaystyle{ C[P] }[/math] and [math]\displaystyle{ C[Q] }[/math] are barbed bisimilar. It turns out that barbed congruence coincides with the congruence induced by early bisimilarity.
Applications
The π-calculus has been used to describe many different kinds of concurrent systems. In fact, some of the most recent applications lie outside the realm of traditional computer science.
In 1997, Martin Abadi and Andrew Gordon proposed an extension of the π-calculus, the Spi-calculus, as a formal notation for describing and reasoning about cryptographic protocols. The spi-calculus extends the π-calculus with primitives for encryption and decryption. In 2001, Martin Abadi and Cedric Fournet generalised the handling of cryptographic protocols to produce the applied π calculus. There is now a large body of work devoted to variants of the applied π calculus, including a number of experimental verification tools. One example is the tool ProVerif [2] due to Bruno Blanchet, based on a translation of the applied π-calculus into Blanchet's logic programming framework. Another example is Cryptyc [3], due to Andrew Gordon and Alan Jeffrey, which uses Woo and Lam's method of correspondence assertions as the basis for type systems that can check for authentication properties of cryptographic protocols.
Around 2002, Howard Smith and Peter Fingar became interested that π-calculus would become a description tool for modeling business processes. By July 2006, there is discussion in the community about how useful this would be. Most recently, the π-calculus has formed the theoretical basis of Business Process Modeling Language (BPML), and of Microsoft's XLANG.[14]
The π-calculus has also attracted interest in molecular biology. In 1999, Aviv Regev and Ehud Shapiro showed that one can describe a cellular signaling pathway (the so-called RTK/MAPK cascade) and in particular the molecular "lego" which implements these tasks of communication in an extension of the π-calculus.[2] Following this seminal paper, other authors described the whole metabolic network of a minimal cell.[15] In 2009, Anthony Nash and Sara Kalvala proposed a π-calculus framework to model the signal transduction that directs Dictyostelium discoideum aggregation.[16]
History
The π-calculus was originally developed by Robin Milner, Joachim Parrow and David Walker in 1992, based on ideas by Uffe Engberg and Mogens Nielsen.[17] It can be seen as a continuation of Milner's work on the process calculus CCS (Calculus of Communicating Systems). In his Turing lecture, Milner describes the development of the π-calculus as an attempt to capture the uniformity of values and processes in actors.[18]
Implementations
The following programming languages implement the π-calculus or one of its variants:
- Business Process Modeling Language (BPML)
- occam-π
- Pict
- JoCaml (based on the Join-calculus)
- RhoLang
Notes
- ↑ OMG Specification (2011). "Business Process Model and Notation (BPMN) Version 2.0", Object Management Group. p.21
- ↑ 2.0 2.1 Regev, Aviv; William Silverman; Ehud Y. Shapiro (2001). "Representation and Simulation of Biochemical Processes Using the pi-Calculus Process Algebra". Pacific Symposium on Biocomputing: 459–470. doi:10.1142/9789814447362_0045. ISBN 978-981-02-4515-3. PMID 11262964.
- ↑ Wing, Jeannette M. (27 December 2002). "FAQ on π-Calculus". https://www.cs.tufts.edu/~nr/cs257/archive/jeannette-wing/pi.pdf.
- ↑ A Calculus of Mobile Processes part 1 page 10, by R. Milner, J. Parrow and D. Walker published in Information and Computation 100(1) pp.1-40, Sept 1992
- ↑ Robin Milner, Communicating and Mobile Systems: The Pi Calculus, Cambridge University Press, ISBN:0521643201. 1999
- ↑ Sangiorgi, D., & Walker, D. (2003). p51, The Pi-Calculus. Cambridge University Press.
- ↑ Boudol, G. (1992). Asynchrony and the π-calculus. Technical Report 1702, INRIA, Sophia-Antipolis.
- ↑ Honda, K.; Tokoro, M. (1991). An Object Calculus for Asynchronous Communication. ECOOP 91. Springer Verlag.
- ↑ Palamidessi, Catuscia (1997). "Comparing the expressive power of the Synchronous and the Asynchronous pi-calculus". Proceedings of the 24th ACM Symposium on Principles of Programming Languages: 256–265. Bibcode: 1998cs........9008P.
- ↑ Milner, Robin (1992). "Functions as Processes". Mathematical Structures in Computer Science 2 (2): 119–141. doi:10.1017/s0960129500001407. http://hal.archives-ouvertes.fr/docs/00/07/54/05/PDF/RR-1154.pdf.
- ↑ Dam, Mads (1997). "On the Decidability of Process Equivalences for the pi-Calculus". Theoretical Computer Science 183 (2): 215–228. doi:10.1016/S0304-3975(96)00325-8.
- ↑ Milner, R.; J. Parrow; D. Walker (1992). "A calculus of mobile processes". Information and Computation 100 (1): 1–40. doi:10.1016/0890-5401(92)90008-4. https://www.pure.ed.ac.uk/ws/files/16426053/A_Calculus_of_Mobile_Processes_I.pdf.
- ↑ Sangiorgi, D. (1996). "A theory of bisimulation for the π-calculus". Acta Informatica 33: 69–97. doi:10.1007/s002360050036.
- ↑ "BPML | BPEL4WS: A Convergence Path toward a Standard BPM Stack." BPMI.org Position Paper. August 15, 2002.
- ↑ Chiarugi, Davide; Pierpaolo Degano; Roberto Marangoni (2007). "A computational approach to the functional screening of genomes". PLOS Computational Biology 3 (9): 1801–1806. doi:10.1371/journal.pcbi.0030174. PMID 17907794. Bibcode: 2007PLSCB...3..174C.
- ↑ Nash, A.; Kalvala, S. (2009). "A Framework Proposition for Cellular Locality of Dictyostelium Modelled in π-Calculus". CoSMoS 2009. https://cosmos-research.org/docs/cosmos2009-proceedings.pdf#page=93.
- ↑ Engberg, U.; Nielsen, M. (1986). "A Calculus of Communicating Systems with Label Passing". DAIMI Report Series 15 (208). doi:10.7146/dpb.v15i208.7559.
- ↑ Robin Milner (1993). "Elements of interaction: Turing award lecture". Commun. ACM 36 (1): 78–89. doi:10.1145/151233.151240.
References
- Milner, Robin (1999). Communicating and Mobile Systems: The π-calculus. Cambridge, UK: Cambridge University Press. ISBN 0-521-65869-1. https://archive.org/details/communicatingmob00robi.
- Milner, Robin (1993). "The Polyadic π-Calculus: A Tutorial". in F. L. Hamer. Logic and Algebra of Specification. Springer-Verlag. http://www.lfcs.inf.ed.ac.uk/reports/91/ECS-LFCS-91-180/ECS-LFCS-91-180.ps.
- Sangiorgi, Davide; Walker, David (2001). The π-calculus: A Theory of Mobile Processes. Cambridge, UK: Cambridge University Press. ISBN 0-521-78177-9.
Original source: https://en.wikipedia.org/wiki/Π-calculus.
Read more |