betaFeedback

WorksComputer Science

Model Checking for Noisy Toric Words

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.

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\operatorname{cl}(S_n). Toric words are extensively studied symbolic dynamical systems (see [15 Chap. 1] and [16]). A prime example is the class of Sturmian 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 Semënov 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 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_{\mathrm{init}}, \tau, \operatorname{col}), where QQ is a set of states, Σ\Sigma is the alphabet, qinitq_{\mathrm{init}} is the initial state, τ:Q×Σ→Q\tau: Q \times\Sigma\to Q is the transition function, and col⁡:Q→N\operatorname{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 xx 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 00. Such an infinite word arises as the sign pattern of a linear recurrence sequence (LRS, see § 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 xx will be almost periodic, and moreover the set of recurrent factors of xx will be the same as that of yy. 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 xx of a real algebraic LRS is effectively almost periodic provided it satisfies one among a handful of spectral conditions. By a direct application of S̆emёnov’s result, given such an LRS and an ω\omega-regular language LL, 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] 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 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.

Noise-Robust Dynamical Systems

In this section, we compile a set of properties that imply a dynamical system (X,T:X→X)(X,T:X\to X) is robust. As outlined in the introduction, we seek to generalise the phenomenon observed for the system defined by an irrational rotation on the 1-torus partitioned into semicircular arcs, and the reader may use this as a running example to intuit the properties we impose and the conclusions we draw.

Throughout this paper, we shall assume that XX is a compact metric space with bounded metric dd such that every open ball B⊂XB\subset X is connected. We shall assume that the dynamical update T:X→XT:X\to X is a homeomorphism, and in particular, is bijective. This has the following consequences.

  1. Both TT and T−1T^{-1} are homeomorphisms, and hence for every open set SS, the image TSTS and pre-image T−1ST^{-1}S are open sets.

  1. Both TT and T−1T^{-1} are uniformly continuous because XX is compact. In particular, we can define a modulus of continuity, i.e., a non-decreasing function Ω:R≥0→R≥0\Omega:\mathbb{R}_{\ge0}\to\mathbb{R}_{\ge0}, such that for all α,α′∈X\alpha,\alpha'\in X we have d(Tα,Tα′)<Ω(d(α,α′))d(T\alpha,T\alpha')<\Omega(d(\alpha,\alpha')), d(T−1α,T−1α′)<Ω(d(α,α′))d(T^{-1}\alpha,T^{-1}\alpha')<\Omega(d(\alpha,\alpha')), the function Ω\Omega is continuous at 0, and Ω(0)=0\Omega(0)=0.1

Our final requirement on the dynamics is that that the dynamical system (X,T)(X,T) be minimal, i.e., for all α∈X\alpha\in X the orbit {Tnα:n∈N}\{T^n\alpha:n\in\mathbb{N}\} is dense in XX.

Partitions for the coding

Having set up the dynamics, we turn to the requirements on how the coding of an orbit will be obtained. We partition XX into finitely many disjoint open sets S1,…,SkS_1,\ldots,S_k, and a closed set ZZ such that ⋃i=1kSi\bigcup_{i=1}^{k}S_i is dense in XX. Observe that ZZ is compact. We impose the independent discrete orbit condition: for all ζ∈Z\zeta\in Z, and all n≥1n\ge1, we must have that Tnζ∉ZT^n\zeta\notin Z. This condition is technically helpful, and is reminiscent of its counterpart which is now a staple working assumption in the study of interval exchange transformations [10].

A coding σ\sigma surjectively maps XX to a finite alphabet Σ\Sigma in an “almost continuous way”: we have that σ\sigma is constant on each of the open sets S1,…,SkS_1,\ldots,S_k, and that if σ(ζ)=b\sigma(\zeta)=b for some ζ∈Z\zeta\in Z, then for every δ>0\delta>0, there exists α∉Z\alpha\notin Z such that d(α,ζ)<δd(\alpha,\zeta)<\delta and σ(α)=b\sigma(\alpha)=b.

We model noise as follows. Let N={ν:N→R≥0∣lim⁡n→∞ν(n)=0}\mathcal{N}=\{\nu:\mathbb{N}\to\mathbb{R}_{\ge0}\mid\lim_{n\to\infty}\nu(n)=0\} be the set of noise functions. We say that the noise function ν\nu converges effectively if for every δ\delta we can compute NN such that for all n≥Nn\ge N we have ν(n)<δ\nu(n)<\delta. The function traces⁡σ:X×N→2Σω\operatorname{traces}_{\sigma}:X\times\mathcal{N}\to2^{\Sigma^\omega} maps a starting point α\alpha and noise function ν\nu to the set of infinite words

traces⁡σ(α,ν)={x∈Σω∣∀n.∃β. d(β,Tnα)<ν(n)∧σ(β)=x(n)}.(1)\operatorname{traces}_{\sigma}(\alpha,\nu)=\{x\in\Sigma^\omega\mid\forall n.\exists\beta.\ d(\beta,T^n\alpha)<\nu(n)\land\sigma(\beta)=x(n)\}. \tag*{(1)}

In other words, a noisy trace may code a point β\beta in the ν(n)\nu(n)-ball around TnαT^n\alpha instead of TnαT^n\alpha itself. By our requirements on the coding σ\sigma, we can assume without losing generality that β∉Z\beta\notin Z. Finally, we define

Traces⁡σ=⋃α∈X,ν∈Ntraces⁡σ(α,ν).(2)\operatorname{Traces}_{\sigma}=\bigcup_{\alpha\in X,\nu\in\mathbb{N}}\operatorname{traces}_{\sigma}(\alpha,\nu). \tag*{(2)}

We summarise our conditions in the following definition.

Definition 1. A dynamical system (X,T,⟨S1,…,Sk,Z⟩,σ)(X,T,\langle S_1,\ldots,S_k,Z\rangle,\sigma), where XX is partitioned into S1,…,Sk,ZS_1,\ldots,S_k,Z, and σ:X→Σ\sigma:X\to\Sigma is a coding, is said to be noise-robust if:

  1. The space XX is compact and admits a metric dd, and moreover, every open ball B⊆XB\subseteq X is connected.

  2. The update T:X→XT:X\to X is a homeomorphism, admits a modulus of continuity Ω\Omega, and induces a minimal dynamical system on XX, i.e., for all α∈X\alpha\in X, the orbit {Tnα∣n∈N}\{T^n\alpha\mid n\in\mathbb{N}\} is dense in $X.

  3. The partitions S1,…,SkS_1,\ldots,S_k are disjoint open sets, and their union is dense in XX.

  4. For all ζ∈Z\zeta\in Z, and all n≥1n\geq1, we have Tnζ∉ZT^n\zeta\notin Z.

It is straightforward to check that our running example of an irrational rotation on the 1-torus partitioned into open semicircular arcs and their endpoints meets all the four conditions. On the other hand, toric systems defining Sturmian words satisfy all but the fourth condition: the distance between the endpoints of the intervals is the same as the angle of rotation.

Noise Robustness

Theorem 2. Let (X,T,⟨S1,…,Sk,Z⟩,σ)(X,T,\langle S_1,\ldots,S_k,Z\rangle,\sigma) be a noise-robust dynamical system. We have that every x∈Traces⁡σx\in\operatorname{Traces}_{\sigma} is almost-periodic. Furthermore, there exists L⋆⊆Σ+L_\star\subseteq\Sigma^+ such that for every x∈Traces⁡σx\in\operatorname{Traces}_{\sigma}, the set of recurrent factors of xx is L⋆L_\star.

Proof. We shall associate each word u∈Σ∗u\in\Sigma^* with an open set Xu⊆XX_u\subseteq X. This assignment will have the property that if the orbit falls in XuX_u, the next ∣u∣|u| letters of the coding will be an occurrence of uu provided there is no noise.

We assign Xϵ=XX_{\epsilon}=X for the empty word, and Xbu=(⋃i:σ(Si)=bSi)∩T−1XuX_{bu}=\left(\bigcup_{i:\sigma(S_i)=b}S_i\right)\cap T^{-1}X_u. Note that here we use the fact that T−1T^{-1} is a homeomorphism that maps open sets to open sets. We claim that L⋆={u∈Σ+∣Xu≠{}}L_\star=\{u\in\Sigma^+\mid X_u\ne\{\}\}.

We shall first prove that if XuX_u is non-empty, then uu is a recurrent factor of all x∈Traces⁡σx\in\operatorname{Traces}_{\sigma}, and furthermore, there is a bound RuR_u such that for all x∈Traces⁡σx\in\operatorname{Traces}_{\sigma}, the gaps between consecutive occurrences are eventually bounded by RuR_u. Since XuX_u is an open set, we can choose a small enough δ\delta and construct a non-empty open set Yu⊆XuY_u\subseteq X_u such that for all α∈Yu\alpha\in Y_u, the δ\delta-ball around α\alpha is contained in XuX_u.2 We see that if YuY_u is visited when the noise is less than δ\delta, then it will mark an occurrence of uu. Since the noise converges to 0, it would suffice to prove that the gaps between visits to YuY_u are bounded.

Since the dynamical system is minimal, we have that ⋃n=0∞T−nYu=X\bigcup_{n=0}^{\infty}T^{-n}Y_u=X, i.e., the orbit of every point in XX eventually visits YuY_u. Since YuY_u is open and T−1T^{-1} is a homeomorphism, we get that (T−nYu)n=0∞(T^{-n}Y_u)_{n=0}^{\infty} is an open cover of XX, which, due to compactness, admits a finite subcover (T−nYu)n=0R(T^{-n}Y_u)_{n=0}^{R}. Thus, every point in XX is either in YuY_u or will visit YuY_u in at most RR steps under TT. This proves that uu occurs infinitely often in any noisy trace xx, and once the noise is bounded by δ\delta, the gaps between occurrences of uu in the trace are bounded by Ru=RR_u=R.

We now prove the converse, i.e., if XuX_u is empty (which can happen only if the length ∣u∣>1|u|>1), then uu can occur only finitely often in any noisy trace. We will do so by contradiction: we will show that if a noisy trace contains infinitely many occurrences of uu, then d(TmZ,Z)=0d(T^m Z,Z)=0 for some mm with ∣m∣≤∣u∣|m|\leq|u|, which would contradict the independent discrete orbit condition.

Given δ\delta, consider a noisy trace x∈tracesσ(α,ν)x\in\mathrm{traces}_{\sigma}(\alpha,\nu) such that x(n)⋯x(n+l−1)x(n)\cdots x(n+l-1) is an occurrence of uu at an index where the noise is guaranteed to be less than δ\delta, i.e., ν(n+j)<δ\nu(n+j)<\delta for all j≥0j\geq0. Let β0,…,βl−1\beta_0,\ldots,\beta_{l-1} denote Tnα,…,Tn+l−1αT^n\alpha,\ldots,T^{n+l-1}\alpha, and let γ0,…,γl−1\gamma_0,\ldots,\gamma_{l-1} denote the corresponding perturbed versions. Recall we may assume without loss of generality that γ0,…,γl−1∉Z\gamma_0,\ldots,\gamma_{l-1}\notin Z. We make the following observations.

  • The points γ0,…,γl−1\gamma_0,\ldots,\gamma_{l-1} are all correctly placed, i.e., each γi\gamma_i falls in an open set SiS_i that is coded with the letter u(i)u(i).

  • There does not exist any point β\beta such that β,…,Tl−1β\beta,\ldots,T^{l-1}\beta are all correctly placed, because the set XuX_u is empty.

In particular, there exists an ii such that βi\beta_i is incorrectly placed in some S′S', while γi\gamma_i, which is in the δ\delta-ball around it, is correctly placed in some S≠S′S\ne S'. Since the δ\delta-ball is connected (by property (1) of a robust system), it cannot be the union of disjoint open sets3, and must contain some ζi∈Z\zeta_i\in Z, i.e., d(βi,ζi)<δd(\beta_i,\zeta_i)<\delta.

Now, consider the points T−iγi,…,Tl−1−iγiT^{-i}\gamma_i,\ldots,T^{l-1-i}\gamma_i. There necessarily exists some j≠ij\ne i such that Tj−iγiT^{j-i}\gamma_i is incorrectly placed. By uniform continuity, we have that d(Tj−iβi,Tj−iγi)<Ω∣j−i∣(δ)d(T^{j-i}\beta_i,T^{j-i}\gamma_i)<\Omega^{|j-i|}(\delta), i.e., the incorrectly placed Tj−iγiT^{j-i}\gamma_i is in the Ω∣j−i∣(δ)\Omega^{|j-i|}(\delta)-ball around βj\beta_j, whereas the correctly placed γj\gamma_j is in the δ\delta-ball around βj\beta_j. By similar connectedness arguments above, we get that the (max⁡(δ,Ω∣j−i∣(δ)))(\max(\delta,\Omega^{|j-i|}(\delta)))-ball around βj\beta_j, by virtue of containing both γj\gamma_j and Tj−iγiT^{j-i}\gamma_i, contains a point ζj∈Z\zeta_j\in Z, or in other words, d(βj,ζj)<max⁡(δ,Ω∣j−i∣(δ))d(\beta_j,\zeta_j)<\max(\delta,\Omega^{|j-i|}(\delta)).

We now use uniform continuity on βi,ζi\beta_i,\zeta_i to argue that d(βj,Tj−iζi)<Ω∣j−i∣(δ)d(\beta_j,T^{j-i}\zeta_i)<\Omega^{|j-i|}(\delta). Applying the triangle inequality to this and the result of the previous paragraph, we get that

d(Tj−iζi,ζj)<max⁡(δ,Ω∣j−i∣(δ))+Ω∣j−i∣(δ).d(T^{j-i}\zeta_i,\zeta_j)<\max(\delta,\Omega^{|j-i|}(\delta))+\Omega^{|j-i|}(\delta).

We can now supply δ=1/2,1/4,…\delta=1/2,1/4,\ldots, and hence get a sequence of (ζ,ζ′)(\zeta,\zeta') such that min⁡∣m∣≤∣u∣d(Tmζ,ζ′)\min_{|m|\leq|u|}d(T^m\zeta,\zeta') converges to 00. By compactness, any limit point (ζ⋆,ζ⋆′)(\zeta_\star,\zeta'_\star) of this sequence of (ζ,ζ′)(\zeta,\zeta') lies in Z×ZZ\times Z, is guaranteed to exist, and by continuity (of the metric dd, homeomorphisms T,T−1T,T^{-1}, and of the modulus of continuity Ω\Omega),

min⁡∣m∣≤∣u∣d(Tmζ⋆,ζ⋆′)=0,\min_{|m|\leq|u|}d(T^m\zeta_\star,\zeta'_\star)=0,

which contradicts the independent discrete orbit condition.

We have thus proven that uu is a recurrent factor if and only if XuX_u is non-empty, and that if XuX_u is non-empty, the factor uu occurs with bounded gaps once the noise is bounded by some δu\delta_u. This establishes that for all x∈Tracesσx\in\mathrm{Traces}_{\sigma}, xx is almost-periodic, and the set of recurrent factors is L⋆={u∣Xu≠{}}L_\star=\{u\mid X_u\ne\{\}\}.

We make some observations concerning effectiveness. To that end, define Δ:N→R\Delta:\mathbb{N}\to\mathbb{R} as

Δ(n)=min⁡∣m∣≤nd(TmZ,Z),\Delta(n)=\min_{|m|\leq n}d(T^mZ,Z),

and note that Δ(n)>0\Delta(n)>0 for n>0n>0.

Lemma 3. Let L⋆⊆Σ+L_{\star} \subseteq\Sigma^{+}, and let W⊆ΣωW \subseteq\Sigma^{\omega} be a set of almost-periodic words such that for every x∈Wx \in W, the set of recurrent factors of xx is L⋆L_{\star}. For every u∈L⋆u \in L_{\star}, there exists RuR_u such that for every x∈Wx \in W, eventually every factor of length RuR_u contains an occurrence of uu. Computing this RuR_u Turing-reduces to deciding membership in L⋆L_{\star}.

Proof. The existence of RuR_u follows almost immediately by definition. Indeed, consider arbitrary x∈Wx \in W. There exists RR such that every length-RR factor of xx contains uu. We can assert Ru≤RR_u \le R, because in particular every recurrent length-RR factor will have an occurrence of uu. To compute RuR_u, we simply enumerate the elements of L⋆L_{\star} until we find a length RR such that all length-RR members of L⋆L_{\star} contain an occurrence of uu. It remains to observe that every x∈Wx \in W has a suffix for which all length-RR factors are recurrent.

Theorem 4. Let x⊆Σωx \subseteq\Sigma^{\omega} be a noisy trace of a noise-robust dynamical system such that L⋆L_{\star} is recursive and Ω,Δ\Omega, \Delta are computable. Let the noise function ν\nu of xx converge effectively. If for each nn, we can compute x(n)x(n), then xx is effectively almost-periodic. Thus, given such x∈Σωx \in\Sigma^{\omega} and an ω\omega-regular language LL, we can decide whether x∈Lx \in L.

Proof. We need to show how, given u∈Σ+u \in\Sigma^{+}, we can compute RuR_u such that either uu can only occur in the length-RuR_u prefix of xx, or uu occurs in every length-RuR_u factor of xx. One can determine which of the cases holds by querying whether u∈L⋆u \in L_{\star}.

Suppose uu is not a recurrent factor. We compute δ\delta small enough such that for all mm with ∣m∣≤∣u∣\lvert m\rvert\le\lvert u\rvert, we have max⁡(δ,Ωm(δ))+Ωm(δ)<Δ(∣u∣)\max(\delta, \Omega^{m}(\delta)) + \Omega^{m}(\delta) < \Delta(\lvert u\rvert). From the proof of Thm. 2, we deduce that there cannot be any occurrence of uu at indices where the noise is less than δ\delta. Since the noise function ν\nu converges effectively, we can compute RuR_u such that for all n≥Run \ge R_u, we have ν(n)<δ\nu(n) < \delta, and hence uu cannot occur at index nn.

In the case uu is a recurrent factor, we can use the previous lemma to compute Ru′R'_u such that xx has a suffix where all length-Ru′R'_u factors are recurrent, and contain an occurrence of uu. It remains to compute the starting index Ru′′R''_u of this suffix, and take Ru=Ru′+Ru′′R_u = R'_u + R''_u. To do so, we appeal to the previous case and compute a bound Ru′′R''_u on the index of the last occurrence of any length-Ru′R'_u non-recurrent factor.

Finally, the last statement follows from the result of Semënov mentioned in the Introduction, see [8 Chap. 3] for a detailed exposition.

We remark that in our applications, the open subsets of the torus will be semi-algebraic. This will allow us to effectively decide (see e.g., [1 App. A]), given any uu, whether the attendant open set XuX_u is non-empty, or in other words, whether u∈L⋆u \in L_{\star}.

Sign Descriptions of LRS

Recall that a linear recurrence sequence (LRS) of order dd over a field K\mathbb{K} (we shall consider LRS over real algebraic numbers) is a sequence (μn)n≥0(\mu_n)_{n \ge0} that satisfies the recurrence relation μn+d=ad−1μn+d−1+⋯+a0μn\mu_{n+d} = a_{d-1}\mu_{n+d-1} + \cdots+ a_0\mu_n, where a0≠0a_0 \ne0. We refer to the polynomial Xd−ad−1Xd−1−⋯−a0X^d - a_{d-1}X^{d-1} - \cdots- a_0 as the characteristic polynomial of the LRS, and its roots are called the characteristic roots. A characteristic root that is not repeated is called simple, an LRS is called simple if all characteristic roots are simple. An LRS for which there is no pair λi,λj\lambda_i,\lambda_j of distinct characteristic roots such that λi/λj\lambda_i/\lambda_j is a root of unity is called non-degenerate. It is well known that any given LRS can be algorithmically decomposed as the interleaving of non-degenerate LRS (see e.g., [9]). We shall assume that the distinct characteristic roots λ1,…,λk\lambda_1,\ldots,\lambda_k are ordered in descending Euclidean absolute value, and shall refer to the roots with maximal absolute value as dominant.

It is well known that LRS admit an exponential-polynomial closed form, i.e.,

μn=∑i=1k∑j=0mi−1pijnjλin=∑i=1kfi(n)λin.\mu_n = \sum_{i=1}^{k} \sum_{j=0}^{m_i-1} p_{ij}n^j\lambda_i^n = \sum_{i=1}^{k} f_i(n)\lambda_i^n.

Here, we have that mim_i is the multiplicity of characteristic root λi\lambda_i, and can assume that ∑i=1kmi=d\sum_{i=1}^{k}m_i=d and pi(mi−1)≠0p_i(m_i-1)\ne0. The sign description of an LRS (μn)n=0∞(\mu_n)_{n=0}^{\infty} is the word x∈{1,−1,0}ωx\in\{1,-1,0\}^{\omega} such that x(n)=sign⁡(μn)x(n)=\operatorname{sign}(\mu_n). Before we state the main result of this section, we record a lemma (see [5 Cor. 5.5], [9, Thms. 8, 9]) that will be helpful in accounting for “degeneracies.”

Lemma 5. Let x0,…,xd−1x_0,\ldots,x_{d-1} be effectively almost-periodic toric words defined by open semi-algebraic sets. The word xx, defined as x(qd+r)=xr(q)x(qd+r)=x_r(q) is also toric, defined by open semi-algebraic sets, and effectively almost-periodic.

We shall also use the following self-evident observation: if we can compute NN such that x(N,∞)x(N,\infty) is effectively almost-periodic, then xx is effectively almost-periodic.

Theorem 6. Let (μn)n=0∞(\mu_n)_{n=0}^{\infty} be a real algebraic LRS that satisfies one of the following conditions:

  1. has a single real dominant root,

  2. has two dominant roots whose ratio is not a root of unity,

  3. has three dominant roots which are all simple, and the ratio of the complex conjugate pair is not a root of unity,

  4. has order at most four.

We can construct a Turing machine which witnesses that the sign description of (μn)n=0∞(\mu_n)_{n=0}^{\infty} is effectively almost-periodic. Thus, given such an LRS and an ω\omega-regular language LL, we can decide whether the sign description xx is in LL.

Proof. Since precise computations can be carried out on the field of real algebraic numbers, it is clear that given any nn, we can always determine the nn-th letter of the sign description. We shall therefore focus on showing how, given a finite word uu, we can compute RuR_u such that uu either does not occur at any index beyond RuR_u, or occurs in every length-RuR_u factor of the sign description.

Case (1) is trivial. If there is a single real dominant root, then the sign description is effectively eventually periodic with period at most 2.

We note that showing that the sign-description is effectively almost-periodic would entail solving the Skolem problem, i.e., computing the set of indices at which the LRS is 0. Fortunately, the cases of the statement are amenable to techniques used to solve the Skolem problem for recurrences in the MSTV class, named after Mignotte, Shorey, Tijdeman [13], and Vereshchagin [14], who independently showed that the Skolem problem is decidable for LRS of order at most four. The key technical lemma uses Baker’s theory of linear forms in logarithms. We refer the reader to [2 Sec. 3.2], [7 Sec. 3, 4] for expository proofs of the following result, which makes the techniques of [9] effective at low orders.

Lemma 7. Let (μn)n=0∞(\mu_n)_{n=0}^{\infty} be a real algebraic LRS which has at most three dominant roots λ1,…,λr\lambda_1,\ldots,\lambda_r, and satisfies the property that the ratio of any pair of distinct dominant roots is not a root of unity. We can compute an index NN such that for all n≥Nn\ge N,

∣∑i=1rfi(n)λin∣>∣∑j=r+1kfj(n)λjn∣.\left|\sum_{i=1}^{r} f_i(n)\lambda_i^n\right|>\left|\sum_{j=r+1}^{k} f_j(n)\lambda_j^n\right|.

The lemma has the following consequences for Cases (2) and (3).

  • Any word uu that contains the letter 0 cannot be a factor of the sign description beyond the index NN.

  • In Case (3), beyond index NN, the sign description of the given LRS matches that of ∑i=13pi0λin\sum_{i=1}^{3}p_{i0}\lambda_i^n, which is in turn the same as the sign pattern of a sequence of the form a+bcos⁡(nθ+φ)a+b\cos(n\theta+\varphi) or a(−1)n+bcos⁡(nθ+φ)a(-1)^n+b\cos(n\theta+\varphi). This computable suffix of the sign description is effectively uniformly recurrent by virtue of being a toric word4, see, e.g., [1 proof of Thm. 3.1], [9 Thm. 8, Thm. 9].

The eventual effective uniform recurrence settles Case (3). We now turn to Case (2), which is tackled by generalising the arguments in [5 Sec. 6.4]. Beyond index NN, the sign description of the LRS is the same as that of the sequence

∑j=0mi−1ajnjcos⁡(nθ+φj),\sum_{j=0}^{m_i-1} a_j n^j \cos(n\theta+\varphi_j),

none of whose terms are 0. Intuitively, the sign of each factor is driven by the term ami−1nmi−1cos⁡(nθ+φmi−1)a_{m_i-1}n^{m_i-1}\cos(n\theta+\varphi_{m_i-1}), and can be the opposite only if the cosine factor is less than A/nA/n for some effective AA. More formally, the sign description of the above sequence is a noisy trace of the noise-robust dynamical system defined by an irrational rotation on the 1-torus partitioned into semicircular arcs. We immediately obtain from Thm. 2 that the sign description is almost-periodic. Furthermore, L⋆L_\star is recursive by semi-algebraic geometry, the noise function converges effectively, the modulus of continuity Ω(δ)\Omega(\delta) is simply δ\delta, and Δ(n)=min⁡d,∣m∣≤n∣mθ−dπ∣\Delta(n)=\min_{d,\lvert m\rvert\le n}\lvert m\theta-d\pi\rvert can be effectively under-approximated. We obtain from Thm. 4 that the noisy trace, i.e., the sign description, is effectively almost-periodic.

Only Case (4) remains. Three subcases arise: (i) All four roots are distinct and dominant; (ii) There are fewer than four dominant roots, and there is no pair of distinct dominant roots whose ratio is a root of unity; (iii) There are two or three dominant roots, and the ratio between a distinct pair is a root of unity. Of these, subcase (ii) has been subsumed by prior discussions.

In subcase (i), we have that the LRS is simple, has roots {±ρ,ρe±iθ}\{\pm\rho,\rho e^{\pm i\theta}\} or {ρe±iθ1,ρe±iθ2}\{\rho e^{\pm i\theta_1},\rho e^{\pm i\theta_2}\}, and hence its sign pattern has a suffix that is effectively uniformly recurrent by virtue of being toric [9 Thm. 11] (more precisely, the suffix of the sign pattern is the interleaving of effectively almost-periodic toric words, and will inherit the property by Lem. 5). The starting index of this suffix can be computed using Lem. 7 or by directly solving the Skolem problem for the ensuing low-order non-degenerate LRS in the MSTV class. This identifies when all of the interleaved non-degenerate LRS are guaranteed to be non-zero.

In subcase (iii), if there are three dominant roots, the LRS is of the form (±ρ)n+ρncos⁡(nπ/d+φ)+(±γ)n(\pm\rho)^n+\rho^n\cos(n\pi/d+\varphi)+(\pm\gamma)^n, where 0<γ<ρ0<\gamma<\rho. It is easy to see that the sign description will be effectively ultimately periodic. If there are two dominant roots, it is easy to see that the sign pattern is effectively ultimately periodic, except if the remaining non-dominant roots are complex conjugates and not roots of unity, and the contribution from dominant terms is periodically 0. We can still apply Lem. 7 to identify when the non-dominant contribution will persistently be non-zero, and then use Lem. 5 to deduce that the suffix of overall sign description, which is the interleaving of effectively almost-periodic, toric sign descriptions of low-order non-degenerate LRS, is itself toric and effectively almost-periodic. To end the proof, the last statement follows from Semënov’s theorem, as in Thm. 4. ◀

There are known instances of order-five LRS where its Skolem problem is unresolved, and instances of LRS with three dominant roots whose sign description is provably not almost-periodic [1 Sec. 4], and instances of LRS with three dominant roots for which the positivity and ultimate positivity problems (respectively, does the sign description contain −1-1, does the sign description contain −1-1 only finitely many times) are unresolved [12 Sec. 5].

Prefix-Independent Verification

Definition 8. An ω\omega-regular language L⊆ΣωL \subseteq\Sigma^\omega is said to be prefix-independent if for all u,v∈Σ∗u,v \in\Sigma^* and x∈Σωx \in\Sigma^\omega, ux∈Lux \in L if and only if $vx \in L.

In other words, if x′x' is obtained from xx by making finitely many edits, then either x,x′∈Lx,x' \in L or x,x′∉Lx,x' \notin L. We remark that any non-empty prefix-independent language is a liveness property, but the liveness property (ΣΣ)∗(aΣ)ω(\Sigma\Sigma)^*(a\Sigma)^\omega is not a prefix independent language.

Proposition 9. An ω\omega-regular language L⊆ΣωL \subseteq\Sigma^\omega is prefix-independent if and only if L=⋃i=1dΣ∗ViωL = \bigcup_{i=1}^{d} \Sigma^*V_i^\omega, where V1,…,VdV_1,\ldots,V_d are regular languages not containing the empty word.

Proof. We assume without losing generality that LL is non-empty.

Suppose L=⋃i=1dΣ∗ViωL = \bigcup_{i=1}^{d} \Sigma^*V_i^\omega. Suppose, for the sake of contradiction, there exists a pair x,x′x,x' of words a finite edit-distance apart such that x∈Σ∗Viω⊆Lx \in\Sigma^*V_i^\omega\subseteq L but x′∉Lx' \notin L. We have that x=uv1v2…x = uv_1v_2\ldots, where for each n≥1n \ge1, vn∈Viv_n \in V_i. Since x′x' is only a finite edit-distance away from xx, it can be factorised as u′vmvm+1…u'v_mv_{m+1}\ldots, which witnesses that x′∈Σ∗Viωx' \in\Sigma^*V_i^\omega, a contradiction. Thus L=⋃i=1dΣ∗ViωL = \bigcup_{i=1}^{d} \Sigma^*V_i^\omega implies that LL is prefix-independent.

Conversely, suppose L=⋃i=1dUiViωL = \bigcup_{i=1}^{d} U_iV_i^\omega is prefix-independent. Clearly, L⊆⋃i=1dΣ∗ViωL \subseteq\bigcup_{i=1}^{d} \Sigma^*V_i^\omega. We shall prove that the reverse inclusion also holds. To that end, consider x∈⋃i=1dΣ∗Viωx \in\bigcup_{i=1}^{d} \Sigma^*V_i^\omega. This word is clearly a finite edit-distance away from a word x′∈UiViω⊆Lx' \in U_iV_i^\omega\subseteq L. Since LL is prefix-independent, this implies x∈Lx \in L, and hence L=⋃i=1dΣ∗ViωL = \bigcup_{i=1}^{d} \Sigma^*V_i^\omega. ◀

:::

The rest of this section is organised as follows. We first formalise the intuition that prefix-independent ω\omega-regular languages comprise either “very dense” or “very sparse” subsets of Σω\Sigma^\omega. This intuition is further reflected in the main result of the section: almost-periodic words with the same set of recurrent factors are indistinguishable to a prefix-independent ω\omega-regular language.

We say a word x∈Σωx \in\Sigma^\omega is disjunctive if the set of its recurrent factors is Σ+\Sigma^+. Given an alphabet Σ\Sigma, we use DΣD_\Sigma to denote the set of disjunctive words over it.

Proposition 10. Let L⊆ΣωL \subseteq\Sigma^\omega be a prefix-independent ω\omega-regular language. We have that either DΣ⊆LD_\Sigma\subseteq L or DΣ∩L={}D_\Sigma\cap L = \{\}. Furthermore, we can determine which is the case.

Proof. Consider a deterministic parity automaton A\mathcal{A} recognising LL, and in particular, the graph induced by it. We can prove [4 Thm. 4.16] (detailed proof in [6 App. A.4]) that in the run on any disjunctive word xx, the set of states visited infinitely often is precisely a bottom strongly connected component. To determine whether the set of disjunctive words is included in, or excluded from LL, we check whether the highest colour in a bottom strongly component is even or odd. Note that the parity must be consistent across different bottom strongly components, otherwise the prefix-independence of LL would be contradicted. (One can make finitely many edits to a disjunctive word so that the run settles in any chosen bottom strongly connected component; these edits, however, alter neither disjunctivity nor membership in the language.)

In other words, a prefix-independent ω\omega-regular language either contains almost all words, or excludes almost all words. Here, the quantifier “almost all” is with respect to the uniform Borel probability measure on Σω\Sigma^\omega, which assigns the cylinder {ux∣x∈Σω}\{ux \mid x \in\Sigma^\omega\} measure 1/∣Σ∣∣u∣1/|\Sigma|^{|u|}.

The main result of this section is a slightly generalised reformulation of [1 Sec. 5], with simplified techniques. (We leave gauging the extent of simplification to the discernment of the reader.) We introduce an auxiliary technical notion before we prove the theorem.

In order to aggregate information about automaton runs, we define a journey to be a tuple in Q×Q×NQ \times Q \times\mathbb{N}, which describes a finite run q0q1…qlq_0q_1 \ldots q_l on a word u0…ul−1u_0 \ldots u_{l-1} by recording the starting state q0q_0, the ending state qlq_l, and the maximum colour among those of q1,…,qlq_1, \ldots, q_l. Clearly, if a word uu can make the journey (q1,q2,c1)(q_1, q_2, c_1) and a word vv can make the journey (q2,q3,c2)(q_2, q_3, c_2), then the word uvuv can make the journey (q1,q3,max⁡(c1,c2))(q_1, q_3, \max(c_1, c_2)). For a factorisation into finite words u0u1⋯u_0u_1 \cdots of an infinite word xx, if each uiu_i makes can make the journey (qi,qi+1,ci)(q_i, q_{i+1}, c_i), then the automaton accepts xx if and only if lim sup⁡i∈Nci\limsup_{i \in\mathbb{N}} c_i is even.

Theorem 11. Let W⊆ΣωW \subseteq\Sigma^\omega be a set of almost-periodic words, and let L⋆⊆Σ∗L_\star\subseteq\Sigma^* be such that for all x∈Wx \in W, the set of recurrent factors of xx is L⋆L_\star. Let L⊆ΣωL \subseteq\Sigma^\omega be a prefix-independent ω\omega-regular language. We have that W⊆LW \subseteq L or W∩L={}W \cap L = \{\}. Furthermore, given an oracle for membership in L⋆L_\star, we can decide which of the above two cases holds.

Proof. We will show that for any x∈Wx \in W, we can decide whether x∈Lx \in L purely with oracle queries to L⋆L_\star. Throughout this proof, we assume that LL is recognised by a deterministic parity automaton A=(Q,Σ,qinit,Δ,col⁡)A = (Q, \Sigma, q_{\mathrm{init}}, \Delta, \operatorname{col}), and all states in AA are reachable from qinitq_{\mathrm{init}}.

Observe, using Lem. 3, that given u∈L⋆u \in L_\star, any arbitrary x∈Wx \in W can be written as wuv1uv2u⋯wu v_1u v_2u \cdots, where ∣vi∣<Ru|v_i| < R_u and uviu∈L⋆uv_i u \in L_\star for all i≥1i \ge1. Indeed, we choose ww long enough so that in the suffix obtained by deleting it, all factors of length at most 2∣u∣+Ru2|u| + R_u are recurrent, and all factors of length RuR_u contain an occurrence of uu. We remark that RuR_u is effective, but ww need not be effective for the proof that follows.

We define the set window⁡u={v∣∣v∣<Ru∧uvu∈L⋆}\operatorname{window}_u = \{v \mid|v| < R_u \land uvu \in L_\star\} and observe that it is finite and computable with oracle access to L⋆L_\star. In other words, W⊆Σ∗(u⋅window⁡u)ωW \subseteq\Sigma^*(u \cdot\operatorname{window}_u)^\omega. We will use this pattern to determine the highest colour seen infinitely often in a run of AA.

We say that a factor u∈L⋆u \in L_\star is saturated with respect to AA if for all q∈Qq \in Q and all v∈window⁡uv \in\operatorname{window}_u, if uu makes the journey (q,q′,c)(q,q',c) and uvuuvu makes the journey (q,q′′,c′)(q,q'',c'), then c=c′c = c'. In other words, the highest colour seen while reading uvuuvu starting from any qq must have been already seen while reading the prefix uu. Saturated factors help us determine acceptance as follows. Let x=vu1v2⋯x = vu_1v_2 \cdots, and let the corresponding sequence of journeys be (q0,q1,c0),(q1,q2,c1),…(q_0,q_1,c_0),(q_1,q_2,c_1),\ldots. By saturation, for all ii, we get that c2i+1≥c2i+2c_{2i+1} \ge c_{2i+2} and c2i+1≥c2i+3c_{2i+1} \ge c_{2i+3}. We now use prefix-independence.

Let (q⋆,q′,c⋆)(q_\star,q',c_\star) be a journey uu can undertake such that for all other journeys (q,q′′,c)(q,q'',c) of uu, c≥c⋆c \ge c_\star. Let w′w' be a word that takes qinitq_{\mathrm{init}} to q⋆q_\star. By prefix-independence, we have that x∈Lx \in L if and only if x′=w′v1uv2⋯∈Lx' = w'v_1uv_2 \cdots\in L. The new sequence of journeys is (q0′,q1′,c′),(q1′,q2′,c1′),…(q'_0,q'_1,c'),(q'_1,q'_2,c'_1),\ldots, where q1′=q⋆q'_1 = q_\star and c1′=c⋆c'_1 = c_\star. The same saturation properties hold: c2i+1′≥c2i+2′c'_{2i+1} \ge c'_{2i+2} and c2i+1′≥c2i+3′c'_{2i+1} \ge c'_{2i+3}. Hence, lim sup⁡ici′=c⋆\limsup_i c'_i = c_\star.

We have just proven that an arbitrary x∈Wx \in W is accepted by AA if and only if the colour c⋆c_\star effectively defined by a saturated factor u∈L⋆u \in L_\star is even. It remains to prove that saturated factors exist, and can be computed with oracle access to L⋆L_\star. We shall do so with a fix-point algorithm that returns a saturated factor. We associate with each word uu a function fu:Q→Nf_u: Q \to\mathbb{N}, defined such that uu makes the journey (q,q′,fu(q))(q,q',f_u(q)) for some q′q'. We define a quasi-ordering on finite words and say that u⪯vu \preceq v if fu(q)≤fv(q)f_u(q) \le f_v(q) for all qq. Clearly, if uu is a prefix of vv then u⪯vu \preceq v. In particular, for all v∈window⁡uv \in\operatorname{window}_u, u⪯uvuu \preceq uvu, but for a saturated word uu, uvu⪯uuvu \preceq u for all v∈window⁡uv \in\operatorname{window}_u. It is also easy to observe that this quasi-ordering has finitely many (at most ∣Q∣2|Q|^2) equivalence classes, and hence cannot admit a strictly increasing chain of more than ∣Q∣2|Q|^2 words. Our algorithm thus starts with u∈L⋆u \in L_\star. In each iteration, it computes window⁡u\operatorname{window}_u with queries to L⋆L_\star, and checks if uu is saturated. If yes, it returns uu; if not, it iterates with uvuuvu, v∈window⁡uv \in\operatorname{window}_u that is strictly above uu in the quasi-ordering. By the argument above, the algorithm runs for at most ∣Q∣2|Q|^2 iterations. ◀

Applying Thms. 2 and 11 gives the following result.

Corollary 12. Let (X,T,⟨S1,…,Sk,Z⟩,σ)(X,T,\langle S_1,\ldots,S_k,Z\rangle,\sigma) be a noise-robust dynamical system, and let L⊆ΣωL \subseteq\Sigma^\omega be a prefix-independent ω\omega-regular language. We have that either Traces⁡σ⊆L\operatorname{Traces}_\sigma\subseteq L or Traces⁡σ∩L=∅\operatorname{Traces}_\sigma\cap L = \varnothing. Furthermore, if L⋆L_\star is recursive, the language of recurrent factors of words in Traces⁡σ\operatorname{Traces}_\sigma, then we can decide which of the above two cases holds.

The Sturmian Case

For Sturmian systems, the space XX is the 1-torus (identified by the interval [0,1)[0,1)), and the dynamical update TT is an irrational rotation γ\gamma, i.e., α\alpha is mapped to α+γ mod 1\alpha+\gamma\bmod1. Without loss of generality, we assume γ<1/2\gamma< 1/2. The partitions are [0,γ)[0,\gamma) and [γ,1)[\gamma,1), and the coding maps these to 1 and 0 respectively. We see that Z={0,γ}Z=\{0,\gamma\}, and T∘0=γT \circ0=\gamma. Hence, Sturmian systems are not noise-robust by our definition. More specifically, we can prove that if u∈L⋆u \in L_\star, the set of words for which XuX_u is non-empty, then uu is a recurrent factor of all (noisy) traces. However, if u∉L⋆u \notin L_\star, the word uu can still be a factor of some noisy traces, and in fact these noisy traces can fail to be almost-periodic. Indeed, the independent discrete orbit property needed to preclude this failure does not hold.

In the absence of noise, it is known that Sturmian words are uniformly recurrent and have minimal factor complexity: there are exactly n+1n+1 factors of length nn. In particular, the length-2 factors are 00, 01, 10. We shall show that if we allow noise, regardless of how rapidly the noise converges to 0, there are starting points α\alpha such that the noisy trace has 11 as a recurrent factor, and moreover the gaps between the occurrences of 11 are unbounded.

Consider a noise function ν\nu such that for all nn, ν(n)>0\nu(n)>0. Observe that 11 can only occur as a factor if we perform a perturbation when

α+nγ∈(1−ν(n),1)∪[0,ν(n+1)).\alpha+n\gamma\in(1-\nu(n),1) \cup[0,\nu(n+1)).

or by an appropriate shifting of coordinates,

α∈(−nγ−ν(n),−nγ+ν(n+1)).\alpha\in(-n\gamma-\nu(n),-n\gamma+\nu(n+1)).

To define where to perform perturbations, we shall now construct a sequence of indices n0,n1,…n_0,n_1,\ldots having unbounded gaps (e.g., by choosing ni+1>ni+i+1n_{i+1}>n_i+i+1), and a sequence A0⊇A1⊇⋯A_0 \supseteq A_1 \supseteq\cdots of non-empty closed intervals of the 1-torus, such that

Ai⊆(−niγ−ν(ni),−niγ+ν(ni+1)).A_i \subseteq(-n_i\gamma-\nu(n_i),-n_i\gamma+\nu(n_i+1)).

By the nested intervals theorem, we would then have that the intersection of these intervals contains a point α⋆\alpha_\star, and for all nin_i,

α⋆∈(−niγ−ν(ni),−niγ+ν(ni+1)).\alpha_\star\in(-n_i\gamma-\nu(n_i),-n_i\gamma+\nu(n_i+1)).

This would imply that α⋆\alpha_\star has a noisy trace xx, obtained by performing perturbations at each of the nin_i’s (or (ni+1)(n_i+1)’s, as required), such that xx has 11 as a recurrent factor, and the gaps between consecutive occurrences of 11 are unbounded.

We now present the inductive construction of n0,n1,…n_0,n_1,\ldots, and A0,A1,…A_0,A_1,\ldots. We can choose n0n_0 arbitrarily, and take A0A_0 to be a closed interval,

A0⊆(−n0γ−ν(n0),−n0γ+ν(ni+1)).A_0 \subseteq(-n_0\gamma-\nu(n_0),-n_0\gamma+\nu(n_i+1)).

For the inductive step, assume that ni,Ain_i,A_i have been constructed. Let Bi⊆AiB_i \subseteq A_i be an open interval. By the (Kronecker/Weyl) equidistribution theorem, we know that there are infinitely many nn such that −nγ∈Bi-n\gamma\in B_i. We choose ni+1n_{i+1} such that ni+1−ni>i+1n_{i+1}-n_i>i+1, and choose Ai+1A_{i+1} to be a closed interval in the non-empty intersection of two open intervals,

Ai+1⊆Bi∩(−niγ−ν(ni),−niγ+ν(ni+1)).A_{i+1} \subseteq B_i \cap(-n_i\gamma-\nu(n_i),-n_i\gamma+\nu(n_i+1)).

The infinite intersection of the AiA_i’s is thus {α⋆}\{\alpha_\star\}, where traces⁡σ(α⋆)\operatorname{traces}_\sigma(\alpha_\star) contains a word that is not almost-periodic, and whose set of recurrent factors contains 11, which is not a factor of any trace with noise 0.

Interestingly, however, if we were to change the Sturmian system by making the rotation mγm\gamma instead of γ\gamma (where mm is an integer, ∣m∣>1|m|>1), then the new dynamical system would indeed be noise-robust. This shows that a noisy Sturmian word, while itself not almost-periodic, is an interleaving of almost-periodic noisy toric words. This is an analogue of [5 Cor. 6.9]

The same arguments as above would allow us to encode the computations of Diophantine approximation constants (e.g., inf⁡n[nγ+α]\inf_n[n\gamma+\alpha], lim inf⁡n[nγ+α]\liminf_n[n\gamma+\alpha], where even algorithmically determining whether these quantities are 0 remains an open number-theoretic problem) using queries such as, “given α\alpha and noise ν\nu lower-bounded by 1/n1/n, does traces⁡σ(α,ν)\operatorname{traces}_\sigma(\alpha,\nu) contain a trace xx in which the factor 11 occurs (respectively, occurs infinitely often)?”

References

  1. [1]Shaull Almagor, Toghrul Karimov, Edon Kelmendi, Joël Ouaknine, and James Worrell. Deciding omega-regular properties on linear recurrence sequences. 5(POPL), January 2021. doi:10.1145/3434329.DOI
  2. [2]Piotr Bacik. Completing the picture for the skolem problem on order-4 linear recurrence sequences. TheoreticCS, Volume 4, Dec 2025. URL: https://theoretics.episciences.org/14219, doi:10.46298/theoretics.25.28.DOI
  3. [3]Christel Bader, Florian Funke, Simon Jantsch, Toghrul Karimov, Engel Lefaucheux, Joël Ouaknine, David Purser, Markus A. Whiteland, and James Worrell. Parameter Synthesis for Parametric Probabilistic Dynamical Systems and Prefix-Independent Specifications. In Bartek Klin, Sławomir Lasota, and Anca Muscholl, editors, 33rd International Conference on Concurrency Theory (CONCUR 2022), volume 243 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:16, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CONCUR.2022.10, doi:10.4230/LIPIcs.CONCUR.2022.10.
  4. [4]Valérie Berthé, Toghrul Karimov, Joris Nieuwveld, Joël Ouaknine, Mihir Vahanwala, and James Worrell. On the Decidability of Monadic Second-Order Logic with Arithmetic Predicates. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’24, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3661814.3662119.DOI
  5. [5]Valérie Berthé, Toghrul Karimov, Joris Nieuwveld, Joël Ouaknine, Mihir Vahanwala, and James Worrell. The monadic theory of toric words. Theoretical Computer Science, 1025:114959, 2025.arxiv.org/abs/2311.04895
  6. [6]Valérie Berthé, Toghrul Karimov, Joris Nieuwveld, Joël Ouaknine, Mihir Vahanwala, and James Worrell. On the decidability of monadic second-order logic with arithmetic predicates, 2024. URL: https://arxiv.org/abs/2405.07953, arXiv:2405.07953.
  7. [7]Yuri Bilu. Skolem problem for linear recurrence sequences with 4 dominant roots (after mignotte, shorey, tijdeman, verschechagin and bacik), 2025. URL: https://arxiv.org/abs/2501.16290, arXiv:2501.16290.
  8. [8]Toghrul Karimov. Algorithmic verification of linear dynamical systems, 2023. doi:http://dx.doi.org/10.22028/D291-41630.
  9. [9]Toghrul Karimov, Edon Kelmendi, Joris Nieuwveld, Joël Ouaknine, and James Worrell. The power of positivity. In 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–11, 2023. doi:10.1109/LICS56636.2023.10175758.DOI
  10. [10]Michael Keane. Interval exchange transformations. Mathematische Zeitschrift, 141(1):25–31, 1975. doi:10.1007/BF01236981.DOI
  11. [11]A. Muchnik, A. Semenov, and M. Ushakov. Almost periodic sequences. Theoretical Computer Science, 304(1):1–33, 2003. doi:10.1016/S0304-3975(02)00847-2.DOI
  12. [12]Joël Ouaknine and James Worrell. Positivity problems for low-order linear recurrence sequences. In Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’14, page 366–379, USA, 2014. Society for Industrial and Applied Mathematics.
  13. [13]R. Tijdeman, M. Mignotte, and T.N. Shorey. The distance between terms of an algebraic recurrence sequence. Journal für die reine und angewandte Mathematik, 49:63–76, 1984. URL: http://eudml.org/doc/152622.DOI
  14. [14]N. K. Vereschchagin. Occurrence of zero in a linear recursive sequence. Mathematical Notes of the Academy of Sciences of the USSR, 38:609–615, 1985. doi:10.1007/BF01156238.
  15. [15]Peter Walters. An introduction to ergodic theory, volume 79. Springer Science & Business Media, 2000.
  16. [16]Hermann Weyl. Über die Gleichverteilung von Zahlen mod. Eins. Mathematische Annalen, 77(3):313–352, 1916.

Paper details

vlnc:W_7nwk52f4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents