arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.05661cs.PL
收藏

上下文无关会话类型的子类型化

Subtyping Context-Free Session Types

Gil Silva, Andreia Mordido, Vasco T. Vasconcelos

AI总结:

本文针对上下文无关会话类型子类型化不可判定问题,提出基于$\mathcal{XYZW}$-模拟的子类型化方法及可靠算法,并在编译器环境中验证了其实用性。

摘要:

上下文无关会话类型描述了异构类型通道上的结构化通信模式,允许指定不受尾递归约束的协议。然而,非正则递归所提供的增强表达能力是以子类型化的可判定性为代价的,即使等价性仍然是可判定的。我们提出了一种基于一种新颖的观察性预序(我们称之为$\mathcal{XYZW}$-模拟)的上下文无关会话类型子类型化方法,该预序推广了$\mathcal{XY}$-模拟(也称为协变-逆变模拟),因此也推广了互模拟和普通模拟。我们进一步提出了一个子类型化算法,并证明其是可靠的,并在一种编程语言的编译器环境中进行了实证评估。由于其所基于的模拟关系具有一般性,该算法也可能在其他领域找到应用。

英文摘要:

Context-free session types describe structured patterns of communication on heterogeneously-typed channels, allowing the specification of protocols unconstrained by tail recursion. The enhanced expressive power provided by non-regular recursion comes, however, at the cost of the decidability of subtyping, even if equivalence is still decidable. We present an approach to subtyping context-free session types based on a novel kind of observational preorder we call $\mathcal{XYZW}$-simulation, which generalizes $\mathcal{XY}$-simulation (also known as covariant-contravariant simulation) and therefore also bisimulation and plain simulation. We further propose a subtyping algorithm that we prove to be sound, and present an empirical evaluation in the context of a compiler for a programming language. Due to the general nature of the simulation relation upon which it is built, this algorithm may also find applications in other domains.

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

↑