Rational series

Relative degree for rational series

Relative degree asks how long a rational series is forced to stay inside an initial aa-corridor before a bb-transition can become nonzero. A finite reachable continuation space turns that infinite-language condition into exact linear algebra.

FPRD-RS-D01 · definition

Problem and input model

The posted problem fixes the binary alphabet Σ={a,b}\Sigma=\{a,b\}. Let f:Σ∗→Qf:\Sigma^*\to\mathbb Q be represented by rational matrices and vectors

f(w)=λMwγ,Muv=MuMv.f(w)=\lambda M_w\gamma,\qquad M_{uv}=M_uM_v.

Write A=MaA=M_a and B=MbB=M_b. A relative degree is an integer r≥0r\ge0 such that

supp⁡(f)⊆arΣ∗andf(arb)≠0.\operatorname{supp}(f)\subseteq a^r\Sigma^*\qquad\text{and}\qquad f(a^rb)\ne0.

The algorithm below takes the linear representation itself as input. Converting another description of a rational series into that representation is a separate computational cost.

No shorter prefix may stop or turn through bb, while the boundary word arba^rb must be visible. If degree zero is permitted, support containment is vacuous and only f(b)≠0f(b)\ne0 remains.

Worked example

The dimension bound can be sharp

Take

λ=(1,0),γ=(01),A=(0101),B=(0001). \lambda=(1,0),\qquad \gamma=\binom01,\qquad A=\begin{pmatrix}0&1\\0&1\end{pmatrix},\qquad B=\begin{pmatrix}0&0\\0&1\end{pmatrix}.

This is the characteristic series of aΣ∗a\Sigma^*: the first aa enters an accepting state, and both letters then preserve it. Its relative degree is r=1r=1. The representation has d=2d=2, so the strict bound r<dr<d cannot be improved uniformly.

FPRD-RS-L01 · lemma

A finite safe-row criterion

Compute the reachable column space

V=span⁡{Mxγ:x∈Σ∗}.V=\operatorname{span}\{M_x\gamma:x\in\Sigma^*\}.

It is the least subspace containing γ\gamma and invariant under every letter matrix. Define the safe row space

W={p:pγ=0 and pBv=0 for every v∈V}.W=\{p:p\gamma=0\text{ and }pBv=0\text{ for every }v\in V\}.

This is a finite summary of all continuations. Every possible suffix contributes a column in VV; a row belongs to WW exactly when stopping there and every continuation after taking bb are all invisible.

Lemma. The support condition supp⁡(f)⊆arΣ∗\operatorname{supp}(f)\subseteq a^r\Sigma^* holds exactly when λAk∈W\lambda A^k\in W for every 0≤k<r0\le k<r.

Proof. For a row p=λAkp=\lambda A^k, the equation pγ=0p\gamma=0 excludes the word aka^k. The condition pBV=0pBV=0 excludes every word whose first deviation at that position is bb, because every remaining suffix contributes a vector in VV. These are precisely the forbidden words under the two-letter convention of the problem. The same argument read backwards proves the converse. ∎

FPRD-RS-T01 · theorem

The relative degree is below the dimension

Theorem. If a dd-dimensional representation has a relative degree, then r<dr<d.

Proof. Put vk=λAkv_k=\lambda A^k. The lemma gives v0,…,vr−1∈Wv_0,\ldots,v_{r-1}\in W, whereas vrBγ=f(arb)≠0v_rB\gamma=f(a^rb)\ne0 implies vr∉Wv_r\notin W. If a first linear dependence occurred at an index j≤rj\le r, theAA-stable Krylov span generated by v0,…,vj−1v_0,\ldots,v_{j-1} would contain every later row, including vrv_r. All its generators lie in the linear space WW, a contradiction. Thus v0,…,vrv_0,\ldots,v_r are independent and r+1≤dr+1\le d. ∎

FPRD-RS-T02 · algorithm

A polynomial-time decision procedure

  1. Compute a column basis CC of VV by invariant-space saturation.
  2. Initialize v=λv=\lambda and mark every earlier row safe.
  3. For r=0,…,d−1r=0,\ldots,d-1, return rr exactly when all earlier rows were safe and vBγ≠0vB\gamma\ne0.
  4. Before advancing to vAvA, update safety by testing vγ=0v\gamma=0 and vBC=0vBC=0.

The lemma proves the support test and the dimension theorem proves that the search is complete. Exact rational linear algebra gives deterministic polynomial time in the bit size of the supplied representation.

Uniqueness

Two different degrees cannot satisfy the definition. If r<sr<s, the support condition for ss forces f(arb)=0f(a^rb)=0, contradicting the witness condition for rr.

Reported finite corroboration

The originating run artifact reports 100,000 exact-arithmetic random representations of dimensions one through four, with no mismatch between the algorithm and direct residual-zeroness tests. The checker and certificate are absent from the available durable and public record. This is therefore a reported computational finding, not reproducible evidence used to mature the theorem. The proof above carries the result.

FPRD-RS-C03 · exhaustive finite certificate

A reproducible replacement for the missing experiment

A new exact checker enumerates every one- and two-dimensional representation whose entries lie in{−1,0,1}\{-1,0,1\}. For each representation it compares the Krylov algorithm with a separate definition-level oracle that tests every candidater<dr<d and every suffix word of length below dd.

DimensionRepresentationsDegree 0Degree 1
18124—
2531,441290,3045,568

Across all 531,522 representations there are no mismatches and no nonunique candidate sets. This is a complete result only for the displayed finite domain; the proof remains responsible for arbitrary dimension and rational input.

Checker · Certificate

Scope and sources

  • The alphabet is exactly {a,b}\{a,b\}, as in the posted problem.
  • The polynomial-time claim is for an explicit rational linear representation.
  • The representation dimension is a positive integer; minimality is not assumed.
  • The convention here allows degree zero.

The binary hypothesis is essential to the displayed formula forWW. Over{a,b,c}\{a,b,c\}, takeλ=(1,0)\lambda=(1,0),γ=(0,1)T\gamma=(0,1)^{\mathsf T},A=C=(0100)A=C=\bigl(\begin{smallmatrix}0&1\\0&0\end{smallmatrix}\bigr), andB=(0001)B=\bigl(\begin{smallmatrix}0&0\\0&1\end{smallmatrix}\bigr). Then the BB-only safety test passes below degree one andf(ab)=1f(ab)=1, butf(c)=1f(c)=1. For a larger alphabet, the definition of WWmust include one annihilation condition for every letter other than aa.

Problem source. Relative degree for rational series, contributed by Lorenzo Clemente to Automata Exchange on 1 July 2025. The standard equivalence between rational series, recognizable series, linear representations, and weighted automata is described by Jean Berstel and Christophe Reutenauer in Noncommutative Rational Series with Applications, Chapter 1, Cambridge University Press (2010), pp. 3–28, DOI 10.1017/CBO9780511760860.002. The FPRD derivation is preserved in fprd-automata-exchange-run-003-relative-degree-rational-series-2026-08-25.md.

Independent hostile audit · Audit output