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

基于二进制会话的多方结构化会话的类型刻画

A Typeful Characterization of Multiparty Structured Conversations Based on Binary Sessions

Luís Caires, Jorge A. Pérez

摘要:

将分布式系统的全局通信行为的规范与其每个节点/对等体的本地通信行为的规范(例如,检查前者在某些安全和/或活性条件下是否可由后者实现)是在许多相关场景中解决的具有挑战性的问题。在网络化软件服务的上下文中,广泛使用的基于程序设计语言的方法依赖于由会话类型或行为契约定义的全局规范。然后可以使用静态类型检查来确保组件遵循规定的交互协议。在会话类型的情况下,发展主要是在完全不同的类型论的二元(两方)或多方(n方)协议。不幸的是,多方和二进制协议的分析技术之间的精确关系还有待理解。在这项工作中,我们弥合这一以前开放的差距在原则上的方式:我们表明,多方协议的分析也可以在一个更简单的类型论的二进制协议,确保协议的保真度和死锁自由。我们提出的特征定理,提供了新的见解之间的关系,但非常不同的动机,会话类型系统-一个基于线性逻辑,其他基于自动机理论-并建议有用的基于类型的验证技术,多方系统依赖于减少到二进制的情况。

英文摘要:

Relating the specification of the global communication behavior of a distributed system and the specifications of the local communication behavior of each of its nodes/peers (e.g., to check if the former is realizable by the latter under some safety and/or liveness conditions) is a challenging problem addressed in many relevant scenarios. In the context of networked software services, a widespread programming language-based approach relies on global specifications defined by session types or behavioral contracts. Static type checking can then be used to ensure that components follow the prescribed interaction protocols. In the case of session types, developments have been mostly framed within quite different type theories for either binary (two-party) or multiparty (n-party) protocols. Unfortunately, the precise relationship between analysis techniques for multiparty and binary protocols is yet to be understood. In this work, we bridge this previously open gap in a principled way: we show that the analysis of multiparty protocols can also be developed within a much simpler type theory for binary protocols, ensuring protocol fidelity and deadlock-freedom. We present characterization theorems which provide new insights on the relation between two existing, yet very differently motivated, session type systems---one based on linear logic, the other based on automata theory---and suggest useful type-based verification techniques for multiparty systems relying on reductions to the binary case.

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

↑