Generating Loop Invariants by Computing Vanishing Ideals of Sample Points

Bin Wu,Liyong Shen,Min Wu,Zhengfeng Yang,Zhenbing Zeng
DOI: https://doi.org/10.48550/arxiv.1111.0732
2011-01-01
Abstract:Loop invariants play a very important role in proving correctness of programs. In this paper, we address the problem of generating invariants of polynomial loop programs. We present a new approach, for generating polynomial equation invariants of polynomial loop programs through computing vanishing ideals of sample points. We apply rational function interpolation, based on early termination technique, to generate invariants of loop programs with symbolic initial values. Our approach avoids first-order quantifier elimination and cylindrical algebraic decomposition(CAD). An algorithm for generating polynomial invariants is proposed and some examples are given to illustrate the algorithm. Furthermore, we demonstrate on a set of loop programs with symbolic initial values that our algorithm can yield polynomial invariants with degrees high up to 15.
What problem does this paper attempt to address?