计算机科学 > 程序设计语言
[提交于 2020年5月12日]
标题:Session Types with Arithmetic Refinements
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Session types statically prescribe bidirectional communication protocols for message-passing processes. However, simple session types cannot specify properties beyond the type of exchanged messages. In this paper we extend the type system by using index refinements from linear arithmetic capturing intrinsic attributes of data structures and algorithms. We show that, despite the decidability of Presburger arithmetic, type equality and therefore also subtyping and type checking are now undecidable, which stands in contrast to analogous dependent refinement type systems from functional languages. We also present a practical, but incomplete algorithm for type equality, which we have used in our implementation of Rast, a concurrent session-typed language with arithmetic index refinements as well as ergometric and temporal types. Moreover, if necessary, the programmer can propose additional type bisimulations that are smoothly integrated into the type equality algorithm.
提交历史
来自:Ankush Das[v1] 2020年5月12日 星期二 13:41:22 UTC