Mario Bravetti ; Julien Lange ; Gianluigi Zavattaro - Fair Asynchronous Session Subtyping

lmcs:12368 - Logical Methods in Computer Science, October 7, 2024, Volume 20, Issue 4 - https://doi.org/10.46298/lmcs-20(4:5)2024
Fair Asynchronous Session SubtypingArticle

Authors: Mario Bravetti ; Julien Lange ; Gianluigi Zavattaro

    Session types are widely used as abstractions of asynchronous message passing systems. Refinement for such abstractions is crucial as it allows improvements of a given component without compromising its compatibility with the rest of the system. In the context of session types, the most general notion of refinement is asynchronous session subtyping, which allows message emissions to be anticipated w.r.t. a bounded amount of message consumptions. In this paper we investigate the possibility to anticipate emissions w.r.t. an unbounded amount of consumptions: to this aim we propose to consider fair compliance over asynchronous session types and fair refinement as the relation that preserves it. This allows us to propose a novel variant of session subtyping that leverages the notion of controllability from service contract theory and that is a sound characterisation of fair refinement. In addition, we show that both fair refinement and our novel subtyping are undecidable. We also present a sound algorithm which deals with examples that feature potentially unbounded buffering. Finally, we present an implementation of our algorithm and an empirical evaluation of it on synthetic benchmarks.


    Volume: Volume 20, Issue 4
    Published on: October 7, 2024
    Accepted on: August 9, 2024
    Submitted on: October 5, 2023
    Keywords: Computer Science - Programming Languages,Computer Science - Logic in Computer Science

    Consultation statistics

    This page has been seen 292 times.
    This article's PDF has been downloaded 80 times.