arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.06482cs.PLcs.LO
收藏

嵌套会话类型

Nested Session Types

Ankush Das, Henry DeYoung, Andreia Mordido, Frank Pfenning

摘要:

会话类型静态地描述并发消息传递进程之间的通信协议。不幸的是,参数多态性,即使在其限制前束形式是不完全理解的会话类型的上下文中。在本文中,我们提出了元理论的会话类型扩展与前趋多态性,因此,嵌套递归数据库。值得注意的是,我们证明了类型平等是决定性的表现出减少跟踪等价的确定性一阶文法。认识到后者的高理论复杂性,我们还提出了一种新的类型平等算法,并证明其合理性。我们观察到,该算法是令人惊讶的效率,尽管它的不完整性,足以为我们所有的例子。我们通过使用嵌套会话类型扩展Rast程序设计语言来实现我们的想法。最后,我们用几个例子来说明我们增强的类型系统的表达能力。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑