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

一种用于对称性性质的Hoare逻辑

A Hoare Logic for Symmetry Properties

Vaibhav Mehta, Justin Hsu

AI总结:

针对现有形式化方法难以推理程序对称性性质的不足,提出基于群作用的Hoare风格验证逻辑,开发原型工具SymVerif并在基准测试中验证有效性,还发现了已有动力系统模型的错误。

摘要:

许多自然的程序正确性性质可以用对称性来表述,但现有形式化方法对这类性质的推理支持甚少。我们研究如何形式化验证一大类以群作用表述的对称性性质。为指定这些性质,我们设计了一种群作用语法,支持标准构造和自然的蕴涵概念。随后,我们开发了一种Hoare风格的逻辑来验证命令式程序的对称性性质,其中用群作用替代了典型的前置条件和后置条件断言。最后,我们开发了原型工具SymVerif,并用它在一系列手工构建的基准测试上验证对称性性质。我们的工具在McLachlan和Quispel 2002年描述的一个动力系统模型中发现了一个错误。

英文摘要:

Many natural program correctness properties can be stated in terms of symmetries, but existing formal methods have little support for reasoning about such properties. We consider how to formally verify a broad class of symmetry properties expressed in terms of group actions. To specify these properties, we design a syntax for group actions, supporting standard constructions and a natural notion of entailment. Then, we develop a Hoare-style logic for verifying symmetry properties of imperative programs, where group actions take the place of the typical pre- and post-condition assertions. Finally, we develop a prototype tool SymVerif, and use it to verify symmetry properties on a series of handcrafted benchmarks. Our tool uncovered an error in a model of a dynamical system described by \citet{McLachlan_Quispel_2002}.

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

↑