异步混合选择在多党会话类型中的应用
Mixed Choice in Asynchronous Multiparty Session Types
AI总结:
本文提出了一种支持异步混合选择的多党会话类型框架,并通过工具链验证了其正确性。
摘要:
我们提出了一种多党会话类型(MST)框架,支持异步混合选择(MC)。我们提出了一种核心构造,允许分布式参与者之间协议状态的暂时不一致,但确保所有参与者最终都能达到一致的状态。我们通过建立进展属性和全局类型与分布式局部类型投影之间的操作对应性来证明系统正确性。基于我们的理论,我们实现了一个实用的工具链,用于指定和验证具有MC特性的异步MST协议,并在Erlang/OTP中编程符合规范的gen_statem进程。我们通过使用我们的工具链来指定并重新实现RabbitMQ经纪人的amqp_client部分来测试我们的框架。
英文摘要:
We present a multiparty session type (MST) framework with asynchronous mixed choice (MC). We propose a core construct for MC that allows transient inconsistencies in protocol state between distributed participants, but ensures all participants can always eventually reach a mutually consistent state. We prove the correctness of our system by establishing a progress property and an operational correspondence between global types and distributed local type projections. Based on our theory, we implement a practical toolchain for specifying and validating asynchronous MST protocols featuring MC, and programming compliant gen_statem processes in Erlang/OTP. We test our framework by using our toolchain to specify and reimplement part of the amqp_client of the RabbitMQ broker for Erlang.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。