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

全自动等价性证明

Completely Automated Equivalence Proofs

Qi Zhou, David Heath, William Harris

摘要:

不完全的(即,终止不敏感)等价在软件开发和教育中具有重要的实际应用。传统的等价验证器通常依赖于给定的关系摘要和建议的同步点的组合;对于没有正式方法背景的程序员来说,这样的信息可能非常困难,以提供具有不同逻辑的程序对。在这项工作中,我们提出了一个完全自动化的验证确定部分等价,命名为Pequod。Pequod自动合成传统上只能通过仔细手动构造产品程序才能实现的表达性等价证明。为此,Pequod为选定的程序路径对合成关系证明,并将每个路径的关系证明组合起来,以合成关系程序不变量。为了评估Pequod,我们将其实现为针对Java虚拟机字节码的工具,并将其应用于验证学生提交的数百对解决方案的等效性,这些解决方案用于流行的在线编码平台上托管的问题,其中大部分无法通过现有技术进行验证。

英文摘要:

Verifying partial (i.e., termination-insensitive) equivalence of programs has significant practical applications in software development and education. Conventional equivalence verifiers typically rely on a combination of given relational summaries and suggested synchronization points; such information can be extremely difficult for programmers without a background in formal methods to provide for pairs of programs with dissimilar logic. In this work, we propose a completely automated verifier for determining partial equivalence, named Pequod. Pequod automatically synthesizes expressive proofs of equivalence conventionally only achievable via careful, manual constructions of product programs To do so, Pequod syntheses relational proofs for selected pairs of program paths and combines the per-path relational proofs to synthesize relational program invariants. To evaluate Pequod, we implemented it as a tool that targets Java Virtual Machine bytecode and applied it to verify the equivalence of hundreds of pairs of solutions submitted by students for problems hosted on popular online coding platforms, most of which could not be verified by existing techniques.

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

↑