Abstract
We consider the problem of deciding ω-regular properties on infinite traces produced by linear loops. Here we think of a given loop as producing a single infinite trace that encodes information about the signs of program variables at each time step. Formally, our main result is a procedure that inputs a prefix-independent ω-regular property and a sequence of numbers satisfying a linear recurrence, and determines whether the sign description of the sequence (obtained by replacing each positive entry with “+”, each negative entry with “−”, and each zero entry with “0”) satisfies the given property. Our procedure requires that the recurrence be simple, i.e., that the update matrix of the underlying loop be diagonalisable. This assumption is instrumental in proving our key technical lemma: namely that the sign description of a simple linear recurrence sequence is almost periodic in the sense of Muchnik, Sem'enov, and Ushakov. To complement this lemma, we give an example of a linear recurrence sequence whose sign description fails to be almost periodic. Generalising from sign descriptions, we also consider the verification of properties involving semi-algebraic predicates on program variables.
Highlights
The decidability of monadic second-order logic over the structure ⟨N,
For any linear loop and any polynomial function on the program variables, the sequence of values assumed by the function along an infinite execution of the loop is a linear recurrence sequence
One of the main results of this paper is that the sign description of a given simple lrs is an effectively almost periodic word
Summary
The decidability of monadic second-order logic (mso) over the structure ⟨N, 0}, Z := {n ∈ N : un = 0}, and N := {n ∈ N : un < 0}. Given a prefix-independent ω-regular language L and a simple lrs u, it is decidable whether the sign description of u belongs to L This result allows us to model check prefix-independent mso properties that refer to the signs of variables in linear loops. The pertinent notions of the first-order theory of real closed fields and related proofs are presented in Appendix A
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.