Algebraic Tools for Computing Polynomial Loop Invariants
Erdenebayar Bayarmagnai, Fatemeh Mohammadi, R\'emi Pr\'ebet

TL;DR
This paper introduces algebraic geometry-based algorithms to compute polynomial loop invariants of arbitrary degree, extending beyond linear cases, with methods to handle computational complexity and parameterized initial conditions.
Contribution
It presents two novel algorithms for generating all polynomial invariants up to a given degree in loops with arbitrary polynomial assignments, including parameterized initial values.
Findings
Algorithms successfully generate polynomial invariants of arbitrary degree.
Methods to handle cases beyond computational limits are proposed.
Applicable to loops with polynomial assignments of any degree.
Abstract
Loop invariants are properties of a program loop that hold before and after each iteration of the loop. They are often employed to verify programs and ensure that algorithms consistently produce correct results during execution. Consequently, the generation of invariants becomes a crucial task for loops. We specifically focus on polynomial loops, where both the loop conditions and assignments within the loop are expressed as polynomials. Although computing polynomial invariants for general loops is undecidable, efficient algorithms have been developed for certain classes of loops. For instance, when all assignments within a while loop involve linear polynomials, the loop becomes solvable. In this work, we study the more general case where the polynomials exhibit arbitrary degrees. Applying tools from algebraic geometry, we present two algorithms designed to generate all polynomial…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · Logic, programming, and type systems · Embedded Systems Design Techniques
