异步会话子类型的可判定性与不可判定性的界限
On the Boundary between Decidability and Undecidability of Asynchronous Session Subtyping
摘要:
会话类型是保证并发程序没有基本通信错误的行为类型。最近的工作表明,异步会话子类型是不可判定的。然而,由于会话类型在主流程序设计语言中变得流行,其中异步通信是规范而不是例外,因此检测重要的可判定子类型关系至关重要。以前的工作考虑了限制性极强的片段,其中限制被施加到通信缓冲区的大小(最多1)或表达多个选择的可能性(不允许他们完全在一个比较类型)。在这项工作中,第一次,我们展示了一个片段,不施加任何限制,通信缓冲区,并允许两个比较的类型,包括多个选择的输入或输出,从而产生一个片段,这是更重要的适用性的观点。一般来说,我们通过考虑子类型的几个片段来研究可判定性和不可判定性之间的边界。值得注意的是,我们表明,子类型仍然是不可判定的,即使限制不使用输出协方差和输入逆变。
英文摘要:
Session types are behavioural types for guaranteeing that concurrent programs are free from basic communication errors. Recent work has shown that asynchronous session subtyping is undecidable. However, since session types have become popular in mainstream programming languages in which asynchronous communication is the norm rather than the exception, it is crucial to detect significant decidable subtyping relations. Previous work considered extremely restrictive fragments in which limitations were imposed to the size of communication buffer (at most 1) or to the possibility to express multiple choices (disallowing them completely in one of the compared types). In this work, for the first time, we show decidability of a fragment that does not impose any limitation on communication buffers and allows both the compared types to include multiple choices for either input or output, thus yielding a fragment which is more significant from an applicability viewpoint. In general, we study the boundary between decidability and undecidability by considering several fragments of subtyping. Notably, we show that subtyping remains undecidable even if restricted to not using output covariance and input contravariance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。