arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.16977cs.PLcs.FL
收藏

多方协议规范与类型检查的自动机理论基础

An Automata-theoretic Basis for Specification and Type Checking of Multiparty Protocols

Felix Stutz, Emanuele D'Osualdo

AI总结:

提出基于自动机的多方协议框架AMP,引入协议状态机与通信状态机规范,并提供完备的PSPACE投影操作与类型系统,显著提升了Multiparty Session Types的表达性、解耦性与鲁棒性。

摘要:

我们提出了基于自动机的多方协议框架(AMP),用于自顶向下的协议开发。该框架具有一种新的非常通用的全局协议规范形式化方法,称为协议状态机(PSM),将通信状态机(CSM)作为局部参与者的规范,以及一个类型系统,用于针对CSM规范检查带有会话交错和委托的π演算。此外,我们定义了一大类PSM,称为“tame”,为此我们提供了一个可靠且完备的PSPACE投影操作,该操作在存在时计算出一个描述与给定PSM相同协议的CSM。我们提出将这些组件作为Multiparty Session Types风格框架的向后兼容的新后端。与后者相比,AMP在表达性、各组件(例如投影和类型检查)的解耦以及鲁棒性(得益于完备的投影)方面都有显著提升。

英文摘要:

We propose the Automata-based Multiparty Protocols framework (AMP) for top-down protocol development. The framework features a new very general formalism for global protocol specifications called Protocol State Machines (PSMs), Communicating State Machines (CSMs) as specifications for local participants, and a type system to check a $π$-calculus with session interleaving and delegation against the CSM specification. Moreover, we define a large class of PSMs, called "tame", for which we provide a sound and complete PSPACE projection operation that computes a CSM describing the same protocol as a given PSM if one exists. We propose these components as a backwards-compatible new backend for frameworks in the style of Multiparty Session Types. In comparison to the latter, AMP offers a considerable improvement in expressivity, decoupling of the various components (e.g. projection and typing), and robustness (thanks to the complete projection).

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

↑