Table of Contents
Fetching ...

Characterizing Implementability of Global Protocols with Infinite States and Data

Elaine Li, Felix Stutz, Thomas Wies, Damien Zufferey

TL;DR

The paper addresses the implementability of highly expressive asynchronous global protocols with infinite states and data by introducing Global Communicating Labeled Transition Systems (GCLTS) and a semantic, per-participant reachability framework. It develops a sound and relatively complete symbolic algorithm that reduces implementability to (co)reachability and encodes the problem in the $\mu$CLP$ framework, enabling practical verification across finite and symbolic fragments. It establishes complexity results: implementability is co-NP-complete for explicit finite protocols and PSPACE-complete for symbolic or symbolic-finite fragments, with a corollary tightening the known bound for global types. The approach unifies disparate non-implementability phenomena under a single semantic lens and provides a canonical implementation-based synthesis pathway, with broad implications for MSTs, HMSCs, and choreographic programming in asynchronous settings.

Abstract

We study the implementability problem for an expressive class of symbolic communication protocols involving multiple participants. Our symbolic protocols describe infinite states and data values using dependent refinement predicates. Implementability asks whether a global protocol specification admits a distributed, asynchronous implementation, namely one for each participant, that is deadlock-free and exhibits the same behavior as the specification. We provide a unified explanation of seemingly disparate sources of non-implementability through a precise semantic characterization of implementability for infinite protocols. Our characterization reduces the problem of implementability to (co)reachability in the global protocol restricted to each participant. This compositional reduction yields the first sound and relatively complete algorithm for checking implementability of symbolic protocols. We use our characterization to show that for finite protocols, implementability is co-NP-complete for explicit representations and PSPACE-complete for symbolic representations. The finite, explicit fragment subsumes a previously studied fragment of multiparty session types for which our characterization yields a co-NP decision procedure, tightening a prior PSPACE upper bound.

Characterizing Implementability of Global Protocols with Infinite States and Data

TL;DR

The paper addresses the implementability of highly expressive asynchronous global protocols with infinite states and data by introducing Global Communicating Labeled Transition Systems (GCLTS) and a semantic, per-participant reachability framework. It develops a sound and relatively complete symbolic algorithm that reduces implementability to (co)reachability and encodes the problem in the CLP$ framework, enabling practical verification across finite and symbolic fragments. It establishes complexity results: implementability is co-NP-complete for explicit finite protocols and PSPACE-complete for symbolic or symbolic-finite fragments, with a corollary tightening the known bound for global types. The approach unifies disparate non-implementability phenomena under a single semantic lens and provides a canonical implementation-based synthesis pathway, with broad implications for MSTs, HMSCs, and choreographic programming in asynchronous settings.

Abstract

We study the implementability problem for an expressive class of symbolic communication protocols involving multiple participants. Our symbolic protocols describe infinite states and data values using dependent refinement predicates. Implementability asks whether a global protocol specification admits a distributed, asynchronous implementation, namely one for each participant, that is deadlock-free and exhibits the same behavior as the specification. We provide a unified explanation of seemingly disparate sources of non-implementability through a precise semantic characterization of implementability for infinite protocols. Our characterization reduces the problem of implementability to (co)reachability in the global protocol restricted to each participant. This compositional reduction yields the first sound and relatively complete algorithm for checking implementability of symbolic protocols. We use our characterization to show that for finite protocols, implementability is co-NP-complete for explicit representations and PSPACE-complete for symbolic representations. The finite, explicit fragment subsumes a previously studied fragment of multiparty session types for which our characterization yields a co-NP decision procedure, tightening a prior PSPACE upper bound.

Paper Structure

This paper contains 46 sections, 27 theorems, 38 equations, 15 figures, 1 table, 1 algorithm.

Key Result

theorem 1

Let $\mathcal{S}$ be a protocol. Then, $\mathcal{S}$ is implementable if and only if it satisfies CC.

Figures (15)

  • Figure 1: Two-bidder protocol.
  • Figure 2: State machine for seller ${\color{roleColor}\mathtt{S}}$ for \ref{['fig:two-bidder-protocol']}.
  • Figure 3: State machine for bidder ${\color{roleColor}\mathtt{B_1}}$ for \ref{['fig:two-bidder-protocol']}.
  • Figure 4: State machine for bidder ${\color{roleColor}\mathtt{B_2}}$ for \ref{['fig:two-bidder-protocol']}.
  • Figure 5: Two protocols: $\mathbb{S}_1$ using ⓐ with receive order violation $\mathbb{S}_1'$ using ⓑ without receive order violation.
  • ...and 10 more figures

Theorems & Definitions (56)

  • definition 1: Global communicating LTS
  • definition 2: Channel compliance
  • definition 3: Protocol Implementability
  • definition 4: Symbolic protocol
  • definition 5: Concretization of symbolic protocols
  • definition 6: Send Coherence
  • definition 7: Receive Coherence
  • definition 8: No Mixed Choice
  • definition 9: Coherence Conditions
  • theorem 1
  • ...and 46 more