Multiparty Session Types Meet Communicating Automata
Reference: Pierre-Malo Deniélou & Nobuko Yoshida (2012). Programming Languages and Systems — ESOP 2012, LNCS 7211, pp. 194–213. Springer. DOI: 10.1007/978-3-642-28869-2_10. Author-hosted PDF, including appendix. Authors’ publication record.
Summary
Deniélou and Yoshida connect multiparty session types with communicating finite-state machines (CFSMs): participants exchanging messages asynchronously through FIFO queues. General CFSM verification is often undecidable. The paper identifies multiparty session automata (MSA), a disciplined subclass generated from generalised global types through local-type projection and translation.
The global-type language separates exclusive choice and merge from concurrent fork and join. This supports protocols beyond earlier session frameworks while retaining polynomial-time well-formedness checking, projection, and process type-checking. The automata interpretation gives a shared account of communication safety and progress across the two formalisms.
Key Ideas
- Pipeline: global protocol → projected local types → communicating automata; processes are checked against local types.
- Structured concurrency: fork/join and choice/merge represent different interaction structures explicitly.
- MSA: a safe subclass for arbitrarily many participants, extending earlier two-machine results.
- Guarantees have a scope: the safety, boundedness, and liveness results concern the paper’s well-formed protocols and typed calculus, rather than unrestricted CFSMs.
- Examples and tooling: the Trade protocol combines negotiation with concurrent notifications; the paper also discusses the Alternating Bit Protocol and a prototype connected to Scribble.
What the guarantees require
The author-hosted version, including the appendix, separates several results in §3:
| Result | Scope and condition |
| Safety (Theorem 3.1) | MSA are free from unspecified receptions, orphan messages, and deadlock. These are the session-generated automata, not arbitrary communicating machines. |
| Strong boundedness (Theorem 3.2) | Requires every action within a global-type cycle to participate in a causal input-output cycle (IO-causality). Boundedness is not unconditional. |
| Progress and liveness (Theorem 3.3) | MSA have progress; the liveness result additionally requires the generating global type to contain end. Here liveness means that a final configuration is reachable from every reachable configuration, rather than that every possible execution eventually terminates. |
At the process level, the deadlock-freedom theorem (§6, Theorem 6.6) assumes a well-typed simple network. The distinction matters when transferring guarantees from a protocol model to programs that can participate in multiple sessions.
Connection to finite-state recognition
The Myhill-Nerode Theorem concerns how many distinct memories a recognizer needs to distinguish input prefixes. This paper raises a complementary question: where does a distributed protocol keep its memory?