×

zbMATH — the first resource for mathematics

Reasoning about loops using Vampire in KeY. (English) Zbl 06528798
Davis, Martin (ed.) et al., Logic for programming, artificial intelligence, and reasoning. 20th international conference, LPAR-20 2015, Suva, Fiji, November 24–28, 2015. Proceedings. Berlin: Springer (ISBN 978-3-662-48898-0/pbk; 978-3-662-48899-7/ebook). Lecture Notes in Computer Science 9450, 434-443 (2015).
Summary: We describe symbol elimination and consequence finding in the first-order theorem prover Vampire for automatic generation of quantified invariants, possibly with quantifier alternations, of loops with arrays. Unlike the previous implementation of symbol elimination in Vampire, our work is not limited to a specific programming language but provides a generic framework by relying on a simple guarded command representation of the input loop. We also improve the loop analysis part in Vampire by generating loop properties more easily handled by the saturation engine of Vampire. Our experiments show that, with our changes, the number of generated invariants is decreased, in some cases, by a factor of 20. We also provide a framework to use our approach to invariant generation in conjunction with pre- and post-conditions of program loops. We use the program specification to find relevant invariants as well as to verify the partial correctness of the loop. As a case study, we demonstrate how symbol elimination in Vampire can be used as an interface for realistic imperative languages, by integrating our tool in the KeY verification system, thus allowing reasoning about loops in Java programs in a fully automated way, without any user guidance.
For the entire collection see [Zbl 1326.68013].
MSC:
03B70 Logic in computer science
68T27 Logic in artificial intelligence
PDF BibTeX XML Cite
Full Text: DOI