Weighted automata and exact learning

Learning rational sequences

Exact coefficient prefixes determine a rational sequence once enough coefficients are known relative to its Hankel rank. Arbitrarily revisable polynomial snapshots are fundamentally different: pointwise stabilization alone does not permit a universal learner, even when the eventual target is rational.

FPRD-LRN-D01 · observation models

Exact prefixes and revisable snapshots are different data

LetF(q)=∑n≥0anqn∈Q[[q]].F(q)=\sum_{n\ge0}a_nq^n\in\mathbb Q[[q]].A rational series is equivalently a rational linear recurrence sequence, a finite-rank Hankel sequence, or the behavior of a finite-dimensional unary weighted automaton.

Exact prefix

At stage NN, the learner knowsa0,…,aN−1a_0,\ldots,a_{N-1}. Every zero below the frontier is known as data.

Revisable snapshot

At stage tt, the learner sees a polynomial PtP_t and is promised only

∀n  ∃Tn  ∀t≥Tn:[qn]Pt=an.\forall n\;\exists T_n\;\forall t\ge T_n: [q^n]P_t=a_n.

The second promise gives no computable frontier below which the coefficients are known to be final.

FPRD-LRN-T01 · theorem

Exact prefixes recover rational sequences

Theorem. IfFF has Hankel rank0<r<∞0<r<\infty, then exactly2r2r initial coefficients determine and reconstruct its minimal recurrence. If a boundR≥rR\ge r is known,2R2R coefficients give certified exact reconstruction. Without a known rank bound, repeating the reconstruction on longer prefixes identifiesFF in the limit. The rank-zero class consists only of the zero series.

Proof. Berlekamp–Massey overQ\mathbb Q recovers the shortest connection polynomial from 2r2rsamples of a sequence of linear complexityrr. Multiplying that polynomial by the observed generating prefix recovers the numerator.

For uniqueness, suppose two rank-at-most-rr series agree through degree2r−12r-1. Their difference has Hankel rank at most 2r2r. A nonzero sequence whose first nonzero coefficient occurs at indexmm has an anti-triangular leading Hankel block of rank m+1m+1. The difference therefore must vanish. ∎

The count is sharp. For r≥1r\ge1, split the nodes 0,1,…,2r−10,1,\ldots,2r-1 by parity:

Fr(q)=∑0≤j<2rj even(2r−1j)1−jq,Gr(q)=∑0≤j<2rj odd(2r−1j)1−jq. F_r(q)=\sum_{\substack{0\le j<2r\\ j\text{ even}}} \frac{\binom{2r-1}{j}}{1-jq},\qquad G_r(q)=\sum_{\substack{0\le j<2r\\ j\text{ odd}}} \frac{\binom{2r-1}{j}}{1-jq}.

Each side has Hankel rank rr by the Vandermonde factorization. The finite-difference identity says their coefficients agree through degree2r−22r-2 and differ in degree2r−12r-1. Thus2r−12r-1 observations can never suffice uniformly.

The arithmetic operation count is polynomial in the observed prefix length. Rational numerator and denominator growth still matters for bit complexity.

FPRD-LRN-C01 · counterexample

No finite prefix certifies an unrestricted guess

After observing coefficients through degreeN−1N-1, compare

F(q)andF(q)+cqN1−λq,c≠0.F(q)\qquad\text{and}\qquad F(q)+\frac{cq^N}{1-\lambda q},\quad c\ne0.

Both are rational and agree on the entire observed prefix, yet they are different. Thus an unknown-rank learner may converge to the right answer, but cannot truthfully announce from finite data alone that its current hypothesis will never change.

FPRD-LRN-T02 · impossibility theorem

Pointwise stabilization is not enough

Theorem. No learner identifies every rational target in the limit from arbitrary polynomial snapshots whose coefficients merely stabilize pointwise.

Proof. Assume a learner succeeds on every such stream. Choose a fresh exponent kk. If the current finite history were followed forever by the constant snapshot qkq^k, success would force the learner eventually to output that monomial. Repeatqkq^k just long enough to reach such a stage, then choose a larger fresh exponent and continue.

Every fixed coefficient is nonzero in at most one block, so the constructed snapshots converge coefficientwise to the zero series. But the learner is forced to output nonzero monomials infinitely often and therefore does not converge to zero. ∎

This is stronger than a slow-convergence warning: under the bare promise there is no universally correct limit learner.

FPRD-LRN-B01 · research boundary

What can restore a positive theorem

Revisable program approximants can still support exact learning if their semantics provide usable finality information. Examples include a computable stabilization modulus, markers certifying a coefficient prefix, monotone sound bounds with an effective gap test, a detectable revision bound, or active coefficient and equivalence queries.

The next mathematical step is therefore to recover what the motivating program analysis guarantees about its approximants. Recurrence fitting alone cannot manufacture that guarantee.

Sources

Problem source. Learning sequences, contributed by Benjamin Kaminski.

Gold's positive-text model and the active query models in the cited weighted-automata literature are not the same as exact coefficient prefixes or arbitrary revisable snapshots.

Independent review evidence. Scope and reproduction instructions, exact checker, and committed output, with its hash certificate.