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

使关系霍尔逻辑的对齐完备性成立

Making Relational Hoare Logic Alignment Complete

Anindya Banerjee, Ramana Nagasamudram, David A. Naumann

AI总结:

针对关系验证中的对齐完备性问题,提出基于带测试克林代数的语义保持重写规则,证明RHL相对于通用对齐自动机具有对齐完备性,打通了语法推理与自动机验证的壁垒。

摘要:

在关系验证中,对计算步骤进行合理对齐有助于使用简单的关系断言证明程序之间的关系。关系霍尔逻辑(Relational Hoare Logics,RHL)提供了体现多种对齐方式的组合式规则。看似更灵活的对齐方式可以通过基于程序迁移关系的乘积自动机来表达。普通意义下的RHL可借助单一退化对齐规则实现完备性。此前有研究基于对齐自动机提出了更令人满意的对齐完备性概念,并证明部分规则相对于几种特设形式的对齐自动机具有对齐完备性。本文利用基于带测试克林代数(Kleene algebra with tests)的语义保持重写规则,证明了一种RHL相对于一类非常通用的对齐自动机具有对齐完备性。该结果不仅解决了通用对齐完备性这一开放问题,还在便于人类理解的基于语法的推理与利于自动化验证的自动机表示之间架起了桥梁。

英文摘要:

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. Seemingly more flexible alignments can be expressed in terms of product automata based on program transition relations. A RHL can be complete, in the ordinary sense, using a single degenerate alignment rule. The notion of alignment completeness was previously proposed as a more satisfactory measure, based on alignment automata, and some rules were shown to be alignment complete with respect to a few ad hoc forms of alignment automata. Using a rule of semantics-preserving rewrites based on Kleene algebra with tests, an RHL is shown to be alignment complete with respect to a very general class of alignment automata. Besides solving the open problem of general alignment completeness, this result bridges between human-friendly syntax-based reasoning and automata representations that facilitate automated verification.

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

↑