The problem
Start with 0 and 1. Make each next number by doubling the latest number and subtracting the one before it. This gives 0, 1, 2, 3, 4, and so on; here every number is nonnegative.
For any rule of this kind, with fixed integer weights and finitely many starting integers, can a program always decide whether every number it will ever produce is nonnegative? Checking a long initial list alone does not answer a question about all future steps.[1]
Can a finite algorithm always determine whether a fixed integer update rule ever produces a negative number, including at the start? Consider , and . Its terms are ; substitution shows satisfies the rule.
A linear recurrence uses fixed coefficients to combine a bounded number of previous terms. The recurrence order is the smallest number of preceding positions needed in such a relation. The input here has integer coefficients and initial values, with no fixed bound on order. Positivity requires for every , not merely for all sufficiently late terms.[1] [2]
Scope
Integer initial values and fixed integer recurrence coefficients; arbitrary finite recurrence order. Every term, including the initial segment, must be nonnegative.
What remains open
No decision method is known for arbitrary order.[2]
Low-order and other restricted families have decision procedures, but those restrictions do not yield a procedure for arbitrary order. For a simple recurrence, the polynomial determined by its coefficients has no repeated roots: values at which that polynomial is zero. Even in that restricted family, deciding that every term is nonnegative remains open in general.
Ultimate Positivity asks whether the terms are nonnegative from some point onward, and it is decidable for simple recurrences. The distinction is visible with starting values under the same doubling-and-subtraction rule: the terms are . They are eventually nonnegative but fail Positivity because of the first term.[2]
Why it matters
A program can repeatedly update numbers by a fixed linear rule and continue only while a chosen quantity stays nonnegative. Knowing whether that quantity ever becomes negative can decide whether this particular loop stops. The question connects a compact arithmetic rule with the behavior of an unbounded computation.[1] [2]
Linear recurrence values can be represented by repeated multiplication of a fixed matrix, followed by reading a linear combination of its coordinates. This places the sign question inside finite-dimensional linear dynamics.
For a loop that uses the corresponding updates and continues while that readout is nonnegative, a negative term marks a stopping step; nonnegativity forever keeps it running. The connection concerns this specific form of loop, not all programs. It gives the infinite sign condition a concrete computational role while exposing how hard it can be to turn linear structure into a terminating verification method.[1] [2]
Definitions
3 terms
linear recurrence
An infinite sequence whose terms satisfy a fixed linear relation with finitely many previous terms, together with specified initial values. The coefficients in this target are fixed integers, not functions of the step number.[1] [2]
recurrence order
The smallest number of preceding positions needed in a linear recurrence relation for the sequence. Results for a bounded order do not by themselves decide inputs of arbitrary order.[1] [2]
Ultimate Positivity
The question whether all terms from some index onward are nonnegative. A negative initial term can make Positivity false while Ultimate Positivity is true; results for the latter do not automatically settle the former.[2]
Sources
- Positivity Problems for Reversible Linear Recurrence Sequences
Notes on Positivity Problems for Reversible Linear Recurrence Sequences
Published paper defines integer Positivity and establishes restricted reversible-recurrence cases.
- A Survey of the Skolem and Positivity Problems for Linear Recurrence Sequences
Notes on A Survey of the Skolem and Positivity Problems for Linear Recurrence Sequences
Submitted author manuscript distinguishes Positivity, Ultimate Positivity and known order restrictions.