Simple Linear Loops: Algebraic Invariants and Applications
Rida Ait El Manssour, George Kenison, Mahsa Shirmohammadi, Anton, Varonka

TL;DR
This paper presents a polynomial-space algorithm for generating the strongest algebraic invariants in simple linear loops, with applications in verification and synthesis, and analyzes their computational complexity.
Contribution
It introduces a new polynomial-space algorithm for invariant generation in simple linear loops and explores the complexity of related verification and synthesis problems.
Findings
Algorithm computes all polynomial invariants efficiently for fixed variables.
Invariant verification is coNP-complete and in PSPACE with different input representations.
Loop synthesis problems are as hard as Hilbert's Tenth problem, but become decidable under certain constraints.
Abstract
The automatic generation of loop invariants is a fundamental challenge in software verification. While this task is undecidable in general, it is decidable for certain restricted classes of programs. This work focuses on invariant generation for (branching-free) loops with a single linear update. Our primary contribution is a polynomial-space algorithm that computes the strongest algebraic invariant for simple linear loops, generating all polynomial equations that hold among program variables across all reachable states. The key to achieving our complexity bounds lies in mitigating the blowup associated with variable elimination and Gr\"obner basis computation, as seen in prior works. Our procedure runs in polynomial time when the number of program variables is fixed. We examine various applications of our results on invariant generation, focusing on invariant verification and loop…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematics and Applications
