Generalised Multiparty Session Types with Crash-Stop Failures (Technical Report)

Adam D. Barwell, Alceste Scalas, Nobuko Yoshida, Fangyi Zhou
7/5/2022
cs.PLcs.LO

Official code: alcestes/mpstk-crash-stop (0 stars, Scala, MIT, last commit 2022-07-04).

Abstract

Session types enable the specification and verification of communicating systems. However, their theory often assumes that processes never fail.

Show full abstract

To address this limitation, we present a generalised multiparty session type (MPST) theory with crash-stop failures, where processes can crash arbitrarily. Our new theory validates more protocols and processes w.r.t. previous work. We apply minimal syntactic changes to standard session π-calculus and types: we model crashes and their handling semantically, with a generalised MPST typing system parametric on a behavioural safety property. We cover the spectrum between fully reliable and fully unreliable sessions, via optional reliability assumptions, and prove type safety and protocol conformance in the presence of crash-stop failures. Introducing crash-stop failures has non-trivial consequences: writing correct processes that handle all crash scenarios can be difficult. Yet, our generalised MPST theory allows us to tame this complexity, via model checking, to validate whether a multiparty session satisfies desired behavioural properties, e.g. deadlock-freedom or liveness, even in presence of crashes. We implement our approach using the mCRL2 model checker, and evaluate it with examples extended from the literature.

View on arXivView PDF

Code Implementations(1)

MIT

The Multiparty Session Types Toolkit with crash detection support

00Scala, ShellJan 11, 20224 years agoMIT

Similar Papers

Cite this paper

@article{barwell2022generalised,
  title  = {Generalised Multiparty Session Types with Crash-Stop Failures (Technical Report)},
  author = {Adam D. Barwell and Alceste Scalas and Nobuko Yoshida and Fangyi Zhou},
  year   = {2022},
  eprint = {2207.02015},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.02015}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.02015.svg)](https://codeofpaper.com/paper/2207.02015)

Discussion