arXiv:2610.23463cs.FLOct 2026

Manuscript Offprint

arXiv:2610.23463

Model Checking for Noisy Toric Words

Mihir Vahanwala

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Toric words have recently gained attention as a means to model the behaviour of dynamical systems such as linear loops. This work is concerned with describing when the toric model is precise enough to decide whether the trace of a system is contained in an ω\omega-regular language. Our contributions are threefold. (i) We use topological means to generalise a class of toric words by defining noise-robust dynamical systems and their sets of noisy traces. We prove that all noisy traces of a system are almost-periodic, and have the same set of recurrent factors. (ii) We apply the abstract techniques above to concrete sequences obtained as sign descriptions of real algebraic linear recurrence sequences (LRS), and show that the language-membership problem for sign descriptions of LRS with few dominant roots is decidable. (iii) We show that noisy traces of noise-robust dynamical systems are indistinguishable to a prefix-independent ω\omega-regular language, and inclusion is decidable provided the common language of their recurrent factors is recursive. We incidentally obtain properties of prefix-independent ω\omega-regular languages that may be of independent interest.

2012 ACM Subject Classification Theory of computation → Logic and verification

Keywords and phrases Model checking, dynamical systems, almost-periodic words, linear recurrence sequences, prefix-independent languages

Digital Object Identifier 10.4230/LIPIcs...

1 Introduction

A toric word x∈Σωx \in \Sigma^\omega is obtained by considering a collection {S1,…,Sk}\{S_1, \ldots, S_k\} of finitely many disjoint open subsets of a torus XX, a starting point α∈X\alpha \in X, and a rotation γ\gamma such that for every nn, the point α+nγ\alpha + n\gamma is contained in (the closure of) one of the open sets above. A coding σ\sigma then associates each open set with a letter in Σ\Sigma, and we define x(n)=σ(Sn)x(n) = \sigma(S_n) where α+nγ∈cl(Sn)\alpha + n\gamma \in \text{cl}(S_n). Toric words are extensively studied symbolic dynamical systems (see [15, Chap. 1] and [16]). A prime example is the class of Sturman words, where XX is the unit circle identified by the interval [0,1)[0,1), and is partitioned as [0,γ),[γ,1)[0, \gamma), [\gamma, 1).

More recently, toric words have been identified to accurately capture the behaviour of linear loops in program verification [8]. They also play a central role in the decidability of the monadic second-order (MSO) theory of the structure ⟨N;<,a1N,…,akN⟩\langle\mathbb{N};<,a_1^{\mathbb{N}},\ldots,a_k^{\mathbb{N}}\rangle as established by [4]. We refer the reader to [5] for a survey. Such works hinge on the fact that toric words, and more generally, traces of minimal compact dynamical systems, enjoy the combinatorial property of uniform recurrence, which is a special case of almost periodicity.

These properties are defined and leveraged as follows. We say that a finite word uu is a factor of an infinite word xx if uu occurs in xx; if uu occurs infinitely often, we say that it is a recurrent factor of xx. A word xx is recurrent when every factor uu is recurrent; if moreover for every uu there is a bound on the gaps between consecutive occurrences of uu, then xx is uniformly recurrent. A word xx is almost-periodic if for every recurrent factor uu, there is a bound on the gaps between its consecutive occurrences. We have that xx is effectively almost-periodic if, furthermore: (i) given any index nn, we can compute x(n)x(n); (ii) given any finite word uu, we can compute RuR_u such that either all occurrences of uu are in a prefix of length RuR_u, or every factor of length RuR_u contains an occurrence of uu. A classic result of Semenov concerning runs of deterministic automata on almost-periodic words (see e.g., [11]) implies that given an ω\omega-regular language LL and an effectively almost-periodic word xx, one

© Mihir Vahanwala;

licensed under Creative Commons License CC-BY 4.0

Leibniz International Proceedings in Informatics

LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

Figure

XX:2 Model Checking for Noisy Toric Words

can decide whether x∈Lx \in L.

Indeed, throughout this paper, we characterise ω\omega-regular languages as those recognised by deterministic parity automata A=(Q,Σ,qinit,τ,col)\mathcal{A} = (Q, \Sigma, q_{\text{init}}, \tau, \text{col}), where QQ is a set of states, Σ\Sigma is the alphabet, qinitq_{\text{init}} is the initial state, τ:Q×Σ→Q\tau: Q \times \Sigma \to Q is the transition function, and col:Q→N\text{col}: Q \to \mathbb{N} is the colouring function (note that its image is finite). The automaton A\mathcal{A} accepts a word xx if the maximum colour visited infinitely often in the run is even.

The motivation of this work lies in the observation that the model obtained by using tori to describe dynamical systems, while accurate, may still be imprecise. As an example [5], consider the sequence x over the alphabet {−1,0,1}\{-1, 0, 1\} obtained by recording the sign of the expression

sin⁡(φ+nθ)+r(n),\sin(\varphi+n\theta)+r(n),

where θ/π\theta/\pi is irrational, and r(n)r(n) converges to 0. Such an infinite word arises as the sign pattern of a linear recurrence sequence (LRS, see Sec. 3) with two dominant characteristic roots. Intuitively, as nn grows larger, the sign pattern xx should bear increasing resemblance to the toric word yy obtained by taking XX to be the unit circle, α\alpha to be starting point with angular coordinate φ\varphi, the update γ\gamma to be rotation by angle θ\theta, and the partition of XX to be the union of open semicircular arcs and their endpoints. However, the indices at which xx and yy disagree can still constitute an infinite set, and the sign pattern xx can in fact be provably non-toric [5, Cor. 6.9].

The question that arises is: under what circumstances can the language-membership problem for the original trace be solved using the model torus?

In this example, we can in fact prove that x will be almost periodic, and moreover the set of recurrent factors of x will be the same as that of y. The dynamical system induced by the orbit of an irrational rotation on a unit circle partitioned into semicircular arcs is robust in the sense that varying the starting point and adding diminishing noise do not alter the almost-periodic nature of the trace, nor change the set of its recurrent factors.

The first contribution of this paper is a generalisation of the above phenomenon. We shall use topological means to define a class of noise-robust dynamical systems and their sets of noisy traces (Def. 1). We then prove in Thm. 2 that all noisy traces of a robust system are almost-periodic and have the same set of recurrent factors. Thm. 4 then delineates when noisy traces are effectively almost-periodic, and thus gives the ingredients to address our motivating question above.

Our second contribution is an application to LRS: we combine our results (Thm. 4) with the techniques of [9]. In Thm. 6, we show that the sign pattern x of a real algebraic LRS is effectively almost periodic provided it satisfies one among a handful of spectral conditions. By a direct application of Semenov's result, given such an LRS and an ω\omega-regular language L, we can decide whether x∈Lx \in L. In particular, Case (2) of Thm. 6 covers our running example. We note that this case also applies to non-simple LRS; prior work in this setting [1, 9] is restricted to simple LRS where it can be shown by number-theoretic means that the sign pattern differs from the toric word in only finitely many positions.

Our third contribution is the result that noisy traces of a noise-robust dynamical system are indistinguishable to any prefix-independent ω\omega-regular language, and inclusion is decidable provided the common language L⋆L_\star of recurrent factors is recursive (Cor. 12). A prefix-independent language [1,3][1, 3] L⊆ΣωL \subseteq \Sigma^\omega has the following defining property. Let x,x′x, x' be words such that x′x' can be obtained from xx by making only finitely many edits. We have that x∈Lx \in L if and only if x′∈Lx' \in L. Non-empty prefix-independent languages thus comprise a special class of liveness properties; we also give properties of prefix-independent ω\omega-regular languages (Props. 9, 10) that may be of independent interest. E.g., the uniform Borel probability

XX:3

measure assigns a prefix-independent language measure either 0 or 1.

Finally, we shall observe that Sturmian words do not satisfy our robustness criteria. We shall demonstrate noisy traces of Sturmian dynamical systems that are not almost-periodic, and also show that querying such traces against prefix-independent ω\omega-regular languages subsume Diophantine-hard problems.