paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Alignment complete relational Hoare logics for some and all

面向 some 与 all 的对齐完备关系 Hoare 逻辑
LMCS vol.Volume 21, Issue 42025匹配度 2/10 · 该论文是纯理论的形式化验证/关系霍尔逻辑工作,研究对齐完备性与 Cook 完备性,与用户关心的核心交叉点(LLM/Agent 与静态分析、形式化验证的结合)没有交集,也不涉及浮点或贝叶斯程序分析。仅在"形式化验证"这一宽泛领域上与 AI→PL 方向有微弱关联,且完全没有任何 LLM/Agent 或工程落地成分。引用 3 inbox
Ramana Nagasamudram, Anindya Banerjee, David A. Naumann
crossref: 2026-09-10

AI 速览

一句话:证明一般对齐自动机下 ∀∀ 与 ∀∃ 关系 Hoare 逻辑的对齐完备与 Cook 完备性。

关系验证常需对齐程序执行步骤,以便用简单关系断言证明程序间关系。已有关系霍尔逻辑(RHL)的对齐完备性仅针对临时定义的对齐自动机。本文基于程序迁移关系的乘积自动机,给出一般类别的 ∀∀ 对齐自动机,并证明由标准规则与基于带测试 Kleene 代数的语义保持重写规则组成的 RHL 相对该类对齐完备。作者还引入用于 ∀∃ 性质的新逻辑,证明其可靠且相对新的一般自动机对齐完备。两套 ∀∀/∀∃ 自动机均语义完备,因此两个逻辑都在 Cook 意义下完备。文中亦讨论对齐并非关系推理的唯一重要原则,并提出蕴含完备性作为评价 RHL 的进一步标准。

问题
如何在基于程序迁移关系的一般对齐自动机下,为程序间 ∀∀ 与 ∀∃ 关系建立组合式关系霍尔逻辑,并刻画其完备性。
方法
将执行对齐表示为乘积自动机,构造包含标准 RHL 规则和基于带测试 Kleene 代数的语义保持重写规则的逻辑,并引入新的 ∀∃ 逻辑。
评估
通过理论证明:两个逻辑分别相对相应的一般对齐自动机对齐完备,且自动机语义完备,因而均 Cook 完备;同时讨论对齐的局限并提出蕴含完备性。
原文摘要(Abstract)

In relational verification, judicious alignment of computational steps facilitates proof of relations between programs using simple relational assertions. Relational Hoare logics (RHL) provide compositional rules that embody various alignments of executions. Seemingly more flexible alignments can be expressed in terms of product automata based on program transition relations. A single degenerate alignment rule (sequential composition), atop a complete Hoare logic, comprises a RHL for $\forall\forall$ properties that is complete in the sense of Cook. The notion of alignment completeness was previously proposed as an additional measure, and some rules were shown to be alignment complete with respect to a few ad hoc forms of alignment automata. This paper proves alignment completeness with respect to a general class of $\forall\forall$ alignment automata, for a RHL comprised of standard rules together with a rule of semantics-preserving rewrites based on Kleene algebra with tests. A new logic for $\forall\exists$ properties is introduced and shown to be sound and alignment complete for a new general class of automata. The $\forall\forall$ and $\forall\exists$ automata are shown to be semantically complete. Thus both logics are complete in the sense of Cook. The paper includes discussion of why alignment is not the only important principle for relational reasoning and proposes entailment completeness as further means to evaluate RHLs.

链接与引用

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

BibTeX
@article{NagasamudramBN25,
  title = {Alignment complete relational Hoare logics for some and all},
  author = {Ramana Nagasamudram and Anindya Banerjee and David A. Naumann},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 21, Issue 4},
  year = {2025},
  doi = {10.46298/lmcs-21(4:21)2025}
}