arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1610.00328cs.LO
收藏

论会话类型子类型的精确性

On the Preciseness of Subtyping in Session Types

Tzu-chun Chen, Mariangiola Dezani-Ciancaglini, Alceste Scalas, Nobuko Yoshida

摘要:

并发子类型是类型论中最有趣的问题之一,自20世纪90年代以来得到了广泛的研究。子类型关系的正确性通常被认为是类型安全的可靠性。相反的方向,完整性,在很大程度上被忽略了,尽管它的有用性,以定义最大的子类型关系,确保类型安全。本文形式化的精确性(即健全性和完整性)的子类型的移动进程和研究它的同步和异步会话演算。我们首先证明了著名的会话子类型,分支选择子类型,是健全的和完整的同步演算。接下来,我们证明了在异步演算中,这种子类型对于类型安全是不完整的:也就是说,存在会话类型T和S,使得T可以安全地被认为是S的子类型,但是T < S不能由子类型导出。然后,我们提出了一个异步子类型系统,这是健全的和完整的异步演算。该方法给出了一个一般性的指导,以设计严格的通道为基础的子类型尊重所需的安全性能。同步演算和异步演算都是首先考虑线性通道,然后扩展到会话初始化和表达式计算(包括共享通道)。

英文摘要:

Subtyping in concurrency has been extensively studied since early 1990s as one of the most interesting issues in type theory. The correctness of subtyping relations has been usually provided as the soundness for type safety. The converse direction, the completeness, has been largely ignored in spite of its usefulness to define the largest subtyping relation ensuring type safety. This paper formalises preciseness (i.e. both soundness and completeness) of subtyping for mobile processes and studies it for the synchronous and the asynchronous session calculi. We first prove that the well-known session subtyping, the branching-selection subtyping, is sound and complete for the synchronous calculus. Next we show that in the asynchronous calculus, this subtyping is incomplete for type-safety: that is, there exist session types T and S such that T can safely be considered as a subtype of S, but T < S is not derivable by the subtyping. We then propose an asynchronous subtyping system which is sound and complete for the asynchronous calculus. The method gives a general guidance to design rigorous channel-based subtypings respecting desired safety properties. Both the synchronous and the asynchronous calculus are first considered with lin ear channels only, and then they are extended with session initialisations and c ommunications of expressions (including shared channels).

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

↑