Skip to main content
QUICK REVIEW

[Paper Review] Termination of Linear Loops over the Integers

Mehran Hosseini, Joël Ouaknine|arXiv (Cornell University)|Feb 20, 2019
semigroups and automata theoryComputer Science22 references11 citations
TL;DR

This paper establishes the decidability of termination for single-path while loops over integers with affine updates and guards, resolving a long-standing conjecture by Tiwari (2004). The authors develop a decision procedure based on algebraic number theory and convex geometry, using eigenvalue relations and semi-algebraic sets to characterize non-terminating points without requiring solutions to the hard Positivity Problem.

ABSTRACT

We consider the problem of deciding termination of single-path while loops with integer variables, affine updates, and affine guard conditions. The question is whether such a loop terminates on all integer initial values. This problem is known to be decidable for the subclass of loops whose update matrices are diagonalisable, but the general case has remained open since being conjectured decidable by Tiwari in 2004. In this paper we show decidability of determining termination for arbitrary update matrices, confirming Tiwari's conjecture. For the class of loops considered in this paper, the question of deciding termination on a specific initial value is a longstanding open problem in number theory. The key to our decision procedure is in showing how to circumvent the difficulties inherent in deciding termination on a fixed initial value.

Motivation & Objective

  • To resolve the open problem of deciding termination for single-path affine loops over integers with arbitrary integer update matrices.
  • To extend prior decidability results that required diagonalizable update matrices to the general case.
  • To circumvent the need to solve the Positivity Problem for linear recurrence sequences by exploiting the freedom of initial value selection.
  • To provide a decision procedure for termination that avoids reliance on advanced Diophantine approximation techniques.

Proposed method

  • Leverages algebraic number theory to compute all multiplicative relations among eigenvalues of the update matrix using Masser's result.
  • Defines semi-algebraic sets of 'non-termination candidates' based on eigenvalue dominance and guard conditions.
  • Uses Kronecker's theorem on simultaneous Diophantine approximation and Khinchine's flatness theorem to analyze the geometry of integer points.
  • Applies the Khachiyan-Porkolab result to decide whether convex semi-algebraic sets contain integer points.
  • Constructs dominance relations among eigenvalues via the preorder ≼ and identifies dominant equivalence classes for each guard.
  • Reduces the termination decision to checking integer point existence in finitely many convex semi-algebraic sets W_E1,…,Em.

Experimental results

Research questions

  • RQ1Is termination decidable for single-path affine loops over integers when the update matrix is not necessarily diagonalizable?
  • RQ2Can the inherent difficulty of the Positivity Problem for linear recurrence sequences be bypassed in the context of loop termination over Z^d?
  • RQ3Can a decision procedure be constructed for termination over all integer initial values without characterizing individual non-terminating points?
  • RQ4Does the existence of integer points in semi-algebraic sets derived from eigenvalue structure determine loop non-termination?
  • RQ5Can tools from the geometry of numbers and algebraic number theory be combined effectively to solve termination in this setting?

Key findings

  • The paper establishes that termination of single-path affine loops over integers is decidable for arbitrary integer update matrices, confirming Tiwari’s 2004 conjecture.
  • The decision procedure avoids solving the Positivity Problem by focusing on the existence of integer points in semi-algebraic sets derived from eigenvalue structure.
  • The method relies on computing multiplicative relations among eigenvalues using Masser’s algorithm, enabling effective construction of candidate sets.
  • The existence of an integer point in any of the convex semi-algebraic sets W_E1,…,Em is both necessary and sufficient for non-termination.
  • The procedure is effective and relies only on standard symbolic computation with algebraic numbers and decidable convex integer point existence.
  • The result generalizes prior work restricted to diagonalizable matrices, providing a complete solution for the general case.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.