Manuscript Offprint
arXiv:2609.03127Skolem-Mahler-Lech in rings of positive characteristic: a shorter proof and a multi-dimensional generalization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Let be a commutative ring and be a linear-exponential map over an -module . Dong and Shafrir (2026) showed that, when for some , the zero set of is the intersection of effectively computable -normal sets, where ranges over the prime divisors of . This generalizes an earlier theorem of Derksen and Masser (2012) on the solution set of -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 -dimensional linear recurrence sequence over an -module satisfying is the intersection of effectively computable -normal sets (in ), where ranges over the prime divisors of . For example, this gives a decision procedure for whether two classical linear recurrence sequences have a common value over a ring of characteristic or , where and 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, LLN22, HS24, IS24]. See [EG15, EG22] for monographs on this topic.
For a field we denote by the set of all non-zero elements of . A linear-exponential equation over is an equation of the form
where are the variables, and , are fixed coefficients. For example, the equation is a linear-exponential equation over the field .
By setting appropriate coefficients to 1, one can separate variables or include constants in Equation (1.1). For example, recovers the classical Diophantine equation . Therefore, this definition is general enough to cover other variants of linear-exponential form, such as the well-known -unit equations in number theory.
The solution set of Equation (1.1) is precisely the zero set of the linear-exponential map :
*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 for tuples , .
When is a field of characteristic 0, the subspace theorem can be used to prove that the zero set
of a linear-exponential map is a finite union of affine subspaces of [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 is empty.
When is a field of characteristic , Derksen and Masser give the following characterization of the zero set :
Theorem 1.1 (Linear-exponential equation in fields, Derksen-Masser [DM12]). Let be a field of characteristic , and let , where . Then, the zero set is effectively -normal.
Roughly speaking, a -normal set is a finite union of subsets of whose elements are described by linear expressions involving integer variables and powers of . For example, is a -normal set. See Definition 2.2 for the formal definition. By effective we mean that there is an algorithm that computes from the input , under the standard computability assumptions on the field [BCMI81]. In particular, this means we can algorithmically decide whether is empty.
The following classic example illustrates the theorem of Derksen-Masser.
Example 1.2 ([Der07, Example 1.3]). Let be the field of rational functions . Consider the linear-exponential map ,
Then the zero set is .
Indeed, if for some , then applying the identity (which holds in characteristic 2), repeatedly times, we obtain . Therefore . On the other hand, suppose , it is easy to see that . If for some , then the expansion of must contain more than two monomials, so it cannot be equal to . We conclude that , 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 , denote by its set of invertible elements. A linear-exponential map over an -module , is a map of the form , where , and . In particular, if we take to be the -module , where 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,
This formulation is a minor variant of the statement in [DM12], which considers the S-unit sum . Our statement can be obtained by taking in this expression to be the concatenation , so , then restricting the variables to the diagonal , and for . 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 can be formulated as a linear-exponential equation over the -module , where is a polynomial ring [JKK17].
When is a ring of characteristic 0, the zero set can be incomputable in general. More precisely, there are finitely presented modules over the Laurent polynomial ring , where it is undecidable whether a given linear-exponential map has an empty zero set [Don25a].
When is a ring of characteristic , or more generally, when for , Dong and Shafrir [DS26a] proved the following generalization of Derksen-Masser (Theorem 1.1):
Theorem 1.3 (Linear-exponential equation in modules [DS26a]), Let be a commutative ring. Let be an -module such that for some , and let , where . Then we can write , where runs over the prime factors of and is effectively -normal.
For example, Theorem 1.3 shows that the solution set of a linear-exponential equation over the ring (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 for , assuming standard computability conditions on and [BCMI81] (see Section 2.1). However, this does not give a procedure for deciding whether the intersection is empty: this reduces to the existential first-order theory of the structure , and is only known to be decidable in special cases such as when has at most two different prime divisors [KLN+25] or when [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 for prime and integer . The main difficulty arises when , as one cannot view with as a linear space over a field of characteristic . Notably, Example 1.2 fails on the ring , since 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 -module can be expressed as a positive Boolean combination of sets of the form , where , and is a linear-exponential map over a field of characteristic . This allows us to apply Derksen-Masser on each . 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 to modulo . 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 is called a linear recurrence sequence if there exist and constants , such that
Note that is uniquely determined by the recurrence relation (1.4) as well as its initial terms .
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 , the Skolem Problem is decidable by a result of Derksen:
Theorem 1.4 (Skolem-Mahler-Lech in fields of positive characteristic [Der07]). Let be a field of characteristic , and be a linear recurrence sequence. Then the zero set is effectively -normal in .
The definition of -normal sets in is conceptually similar to -normal sets in , but there are some technical nuances: notably, it can not be defined as the intersection of with a -normal set in . The formal definition is given in Definition 4.3.
Over a ring of characteristic , 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 be a commutative ring of characteristic , and be a linear recurrence sequence. Then we can write , where runs over the prime factors of and is effectively -normal in . Furthermore, it is decidable whether 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 be a commutative ring. Let be an -module such that for some , and let be an -dimensional linear recurrence sequence. Then we can write , where runs over the prime factors of and is effectively -normal in .
By generalizing to dimensions , we lose the ability to decide whether is empty. This reduces to the existential first-order theory of the structure , which (with the additional ) is also known to be decidable when has at most two prime divisors (see Section 4.2).
In Theorem 1.6, we define an -dimensional linear recurrence sequence to be a map that satisfies a recurrence in each of the dimensions. More precisely, there exists an integer and coefficients , such that the following recurrence holds for :
Such is uniquely determined by its initial values .
A canonical example of such a sequence is the linear-exponential sum , where and the entries of are not necessarily invertible. Another interesting example is , where are one-dimensional linear recurrence sequences. In this case, deciding whether is nonempty is equivalent to determining whether the sets and have a common element.
We mention that our definition of -dimensional sequences can be equivalently formulated as rational power series of the special form . For a rational power series of the general form
, and more broadly, for an algebraic power series over a field of characteristic , a result of Adamczewski and Bell [AB12] shows that its vanishing terms form a -automatic set. This class is strictly more general than -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 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 -normal sets in . 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 -normal sets in 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 1: Dependency graph between the main statements. LE stands for linear-exponential equations, LRS stands for (multi-dimensional) linear recurrence sequences.
2.1 Modules and ideals. Let be a ring. An -module is defined as an abelian group along with an operation , satisfying , , and . The neutral element in is denoted as or simply 0. For example, for any , is an -module by . An ideal of is an -submodule of .
Given in an -module , let
denote the -submodule generated by . For an -submodule and , we write if . Define the quotient where
if and only if . This quotient is also an -module. For a finitely generated ring , every finitely generated -module can be written as a quotient for some and .
Throughout this paper, we assume the standard computability conditions [BCMI81] on the rings and the -modules . Specifically, given elements and , we assume one can compute:
(i) a finite generating set for the ideal , and
(ii) a finite generating set for the -module , where is the subring generated by .
These assumptions are satisfied in most settings of literature and applications, for example, when and are given by finite presentations , .
Given an ideal and an -module , denote by the submodule generated by the elements . Similarly, for , denote by the ideal generated by the products , where .
We begin with the following basic lemma, which will be used several times throughout the paper.
Lemma 2.1 (cf. [DS26a, Lemma 3.13]). Let be a ring and be an integer. Let be an ideal such that , then for any and , we have
Proof. We claim that for every , . Indeed, suppose . Then for some , and hence . For , we have ; while for , we have . In both cases we have . Therefore .
Applying this claim successively for , we obtain .
For example, taking in we obtain .
2.2 p-normal sets in . The following definition of -normal sets is a reformulation of [DM12].
Definition 2.2 (-normal sets in ). First, a set is called elementary -nested if it is of the form
where and . Note that the entries of 's do not have to be integers: for example, the set is elementary 3-nested. A singleton is by definition elementary -nested with .
Next, a set is called -succinct, if it is of the form , where is a subgroup of and is elementary -nested. For example, the set is -succinct as it is the sum of the subgroup and the elementary -nested set .
Finally, a set is called -normal if it is a finite union of -succinct sets. The empty set is by definition -normal. A set is called effectively -normal if all its defining coefficients can be effectively computed.
It is easy to see that if is a -linear map and is -normal, then the image is also -normal. The same is true for preimages:
Lemma 2.3 ([DM15]). Let be a -linear map and be a -normal set. Then is effectively -normal.
Proof. Proposition 2.1 of [DM15] states that the preimage of a -succinct set is effectively -normal. Since every -normal set is a finite union of -succinct sets, it follows that the preimage of a -normal set is effectively -normal.
We can use this fact to show the following:
Lemma 2.4. Given two -normal sets , the intersection is effectively -normal.
Proof. We give here a short proof using Lemma 2.3. A longer, self-contained proof was also given in [DS26a, Proposition 3.7].
Define . By writing as the Minkowski sum of the two -normal sets and , we can see that is -normal. Indeed, by definition, the sum of two elementary -nested sets is elementary -nested, and the sum of two subgroups is a subgroup. It follows that the sum of two -normal sets is -normal. Define the diagonal map , then the intersection is equal to the preimage , so it is -normal by Lemma 2.3.
2.3 Reduction to local rings. For a standard reference on commutative algebra, see [AM69]. For any , we denote by the ring of integers modulo .
Let be a ring. An ideal is called prime if and for every , we have or . An ideal is called maximal if and there is no ideal such that . Every maximal ideal is prime.
A ring is called local if it has exactly one maximal ideal. For example, for any , the ring is local, since its ideals are of the form , with the unique maximal ideal. However the ring is not local since both are maximal. As a special case, fields are local rings with maximal ideal .
Let be a local ring with maximal ideal . Then an element is invertible if and only if . In other words, . The quotient ring is a field, called the residue field of .
Example 2.5. We give an example of a local ring that will appear in later examples. Let be the set of univariate polynomials with coefficients in . Consider the ring whose elements are fractions , where and , with equality iff . The ring operations are the natural addition and multiplication on fractions: , . We denote this ring by , which is a non-standard notation:
It is important that we do not allow denominators that are divisible by 2. This is because is not well-defined, otherwise .
Then, is a local ring, its maximal ideal is , and its residue field is . In particular, is invertible if and only if . There is a natural injective map , . Also, for all .
Write , where is a subgroup of and is an elementary -nested set. Proposition 2.1 of [DM15] shows that is -normal when is defined by integer coefficients , whereas our definition allows these coefficients to be rational. This causes no loss of generality: multiplying , , and by a common denominator of yields an equivalent instance in which the coefficients are integral.
Using a decomposition-localization argument, one can express the zero set of a linear-exponential map as a finite intersection , where each is a linear-exponential map to a module over a local ring :
Proposition 2.6 ([Der07, Section 9], [DS26a, Section 3.2]). Let be a linear-exponential map over some -module . Then one can effectively compute linear-exponential maps , such that , where each is a finitely generated module over a local ring with maximal ideal , such that for some . Moreover, if for some , then for each , the residue field has characteristic , where is a prime divisor of .
Before giving the proof, we recall the following facts from commutative algebra [Eis13].
(i) Let be a ring. For a prime ideal , the localization of at is . Its elements are fractions with and , where if and only if for some . The ring is local with maximal ideal . Similarly, for an -module , we define . It is an -module with elements , where if and only if for some .
(ii) An -module is called coprimary if or for some . In this case, is a prime ideal of , and is called -coprimary. When is -coprimary, the localization map is injective. Indeed, if for some , then coprimaryness implies either or for some . The latter would imply , a contradiction.
(iii) A primary decomposition of a submodule is an expression , where each is a submodule of such that is coprimary. The Lasker-Noether theorem [Eis13, Theorem 3.10] states that such a decomposition always exists when is Noetherian and is finitely generated. In this case, a primary decomposition can be effectively computed [Rut92].
Proof of Proposition 2.6. An elementary illustration of the proof is given in Example 2.7 below. The main idea is as follows. We use primary decomposition to obtain an injection , where each is a -coprimary -module for some prime ideal . If we take to be the composition of with the projection , then . It remains to replace and by suitable localizations and quotients so that they satisfy the conditions required in the proposition.
We now give the proof in detail. Write . By restricting to the subring generated by the entries of the 's and their inverses, we can suppose the ring to be finitely generated over and hence Noetherian. Then by restricting to the submodule generated by the 's, we can suppose to be finitely generated as an -module.
Let be the primary decomposition of the zero submodule of . Then, for each , is -coprimary for some prime ideal . Let be the canonical projection, then , so we have .
We now consider each individual . Replacing by and by , we may assume is -coprimary. Since is -coprimary, there exists such that (see [Eis13, Proposition 3.9]). Let , denote the localizations of at . Then is a local ring with maximal ideal , and is a finitely generated -module such that . Since , is naturally a finitely generated module over the quotient ring . This is a local ring with maximal ideal , such that .
Let be the composition of the localization map with the quotient map, and let be the localization map. Since is -coprimary, is injective (see (ii) above). We define . Then , so is a linear-exponential map over the
-module . Since is injective, we have . This proves the first statement of the proposition by taking , , , and .
For the second statement, since , we have . Hence for . Since is prime and is a product of prime numbers, there exists a prime divisor such that . Therefore and the residue field has characteristic .
Example 2.7. Consider the -module , then . For a map , we want to write where each maps to a module over a local ring.
Since , we have . So by the Chinese Remainder Theorem we can decompose as a direct product :
The first component can be simplified as
The second component can be further decomposed:
Thus we obtain the decomposition of M into coprimary modules:
In the first component of (2.2), via the variable substitution , we have an injection
In the second component of (2.2), via the variable substitution Y = X, we have an injection
(Recall the definition of the local ring from Example 2.5.) In the third component of (2.2), via the variable substitution Y = 2X, we have an injection
To summarize, we have the following “decomposition and localization” diagram:
\begin{array}{r c l l}{M}&{=}&{\left(M/3M\right)}&{\times\left(M/(4M+(Y-X)M)\right)}&{\times\left(M/(4M+(Y-2X)M)\right),}\\ {}&{}&{\displaystyle\bigvee_{\underbrace{\mathbb{F}_{3}(Y)}}_{M_{1}}}&{\displaystyle\bigvee_{\underbrace{\mathbb{Z}_{/4}(X)}}_{M_{2}}}&{\displaystyle\bigvee_{\underbrace{\mathbb{Z}_{/4}(X)}}_{M_{3}}}\\ \end{array}For expository convenience, we are using a ring without non-trivial invertible elements. To obtain a proper example, one can for example replace with the Laurent polynomial ring .
where , , are local rings considered as modules over themselves. Using the injection , the linear-exponential map is projected on three linear-exponential maps , , , and if and only if . Therefore .
3 A proof via the Derksen-Masser theorem
In this section we give a shorter, comparably elementary proof of Theorem 1.3.
Theorem 1.3 (Linear-exponential equation in modules [DS26a]). Let be a commutative ring. Let be an -module such that for some , and let , where . Then we can write , where runs over the prime factors of and is effectively -normal.
By Proposition 2.6, we can write as a finite intersection , where each is a linear-exponential map to a module over a local ring with residue field of characteristic . We obtain Theorem 1.3 if we show that each is -normal. Therefore Theorem 1.3 reduces to the following special case where is local:
Theorem 3.1 (Linear-exponential equation in modules over local rings). Let be a local ring with maximal ideal and residue field of characteristic . Let be a finitely generated -module with for some , and let f(\boldsymbol{a}) = \sum_{i=1}^k \boldsymbol{r}_i^\boldsymbol{a} m_i where . Then the zero set is effectively -normal.
To prove Theorem 3.1, we will reduce it to the theorem of Derksen-Masser on the case of fields:
Theorem 1.1 (Linear-exponential equation in fields, Derksen-Masser [DM12]). Let be a field of characteristic , and let , where . Then, the zero set is effectively -normal.
In order to reduce Theorem 3.1 to Derksen-Masser, our overall idea is to express a linear-exponential equation over the -module to an equivalent system of linear-exponential equations over the residue field . First we use an example to illustrate this idea and the main difficulties:
Example 3.2 (Overview of main idea). Consider the following linear-exponential map , where is considered as a module over itself:
For convenience, we write “mod 2” for “mod ” in . First we consider the solution set of the modular equation . This can be written as the zero set of the map , where
In particular, we have , however in general . By Derksen-Masser, the zero set is effectively 2-normal; our hope is to write as an intersection of with another 2-normal set.
Note that whenever , we can write for some ; however the value of is not defined for the remaining where . Our aim is to “complete” into a well-defined map over all . That is, we want to construct a map , such that for every satisfying , we have . If furthermore we can construct to be linear-exponential, then we have
since we work in characteristic 4. Therefore . Since and are linear-exponential maps over the residue field , the 2-normality of would follow immediately from Theorem 1.1 as a blackbox.
Example 3.2 shows that the reduction from local rings to fields boils down to constructing such a linear-exponential map . Formally speaking, let be a local ring with maximal ideal . Given a linear-exponential map over an -module , we hope to find r'_1, \ldots, r'_k' \in (R^\times)^n, m'_1, \ldots, m'_k' \in \mathfrak{m}M, such that
In other words, we hope to find another representation for which is “internal” to whenever . Such an internal representation would allow us to rewrite as a system of two equations
This reduces an equation over the module to a system of two equations, one over and one over , allowing for a proof by induction on the structure of .
Constructing an internal representation is difficult, even for the map in Example 3.2. A more striking example is the map in . Although for all , it's not clear how to write down a linear-exponential map such that for all . In fact, there are explicit examples where an internal representation provably does not exist (see Remark 3.6).
Nevertheless, we now show that an internal representation can indeed be obtained if the entries of are -th powers in . This would allow us to separate into disjoint cases according to the residues of modulo , and obtain an internal representation for each residue.
Proposition 3.3 (internal representation). Let be a local ring with maximal ideal and residue field of characteristic . Let be a finitely generated -module with for . Let be a linear-exponential map defined by , where . Then there exists an effectively computable linear-exponential map , internal to the -module , such that whenever .
Proof. An elementary illustration of the proof will be given in Example 3.5. We write . The proof proceeds in two steps. In the first step, we will find and homogeneous linear polynomials , such that (possibly after rearrangement of indices):
In the second step, in the linear-exponential map , we substitute the terms , using , and show that the resulting expression is a linear-exponential map internal to . This will yield . The following are the details of the two steps.
Step 1. Let . Since is finitely generated as an -module, is a finite dimensional vector space over the residue field . Let denote the projections modulo . Let be the map given by , then
Consider the set of points on which h vanishes:
Then . The key observation is the following:
Claim. H is an F-linear subspace of .
▶ Let and , then (since has characteristic ):
and
Therefore , and , so is an -linear space.
In fact, an -basis of can be effectively computed, but we delay this proof to Lemma 3.4. Coming back to the proposition, write . After relabelling the coordinates if necessary, we may assume that the first coordinate functions of are linearly independent. It follows that every vector in is uniquely determined by its first coordinates, and hence
for suitable , , .
Recall that if and only if . Therefore
Recall that (Lemma 2.1). Since , we can without loss of generality suppose by replacing with . For each , fix an such that , then
(3.3) since and . The last equation in (3.3) expresses each , in terms of , valid whenever .
Step 2. Suppose now . In , we substitute , using the last equation in (3.3) and expand. Note that every coefficient of the polynomial is divisible by , so
where inside the parenthesis is a linear-exponential form
with , and . Therefore is a linear-exponential form internal to . For the remaining coefficients, we have
for . Therefore . It follows that the linear-exponential map
is internal to , and is equal to whenever .
To complete the effectiveness part of Proposition 3.3, it remains to compute :
Lemma 3.4. An F-basis of H can be effectively computed.
Proof. Recall that is defined as the set of where vanishes. Here, . Let and fix a basis of over . For each , write as over this basis. Let be the field extension of obtained by adjoining the -th roots of the elements . Then the extension is finite; in particular, is a finite dimensional -linear space (see [Rom06, Chapter 3.5]). Then (since and has characteristic ):
Let be the set of that satisfy the system of linear equations in (3.4). Then is an -linear space and . In particular, both and are -linear subspaces of and effectively computable. Since is finite, an -basis of can be computed by linear algebra over .
Proposition 3.3 provides the internal representation required for the proof of Theorem 3.1:
Proof of Theorem 3.1. Recall that our goal is to prove that the zero set is effectively -normal, where over a linear-exponential map in the finitely generated -module satisfying . We proceed by induction on .
If , then , and hence . Viewing as an -module, we see that is in fact a finite-dimensional vector space over the residue field . Fix a basis of over and identify with for some . Then if and only if , where denotes the coordinate vector of , and the entries of are considered as elements in the residue field . Therefore we are reduced to the case of fields by writing . By Derksen-Masser (Theorem 1.1), the zero sets , are effectively -normal. Therefore is also effectively -normal by Lemma 2.4.
For the induction step, suppose and that effective -normality has been proven in all finitely generated modules with . Consider a finitely generated module with . Let . We can write as a disjoint union , where . Since -normal sets are closed under finite union and affine transformations, it suffices to show that any linear-exponential map of the form has an effectively -normal zero set.
By Proposition 3.3, we can compute a linear-exponential map where , such that whenever . Thus the equation in is equivalent to the system of two equations
Therefore . Here, and are linear-exponential maps over and , respectively. Note that and . Apply the induction hypothesis on and on the submodule of generated by the s. We obtain that both zero sets are effectively -normal. Hence is effectively -normal.
We now illustrate the proof of Proposition 3.3 and Theorem 3.1 by explicitly computing the internal representation and the zero sets in Example 3.2.
Example 3.5 (continuation of Example 3.2). We compute the zero set of the following map over :
We split into two cases according to the residue of a modulo 2.
When a is even. Write a = 2b, then expression (3.5) becomes
SO
Define the map ,
This allows us to write
Since in characteristic 2, we have
Therefore
By Lemma 2.1, we have
This means that whenever , we can replace by . Hence
Thus whenever , we have an internal representation with
Therefore , where both and are effectively 2-normal since they are linear-exponential maps over the residue field (Theorem 1.1).
We can explicitly compute these zero sets: by Example 1.2 we have , and by direct computation we have . Their intersection is . Therefore, the only solution to with even is .
When a is odd. The strategy is the same as the previous case. Write , then expression (3.5) becomes
Define the map ,
This allows us to write . This time, we have
Therefore
By Lemma 2.1, we have
This means that whenever , we can replace both and by . Hence
Thus whenever , we have an internal representation with
Therefore , reducing to the case over the residue field . Explicitly, , , so there are no solutions to with odd . ■
Finally, the general case of Theorem 1.3 follows immediately from the local case (Theorem 3.1):
Proof of Theorem 1.3. Let be a linear-exponential map where . By Proposition 2.6 we can write , and by Theorem 3.1 each is effectively -normal for some prime . Grouping up the -normal sets for the same and replacing their intersection with a single -normal set, we obtain where each is effectively -normal.
Remark 3.6. In the statement of Proposition 3.3, it is essential that the map is defined using the -th powers of . Below, we give two examples of a linear-exponential map where an internal representation in does not exist, despite taking values only in .
(1) Let , then is a local ring of four elements, with maximal ideal . Take and define the linear-exponential map ,
Then for all . Let denote the projection. Suppose we can represent internally in as with . Then for all . But means , so is constant. Then is constant, a contradiction.
(2) Let where is a prime number, then is a local ring with maximal ideal . Take and define the linear-exponential map ,
Then for all . Suppose we can represent internally in as with . Then for all . Replacing with , we get
by Fermat's little theorem. This is a contradiction since the left hand side depends on a, while the right hand side is constant.
Note that in either example, replacing a with pa makes the map f a constant in , which results in an internal representation.
4 Multi-dimensional Skolem-Mahler-Lech in positive characteristic
4.1 Multi-dimensional recurrence sequences and formal power series. Let be a module over a ring . Recall that we define an -dimensional linear recurrence sequence to be a map , for which there exists an integer and coefficients , such that the following recurrence holds for :
(4.1)
In other words, we require that satisfies a linear recurrence in the dimensions where the index is at least . Thus, is completely determined by its initial values
Note that this definition includes the case where the order d is different in each dimension, as we can simply take d to be their maximum.
Let denote the ring of formal power series in the variables over . It consists of the formal sums
where . Similarly, let denote the set of formal sums
where . Then is naturally an -module.
Given a sequence , we can define the power series associated to :
\phi_{\gamma}(T_{1},\ldots,T_{n}):=\sum_{(a_{1},\ldots,a_{n})\in\mathbb{N}^{n}}\gamma(a_{1},\ldots,a_{n})T_{1}^{a_{1}}\cdots T_{n}^{a_{n}}\in M[[T_{1},\ldots,T_{n}}].Given the recurrence relations (4.1) for , we define their associated recurrence polynomials (or characteristic polynomials) to be
For a univariate polynomial , define its reciprocal to be . Then
It is easy to see that every with constant coefficient 1 is invertible. In particular, the inverses are well-defined elements in .
Observation 4.1. A sequence satisfies the recurrence relations (4.1) for , if and only if
for some finitely supported with degree at most in each variable.
Proof. Fix . The coefficient of in , where , is
Hence, satisfies the recurrence relation (4.1) in the -th dimension if and only if contains no monomials whose degree in is at least .
Since multiplication by affects only the variable , it leaves the degrees in the remaining variables unchanged. Therefore, satisfies (4.1) in every dimension if and only if
has degree at most d - 1 in each variable.
From the expression (4.3) we see that any monic multiple of a recurrence polynomial is again a recurrence polynomial. Therefore we may replace by their product , assume without loss of generality that has the same recurrence polynomial in every dimension.
Below we give some examples of multi-dimensional linear recurrence sequences.
Example 4.2. Let R be a ring and M be an R-module.
(i) Let be one-dimensional linear recurrence sequences. Then
is a 2-dimensional linear recurrence sequence. Indeed, satisfies the same recurrence relation as in the direction of , and the same recurrence relation as in the direction of .
We now compute the associated power series in terms of and . Let be the recurrence polynomials of and write their associated power series as . Then
where . We can take the recurrence polynomial of (in both dimensions) to be any common multiple of and , such as .
Note that if we replace by , then deciding whether is nonempty is equivalent to determining whether the sets and have a common element.
(ii) The above example generalizes to the sum of any sequences. In their second joint paper, Derksen and Masser [DM15] showed that the set , where are recurrence sequences over a field of characteristic , is -normal in . We observe that is an -dimensional recurrence sequence in our sense. Therefore, Theorem 1.6 generalizes [DM15] in two ways: it works on rings and modules instead of fields, and accepts more general recurrence sequences.
(iii) Generalized linear-exponential maps provide natural examples of -dimensional linear recurrence sequences. Let be a tuple of not necessarily invertible elements in and let . Define for , then its associated power series is
We can see that satisfies the form (4.3), therefore is a linear recurrence sequence of dimension . Since , we can see that if and are -dimensional linear recurrence sequences, then so is . Therefore any linear-exponential sum where is an -dimensional linear recurrence sequence over the -module .
(iv) We compute an explicit example which will appear in the proof of Theorem 1.6. For and , define
where . That is, is the linear combination of all possible n-fold exponential products with bases among . Then its associated power series is
This satisfies the form (4.3) since the denominator has degree at most in each . Therefore has the recurrence polynomial in each of the dimensions.
4.2 p-normal sets in . We define p-normal sets in using a simplified reformulation of [DM15].
Definition 4.3 (p-normal sets in ). For , let . Thus is the partition of into singleton sets together with the tail . Given , the corresponding grid partition of is
For example, taking gives the partition of into four cells , , , .
A set is called -normal in , if there exists a grid partition as above, such that
where each is a -normal set in . In other words, is -normal in if, on each cell of a suitable grid partition, it coincides with the restriction of a -normal set in .
Since the intersection of two -normal sets in is -normal in (Lemma 2.4), by considering each grid cell we immediately obtain that the intersection of two -normal sets in is -normal in . Furthermore, it is easy to see that -normality is preserved under scaling and translation, i.e., if is -normal in , then and are -normal in for and .
Remark that -normal sets in are definable in the existential first-order theory of the structure , where is the set of positive integer powers of (see [KLN25] for a detailed definition). Therefore, deciding emptiness of the intersection where each is -normal in , reduces to the existential first-order theory of the structure . This is a difficult problem in general. The case of is decidable following the classical work of Büchi and Semenov [Bü60, Sem80]. The case of was recently proved decidable by Karimov, Luca, Nieuwveld, Ouaknine and Worrell [KLN25] using Baker’s theorem; see [BB24, HS24, HRW26] for related results. The case of already subsumes longstanding open problems in number theory, such as finding all the finitely many non-negative integer solutions to the Diophantine equation .
Note that in the special case of dimension , the emptiness of is known to be decidable by a result of Dong and Shafrir [DS26b] (see Theorem 1.5).
4.3 Proof of multi-dimensional Skolem-Mahler-Lech. In this section we give the proof of:
Theorem 1.6 (Multi-dimensional Skolem-Mahler-Lech in modules). Let be a commutative ring. Let be an -module such that for some , and let be an -dimensional linear recurrence sequence. Then we can write , where runs over the prime factors of and is effectively -normal in .
We need some preparations. Recall that we can without loss of generality suppose to have the same recurrence polynomial in every dimension. By definition, is monic (i.e., its leading coefficient is 1). We say that a monic polynomial splits over a ring , if it can be factorized into a product with , not necessarily distinct. First, we need to extend the ring (and correspondingly, the module ), so that splits over .
In our definition of -normal sets of (Definition 2.2), it is necessary to express the set for any . This can be done using the predicate together with the modular constraint , which are expressible in the existential fragment of .
Lemma 4.4 (folklore). Let be a ring, be an -module, and be a monic polynomial. We can compute a ring extension , finitely generated as an -module, such that splits over , and such that the map is injective.
Proof. We prove by induction on the degree . Define to be the quotient of the polynomial ring . As -modules, , and therefore , and the map is injective. In the ring , we have . Therefore we can let and use induction on .
Therefore we can extend , and without loss of generality suppose the recurrence polynomial of splits over . Next, we need the following analogue of Proposition 2.6 for linear recurrence sequences, in order to reduce to the case of modules over local rings:
Lemma 4.5. Let be a linear recurrence sequence over an -module . Then one can effectively write , where each is a linear recurrence sequence over a finitely generated -module , with local with maximal ideal , and for some . Moreover, the recurrence polynomial of splits over . Furthermore, if for some , then for each , the residue field has characteristic for some prime number dividing .
Proof. By restricting to the subring generated by the coefficients in the recurrences (4.1), and restricting to the submodule generated by the initial values of , we can suppose to be finitely generated and to be finitely generated over . By Lemma 4.4 we can suppose that the recurrence polynomial of splits over . The rest of the proof is essentially the same as Proposition 2.6, replacing linear-exponential maps by -dimensional linear recurrence sequences. Using primary decomposition and localization, we find maps , such that , and such that satisfy the requirements in the lemma. Then is a linear recurrence sequence in the -module , whose recurrence polynomial is obtained by applying coefficientwise to the recurrence polynomial of . Hence, this polynomial splits over .
By Lemma 4.5, it suffices to focus on the case where is local, the maximal ideal contains some prime number , and for some . We can also suppose that the recurrence polynomial of splits as , where the roots are not necessarily distinct. The following proposition shows that, by taking a suitable multiple of and after a suitable variable change, we can suppose the roots to be distinct even modulo .
Proposition 4.6. Let , not necessarily distinct, and be a prime ideal containing some prime number , and for some . Then there exist effectively computable , pairwise distinct modulo , and , such that:
Proof. First consider the case where all are equivalent modulo . By Lemma 2.1, implies , so . Now, divides , and therefore:
To obtain the polynomial on the right hand side of (4.4), we need to replace with for some u. This boils down to proving the following claim:
Claim. Let , then for any , we have
▶ Define the ideal of . Since and , using Lemma 2.1 we get for every . Note that every element in is an -linear combination of elements of the form with , . Since , this element is either 0 or it is divisible by . Therefore for all . Since , we have . Taking gives , proving the claim.
In the claim, replacing with and with , we get altogether:
This proves the proposition for the case where all are equivalent modulo m.
For the general case, choose so that has a single representative from each class modulo . Using the previous case, we obtain a such that
We now show that , are distinct modulo . We claim that for , . Indeed, if , then since is prime. Since contains the prime number , we get , so , proving the claim. Consider two different elements , using the claim repeatedly we obtain , for all .
Finally, we obtain the proposition by letting .
As an example for the statement of Proposition 4.6, it is easy to verify that in , the polynomial divides .
We are now ready to prove Theorem 1.6:
Proof of Theorem 1.6. We can write as a finite intersection as in Lemma 4.5, and it suffices to show that each is -normal, since -normal sets are closed under finite intersections. Thus we are reduced to the case where is a local ring with maximal ideal , with for some , the residue field has characteristic , and such that the recurrence polynomial of the sequence splits over .
By Proposition 4.6, there are and , distinct modulo , such that .
Claim. For each , the sequence admits the recurrence polynomial in every dimension.
▶ Let , then , so is also a recurrence polynomial for . Write , then satisfies the recurrence
for every and . Therefore the sequence has the recurrence polynomial in every dimension.
If we prove that each is -normal, then we obtain that is also -normal. Therefore without loss of generality we may replace by and assume the recurrence polynomial of is , with , distinct modulo .
Claim. We can write as a linear-exponential sum
for some effectively computable , .
▶ We first restrict to the 1-dimensional case for simplicity. Define to be the Vandermonde matrix associated with . That is, is the matrix whose -th row is . Then [HJ12, Section 0.9.11]. Recall that is local with maximal ideal . For , since , we have . Therefore and consequently is invertible in .
Since is invertible, we can compute a row vector such that
This means that
Therefore the two sequences and have the same initial values. Furthermore, they satisfy the same recurrence polynomial of degree (see Example 4.2(iv)). This implies that and are the same sequence, so for all . This concludes the 1-dimensional case.
The -dimensional case is similar. Let be the -fold tensor power of the Vandermonde matrix associated with . That is, is the matrix whose rows and columns are indexed by the set , and whose -entry is . Since has an inverse , the tensor product has an inverse in (see [LT85, p.408]).
Since is invertible, we can compute a row vector such that
Here we are considering M as a right R-module, which is the same as our earlier convention of M as a left module since R is commutative.
This means that
Therefore the sequences on both sides have the same initial values and the same recurrence polynomial of degree (see Example 4.2(iv)). Just as in the 1-dimensional case we obtain that they are the same sequence.
It now suffices to show that the zero set of the linear-exponential sum (4.5) is -normal in . If none of the elements is in the maximal ideal , then they are all invertible and hence the linear-exponential sum (4.5) is well-defined over . Therefore by Theorem 1.3 (or Theorem 3.1), the zero set is the intersection of with a -normal subset of , which is -normal in .
If some of the elements are in the maximal ideal , since they are distinct modulo , we may without loss of generality suppose , . Recall that , so . By partitioning each coordinate according to whether , or , we obtain a grid partition of (see Definition 4.3). On each grid cell , the restriction of can be represented by a linear-exponential map , obtained by fixing the variables specified by , and removing the terms containing the factor specified by . Hence, , where ranges over the cells of the grid partition. Note that each is now defined over , so by Theorem 1.3, is -normal in . By Definition 4.3 we obtain that is -normal in .
The last step of the above proof can be illustrated by the following example.
Example 4.7. Let be a local ring with maximal ideal , such that . Consider a linear-exponential sum
where , . Then is invertible, and . The zero set is decomposed into 9 components, according to whether , , or , and whether , , or .
(i) If and , then , so
In this case, we set , which is well-defined over . This gives the grid component .
(ii) If and , then , , , so
We can multiply it with the dummy factor and let . This gives the grid component . The case where , and the cases where are analogous.
(iii) If and , then becomes the constant function . We obtain the grid component or . The other cases are analogous.
Finally, is the union of the 9 grid components obtained above.
Acknowledgements
The authors would like to thank Joris Nieuwveld and James Worrell for discussion about the Skolem Problem. Ruiwen Dong is supported by a Fellowship by Examination at Magdalen College, Oxford.
References
[AB12] Boris Adamczewski and Jason P. Bell. On vanishing coefficients of algebraic power series over fields of positive characteristic. Inventiones mathematicae, 187(2):343–393, 2012.
[ABF07] Daniel Augot, Magali Bardet, and Jean-Charles Faugère. On formulas for decoding binary cyclic codes. In IEEE International Symposium on Information Theory, pages 2291–2295, 2007.
[AM69] M. F. Atiyah and I. G. MacDonald. Introduction to Commutative Algebra. Addison-Wesley, 1969.
[BB24] Prajeet Bajpai and Michael A. Bennett. Effective S-unit equations beyond three terms: Newman's conjecture. Acta Arithmetica, 214:421–458, 2024.
[BCMI81] Gilbert Baumslag, Frank B. Cannonito, and Charles F. Miller III. Computable algebra and group embeddings. Journal of Algebra, 69(1):186–212, 1981.
[BS08] J. P. Buhler and P. Stevenhagen. Algorithmic Number Theory. Lattices, Number Fields, Curves and Cryptography. Cambridge University Press, USA, 1st edition, 2008.
[Bü60] J. Richard Büchi. Weak second-order arithmetic and finite automata. Mathematical Logic Quarterly, 6(1-6):66–92, 1960.
[Der07] Harm Derksen. A Skolem–Mahler–Lech theorem in positive characteristic and finite automata. Inventiones mathematicae, 168(1):175–224, 2007.
[DM12] Harm Derksen and David Masser. Linear equations over multiplicative groups, recurrences, and mixing I. Proceedings of the London Mathematical Society, 104(5):1045–1083, 2012.
[DM15] Harm Derksen and David Masser. Linear equations over multiplicative groups, recurrences, and mixing II. Indagationes Mathematicae, 26(1):113–136, 2015.
[Don25a] Ruiwen Dong. Linear equations with monomial constraints and decision problems in abelian-by-cyclic groups. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1892–1908, 2025.
[Don25b] Ruiwen Dong. Submonoid Membership in n-dimensional lamplighter groups and S-unit equations. In 52nd International Colloquium on Automata, Languages, and Programming (ICALP), volume 334 of LIPIcs, pages 154:1–154:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025.
[DS26a] Ruiwen Dong and Doron Shafrir. S-unit equations in modules and linear-exponential Diophantine equations. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC), 2026. Full version: arxiv.org/abs/2505.19141.
[DS26b] Ruiwen Dong and Doron Shafrir. The Skolem Problem in rings of positive characteristic. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC), 2026.
[EG15] Jan-Hendrik Evertse and Kálmán Győry. Unit equations in Diophantine number theory, volume 146. Cambridge University Press, 2015.
[EG22] Jan-Hendrik Evertse and Kálmán Győry. Effective results and methods for Diophantine equations over finitely generated domains, volume 475. Cambridge University Press, 2022.
[Eis13] David Eisenbud. Commutative algebra: with a view toward algebraic geometry, volume 150. Springer Science & Business Media, 2013.
[Eve84] Jan-Hendrik Evertse. On sums of S-units and linear recurrences. Compositio Mathematica, 53(2):225–244, 1984.
[FS09] Philippe Flajolet and Robert Sedgewick. Analytic combinatorics. Cambridge University Press, 2009.
[HJ12] Roger A. Horn and Charles R. Johnson. Matrix analysis. Cambridge University Press, 2012.
[HRW26] Philipp Hieronymi, Michael Reitmeir, and Xiaoduo Wang. Axiomatizations of Presburger arithmetic with predicates for powers. arXiv preprint arXiv:2602.19602, 2026.
[HS24] Philipp Hieronymi and Christian Schulz. A strong version of Cobham's theorem. SIAM Journal on Computing, Special Section STOC 2022:1–21, 2024.
[IS24] Alaa Ibrahim and Bruno Salvy. Positivity certificates for linear recurrences. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 982–994. SIAM, 2024.
[JKK17] Anders Jensen, Thomas Kahle, and Lukas Katthän. Finding binomials in polynomial ideals. Research in the Mathematical Sciences, 4:1–10, 2017.
[KLN 25] Toghrul Karimov, Florian Luca, Joris Nieuwveld, Joël Ouaknine, and James Worrell. On the decidability of Presburger arithmetic expanded with powers. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2755–2778. SIAM, 2025.
[Lec53] Christer Lech. A note on recurring series. Arkiv för Matematik, 2(5):417–421, 1953.
[LLN 22] Richard Lipton, Florian Luca, Joris Nieuwveld, Joël Ouaknine, David Purser, and James Worrell. On the Skolem problem and the Skolem conjecture. In Proceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 1–9, 2022.
[LT85] Peter Lancaster and Miron Tismenetsky. The Theory of Matrices: With Applications. Academic Press, 2 edition, 1985.
[Mah35] Kurt Mahler. Eine arithmetische Eigenschaft der Taylor-Koeffizienten rationaler Funktionen. Proceedings of the Section of Sciences, Koninklijke Akademie van Wetenschappen te Amsterdam, 38:50–60, 1935.
[Rom06] Steven Roman. Field Theory, volume 158 of Graduate Texts in Mathematics. Springer, New York, 2 edition, 2006.
[Rut92] Elizabeth W. Rutman. Gröbner bases and primary decomposition of modules. Journal of symbolic computation, 14(5):483–503, 1992.
[Sem80] Aleksei L. Semënov. On certain extensions of the arithmetic of addition of natural numbers. Mathematics of the USSR-Izvestiya, 15(2):401, 1980.
[Sko34] Thoralf Skolem. Ein Verfahren zur Behandlung gewisser exponentialer Gleichungen und diophantischer Gleichungen. Skand. Mat.-Kongr., 8:163–188, 1934.
[vdPS91] A. J. van der Poorten and H. P. Schlickewei. Additive relations in fields. Journal of the Australian Mathematical Society, 51(1):154–170, 1991.