Cargando…

Fair Refinement for Asynchronous Session Types

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 noti...

Descripción completa

Detalles Bibliográficos
Autores principales: Bravetti, Mario, Lange, Julien, Zavattaro, Gianluigi
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984120/
http://dx.doi.org/10.1007/978-3-030-71995-1_8
_version_ 1783668009564372992
author Bravetti, Mario
Lange, Julien
Zavattaro, Gianluigi
author_facet Bravetti, Mario
Lange, Julien
Zavattaro, Gianluigi
author_sort Bravetti, Mario
collection PubMed
description 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 the asynchronous session subtyping, which allows to anticipate message emissions but only under certain conditions. In particular, asynchronous session subtyping rules out candidates subtypes that occur naturally in communication protocols where, e.g., two parties simultaneously send each other a finite but unspecified amount of messages before removing them from their respective buffers. To address this shortcoming, we study 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, and its implementation, which deals with examples that feature potentially unbounded buffering.
format Online
Article
Text
id pubmed-7984120
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79841202021-03-23 Fair Refinement for Asynchronous Session Types Bravetti, Mario Lange, Julien Zavattaro, Gianluigi Foundations of Software Science and Computation Structures Article 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 the asynchronous session subtyping, which allows to anticipate message emissions but only under certain conditions. In particular, asynchronous session subtyping rules out candidates subtypes that occur naturally in communication protocols where, e.g., two parties simultaneously send each other a finite but unspecified amount of messages before removing them from their respective buffers. To address this shortcoming, we study 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, and its implementation, which deals with examples that feature potentially unbounded buffering. 2021-03-23 /pmc/articles/PMC7984120/ http://dx.doi.org/10.1007/978-3-030-71995-1_8 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Bravetti, Mario
Lange, Julien
Zavattaro, Gianluigi
Fair Refinement for Asynchronous Session Types
title Fair Refinement for Asynchronous Session Types
title_full Fair Refinement for Asynchronous Session Types
title_fullStr Fair Refinement for Asynchronous Session Types
title_full_unstemmed Fair Refinement for Asynchronous Session Types
title_short Fair Refinement for Asynchronous Session Types
title_sort fair refinement for asynchronous session types
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984120/
http://dx.doi.org/10.1007/978-3-030-71995-1_8
work_keys_str_mv AT bravettimario fairrefinementforasynchronoussessiontypes
AT langejulien fairrefinementforasynchronoussessiontypes
AT zavattarogianluigi fairrefinementforasynchronoussessiontypes