Deciding ω-Regular Properties on Linear Recurrence Sequences

被引:10
作者
Almagor, Shaull [1 ]
Karimov, Toghrul [2 ]
Kelmendi, Edon [3 ]
Ouaknine, Joel [2 ,3 ]
Worrell, James [3 ]
机构
[1] Technion, Haifa, Israel
[2] Max Planck Inst Software Syst, Saarbrucken, Germany
[3] Univ Oxford, Oxford, England
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2021年 / 5卷 / POPL期
基金
欧洲研究理事会; 英国工程与自然科学研究理事会; 欧盟地平线“2020”;
关键词
linear loops; linear recurrence sequences; omega-regular properties; almost periodic words; DECIDABILITY; ORDER; LOGIC;
D O I
10.1145/3434329
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 omega-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, Semenov, 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.
引用
收藏
页数:24
相关论文
共 26 条
[1]   Approximate Verification of the Symbolic Dynamics of Markov Chains [J].
Agrawal, Manindra ;
Akshay, S. ;
Genest, Blaise ;
Thiagarajan, P. S. .
JOURNAL OF THE ACM, 2015, 62 (01) :2
[2]   Regular ω-languages with an informative right congruence [J].
Angluin, Dana ;
Fisman, Dana .
INFORMATION AND COMPUTATION, 2021, 278 (278)
[3]  
[Anonymous], 1951, A decision method for elementary algebra and geometry
[4]   DECIDABILITY AND UNDECIDABILITY OF THEORIES WITH A PREDICATE FOR THE PRIMES [J].
BATEMAN, PT ;
JOCKUSCH, CG ;
WOODS, AR .
JOURNAL OF SYMBOLIC LOGIC, 1993, 58 (02) :672-687
[5]  
Beauquier D, 2006, J LOGIC COMPUT, V16, P461, DOI [10.1093/logcom/exl004, 10.1093/logcom/ex1004]
[6]  
Bell J. P., 2007, ISRAEL J MATH ISRAEL J MATH, V57
[7]  
Buchi J. Richard, 1962, P 1960 INT C LOGIC M, P1
[8]   The monadic theory of morphic infinite words and generalizations [J].
Carton, O ;
Thomas, W .
INFORMATION AND COMPUTATION, 2002, 176 (01) :51-65
[9]  
Cassels J. W. S., 1957, An Introduction to Diophantine Approximations, V45
[10]   DECIDABILITY AND UNDECIDABILITY OF EXTENSIONS OF 2ND (1ST) ORDER THEORY OF (GENERALIZED) SUCCESSOR [J].
ELGOT, CC ;
RABIN, MO .
JOURNAL OF SYMBOLIC LOGIC, 1966, 31 (02) :169-&