Executable Behaviour and the π-Calculus (extended abstract)

Bas Luttik, Fei Yang · DOI

Abstract: Reactive Turing machines extend classical Turing machines with a facility to model observable interactive behaviour. We call a behaviour executable if, and only if, it is behaviourally equivalent to the behaviour of a reactive Turing machine. In this paper, we study the relationship between executable behaviour and behaviour that can be specified in the pi-calculus. We establish that all executable behaviour can be specified in the pi-calculus up to divergence-preserving branching bisimilarity. The converse, however, is not true due to (intended) limitations of the model of reactive Turing machines. That is, the pi-calculus allows the specification of behaviour that is not executable up to divergence-preserving branching bisimilarity. Motivated by an intuitive understanding of executability, we then consider a restriction on the operational semantics of the pi-calculus that does associate with every pi-term executable behaviour, at least up to the version of branching bisimilarity that does not require the preservation of divergence.

Introduction

In classical computation theory, the Turing Machine (TM) defines the limits of what is "computable." However, the TM model is fundamentally closed: it processes an input and halts with an output. Modern computing is increasingly reactive, involving continuous interaction (e.g., web servers, operating systems) and non-terminating processes. To bridge this gap, researchers introduced Reactive Turing Machines (RTMs), which augment the classical model with observable actions and state-based interaction.

Parallel to this, the $\pi$-calculus has emerged as a foundational formalism for concurrent systems. It excels at modeling "link mobility"—the ability of processes to exchange communication channel names. This paper performs a critical "sanity check": does the $\pi$-calculus, a high-level mathematical abstraction, actually correspond to what is physically "executable" by a machine like an RTM?

The Formal Models

The study compares two distinct paradigms of computation. The RTM provides a concrete, machine-oriented view of interaction.

The architecture of a Reactive Turing Machine, showing the interaction between the control head $H_i$ and the tape cells $C_i$.

As shown in Figure 1, an RTM consists of a finite control head interacting with a tape. Unlike a standard TM, the RTM can perform observable actions (read/write) that are part of its transition system, allowing it to interact with an environment.

The $\pi$-calculus, on the other hand, is defined by a set of algebraic rules that govern how processes interact and evolve.

The operational semantics of the $\pi$-calculus, defining how processes transition through actions like communication (COM) and restriction (RES).

Figure 2 outlines the core operational semantics. The power of the $\pi$-calculus lies in its ability to create new names (RES) and pass them (COM), effectively changing the topology of the communication network dynamically.

Methods and Equivalence

To compare these models, the authors use Labelled Transition Systems (LTS) and the notion of bisimilarity. Specifically, they look at:

  1. Branching Bisimilarity ($\leftrightarrow_b$): Equating systems that have the same branching structure while abstracting away internal "silent" ($\tau$) steps.
  2. Divergence-Preserving Branching Bisimilarity ($\leftrightarrow_b^\Delta$): A stricter version that requires systems to also match in their potential for infinite internal loops (livelocks).

The core methodology involves encoding the components of an RTM—its tape cells and control logic—into $\pi$-calculus terms.

Key Insights and Results

The research yields two primary findings regarding the relationship between these models:

  • The $\pi$-Calculus is Reactively Turing Powerful: Every behavior that can be executed by an RTM can be simulated by a $\pi$-calculus term. This simulation is robust enough to hold even under the strictest equivalence ($\leftrightarrow_b^\Delta$). This confirms that the $\pi$-calculus is a valid and powerful tool for specifying executable behavior.
  • The Limits of Executability: Conversely, the $\pi$-calculus can describe behaviors that no RTM can replicate. This "over-expressiveness" stems from the $\pi$-calculus's assumption of an infinite supply of unique communication channels and its ability to describe unbounded branching. The authors prove that systems with unbounded branching but no internal loops are fundamentally non-executable by a finite machine.

Conclusion

The paper concludes that while the $\pi$-calculus is a robust model for executable behavior, its mathematical abstractions allow for specifications that exceed physical realizability. However, by restricting the $\pi$-calculus to a finite set of input names and relaxing the requirement for divergence preservation, every $\pi$-calculus term can be mapped back to an executable RTM behavior.

Summary updated

BibTeX
@inproceedings{luttik2015executable,
  author = {Bas Luttik and Fei Yang},
  title = {{Executable Behaviour and the π-Calculus (extended abstract)}},
  booktitle = {Electronic},
  year = {2015},
  doi = {10.4204/eptcs.189.5},
}
Figure