alphaFeedback

WorksComputer Science

Rational polynomial solvability reduces to stratifiability of semilinear sets

AI contributions
Not recorded for this paper
View details

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 D1,…,Dk≤Qr×QrD_1,\ldots,D_k\le\mathbb Q^r\times\mathbb Q^r. A separator is a map (x,y)↦(u(x),v(y))(\boldsymbol x,\boldsymbol y)\mapsto(u(\boldsymbol x),v(\boldsymbol y)), where u,v ⁣:Qr→Qu,v\colon\mathbb Q^r\to\mathbb Q are nonzero rational linear forms. The problem asks whether finitely many separators suffice so that every pair outside ⋃iDi\bigcup_iD_i 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 S⊆NdS \subseteq\mathbb{N}^d and distinct letters a1,…,ada_1,\ldots,a_d, consider

L(S)={a1n1⋯adnd:(n1,…,nd)∈S}.L(S)=\{a_1^{n_1}\cdots a_d^{n_d}:(n_1,\ldots,n_d)\in S\}.

The coordinates record the lengths of successive letter blocks; a language contained in a1∗⋯ad∗a_1^*\cdots a_d^* is called letter-bounded. Suppose that SS is semilinear: equivalently, it is definable in first-order arithmetic with addition, or Presburger arithmetic. Can we decide whether L(S)L(S) is context-free?

Ginsburg and Spanier’s characterization [2 Theorem 2.1] expresses context-freeness of L(S)L(S) as a restriction on the periods in a presentation of SS. A linear set consists of a base vector plus arbitrary nonnegative integer combinations of finitely many period vectors, and a semilinear presentation writes SS 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 i<j<k<li<j<k<l, one period cannot be nonzero at i,ki,k while another is nonzero at j,lj,l. A set admitting a stratification is stratifiable. The characterization states that L(S)L(S) is context-free if and only if SS is stratifiable. Our decision question is therefore whether a set given by an arbitrary semilinear presentation admits a stratification.

For example, the periods (1,1,0)(1,1,0) and (0,1,1)(0,1,1) stratify {(n,n+m,m):n,m∈N}\{(n,n+m,m):n,m\in\mathbb{N}\}, whose language is {anbn+mcm:n,m∈N}\{a^n b^{n+m}c^m:n,m\in\mathbb{N}\}. In contrast, the semilinear set

S×={(n,m,n,m):n,m∈N}(1)S_{\times}=\{(n,m,n,m):n,m\in\mathbb{N}\} \tag*{(1)}

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 SS such that SS 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 w1∗⋯wk∗w_1^* \cdots w_k^* for fixed words wiw_i 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 fi(x1,…,xn)=0f_i(x_1,\ldots,x_n)=0 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 D1,…,Dk≤Qr×QrD_1,\ldots,D_k\leq\mathbb{Q}^r\times\mathbb{Q}^r, given by spanning vectors.

The separator is a product map u×vu\times v defined by nonzero rational linear forms u,v ⁣:Qr→Qu,v\colon\mathbb{Q}^r\to\mathbb{Q} by (u×v)(x,y)=(u(x),v(y))(u\times v)(x,y)=(u(x),v(y)). It separates a pair ww from the subspaces if

(u×v)(w)∉⋃i(u×v)(Di).(u\times v)(w)\notin\bigcup_i (u\times v)(D_i).

The problem, finite separation by Cartesian products of rational linear forms, asks whether there is a finite list of separators such that every rational w∉⋃iDiw\notin\bigcup_i D_i can be separated by one of those separators.

For example, take D={((t,t),(t,s)):t,s∈Q}D=\{((t,t),(t,s)):t,s\in\mathbb{Q}\}. An outside pair ((x1,x2),(y1,y2))((x_1,x_2),(y_1,y_2)) has x1≠y1x_1\ne y_1 or x2≠y1x_2\ne y_1. In the first case, the separator with u1(x)=x1u_1(x)=x_1 and v1(y)=y1v_1(y)=y_1 distinguishes it from DD; in the second, use u2(x)=x2u_2(x)=x_2 and v2(y)=y1v_2(y)=y_1. Each separator sends DD to the diagonal, while at least one separates its pair off that diagonal. Thus u1×v1,u2×v2u_1\times v_1,u_2\times v_2 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 f=x2−1f=x^2-1. Let [p][p] be the coefficient vector of pp in the basis 1,x,x21,x,x^2, so [f]=(−1,0,1)[f]=(-1,0,1), and write [p,q]=([p],[q])[p,q]=([p],[q]) and u[p]=u([p])u[p]=u([p]). We want separation of the designated pair e=[0,1]e=[0,1] by a separator u×vu\times v to force a root. A diagonal subspace Δ\Delta will make the forms uu and vv agree after normalization, a multiplication subspace MM will make their common form be an evaluation, and an equation subspace EE will make that evaluation vanish on ff:

Δ=span⁡{[1,1],[x,x],[x2,x2]},\Delta=\operatorname{span}\{[1,1],[x,x],[x^2,x^2]\},
M=span⁡{[1,x],[x,x2]},E=span⁡{[1,2],[f,f]}.M=\operatorname{span}\{[1,x],[x,x^2]\},\qquad E=\operatorname{span}\{[1,2],[f,f]\}.

If u×vu\times v separates ee, linearity gives its image (0,v[1])(0,v[1]). Thus v[1]≠0v[1]\ne0, since every subspace image contains zero; also u[1]≠0u[1]\ne0, since otherwise [1,1]∈Δ[1,1]\in\Delta has the same image as ee. Divide the forms by these two values so that u[1]=v[1]=1u[1]=v[1]=1. The image of Δ\Delta contains (1,1)(1,1) and avoids (0,1)(0,1), so it is the diagonal and the normalized forms agree. Denote their common form by λ\lambda.

Put c=λ[x]c=\lambda[x]. The two generator images of MM, namely (1,c)(1,c) and (c,λ[x2])(c,\lambda[x^2]), must be collinear. Hence λ[x2]=c2\lambda[x^2]=c^2, making λ[p]=p(c)\lambda[p]=p(c) for every polynomial pp of degree at most two. Thus λ\lambda is evaluation at cc. The images (1,2)(1,2) and (f(c),f(c))(f(c),f(c)) of the generators of EE span the plane unless f(c)=0f(c)=0, so separation forces a root. For f=x2−2f=x^2-2, separation would require c2=2c^2=2 and is therefore impossible over Q\mathbb{Q}.

Assigning image slopes to separate [x,1][x,1]. Finite separation requires that every outside pair is separated. Yet even for f=x2−1f=x^2-1, the pair [x,1][x,1] lies outside Δ\Delta, MM, EE and cannot be separated (Example 4.4). We therefore modify the subspaces to permit its separation, while retaining the root requirement at ee.

Choose nonzero rational linear forms u,vu,v on the coefficient space of Q[x]≤2\mathbb{Q}[x]_{\le2} and write (u×v)[x,1]=(ρ,σ)(u\times v)[x,1]=(\rho,\sigma). If (ρ,σ)≠(0,0)(\rho,\sigma)\ne(0,0), we can choose a rational slope sLs_L for each L∈{Δ,M,E}L\in\{\Delta,M,E\} with σ≠sLρ\sigma\ne s_L\rho. Placing each modified subspace image in its chosen line would separate [x,1][x,1], provided the image of [x,1][x,1] stays (ρ,σ)(\rho,\sigma). To do this, we give vv an independently adjustable coefficient for every generator.

Number the generators of each LL in the listed order, starting at d=0d=0, and write them as [pL,d,qL,d][p_{L,d},q_{L,d}]. Introduce a distinct polynomial variable bL,db_{L,d} for each index (L,d)(L,d) and append these monomials to the coefficient basis. Thus [bL,d][b_{L,d}] is a new unit vector; coefficient vectors of polynomials in Q[x]≤2\mathbb{Q}[x]_{\le2} acquire zero coefficients at every bL,db_{L,d}. Replace each generator by [pL,d+bL,d,qL,d][p_{L,d}+b_{L,d},q_{L,d}], and call their span L^\widehat L. For example, E^=span⁡{[1,2+bE,0],[f,f+bE,1]}\widehat E=\operatorname{span}\{[1,2+b_{E,0}],[f,f+b_{E,1}]\}. Extend vv by assigning, for every L,dL,d,

v[bL,d]=sLu[pL,d]−v[qL,d].v[b_{L,d}]=s_Lu[p_{L,d}]-v[q_{L,d}].

These are values on independent new basis vectors; the values v[bL,d]v[b_{L,d}] can still be chosen independently. Every modified generator has image (u[pL,d],sLu[pL,d])(u[p_{L,d}],s_Lu[p_{L,d}]), so L^\widehat L maps into the line of slope sLs_L. Since [x,1][x,1] has zero coefficients at the new basis vectors, its image stays (ρ,σ)(\rho,\sigma) and avoids these lines. For example, choose u[1]=1u[1]=1, u[x]=2u[x]=2, u[x2]=0u[x^2]=0, let vv extract the constant coefficient on Q[x]≤2\mathbb{Q}[x]_{\le2}, and take every sL=3s_L=3. The image of [x,1][x,1] is then (2,1)(2,1), off every chosen line.

Preserving the root requirement at ee. The freedom to choose image slopes must preserve the implication from separation of ee to a root. We therefore introduce one last variable tt, giving the coefficient basis 1,x,x2,t,(bL,d)1,x,x^2,t,(b_{L,d}), and add

H=span⁡{[t,1]},K=span⁡({[t,0]}∪{[bL,d,bL,d]:L,d}).H=\operatorname{span}\{[t,1]\},\qquad K=\operatorname{span}\bigl(\{[t,0]\}\cup\{[b_{L,d},b_{L,d}]:L,d\}\bigr).

The pair ee still lies outside every subspace. A separator of ee must have u[t]≠0u[t] \ne0, since otherwise the generator of HH has the same image (0,v[1])(0,v[1]) as ee. The image of KK then contains the nonzero horizontal vector (u[t],0)(u[t],0). Any nonzero value v[bL,d]v[b_{L,d}] would add a nonhorizontal vector and make that image the whole plane. Thus v[bL,d]=0v[b_{L,d}]=0 for every L,dL,d. Each modified generator has the same image as [pL,d,qL,d][p_{L,d},q_{L,d}], so the restrictions of u,vu,v to Q[x]≤2\mathbb{Q}[x]_{\le2} separate ee from Δ\Delta, MM, EE and yield a root by the earlier calculation.

Conversely, at a rational root cc, let both forms evaluate polynomials in Q[x]≤2\mathbb{Q}[x]_{\le2} at cc:

u[p]=v[p]=p(c)(p∈Q[x]≤2).(2)u[p]=v[p]=p(c) \qquad(p\in\mathbb{Q}[x]_{\le2}). \tag*{(2)}

Extend them by setting

u[bL,d]=v[bL,d]=v[t]=0for every L,d,u[t]=τ>0.(3)u[b_{L,d}]=v[b_{L,d}]=v[t]=0 \quad\text{for every }L,d,\qquad u[t]=\tau>0. \tag*{(3)}

For every positive rational τ\tau, the images of Δ^,M^,E^\widehat{\Delta},\widehat{M},\widehat{E} have finite slopes 1,c,21,c,2, the image of KK is horizontal, and HH maps to Q(τ,1)\mathbb{Q}(\tau,1). All avoid the nonzero vertical image of every nonzero multiple of ee.

For the earlier separator of [x,1][x,1], instead complete the assignment with

u[t]=v[t]=0,u[bL,d]=v[bL,d]for every L,d.u[t]=v[t]=0,\qquad u[b_{L,d}]=v[b_{L,d}]\quad\text{for every }L,d.

Now HH maps to the vertical axis and KK into the diagonal. The image (2,1)(2,1) avoids both and the slope-33 images of the L^\widehat{L}, so u×vu\times v separates [x,1][x,1] from the enlarged family.

More generally, the same extension rule separates every [p,q]∉Qe[p,q]\notin\mathbb{Q}e with p,q∈Q[x]≤2p,q\in\mathbb{Q}[x]_{\le2}, choosing the forms and slopes afresh for each pair. If p≠0p\ne0, choose v[1]=1v[1]=1 and u[p]∈{0,v[q]}u[p]\in\{0,v[q]\}, then choose every sL≠v[q]/u[p]s_L\ne v[q]/u[p]: the image avoids the vertical axis, the diagonal, and the chosen slope lines. If p=0p=0 and qq is nonconstant, choose u[1]=1u[1]=1, v[1]=0v[1]=0, and v[q]≠0v[q]\ne0, then recompute all added values by the same rule. Now HH maps to zero, while the nonzero vertical image (0,v[q])(0,v[q]) avoids the diagonal containing the image of KK and the finite-slope images of all L^\widehat{L}. Together with the root-based separators for the nonzero multiples of ee, this separates every nonzero pair [p,q][p,q] with p,q∈Q[x]≤2p,q\in\mathbb{Q}[x]_{\le2} from the enlarged family. Among these pairs, a root is required only for the nonzero multiples of ee.

Separating outside pairs with added variables. We now seek separators for the outside pairs with a nonzero coefficient at tt or some bL,db_{L,d} in at least one entry. We first construct separators that do not require a root. Every constructed subspace has zero coefficient of tt in its second entry. If an outside pair’s second entry has a nonzero coefficient of tt, let vv extract that coefficient and take any nonzero uu. Its image is off the horizontal axis containing every subspace image, so u×vu\times v separates the pair from all the constructed subspaces.

For pairs whose second entry has zero coefficient of tt, changing the slopes can change the pair’s image through its bL,db_{L,d} terms. We choose the values of u,vu,v on 1,x,x21,x,x^2 jointly with the slopes, extend vv by the earlier formula, and set u[bL,d]=v[bL,d]u[b_{L,d}]=v[b_{L,d}] and u[t]=v[t]=0u[t]=v[t]=0. Setting u[t]=0u[t]=0 permits nonzero v[bL,d]v[b_{L,d}]: otherwise the generator of KK, together with [t,0][t,0], would have images spanning the plane. With v[1]=1v[1]=1, the image of HH is vertical and that of KK lies in the diagonal, so an image (ρ,σ)(\rho,\sigma) outside these and the chosen slope lines gives a separator. For such a pair with first entry [αt][\alpha t] whose full second entry is not a scalar multiple of [1][1], choose new values on 1,x,x21,x,x^2 and new slopes, subject to u[1]=1u[1]=1 and v[1]=0v[1]=0, and recompute all added values by the extension formula. Some such choice gives the pair a nonzero vertical image, while HH 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 tt, except possibly pairs [αt,β][\alpha t,\beta] and pairs g+α[t,0]g+\alpha[t,0] with g∈L^g\in\widehat{L}.

For [αt,β][\alpha t,\beta], being outside KK and HH gives β≠0\beta\ne0 and β≠α\beta\ne\alpha. If α=0\alpha=0, the pair is a nonzero multiple of ee, already separated under the root hypothesis. If α≠0\alpha\ne0, let uu extract the coefficient of tt and let vv extract the constant coefficient. The image (α,β)(\alpha,\beta) avoids the vertical images of the L^\widehat{L}, the horizontal image of KK, and the diagonal image of HH, so these forms separate the pair.

The slope extensions cannot separate an outside pair g+α[t,0]\boldsymbol{g}+\alpha[t,0], with α≠0\alpha\ne0 and g∈L^\boldsymbol{g}\in\widehat{L}, from L^\widehat{L}: setting u[t]=0u[t]=0 sends it to the same image as g\boldsymbol{g}. Instead, fix uu to extract the coefficient of tt and let vv vary on the coefficient space of Q[x]≤2\mathbb{Q}[x]_{\le2}, extending it by zero on every added basis vector. We determine when these choices separate the shifted pair from the whole family. Write g=[p,q+∑dθdbL,d]\boldsymbol{g}=[p,q+\sum_d\theta_d b_{L,d}], where [p,q]∈L[p,q]\in L. Here q≠0q\ne0: the second-entry polynomials of the listed generators of LL are linearly independent, so q=0q=0 would force all θd=0\theta_d=0 and g=0\boldsymbol{g}=0, placing the shifted pair in KK.

The pair’s image is (α,v[q])(\alpha,v[q]), off the vertical images of all the L^\widehat{L}. The images of KK and HH are the horizontal axis and Q(1,v[1])\mathbb{Q}(1,v[1]), respectively. Thus u×vu\times v separates the pair exactly when v[q]≠0v[q]\ne0 and v[q]−αv[1]≠0v[q]-\alpha v[1]\ne0. If q≠αq\ne\alpha, the polynomials qq and q−αq-\alpha are both nonzero, so some rational linear form satisfies both inequalities. This separates every such shifted pair without a root. When q=αq=\alpha, however, the image is always α(1,v[1])\alpha(1,v[1]), in the image of HH; no choice of vv completes a separator with this fixed uu. Such a pair is

[p+αt, α+∑dθdbL,d].[p+\alpha t,\ \alpha+\sum_d\theta_d b_{L,d}].

Removing the tt-shift gives g∈L^\boldsymbol{g}\in\widehat{L}. By the construction of L^\widehat{L}, this means [p,α]∈L[p,\alpha]\in L, and the θd\theta_d are the coefficients of [p,α][p,\alpha] in the listed generators of LL. Determining [p,α][p,\alpha] therefore determines the added terms too, and hence the whole shifted pair.

In Δ\Delta, the condition [p,α]∈Δ[p,\alpha]\in\Delta forces p=αp=\alpha. Only the generator [1,1][1,1] occurs, so g=α[1,1+bΔ,0]\boldsymbol{g}=\alpha[1,1+b_{\Delta,0}]. In MM, the second entry is divisible by xx, so it cannot equal the nonzero constant α\alpha. In EE, write [p,α]=[a+κf,2a+κf][p,\alpha]=[a+\kappa f,2a+\kappa f], with a,κ∈Qa,\kappa\in\mathbb{Q}. Since f=x2−1f=x^2-1, a constant second entry forces κ=0\kappa=0 and a=α/2a=\alpha/2. Only the generator [1,2][1,2] occurs, so g=α[12,1+12bE,0]\boldsymbol{g}=\alpha[\frac{1}{2},1+\frac{1}{2}b_{E,0}]. Restoring the shift α[t,0]\alpha[t,0] therefore gives the following two shifted lines:

Q[1+t,1+bΔ,0],Q[12+t,1+12bE,0].\mathbb{Q}[1+t,1+b_{\Delta,0}],\qquad\mathbb{Q}[\frac{1}{2}+t,1+\frac{1}{2}b_{E,0}].

The preceding constructions separate every outside pair off these two lines, using a rational root only to separate the nonzero multiples of ee. 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 u[t]=τ>0u[t]=\tau>0. The two shifted representatives have images (1+τ,1)(1+\tau,1) and (12+τ,1)(\frac{1}{2}+\tau,1). Their nonzero second coordinates keep them off the horizontal image of KK. Their first-coordinate offsets 11 and 12\frac{1}{2} keep them off Q(τ,1)\mathbb{Q}(\tau,1), the image of HH. Each finite-slope L^\widehat{L} image excludes at most one value of τ\tau for each representative. Choose one positive rational τ\tau outside these finitely many exclusions. The resulting separator separates every nonzero multiple of both representatives and preserves the separation of the nonzero multiples of ee 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 ee and yields a root. Section 4 gives the construction for arbitrary quadratic systems.

Second reduction: from finite separation to stratifiability

For a family D1,…,DkD_1,\ldots,D_k, represent integer pairs outside its union by differences of nonnegative coordinates. The output is

S={(x+,x−,y+,y−)∈N4r:(x+−x−,y+−y−)∉⋃iDi}.S=\left\{(\mathbf{x}^{+},\mathbf{x}^{-},\mathbf{y}^{+},\mathbf{y}^{-})\in\mathbb{N}^{4r}:(\mathbf{x}^{+}-\mathbf{x}^{-},\mathbf{y}^{+}-\mathbf{y}^{-})\notin\bigcup_i D_i\right\}.

Membership is given by linear equations and their negations, so Lemma 5.1 computes a semilinear presentation of SS. The order of the four coordinate blocks will be used when checking stratifiability.

For each separator u×vu\times v, collect the elements of SS whose represented pairs it separates. Membership in this subset depends on two weighted sums:

u(x+−x−),v(y+−y−).u(\mathbf{x}^{+}-\mathbf{x}^{-}),\qquad v(\mathbf{y}^{+}-\mathbf{y}^{-}).

After clearing the coefficient denominators of u,vu,v, 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 SS.

Conversely, suppose SS is stratifiable. We extract a finite separating family for D1,…,DkD_1,\ldots,D_k 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 uu on the first entry and one fixed form vv on the second. The forms can be chosen nonzero, and ker⁡u×ker⁡v\ker u\times\ker v 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 DiD_i, the pair differs from a point of DiD_i by a rational combination of those period images. Choose one such expression for each candidate component and each DiD_i 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 DiD_i 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 N={0,1,2,…}\mathbb{N}=\{0,1,2,\ldots\}. Bold letters denote vectors and tuples; their coordinates are written in ordinary type. A linear set in Nd\mathbb{N}^d is a set

a+P∗={a+∑i=1ℓniti:ni∈N},a∈Nd,P={t1,…,tℓ}⊆Nd.a+P^{*}=\left\{a+\sum_{i=1}^{\ell}n_i t_i:n_i\in\mathbb{N}\right\},\qquad a\in\mathbb{N}^{d},\quad P=\{t_1,\ldots,t_{\ell}\}\subseteq\mathbb{N}^{d}.

The vector aa is its base, and the elements of PP 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 PP is stratified if

  1. every t∈Pt \in P has at most two nonzero coordinates; and

  2. there are no t1,t2∈Pt_1,t_2 \in P and i<j<k<li < j < k < l with t1,it1,kt2,jt2,l≠0t_{1,i}t_{1,k}t_{2,j}t_{2,l} \ne0.

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 N\mathbb{N}, with addition and order but without multiplication of variables. A subset of Nd\mathbb{N}^d 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 a1,…,ada_1,\ldots,a_d and S⊆NdS \subseteq\mathbb{N}^d, the letter-bounded language L(S)={a1n1⋯adnd:n∈S}L(S) = \{a_1^{n_1}\cdots a_d^{n_d}: n \in S\} is context-free if and only if SS is stratifiable.

All vector spaces are over Q\mathbb{Q}. We write span⁡\operatorname{span} for linear span, U≤VU \le V for a subspace, and dim⁡V\dim V for dimension. A linear form u:Qr→Qu:\mathbb{Q}^r \to\mathbb{Q} is a weighted sum u(z)=∑iciziu(z) = \sum_i c_i z_i with ci∈Qc_i \in\mathbb{Q}. For a linear map TT, T(E)T(E) and T−1(E)T^{-1}(E) denote image and inverse image.

Write Q[z]≤d\mathbb{Q}[z]_{\le d} for polynomials of total degree at most dd, whose monomials of degree at most dd are a basis. We use [p][p] for the coefficient vector in a specified ordered monomial basis, [p,q]=([p],[q])[p,q] = ([p],[q]), and u[p]=u([p])u[p] = u([p]).

The source problem for our construction is the following.

Solvability of quadratic systems over Q\mathbb{Q}

Input: A finite list f1,…,fm∈Q[x1,…,xn]f_1,\ldots,f_m \in\mathbb{Q}[x_1,\ldots,x_n] of polynomials of total degree at most two.

Question: Is there a tuple c∈Qnc \in\mathbb{Q}^n such that fi(c)=0f_i(c) = 0 for every ii?

Rational coefficients are represented by integer numerators and nonzero integer denominators.

From quadratic systems to finite separation

Recall that a separator is the map u×v:(x,y)↦(u(x),v(y))u \times v : (x,y) \mapsto(u(x),v(y)) defined by nonzero rational forms u,v:Qr→Qu,v : \mathbb{Q}^r \to\mathbb{Q}. It separates ww from a family of subspaces when (u×v)(w)(u \times v)(w) lies outside all their images under u×vu \times v.

Finite separation by Cartesian products of rational linear forms

Input: An integer r≥1r \ge1 and finitely many rational subspaces D1,…,Dk≤Qr×QrD_1,\ldots,D_k \le\mathbb{Q}^r \times\mathbb{Q}^r, each specified by finitely many rational spanning vectors.

Question: Is there a finite list of separators u1×v1,…,uh×vhu_1 \times v_1,\ldots,u_h \times v_h such that, for every rational pair ww outside the subspaces, some jj satisfies

(uj×vj)(w)∉⋃i=1k(uj×vj)(Di)?(u_j \times v_j)(w) \notin\bigcup_{i=1}^{k}(u_j \times v_j)(D_i)?

Theorem 4.1 (First reduction). There is a computable many-one reduction from rational solvability of quadratic systems over Q\mathbb{Q} to finite separation by Cartesian products of rational linear forms.

Proof. Write the input equations as fi=0f_i = 0. First test by rational linear algebra whether 1∈span⁡Q{f1,…,fm}1 \in\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}. If so, the system has no rational solution; replace it by x2−2=0x^2 - 2 = 0, which also has no rational solution and whose equation span does not contain 11. We may therefore assume 1∉span⁡Q{f1,…,fm}1 \notin\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}.

The construction in § 4.1 and § 4.2 computes from the input equations a finite family D\mathcal{D} 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 D\mathcal{D} 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 tt. 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 D1,…,Dk≤Qr×QrD_1,\ldots,D_k \leq\mathbb{Q}^r \times\mathbb{Q}^r. Every collection of separators has a finite subcollection separating exactly the same pairs from D1,…,DkD_1,\ldots,D_k.

Making separation at one pair equivalent to a rational root

Let the input equations be fi(x)=0f_i(\mathbf{x}) = 0, 1≤i≤m1 \leq i \leq m, where x=(x1,…,xn)\mathbf{x} = (x_1,\ldots,x_n). Throughout this construction assume 1∉span⁡Q{f1,…,fm}1 \notin\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}, as permitted by the preliminary step in the proof of Theorem 4.1. Fix an ordering of the monomials 11, xjx_j, and xjxkx_jx_k with j≤kj \leq k in Q[x]≤2\mathbb{Q}[\mathbf{x}]_{\leq2}, beginning with 11. 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 fif_i. Define

Δ={[p,p]:p∈Q[x]≤2},(4)\Delta= \{[p,p] : p \in\mathbb{Q}[\mathbf{x}]_{\leq2}\}, \tag*{(4)}
Mj={[p,xjp]:p∈Q[x]≤1}(1≤j≤n),(5)M_j = \{[p,x_jp] : p \in\mathbb{Q}[\mathbf{x}]_{\leq1}\} \qquad(1 \leq j \leq n), \tag*{(5)}
E=span⁡({[1,2]}∪{[fi,fi]:1≤i≤m}).(6)E = \operatorname{span}\bigl(\{[1,2]\} \cup\{[f_i,f_i] : 1 \leq i \leq m\}\bigr). \tag*{(6)}

Let L={Δ,M1,…,Mn,E}\mathcal{L} = \{\Delta, M_1,\ldots,M_n,E\}. Set e=[0,1]\mathbf{e} = [0,1]. A separator of this designated pair will determine a rational solution.

Lemma 4.3. The pair e\mathbf{e} can be separated from L\mathcal{L} 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 f=x2−1f = x^2 - 1, evaluation at 11 separates e\mathbf{e} from Δ\Delta, M1M_1, EE, but the outside pair [x,1][x,1] cannot be separated.

Enlarging the space while preserving the root requirement at e\mathbf{e}

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 vv 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 ee forces vv 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 ee still forces a rational root.

Fix a basis [pL,d,qL,d][p_{L,d},q_{L,d}], 0≤d<dim⁡L0 \le d < \dim L, for each L∈LL \in\mathcal{L}. For Δ\Delta, take [μ,μ][\mu,\mu] over the monomials, with [1,1][1,1] first; for MjM_j, take [μ,xjμ][\mu,x_j\mu] over μ∈{1,x1,…,xn}\mu\in\{1,x_1,\ldots,x_n\}. For EE, compute a basis [f~1],…,[f~s][\tilde{f}_1],\ldots,[\tilde{f}_s] of span⁡{[f1],…,[fm]}\operatorname{span}\{[f_1],\ldots,[f_m]\} and take [1,2],[f~1,f~1],…,[f~s,f~s][1,2],[\tilde{f}_1,\tilde{f}_1],\ldots,[\tilde{f}_s,\tilde{f}_s], in this order. A sum over L,dL,d ranges over all these basis vectors; in particular, d=0d=0 indexes [1,1][1,1] for Δ\Delta and [1,2][1,2] for EE.

The generators specified for EE are independent: subtracting the entries of a zero linear combination forces the coefficient of [1,2][1,2] to vanish, and independence of the [f~i][\tilde{f}_i] forces the other coefficients to vanish.

Introduce a polynomial variable tt and one variable bL,db_{L,d} for every basis index (L,d)(L,d), and work in the vector space

Q[x]≤2+Q[t,(bL,d)]≤1.\mathbb{Q}[x]_{\le2}+\mathbb{Q}[t,(b_{L,d})]_{\le1}.

The summands share 11. Extend the monomial basis of Q[x]≤2\mathbb{Q}[x]_{\le2} by tt and all bL,db_{L,d}, obtaining a basis of length rr for both entries. Each coefficient vector is uniquely

[p+αt+∑L,dηL,dbL,d],p∈Q[x]≤2, α,ηL,d∈Q.\left[ p+\alpha t+\sum_{L,d}\eta_{L,d}b_{L,d} \right],\qquad p\in\mathbb{Q}[x]_{\le2},\ \alpha,\eta_{L,d}\in\mathbb{Q}.

For p∈Q[x]≤2p\in\mathbb{Q}[x]_{\le2}, the vector [p][p] has zero coefficients at tt and every bL,db_{L,d}; the designated pair in the enlarged space is still e=[0,1]e=[0,1]. Replacing [pL,d,qL,d][p_{L,d},q_{L,d}] by [pL,d,qL,d+bL,d][p_{L,d},q_{L,d}+b_{L,d}] changes its second image value by v[bL,d]v[b_{L,d}]. To make each modified generator map to (u[pL,d],v[qL,d])(u[p_{L,d}],v[q_{L,d}]) whenever u×vu\times v separates ee, the line HH below forces u[t]≠0u[t]\ne0, allowing KK to force every v[bL,d]=0v[b_{L,d}]=0.

Accordingly, define the following subspaces of Qr×Qr\mathbb{Q}^r\times\mathbb{Q}^r:

L^=span⁡{[pL,d,qL,d+bL,d]:0≤d<dim⁡L}(L∈L),(7)\widehat{L}=\operatorname{span}\{[p_{L,d},q_{L,d}+b_{L,d}]:0\le d<\dim L\}\qquad(L\in\mathcal{L}), \tag*{(7)}
H=span⁡{[t,1]},(8)H=\operatorname{span}\{[t,1]\}, \tag*{(8)}
K=span⁡({[t,0]}∪{[bL,d,bL,d]:L,d}).(9)K=\operatorname{span}\bigl(\{[t,0]\}\cup\{[b_{L,d},b_{L,d}]:L,d\}\bigr). \tag*{(9)}

Let D={L^:L∈L}∪{H,K}\mathcal{D}=\{\widehat{L}:L\in\mathcal{L}\}\cup\{H,K\} be the resulting family of n+4n+4 subspaces.

Lemma 4.5 (Recovery at the designated pair ee). The pair e=[0,1]e=[0,1] lies outside every member of D\mathcal{D}. If a separator u×vu\times v separates ee from D\mathcal{D}, the restrictions of uu and vv to the coefficient vectors of Q[x]≤2\mathbb{Q}[x]_{\le2} are nonzero and separate ee from L\mathcal{L}.

Example 4.6 (Why equal forms do not suffice). For separators of ee, normalization makes the restrictions of u,vu,v to Q[x]≤2\mathbb{Q}[x]_{\le2} agree. Equality of the full forms cannot be required for all outside pairs: [1,1][1,1] lies outside every member of D\mathcal{D}, yet no u×uu\times u separates it. The problem must therefore allow uu and vv to differ, even when a rational root exists.

The constructed instance of finite separation is D\mathcal{D}. Its finite separating families yield rational solutions by Lemmas 4.5 and 4.3. For the converse, put Y=Q2r∖⋃D∈DDY=\mathbb{Q}^{2r}\setminus\bigcup_{D\in\mathcal{D}}D. We first separate all pairs in YY 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 u[t]=0u[t]=0 to permit nonzero v[bL,d]v[b_{L,d}] while keeping the image of KK proper. These extensions send g+α[t,0]g+\alpha[t,0] to the same point as g∈L^g\in\widehat{L}. We then choose uu to extract the coefficient of tt and set every v[bL,d]=0v[b_{L,d}]=0, which permits u[t]=1u[t]=1 while keeping the image of KK horizontal. The proof first treats the pairs [αt,β][\alpha t,\beta], then the shifted pairs g+α[t,0]g+\alpha[t,0].

Lemma 4.7. Every pair in YY outside the union of the three lines

Qe,Q[1+t,1+bΔ,0],Q[12+t,1+12bE,0](10)Q_e,\qquad Q[1+t,1+b_{\Delta,0}],\qquad Q\left[\frac{1}{2}+t,1+\frac{1}{2}b_{E,0}\right] \tag*{(10)}

can be separated from DD.

Proof. The coefficient extraction and slope extensions verified in Appendix A.6 separate all pairs in YY except possibly

[αt,β],g+α[t,0],g=[p,q+∑dθdbL,d]∈L^,(11)[\alpha t,\beta],\qquad g+\alpha[t,0],\qquad g=\left[p,q+\sum_d\theta_d b_{L,d}\right]\in\widehat{L}, \tag*{(11)}

where β≠0\beta\ne0, β≠α\beta\ne\alpha in the first case, and α≠0\alpha\ne0, q≠0q\ne0 in the second. For [αt,β][\alpha t,\beta], the case α=0\alpha=0 gives a nonzero multiple of ee, on the first line in (10). If α≠0\alpha\ne0, let uu and vv extract the coefficients of tt and 11, respectively. The images of all the L^\widehat{L} lie on the vertical axis, the image of KK is horizontal, and the image of HH is diagonal. The pair’s image (α,β)(\alpha,\beta) avoids all of them because α≠0\alpha\ne0, β≠0\beta\ne0, and β≠α\beta\ne\alpha. Both forms are nonzero.

Now consider a shifted pair g+α[t,0]g+\alpha[t,0] in (11). Fix uu to extract the coefficient of tt, and let vv vary on the coefficient space of Q[x]≤2\mathbb{Q}[x]_{\le2}, extending it by zero on every added basis vector. For every J∈LJ\in\mathcal{L}, the JbJ_b generators map to (0,v[qJ,d])(0,v[q_{J,d}]); the image of KK is horizontal, and HH maps to Q(1,v[1])\mathbb{Q}(1,v[1]). The shifted pair maps to (α,v[q])(\alpha,v[q]) and already avoids every J^\widehat{J} image since α≠0\alpha\ne0. Thus it is separated exactly when

v[q]≠0,v[q]−αv[1]≠0.(12)v[q]\ne0,\qquad v[q]-\alpha v[1]\ne0. \tag*{(12)}

By linearity, the second inequality is v[q−α]≠0v[q-\alpha]\ne0. If q≠αq\ne\alpha, both qq and q−αq-\alpha are nonzero. The product v[q]v[q−α]v[q]v[q-\alpha], viewed as a polynomial in the coefficients of vv, is therefore nonzero at some rational tuple, giving a separator. Both forms are nonzero since u[t]=1u[t]=1 and v[q]≠0v[q]\ne0.

If q=αq=\alpha, the shifted pair has image α(1,v[1])\alpha(1,v[1]), in the image of HH for every vv. To describe these pairs, note that [p,α]∈L[p,\alpha]\in L with α≠0\alpha\ne0. The coefficients θd\theta_d in gg are precisely the coefficients of [p,α][p,\alpha] in the fixed basis of LL, so determining [p,α][p,\alpha] also determines every added term.

For L=ΔL=\Delta, this forces p=αp=\alpha. Only the basis generator [1,1][1,1] occurs, so the shifted pair is α[1+t,1+bΔ,0]\alpha[1+t,1+b_{\Delta,0}]. No MjM_j contributes such a pair, since its second entry is divisible by xjx_j and cannot be a nonzero constant. For L=EL=E, write [p,α]=[a+h,2a+h][p,\alpha]=[a+h,2a+h] with h∈span⁡Q{f1,…,fm}h\in\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}. The equation 2a+h=α2a+h=\alpha makes hh constant; the standing assumption on the equation span gives h=0h=0 and a=α/2a=\alpha/2. Only the basis generator [1,2][1,2] occurs, so the shifted pair is α[12+t,1+12bE,0]\alpha[\frac{1}{2}+t,1+\frac{1}{2}b_{E,0}]. 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 cc, let both forms evaluate polynomials in Q[x]≤2\mathbb{Q}[x]_{\le2} at cc, set every u[bL,d]=v[bL,d]=v[t]=0u[b_{L,d}]=v[b_{L,d}]=v[t]=0, and put u[t]=τ>0u[t]=\tau>0. Every such extension separates the nonzero multiples of ee, so we choose τ\tau to separate the nonzero pairs on the two shifted lines as well. Their representatives have images (1+τ,1)(1+\tau,1) and (12+τ,1)(\frac{1}{2}+\tau,1), which avoid the horizontal image of KK and the image Q(τ,1)\mathbb{Q}(\tau,1) of HH. Each L^\widehat{L} image excludes at most one value of τ\tau for each representative, so one positive rational value separates every nonzero multiple of either representative while preserving separation of the nonzero multiples of ee.

Lemma 4.8. If the quadratic system has a rational solution, every pair in YY can be separated from DD.

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 D1,…,Dk≤Qr×QrD_1,\ldots,D_k\leq\mathbb{Q}^r\times\mathbb{Q}^r be an instance of finite separation, with u×vu\times v 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 xx positions before all yy 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

(x1+,…,xr+, x1−,…,xr−, y1+,…,yr+, y1−,…,yr−).(x_1^+,\ldots,x_r^+,\,x_1^-,\ldots,x_r^-,\,y_1^+,\ldots,y_r^+,\,y_1^-,\ldots,y_r^-).

Define the signed-coordinate map A:Q4r→Q2rA:\mathbb{Q}^{4r}\to\mathbb{Q}^{2r} and the sets Y,SY,S by

Y=Q2r∖⋃i=1kDi,Y=\mathbb{Q}^{2r}\setminus\bigcup_{i=1}^{k}D_i,
A(x+,x−,y+,y−)=(x+−x−,y+−y−),S=A−1(Y)∩N4r.(13)A(x^+,x^-,y^+,y^-)=(x^+-x^-,y^+-y^-),\qquad S=A^{-1}(Y)\cap\mathbb{N}^{4r}. \tag*{(13)}

The set YY consists of the rational pairs outside the deleted union. The set SS contains every nonnegative integer representation of each integer pair in YY. These representations are not unique: for example, (xi+,xi−)=(1,0)(x_i^+,x_i^-)=(1,0) and (2,1)(2,1) both represent xi=1x_i=1. 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 SS in (13) is semilinear. From rational spanning vectors for each DiD_i, one can compute a finite semilinear presentation of SS.

To obtain a stratification from a finite separating family, we first consider the signed representations of pairs separated by one fixed separator u×vu\times v:

Su,v={a∈N4r:(u×v)(Aa)∉⋃i=1k(u×v)(Di)}.(14)S_{u,v}=\left\{a\in\mathbb{N}^{4r}:(u\times v)(Aa)\notin\bigcup_{i=1}^{k}(u\times v)(D_i)\right\}. \tag*{(14)}

Every Su,vS_{u,v} is contained in SS.

Lemma 5.2. The set Su,vS_{u,v} is stratifiable. Consequently, a finite family of separators whose sets Su,vS_{u,v} cover SS gives a stratification of SS.

Proof sketch. After clearing the coefficient denominators of uu, vv, membership in Su,vS_{u,v} 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 SS is stratifiable, there is a finite list of separators such that every rational pair in YY is separated from D1,…,DkD_1,\ldots,D_k 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 AA that span all those directions.

For each such component, let LL be the rational span of the images under AA 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 uu, vv with ker⁡u×ker⁡v⊆L\ker u \times\ker v \subseteq L. Fix one such separator for every component with the spanning property. A failure to separate a rational pair w∈Yw \in Y from DiD_i implies w∈Di+Lw \in D_i + L. Choose one expression as a point of DiD_i plus a rational combination of those period images for each candidate component and each DiD_i whenever possible. Clear all these coefficients and the coordinates of ww by one positive integer multiple before selecting a component representing that multiple. Subtracting the resulting integer combination would put a point of DiD_i in the component’s image under AA, contradicting its containment in YY.

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 D1,…,DkD_1,\ldots,D_k, it outputs a finite semilinear presentation of the set SS in (13).

Proof. Lemma 5.1 computes the required presentation from the subspace generators. If a finite separating family exists, the sets Su,vS_{u,v} indexed by its members cover SS: 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 SS 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 f∈Z[x1,…,xn]f \in\mathbb{Z}[x_1,\ldots,x_n], the standard reduction to quadratic systems [6 proof of Theorem 7.5, pp. 262–263] computes a finite system E\mathcal{E} of rational polynomial equations of degree at most two that has a rational solution if and only if ff has a rational zero.

Theorem 4.1 computes a family of rational subspaces admitting a finite separating family exactly when E\mathcal{E} has a rational solution. Theorem 5.4 then computes a finite semilinear presentation of a set SS that is stratifiable exactly when that separating family exists. Thus SS is stratifiable exactly when ff 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 SS, decides whether the letter-bounded language L(S)L(S) 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 H10(N)H_{10}(\mathbb{N}) 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 H10(N)H_{10}(\mathbb{N}). Can one prove an unconditional computable many-one reduction in the opposite direction, from H10(N)H_{10}(\mathbb{N}) to stratifiability? This would establish undecidability independently of [9]. Adapting the proof of Lemma 4.3 to H10(N)H_{10}(\mathbb{N}) would require a mechanism forcing the recovered coordinates to be nonnegative integers. A fixed system of polynomial equations with rational unknowns expressing membership in N\mathbb{N} would provide such a mechanism; finding one is equivalent to the longstanding open problem of existentially defining Z\mathbb{Z} in Q\mathbb{Q} [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 N2\mathbb{N}^{2} is stratifiable, since both restrictions on periods hold automatically. Dimension three is the first nontrivial case: {(n,n,n):n∈N}\{(n,n,n): n \in\mathbb{N}\} 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 N3\mathbb{N}^{3}?

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 fSf_S with every semilinear presentation of a set SS, so that fSf_S has a rational zero exactly when SS 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: L={Δ,M1,…,Mn,E}\mathcal{L} = \{\Delta, M_1, \ldots, M_n, E\}, D={L^:L∈L}∪{H,K}\mathcal{D} = \{\widehat{L} : L \in\mathcal{L}\} \cup\{H, K\} is its enlarged family, and YY consists of the pairs outside ⋃D∈DD\bigcup_{D \in\mathcal{D}} D.

Selecting finitely many separators

Proof of Lemma 4.2. For each separator T=u×vT = u \times v in the given collection, failure to separate from DiD_i means membership in the rational subspace

BT,i=T−1(T(Di)).B_{T,i} = T^{-1}(T(D_i)).

Choose rational linear forms ℓT,i,j\ell_{T,i,j} whose simultaneous vanishing defines BT,iB_{T,i}, and define the polynomial

hT(z)=∏i=1k(∑jℓT,i,j(z)2)(z∈Q2r).h_T(z) = \prod_{i=1}^{k} \left(\sum_j \ell_{T,i,j}(z)^2\right) \qquad(z \in\mathbb{Q}^{2r}).

A sum of rational squares is zero exactly when every summand is zero. Consequently, hT(z)≠0h_T(z) \ne0 exactly when TT separates zz from every DiD_i. If BT,iB_{T,i} is the whole space, use no equations for it: the empty sum is zero, as required. For k=0k = 0, the empty product is 1.

The polynomials hTh_T have degree at most 2k2k in the pair coordinates, so their span is finite-dimensional. Choose a basis of this span from the polynomials hTh_T themselves, and retain their separators. If all the retained polynomials vanish at a pair, every hTh_T 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 u×vu \times v separates ee. Its image is (0,v[1])(0, v[1]), so v[1]≠0v[1] \ne0 because every subspace image contains zero. The image of Δ\Delta is proper and contains (u[1],v[1])(u[1], v[1]); it is therefore a line avoiding (0,v[1])(0, v[1]). Hence u[1]≠0u[1] \ne0, and every (u[p],v[p])(u[p], v[p]) is proportional to (u[1],v[1])(u[1], v[1]). Dividing uu and vv by their respective values at 1 gives a common form λ\lambda with λ[1]=1\lambda[1] = 1. This invertible rescaling of the two scalar coordinates preserves separation.

The proper image of MjM_j contains (1,λ[xj])(1, \lambda[x_j]), so

λ[xjp]=λ[xj]λ[p](p∈Q[x]≤1).\lambda[x_jp] = \lambda[x_j]\lambda[p] \qquad(p \in\mathbb{Q}[x]_{\leq1}).

Put c=(λ[x1],…,λ[xn])c = (\lambda[x_1], \ldots, \lambda[x_n]). Taking p=xkp = x_k shows that λ\lambda agrees with evaluation at cc on every quadratic monomial, hence on every polynomial of degree at most two. The image of EE contains (1,2)(1, 2) and (fi(c),fi(c))(f_i(c), f_i(c)); their determinant is −fi(c)-f_i(c), so properness forces fi(c)=0f_i(c) = 0 for every ii.

Conversely, evaluation at a rational solution gives a nonzero form λ\lambda with λ[1]=1\lambda[1] = 1. For u=v=λu = v = \lambda, the images of Δ\Delta, MjM_j, EE lie in lines of slopes 11, cjc_j, 22, respectively, all avoiding the image (0,1)(0, 1) of ee.

Why [x,1][x,1] cannot be separated before enlargement

Verification of Example 4.4. For f=x2−1f=x^2-1, consider the three subspaces

Δ=span⁡{[1,1],[x,x],[x2,x2]},M=span⁡{[1,x],[x,x2]},E=span⁡{[1,2],[f,f]}.\Delta=\operatorname{span}\{[1,1],[x,x],[x^2,x^2]\},\qquad M=\operatorname{span}\{[1,x],[x,x^2]\},\qquad E=\operatorname{span}\{[1,2],[f,f]\}.

The separator λ×λ\lambda\times\lambda, where λ[p]=p(1)\lambda[p]=p(1), separates e=[0,1]e=[0,1] from this family, but the outside pair [x,1][x,1] cannot be separated.

Indeed, [x,1][x,1] is not in Δ\Delta, its second entry is not xx times its first, and the first entry of every pair in EE has zero xx coefficient. Thus it lies outside all three spaces.

Suppose nonzero forms u,vu,v separated [x,1][x,1]. The image of Δ\Delta cannot be the whole plane, so u,vu,v are proportional. Both are nonzero; rescaling one of them therefore gives a common form λ\lambda and preserves separation. Put

a=λ[1],b=λ[x],c=λ[x2].a=\lambda[1],\qquad b=\lambda[x],\qquad c=\lambda[x^2].

The image of MM is generated by (a,b)(a,b) and (b,c)(b,c), and the image of EE by (a,2a)(a,2a) and (c−a,c−a)(c-a,c-a). Neither image can be the whole plane. Their determinants consequently give

ac=b2,a(c−a)=0.ac=b^2,\qquad a(c-a)=0.

If a=0a=0, then b=0b=0, so the image (b,a)(b,a) of [x,1][x,1] is zero and belongs to every image. If a≠0a\ne0, then c=ac=a and b=±ab=\pm a. When b=ab=a, (b,a)(b,a) belongs to the diagonal image of Δ\Delta. When b=−ab=-a, it is the negative of (a,b)(a,b) and belongs to the image of MM. Every case contradicts separation.

Recovery in the enlarged space

Proof of Lemma 4.5. A pair in L^\widehat{L} with all added second coordinates zero has every generator coefficient zero, so it cannot equal ee. In HH, a nonzero constant term in the second entry comes with a nonzero coefficient of tt in the first; in KK, the constant term in the second entry is zero. Thus ee lies outside every member of DD.

Suppose u×vu\times v separates ee. Its image is (0,v[1])(0,v[1]), with v[1]≠0v[1]\ne0. If u[t]=0u[t]=0, the generator [t,1]∈H[t,1]\in H would have the same image, so u[t]≠0u[t]\ne0. The image of KK therefore contains the nonzero horizontal vector (u[t],0)(u[t],0). Any nonzero v[bL,d]v[b_{L,d}] would make this image the whole plane, preventing separation. Consequently every v[bL,d]=0v[b_{L,d}]=0, and

(u×v)[pL,d,qL,d+bL,d]=(u[pL,d],v[qL,d]).(u\times v)[p_{L,d},q_{L,d}+b_{L,d}]=(u[p_{L,d}],v[q_{L,d}]).

Thus (u×v)(L^)=(u×v)(L)(u\times v)(\widehat{L})=(u\times v)(L) for every L∈LL\in\mathcal{L}. The restriction of vv to Q[x]≤2\mathbb{Q}[x]_{\le2} is nonzero since v[1]≠0v[1]\ne0. If u[1]=0u[1]=0, the generator [1,1+bΔ,0][1,1+b_{\Delta,0}] would have the same image as ee; hence the restriction of uu is also nonzero. These restrictions separate ee from L\mathcal{L}.

Why equal forms do not suffice

Verification of Example 4.6. A pair in L^\widehat{L} with zero-valued added second coordinates must be zero, while the first entry of every pair in HH or KK has zero coefficient at 11. Thus [1,1][1,1] lies outside every member of DD. If u[bΔ,0]=0u[b_{\Delta,0}]=0, the generator [1,1+bΔ,0][1,1+b_{\Delta,0}] has the same image under u×uu\times u as [1,1][1,1]. If u[bΔ,0]≠0u[b_{\Delta,0}]\ne0, the image of KK contains the nonzero diagonal vector (u[bΔ,0],u[bΔ,0])(u[b_{\Delta,0}],u[b_{\Delta,0}]), and hence the image (u[1],u[1])(u[1],u[1]) of [1,1][1,1]. Neither case permits separation.

Separation by variable image slopes

We prove the preliminary classification (11) used in Lemma 4.7, including its restrictions on α,β,q\alpha,\beta,q.

Proof. Under the standing assumption 1∉span⁡Q{f1,…,fm}1 \notin\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}, each coordinate projection of every L∈LL \in\mathcal{L} is injective; this will let us recover generator coefficients from either entry of a pair. An element of EE can be written as [a+h,2a+h][a+h,2a+h], where a∈Qa \in\mathbb{Q} and h∈span⁡Q{f1,…,fm}h \in\operatorname{span}_{\mathbb{Q}}\{f_1,\ldots,f_m\}. If either entry is zero, then h=−ah=-a or h=−2ah=-2a is constant. The only constant in the equation span is zero, so h=0h=0 and a=0a=0. Each coordinate projection of EE is therefore injective. The same property is immediate for Δ\Delta and for the first projection of MjM_j; the second projection of MjM_j is injective because multiplication by xjx_j is injective. Consequently, for each LL, the coefficient vectors [pL,d][p_{L,d}] are linearly independent, as are the vectors [qL,d][q_{L,d}].

Pairs whose second entry has a nonzero coefficient of tt. First take uu to extract the coefficient of 11 and vv to extract the coefficient of tt. Every pair in every member of D\mathcal{D} has zero coefficient of tt in its second entry, so these forms separate every pair whose second entry has a nonzero coefficient of tt. Every pair whose second entry has zero coefficient of tt can be written as

w=[p+αt+∑L,dηL,dbL,d, q+∑L,dθL,dbL,d].(15)w=\left[p+\alpha t+\sum_{L,d}\eta_{L,d}b_{L,d},\ q+\sum_{L,d}\theta_{L,d}b_{L,d}\right]. \tag*{(15)}

Assigning slopes to the modified subspaces. To put the image of KK into the diagonal and the image of each L^\widehat{L} into a line of slope sLs_L, choose the values of u,vu,v on the monomial basis of Q[x]≤2\mathbb{Q}[x]_{\leq2} and the slopes sLs_L as independent parameters, subject to v[1]=1v[1]=1, and extend u,vu,v by

u[t]=v[t]=0,u[bL,d]=v[bL,d]=sLu[pL,d]−v[qL,d].(16)u[t]=v[t]=0,\qquad u[b_{L,d}]=v[b_{L,d}]=s_Lu[p_{L,d}]-v[q_{L,d}]. \tag*{(16)}

Indeed, the modified generator has image (u[pL,d],sLu[pL,d])(u[p_{L,d}],s_Lu[p_{L,d}]). In KK, the generator [t,0][t,0] maps to zero and every [bL,d,bL,d][b_{L,d},b_{L,d}] maps to a diagonal vector. The image of HH is vertical. The value v[t]v[t] does not affect any of these images or the image of ww, since every second entry under consideration has zero coefficient of tt.

To compute the image of ww in (15), put

pLη=∑dηL,dpL,d,pLθ=∑dθL,dpL,d,qη=∑L,dηL,dqL,d,qθ=∑L,dθL,dqL,d.p_L^\eta=\sum_d\eta_{L,d}p_{L,d},\qquad p_L^\theta=\sum_d\theta_{L,d}p_{L,d},\qquad q^\eta=\sum_{L,d}\eta_{L,d}q_{L,d},\qquad q^\theta=\sum_{L,d}\theta_{L,d}q_{L,d}.

For fixed ww, denote its image by (ρ,σ)(\rho,\sigma). These coordinates are polynomials in the values of u,vu,v on the monomial basis of Q[x]≤2\mathbb{Q}[x]_{\leq2} and in the slopes sLs_L:

ρ=u[p]+∑LsLu[pLη]−v[qη],σ=v[q−qθ]+∑LsLu[pLθ].\rho=u[p]+\sum_Ls_Lu[p_L^\eta]-v[q^\eta],\qquad\sigma=v[q-q^\theta]+\sum_Ls_Lu[p_L^\theta].

To keep (ρ,σ)(\rho,\sigma) off the vertical axis, the diagonal, and the lines of slopes sJs_J, it suffices to require ρ≠0\rho\ne0, σ−ρ≠0\sigma-\rho\ne0, and σ−sJρ≠0\sigma-s_J\rho\ne0 for every J∈LJ\in\mathcal{L}. We identify the pairs for which one of these polynomials is zero for every parameter choice. Write J^+Q[t,0]\widehat{J}+\mathbb{Q}[t,0] for the pairs g+α[t,0]g+\alpha[t,0] with g∈J^g\in\widehat{J} and α∈Q\alpha\in\mathbb{Q}. In the following identities, ≡0\equiv0 means that a polynomial is identically zero on the parameter space v[1]=1v[1]=1:

ρ=0⟺p=0 and ηL,d=0 for every L,d,(17)\rho=0\Longleftrightarrow p=0\ \text{and}\ \eta_{L,d}=0\ \text{for every }L,d, \tag*{(17)}
σ−ρ=0⟺w∈K,(18)\sigma-\rho=0\Longleftrightarrow w\in K, \tag*{(18)}
σ−sJρ=0⟺w∈J^+Q[t,0](J∈L).(19)\sigma-s_J\rho=0\Longleftrightarrow w\in\widehat{J}+\mathbb{Q}[t,0]\qquad(J\in\mathcal{L}). \tag*{(19)}

For (17), the coefficients of the independent sLs_L give pLη=0p_L^\eta=0, hence every ηL,d=0\eta_{L,d}=0 by independence of the pL,dp_{L,d}; then ρ=u[p]\rho=u[p] forces p=0p=0. For (18), those coefficients give θL,d=ηL,d\theta_{L,d}=\eta_{L,d} for every L,dL,d, leaving v[q]−u[p]v[q]-u[p]. Varying the values of uu on that monomial basis independently gives p=0p=0, and then q=0q=0. Indeed, if v[q]=0v[q]=0 for every form with v[1]=1v[1]=1, varying its values on the nonconstant monomials shows that every nonconstant coefficient of qq is zero; its constant coefficient must then also be zero. The conditions p=q=0p=q=0 and θL,d=ηL,d\theta_{L,d}=\eta_{L,d} for every L,dL,d say exactly that w∈Kw\in K.

For (19), the coefficients of sJ2s_J^2 and sJsLs_Js_L for L≠JL\ne J first force all pLη=0p_L^\eta=0, so every ηL,d=0\eta_{L,d}=0. The remaining sLs_L coefficients give pLθ=0p_L^\theta=0 for L≠JL\ne J and pJθ=pp_J^\theta=p. Thus all θL,d\theta_{L,d} with L≠JL\ne J are zero. The term independent of the slopes is v[q−qθ]v[q-q^\theta]; its vanishing for every form with v[1]=1v[1]=1 gives q=qθq=q^\theta. These conditions say precisely that w∈J^+Q[t,0]w\in\widehat{J}+\mathbb{Q}[t,0]. The reverse implications in all three identities follow by substitution.

Consequently, if w∈Yw\in Y has first entry not a scalar multiple of [t][t] and lies in none of the spaces L^+Q[t,0]\widehat{L}+\mathbb{Q}[t,0], then

ρ(σ−ρ)∏L∈L(σ−sLρ)(20)\rho(\sigma-\rho)\prod_{L\in\mathcal{L}}(\sigma-s_L\rho) \tag*{(20)}

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 ww lies outside every subspace image. The factor ρ\rho and the normalization v[1]=1v[1]=1 ensure that both forms are nonzero.

Making the image of HH zero. With v[1]=1v[1]=1 and u[t]=0u[t]=0, every pair whose first entry is [αt][\alpha t] maps into the vertical image of HH, so these extensions cannot separate it. To separate such a pair, we instead make the image of HH zero. Choose new values of u,vu,v on the monomial basis of Q[x]≤2\mathbb{Q}[x]_{\le2}, subject to u[1]=1u[1]=1 and v[1]=0v[1]=0, and new slopes sLs_L; then recompute their values on the added basis vectors by (16). Consider a pair whose first entry is [αt][\alpha t] and whose second entry is not a scalar multiple of [1][1]. For these new extensions, the image (ρ,σ)(\rho,\sigma) has ρ=0\rho=0, and HH maps to zero. The polynomial σ\sigma is nonzero: if it vanished identically, its sLs_L coefficients would give u[pLθ]=0u[p_L^\theta]=0 for all forms with u[1]=1u[1]=1, hence pLθ=0p_L^\theta=0 and every θL,d=0\theta_{L,d}=0. The remaining identity v[q]≡0v[q]\equiv0 for forms satisfying v[1]=0v[1]=0 would make qq constant, a contradiction. Choose a rational solution of σ≠0\sigma\ne0. The pair’s image (0,σ)(0,\sigma) is nonzero and avoids the finite-slope lines containing the images of all L^,K\widehat{L},K. Both forms are nonzero, since u[1]=1u[1]=1 and σ≠0\sigma\ne0.

The constructions above prove separation for every pair in YY except possibly those described in (11). For [αt,β]∈Y[\alpha t,\beta]\in Y, membership outside KK gives β≠0\beta\ne0 and membership outside HH gives β≠α\beta\ne\alpha. If w=g+α[t,0]∈Yw=g+\alpha[t,0]\in Y with g∈L^g\in\widehat{L}, then α≠0\alpha\ne0 because w∉L^w\notin\widehat{L}. Write the second entry of gg as [q+∑dθdbL,d][q+\sum_d\theta_d b_{L,d}], with q∈Q[x]≤2q\in\mathbb{Q}[x]_{\le2}. If q=∑dθdqL,d=0q=\sum_d\theta_d q_{L,d}=0, injectivity of the second projection of LL would force every θd=0\theta_d=0. Then g=0g=0 and w∈Kw\in K, a contradiction.

Completing separation using a rational root

Proof of Lemma 4.8. Fix a rational root cc. For a positive rational parameter τ\tau, define

u[h]=v[h]=h(c)(h∈Q[x]≤2),u[t]=τ,v[t]=0,u[bJ,d]=v[bJ,d]=0(every J,d).(21)\begin{aligned} u[h]&=v[h]=h(c) && (h\in\mathbb{Q}[x]_{\le2}),\\ u[t]&=\tau,\quad v[t]=0,\quad u[b_{J,d}]=v[b_{J,d}]=0 && (\text{every }J,d). \tag*{(21)} \end{aligned}

Both forms are nonzero at [1][1]. The J^\widehat{J} images lie in lines of slopes 1,c1,…,cn,21,c_1,\ldots,c_n,2, while the image of KK is horizontal and HH maps to Q(τ,1)\mathbb{Q}(\tau,1). Thus every nonzero multiple of ee has nonzero vertical image and is separated. For the other two lines in (10), the representatives have images

(1+τ,1),(12+τ,1).(1+\tau,1),\qquad\left(\frac{1}{2}+\tau,1\right).

Both avoid the image of KK, since their second coordinate is nonzero. Membership in the image Q(τ,1)\mathbb{Q}(\tau,1) of HH would force 1=01=0 or 12=0\frac{1}{2}=0, respectively. For a line of slope ss containing a J^\hat{J} image, membership requires 1=s(1+τ)1=s(1+\tau) or 1=s(12+τ)1=s(\frac{1}{2}+\tau). If s=0s=0, neither is possible; otherwise these equations exclude the two values

τ=1s−1,τ=1s−12.\tau=\frac{1}{s}-1,\qquad\tau=\frac{1}{s}-\frac{1}{2}.

Choose one positive rational τ\tau outside the finite set excluded by all the slopes 1,c1,…,cn,21,c_1,\ldots,c_n,2. This separator separates both representatives and hence every nonzero rational multiple of either. It also preserves separation of every nonzero multiple of ee, proved for every positive τ\tau. Lemma 4.7 supplies separators for the pairs in YY off these three lines, proving the claim. ◀

Proofs for the second reduction

The subspaces DiD_i, map AA, sets YY, SS, and separators u×vu\times v are as in § 5. We first prove effective semilinearity of SS, then extract finitely many separators from a stratification. Finally, we prove the weighted-sums lemma and apply it to the regions Su,vS_{u,v}.

Computing a semilinear presentation

Proof of Lemma 5.1. Gaussian elimination and denominator clearing compute integer matrices MiM_i with Di={z∈Q2r:Miz=0}D_i=\{z\in\mathbb{Q}^{2r}:M_i z=0\}. Since AA has integer entries, so does Ci=MiAC_i=M_iA. If CiC_i has sis_i rows, then for n∈N4rn\in\mathbb{N}^{4r},

n∈S⟺⋀i=1k⋁j=1si(Cin)j≠0.n\in S\quad\Longleftrightarrow\quad\bigwedge_{i=1}^{k}\bigvee_{j=1}^{s_i}(C_i n)_j\ne0.

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 d=2rd=2r and KA=ker⁡A={z∈Q2d:Az=0}K_A=\ker A=\{z\in\mathbb{Q}^{2d}:Az=0\}. For nonzero rational forms u,vu,v, define

V(u,v)=ker⁡u×ker⁡v,Yu,v=Qd∖⋃i=1k(Di+V(u,v)).(22)V(u,v)=\ker u\times\ker v,\qquad Y_{u,v}=\mathbb{Q}^{d}\setminus\bigcup_{i=1}^{k}\left(D_i+V(u,v)\right). \tag*{(22)}

Since ker⁡(u×v)=V(u,v)\ker(u\times v)=V(u,v), we have

Di+V(u,v)=(u×v)−1((u×v)(Di)).D_i+V(u,v)=(u\times v)^{-1}\left((u\times v)(D_i)\right).

Thus Yu,vY_{u,v} is precisely the set of pairs separated by u×vu\times v, and Yu,v⊆YY_{u,v}\subseteq Y. In the notation of (14),

Su,v=A−1(Yu,v)∩N4r.S_{u,v}=A^{-1}(Y_{u,v})\cap\mathbb{N}^{4r}.

To extract separators from a stratification of SS, we first need a component whose nonnegative period combinations with image zero span KAK_A. For each outside integer pair, the following argument finds such a component containing one of its signed representations.

For z∈Qd\mathbf{z} \in\mathbb{Q}^d, the fiber of A\mathbf{A} over z\mathbf{z} is A−1(z)={n∈Q2d:An=z}\mathbf{A}^{-1}(\mathbf{z}) = \{\mathbf{n} \in\mathbb{Q}^{2d}: \mathbf{A}\mathbf{n} = \mathbf{z}\}. To describe the part of a linear set in this fiber, we use the coordinatewise order on Nℓ\mathbb{N}^{\ell}: b≤c\mathbf{b} \le\mathbf{c} means bi≤cib_i \le c_i for every ii.

Lemma B.1 (Dickson’s lemma). Every subset of Nℓ\mathbb{N}^{\ell} has finitely many minimal elements for the coordinatewise order, and each of its elements is above a minimal element.

Proof. Every infinite sequence in N\mathbb{N} 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 ℓ\ell coordinates. Every infinite sequence in Nℓ\mathbb{N}^{\ell} then has two terms in coordinatewise nondecreasing order, so an infinite sequence of distinct minimal elements is impossible. For any n\mathbf{n} in the subset, the set of elements below n\mathbf{n} is finite and nonempty; a minimal member is also minimal in the original subset. The case ℓ=0\ell= 0 is immediate. ◀

For a finite period set P={t1,…,tℓ}⊆N2dP = \{\mathbf{t}_1, \ldots, \mathbf{t}_{\ell}\} \subseteq\mathbb{N}^{2d}, let P\mathbf{P} be the matrix with these columns. Define

ZP={n∈Nℓ:APn=0},KP=span⁡{Pn:n∈ZP}⊆KA.Z_P = \{\mathbf{n} \in\mathbb{N}^{\ell}: \mathbf{A}\mathbf{P}\mathbf{n} = 0\}, \qquad K_P = \operatorname{span}\{\mathbf{P}\mathbf{n}: \mathbf{n} \in Z_P\} \subseteq K_A.

Thus KPK_P 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 S=⋃j=1t(aj+Pj∗)S = \bigcup_{j=1}^{t}(\mathbf{a}_j + P_j^*), then for every z∈Y∩Zd\mathbf{z} \in Y \cap\mathbb{Z}^d some component meeting A−1(z)\mathbf{A}^{-1}(\mathbf{z}) satisfies KPj=KAK_{P_j} = K_A.

Proof. First fix one component a+P∗\mathbf{a} + P^* and put

Eb={n∈Nℓ:APn=b},b=z−Aa.E_{\mathbf{b}} = \{\mathbf{n} \in\mathbb{N}^{\ell}: \mathbf{A}\mathbf{P}\mathbf{n} = \mathbf{b}\}, \qquad\mathbf{b} = \mathbf{z} - \mathbf{A}\mathbf{a}.

By Lemma B.1, EbE_{\mathbf{b}} has finitely many minimal elements c\mathbf{c}. Every n∈Eb\mathbf{n} \in E_{\mathbf{b}} is above one of them, and n−c∈ZP\mathbf{n} - \mathbf{c} \in Z_P; conversely, c+ZP⊆Eb\mathbf{c} + Z_P \subseteq E_{\mathbf{b}}. Hence

Eb=⋃c minimal in Eb(c+ZP).E_{\mathbf{b}} = \bigcup_{\mathbf{c}\ \mathrm{minimal\ in}\ E_{\mathbf{b}}}(\mathbf{c} + Z_P).

It follows that (a+P∗)∩A−1(z)(\mathbf{a} + P^*) \cap\mathbf{A}^{-1}(\mathbf{z}) lies in finitely many translates a+Pc+KP\mathbf{a} + \mathbf{P}\mathbf{c} + K_P.

Choose nz∈N2d\mathbf{n}_{\mathbf{z}} \in\mathbb{N}^{2d} with Anz=z\mathbf{A}\mathbf{n}_{\mathbf{z}} = \mathbf{z}. For each of the dd coordinates of Qd\mathbb{Q}^d, let ki\mathbf{k}_i have a 1 in its positive and negative source positions and zeros elsewhere. The vectors k1,…,kd\mathbf{k}_1,\ldots,\mathbf{k}_d are a basis of KAK_A, and

nz+∑i=1dNki⊆S∩A−1(z).\mathbf{n}_{\mathbf{z}} + \sum_{i=1}^{d}\mathbb{N}\mathbf{k}_i \subseteq S \cap\mathbf{A}^{-1}(\mathbf{z}).

If every component meeting this fiber had KPj≠KAK_{P_j} \ne K_A, the preceding description would cover this grid by finitely many translates of proper subspaces of KAK_A. In the coordinates given by k1,…,kd\mathbf{k}_1,\ldots,\mathbf{k}_d, each translate satisfies an equation c1t1+⋯+cdtd=bc_1t_1 + \cdots+ c_dt_d = b in which some cic_i is nonzero. It contains at most (N+1)d−1(N+1)^{d-1} points of {0,…,N}d\{0,\ldots,N\}^d: 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 (N+1)d(N+1)^d points for arbitrarily large NN.

For a period set PP, let P0P_0 consist of the periods tit_i for which some n∈ZPn \in\mathbb{Z}_P has ni>0n_i > 0. These are the periods that occur in a nonnegative combination with image zero. Put

M=A(P∗),Γ=A(P0∗),L=span⁡Γ,R=span⁡P0.\mathcal{M} = \mathrm{A}(P^*), \qquad\Gamma= \mathrm{A}(P_0^*), \qquad L = \operatorname{span}\Gamma, \qquad R = \operatorname{span}P_0.

Here M,Γ⊆Zd\mathcal{M}, \Gamma\subseteq\mathbb{Z}^d, L≤QdL \leq\mathbb{Q}^d, and R≤Q2dR \leq\mathbb{Q}^{2d}. Both M\mathcal{M} and Γ\Gamma contain zero and are closed under addition.

Lemma B.3. The set Γ\Gamma is closed under negation and A(R)=L\mathrm{A}(R) = L. If KP=KAK_P = K_A, then KA⊆RK_A \subseteq R.

Proof. For ti∈P0t_i \in P_0, choose n∈ZPn \in\mathbb{Z}_P with ni>0n_i > 0. The relation ∑hnhAth=0\sum_h n_h A t_h = 0 gives

−Ati=(ni−1)Ati+∑h≠inhAth.-A t_i = (n_i - 1)A t_i + \sum_{h \ne i} n_h A t_h.

Every period with a positive coefficient on the right belongs to P0P_0. Thus the negative of each generator of Γ\Gamma belongs to Γ\Gamma, which proves closure under negation. Also A(R)=span⁡A(P0)=L\mathrm{A}(R) = \operatorname{span}\mathrm{A}(P_0) = L. In every PnP_n with n∈ZPn \in\mathbb{Z}_P, only periods in P0P_0 have positive coefficients, so KP⊆RK_P \subseteq R.

Since Γ⊆M\Gamma\subseteq\mathcal{M}, adding or subtracting an element of Γ\Gamma preserves the image Aa+MAa + \mathcal{M} of the linear component. These moves will turn a failure of separation into a point of Aa+MAa + \mathcal{M} lying in a deleted subspace.

Two forms from the order of period supports

The support of a period tt is the set {i:ti≠0}\{i : t_i \ne0\} of positions of its nonzero coordinates. We next use the prohibition on alternating period supports to find u,vu,v with V(u,v)⊆LV(u,v) \subseteq L. 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 {a,c}\{a,c\}, {b,d}\{b,d\} with a<b<c<da < b < c < d. Distinct connected components cannot contain a,ca,c and b,db,d, respectively, with a<b<c<da < b < c < d.

Proof. If {i,k}\{i,k\} is an edge with i<ki < k, any other component meeting the open interval (i,k)(i,k) 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 i,ki,k, so the two edges have alternating endpoints.

Suppose distinct components C,DC,D contain a,ca,c and b,db,d with a<b<c<da < b < c < d. A path in CC from aa to cc has an edge {i,k}\{i,k\} with i<b<ki < b < k, so D⊆(i,k)D \subseteq(i,k). A path in DD from bb to dd has an edge {j,ℓ}\{j,\ell\} with j<c<ℓj < c < \ell, so likewise C⊆(j,ℓ)C \subseteq(j,\ell). But i<j<ℓ<ki < j < \ell< k, contradicting i∈Ci \in C.

Lemma B.5. If a subspace R≤Q2dR \leq\mathbb{Q}^{2d} is spanned by a stratified period set and contains KAK_A, there are nonzero rational forms uu on Qr\mathbb{Q}^r and vv on Qr\mathbb{Q}^r with V(u,v)⊆A(R)V(u,v) \subseteq\mathrm{A}(R).

Proof. Let H\mathcal{H} be the space of coefficient vectors of rational linear forms on Q2d\mathbb{Q}^{2d} that vanish on RR. Since these forms vanish on KAK_A, every vector in H\mathcal{H} can be written as

w=(α,−α,β,−β),α∈Qr,β∈Qr.(23)w = (\alpha,-\alpha,\beta,-\beta), \qquad\alpha\in\mathbb{Q}^r,\quad\beta\in\mathbb{Q}^r. \tag*{(23)}

Construct a graph on the source coordinate positions, with an edge for each two-element support of a spanning period. For a period tt supported on {i,j}\{i,j\}, vanishing means

tiwi+tjwj=0,ti,tj≠0.t_iw_i + t_jw_j = 0,\qquad t_i,t_j \ne0.

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 w∈Hw \in\mathcal{H} to a component therefore has dimension at most one. This holds for isolated vertices as well.

Restricting ww to one graph component and setting its other coefficients to zero preserves membership in H\mathcal{H}, because each spanning period has support in a single component. Call the two positions xi+,xi−x_i^{+}, x_i^{-}, or yi+,yi−y_i^{+}, y_i^{-}, signed partners. If a coefficient can be nonzero in H\mathcal{H}, its position and its signed partner must belong to the same component. Otherwise, choose w∈Hw \in\mathcal{H} nonzero at that position and restrict ww to that graph component; the resulting vector violates (23).

All positions in the two xx blocks whose coefficients can be nonzero belong to one component. Indeed, two indices i<ji < j in distinct components would put xi+,xi−x_i^{+}, x_i^{-} in one and xj+,xj−x_j^{+}, x_j^{-} in the other. These four positions alternate in the source order, contrary to Lemma B.4. The same holds for the yy blocks. Thus the possible vectors α\alpha span a space of dimension at most one, as do the possible vectors β\beta.

If the space of possible α\alpha is nonzero, choose a form uu whose coefficient vector spans it; otherwise choose any nonzero form on Qr\mathbb{Q}^{r}. Choose vv in the same way from the possible β\beta. Every rational form on Qd\mathbb{Q}^{d} that vanishes on A(R)\mathrm{A}(R), when composed with AA, has a coefficient vector in H\mathcal{H}. The form on Qd\mathbb{Q}^{d} can therefore be written as

(x,y)⟼cu(x)+ev(y)(c,e∈Q),(x,y) \longmapsto c u(x) + e v(y) \qquad(c,e \in\mathbb{Q}),

and vanishes on V(u,v)V(u,v). This implies V(u,v)⊆A(R)V(u,v) \subseteq\mathrm{A}(R): if a vector were outside A(R)\mathrm{A}(R), extending a basis of A(R)\mathrm{A}(R) would give a form vanishing there but not at that vector. ◀

A stratification supplies separating forms

For a component of a stratification with KP=KAK_P = K_A, the preceding lemmas give forms with V(u,v)⊆LV(u,v) \subseteq L. If these forms fail to separate a rational pair w∈Yw \in Y from DiD_i, then w∈Di+Lw \in D_i + L. To turn the LL contribution into an element of Γ\Gamma 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 SS is stratifiable, finitely many separators separate every pair in YY.

Proof. Fix a stratification S=⋃j=1t(aj+Pj∗)S = \bigcup_{j=1}^{t}(a_j + P_j^{*}), and let

J={j:KPj=KA}.J = \{j : K_{P_j} = K_A\}.

For each j∈Jj \in J, use the notation Mj,Γj,Lj,Rj\mathcal{M}_j, \Gamma_j, L_j, R_j defined above. Lemma B.3 gives KA⊆RjK_A \subseteq R_j and A(Rj)=Lj\mathrm{A}(R_j) = L_j. Since the periods spanning RjR_j are a subset of PjP_j, they are stratified. Lemma B.5 supplies nonzero rational forms uj,vju_j, v_j with

V(uj,vj)⊆Lj.(24)V(u_j,v_j) \subseteq L_j. \tag*{(24)}

We show that these finitely many separators separate all of YY.

Fix w∈Yw \in Y. For every index combination (j,i)(j,i) with j∈Jj \in J and w∈Lj+Diw \in L_j + D_i, choose an expression

w=dji+∑hcjihhjih,dji∈Di,hjih∈Γj,cjih∈Q.w = d_{ji} + \sum_h c_{jih} h_{jih}, \qquad d_{ji} \in D_i,\quad h_{jih} \in\Gamma_j,\quad c_{jih} \in\mathbb{Q}.

Such expressions exist because Lj=span⁡ΓjL_j = \operatorname{span}\Gamma_j. The fiber lemma will select a component only after we fix an integer multiple of ww, so we clear denominators simultaneously for every candidate component. Choose one positive integer NN clearing the denominators of the coordinates of ww and all the coefficients cjihc_{jih}. As Γj\Gamma_j is closed under addition and negation, while DiD_i is a subspace, we obtain

Nw∈Γj+Diwhenever w∈Lj+Di.(25)Nw \in\Gamma_j + D_i \quad\text{whenever } w \in L_j + D_i. \tag*{(25)}

Also Nw∈Y∩ZdNw \in Y \cap\mathbb{Z}^d, since multiplication by a nonzero scalar preserves membership in each DiD_i and its complement. Lemma B.2 gives j∈Jj \in J with Nw∈Aaj+MjNw \in A_{a_j} + M_j. If w∈Lj+Diw \in L_j + D_i, equation (25) gives Nw=h+d′Nw = h + d' for h∈Γjh \in\Gamma_j and d′∈Did' \in D_i. Since −h∈Γj⊆Mj-h \in\Gamma_j \subseteq M_j,

d′=Nw−h∈Aaj+Mj⊆Y,d' = Nw - h \in A_{a_j} + M_j \subseteq Y,

contradicting d′∈Did' \in D_i. Therefore w∉Lj+Diw \notin L_j + D_i for every ii. By (24), w∈Yuj,vjw \in Y_{u_j,v_j}, which proves the claim. ◀

Separating forms supply a stratification

For a source vector n=(x+,x−,y+,y−)\boldsymbol{n} = (x^+,x^-,y^+,y^-) and a fixed separator u×vu \times v, membership of AnA\boldsymbol{n} in Yu,vY_{u,v} depends on the two sums u(x+−x−)u(x^+ - x^-) and v(y+−y−)v(y^+ - y^-). After clearing the coefficient denominators of u,vu,v, 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 a1,…,as,b1,…,bta_1,\ldots,a_s,b_1,\ldots,b_t be distinct letters, let hi,kj∈Zh_i,k_j \in\mathbb{Z}, and let T⊆Z2T \subseteq\mathbb{Z}^2 be Presburger-definable. The language of words

a1n1⋯asnsb1m1⋯btmtsuch that(∑ihini,∑jkjmj)∈Ta_1^{n_1}\cdots a_s^{n_s}b_1^{m_1}\cdots b_t^{m_t} \quad\text{such that} \quad \left(\sum_i h_i n_i,\sum_j k_j m_j\right) \in T

is context-free.

Proof. Intersect TT with each of the four closed coordinate quadrants. Changing coordinate signs identifies each intersection with a semilinear subset of N2\mathbb{N}^2. For one of its linear components c+∑ℓN(αℓ,βℓ)c+\sum_\ell\mathbb{N}(\alpha_\ell,\beta_\ell), choose fresh terminal letters a,ba,b, distinct from every ai,bja_i,b_j. The grammar

X⟶aαℓXbβℓ(each ℓ),X⟶ac1bc2X \longrightarrow a^{\alpha_\ell}Xb^{\beta_\ell}\quad\text{(each }\ell\text{)},\qquad X \longrightarrow a^{c_1}b^{c_2}

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 n∈Nn \in\mathbb{N} by words of balance ϵn\epsilon n, where ϵ∈{1,−1}\epsilon\in\{1,-1\} is the sign assigned to that coordinate by the chosen quadrant. Let BjB_j be the language of words of balance jj. A grammar for B0B_0 is

Z⟶ϵ∣+Z−Z∣−Z+Z.Z \longrightarrow\epsilon\mid+Z-Z \mid-Z+Z.

The languages B1=B0+B0B_1=B_0+B_0 and B−1=B0−B0B_{-1}=B_0-B_0 are also context-free, where juxtaposition denotes concatenation and the middle sign is a literal letter. For ϵ∈{1,−1}\epsilon\in\{1,-1\} and n∈Nn \in\mathbb{N},

B0(Bϵ)n=Bϵn.(26)B_0(B_\epsilon)^n = B_{\epsilon n}. \tag*{(26)}

For the reverse inclusion, cut a word when its balance first reaches ϵ\epsilon, then 2ϵ2\epsilon, and so on up to nϵn\epsilon. Each intervening piece has balance ϵ\epsilon; append the remaining balanced suffix to the last piece. The case n=0n = 0 is immediate. The same first-passage argument gives the descriptions of B1B_1 and B−1B_{-1} above.

Insert new marker letters #1,#2\#_1,\#_2 before the two count blocks: add the start production X0→#1XX_0 \to\#_1X and replace the terminal production by X→ac1#2bc2X \to a^{c_1}\#_2b^{c_2}. Use two disjoint copies of the signed alphabet. Substitute B0B_0 for each marker, Bϵ1B_{\epsilon_1} for aa, and Bϵ2B_{\epsilon_2} for bb, where ϵ1,ϵ2\epsilon_1,\epsilon_2 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 (ϵ1n,ϵ2m)(\epsilon_1n,\epsilon_2m) for some (n,m)(n,m) in the selected linear component. Take the union over components and coordinate-sign regions. Finally, for nonzero weights, map each aia_i to ∣hi∣|h_i| copies of the sign of hih_i in the first alphabet, and each bjb_j to ∣kj∣|k_j| copies of the sign of kjk_j 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 a1∗⋯as∗b1∗⋯bt∗a_1^*\cdots a_s^*b_1^*\cdots b_t^*. 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 Su,vS_{u,v} is therefore a Presburger condition on the two integer-weighted sums

u(x+−x−),v(y+−y−).u(x^+ - x^-), \qquad v(y^+ - y^-).

The pair of sums must lie outside ⋃i(u×v)(Di)\bigcup_i (u \times v)(D_i), a union of rational subspaces of Q2\mathbb{Q}^2 defined by linear equations. All x\boldsymbol{x} positions precede all y\boldsymbol{y} positions. Lemma B.7 therefore shows that the associated letter-bounded language is context-free. Theorem 3.1 therefore makes Su,vS_{u,v} stratifiable. Finite unions preserve stratifiability. ◀

References

  1. [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. [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. [3]Seymour Ginsburg. The Mathematical Theory of Context-Free Languages. McGraw-Hill, New York, 1966.
  4. [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. [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. [6]Martin Davis. Hilbert’s tenth problem is unsolvable. The American Mathematical Monthly, 80(3):233–269, 1973. Article.DOI
  7. [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. [8]Michael A. Harrison. Introduction to Formal Language Theory. Addison-Wesley, 1978.
  9. [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. [10]Bjorn Poonen. Undecidability in number theory. Notices of the American Mathematical Society, 55(3):344–350, 2008. Article.

Paper details

vlnc:W_zkdj9563
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

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

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents