arXiv:2609.03127math.NTSep 2026

Manuscript Offprint

arXiv:2609.03127

Skolem-Mahler-Lech in rings of positive characteristic: a shorter proof and a multi-dimensional generalization

Ruiwen Dong, Doron Shafrir

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

Abstract

Let RR be a commutative ring and f(a1,…,an)=∑i=1kri1a1⋯rinanmif(a_1, \ldots, a_n) = \sum_{i=1}^k r_{i1}^{a_1} \cdots r_{in}^{a_n} m_i be a linear-exponential map over an RR-module MM. Dong and Shafrir (2026) showed that, when ℓM=0\ell M = 0 for some ℓ∈N>0\ell \in \mathbb{N}_{>0}, the zero set of ff is the intersection of effectively computable pp-normal sets, where pp ranges over the prime divisors of ℓ\ell. This generalizes an earlier theorem of Derksen and Masser (2012) on the solution set of SS-unit equations over fields of positive characteristic. The purpose of this paper is twofold. First, we give a shorter proof of Dong and Shafrir's result, using the theorem of Derksen-Masser as a blackbox. Our proof also yields a decomposition of the zero set as a positive Boolean combination of affine transformations of zero sets of linear-exponential equations over fields. Second, we prove a multi-dimensional generalization of the Skolem-Mahler-Lech theorem over rings of finite characteristic. Specifically, we show that the zero set of every nn-dimensional linear recurrence sequence over an RR-module MM satisfying ℓM=0\ell M = 0 is the intersection of effectively computable pp-normal sets (in Nn\mathbb{N}^n), where pp ranges over the prime divisors of ℓ\ell. For example, this gives a decision procedure for whether two classical linear recurrence sequences have a common value over a ring of characteristic pap^a or paqbp^a q^b, where pp and qq are primes.

1 Introduction

1.1 Linear-exponential equation over fields. Linear-exponential equations have a long history dating back to the early work of Thue, Mahler, and Siegel on Diophantine approximation and transcendental number theory. They appear throughout mathematics and computer science, including areas such as program analysis, arithmetic theories, analytic combinatorics, and cryptography [BS08, FS09, LLN+^+22, HS24, IS24]. See [EG15, EG22] for monographs on this topic.

For a field FF we denote by F×F^\times the set of all non-zero elements of FF. A linear-exponential equation over FF is an equation of the form

r11a1⋯r1nan⋅m1+r21a1⋯r2nan⋅m2+⋯+rk1a1⋯rknan⋅mk=0,(1.1)r_{11}^{a_1} \cdots r_{1n}^{a_n} \cdot m_1 + r_{21}^{a_1} \cdots r_{2n}^{a_n} \cdot m_2 + \cdots + r_{k1}^{a_1} \cdots r_{kn}^{a_n} \cdot m_k = 0, \tag{1.1}

where a1,…,an∈Za_1, \ldots, a_n \in \mathbb{Z} are the variables, and rij∈F×,mi∈Fr_{ij} \in F^\times, m_i \in F, are fixed coefficients. For example, the equation 2a3b−4a5b+(16)a7b=02^a 3^b - 4^a 5^b + \left(\frac{1}{6}\right)^a 7^b = 0 is a linear-exponential equation over the field Q\mathbb{Q}.

By setting appropriate coefficients rijr_{ij} to 1, one can separate variables or include constants in Equation (1.1). For example, 2a1b−1a3b−1a1b=02^a 1^b - 1^a 3^b - 1^a 1^b = 0 recovers the classical Diophantine equation 2a−3b=12^a - 3^b = 1. Therefore, this definition is general enough to cover other variants of linear-exponential form, such as the well-known SS-unit equations in number theory.

The solution set of Equation (1.1) is precisely the zero set of the linear-exponential map ff:

f(a):=r1am1+r2am2+⋯+rkamk,(1.2)f(\boldsymbol{a}):=\boldsymbol{r}_{1}^{\boldsymbol{a}}m_{1}+\boldsymbol{r}_{2}^{\boldsymbol{a}}m_{2}+\cdots+\boldsymbol{r}_{k}^{\boldsymbol{a}}m_{k}, \tag{1.2}

*Magdalen College, University of Oxford, United Kingdom, email: ruiwen.dong@magd.ox.ac.uk

†Department of Mathematics, Ben-Gurion University of the Negev, Be'er Sheva, Israel where we denote ria:=ri1a1ri2a2⋯rinan\boldsymbol{r}_i^a := r_{i1}^{a_1} r_{i2}^{a_2} \cdots r_{in}^{a_n} for tuples ri=(ri1,…,rin)∈(F×)n\boldsymbol{r}_i = (r_{i1}, \ldots, r_{in}) \in (F^\times)^n, a=(a1,…,an)∈Zn\boldsymbol{a} = (a_1, \ldots, a_n) \in \mathbb{Z}^n.

When FF is a field of characteristic 0, the subspace theorem can be used to prove that the zero set

Z(f):={a∈Zn∣f(a)=0}\mathfrak{Z}(f):=\{\boldsymbol{a}\in\mathbb{Z}^{n}\mid f(\boldsymbol{a})=0\}

of a linear-exponential map ff is a finite union of affine subspaces of Zn\mathbb{Z}^n [Eve84, vdPS91]. However, all known versions of the subspace theorem are ineffective: there is no known algorithm for computing these subspaces, or even for deciding whether Z(f)\mathfrak{Z}(f) is empty.

When FF is a field of characteristic p>0p > 0, Derksen and Masser give the following characterization of the zero set Z(f)\mathfrak{Z}(f):

Theorem 1.1 (Linear-exponential equation in fields, Derksen-Masser [DM12]). Let FF be a field of characteristic p>0p > 0, and let f(a)=∑i=1kriamif(\boldsymbol{a}) = \sum_{i=1}^{k} \boldsymbol{r}_{i}^{\boldsymbol{a}} m_{i}, where r1,…,rk∈(F×)n,m1,…,mk∈F\boldsymbol{r}_{1}, \ldots, \boldsymbol{r}_{k} \in (F^{\times})^{n}, m_{1}, \ldots, m_{k} \in F. Then, the zero set Z(f)\mathfrak{Z}(f) is effectively pp-normal.1^{1}

Roughly speaking, a pp-normal set is a finite union of subsets of Zn\mathbb{Z}^n whose elements are described by linear expressions involving integer variables and powers of pp. For example, {(x+pn,2x)∣x∈Z,n∈N}⊆Z2\{(x + p^n, 2x) \mid x \in \mathbb{Z}, n \in \mathbb{N}\} \subseteq \mathbb{Z}^2 is a pp-normal set. See Definition 2.2 for the formal definition. By effective we mean that there is an algorithm that computes Z(f)\mathfrak{Z}(f) from the input r1,…,rk,m1,…,mk\boldsymbol{r}_1, \ldots, \boldsymbol{r}_k, m_1, \ldots, m_k, under the standard computability assumptions on the field FF [BCMI81]. In particular, this means we can algorithmically decide whether Z(f)\mathfrak{Z}(f) is empty.

The following classic example illustrates the theorem of Derksen-Masser.

Example 1.2 ([Der07, Example 1.3]). Let FF be the field of rational functions F2(X)\mathbb{F}_2(X). Consider the linear-exponential map f:Z→F2(X)f: \mathbb{Z} \to \mathbb{F}_2(X),

f(a):=(X+1)a−Xa−1a.(1.3)f(a):=(X+1)^{a}-X^{a}-1^{a}. \tag{1.3}

Then the zero set Z(f)\mathfrak{Z}(f) is {2k∣k∈N}\{2^k \mid k \in \mathbb{N}\}.

Indeed, if a=2ka = 2^k for some k∈Nk \in \mathbb{N}, then applying the identity (X+1)2=X2+1(X+1)^2 = X^2 + 1 (which holds in characteristic 2), repeatedly kk times, we obtain (X+1)2k=X2k+1(X+1)^{2^k} = X^{2^k} + 1. Therefore f(2k)=0f(2^k) = 0. On the other hand, suppose f(a)=0f(a) = 0, it is easy to see that a≥0a \geq 0. If a=2k+ba = 2^k + b for some 1≤b≤2k−11 \leq b \leq 2^k - 1, then the expansion of (X+1)a=(X2k+1)(X+1)b(X+1)^a = (X^{2^k} + 1)(X+1)^b must contain more than two monomials, so it cannot be equal to Xa+1aX^a + 1^a. We conclude that Z(f)={2k∣k∈N}\mathfrak{Z}(f) = \{2^k \mid k \in \mathbb{N}\}, which is a 2-normal set.

1.2 Linear-exponential equation over rings and modules. The definition (1.2) of a linear-exponential map naturally extends from fields to rings and modules. All rings considered in this paper are commutative. For a commutative ring RR, denote by R×R^\times its set of invertible elements. A linear-exponential map over an RR-module MM, is a map f:Zn→Mf: \mathbb{Z}^n \to M of the form f(a)=∑i=1kriamif(\boldsymbol{a}) = \sum_{i=1}^k \boldsymbol{r}_i^a m_i, where r1,…,rk∈(R×)n\boldsymbol{r}_1, \ldots, \boldsymbol{r}_k \in (R^\times)^n, and m1,…,mk∈Mm_1, \ldots, m_k \in M. In particular, if we take MM to be the RR-module RR, where RR is a field, then we recover the definition of linear-exponential maps over fields.

Linear-exponential equations over rings and modules are much more expressive than their field counterparts. They naturally arise in areas such as symbolic computation, coding theory, and algorithmic group theory, where the underlying structure cannot be embedded into fields [ABF07,

1^1This formulation is a minor variant of the statement in [DM12], which considers the S-unit sum f(a1,…,ak)=∑i=1kraimif(\boldsymbol{a}_1, \ldots, \boldsymbol{a}_k) = \sum_{i=1}^k \boldsymbol{r}^{a_i} m_i. Our statement can be obtained by taking r\boldsymbol{r} in this expression to be the concatenation (r1,…,rk)∈(F×)kn(\boldsymbol{r}_1, \ldots, \boldsymbol{r}_k) \in (F^\times)^{kn}, so f(a11,a12,…,akk)=∑i=1kr1ai1⋯rkaikxif(\boldsymbol{a}_{11}, \boldsymbol{a}_{12}, \ldots, \boldsymbol{a}_{kk}) = \sum_{i=1}^k \boldsymbol{r}_1^{a_{i1}} \cdots \boldsymbol{r}_k^{a_{ik}} x_i, then restricting the variables to the diagonal a11=a22=⋯=akk=a\boldsymbol{a}_{11} = \boldsymbol{a}_{22} = \cdots = \boldsymbol{a}_{kk} = \boldsymbol{a}, and aij=0\boldsymbol{a}_{ij} = 0 for i≠ji \neq j. This preserves the p-normal structure of the zero set (see Lemma 2.3). Similarly, the formulation of Theorem 1.3 below is a variant of [DS26a].

Don25b]. For example, the problem of finding sparse polynomials in an ideal II can be formulated as a linear-exponential equation over the RR-module R/IR/I, where RR is a polynomial ring [JKK17].

When RR is a ring of characteristic 0, the zero set Z(f)\mathfrak{Z}(f) can be incomputable in general. More precisely, there are finitely presented modules MM over the Laurent polynomial ring R=Z[X,X−1]R = \mathbb{Z}[X, X^{-1}], where it is undecidable whether a given linear-exponential map f:Zn→Mf: \mathbb{Z}^n \to M has an empty zero set Z(f)\mathfrak{Z}(f) [Don25a].

When RR is a ring of characteristic ℓ>0\ell > 0, or more generally, when ℓM=0\ell M = 0 for ℓ>0\ell > 0, Dong and Shafrir [DS26a] proved the following generalization of Derksen-Masser (Theorem 1.1):

Theorem 1.3 (Linear-exponential equation in modules [DS26a]), Let RR be a commutative ring. Let MM be an RR-module such that ℓM=0\ell M = 0 for some ℓ∈N>0\ell \in \mathbb{N}_{>0}, and let f(a)=∑i=1kriαmif(\boldsymbol{a}) = \sum_{i=1}^k \boldsymbol{r}_i^\alpha m_i, where r1,…,rk∈(R×)n,m1,…,mk∈M\boldsymbol{r}_1, \ldots, \boldsymbol{r}_k \in (R^\times)^n, m_1, \ldots, m_k \in M. Then we can write Z(f)=⋂p∣ℓSp\mathfrak{Z}(f) = \bigcap_{p \mid \ell} S_p, where pp runs over the prime factors of ℓ\ell and SpS_p is effectively pp-normal.

For example, Theorem 1.3 shows that the solution set of a linear-exponential equation over the ring Z/12[X,X−1,(X+1)−1]\mathbb{Z}_{/12}[X, X^{-1}, (X+1)^{-1}] (viewed as a module over itself) is the intersection of a 2-normal set and a 3-normal set. The word effective means that there is an algorithm that computes each component SpS_p for p∣ℓp \mid \ell, assuming standard computability conditions on RR and MM [BCMI81] (see Section 2.1). However, this does not give a procedure for deciding whether the intersection ⋂p∣ℓSp\bigcap_{p \mid \ell} S_p is empty: this reduces to the existential first-order theory of the structure ⟨Z;0,1,+,(pN)p∣ℓ⟩\langle \mathbb{Z}; 0, 1, +, (p^{\mathbb{N}})_{p \mid \ell} \rangle, and is only known to be decidable in special cases such as when ℓ\ell has at most two different prime divisors [KLN+25] or when n=1n = 1 [DS26b]. See Section 4.2 for more discussion on this problem.

By the Chinese Remainder Theorem, Theorem 1.3 essentially reduces to the case where ℓ=pe\ell = p^e for prime pp and integer e≥1e \geq 1. The main difficulty arises when e>1e > 1, as one cannot view MM with pM≠0pM \neq 0 as a linear space over a field of characteristic pp. Notably, Example 1.2 fails on the ring Z/4[X,X−1,(X+1)−1]\mathbb{Z}_{/4}[X, X^{-1}, (X+1)^{-1}], since (X+1)2≠X2+1(X+1)^2 \neq X^2 + 1 in characteristic 4.

To prove Theorem 1.3, the approach of [DS26a] is to analyse the proof of Theorem 1.1 by Derksen and Masser step by step, and generalize each of its ingredients from fields to modules. These generalizations are highly non-trivial and use a combination of automata theory and non-commutative algebra. Since the proof of the original Derksen-Masser theorem [DM12] is already rather intricate, this approach yields a substantially longer and very involved proof.

The first purpose of this paper is to provide a significantly shorter and comparatively elementary proof of Theorem 1.3. Our approach treats the Derksen-Masser theorem as a blackbox, rather than unpacking every component of its proof. More precisely, we show that the zero set of a linear-exponential map over an RR-module MM can be expressed as a positive Boolean combination of sets of the form pt⋅Z(f)+bp^t \cdot \mathfrak{Z}(f) + \boldsymbol{b}, where t∈N,b∈Znt \in \mathbb{N}, \boldsymbol{b} \in \mathbb{Z}^n, and ff is a linear-exponential map over a field of characteristic pp. This allows us to apply Derksen-Masser on each Z(f)\mathfrak{Z}(f). This explicit decomposition is a new consequence of our approach and does not seem accessible via the proof in [DS26a]. Our key step is Proposition 3.3, which may be viewed as a linear-exponential analogue of Hensel lifting: the classical technique in number theory for lifting solutions of polynomial equations modulo pp to modulo pep^e. Beyond its role in the proof, Proposition 3.3 may be of independent interest. A concrete example (Example 3.5) will be given to illustrate its idea.

1.3 The Skolem Problem and a multi-dimensional generalization. A prominent application of linear-exponential equations is the Skolem Problem, which asks whether a linear recurrence sequence contains a zero term. Here, a sequence γ(0),γ(1),γ(2),…\gamma(0), \gamma(1), \gamma(2), \ldots is called a linear recurrence sequence if there exist d≥1d \geq 1 and constants c1,…,cdc_1, \ldots, c_d, such that

γ(n)=c1⋅γ(n−1)+⋯+cd⋅γ(n−d),for all n≥d.(1.4)\gamma(n) = c_1 \cdot \gamma(n-1) + \cdots + c_d \cdot \gamma(n-d), \quad \text{for all } n \geq d. \tag{1.4}

Note that γ\gamma is uniquely determined by the recurrence relation (1.4) as well as its dd initial terms γ(0),γ(1),…,γ(d−1)\gamma(0), \gamma(1), \ldots, \gamma(d-1).

Over a field of characteristic 0, decidability of the Skolem Problem is a longstanding open problem. The celebrated theorem of Skolem-Mahler-Lech [Sko34, Mah35, Lec53] shows that the zero set of a linear recurrence sequence over a field of characteristic 0 is a union of a finite set and finitely many arithmetic progressions. However, the Skolem-Mahler-Lech theorem is not effective, and there is no known algorithm that decides whether the zero set is empty.

Over a field of characteristic p>0p>0, the Skolem Problem is decidable by a result of Derksen:

Theorem 1.4 (Skolem-Mahler-Lech in fields of positive characteristic [Der07]). Let FF be a field of characteristic p>0p>0, and γ:N→F\gamma: \mathbb{N} \to F be a linear recurrence sequence. Then the zero set Z(γ)\mathfrak{Z}(\gamma) is effectively pp-normal in N\mathbb{N}.

The definition of pp-normal sets in N\mathbb{N} is conceptually similar to pp-normal sets in Z\mathbb{Z}, but there are some technical nuances: notably, it can not be defined as the intersection of N\mathbb{N} with a pp-normal set in Z\mathbb{Z}. The formal definition is given in Definition 4.3.

Over a ring of characteristic ℓ>0\ell>0, a follow-up paper by Dong and Shafrir [DS26b] proved the following generalization of Theorem 1.4:

Theorem 1.5 (Skolem-Mahler-Lech in rings of positive characteristic [DS26b]). Let RR be a commutative ring of characteristic ℓ>0\ell>0, and γ:N→R\gamma: \mathbb{N} \to R be a linear recurrence sequence. Then we can write Z(γ)=⋂p∣ℓSp\mathfrak{Z}(\gamma) = \bigcap_{p \mid \ell} S_p, where pp runs over the prime factors of ℓ\ell and SpS_p is effectively pp-normal in N\mathbb{N}. Furthermore, it is decidable whether ⋂p∣ℓSp\bigcap_{p \mid \ell} S_p is empty.

The second purpose of our paper is to prove a multi-dimensional generalization of Theorem 1.5:

Theorem 1.6 (Multi-dimensional Skolem-Mahler-Lech in modules). Let RR be a commutative ring. Let MM be an RR-module such that ℓM=0\ell M = 0 for some ℓ∈N>0\ell \in \mathbb{N}_{>0}, and let γ:Nn→M\gamma: \mathbb{N}^n \to M be an nn-dimensional linear recurrence sequence. Then we can write Z(γ)=⋂p∣ℓSp\mathfrak{Z}(\gamma) = \bigcap_{p \mid \ell} S_p, where pp runs over the prime factors of ℓ\ell and SpS_p is effectively pp-normal in Nn\mathbb{N}^n.

By generalizing to dimensions n>1n>1, we lose the ability to decide whether ⋂p∣ℓSp\bigcap_{p \mid \ell} S_p is empty. This reduces to the existential first-order theory of the structure ⟨Z;0,1,<,+,(pN)p∣ℓ⟩\langle \mathbb{Z}; 0, 1, <, +, (p^{\mathbb{N}})_{p \mid \ell} \rangle, which (with the additional <<) is also known to be decidable when ℓ\ell has at most two prime divisors (see Section 4.2).

In Theorem 1.6, we define an nn-dimensional linear recurrence sequence to be a map γ:Nn→M\gamma: \mathbb{N}^n \to M that satisfies a recurrence in each of the nn dimensions. More precisely, there exists an integer d≥1d \geq 1 and coefficients cij∈R,1≤i≤n,1≤j≤dc_{ij} \in R, 1 \leq i \leq n, 1 \leq j \leq d, such that the following recurrence holds for i=1,…,ni=1,\ldots,n:

γ(a1,…,ai,…,an)=ci1⋅γ(a1,…,ai−1,…,an)+⋯+cid⋅γ(a1,…,ai−d,…,an),\gamma(a_1,\ldots,a_i,\ldots,a_n) = c_{i1} \cdot \gamma(a_1,\ldots,a_i-1,\ldots,a_n) + \cdots + c_{id} \cdot \gamma(a_1,\ldots,a_i-d,\ldots,a_n), for all (a1,…,an)∈Nn with ai≥d.\text{for all } (a_1,\ldots,a_n) \in \mathbb{N}^n \text{ with } a_i \geq d.

Such γ\gamma is uniquely determined by its initial values γ(a),a∈{0,1,…,d−1}n\gamma(\boldsymbol{a}), \boldsymbol{a} \in \{0,1,\ldots,d-1\}^n.

A canonical example of such a sequence is the linear-exponential sum γ(a)=∑i=1kriami\gamma(\boldsymbol{a}) = \sum_{i=1}^k \boldsymbol{r}_i^a m_i, where a∈Nn\boldsymbol{a} \in \mathbb{N}^n and the entries of ri∈Rn\boldsymbol{r}_i \in R^n are not necessarily invertible. Another interesting example is γ(a1,a2):=α(a1)−β(a2)\gamma(a_1, a_2) := \alpha(a_1) - \beta(a_2), where α,β:N→M\alpha, \beta: \mathbb{N} \to M are one-dimensional linear recurrence sequences. In this case, deciding whether Z(γ)\mathfrak{Z}(\gamma) is nonempty is equivalent to determining whether the sets {α(k)∣k∈N}\{\alpha(k) \mid k \in \mathbb{N}\} and {β(m)∣m∈N}\{\beta(m) \mid m \in \mathbb{N}\} have a common element.

We mention that our definition of nn-dimensional sequences can be equivalently formulated as rational power series of the special form h(T1,…,Tn)∏i=1ngi(Ti)\frac{h(T_1,\ldots,T_n)}{\prod_{i=1}^n g_i(T_i)}. For a rational power series of the general form

h(T1,…,Tn)g(T1,…,Tn)\frac{h(T_1,\ldots,T_n)}{g(T_1,\ldots,T_n)}, and more broadly, for an algebraic power series over a field of characteristic pp, a result of Adamczewski and Bell [AB12] shows that its vanishing terms form a pp-automatic set. This class is strictly more general than pp-normal sets.

To prove Theorem 1.6, our main strategy is to reduce it to linear-exponential equations. Our approach is quite different from the proof of Theorem 1.5 in [DS26b], which features direct manipulations of power series. Instead, we first reduce to a setting where the recurrence relations of γ\gamma satisfy additional assumptions (Proposition 4.6), and then derive a linear-exponential expression by inverting the tensor product of the Vandermonde matrices associated to the recurrence polynomials.

Organization of the paper. In Section 2, we recall some notions from commutative algebra and define pp-normal sets in Zn\mathbb{Z}^n. We also review the preliminary steps of the proof in [DS26a] that are common to our approach (Lemma 2.4 and Proposition 2.6). In Section 3 we give the shorter proof of Theorem 1.3 using Derksen-Masser (Theorem 1.1) as a blackbox. Our main technical contribution is Proposition 3.3. In Section 4 we define pp-normal sets in Nn\mathbb{N}^n and give the proof of Theorem 1.6. Most technical proofs are accompanied by concrete examples. See Figure 1 for a dependency graph between the main statements in the paper.

Figure

Figure 1: Dependency graph between the main statements. LE stands for linear-exponential equations, LRS stands for (multi-dimensional) linear recurrence sequences.