Deadlock-free Context-free Session Types

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mordido, Andreia, Pérez, Jorge A.
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915811577298944
author Mordido, Andreia
Pérez, Jorge A.
author_facet Mordido, Andreia
Pérez, Jorge A.
contents We tackle the problem of statically ensuring that message-passing programs never run into deadlocks. We focus on concurrent functional programs governed by context-free session types, which can express rich tree-like structures not expressible in standard session types. We propose a new type system based on context-free session types: it enforces both protocol conformance and deadlock freedom, also for programs implementing cyclic communication topologies with recursion and polymorphism. We show how the priority-based approach to deadlock freedom can be extended to this expressive setting. We prove that well-typed concurrent programs respect their protocols and never deadlock.
format Preprint
id arxiv_https___arxiv_org_abs_2506_20356
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Deadlock-free Context-free Session Types
Mordido, Andreia
Pérez, Jorge A.
Programming Languages
We tackle the problem of statically ensuring that message-passing programs never run into deadlocks. We focus on concurrent functional programs governed by context-free session types, which can express rich tree-like structures not expressible in standard session types. We propose a new type system based on context-free session types: it enforces both protocol conformance and deadlock freedom, also for programs implementing cyclic communication topologies with recursion and polymorphism. We show how the priority-based approach to deadlock freedom can be extended to this expressive setting. We prove that well-typed concurrent programs respect their protocols and never deadlock.
title Deadlock-free Context-free Session Types
topic Programming Languages
url https://arxiv.org/abs/2506.20356