Cargando…

Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols

Compositional methods are central to the development and verification of software systems. They allow breaking down large systems into smaller components, while enabling reasoning about the behaviour of the composed system. For concurrent and communicating systems, compositional techniques based on...

Descripción completa

Detalles Bibliográficos
Autores principales: Keizer, Alex C., Basold, Henning, Pérez, Jorge A.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984539/
http://dx.doi.org/10.1007/978-3-030-72019-3_14
_version_ 1783668086470082560
author Keizer, Alex C.
Basold, Henning
Pérez, Jorge A.
author_facet Keizer, Alex C.
Basold, Henning
Pérez, Jorge A.
author_sort Keizer, Alex C.
collection PubMed
description Compositional methods are central to the development and verification of software systems. They allow breaking down large systems into smaller components, while enabling reasoning about the behaviour of the composed system. For concurrent and communicating systems, compositional techniques based on behavioural type systems have received much attention. By abstracting communication protocols as types, these type systems can statically check that programs interact with channels according to a certain protocol, whether the intended messages are exchanged in a certain order. In this paper, we put on our coalgebraic spectacles to investigate session types, a widely studied class of behavioural type systems. We provide a syntax-free description of session-based concurrency as states of coalgebras. As a result, we rediscover type equivalence, duality, and subtyping relations in terms of canonical coinductive presentations. In turn, this coinductive presentation makes it possible to elegantly derive a decidable type system with subtyping for [Formula: see text] -calculus processes, in which the states of a coalgebra will serve as channel protocols. Going full circle, we exhibit a coalgebra structure on an existing session type system, and show that the relations and type system resulting from our coalgebraic perspective agree with the existing ones.
format Online
Article
Text
id pubmed-7984539
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79845392021-03-23 Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols Keizer, Alex C. Basold, Henning Pérez, Jorge A. Programming Languages and Systems Article Compositional methods are central to the development and verification of software systems. They allow breaking down large systems into smaller components, while enabling reasoning about the behaviour of the composed system. For concurrent and communicating systems, compositional techniques based on behavioural type systems have received much attention. By abstracting communication protocols as types, these type systems can statically check that programs interact with channels according to a certain protocol, whether the intended messages are exchanged in a certain order. In this paper, we put on our coalgebraic spectacles to investigate session types, a widely studied class of behavioural type systems. We provide a syntax-free description of session-based concurrency as states of coalgebras. As a result, we rediscover type equivalence, duality, and subtyping relations in terms of canonical coinductive presentations. In turn, this coinductive presentation makes it possible to elegantly derive a decidable type system with subtyping for [Formula: see text] -calculus processes, in which the states of a coalgebra will serve as channel protocols. Going full circle, we exhibit a coalgebra structure on an existing session type system, and show that the relations and type system resulting from our coalgebraic perspective agree with the existing ones. 2021-03-23 /pmc/articles/PMC7984539/ http://dx.doi.org/10.1007/978-3-030-72019-3_14 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
Keizer, Alex C.
Basold, Henning
Pérez, Jorge A.
Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title_full Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title_fullStr Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title_full_unstemmed Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title_short Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
title_sort session coalgebras: a coalgebraic view on session types and communication protocols
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984539/
http://dx.doi.org/10.1007/978-3-030-72019-3_14
work_keys_str_mv AT keizeralexc sessioncoalgebrasacoalgebraicviewonsessiontypesandcommunicationprotocols
AT basoldhenning sessioncoalgebrasacoalgebraicviewonsessiontypesandcommunicationprotocols
AT perezjorgea sessioncoalgebrasacoalgebraicviewonsessiontypesandcommunicationprotocols