Multiparty session types (MPST) offer a framework for the description of communication-based protocols involving multiple participants. In the top-down approach to MPST, the communication pattern of the session is described using a global type. Then the global type is projected on to a local type for each participant, and the individual processes making up the session are type-checked against these projections. Typed sessions possess certain desirable properties such as safety, deadlock-freedom and liveness. In this work, we present the first mechanised proof of liveness for synchronous multiparty session types in the Rocq Proof Assistant. Building on recent work, we represent global and local types as coinductive trees using the paco library. We use a coinductively defined subtyping relation on local types together with another coinductively defined plain-merge projection relation relating local and global types. We then associate collections of local types, or local type contexts, with global types using this projection and subtyping relations, and prove an operational correspondence between a local type context and its associated global type. We utilise this association relation to prove the safety and liveness of associated local type contexts and, consequently, the multiparty sessions typed by these contexts. Besides clarifying the often informal proofs found in the MPST literature, our Rocq mechanisation also enables the certification of liveness properties of communication protocols. Our contribution amounts to around 14K lines of Rocq code, available at https://github.com/omerskeskin/mpstlive .


翻译:多方会话类型(MPST)为描述涉及多个参与者的基于通信的协议提供了一种框架。在MPST的自顶向下方法中,会话的通信模式使用全局类型来描述。然后,全局类型被投影为每个参与者的局部类型,组成会话的各个进程将根据这些投影进行类型检查。经过类型检查的会话具有某些理想属性,例如安全性、无死锁性和活性。在这项工作中,我们在Rocq证明助手中提出了首个针对同步多方会话类型活性的机械化证明。基于近期的研究,我们使用paco库将全局类型和局部类型表示为共归纳树。我们在局部类型上使用共归纳定义的子类型关系,以及另一个共归纳定义的、关联局部类型与全局类型的plain-merge投影关系。然后,我们将局部类型的集合(或称局部类型上下文)与全局类型通过这种投影和子类型关系关联起来,并证明了局部类型上下文与其关联全局类型之间的操作对应关系。我们利用这种关联关系来证明关联的局部类型上下文的安全性及活性,进而证明由这些上下文进行类型检查的多方会话的相应属性。除了澄清MPST文献中通常不够正式的证明外,我们的Rocq机械化实现还支持对通信协议活性属性的认证。我们的贡献约为14,000行Rocq代码,代码位于https://github.com/omerskeskin/mpstlive。

0
下载
关闭预览

相关内容

多模态大语言模型下游调优中“保持自我”的重要性
专知会员服务
17+阅读 · 2025年12月15日
多模态幻觉的评估与检测综述
专知会员服务
18+阅读 · 2025年7月28日
多模态对话情感识别:方法、趋势、挑战与前景综述
专知会员服务
20+阅读 · 2025年5月28日
《多模态大语言模型评估综述》
专知会员服务
41+阅读 · 2024年8月29日
多模态模型架构的演变
专知会员服务
71+阅读 · 2024年5月29日
《基于分类方法的自动人机对话》
专知会员服务
27+阅读 · 2023年7月18日
专知会员服务
149+阅读 · 2020年9月6日
智能合约的形式化验证方法研究综述
专知
16+阅读 · 2021年5月8日
对话系统近期进展
专知
37+阅读 · 2019年3月23日
论文浅尝 | 常识用于回答生成式多跳问题
开放知识图谱
16+阅读 · 2018年11月24日
知识在检索式对话系统的应用
微信AI
32+阅读 · 2018年9月20日
推荐中的序列化建模:Session-based neural recommendation
机器学习研究会
18+阅读 · 2017年11月5日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 6月5日
Arxiv
0+阅读 · 5月12日
VIP会员
最新内容
边缘计算的军事应用
专知会员服务
7+阅读 · 8月9日
一种考虑资源机动性的武器目标分配混合算法
专知会员服务
9+阅读 · 8月8日
《多域冲突比较支持模型》60页
专知会员服务
14+阅读 · 8月7日
相关VIP内容
多模态大语言模型下游调优中“保持自我”的重要性
专知会员服务
17+阅读 · 2025年12月15日
多模态幻觉的评估与检测综述
专知会员服务
18+阅读 · 2025年7月28日
多模态对话情感识别:方法、趋势、挑战与前景综述
专知会员服务
20+阅读 · 2025年5月28日
《多模态大语言模型评估综述》
专知会员服务
41+阅读 · 2024年8月29日
多模态模型架构的演变
专知会员服务
71+阅读 · 2024年5月29日
《基于分类方法的自动人机对话》
专知会员服务
27+阅读 · 2023年7月18日
专知会员服务
149+阅读 · 2020年9月6日
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员