arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.16741cs.PL
收藏

少即是多再探:与全局协议和多参与方会话的关联

Less is More Revisited: Association with Global Protocols and Multiparty Sessions

University of Oxford(牛津大学);Saarland University(萨尔兰大学)

Ping Hou, Nobuko Yoshida, Iona Kuhn

AI总结:

本文通过提出一种新的类型安全性证明技术,解决了多参与方会话类型中端点投影(含可合并性)的可靠性问题,并保证了行为属性。

摘要:

确保分布式系统中通信的正确性仍然具有挑战性。为了解决这个问题,由Honda等人[52, 53]最初引入的多参与方会话类型(MPST)提供了一种类型规范,其中程序员或架构师将通信的全局视图指定为全局协议(全局类型),并且每个分布式程序根据其端点投影进行本地类型检查。在实践中,MPST框架已被集成到超过25种编程语言或工具中。在MPST出现十年后,Scalas和Yoshida[84]发现,使用带可合并性的端点投影的现有类型安全性证明存在缺陷,其中可合并性运算符扩大了MPST端点程序的可类型化性,易于实现,并且比包括模型检查在内的替代方法更高效。然而,根据[84]的结果,端点投影(带可合并性)的可靠性在文献中被解释为有问题的。我们通过提出一种新的用于多参与方会话$π$-演算的类型安全性(主题归约)通用证明技术来澄清这一担忧,该技术依赖于全局类型的行为语义与其端点投影之间的关联关系。通过这种方法,行为属性,即会话忠实性、无死锁性和活性,也基于全局类型得到保证。此外,我们提供了与现有MPST类型系统的详细比较,并讨论了它们各自的类型安全性证明方法。

英文摘要:

Ensuring correctness of communication in distributed systems remains challenging. To address this, Multiparty session types (MPST), initially introduced by Honda et al. [52, 53], offer a type discipline in which a programmer or architect specifies an overall view of communication as a global protocol (global type), and each distributed program is locally type-checked against its end-point projection. In practice, the MPST framework has been integrated into over 25 programming languages or tools. Ten years after the emergence of MPST, Scalas and Yoshida [84] discovered that existing proofs of type safety using end-point projection with mergeability are flawed, where the mergeability operator enlarges the typability of MPST end-point programs, admits easy implementation, and is more efficient than alternative approaches, including model checking. Nevertheless, following the result in [84], the soundness of end-point projection (with mergeability) has been interpreted in the literature as problematic. We clarify this concern by proposing a new general proof technique for type soundness (subject reduction) of multiparty session $π$-calculus, which relies on an association relation between the behavioural semantics of a global type and its end-point projection. With this approach, behavioural properties, namely session fidelity, deadlock freedom, and liveness, are also guaranteed based on global types. Additionally, we provide detailed comparisons with existing MPST typing systems and discuss their respective proof methods for type soundness.

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

↑