Reflections on Termination of Linear Loops
Shaowei Zhu, Zachary Kincaid
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 f with integer eigenvalues and any integer arithmetic formula G, there is a linear integer arithmetic formula that holds exactly for the states of f for which G is eventually invariant. Combining the two, we develop a monotone conditional termination analysis for general loops.
Def'n of z Next we show that H(Z) is isomorphic to T , and therefore has rational spectrum. Define a bijective linear map e : S H(Z) → S T by e(x, c) x + cs(0, 1). We
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 96420992-96d6-45bb-9ec9-af8b37b0cdfbCited by top-tier papers1
Ask how each one uses itBuilds on1
Related papers
- Breaking the Mold: Nonlinear Ranking Function Synthesis Without TemplatesShaowei Zhu, Zachary KincaidCAV 2024 · 2 citations
- Monitoring Arithmetic Temporal Properties on Finite TracesPaolo Felli, Marco Montali, Fabio Patrizi, Sarah WinklerAAAI 2023 · 14 citations
- Simple Linear Loops: Algebraic Invariants and ApplicationsRida Ait El Manssour, George Kenison, Mahsa Shirmohammadi, Anton VaronkaPOPL 2025 · 2 citations
- Porous InvariantsEngel Lefaucheux, Joël Ouaknine, David Purser, James WorrellCAV 2021 · 6 citations
- When Less Is More: Consequence-Finding in a Weak Theory of ArithmeticZachary Kincaid, Nicolas Koh, Shaowei ZhuPOPL 2023 · 8 citations
