PLMar 30

Less is More Revisited: Association with Global Protocols and Multiparty Sessions

arXiv:2402.167419.84 citationsh-index: 3
AI Analysis

This work resolves a critical soundness issue in MPST frameworks, which are used in over 25 programming languages or tools, making it significant for developers and researchers in distributed systems.

The paper tackles the challenge of ensuring communication correctness in distributed systems by addressing flaws in existing proofs for multiparty session types (MPST), proposing a new proof technique for type soundness that guarantees behavioral properties like session fidelity, deadlock freedom, and liveness.

Ensuring correctness of communication in distributed systems remains challenging. To address this, Multiparty session types (MPST), initially introduced by Honda et al. [52, 53], offer a type discipline in which a programmer or architect specifies an overall view of communication as a global protocol (global type), and each distributed program is locally type-checked against its end-point projection. In practice, the MPST framework has been integrated into over 25 programming languages or tools. Ten years after the emergence of MPST, Scalas and Yoshida [84] discovered that existing proofs of type safety using end-point projection with mergeability are flawed, where the mergeability operator enlarges the typability of MPST end-point programs, admits easy implementation, and is more efficient than alternative approaches, including model checking. Nevertheless, following the result in [84], the soundness of end-point projection (with mergeability) has been interpreted in the literature as problematic. We clarify this concern by proposing a new general proof technique for type soundness (subject reduction) of multiparty session $π$-calculus, which relies on an association relation between the behavioural semantics of a global type and its end-point projection. With this approach, behavioural properties, namely session fidelity, deadlock freedom, and liveness, are also guaranteed based on global types. Additionally, we provide detailed comparisons with existing MPST typing systems and discuss their respective proof methods for type soundness.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes