skip to main content
research-article

On linear recurrence sequences and loop termination

Published: 22 April 2015 Publication History

Abstract

A sequence of real numbers is said to be positive if all terms are positive, and ultimately positive if all but finitely many terms are positive. In this article we survey recent progress on long-standing open problems concerning deciding the positivity and ultimate positivity of integer linear recurrence sequences. We briefly discuss some of the many contexts in which these problems arise, and relate them to the well-known Skolem Problem, which asks whether a given linear recurrence sequence has a zero term. We also highlight some of the mathematical techniques that have been used to obtain decision procedures for these problems, pointing out obstacles to further progress.
In the second half of this survey we move on to closely related questions concerning the termination of linear while loops. This is a well-studied subject in software verification and by now there is rich toolkit of techniques to prove termination in practice. However the decidability of termination for some of the most basic types of loop remains open. Here again we discuss recent progress and remaining open problems.

References

[1]
J. P. Bell and S. Gerhold. 2007. On the Positivity Set of a Linear Recurrence. Israel Jour. Math. 57 (2007).
[2]
A. M. Ben-Amram and S. Genaim. 2014. Ranking Functions for Linear-Constraint Loops. J. ACM 61, 4 (2014).
[3]
A. M. Ben-Amram, S. Genaim, and A. N. Masud. 2012. On the Termination of Integer Loops. ACM Trans. Program. Lang. Syst. 34, 4 (2012).
[4]
J. Berstel and M. Mignotte. 1976. Deux propriétés décidables des suites récurrentes linéaires. Bull. Soc. Math. France 104 (1976).
[5]
M. Bozga, R. Iosif, and F. Konecný. 2012. Deciding conditional termination. In Proc. TACAS (LNCS), Vol. 7214. Springer.
[6]
M. Braverman. 2006. Termination of integer linear programs. In Proc. CAV (LNCS), Vol. 4144. Springer.
[7]
J.-Y. Cai. 1994. Computing Jordan Normal Forms Exactly for Commuting Matrices in Polynomial Time. Int. J. Found. Comput. Sci. 5, 3/4 (1994), 293--302.
[8]
J. W. S. Cassels. 1965. An introduction to Diophantine approximation. Camb. Univ. Press.
[9]
B. Cook, A. Podelski, and A. Rybalchenko. 2011. Proving Program Termination. Commun. ACM 54, 5 (2011).
[10]
G. Everest, A. van der Poorten, I. Shparlinski, and T. Ward. 2003. Recurrence Sequences. American Mathematical Society.
[11]
J.-H. Evertse. 1984. On sums of S-units and linear recurrences. Compositio Mathematica 53, 2 (1984).
[12]
W. I. Gasarch. 2015. Proving Programs Terminate Using Well-Founded Orderings, Ramsey's Theorem, and Matrices. Advances in Computers 97 (2015), 147--200.
[13]
V. Halava, T. Harju, and M. Hirvensalo. 2006. Positivity of second order linear recurrent sequences. Discrete Applied Mathematics 154, 3 (2006).
[14]
V. Halava, T. Harju, M. Hirvensalo, and J. Karhumäki. 2005. Skolem's Problem -- On the Border between Decidability and Undecidability. Technical Report 683. Turku Centre for Computer Science.
[15]
R. Kannan and R. J. Lipton. 1986. Polynomial-Time Algorithm for the Orbit Problem. J. ACM 33, 4 (1986).
[16]
L. Khachiyan and L. Porkolab. 1997. Computing Integral Points in Convex Semi-algebraic Sets. In Proc. FOCS. 162--171.
[17]
V. Laohakosol and P. Tangsupphathawat. 2009. Positivity of third order linear recurrence sequences. Discrete Applied Mathematics 157, 15 (2009).
[18]
R. J. Lipton and K. W. Regan. 2013. People, Problems, and Proofs - Essays from Gödel's Lost Letter: 2010. Springer.
[19]
L. Liu. 2010. Positivity of Three-Term Recurrence Sequences. Elec. J. Comb. 17, 1 (2010).
[20]
D. W. Masser. 1988. Linear Relations on Algebraic Groups. In New Advances in Transcendence Theory. Camb. Univ. Press.
[21]
M. Mignotte, T. Shorey, and R. Tijdeman. 1984. The distance between terms of an algebraic recurrence sequence. J. für die reine und angewandte Math. 349 (1984).
[22]
J. Ouaknine, J. Sousa Pinto, and J. Worrell. 2015. On Termination of Integer Linear Loops. In Proc. SODA. ACM-SIAM.
[23]
J. Ouaknine and J. Worrell. 2012. Decision Problems for Linear Recurrence Sequences. In Proc. RP (LNCS), Vol. 7550. Springer.
[24]
J. Ouaknine and J. Worrell. 2014a. On the Positivity Problem for Simple Linear Recurrence Sequences. In Proc. ICALP (LNCS), Vol. 8573. Springer.
[25]
J. Ouaknine and J. Worrell. 2014b. Positivity Problems for Low-Order Linear Recurrence Sequences. In Proc. SODA. ACM-SIAM.
[26]
J. Ouaknine and J. Worrell. 2014c. Ultimate Positivity is Decidable for Simple Linear Recurrence Sequences. In Proc. ICALP (LNCS), Vol. 8573. Springer.
[27]
G. Rozenberg and A. Salomaa. 1994. Cornerstones of Undecidability. Prentice Hall.
[28]
A. Salomaa. 1976. Growth Functions of Lindenmayer Systems: Some New Approaches. In Automata, Languages, Development, A. Lindenmayer and G. Rozenberg (Eds.). North-Holland.
[29]
A. Salomaa and M. Soittola. 1978. Automata-theoretic aspects of formal power series. Springer.
[30]
M. Soittola. 1976. On D0L Synthesis Problem. In Automata, Languages, Development, A. Lindenmayer and G. Rozenberg (Eds.). North-Holland.
[31]
T. Tao. 2008. Structure and randomness: pages from year one of a mathematical blog. American Mathematical Society.
[32]
S. P. Tarasov and M. N. Vyalyi. 2011. Orbits of Linear Maps and Regular Languages. In Proc. CSR (LNCS), Vol. 6651. Springer.
[33]
A. Tiwari. 2004. Termination of Linear Programs. In Proc. CAV (LNCS), Vol. 3114. Springer.
[34]
A. J. van der Poorten and H. P. Schlickewei. 1982. The growth conditions for recurrence sequences. Macquarie Math. Reports 82-0041 (1982).
[35]
N. K. Vereshchagin. 1985. The problem of appearance of a zero in a linear recurrence sequence (in Russian). Mat. Zametki 38, 2 (1985).

Cited By

View all

Index Terms

  1. On linear recurrence sequences and loop termination

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM SIGLOG News
      ACM SIGLOG News  Volume 2, Issue 2
      April 2015
      36 pages
      EISSN:2372-3491
      DOI:10.1145/2766189
      Issue’s Table of Contents

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 22 April 2015
      Published in SIGLOG Volume 2, Issue 2

      Check for updates

      Qualifiers

      • Research-article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)20
      • Downloads (Last 6 weeks)1
      Reflects downloads up to 28 Feb 2025

      Other Metrics

      Citations

      Cited By

      View all
      • (2025)Simple Linear Loops: Algebraic Invariants and ApplicationsProceedings of the ACM on Programming Languages10.1145/37048629:POPL(745-771)Online publication date: 9-Jan-2025
      • (2024)On Rational Recursion for Holonomic SequencesComputer Algebra in Scientific Computing10.1007/978-3-031-69070-9_18(314-327)Online publication date: 1-Sep-2024
      • (2023)Recent Advances in Algorithmic Problems for SemigroupsACM SIGLOG News10.1145/3636362.363636510:4(3-23)Online publication date: 4-Dec-2023
      • (2023)From Polynomial Invariants to Linear LoopsProceedings of the 2023 International Symposium on Symbolic and Algebraic Computation10.1145/3597066.3597109(398-406)Online publication date: 24-Jul-2023
      • (2023)The Power of Positivity2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS56636.2023.10175758(1-11)Online publication date: 26-Jun-2023
      • (2023)On the Complexity of Robust Eventual Inequality Testing for C-Finite FunctionsReachability Problems10.1007/978-3-031-45286-4_8(98-112)Online publication date: 11-Oct-2023
      • (2023)MDPs as Distribution Transformers: Affine Invariant Synthesis for Safety ObjectivesComputer Aided Verification10.1007/978-3-031-37709-9_5(86-112)Online publication date: 17-Jul-2023
      • (2023)What Else is Undecidable About Loops?Relational and Algebraic Methods in Computer Science10.1007/978-3-031-28083-2_11(176-193)Online publication date: 3-Apr-2023
      • (2022)On the Skolem Problem and the Skolem ConjectureProceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3531130.3533328(1-9)Online publication date: 2-Aug-2022
      • (2022)O-Minimal Invariants for Discrete-Time Dynamical SystemsACM Transactions on Computational Logic10.1145/350129923:2(1-20)Online publication date: 14-Jan-2022
      • Show More Cited By

      View Options

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Figures

      Tables

      Media

      Share

      Share

      Share this Publication link

      Share on social media