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

一阶逻辑图形程序(扩展版)

Verifying Graph Programs with First-Order Logic (Extended Version)

Gia Wulandari, Detlef Plump

摘要:

我们认为霍尔式验证的图形程序设计语言GP 2。在以前的工作中,图形属性指定的所谓的E-条件,扩展嵌套的图形条件。然而,这种类型的断言对于习惯于标准一阶逻辑中的形式化规范的程序员来说并不容易理解。在本文中,我们提出了一种方法来验证GP 2程序与一个标准的一阶逻辑。我们展示了如何构建一个最强的自由后置条件的规则模式和先决条件。然后我们扩展了这个构造以获得任意无循环程序的最强自由后置条件。与以前的工作相比,这允许的原因是一个非常普遍的类图程序。特别是,许多程序与嵌套循环可以验证新的演算。

英文摘要:

We consider Hoare-style verification for the graph programming language GP 2. In previous work, graph properties were specified by so-called E-conditions which extend nested graph conditions. However, this type of assertions is not easy to comprehend by programmers that are used to formal specifications in standard first-order logic. In this paper, we present an approach to verify GP 2 programs with a standard first-order logic. We show how to construct a strongest liberal postcondition with respect to a rule schema and a precondition. We then extend this construction to obtain strongest liberal postconditions for arbitrary loop-free programs. Compared with previous work, this allows to reason about a vastly generalised class of graph programs. In particular, many programs with nested loops can be verified with the new calculus.

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

↑