{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,15]],"date-time":"2026-10-15T13:21:47Z","timestamp":1792070507475,"version":"4.4.0"},"reference-count":27,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T00:00:00Z","timestamp":1609718400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"MSCA","award":["837327"],"award-info":[{"award-number":["837327"]}]},{"name":"AVS-ISS","award":["648701"],"award-info":[{"award-number":["648701"]}]},{"name":"DFG","award":["389792660"],"award-info":[{"award-number":["389792660"]}]},{"DOI":"10.13039\/501100000266","name":"EPSRC","doi-asserted-by":"crossref","award":["EP\/N008197\/1"],"award-info":[{"award-number":["EP\/N008197\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2021,1,4]]},"abstract":"<jats:p>We consider the problem of deciding \u03c9-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 \u03c9-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 \u201c+\u201d, each negative entry with \u201c\u2212\u201d, and each zero entry with \u201c0\u201d) 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.<\/jats:p>","DOI":"10.1145\/3434329","type":"journal-article","created":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T12:34:24Z","timestamp":1609763664000},"page":"1-24","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":16,"title":["Deciding \u03c9-regular properties on linear recurrence sequences"],"prefix":"10.1145","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9021-1175","authenticated-orcid":false,"given":"Shaull","family":"Almagor","sequence":"first","affiliation":[{"name":"Technion, Israel"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Toghrul","family":"Karimov","sequence":"additional","affiliation":[{"name":"MPI-SWS, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Edon","family":"Kelmendi","sequence":"additional","affiliation":[{"name":"University of Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jo\u00ebl","family":"Ouaknine","sequence":"additional","affiliation":[{"name":"MPI-SWS, Germany \/ University of Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"James","family":"Worrell","sequence":"additional","affiliation":[{"name":"University of Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,1,4]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/2629417"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.2307\/2275227"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/exl004"},{"key":"e_1_2_1_5_1","doi-asserted-by":"crossref","unstructured":"J. P. Bell and S. Gerhold. 2007. On the Positivity Set of a Linear Recurrence. Israel Jour. Math. 57 ( 2007 ).","DOI":"10.1007\/s11856-006-0015-1"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","unstructured":"Jean Berstel and Maurice Mignotte. 1976. Deux propri\u00e9t\u00e9s d\u00e9cidables Des Suites r\u00e9currentes lin\u00e9aires. Bulletin de la Societe mathematique de France 79 ( 1976 ) 175-184. https:\/\/doi.org\/10.24033\/bsmf.1823 10.24033\/bsmf.1823","DOI":"10.24033\/bsmf.1823"},{"key":"e_1_2_1_7_1","first-page":"1","volume-title":"Methodology and Philosophy of Science (Proc. 1960 Internat. Congr.)","author":"B\u00fcchi J. Richard","year":"1962","unstructured":"J. Richard B\u00fcchi. 1962. On a decision method in restricted second order arithmetic. In Logic, Methodology and Philosophy of Science (Proc. 1960 Internat. Congr.). Stanford Univ. Press, Stanford, Calif., 1-11."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco"},{"key":"e_1_2_1_9_1","unstructured":"John William Scott Cassels. 1957. An introduction to Diophantine approximation. Number 45. CUP Archive."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.2307\/2269808"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","unstructured":"Graham Everest Alf van der Poorten Igor Shparlinski and Thomas Ward. 2003. Recurrence Sequences. https:\/\/doi.org\/10. 1090\/surv\/104 10.1090\/surv\/104","DOI":"10.1090\/surv\/104"},{"key":"e_1_2_1_12_1","unstructured":"Jan-Hendrik Evertse. 1984. On sums of-units and linear recurrences. Compositio Mathematica 53 2 ( 1984 ) 225-244. http:\/\/www.numdam.org\/item\/CM_1984__53_2_225_0"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0079-8169"},{"key":"e_1_2_1_14_1","volume-title":"On LTL Model Checking for Low-Dimensional Discrete Linear Dynamical Systems. In 45th International Symposium on Mathematical Foundations of Computer Science, MFCS","author":"Karimov Toghrul","year":"2020","unstructured":"Toghrul Karimov, Joel Ouaknine, and James Worrel. 2020. On LTL Model Checking for Low-Dimensional Discrete Linear Dynamical Systems. In 45th International Symposium on Mathematical Foundations of Computer Science, MFCS 2020, LIPIcs 170."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-4220-8"},{"key":"e_1_2_1_16_1","doi-asserted-by":"crossref","unstructured":"David W Masser. 1988. Linear relations on algebraic groups. New Advances in Transcendence Theory ( 1988 ) 248-262.","DOI":"10.1017\/CBO9780511897184.016"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.2307\/2371264"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0304-3975"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611973402.27"},{"key":"e_1_2_1_20_1","first-page":"318","volume-title":"ICALP 2014, Copenhagen, Denmark, July 8-11, 2014, Proceedings, Part II (Lecture Notes in Computer Science","volume":"8573","author":"Ouaknine Jo\u00ebl","year":"2014","unstructured":"Jo\u00ebl Ouaknine and James Worrell. 2014a. On the Positivity Problem for Simple Linear Recurrence Sequences. In Automata, Languages, and Programming-41st International Colloquium, ICALP 2014, Copenhagen, Denmark, July 8-11, 2014, Proceedings, Part II (Lecture Notes in Computer Science, Vol. 8573 ), Javier Esparza, Pierre Fraigniaud, Thore Husfeldt, and Elias Koutsoupias (Eds.). Springer, 318-329."},{"key":"e_1_2_1_21_1","first-page":"330","volume-title":"ICALP 2014, Proceedings, Part II (Lecture Notes in Computer Science","volume":"8573","author":"Ouaknine Jo\u00ebl","year":"2014","unstructured":"Jo\u00ebl Ouaknine and James Worrell. 2014b. Ultimate Positivity is Decidable for Simple Linear Recurrence Sequences. In Automata, Languages, and Programming-41st International Colloquium, ICALP 2014, Proceedings, Part II (Lecture Notes in Computer Science, Vol. 8573 ). Springer, 330-341."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic"},{"key":"e_1_2_1_23_1","doi-asserted-by":"crossref","unstructured":"A. Salomaa and M. Soittola. 1978. Automata-theoretic aspects of formal power series. Springer.","DOI":"10.1007\/978-1-4612-6264-0"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","unstructured":"A L Sem\u00ebnov. 1984. Logical Theories of One-Place Functions on the Set of Natural Numbers. Mathematics of the USSR-Izvestiya 22 3 ( 1984 ) 587-618. https:\/\/doi.org\/10.1070\/im1984v022n03abeh001456 10.1070\/im1984v022n03abeh001456","DOI":"10.1070\/im1984v022n03abeh001456"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","unstructured":"Harold N. Shapiro. 1959. On a Theorem Concerning Exponential Polynomials. Communications on Pure and Applied Mathematics 12 3 ( 1959 ) 487-500. https:\/\/doi.org\/10.1002\/cpa.3160120306 10.1002\/cpa.3160120306","DOI":"10.1002\/cpa.3160120306"},{"key":"e_1_2_1_26_1","doi-asserted-by":"crossref","unstructured":"Alfred Tarski. 1951. A decision method for elementary algebra and geometry. ( 1951 ).","DOI":"10.1525\/9780520348097"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1515\/crll"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434329","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3434329","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,19]],"date-time":"2026-06-19T07:26:12Z","timestamp":1781853972000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434329"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1,4]]},"references-count":27,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2021,1,4]]}},"alternative-id":["10.1145\/3434329"],"URL":"https:\/\/doi.org\/10.1145\/3434329","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1,4]]},"assertion":[{"value":"2021-01-04","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}