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

多方会话类型的合成重建(附录)

A Synthetic Reconstruction of Multiparty Session Types (with Appendix)

University of Kent(肯特大学);Royal Holloway, University of London(伦敦大学皇家霍洛威学院);University of Groningen(格罗宁根大学)

David Castro-Perez, Francisco Ferreira, Sung-Shik Jongmans

AI总结:

本文提出了一种新的多方会话类型方法,通过直接验证进程与全局协议规范,实现了表达能力和组合性的平衡。

摘要:

多方会话类型(MPST)为验证并发系统的安全性和活跃性提供了严格的理论基础。然而,现有方法往往迫使一种艰难的权衡:经典、基于投影的技术具有组合性但表达能力有限,而更近期的技术通过依赖非组合性的整体系统模型检查来实现更高的表达能力,但扩展性较差。本文介绍了一种新的MPST方法,称为合成方法,该方法在表达能力和组合性方面都取得了平衡。我们的关键创新是一个类型系统,它直接将每个进程与全局协议规范进行验证,该规范以一般的标记转换系统(LTS)表示,全局类型是其特殊情况。这种方法独特地避免了中间局部类型和投影的需要。我们证明,尽管该方法在概念上更简单,但支持了一组具有挑战性的协议,这些协议此前超出了MPST文献中组合性技术的范围。我们扩展了该类型系统,证明它可以验证任何构成“良好行为”LTS的规范,支持无法用标准全局类型语法表达的协议。整个框架,包括所有定理和许多示例,均已用Agda形式化并机械化,并且我们已经开发了一个原型实现,作为VS Code的扩展。

英文摘要:

Multiparty session types (MPST) provide a rigorous foundation for verifying the safety and liveness of concurrent systems. However, existing approaches often force a difficult trade-off: classical, projection-based techniques are compositional but limited in expressiveness, while more recent techniques achieve higher expressiveness by relying on non-compositional, whole-system model checking, which scales poorly. This paper introduces a new approach to MPST that delivers both expressiveness and compositionality, called the synthetic approach. Our key innovation is a type system that verifies each process directly against a global protocol specification, represented as a labelled transition system (LTS) in general, with global types as a special case. This approach uniquely avoids the need for intermediate local types and projection. We demonstrate that our approach, while conceptually simpler, supports a benchmark of challenging protocols that were previously beyond the reach of compositional techniques in the MPST literature. We generalise our type system, showing that it can validate processes against any specification that constitutes a "well-behaved" LTS, supporting protocols not expressible with the standard global type syntax. The entire framework, including all theorems and many examples, has been formalised and mechanised in Agda, and we have developed a prototype implementation as an extension to VS Code.

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

↑