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

高阶分离逻辑中的异步概率耦合

Asynchronous Probabilistic Couplings in Higher-Order Separation Logic

Simon Oddershede Gregersen, Alejandro Aguirre, Philipp G. Haselwarter, Joseph Tassarotti, Lars Birkedal

AI总结:

本文提出Clutch,一种支持异步概率耦合的高阶概率关系分离逻辑,用于推理高阶程序的上下文精化与等价性,并在Coq中形式化验证。

摘要:

概率耦合是许多概率关系程序逻辑的基础,并且在关联两个程序中的随机采样语句时出现。在关系程序逻辑中,这表现为专门的耦合规则,例如,我们可以推理两个采样语句返回相同的值。然而,这种方法从根本上要求对齐或“同步”两个程序的采样语句,而这并不总是可能的。在本文中,我们开发了Clutch,一种高阶概率关系分离逻辑,通过支持异步概率耦合来解决这个问题。我们使用Clutch开发了一个逻辑步进索引的逻辑关系,以推理用丰富语言编写的高阶程序的上下文精化与等价性,该语言具有高阶局部状态和不可预测多态性。最后,我们通过多个案例研究证明了我们方法的实用性。论文中出现的所有结果已在Coq证明助手中使用Coquelicot库和Iris分离逻辑框架进行了形式化。

英文摘要:

Probabilistic couplings are the foundation for many probabilistic relational program logics and arise when relating random sampling statements across two programs. In relational program logics, this manifests as dedicated coupling rules that, e.g., say we may reason as if two sampling statements return the same value. However, this approach fundamentally requires aligning or "synchronizing" the sampling statements of the two programs which is not always possible. In this paper, we develop Clutch, a higher-order probabilistic relational separation logic that addresses this issue by supporting asynchronous probabilistic couplings. We use Clutch to develop a logical step-indexed logical relational to reason about contextual refinement and equivalence of higher-order programs written in a rich language with higher-order local state and impredicative polymorphism. Finally, we demonstrate the usefulness of our approach on a number of case studies. All the results that appear in the paper have been formalized in the Coq proof assistant using the Coquelicot library and the Iris separation logic framework.

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

↑