English

Reflections on Termination of Linear Loops

Programming Languages 2021-05-31 v1

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 ff with integer eigenvalues and any integer arithmetic formula GG, there is a linear integer arithmetic formula that holds exactly for the states of ff for which GG is eventually invariant. Combining the two, we develop a monotone conditional termination analysis for general loops.

Keywords

Cite

@article{arxiv.2105.13941,
  title  = {Reflections on Termination of Linear Loops},
  author = {Shaowei Zhu and Zachary Kincaid},
  journal= {arXiv preprint arXiv:2105.13941},
  year   = {2021}
}
R2 v1 2026-06-24T02:34:44.526Z