Author:
Das Ankush,DeYoung Henry,Mordido Andreia,Pfenning Frank
Abstract
AbstractSession types statically describe communication protocols between concurrent message-passing processes. Unfortunately, parametric polymorphism even in its restricted prenex form is not fully understood in the context of session types. In this paper, we present the metatheory of session types extended with prenex polymorphism and, as a result, nested recursive datatypes. Remarkably, we prove that type equality is decidable by exhibiting a reduction to trace equivalence of deterministic first-order grammars. Recognizing the high theoretical complexity of the latter, we also propose a novel type equality algorithm and prove its soundness. We observe that the algorithm is surprisingly efficient and, despite its incompleteness, sufficient for all our examples. We have implemented our ideas by extending the Rast programming language with nested session types. We conclude with several examples illustrating the expressivity of our enhanced type system.
Publisher
Springer International Publishing
Cited by
12 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Polymorphic higher-order context-free session types;Theoretical Computer Science;2024-06
2. Parameterized Algebraic Protocols;Proceedings of the ACM on Programming Languages;2023-06-06
3. Probabilistic Resource-Aware Session Types;Proceedings of the ACM on Programming Languages;2023-01-09
4. System $$F^\mu _\omega $$ with Context-free Session Types;Programming Languages and Systems;2023
5. Polymorphic lambda calculus with context-free session types;Information and Computation;2022-11