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

TL;DR
This paper introduces algebraic and algorithmic techniques to compute polynomial loop invariants for complex loops, extending beyond linear cases using algebraic geometry and efficient algorithms for specific invariant forms.
Contribution
It presents two algorithms for generating polynomial invariants in general polynomial loops and a more efficient method for specific invariant forms, advancing the analysis of complex program loops.
Findings
Algorithms successfully generate polynomial invariants for complex loops.
The new methods outperform existing approaches in efficiency.
Applicable to a broader class of loops with polynomial assignments.
Abstract
Loop invariants are properties of a program loop that hold both before and after each iteration of the loop. They are often used to verify programs and ensure that algorithms consistently produce correct results during execution. Consequently, generating invariants becomes a crucial task for loops. We specifically focus on polynomial loops, where both the loop conditions and the 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 can have arbitrary degrees. Using 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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
