paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Infinitary Relational Logic

无穷关系逻辑
OOPSLA 10(OOPSLA2)2026匹配度 3/10 · 论文属于程序验证与分离逻辑/定理证明方向,具备形式化理论和 Lean 工程实现,但与用户当前核心关注的 LLM/Agent 交叉、浮点程序分析、贝叶斯程序分析均无直接关系;它也不是静态分析在 ML 系统或 Agentic 程序上的应用。引用 0 inbox
Vladimir Gladshtein, Qiyuan Zhao, Yuxi Ling, Sean Wang, Ilya Sergey
crossref: 2026-10-02

AI 速览

一句话:提出首个可验证无穷程序族关系性质的 Hoare 风格分离逻辑 IRL,并在 Lean 中实现。

关系程序逻辑常用于证明多个程序执行之间的关系性质,但此前难以处理无穷程序族。本文提出 Infinitary Relational Logic (IRL),首个能对任意无穷程序族陈述并证明关系性质的 Hoare 风格分离逻辑。IRL 将分离逻辑三元组推广为以任意无穷集合为索引的程序族规范,并提供依据索引集结构推理的通用证明规则。作者在 Lean 中实现其基础嵌入与验证工具:在应用上,验证了计算机图形学与地理信息系统中若干遍历数组编码连续对象的此前未验证算法,表明用代码表示隐式连续数据可得到简洁可复用的证明且兼容非关系 Hoare 推理;在理论上,形式化验证了新概念 Weird Machine Realisability,首次刻画脆弱程序允许的非预期行为空间。

问题
如何用 Hoare 风格分离逻辑对可能无穷多个程序组成的族陈述并证明关系性质,并支持依据索引集结构的推理。
方法
IRL 将分离逻辑三元组推广到以任意无穷集合索引的程序族,提供通用证明规则,并在 Lean 中实现基础嵌入与验证工具。
评估
在 Lean 中形式化案例研究,验证图形学与地理信息系统算法和 Weird Machine Realisability 概念。
原文摘要(Abstract)

Relational program logics are a popular formalism for stating and proving properties that relate executions of several computations. We present Infinitary Relational Logic (IRL)—the first Hoare-style Separation Logic that allows one to state and prove relational properties of possibly infinite families of arbitrary programs. The key insights behind IRL are to (a) generalise relational program specifications in the style of Separation Logic triples to families of programs indexed by arbitrary infinite sets, and (b) provide general proof rules that support reasoning principles guided by the structure of these index sets. We have implemented IRL as a foundational embedding and verification tool on top of the Lean proof assistant. We demonstrate its power by showcasing both the practical and theoretical advances IRL brings to the state of the art in deductive program verification. To show the former, we use IRL to specify and prove the correctness of a series of previously unverified algorithms from computer graphics and geo-spatial information systems that iterate over array-encoded continuous objects. In doing so, we show that specifying representations of implicitly continuous data using code rather than traditional state invariants offers pragmatic benefits in the form of concise and reusable proofs, while retaining full compatibility with conventional non-relational Hoare-style reasoning. To show the latter, we use IRL to specify and verify a novel notion we call Weird Machine Realisability, providing the first conceptual framework that formally characterises the space of unintended behaviours permitted by a vulnerable program. All our case studies are formalised in Lean.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot12111,
  title = {Infinitary Relational Logic},
  author = {Vladimir Gladshtein and Qiyuan Zhao and Yuxi Ling and Sean Wang and Ilya Sergey},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {OOPSLA2},
  year = {2026},
  doi = {10.1145/3839520}
}