Reflections on Termination of Linear Loops
Shaowei Zhu, Zachary Kincaid

TL;DR
This paper leverages linear dynamical systems techniques to analyze the termination behavior of general loops, providing new methods for modeling and reasoning about loop invariance and termination conditions.
Contribution
It introduces a framework connecting linear dynamical systems with loop termination analysis, including models for affine transition systems and invariant conditions.
Findings
Loops expressible in linear integer arithmetic have a deterministic affine transition system model
For systems with integer eigenvalues, invariant conditions can be exactly characterized by linear integer formulas
Develops a monotone conditional termination analysis method for general loops
Abstract
This paper shows how techniques for linear dynamical systems can be used to reason about the behavior of general loops. We present two main results. First, we show that every loop that can be expressed as a transition formula in linear integer arithmetic has a best model as a deterministic affine transition system. Second, we show that for any linear dynamical system with integer eigenvalues and any integer arithmetic formula , there is a linear integer arithmetic formula that holds exactly for the states of for which is eventually invariant. Combining the two, we develop a monotone conditional termination analysis for general loops.
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 · Advanced Database Systems and Queries
