English

Trace Logic for Inductive Loop Reasoning

Logic in Computer Science 2020-08-07 v2 Symbolic Computation

Abstract

We propose trace logic, an instance of many-sorted first-order logic, to automate the partial correctness verification of programs containing loops. Trace logic generalizes semantics of program locations and captures loop semantics by encoding properties at arbitrary timepoints and loop iterations. We guide and automate inductive loop reasoning in trace logic by using generic trace lemmas capturing inductive loop invariants. Our work is implemented in the RAPID framework, by extending and integrating superposition-based first-order reasoning within RAPID. We successfully used RAPID to prove correctness of many programs whose functional behavior are best summarized in the first-order theories of linear integer arithmetic, arrays and inductive data types.

Keywords

Cite

@article{arxiv.2008.01387,
  title  = {Trace Logic for Inductive Loop Reasoning},
  author = {Pamina Georgiou and Bernhard Gleiss and Laura Kovács},
  journal= {arXiv preprint arXiv:2008.01387},
  year   = {2020}
}

Comments

Related Version: A compact, peer-reviewed version of this paper will be available in the conference proceedings of Formal Methods of Computer-Aided Design (FMCAD) 2020