WorksComputer Science
Rational polynomial solvability reduces to stratifiability of semilinear sets
Abstract
A semilinear set is stratifiable if it is a finite union of linear sets whose periods have at most two nonzero coordinates, with no two periods in one component connecting alternating pairs of coordinates. We give a computable many-one reduction from the existence of a rational zero of an integer polynomial to deciding stratifiability. After the classical reduction to quadratic systems, we reduce rational solvability of these systems to a problem we call finite separation by Cartesian products of rational linear forms. Its input consists of rational subspaces . A separator is a map , where are nonzero rational linear forms. The problem asks whether finitely many separators suffice so that every pair outside receives, from some separator, a value attained at no pair in that union. We then reduce this problem to stratifiability. Ginsburg and Spanier's characterization of letter-bounded context-free languages} also induces a reduction from rational polynomial solvability to context-freeness of letter-bounded languages specified by semilinear exponent sets. An OpenAI preprint claims undecidability of rational polynomial solvability; if correct, our result settles the decidability of general stratifiability, a problem open since 1966.
Introduction
For a set and distinct letters , consider
The coordinates record the lengths of successive letter blocks; a language contained in is called letter-bounded. Suppose that is semilinear: equivalently, it is definable in first-order arithmetic with addition, or Presburger arithmetic. Can we decide whether is context-free?
Ginsburg and Spanier’s characterization [2 Theorem 2.1] expresses context-freeness of as a restriction on the periods in a presentation of . A linear set consists of a base vector plus arbitrary nonnegative integer combinations of finitely many period vectors, and a semilinear presentation writes as a finite union of linear sets. Such a presentation is a stratification if each period has at most two nonzero coordinates and no two periods in the same component connect alternating positions: for , one period cannot be nonzero at while another is nonzero at . A set admitting a stratification is stratifiable. The characterization states that is context-free if and only if is stratifiable. Our decision question is therefore whether a set given by an arbitrary semilinear presentation admits a stratification.
For example, the periods and stratify , whose language is . In contrast, the semilinear set
is not stratifiable, since the language it induces is not context-free.
Our main contribution is the following:
Theorem 1.1 (Main result). There is an algorithm that, given a polynomial with integer coefficients, computes a finite semilinear presentation of a set such that is stratifiable if and only if the polynomial has a rational zero.
To prove Theorem 1.1, we first apply the classical reduction from polynomial equations to quadratic systems [6]. It therefore suffices to reduce rational solvability of finite quadratic systems to stratifiability. We do this by two reductions through an intermediate problem. Section 2 provides a detailed overview of the reductions. Formal treatment starts with the preliminaries in Section 3. Section 4 then proves the first reduction and Section 5 the second. Section 6 combines them with the standard reduction from polynomial equations to quadratic systems. Margin arrows link to appendix proofs (↓) and back to the main text (↑).
Conditional undecidability consequence. An OpenAI preprint [9 Theorem 1.1] claims that rational polynomial solvability is undecidable. As of 9 October 2026, we are not aware of a completed independent review of this proof. If its claim is correct, Theorem 1.1 implies undecidability of general stratifiability. The reduction itself does not depend on that claim.
Related work. Ginsburg and Spanier studied languages contained in for fixed words in [1]. Their later paper [2 Theorems 1.3 and 2.1] proves the effective equivalence between semilinear presentations and Presburger formulas and the stratified-period characterization used here. They decide stratifiability for a single linear set [2 Theorem 2.2] and explicitly leave the semilinear case open in 1966 [2 p. 296]. The problem also appears in Ginsburg’s book [3]. Ibarra and Seki [4] relate stratifiability to equivalence questions for multitape automata and establish decidable cases. Leroux, Penelle, and Sutre [5] prove coNP-completeness of stratifiability for sets of nonnegative integer solutions of a single finite system of linear inequalities. Our input class allows arbitrary finite unions of linear sets.
Overview of the two reductions
We now consider a finite system of rational polynomial equations of degree at most two. We reduce its rational solvability to the following separation problem, then reduce that problem to stratifiability.
The intermediate separation problem. The input is a finite family of rational subspaces , given by spanning vectors.
The separator is a product map defined by nonzero rational linear forms by . It separates a pair from the subspaces if
The problem, finite separation by Cartesian products of rational linear forms, asks whether there is a finite list of separators such that every rational can be separated by one of those separators.
For example, take . An outside pair has or . In the first case, the separator with and distinguishes it from ; in the second, use and . Each separator sends to the diagonal, while at least one separates its pair off that diagonal. Thus are a finite separating family. It actually suffices to construct a separator for each outside pair: Lemma 4.2 selects a finite subcollection separating all of them, using an elementary basis argument.
First reduction: from equations to finite separation
Recovering a root from one designated pair. We illustrate the construction with . Let be the coefficient vector of in the basis , so , and write and . We want separation of the designated pair by a separator to force a root. A diagonal subspace will make the forms and agree after normalization, a multiplication subspace will make their common form be an evaluation, and an equation subspace will make that evaluation vanish on :
If separates , linearity gives its image . Thus , since every subspace image contains zero; also , since otherwise has the same image as . Divide the forms by these two values so that . The image of contains and avoids , so it is the diagonal and the normalized forms agree. Denote their common form by .
Put . The two generator images of , namely and , must be collinear. Hence , making for every polynomial of degree at most two. Thus is evaluation at . The images and of the generators of span the plane unless , so separation forces a root. For , separation would require and is therefore impossible over .
Assigning image slopes to separate . Finite separation requires that every outside pair is separated. Yet even for , the pair lies outside , , and cannot be separated (Example 4.4). We therefore modify the subspaces to permit its separation, while retaining the root requirement at .
Choose nonzero rational linear forms on the coefficient space of and write . If , we can choose a rational slope for each with . Placing each modified subspace image in its chosen line would separate , provided the image of stays . To do this, we give an independently adjustable coefficient for every generator.
Number the generators of each in the listed order, starting at , and write them as . Introduce a distinct polynomial variable for each index and append these monomials to the coefficient basis. Thus is a new unit vector; coefficient vectors of polynomials in acquire zero coefficients at every . Replace each generator by , and call their span . For example, . Extend by assigning, for every ,
These are values on independent new basis vectors; the values can still be chosen independently. Every modified generator has image , so maps into the line of slope . Since has zero coefficients at the new basis vectors, its image stays and avoids these lines. For example, choose , , , let extract the constant coefficient on , and take every . The image of is then , off every chosen line.
Preserving the root requirement at . The freedom to choose image slopes must preserve the implication from separation of to a root. We therefore introduce one last variable , giving the coefficient basis , and add
The pair still lies outside every subspace. A separator of must have , since otherwise the generator of has the same image as . The image of then contains the nonzero horizontal vector . Any nonzero value would add a nonhorizontal vector and make that image the whole plane. Thus for every . Each modified generator has the same image as , so the restrictions of to separate from , , and yield a root by the earlier calculation.
Conversely, at a rational root , let both forms evaluate polynomials in at :
Extend them by setting
For every positive rational , the images of have finite slopes , the image of is horizontal, and maps to . All avoid the nonzero vertical image of every nonzero multiple of .
For the earlier separator of , instead complete the assignment with
Now maps to the vertical axis and into the diagonal. The image avoids both and the slope- images of the , so separates from the enlarged family.
More generally, the same extension rule separates every with , choosing the forms and slopes afresh for each pair. If , choose and , then choose every : the image avoids the vertical axis, the diagonal, and the chosen slope lines. If and is nonconstant, choose , , and , then recompute all added values by the same rule. Now maps to zero, while the nonzero vertical image avoids the diagonal containing the image of and the finite-slope images of all . Together with the root-based separators for the nonzero multiples of , this separates every nonzero pair with from the enlarged family. Among these pairs, a root is required only for the nonzero multiples of .
Separating outside pairs with added variables. We now seek separators for the outside pairs with a nonzero coefficient at or some in at least one entry. We first construct separators that do not require a root. Every constructed subspace has zero coefficient of in its second entry. If an outside pair’s second entry has a nonzero coefficient of , let extract that coefficient and take any nonzero . Its image is off the horizontal axis containing every subspace image, so separates the pair from all the constructed subspaces.
For pairs whose second entry has zero coefficient of , changing the slopes can change the pair’s image through its terms. We choose the values of on jointly with the slopes, extend by the earlier formula, and set and . Setting permits nonzero : otherwise the generator of , together with , would have images spanning the plane. With , the image of is vertical and that of lies in the diagonal, so an image outside these and the chosen slope lines gives a separator. For such a pair with first entry whose full second entry is not a scalar multiple of , choose new values on and new slopes, subject to and , and recompute all added values by the extension formula. Some such choice gives the pair a nonzero vertical image, while maps to zero and the other subspace images have finite slopes.
These slope constructions separate every outside pair whose second entry has zero coefficient of , except possibly pairs and pairs with .
For , being outside and gives and . If , the pair is a nonzero multiple of , already separated under the root hypothesis. If , let extract the coefficient of and let extract the constant coefficient. The image avoids the vertical images of the , the horizontal image of , and the diagonal image of , so these forms separate the pair.
The slope extensions cannot separate an outside pair , with and , from : setting sends it to the same image as . Instead, fix to extract the coefficient of and let vary on the coefficient space of , extending it by zero on every added basis vector. We determine when these choices separate the shifted pair from the whole family. Write , where . Here : the second-entry polynomials of the listed generators of are linearly independent, so would force all and , placing the shifted pair in .
The pair’s image is , off the vertical images of all the . The images of and are the horizontal axis and , respectively. Thus separates the pair exactly when and . If , the polynomials and are both nonzero, so some rational linear form satisfies both inequalities. This separates every such shifted pair without a root. When , however, the image is always , in the image of ; no choice of completes a separator with this fixed . Such a pair is
Removing the -shift gives . By the construction of , this means , and the are the coefficients of in the listed generators of . Determining therefore determines the added terms too, and hence the whole shifted pair.
In , the condition forces . Only the generator occurs, so . In , the second entry is divisible by , so it cannot equal the nonzero constant . In , write , with . Since , a constant second entry forces and . Only the generator occurs, so . Restoring the shift therefore gives the following two shifted lines:
The preceding constructions separate every outside pair off these two lines, using a rational root only to separate the nonzero multiples of . We now choose the evaluation extension to separate the nonzero pairs on these two lines as well.
Choosing the root extension for the two shifted lines. Return to the evaluation extension defined by (2) and (3), with . The two shifted representatives have images and . Their nonzero second coordinates keep them off the horizontal image of . Their first-coordinate offsets and keep them off , the image of . Each finite-slope image excludes at most one value of for each representative. Choose one positive rational outside these finitely many exclusions. The resulting separator separates every nonzero multiple of both representatives and preserves the separation of the nonzero multiples of already proved.
A rational root therefore supplies separators for every outside pair, and Lemma 4.2 supplies a finite list. Conversely, such a list separates and yields a root. Section 4 gives the construction for arbitrary quadratic systems.
Second reduction: from finite separation to stratifiability
For a family , represent integer pairs outside its union by differences of nonnegative coordinates. The output is
Membership is given by linear equations and their negations, so Lemma 5.1 computes a semilinear presentation of . The order of the four coordinate blocks will be used when checking stratifiability.
For each separator , collect the elements of whose represented pairs it separates. Membership in this subset depends on two weighted sums:
After clearing the coefficient denominators of , the permitted values satisfy a Presburger condition on two integer-weighted sums over consecutive coordinate blocks. Lemma B.7 shows that the associated letter-bounded language is context-free; Ginsburg and Spanier’s characterization [2 Theorem 2.1] makes this subset stratifiable. Thus a finite separating family for all outside pairs gives a finite stratifiable cover of .
Conversely, suppose is stratifiable. We extract a finite separating family for from a stratification. Increasing matching positive and negative coordinates by the same amount leaves the represented pair unchanged. The representations of each outside integer pair therefore contain a grid of these cancellation directions. In any finite stratification, some component meeting this grid has nonnegative period combinations with signed difference zero spanning all these directions.
Consider the periods occurring in these combinations. Their signed images can be added and subtracted within the set of pairs represented by the component. The restriction on alternating supports ensures that every linear form vanishing on the rational span of these images is a linear combination of one fixed form on the first entry and one fixed form on the second. The forms can be chosen nonzero, and is therefore contained in that span. Fix such a separator for every component with the stated spanning property.
Fix a rational pair outside the subspaces. If a selected separator fails to separate it from , the pair differs from a point of by a rational combination of those period images. Choose one such expression for each candidate component and each whenever possible. Clear all these coefficients and the pair’s coordinates by one common integer multiple, then select a component representing that multiple. Subtracting the resulting integer combination from the represented multiple would put a point of among the pairs represented by this component, a contradiction. Thus the fixed separators separate every outside rational pair (Lemma 5.3). The proof adapts the minimal-element argument of Ginsburg and Spanier [2], proof of Theorem 1.3 and the structure of stratified periods studied by Brough [7].
Preliminaries
Put . Bold letters denote vectors and tuples; their coordinates are written in ordinary type. A linear set in is a set
The vector is its base, and the elements of are its periods. A semilinear set is a finite union of linear sets. A semilinear presentation lists the base and periods of each component.
A finite period set is stratified if
every has at most two nonzero coordinates; and
there are no and with .
A stratification of a set is a finite semilinear presentation whose period sets are stratified. A set is stratifiable if it has a stratification.
Presburger arithmetic is first-order arithmetic on the integers, or on , with addition and order but without multiplication of variables. A subset of is semilinear if and only if it is Presburger-definable. One can effectively convert between these formulas and semilinear presentations [2 Theorem 1.3]. We also use the following classical theorem [2 Theorem 2.1].
Theorem 3.1 (Ginsburg and Spanier, [2 Theorem 2.1]). For distinct letters and , the letter-bounded language is context-free if and only if is stratifiable.
All vector spaces are over . We write for linear span, for a subspace, and for dimension. A linear form is a weighted sum with . For a linear map , and denote image and inverse image.
Write for polynomials of total degree at most , whose monomials of degree at most are a basis. We use for the coefficient vector in a specified ordered monomial basis, , and .
The source problem for our construction is the following.
Solvability of quadratic systems over
Input: A finite list of polynomials of total degree at most two.
Question: Is there a tuple such that for every ?
Rational coefficients are represented by integer numerators and nonzero integer denominators.
From quadratic systems to finite separation
Recall that a separator is the map defined by nonzero rational forms . It separates from a family of subspaces when lies outside all their images under .
Finite separation by Cartesian products of rational linear forms
Input: An integer and finitely many rational subspaces , each specified by finitely many rational spanning vectors.
Question: Is there a finite list of separators such that, for every rational pair outside the subspaces, some satisfies
Theorem 4.1 (First reduction). There is a computable many-one reduction from rational solvability of quadratic systems over to finite separation by Cartesian products of rational linear forms.
Proof. Write the input equations as . First test by rational linear algebra whether . If so, the system has no rational solution; replace it by , which also has no rational solution and whose equation span does not contain . We may therefore assume .
The construction in § 4.1 and § 4.2 computes from the input equations a finite family of rational subspaces and a designated pair outside their union. Lemmas 4.5 and 4.3 show that any separator of this pair yields a rational solution. Thus a finite separating family for yields a solution.
Conversely, under the assumption on the equation span, Lemma 4.7 separates every outside pair off three explicit rational lines, by choosing image slopes and extracting coefficients of the added variable . If a rational solution exists, the evaluation extension in Lemma 4.8 separates every nonzero pair on those three lines with one choice of its positive parameter. Lemma 4.2 then selects finitely many separators serving all outside pairs.
The following fact about a fixed finite family of rational subspaces justifies this finite selection. It allows the forms in a separation proof to depend on the pair being separated.
Lemma 4.2 (A finite subcollection suffices). Fix rational subspaces . Every collection of separators has a finite subcollection separating exactly the same pairs from .
Making separation at one pair equivalent to a rational root
Let the input equations be , , where . Throughout this construction assume , as permitted by the preliminary step in the proof of Theorem 4.1. Fix an ordering of the monomials , , and with in , beginning with . Represent polynomials by their coefficient vectors in this basis, as in § 3.
To recover a common root, we make the separator determine one evaluation of the input polynomials. A diagonal subspace makes its forms agree after normalization; multiplication subspaces make their common form respect products; an equation subspace makes this evaluation vanish on every . Define
Let . Set . A separator of this designated pair will determine a rational solution.
Lemma 4.3. The pair can be separated from by a separator if and only if the quadratic system has a rational solution.
Example 4.4 (Why the initial family must be enlarged). For , evaluation at separates from , , , but the outside pair cannot be separated.
Enlarging the space while preserving the root requirement at
We enlarge the space so that a rational solution supplies separators for every outside pair. Giving each basis generator its own added coordinate in the second entry lets move the modified generator’s image vertically, independently of the other generators. adjustments place each modified subspace image in a chosen line through the origin of finite rational slope. A separate coordinate and two additional subspaces ensure that separating forces to vanish on every coordinate added to a generator. Each modified generator then has the same image as the generator it replaces, so separation of still forces a rational root.
Fix a basis , , for each . For , take over the monomials, with first; for , take over . For , compute a basis of and take , in this order. A sum over ranges over all these basis vectors; in particular, indexes for and for .
The generators specified for are independent: subtracting the entries of a zero linear combination forces the coefficient of to vanish, and independence of the forces the other coefficients to vanish.
Introduce a polynomial variable and one variable for every basis index , and work in the vector space
The summands share . Extend the monomial basis of by and all , obtaining a basis of length for both entries. Each coefficient vector is uniquely
For , the vector has zero coefficients at and every ; the designated pair in the enlarged space is still . Replacing by changes its second image value by . To make each modified generator map to whenever separates , the line below forces , allowing to force every .
Accordingly, define the following subspaces of :
Let be the resulting family of subspaces.
Lemma 4.5 (Recovery at the designated pair ). The pair lies outside every member of . If a separator separates from , the restrictions of and to the coefficient vectors of are nonzero and separate from .
Example 4.6 (Why equal forms do not suffice). For separators of , normalization makes the restrictions of to agree. Equality of the full forms cannot be required for all outside pairs: lies outside every member of , yet no separates it. The problem must therefore allow and to differ, even when a rational root exists.
The constructed instance of finite separation is . Its finite separating families yield rational solutions by Lemmas 4.5 and 4.3. For the converse, put . We first separate all pairs in off three explicit lines, using only the assumption on the equation span. A rational solution supplies one separator for the nonzero pairs on those lines; Lemma 4.2 then gives a finite separating family.
Separating pairs without using a root
The slope extensions keep to permit nonzero while keeping the image of proper. These extensions send to the same point as . We then choose to extract the coefficient of and set every , which permits while keeping the image of horizontal. The proof first treats the pairs , then the shifted pairs .
Lemma 4.7. Every pair in outside the union of the three lines
can be separated from .
Proof. The coefficient extraction and slope extensions verified in Appendix A.6 separate all pairs in except possibly
where , in the first case, and , in the second. For , the case gives a nonzero multiple of , on the first line in (10). If , let and extract the coefficients of and , respectively. The images of all the lie on the vertical axis, the image of is horizontal, and the image of is diagonal. The pair’s image avoids all of them because , , and . Both forms are nonzero.
Now consider a shifted pair in (11). Fix to extract the coefficient of , and let vary on the coefficient space of , extending it by zero on every added basis vector. For every , the generators map to ; the image of is horizontal, and maps to . The shifted pair maps to and already avoids every image since . Thus it is separated exactly when
By linearity, the second inequality is . If , both and are nonzero. The product , viewed as a polynomial in the coefficients of , is therefore nonzero at some rational tuple, giving a separator. Both forms are nonzero since and .
If , the shifted pair has image , in the image of for every . To describe these pairs, note that with . The coefficients in are precisely the coefficients of in the fixed basis of , so determining also determines every added term.
For , this forces . Only the basis generator occurs, so the shifted pair is . No contributes such a pair, since its second entry is divisible by and cannot be a nonzero constant. For , write with . The equation makes constant; the standing assumption on the equation span gives and . Only the basis generator occurs, so the shifted pair is . These are precisely the other two lines in (10).
Completing separation using a rational root
Lemma 4.7 separates every outside pair off the three lines in (10) without using a root. At a rational root , let both forms evaluate polynomials in at , set every , and put . Every such extension separates the nonzero multiples of , so we choose to separate the nonzero pairs on the two shifted lines as well. Their representatives have images and , which avoid the horizontal image of and the image of . Each image excludes at most one value of for each representative, so one positive rational value separates every nonzero multiple of either representative while preserving separation of the nonzero multiples of .
Lemma 4.8. If the quadratic system has a rational solution, every pair in can be separated from .
When the system has a rational solution, Lemma 4.8 supplies a separator for every outside pair; Lemma 4.2 selects a finite list, completing the first reduction.
From finite separation to stratifiability
Let be an instance of finite separation, with as in Section 4. We construct a semilinear set that is stratifiable exactly when this instance admits a finite separating family.
To construct the semilinear output, we represent an integer coordinate as a difference of two nonnegative coordinates. We keep all positions before all positions so that the two forms act on consecutive groups of letter blocks. Within each entry, the positive and negative blocks are indexed in the same order, so matching pairs for distinct indices alternate; this is the arrangement used to extract the forms from a stratification (Lemma B.5). We therefore order the coordinates as
Define the signed-coordinate map and the sets by
The set consists of the rational pairs outside the deleted union. The set contains every nonnegative integer representation of each integer pair in . These representations are not unique: for example, and both represent . More generally, increasing matching positive and negative coordinates by the same nonnegative integer leaves their difference unchanged. Keeping every representation supplies the grids of cancellation directions used to extract separators from a stratification.
Lemma 5.1. The set in (13) is semilinear. From rational spanning vectors for each , one can compute a finite semilinear presentation of .
To obtain a stratification from a finite separating family, we first consider the signed representations of pairs separated by one fixed separator :
Every is contained in .
Lemma 5.2. The set is stratifiable. Consequently, a finite family of separators whose sets cover gives a stratification of .
Proof sketch. After clearing the coefficient denominators of , , membership in is a Presburger condition on two integer-weighted sums over consecutive coordinate blocks. Lemma B.7 and Theorem 3.1 give stratifiability.
Lemma 5.3. If is stratifiable, there is a finite list of separators such that every rational pair in is separated from by some member of the list.
Proof sketch. Adding the same amount to a positive coordinate and its matching negative coordinate preserves the represented pair. Thus the signed representations of an outside integer pair contain a grid of independent cancellation directions. In a finite stratification, some component meeting this grid has nonnegative period combinations with image zero under that span all those directions.
For each such component, let be the rational span of the images under of periods occurring in these combinations. These period images can be added and subtracted within the component’s image. The support restriction gives nonzero forms , with . Fix one such separator for every component with the spanning property. A failure to separate a rational pair from implies . Choose one expression as a point of plus a rational combination of those period images for each candidate component and each whenever possible. Clear all these coefficients and the coordinates of by one positive integer multiple before selecting a component representing that multiple. Subtracting the resulting integer combination would put a point of in the component’s image under , contradicting its containment in .
Theorem 5.4 (Second reduction). There is a computable many-one reduction from finite separation by Cartesian products of rational linear forms to stratifiability. On input , it outputs a finite semilinear presentation of the set in (13).
Proof. Lemma 5.1 computes the required presentation from the subspace generators. If a finite separating family exists, the sets indexed by its members cover : every represented integer pair lies outside the subspaces and is separated by a member of the family. Lemma 5.2 makes their finite union stratifiable. Conversely, if is stratifiable, Lemma 5.3 supplies a finite family separating every rational pair outside the subspaces.
Proof of the Main Theorem
Proof of Theorem 1.1. Given the input polynomial , the standard reduction to quadratic systems [6 proof of Theorem 7.5, pp. 262–263] computes a finite system of rational polynomial equations of degree at most two that has a rational solution if and only if has a rational zero.
Theorem 4.1 computes a family of rational subspaces admitting a finite separating family exactly when has a rational solution. Theorem 5.4 then computes a finite semilinear presentation of a set that is stratifiable exactly when that separating family exists. Thus is stratifiable exactly when has a rational zero.
Corollary 6.1 (Conditional consequence). If the undecidability claim in [9 Theorem 1.1] is correct, general stratifiability of semilinear sets is undecidable. Equivalently, there is no algorithm that, from a semilinear set , decides whether the letter-bounded language is context-free.
Proof. Under the stated hypothesis, rational polynomial solvability is undecidable. Apply Theorem 1.1, and then Theorem 3.1 for the language formulation.
Conclusion
We have given a computable many-one reduction from rational polynomial solvability to stratifiability of semilinear sets and, equivalently, to context-freeness of letter-bounded languages specified by semilinear exponent sets. If the undecidability claim in [9] is correct, both decision problems are undecidable.
Let denote the problem of deciding whether a polynomial with integer coefficients has a zero in nonnegative integers. Stratifiability is computably enumerable: enumerate candidate stratifications and check equality with the input set in Presburger arithmetic. The Davis–Putnam–Robinson–Matiyasevich theorem [6] therefore gives a computable many-one reduction from stratifiability to . Can one prove an unconditional computable many-one reduction in the opposite direction, from to stratifiability? This would establish undecidability independently of [9]. Adapting the proof of Lemma 4.3 to would require a mechanism forcing the recovered coordinates to be nonnegative integers. A fixed system of polynomial equations with rational unknowns expressing membership in would provide such a mechanism; finding one is equivalent to the longstanding open problem of existentially defining in [10].
Our result places no fixed bound on the dimension of the semilinear set. For which fixed dimensions is stratifiability decidable? Every semilinear subset of is stratifiable, since both restrictions on periods hold automatically. Dimension three is the first nontrivial case: is not stratifiable, since any nonzero period of a linear set contained in it has all three coordinates nonzero. Is stratifiability decidable for arbitrary semilinear subsets of ?
If [9 Corollary 7.1] is correct, stratifiability and rational polynomial solvability are Turing equivalent: each can be decided using oracle queries to the other problem. This does not settle the stronger many-one converse, which the cited draft does not establish. Can one effectively associate a single integer polynomial with every semilinear presentation of a set , so that has a rational zero exactly when is stratifiable?
AI disclosure. The ideas and writing in this paper were developed in conjunction with ChatGPT-6 Astra. The author takes full responsibility for the correctness and presentation of the work.
Proofs for the first reduction
We first prove the finite-subcollection lemma for an arbitrary finite family of rational subspaces. For the subsequent proofs, the subspaces, bases, and coefficient notation are those of Section 4: , is its enlarged family, and consists of the pairs outside .
Selecting finitely many separators
Proof of Lemma 4.2. For each separator in the given collection, failure to separate from means membership in the rational subspace
Choose rational linear forms whose simultaneous vanishing defines , and define the polynomial
A sum of rational squares is zero exactly when every summand is zero. Consequently, exactly when separates from every . If is the whole space, use no equations for it: the empty sum is zero, as required. For , the empty product is 1.
The polynomials have degree at most in the pair coordinates, so their span is finite-dimensional. Choose a basis of this span from the polynomials themselves, and retain their separators. If all the retained polynomials vanish at a pair, every vanishes there; conversely, a nonzero retained value gives separation by a member of the given collection. These finitely many separators therefore separate exactly the same pairs. When the span is zero, the empty subcollection suffices. ◀
Recovering a root before enlargement
Proof of Lemma 4.3. Suppose separates . Its image is , so because every subspace image contains zero. The image of is proper and contains ; it is therefore a line avoiding . Hence , and every is proportional to . Dividing and by their respective values at 1 gives a common form with . This invertible rescaling of the two scalar coordinates preserves separation.
The proper image of contains , so
Put . Taking shows that agrees with evaluation at on every quadratic monomial, hence on every polynomial of degree at most two. The image of contains and ; their determinant is , so properness forces for every .
Conversely, evaluation at a rational solution gives a nonzero form with . For , the images of , , lie in lines of slopes , , , respectively, all avoiding the image of .
Why cannot be separated before enlargement
Verification of Example 4.4. For , consider the three subspaces
The separator , where , separates from this family, but the outside pair cannot be separated.
Indeed, is not in , its second entry is not times its first, and the first entry of every pair in has zero coefficient. Thus it lies outside all three spaces.
Suppose nonzero forms separated . The image of cannot be the whole plane, so are proportional. Both are nonzero; rescaling one of them therefore gives a common form and preserves separation. Put
The image of is generated by and , and the image of by and . Neither image can be the whole plane. Their determinants consequently give
If , then , so the image of is zero and belongs to every image. If , then and . When , belongs to the diagonal image of . When , it is the negative of and belongs to the image of . Every case contradicts separation.
Recovery in the enlarged space
Proof of Lemma 4.5. A pair in with all added second coordinates zero has every generator coefficient zero, so it cannot equal . In , a nonzero constant term in the second entry comes with a nonzero coefficient of in the first; in , the constant term in the second entry is zero. Thus lies outside every member of .
Suppose separates . Its image is , with . If , the generator would have the same image, so . The image of therefore contains the nonzero horizontal vector . Any nonzero would make this image the whole plane, preventing separation. Consequently every , and
Thus for every . The restriction of to is nonzero since . If , the generator would have the same image as ; hence the restriction of is also nonzero. These restrictions separate from .
Why equal forms do not suffice
Verification of Example 4.6. A pair in with zero-valued added second coordinates must be zero, while the first entry of every pair in or has zero coefficient at . Thus lies outside every member of . If , the generator has the same image under as . If , the image of contains the nonzero diagonal vector , and hence the image of . Neither case permits separation.
Separation by variable image slopes
We prove the preliminary classification (11) used in Lemma 4.7, including its restrictions on .
Proof. Under the standing assumption , each coordinate projection of every is injective; this will let us recover generator coefficients from either entry of a pair. An element of can be written as , where and . If either entry is zero, then or is constant. The only constant in the equation span is zero, so and . Each coordinate projection of is therefore injective. The same property is immediate for and for the first projection of ; the second projection of is injective because multiplication by is injective. Consequently, for each , the coefficient vectors are linearly independent, as are the vectors .
Pairs whose second entry has a nonzero coefficient of . First take to extract the coefficient of and to extract the coefficient of . Every pair in every member of has zero coefficient of in its second entry, so these forms separate every pair whose second entry has a nonzero coefficient of . Every pair whose second entry has zero coefficient of can be written as
Assigning slopes to the modified subspaces. To put the image of into the diagonal and the image of each into a line of slope , choose the values of on the monomial basis of and the slopes as independent parameters, subject to , and extend by
Indeed, the modified generator has image . In , the generator maps to zero and every maps to a diagonal vector. The image of is vertical. The value does not affect any of these images or the image of , since every second entry under consideration has zero coefficient of .
To compute the image of in (15), put
For fixed , denote its image by . These coordinates are polynomials in the values of on the monomial basis of and in the slopes :
To keep off the vertical axis, the diagonal, and the lines of slopes , it suffices to require , , and for every . We identify the pairs for which one of these polynomials is zero for every parameter choice. Write for the pairs with and . In the following identities, means that a polynomial is identically zero on the parameter space :
For (17), the coefficients of the independent give , hence every by independence of the ; then forces . For (18), those coefficients give for every , leaving . Varying the values of on that monomial basis independently gives , and then . Indeed, if for every form with , varying its values on the nonconstant monomials shows that every nonconstant coefficient of is zero; its constant coefficient must then also be zero. The conditions and for every say exactly that .
For (19), the coefficients of and for first force all , so every . The remaining coefficients give for and . Thus all with are zero. The term independent of the slopes is ; its vanishing for every form with gives . These conditions say precisely that . The reverse implications in all three identities follow by substitution.
Consequently, if has first entry not a scalar multiple of and lies in none of the spaces , then
is a nonzero polynomial. A nonzero rational polynomial has a rational tuple where it is nonzero: this follows by induction on the number of variables from the fact that a nonzero univariate polynomial has only finitely many roots. Choose such a tuple for (20). Then the image of lies outside every subspace image. The factor and the normalization ensure that both forms are nonzero.
Making the image of zero. With and , every pair whose first entry is maps into the vertical image of , so these extensions cannot separate it. To separate such a pair, we instead make the image of zero. Choose new values of on the monomial basis of , subject to and , and new slopes ; then recompute their values on the added basis vectors by (16). Consider a pair whose first entry is and whose second entry is not a scalar multiple of . For these new extensions, the image has , and maps to zero. The polynomial is nonzero: if it vanished identically, its coefficients would give for all forms with , hence and every . The remaining identity for forms satisfying would make constant, a contradiction. Choose a rational solution of . The pair’s image is nonzero and avoids the finite-slope lines containing the images of all . Both forms are nonzero, since and .
The constructions above prove separation for every pair in except possibly those described in (11). For , membership outside gives and membership outside gives . If with , then because . Write the second entry of as , with . If , injectivity of the second projection of would force every . Then and , a contradiction.
Completing separation using a rational root
Proof of Lemma 4.8. Fix a rational root . For a positive rational parameter , define
Both forms are nonzero at . The images lie in lines of slopes , while the image of is horizontal and maps to . Thus every nonzero multiple of has nonzero vertical image and is separated. For the other two lines in (10), the representatives have images
Both avoid the image of , since their second coordinate is nonzero. Membership in the image of would force or , respectively. For a line of slope containing a image, membership requires or . If , neither is possible; otherwise these equations exclude the two values
Choose one positive rational outside the finite set excluded by all the slopes . This separator separates both representatives and hence every nonzero rational multiple of either. It also preserves separation of every nonzero multiple of , proved for every positive . Lemma 4.7 supplies separators for the pairs in off these three lines, proving the claim. ◀
Proofs for the second reduction
The subspaces , map , sets , , and separators are as in § 5. We first prove effective semilinearity of , then extract finitely many separators from a stratification. Finally, we prove the weighted-sums lemma and apply it to the regions .
Computing a semilinear presentation
Proof of Lemma 5.1. Gaussian elimination and denominator clearing compute integer matrices with . Since has integer entries, so does . If has rows, then for ,
An empty disjunction is false and an empty conjunction is true. This is a Presburger formula, so the effective conversion recalled in § 3 produces a finite semilinear presentation. ◀
Period combinations with image zero
Put and . For nonzero rational forms , define
Since , we have
Thus is precisely the set of pairs separated by , and . In the notation of (14),
To extract separators from a stratification of , we first need a component whose nonnegative period combinations with image zero span . For each outside integer pair, the following argument finds such a component containing one of its signed representations.
For , the fiber of over is . To describe the part of a linear set in this fiber, we use the coordinatewise order on : means for every .
Lemma B.1 (Dickson’s lemma). Every subset of has finitely many minimal elements for the coordinatewise order, and each of its elements is above a minimal element.
Proof. Every infinite sequence in has an infinite nondecreasing subsequence: either one value occurs infinitely often, or each bounded set of values occurs only finitely often and an increasing subsequence can be chosen. Apply this successively to the coordinates. Every infinite sequence in then has two terms in coordinatewise nondecreasing order, so an infinite sequence of distinct minimal elements is impossible. For any in the subset, the set of elements below is finite and nonempty; a minimal member is also minimal in the original subset. The case is immediate. ◀
For a finite period set , let be the matrix with these columns. Define
Thus is spanned by the nonnegative period combinations that leave the represented pair unchanged. The next proof uses the minimal-element argument for linear-equation solution sets in Ginsburg and Spanier’s proof of Theorem 1.3 [2].
Lemma B.2. If , then for every some component meeting satisfies .
Proof. First fix one component and put
By Lemma B.1, has finitely many minimal elements . Every is above one of them, and ; conversely, . Hence
It follows that lies in finitely many translates .
Choose with . For each of the coordinates of , let have a 1 in its positive and negative source positions and zeros elsewhere. The vectors are a basis of , and
If every component meeting this fiber had , the preceding description would cover this grid by finitely many translates of proper subspaces of . In the coordinates given by , each translate satisfies an equation in which some is nonzero. It contains at most points of : fix all but a coordinate with nonzero coefficient, and the remaining coordinate has at most one possible value. Finitely many such translates cannot cover all points for arbitrarily large .
For a period set , let consist of the periods for which some has . These are the periods that occur in a nonnegative combination with image zero. Put
Here , , and . Both and contain zero and are closed under addition.
Lemma B.3. The set is closed under negation and . If , then .
Proof. For , choose with . The relation gives
Every period with a positive coefficient on the right belongs to . Thus the negative of each generator of belongs to , which proves closure under negation. Also . In every with , only periods in have positive coefficients, so .
Since , adding or subtracting an element of preserves the image of the linear component. These moves will turn a failure of separation into a point of lying in a deleted subspace.
Two forms from the order of period supports
The support of a period is the set of positions of its nonzero coordinates. We next use the prohibition on alternating period supports to find with . The argument follows the structure of stratified period sets studied by Brough [7], Lemmas 3.6–3.7 and the proof of Proposition 3.8. We first record the graph property we need.
Lemma B.4. Let a graph have linearly ordered vertices and no edges , with . Distinct connected components cannot contain and , respectively, with .
Proof. If is an edge with , any other component meeting the open interval lies entirely inside that interval. Otherwise a path leaving the interval has an edge with one endpoint inside and one outside. Its endpoints are distinct from , so the two edges have alternating endpoints.
Suppose distinct components contain and with . A path in from to has an edge with , so . A path in from to has an edge with , so likewise . But , contradicting .
Lemma B.5. If a subspace is spanned by a stratified period set and contains , there are nonzero rational forms on and on with .
Proof. Let be the space of coefficient vectors of rational linear forms on that vanish on . Since these forms vanish on , every vector in can be written as
Construct a graph on the source coordinate positions, with an edge for each two-element support of a spanning period. For a period supported on , vanishing means
Along an edge one coefficient determines the other. On a connected component, all coefficients are therefore determined by any one of them. The space of restrictions of to a component therefore has dimension at most one. This holds for isolated vertices as well.
Restricting to one graph component and setting its other coefficients to zero preserves membership in , because each spanning period has support in a single component. Call the two positions , or , signed partners. If a coefficient can be nonzero in , its position and its signed partner must belong to the same component. Otherwise, choose nonzero at that position and restrict to that graph component; the resulting vector violates (23).
All positions in the two blocks whose coefficients can be nonzero belong to one component. Indeed, two indices in distinct components would put in one and in the other. These four positions alternate in the source order, contrary to Lemma B.4. The same holds for the blocks. Thus the possible vectors span a space of dimension at most one, as do the possible vectors .
If the space of possible is nonzero, choose a form whose coefficient vector spans it; otherwise choose any nonzero form on . Choose in the same way from the possible . Every rational form on that vanishes on , when composed with , has a coefficient vector in . The form on can therefore be written as
and vanishes on . This implies : if a vector were outside , extending a basis of would give a form vanishing there but not at that vector. ◀
A stratification supplies separating forms
For a component of a stratification with , the preceding lemmas give forms with . If these forms fail to separate a rational pair from , then . To turn the contribution into an element of that can be subtracted within the component’s image, we clear denominators simultaneously for all candidate components before applying Lemma B.2 to select one representing the scaled pair.
Lemma B.6. If is stratifiable, finitely many separators separate every pair in .
Proof. Fix a stratification , and let
For each , use the notation defined above. Lemma B.3 gives and . Since the periods spanning are a subset of , they are stratified. Lemma B.5 supplies nonzero rational forms with
We show that these finitely many separators separate all of .
Fix . For every index combination with and , choose an expression
Such expressions exist because . The fiber lemma will select a component only after we fix an integer multiple of , so we clear denominators simultaneously for every candidate component. Choose one positive integer clearing the denominators of the coordinates of and all the coefficients . As is closed under addition and negation, while is a subspace, we obtain
Also , since multiplication by a nonzero scalar preserves membership in each and its complement. Lemma B.2 gives with . If , equation (25) gives for and . Since ,
contradicting . Therefore for every . By (24), , which proves the claim. ◀
Separating forms supply a stratification
For a source vector and a fixed separator , membership of in depends on the two sums and . After clearing the coefficient denominators of , these are integer-weighted sums over consecutive coordinate blocks. The following lemma proves that a Presburger condition on two such sums gives a context-free letter-bounded language.
Lemma B.7. Let be distinct letters, let , and let be Presburger-definable. The language of words
is context-free.
Proof. Intersect with each of the four closed coordinate quadrants. Changing coordinate signs identifies each intersection with a semilinear subset of . For one of its linear components , choose fresh terminal letters , distinct from every . The grammar
generates exactly its two-block language. Thus each such linear component has a context-free two-block language.
On the alphabet define the balance of a word to be the number of plus signs minus the number of minus signs. We will replace a count by words of balance , where is the sign assigned to that coordinate by the chosen quadrant. Let be the language of words of balance . A grammar for is
The languages and are also context-free, where juxtaposition denotes concatenation and the middle sign is a literal letter. For and ,
For the reverse inclusion, cut a word when its balance first reaches , then , and so on up to . Each intervening piece has balance ; append the remaining balanced suffix to the last piece. The case is immediate. The same first-passage argument gives the descriptions of and above.
Insert new marker letters before the two count blocks: add the start production and replace the terminal production by . Use two disjoint copies of the signed alphabet. Substitute for each marker, for , and for , where are the chosen signs. By (26), the resulting language consists exactly of concatenations of a word over the first signed alphabet and a word over the second, whose balance pair is for some in the selected linear component. Take the union over components and coordinate-sign regions. Finally, for nonzero weights, map each to copies of the sign of in the first alphabet, and each to copies of the sign of in the second. Map each letter of weight zero to the empty word. Take the inverse image under this homomorphism and intersect it with the regular language . This is the required language. These constructions use closure of context-free languages under concatenation, finite union, substitution of context-free languages for letters, inverse homomorphism, and intersection with a regular language [8 Sections 3.4, 6.4, and 6.5]. ◀
Proof of Lemma 5.2. Multiplying each form by a positive integer to clear its coefficient denominators preserves separation: it applies the same invertible coordinate map to the image of each pair and each subspace. Membership in is therefore a Presburger condition on the two integer-weighted sums
The pair of sums must lie outside , a union of rational subspaces of defined by linear equations. All positions precede all positions. Lemma B.7 therefore shows that the associated letter-bounded language is context-free. Theorem 3.1 therefore makes stratifiable. Finite unions preserve stratifiability. ◀
References
- [1]Seymour Ginsburg and Edwin H. Spanier. Bounded ALGOL-like languages. Transactions of the American Mathematical Society, 113(2):333–368, 1964. doi:10.1090/S0002-9947-1964-0181500-1.DOI
- [2]Seymour Ginsburg and Edwin H. Spanier. Semigroups, Presburger formulas, and languages. Pacific Journal of Mathematics, 16(2):285–296, 1966. doi:10.2140/pjm.1966.16.285.DOI
- [3]Seymour Ginsburg. The Mathematical Theory of Context-Free Languages. McGraw-Hill, New York, 1966.
- [4]Oscar H. Ibarra and Shinnosuke Seki. On the open problem of Ginsburg concerning semilinear sets and related problems. Theoretical Computer Science, 501:11–19, 2013. doi:10.1016/j.tcs.2013.07.025.DOI
- [5]Jérôme Leroux, Vincent Penelle, and Grégoire Sutre. The context-freeness problem is coNP-complete for flat counter systems. In Franck Cassez and Jean-François Raskin, editors, ATVA 2014, volume 8837 of Lecture Notes in Computer Science, pages 248–263. Springer, 2014. doi:10.1007/978-3-319-11936-6_19.DOI
- [6]Martin Davis. Hilbert’s tenth problem is unsolvable. The American Mathematical Monthly, 80(3):233–269, 1973. Article.DOI
- [7]Tara Brough. Groups with poly-context-free word problem. Groups Complexity Cryptology, 6(1):9–29, 2014. Citations use the numbering of arXiv:1104.1806v1 (2011).DOI
- [8]Michael A. Harrison. Introduction to Formal Language Theory. Addison-Wesley, 1978.
- [9]OpenAI. Hilbert’s tenth problem over the rational numbers. Preprint, 24 September 2026. Theorem 1.1. Archived repository version.hub.valency.io/works/W_rke45j3t
- [10]Bjorn Poonen. Undecidability in number theory. Notices of the American Mathematical Society, 55(3):344–350, 2008. Article.