The algebra of communicating processes (ACP) is an algebraic approach to reasoning about concurrent systems. It is a member of the family of mathematical theories of concurrency known as process algebras or process calculi. ACP was initially developed by Jan Bergstra and Jan Willem Klop in 1982,[1] as part of an effort to investigate the solutions of unguarded recursive equations. More so than the other seminal process calculi (CCS and CSP), the development of ACP focused on the algebra of processes, and sought to create an abstract, generalized axiomatic system for processes,[2] and in fact the term process algebra was coined during the research that led to ACP.[citation needed]
ACP is fundamentally an algebra, in the sense of universal algebra. This algebra is a way to describe systems in terms of algebraic process expressions that define compositions of other processes, or of certain primitive elements.
ACP uses instantaneous, atomic actions ( a , b , c , . . . {\displaystyle {\mathit {a,b,c,...}}} ) as its primitives. Some actions have special meaning, such as the action δ {\displaystyle \delta } , which represents deadlock or stagnation, and the action τ {\displaystyle \tau } , which represents a silent action (abstracted actions that have no specific identity).
Actions can be combined to form processes using a variety of operators. These operators can be roughly categorized as providing a basic process algebra, concurrency, and communication.
ACP fundamentally adopts an axiomatic, algebraic approach to the formal definition of its various operators. The axioms presented below comprise the full axiomatic system for ACP τ {\displaystyle \tau } (ACP with abstraction).
Using the alternative and sequential composition operators, ACP defines a basic process algebra which satisfies the axioms[3]
Beyond the basic algebra, two additional axioms define the relationships between the alternative and sequencing operators, and the deadlock action, δ {\displaystyle \delta }
The axioms associated with the merge, left-merge, and communication operators are[3]
When the communications operator is applied to actions alone, rather than processes, it is interpreted as a binary function from actions to actions, | : A × A → A {\displaystyle \vert :A\times A\rightarrow A} . The definition of this function defines the possible interactions between processes — those pairs of actions that do not constitute interactions are mapped to the deadlock action, δ {\displaystyle \delta } , while permitted interaction pairs are mapped to corresponding single actions representing the occurrence of an interaction. For example, the communications function might specify that
which indicates that a successful interaction a | a {\displaystyle a\vert a} will be reduced to the action c {\displaystyle c} . ACP also includes an encapsulation operator, ∂ H {\displaystyle \partial _{H}} for some H ⊆ A {\displaystyle H\subseteq A} , which is used to convert unsuccessful communication attempts (i.e. elements of H {\displaystyle H} that have not been reduced via the communication function) to the deadlock action. The axioms associated with the communications function and encapsulation operator are[3]
The axioms associated with the abstraction operator are[3]
Note that the action a in the above list may take the value δ (but of course, δ cannot belong to the abstraction set I).
ACP has served as the basis or inspiration for several other formalisms that can be used to describe and analyze concurrent systems, including: