An Automata-theoretic Basis for Specification and Type Checking of Multiparty Protocols
Felix Stutz, Emanuele D'Osualdo
TL;DR
AMP advances top-down protocol design by coupling expressive global specifications (PSMs) with local realizations (CSMs) in a decoupled framework that preserves modular verification. It shows that PSMs can encode all global types and HMSCs, while enabling richer global patterns through bounded cores and a closure under asynchronous reordering. The authors establish a complete, PSPACE projection for a broad class of PSMs (Tame PSMs) and prove that removing the sender-driven constraint yields undecidability, thereby balancing expressivity with decidability. A CSM-based session-type system provides soundness (subject reduction, safety, and progress under practical restrictions) and supports backward compatibility with MSTs, enabling existing MST tools to flow into the AMP backend. The work also introduces channel-participant encodings and a formal workflow for leveraging this framework in tooling, aiming to unify global and local protocol theories under a practical, robust automata-theoretic foundation.
Abstract
We propose the Automata-based Multiparty Protocols framework (AMP) for top-down protocol development. The framework features a new very general formalism for global protocol specifications called Protocol State Machines (PSMs), Communicating State Machines (CSMs) as specifications for local participants, and a type system to check a $π$-calculus with session interleaving and delegation against the CSM specification. Moreover, we define a large class of PSMs, called "tame", for which we provide a sound and complete PSPACE projection operation that computes a CSM describing the same protocol as a given PSM if one exists. We propose these components as a backwards-compatible new backend for frameworks in the style of Multiparty Session Types. In comparison to the latter, AMP offers a considerable improvement in expressivity, decoupling of the various components (e.g. projection and typing), and robustness (thanks to the complete projection).
