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

概率多方会话类型的模型检测

Model Checking Probabilistic Multiparty Session Types

University of Oxford(牛津大学)

Aleksander Junge, Leo Seojun Lee, Joseph Paulus, Nobuko Yoshida, David Parker

AI总结:

本文提出概率多方会话类型扩展,开发相关子类型与合并算子,实现会话类型到PRISM的转换,通过工具Prose检测会话的安全性、无死锁性与活性,为概率分布式系统提供验证方法。

摘要:

分布式系统越来越依赖随机化,但针对这类系统的验证技术与构建系统所用的编程抽象仍相互独立。本文提出了通用多方会话类型的首个概率扩展——自底向上对会话进行类型化,无需全局规范,仅从会话类型推导出多方会话的定量属性。我们的类型结合了概率选择与非确定性选择(用于抽象依赖数据的控制),并允许分离选择,即选择或分支的每个分支可涉及不同参与者,这是以往概率多方会话类型系统未实现的组合。为实现这一点,我们开发了新颖的概率子类型关系与合并算子,利用其证明了类型健全性与会话保真度。类型上下文的语义将非确定性解析、概率选择与同步分离,因此每个类型上下文都诱导出一个有限马尔可夫决策过程。基于此,我们推导了在所有公平对抗调度器下成立的健全下界,即会话无死锁且存活的概率——这是概率会话演算首个(部分或完全的)行为属性保证。为连接会话类型与概率模型检测,我们引入了从会话类型到PRISM建模语言的首个转换,并证明其相对于我们的操作语义是健全且完备的。我们在工具链Prose中实现了该框架,它可将概率多方会话类型上下文转换为PRISM,并检测安全性、无死锁性与活性。

英文摘要:

Distributed systems increasingly rely on randomisation; yet, verification techniques for such systems remain separate from the programming abstractions used to build them. This paper proposes the first probabilistic extension of general multiparty session types - typing sessions bottom-up, with no global specification - deriving quantitative properties of a multiparty session from its session types alone. Our types combine probabilistic choice with nondeterministic choice that abstracts data-dependent control, and allow separated choices, where each branch of a selection or branching may involve a different participant - a combination beyond previous probabilistic multiparty session type systems. To achieve this, we develop a novel probabilistic subtyping relation and merge operator, using which we prove type soundness and session fidelity. The semantics of typing contexts separates nondeterministic resolution, probabilistic choice, and synchronisation, so that every typing context induces a finite Markov decision process. On it, we derive sound lower bounds, holding under every fair adversarial scheduler, on the probability that a session is deadlock-free and live - the first behavioural property guarantees, partial or otherwise, for a probabilistic session calculus. To connect session types with probabilistic model checking, we introduce the first translation from session types into the PRISM modelling language, and prove it sound and complete with respect to our operational semantics. We implement the framework in the toolchain Prose, which translates probabilistic multiparty session typing contexts into PRISM and checks safety, deadlock-freedom, and liveness.

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

↑