arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.10045cs.LO
收藏

针对存在与全称的对齐完备关系型霍尔逻辑

Alignment complete relational Hoare logics for some and all

Stevens Institute of Technology(史蒂文斯理工学院);Dartmouth College(达特茅斯学院)

Ramana Nagasamudram, Anindya Banerjee, David A. Naumann

AI总结:

本文针对关系验证中的计算步骤对齐问题,提出并证明了针对∀∀和∀∃性质的关系型霍尔逻辑的对齐完备性,同时讨论了对齐在关系推理中的局限性并提出蕴含完备性作为评估手段。

摘要:

在关系验证中,对计算步骤的明智对齐有助于使用简单关系断言证明程序间的关系。关系型霍尔逻辑(RHL)提供了体现各种执行对齐的组合规则。看似更灵活的对齐可通过基于程序转移关系的乘积自动机来表达。在完备霍尔逻辑基础上,单个退化对齐规则(顺序组合)构成了针对∀∀性质的RHL,该RHL在Cook意义下是完备的。对齐完备性概念先前被提出作为额外衡量标准,且一些规则被证明相对于少数特设形式的对齐自动机是对齐完备的。本文证明,对于由标准规则及基于带测试克林代数的语义保持重写规则构成的RHL,其相对于∀∀对齐自动机的一般类是对齐完备的。本文引入了针对∀∃性质的新逻辑,并证明其相对于新的一般类自动机是可靠且对齐完备的。∀∀和∀∃自动机被证明是语义完备的,因此两种逻辑在Cook意义下都是完备的。本文还讨论了为何对齐不是关系推理的唯一重要原则,并提出蕴含完备性作为评估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 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.

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

↑