Alphabeta Math
Session-authored (Fable 5 assisted)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

23 results · all verified · 14 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 9 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Linear Recurrences and Rational Generating Functions

1 · Prerequisites

2 · Summary

Formal power series over a commutative ring, coefficient extraction with its linearity and extensionality, the unit criterion for a formal power series, and the formal derivative with its algebra are published. So are matrices over a commutative ring and their arithmetic, the determinant, Laplace cofactor expansion, minors, cofactors and the adjugate with the adjugate identity, the characteristic polynomial of a matrix and of an operator, the Cayley–Hamilton theorem, the spectral mapping theorem for polynomials, the trace as the sum of the eigenvalues, polynomial division over a field with Bézout's identity and unique factorisation, splitting fields, and the rational function field as a field of fractions.

A constant-coefficient linear recurrence and a rational generating function describe the same object: for a fixed denominator the initial-value, recurrence-sequence, numerator and rational-series spaces are linearly isomorphic, and no root is chosen. Reduced denominators give the minimal order, finite modification preserves eventual recurrence and rationality, rational series are closed under sums, products and Hadamard products, and over a splitting field partial fractions with the repeated-pole binomial series give the polynomial-times-exponential closed form. Companion matrices and Cayley–Hamilton connect the recurrence and matrix pictures. A finite weighted digraph makes walks entries of transfer-matrix powers; the formal matrix geometric series presents the walk series as a cofactor over det(IxA), trace and logarithmic-derivative formulas follow, and prefix automata make the generating function of words avoiding finitely many factors rational.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Constant-coefficient linear recurrences, their starting index and their characteristic polynomial

Definition

Let K be a field, let a=(an)n0 be a sequence in K, and let d1. A constant-coefficient linear recurrence of order d starting at N is an identity

an+d+c1an+d1++cdan=0(nN),

where c1,,cdK and cd0. Its characteristic polynomial and reciprocal denominator are

χ(t)=td+c1td1++cd,Q(x)=1+c1x++cdxd.

The recurrence holds from the start when N=0, and it is eventual when such an N exists. An order-zero recurrence starting at N means an=0 for every nN; its characteristic polynomial and reciprocal denominator are both 1. This convention makes finitely supported sequences precisely the sequences of eventual order zero.

For a bi-infinite sequence a:ZK, the same displayed identity is a recurrence of order d when it holds for every nZ. The condition cd0 then lets the identity be solved both forward and backward.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Rational formal power series, proper presentations and reduced denominators

Definition

Let R be a commutative ring. A formal power series FRx (Formal power series over a commutative ring and the coefficient-extraction functional [xn]) is rational if there are polynomials P,QR[x] such that Q(0) is a unit and

QF=P

in Rx. Equivalently, F=P/Q, where Q1 is the unique formal inverse supplied by A formal power series is a unit exactly when its constant coefficient is a unit.

Now let R=K be a field. Multiplying numerator and denominator by Q(0)1 gives a normalised presentation with Q(0)=1. Such a presentation is proper when P=0 or degP<degQ (Degree, leading coefficient and monic polynomial, with the zero polynomial having no degree). It is reduced when P and Q have no common nonunit factor. A polynomial series has the reduced presentation P/1, and the zero series has reduced presentation 0/1.

A polynomial Q occurring in a normalised reduced presentation is called a reduced denominator of F. The minimal-order theorem will show that all reduced denominators of one series have the same degree.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

The initial-value, recurrence-sequence, numerator and fixed-denominator rational-series spaces all have dimension d

Statement

Let K be a field, let d1, let c1,,cdK with cd0, and put Q(x)=1+c1x++cdxd. The following four K-vector spaces are naturally linearly isomorphic:

  1. the initial-value space Kd;
  2. the space of sequences satisfying an+d+c1an+d1++cdan=0 for every n0;
  3. the space of polynomials P with P=0 or degP<d;
  4. the space of formal series P/Q with P=0 or degP<d.

Each space has dimension d.

Facts & Assumptions

Given: A field K, a positive order d, coefficients c1,,cd with cd0, and Q(x)=1+c1x++cdxd.

[L1]

An order-d recurrence from the start is an+d+c1an+d1++cdan=0 for every n0 (Constant-coefficient linear recurrences, their starting index and their characteristic polynomial).

[L2]

A proper fixed-denominator series has the form P/Q with Q(0)=1 and either P=0 or degP<degQ (Rational formal power series, proper presentations and reduced denominators).

[L3]

Formal series are equal exactly when all their coefficients agree, and [xn](QF)=i=0n[xi]Q[xni]F (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

Proof

technique · direct
1.1

Given (u0,,ud1)Kd, set ai=ui for i<d and recursively define an+d=(c1an+d1++cdan); this produces exactly one recurrence sequence with those initial values.

givenL1construct
1.2

For a recurrence sequence with F=n0anxn, [L3] gives [xm](QF)=am+c1am1++cdamd for md, so every such coefficient is zero by [L1] and P:=QF has degree below d or is zero.

L1L3
1.3

Because Q(0)=1, division by Q is defined formally, and PP/Q is a linear bijection from the numerator space to the proper fixed-denominator series space.

L2
2.1

Initial-value extraction is linear, and step 1.1 is its linear inverse; hence the initial-value and recurrence-sequence spaces are linearly isomorphic.

step 1.1algebra
2.2

Conversely, if P=QF has no nonzero coefficient in degrees md, the same coefficient identity read backwards gives the recurrence for every n=md0; thus FQF is a linear bijection from the recurrence-sequence space to the degree-<d numerator space.

step 1.2L3
3.1

Coefficient extraction identifies the numerator space with Kd, and [L4] gives its dimension d; the linear isomorphisms in steps 2.1, 2.2 and 1.3 therefore give dimension d for all four spaces.

step 2.1step 2.2step 1.3L4
TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational

Statement

Let K be a field, let a=(an)n0 be a sequence in K, and let F(x)=n0anxn. Then a satisfies an eventual constant-coefficient linear recurrence if and only if F is a rational formal power series.

More precisely, let Q(x)=1+c1x++cdxd with d1 and cd0. The sequence satisfies the corresponding recurrence from index N exactly when QF has no nonzero coefficient of degree at least N+d. In particular, the recurrence starts at zero exactly when QF is zero or has degree below d.

Facts & Assumptions

Given: A field K, a sequence a=(an)n0, and its formal generating function F=n0anxn.

[L1]

For fixed Q(x)=1+c1x++cdxd with d1 and cd0, multiplication by Q identifies sequences recurrent from zero with numerators of degree below d (The initial-value, recurrence-sequence, numerator and fixed-denominator rational-series spaces all have dimension d).

[L2]

If 0QK[x] and PK[x], there are unique D,RK[x] with P=DQ+R and either R=0 or degR<degQ (Division algorithm for polynomials over a field).

Proof

technique · direct
1.1

Suppose first that a satisfies an order-d recurrence from index N. For mN+d, coefficient extraction gives [xm](QF)=am+c1am1++cdamd=0, so QF is a polynomial and F=(QF)/Q is rational.

givenL1algebra
1.2

An eventual order-zero recurrence means that a is eventually zero, so F is a polynomial and is rational with denominator 1.

given
1.3

Conversely, suppose F=P/Q with Q(0)0. Rescale so that Q(0)=1, and use [L2] to write P=DQ+R with R=0 or degR<degQ; then F=D+R/Q.

givenL2algebra
2.1

If degQ=d1, [L1] says that the coefficients of R/Q satisfy the order-d recurrence from zero, while the polynomial D changes only finitely many coefficients; hence the coefficients of F satisfy that recurrence eventually. If Q=1, then F=P is eventually zero and has eventual order zero.

step 1.3L1
3.1

The coefficient calculation in step 1.1 is reversible: for fixed positive-degree Q, the recurrence holds at n exactly when [xn+d](QF)=0. This gives the stated starting-index clause and completes both directions.

step 1.1step 2.1algebra
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

d initial values determine a sequence satisfying a fixed order-d recurrence

Statement

Fix a field K, an integer d1, and coefficients c1,,cdK with cd0. For every initial list (u0,,ud1)Kd, there is exactly one sequence (an)n0 satisfying

an+d+c1an+d1++cdan=0(n0)

and ai=ui for i<d.

Facts & Assumptions

Given: A field K, a positive order d, fixed recurrence coefficients with nonzero trailing coefficient, and an initial list in Kd.

[L1]

Initial-value extraction is a linear isomorphism from the fixed-recurrence sequence space to Kd (The initial-value, recurrence-sequence, numerator and fixed-denominator rational-series spaces all have dimension d).

Proof

technique · direct
1.1

Surjectivity in [L1] gives a recurrence sequence with the prescribed d initial values.

givenL1
2.1

Injectivity in [L1] says that two recurrence sequences with the same initial list are equal, proving uniqueness. This includes d=1, where one initial value determines every later term.

step 1.1L1
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

The least eventual recurrence order is the degree of the reduced denominator

Statement

Let F=n0anxnKx be rational over a field, and let P/Q be a normalised reduced presentation. The least order of an eventual constant-coefficient recurrence satisfied by (an) is degQ, with the convention that deg1=0. Thus polynomial series have minimal eventual order zero.

Facts & Assumptions

Given: A rational series F=P/Q over a field K, where Q(0)=1 and P,Q are coprime.

[L1]

A sequence is eventually linearly recurrent exactly when its generating function is rational, and a denominator D of degree e supplies an eventual recurrence of order e (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

[L2]

The polynomial ring over a field is a unique factorisation domain (For every field F, F[x] is a unique factorisation domain).

Proof

technique · direct
1.1

If (an) satisfies an eventual recurrence of order e, [L1] gives a polynomial A and a normalised denominator D of degree e with F=A/D, so PD=AQ.

givenL1
2.1

Since P and Q are coprime in the UFD K[x], the identity PD=AQ forces QD; therefore degQe.

step 1.1L2algebra
3.1

If degQ>0, the presentation P/Q itself gives by [L1] an eventual recurrence of order degQ, so step 2.1 proves minimality. If Q=1, then F=P is a polynomial and its coefficients are eventually zero, giving minimal order zero.

step 2.1L1
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Changing finitely many coefficients preserves rationality and eventual linear recurrence

Statement

Let (an) and (bn) be sequences over a field which differ at only finitely many indices. Then the generating series anxn is rational if and only if bnxn is rational. Equivalently, (an) is eventually linearly recurrent if and only if (bn) is eventually linearly recurrent.

A finite modification need not preserve a recurrence with starting index zero.

Facts & Assumptions

Given: Two sequences (an) and (bn) over a field which differ at only finitely many indices.

[L1]

A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

Proof

technique · direct
1.1

The difference H(x)=n0(anbn)xn has finite support, so it is a polynomial.

given
2.1

If A(x)=anxn=P/Q is rational, then B(x)=A(x)H(x)=(PHQ)/Q is rational; the same argument with A=B+H proves the converse.

step 1.1algebra
3.1

Applying [L1] to both series converts step 2.1 into the equivalence of eventual recurrence.

step 2.1L1
4.1

For the final warning, the zero sequence satisfies an+1+an=0 from zero, while changing only a0 to 1 destroys that identity at n=0, even though the modified sequence is eventually zero.

step 3.1
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

For a bi-infinite linear recurrence over K, the two half-series satisfy F+(x)=F(x1) in K(x)

Statement

Let K be a field, let d1, and let f:ZK satisfy

f(n+d)+c1f(n+d1)++cdf(n)=0(nZ),

where cd0. Put

F+(x)=n0f(n)xn,F(x)=n1f(n)xn.

Both series are rational, and in the rational function field K(x),

F+(x)=F(x1).

More precisely, write F+=P/Q with Q=1+c1x++cdxd, P=j<dβjxj, and P0. If

r=min{n0:f(n)0},s=min{n1:f(n)0},

then r=min{j0:βj0} and f(r)=βr, while s=ddegP and f(s)=cd1βds. Finally,

F+(x)=±xrsF+(x1)

holds exactly when f(n)=f(n+rs) for every nZ. If P=0, the recurrence and cd0 force f=0, so the main identity holds and the minima are intentionally left undefined.

Facts & Assumptions

Given: A field K and a bi-infinite order-d recurrence with nonzero trailing coefficient.

[L1]

An eventual recurrence has a rational generating function, and a recurrence from zero with reciprocal denominator Q gives a numerator of degree below d (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

[L2]

The fraction field of K[x] is the rational function field K(x)={P/Q:P,QK[x], Q0} (For a field F, F(t)=Frac(F[t]) is its rational function field; in particular R(t)=Frac(R[t])).

Proof

technique · direct
1.1

Applying [L1] to the positive half gives F+=P/Q with degP<d, and applying it to the reversed negative half gives rationality of F.

givenL1
2.1

In the vector space of all formal sums nZanxn, multiplication by the polynomial Q is coefficientwise finite. The recurrence says QnZf(n)xn=0, so linearity gives Q(x)n1f(n)xn=Q(x)F+(x)=P(x).

givenstep 1.1algebra
2.2

The lowest nonzero coefficient of P/Q equals the lowest nonzero coefficient of P, because Q(0)=1; hence the positive minimum is r=min{j:βj0} and f(r)=βr.

step 1.1algebra
3.1

Substitute x1 for x in step 2.1 and interpret both quotients in [L2]; this gives F+(x)=F(x1) in K(x), not as an equality of formal power series.

step 2.1L2algebra
4.1

Rewriting P(x1)/Q(x1) as cd1xdP(x1)/(1+cd1cd1x++cd1xd) shows that its first nonzero term has degree s=ddegP and coefficient cd1βds, proving the negative-side clauses.

step 3.1algebra
5.1

Apply the main identity to replace F+(x1) by F(x); coefficient comparison then shows that F+(x)=±xrsF+(x1) is equivalent to f(n)=f(n+rs) for every integer n.

step 3.1step 2.2step 4.1algebra
6.1

If P=0, then F+=0, so f(n)=0 for n0; solving the recurrence backwards using cd0 gives f(n)=0 for all nZ, and the main identity remains valid.

step 1.1given
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

Rational formal power series are closed under sums and Cauchy products

Statement

Let R be a commutative ring. If F,GRx are rational, then both F+G and the Cauchy product FG are rational. This includes zero series and polynomial presentations.

Facts & Assumptions

Given: Rational presentations F=P1/Q1 and G=P2/Q2 over a commutative ring R.

[L1]

A rational formal series has a presentation P/Q whose denominator has unit constant coefficient (Rational formal power series, proper presentations and reduced denominators).

[L2]

A formal series is a unit exactly when its constant coefficient is a unit (A formal power series is a unit exactly when its constant coefficient is a unit).

Proof

technique · direct
1.1

The product Q1Q2 has unit constant coefficient Q1(0)Q2(0), so it is a unit of Rx by [L2].

givenL1L2
2.1

The identities F+G=(P1Q2+P2Q1)/(Q1Q2) and FG=P1P2/(Q1Q2) have polynomial numerators and the denominator from step 1.1, so [L1] makes both series rational. The formulas remain valid when a numerator is zero or a denominator is 1.

step 1.1L1algebra
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

The Hadamard product of two rational formal power series over a field is rational

Statement

Let K be a field. If F=n0anxn and G=n0bnxn are rational formal power series over K, then their Hadamard product

FG:=n0anbnxn

is rational.

Facts & Assumptions

Given: Rational series F=anxn and G=bnxn over a field K.

[L1]

A coefficient sequence has a rational generating function exactly when it is eventually linearly recurrent (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

Proof

technique · direct
1.1

By [L1], after deleting finite prefixes the sequences a and b satisfy recurrences of orders d and e. Hence all shifts of the first tail lie in the span of its first d shifts, and all shifts of the second tail lie in the span of its first e shifts.

givenL1
2.1

If d=0 or e=0, one tail and hence the product tail is zero, so [L1] already proves rationality. It remains to take d,e1.

step 1.1L1
3.1

Let W be the span, inside the vector space of K-valued sequences, of the de coefficientwise products (Sia)(Sjb) with 0i<d and 0j<e. Every simultaneous shift Sk(anbn)=(Ska)(Skb) belongs to W by bilinear expansion.

step 1.1step 2.1algebra
4.1

By [L2], among any de+1 simultaneous shifts of the product tail there is a nontrivial linear dependence. Remove initial and terminal zero coefficients from such a relation and normalise its last coefficient to 1; the remaining first coefficient is nonzero and the relation is an eventual constant-coefficient recurrence for (anbn).

step 3.1L2algebra
5.1

Applying [L1] to the product sequence in step 4.1 proves that FG is rational in the positive-order case. Together with step 2.1, this covers all rational inputs, and finite prefixes discarded in step 1.1 do not affect eventual recurrence.

step 1.1step 2.1step 4.1L1
RemarkRemark: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Reciprocal-root convention: χ(t)=i(tλi)mi corresponds to Q(x)=i(1λix)mi

Statement

The recurrence convention of Constant-coefficient linear recurrences, their starting index and their characteristic polynomial pairs

χ(t)=td+c1td1++cd

with Q(x)=1+c1x++cdxd. Therefore, in any field over which χ splits,

χ(t)=i(tλi)miQ(x)=i(1λix)mi.

The roots of Q are the reciprocals λi1, while the numbers appearing in recurrence closed forms are the characteristic roots λi. The nonzero trailing coefficient in the recurrence makes every λi nonzero. This convention is algebraic and does not assert convergence of P/Q at any value of x (Rational formal power series, proper presentations and reduced denominators).

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

A proper rational function with split denominator has a unique repeated-pole partial-fraction expansion

Statement

Let E be a field, let λ1,,λsE be pairwise distinct and nonzero, let mi1, and put

Q(x)=i=1s(1λix)mi.

For every PE[x] with P=0 or degP<degQ, there are unique scalars bijE such that

P(x)Q(x)=i=1sj=1mibij(1λix)j.

For P=0, every bij is zero.

Facts & Assumptions

Given: A field E, distinct nonzero λi, positive multiplicities mi, and a proper numerator P for Q=i(1λix)mi.

[L1]

A split recurrence denominator has factors (1λix)mi corresponding to the characteristic factors (tλi)mi (Reciprocal-root convention: χ(t)=i(tλi)mi corresponds to Q(x)=i(1λix)mi).

[L2]

Coprime polynomials f,g over a field admit A,B with Af+Bg=1 (Bézout identity and the Euclidean algorithm for polynomials over a field).

[L3]

Splitting permits a factorisation into linear factors with repetitions recording multiplicity (Polynomials that split and splitting fields of a polynomial or a family of polynomials).

Proof

technique · direct
1.1

The powers qi=(1λix)mi are pairwise coprime: distinct linear factors have no common root, and [L2] then gives a Bezout identity for every pair.

givenL2L3
2.1

Iterating the two-factor Bezout decomposition gives polynomials Ui with degUi<mi such that P/Q=iUi/qi; at each stage the remainder modulo qi supplies Ui.

step 1.1L2algebra
3.1

Each Ui/qi has a unique expansion j=1mibij(1λix)j, because the polynomials 1,(1λix),,(1λix)mi1 form a basis of the polynomials of degree below mi.

step 2.1algebra
4.1

If the displayed partial-fraction sum is zero, clear denominators and reduce modulo qi; all terms except the ith vanish, so Uikiqk0(modqi). The second factor is invertible modulo qi by [L2], hence Ui=0 for every i, and step 3.1 gives every bij=0.

step 1.1step 3.1L2
5.1

Steps 2.1 and 3.1 give existence, while step 4.1 gives uniqueness. The zero numerator yields the all-zero coefficients.

step 2.1step 3.1step 4.1L1
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Repeated poles expand formally as (1λx)j=n0(n+j1j1)λnxn

Statement

Let R be a commutative ring, let λR, and let j1. In Rx,

1(1λx)j=n0(n+j1j1)λnxn.

The binomial coefficient acts by repeated addition in R. The formula includes n=0, j=1, and λ=0 and is purely formal.

Facts & Assumptions

Given: A commutative ring R, an element λR, and an integer j1.

[L1]

A formal series is invertible exactly when its constant coefficient is a unit, and its inverse is unique (A formal power series is a unit exactly when its constant coefficient is a unit).

[L2]

The coefficient of a Cauchy product is [xn](fg)=i=0n[xi]f[xni]g (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L3]

Binomial coefficients count finite subsets and satisfy (n0)=1, (nn)=1, and (nk)=0 for k>n (The set [A]k of k-element subsets and the binomial coefficient (nk):=[n]k).

Proof

technique · induction
1.1

For j=1, put G=n0λnxn. By [L2], the constant coefficient of (1λx)G is 1 and every positive coefficient is λnλλn1=0, so G=(1λx)1 by [L1]; this is the formula because (n0)=1.

baseL1L2L3
2.1

Assume the formula holds for one j1. Multiplying its right-hand side by the j=1 series from step 1.1, [L2] makes the coefficient of xn equal to λnk=0n(k+j1j1).

ihstep 1.1L2
3.1

Terms below j1 vanish by [L3], so [L4] changes the sum in step 2.1 to (n+jj); therefore the product is the claimed series for exponent j+1.

step 2.1L3L4
4.1

The base case and induction step prove the formula for every j1. At n=0 the coefficient is 1, and at λ=0 all positive coefficients vanish, so the stated boundaries are included.

step 1.1step 3.1discharge-induction
TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Over a named splitting field in characteristic zero, repeated characteristic roots give polynomial-times-exponential closed forms

Statement

Let K be a field of characteristic zero, let (an)n0 satisfy an order-d recurrence from zero, and let E/K be a splitting field of its characteristic polynomial. If

χ(t)=i=1s(tλi)mi

in E[t], with distinct roots λi, then there are unique polynomials piE[z] with degpi<mi such that

an=i=1spi(n)λin(n0).

Conversely, every sequence of this form satisfies the recurrence whose characteristic polynomial is the displayed product. Equality is in E, and no identification with R or C is assumed.

Facts & Assumptions

Given: A characteristic-zero field K, a sequence satisfying a recurrence from zero, a named splitting field E/K, and the displayed factorisation of its characteristic polynomial.

[L1]

A recurrence from zero has a proper rational generating function with its reciprocal denominator (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

[L2]

The factorisation χ(t)=i(tλi)mi corresponds to Q(x)=i(1λix)mi (Reciprocal-root convention: χ(t)=i(tλi)mi corresponds to Q(x)=i(1λix)mi).

[L3]

A proper fraction with that split denominator has a unique expansion i,jbij(1λix)j (A proper rational function with split denominator has a unique repeated-pole partial-fraction expansion).

[L4]

Formally, [xn](1λx)j=(n+j1j1)λn (Repeated poles expand formally as (1λx)j=n0(n+j1j1)λnxn).

[L5]

A splitting field is generated by the roots over the base field, and repeated factors record their multiplicities (Polynomials that split and splitting fields of a polynomial or a family of polynomials).

[L6]

Characteristic zero means that no positive natural multiple of the field identity is zero (The characteristic of a ring: the least n1 with n1R=0 when one exists, and 0 otherwise).

Proof

technique · direct
1.1

By [L1] the generating function is P/Q with P=0 or degP<d, and [L2] identifies Q with the split product i(1λix)mi in E[x].

givenL1L2L5
1.2

By [L6], every positive factorial is nonzero and hence invertible in E. For 1jm put qj(z)=((j1)!)1(z+1)(z+2)(z+j1)E[z], the product being empty for j=1, so q1=1. Each qj has degree j1 and leading coefficient ((j1)!)10, and for every natural n the identity (n+j1j1)(j1)!=(n+j1)j1=(n+1)(n+j1) from [L7] gives qj(n)=(n+j1j1). The degrees 0,,m1 are distinct, so triangular elimination makes q1,,qm a basis of the polynomials in E[z] of degree below m.

L6L7algebra
2.1

Conversely, expand each pi in the binomial-polynomial basis from step 1.2. Then [L4] shows that the generating function of pi(n)λin has denominator dividing (1λix)mi; summing gives a rational function with denominator dividing Q, so [L1] gives the recurrence with characteristic polynomial dividing the displayed product. Multiplying by any missing factors gives the displayed order-d recurrence itself.

step 1.2L1L2L4algebra
2.2

Apply [L3] and then [L4] to obtain an=i=1sj=1mibij(n+j1j1)λin.

step 1.1L3L4
3.1

Step 1.2 rewrites each coefficient (n+j1j1) as qj(n), so grouping the terms of step 2.2 with the same i gives an=ipi(n)λin with pi=j=1mibijqj, a polynomial in E[z] of degree below mi. Uniqueness follows from the uniqueness in [L3], the basis property in step 1.2, and coefficient extensionality.

step 2.2step 1.2L3
4.1

Steps 3.1 and 2.1 prove both directions, including repeated roots and the case of one root. The condition cd0 in the recurrence excludes zero among the λi.

step 3.1step 2.1L2
DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

The row-shift companion matrix of a linear recurrence

Definition

Let R be a commutative ring, let d1, and let

χ(t)=td+c1td1++cd.

The row-shift companion matrix of this recurrence polynomial is the matrix CMd(R) (Finite rectangular matrices over a commutative ring, their entries, rows and columns) whose entries are

Ci,i+1=1(0i<d1),Cd1,j=cdj(0j<d),

with all other entries zero. Thus

C=(010000100001cdcd1cd2c1).

For a recurrence sequence a, its state at time n is the column vector vn=(an,an+1,,an+d1)T. This convention matches the signs and order in Constant-coefficient linear recurrences, their starting index and their characteristic polynomial.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

The companion matrix advances the recurrence state vector by one step

Statement

Let a satisfy an order-d recurrence from zero over a field, let C be its row-shift companion matrix, and put vn=(an,,an+d1)T. Then

vn+1=Cvnandvn=Cnv0

for every n0.

Facts & Assumptions

Given: An order-d recurrence sequence a, its state vectors vn, and its companion matrix C.

[L1]

The companion matrix has shift rows and final row (cd,cd1,,c1) (The row-shift companion matrix of a linear recurrence).

[L2]

Matrix multiplication is (AB)ik=jaijbjk, and Id is the identity matrix (Entrywise ring-matrix operations, rectangular matrix products, identity matrices and transpose).

[L3]

Matrix multiplication is associative and satisfies IdA=A=AId (Matrix arithmetic over a commutative ring is associative, unital and distributive, and transpose reverses products).

Proof

technique · induction
1.1

Multiplying C by vn, the first d1 rows return an+1,,an+d1 and the final row returns cdanc1an+d1=an+d, so Cvn=vn+1.

givenL1L2
1.2

At n=0, one has C0v0=Idv0=v0.

baseL2L3
2.1

If vn=Cnv0, then step 1.1 and associativity give vn+1=Cvn=Cn+1v0.

ihstep 1.1L3
3.1

Induction proves vn=Cnv0 for every n0, together with the one-step identity from step 1.1.

step 1.2step 2.1discharge-induction
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

A recurrence companion matrix has the recurrence characteristic polynomial

Statement

Let K be a field, let d1, and let C be the row-shift companion matrix associated with

χ(t)=td+c1td1++cd.

Then the matrix characteristic polynomial is exactly

χC(t)=det(tIdC)=td+c1td1++cd.

Facts & Assumptions

Given: A positive integer d, coefficients c1,,cd, and their row-shift companion matrix C.

[L1]

The row-shift companion matrix has superdiagonal entries 1 and final row (cd,,c1) (The row-shift companion matrix of a linear recurrence).

[L3]

A determinant may be expanded along any row or column as the sum of entries times their cofactors (Laplace expansion computes the determinant along every row and every column over a commutative ring).

Proof

technique · induction
1.1

For d=1, one has C=(c1) and det(tIC)=t+c1.

baseL1L2
1.2

Assume the formula for size d1. In tIdC, the first column has only two nonzero entries: t in row 0 and cd in row d1.

ihL1L2
2.1

Expanding that column by [L3], the cofactor of t is the size-(d1) companion determinant td1+c1td2++cd1 by the induction hypothesis.

step 1.2L3
2.2

The minor of the entry cd is triangular with diagonal entries 1; its determinant is (1)d1, and the cofactor sign is also (1)d1, so this contribution is cd.

step 1.2L3algebra
3.1

Therefore det(tIdC)=t(td1+c1td2++cd1)+cd, which is the claimed polynomial.

step 2.1step 2.2algebra
4.1

The base case and induction step prove the formula for every d1.

step 1.1step 3.1discharge-induction
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For an invertible matrix over a field, Cayley-Hamilton makes every matrix-power entry and trace sequence linearly recurrent

Statement

Let K be a field, let n1, and let AMn(K) be invertible. Write

χA(t)=tn+b1tn1++bn.

Then bn0, and for every pair u,v<n the sequence m(Am)uv, as well as the sequence mtr(Am), satisfies from m=0 the order-n recurrence

sm+n+b1sm+n1++bnsm=0.

Facts & Assumptions

Given: A field K, a positive size n, and an invertible matrix AMn(K) with the displayed characteristic polynomial.

[L1]

Every finite-dimensional endomorphism satisfies its characteristic polynomial: χT(T)=0 (Cayley-Hamilton: every finite-dimensional endomorphism satisfies its characteristic polynomial, χT(T)=0).

[L3]

The operator characteristic polynomial is the characteristic polynomial of any representing matrix (The basis-independent characteristic polynomial χT of an endomorphism of a finite-dimensional space, including χT=1 in dimension zero).

[L5]

The trace of a field matrix is the finite sum of its diagonal entries (The trace tr(A) as the sum of the diagonal entries).

[L6]

An invertible positive-sized matrix over a commutative ring has unit determinant (An invertible square matrix over a commutative ring has unit determinant).

Proof

technique · direct
1.1

Apply [L1] to the coordinate endomorphism [L2]. By [L3], its characteristic polynomial is χA, so the representing matrices satisfy An+b1An1++bnI=0.

givenL1L2L3
1.2

By [L4], the constant coefficient is bn=det(A)=(1)ndet(A). The determinant is a unit by [L6], so bn0 in the field K and the relation has order n under the page's recurrence convention.

L4L6algebra
2.1

Multiplying the identity in step 1.1 by Am gives Am+n+b1Am+n1++bnAm=0 for every m0.

step 1.1algebra
3.1

Extracting the (u,v) entry from step 2.1 proves the displayed recurrence for every matrix-power entry; summing its diagonal entries and using [L5] proves the same recurrence for the trace sequence.

step 2.1L5algebra
4.1

Steps 3.1 and 1.2 establish both families of order-n recurrences from m=0.

step 3.1step 1.2
DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-16Open item page →

The Fibonacci sequence F0=0,F1=1 and Lucas sequence L0=2,L1=1

Definition

The Fibonacci sequence (Fn)n0 and Lucas sequence (Ln)n0 are defined by

F0=0,F1=1,L0=2,L1=1,

and, for every n0,

Fn+2=Fn+1+Fn,Ln+2=Ln+1+Ln.

Both are order-2 recurrences in the convention of Constant-coefficient linear recurrences, their starting index and their characteristic polynomial, with characteristic polynomial t2t1 and reciprocal denominator 1xx2. The distinct initial pairs distinguish the two sequences.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

The trace of a square matrix over a commutative ring

Definition

Let R be a commutative ring, let pN, and let A=(aij)Mp(R) (Finite rectangular matrices over a commutative ring, their entries, rows and columns). The trace of A over R is

trR(A):=i<paii.

For p=0, this is the empty sum and equals 0R. The subscript may be omitted when the coefficient ring is clear.

PropositionStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

For matrices over a field, the commutative-ring trace agrees with the published matrix trace

Statement

Let K be a field, let pN, and let AMp(K). Then the commutative-ring trace trK(A) equals the published field-matrix trace tr(A). This includes p=0.

Facts & Assumptions

Given: A field K, a size pN, and a matrix A=(aij)Mp(K).

[L1]

The commutative-ring trace is trK(A)=i<paii, with empty sum zero when p=0 (The trace of a square matrix over a commutative ring).

[L2]

The published field trace is tr(A)=i<paii, with empty sum zero when p=0 (The trace tr(A) as the sum of the diagonal entries).

Proof

technique · direct
1.1

By [L1], the commutative-ring trace of A is the finite diagonal sum i<pAii.

givenL1
1.2

By [L2], the published field trace of A is the same finite diagonal sum.

givenL2
2.1

Comparing steps 1.1 and 1.2 proves equality; for p=0 both are the same empty sum 0K.

step 1.1step 1.2
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Finite weighted directed multigraphs, weighted walks and their transfer matrices

Definition

Let R be a commutative ring (Commutative ring). A finite weighted directed multigraph over R consists of a finite vertex set p={0,,p1}, a finite edge set E, source and target maps s,t:Ep, and a weight map w:ER. Parallel edges and loops are allowed.

A walk of length n from u to v is a sequence (e0,,en1) of edges with s(e0)=u, t(en1)=v, and t(ei)=s(ei+1) whenever i+1<n. Its weight is i<nw(ei). At length zero there is one empty walk from u to u, of weight 1R, and no empty walk between distinct vertices.

The transfer matrix or weighted adjacency matrix is AMp(R) (Finite rectangular matrices over a commutative ring, their entries, rows and columns) defined by

Auv:=eEs(e)=u, t(e)=vw(e).

An empty edge sum is 0R. Rows record sources and columns record targets.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

The (u,v) entry of An is the total weight of length-n walks from u to v

Statement

Let A be the transfer matrix of a finite weighted directed multigraph over a commutative ring R. For every nN and vertices u,v,

(An)uv=W:uv, W=nw(W).

The sum is over all length-n walks from u to v. Powers of a square matrix are the ones given by the recursion A0:=Ip and An+1:=AnA, where p is the number of vertices; the cited matrix laws supply the product and the identity but no power notation, so the recursion is fixed here. At n=0, both sides are 1R when u=v and 0R otherwise.

Facts & Assumptions

Given: A finite weighted directed multigraph over R, its transfer matrix A, vertices u,v, and a length nN.

[L1]

The transfer entry Auv is the sum of the weights of all edges from u to v, and the unique empty walk at a vertex has weight 1R (Finite weighted directed multigraphs, weighted walks and their transfer matrices).

[L2]

Matrix multiplication is (AB)uv=zAuzBzv and the identity matrix has diagonal entries 1 and off-diagonal entries 0 (Entrywise ring-matrix operations, rectangular matrix products, identity matrices and transpose).

[L3]

For matrices over a commutative ring of compatible shapes, A(BC)=(AB)C and ImA=A=AIn, and the entrywise additive and distributive laws hold, including all zero-sized shapes (Matrix arithmetic over a commutative ring is associative, unital and distributive, and transpose reverses products).

Proof

technique · induction
1.1

For n=0, the recursion in the Statement gives A0=Ip, so (A0)uv=(Ip)uv, which is 1R when u=v and 0R otherwise by [L2]; this agrees with the empty-walk convention in [L1], the empty walk being the unique walk of length 0 from u to v and existing only when u=v.

baseL1L2
1.2

Assume the formula at length n. The recursion gives An+1=AnA, so (An+1)uv=z<p(An)uzAzv by the product formula of [L2].

ihL2
2.1

Substitute the induction formula and the edge-sum definition [L1] into step 1.2. The distributive laws of [L3] expand the result into one product for each length-n walk from u to z followed by one edge from z to v.

step 1.2L1L3algebra
3.1

Every length-(n+1) walk has a unique penultimate vertex and last edge, so the expansion in step 2.1 is exactly the total weight of all length-(n+1) walks from u to v.

step 2.1L1
4.1

The base case and induction step prove the formula for all nN.

step 1.1step 3.1discharge-induction
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Formally, (IxA)1=n0Anxn over every commutative coefficient ring

Statement

Let R be a commutative ring, let pN, and let AMp(R). In the matrix ring Mp(Rx),

(IpxA)1=n0Anxn.

The matrix series is defined entrywise. The identity is formal, including p=0, and uses no norm, convergence, or spectral-radius hypothesis.

Facts & Assumptions

Given: A commutative ring R, a size pN, and a matrix AMp(R).

[L1]

Formal series are coefficient functions with Cauchy product [xn](fg)=i=0n[xi]f[xni]g (Formal power series over a commutative ring and the coefficient-extraction functional [xn]).

[L2]

Cauchy multiplication makes Rx a commutative ring containing R[x] (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

[L3]

Matrix products use finite row-column sums and Ip is the identity matrix (Entrywise ring-matrix operations, rectangular matrix products, identity matrices and transpose).

[L4]

Matrix multiplication is associative and distributive, including zero-sized shapes (Matrix arithmetic over a commutative ring is associative, unital and distributive, and transpose reverses products).

Proof

technique · direct
1.1

Define S=n0Anxn entrywise. The constant coefficient of (IpxA)S is Ip, and for every n1 its coefficient is AnAAn1=0.

givenL1L2L3L4
1.2

The same coefficient calculation on the other side gives the constant coefficient Ip and positive coefficient AnAn1A=0 for S(IpxA).

givenL1L2L3L4
2.1

Coefficient extensionality makes both products equal to Ip, so S is the two-sided inverse of IpxA. For p=0 all matrices are the unique empty matrix and the same identity holds.

step 1.1step 1.2L1
TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Transfer-matrix theorem: weighted-walk generating functions are cofactors of IxA divided by det(IxA)

Statement

Let R be a commutative ring, let a finite weighted directed multigraph have p1 vertices and transfer matrix A, and put M(x)=IpxA. For vertices u,v,

n0(W:uv, W=nw(W))xn=(M1)uv=(1)u+vdetM(v,u)detM.

The quotient is a rational formal power series over R because detM has constant coefficient 1R.

Facts & Assumptions

Given: A nonempty finite weighted directed multigraph over R, its p×p transfer matrix A, vertices u,v, and M=IpxA.

[L1]

The (u,v) entry of An is the total weight of length-n walks from u to v (The (u,v) entry of An is the total weight of length-n walks from u to v).

[L2]

Formally, M1=n0Anxn over every commutative coefficient ring (Formally, (IxA)1=n0Anxn over every commutative coefficient ring).

[L3]

The adjugate satisfies adj(M)uv=(1)u+vdetM(v,u) (Deleted-row-and-column minors, cofactors, the cofactor matrix and the adjugate over a commutative ring).

[L4]

For a positive-sized square matrix, Madj(M)=adj(M)M=det(M)I (For every positive-sized square matrix over a commutative ring, Aadj(A)=adj(A)A=det(A)I).

[L5]

If det(M) is a unit, then M1=det(M)1adj(M) (If det(A) is a unit, then A1=det(A)1adj(A)).

[L7]

A formal series is a unit exactly when its constant coefficient is a unit (A formal power series is a unit exactly when its constant coefficient is a unit).

Proof

technique · direct
1.1

By [L2], the (u,v) entry of M1 is n0(An)uvxn, and [L1] identifies each coefficient with the total weight of the corresponding walks.

givenL1L2
1.2

Setting x=0 gives M(0)=Ip. In the Leibniz sum [L6], only the identity permutation contributes to det(Ip), so detM has constant coefficient 1R and is a unit by [L7].

givenL6L7
2.1

Apply [L4] and [L5] over the commutative ring Rx from [L8] to obtain M1=det(M)1adj(M).

step 1.2L4L5L8
3.1

Taking the (u,v) entry in step 2.1 and using [L3] gives (M1)uv=(1)u+vdetM(v,u)/detM.

step 2.1L3
4.1

Combining steps 1.1 and 3.1 proves the formula, with no analytic hypothesis. The assumption p1 is exactly the positive-size domain of [L3] through [L6].

step 1.1step 3.1L3L6
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

ddxdet(IxA)=tr(adj(IxA)A)

Statement

Let R be a commutative ring, let p1, let AMp(R), and put M(x)=IpxA. Then, with the formal derivative,

ddxdetM(x)=trR[x](adj(M(x))A).

The subscript names the coefficient ring the trace is taken over. Since adj(M(x))A has entries in R[x], not in R, the trace here is the one belonging to the commutative ring R[x]; the defining formula i<paii is the same.

Facts & Assumptions

Given: A commutative ring R, a positive size p, a matrix AMp(R), and M=IpxA.

[L1]

The ring trace is the finite sum of the diagonal entries (The trace of a square matrix over a commutative ring).

[L2]

The adjugate is the transpose of the cofactor matrix, so adj(M)ij=Cji(M) (Deleted-row-and-column minors, cofactors, the cofactor matrix and the adjugate over a commutative ring).

[L3]

The determinant is the Leibniz sum det(M)=σsgn(σ)iMσ(i),i (For n1, the determinant over a commutative ring by the Leibniz formula, and detA for a real matrix).

[L4]

The formal derivative is coefficientwise and sends x to 1 and constants to 0 (The formal derivative D(anxn)=n1nanxn1).

Proof

technique · direct
1.1

Differentiate the finite Leibniz sum [L3]. By [L5], each product contributes one term for each selected matrix entry, and grouping all terms that differentiate Mij leaves its cofactor Cij(M).

givenL3L5
1.2

By [L1] and matrix multiplication, trR(adj(M)A)=ijadj(M)ijAji. Using [L2] and renaming the finite indices gives i,jCij(M)Aij.

L1L2algebra
2.1

Thus (detM)=i,jCij(M)Mij. Since M=A by [L4], this is i,jCij(M)Aij.

step 1.1L4algebra
3.1

Comparing steps 2.1 and 1.2 gives the displayed derivative identity. Positive size supplies every cofactor used in [L2].

step 2.1step 1.2L2
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

Closed walks have trace and logarithmic-derivative generating functions

Statement

Let R be a commutative ring, let p1, let AMp(R) be a transfer matrix, and put Q(x)=det(IpxA). Then

n0trR(An)xn=trR[x](adj(IpxA))Q(x),

and

n1trR(An)xn=xQ(x)Q(x).

The coefficient trR(An) is the total weight of all closed walks of length n. Each trace subscript names the commutative ring its argument's entries lie in: AnMp(R), while adj(IpxA) has entries in R[x], so that numerator is trR[x]. The defining formula i<paii is the same in each case. The second expression is a formal logarithmic derivative; no logarithm or convergence is required.

Facts & Assumptions

Given: A positive-sized transfer matrix A over a commutative ring R, M=IpxA, and Q=detM.

[L1]

The transfer-matrix formula identifies each entry of M1 with the corresponding weighted-walk series and with an adjugate entry divided by Q (Transfer-matrix theorem: weighted-walk generating functions are cofactors of IxA divided by det(IxA)).

[L2]

The determinant derivative satisfies Q=trR[x](adj(M)A), the trace being over R[x] where those entries lie (ddxdet(IxA)=tr(adj(IxA)A)).

[L3]

The ring trace is the finite sum of diagonal entries, including the empty-sum convention (The trace of a square matrix over a commutative ring).

Proof

technique · direct
1.1

Sum the diagonal instances of [L1]. By [L3], the left side is n0trR(An)xn and the numerator on the right is trR[x](adj(M)), proving the first identity and the closed-walk interpretation.

givenL1L3
1.2

From [L1], M1=n0Anxn=adj(M)/Q. Multiplying by A, taking the trace over Rx where M1A has its entries, and then multiplying by x gives xtrRx(M1A)=n1trR(An)xn, the right-hand coefficients being the traces over R of the matrices An.

L1L3algebra
2.1

Dividing [L2] by the unit Q gives xQ/Q=xtrRx(M1A). Combine this with step 1.2 to obtain the second identity.

step 1.2L2algebra
3.1

Both calculations take place in Rx, so they require no topology or spectral-radius assumption.

step 1.1step 2.1
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Let K be a field, p1, and AMp(K). If χA(t)=i<p(tλi) in K[t], then the transfer-matrix trace series is i<p(1λix)1

Statement

Let K be a field, let p1, and let AMp(K). Suppose that its characteristic polynomial is displayed as a product of linear factors in the base field,

χA(t)=i<p(tλi)in K[t],

where roots are repeated according to algebraic multiplicity. Then

tr(An)=i<pλin(n0),

and, formally,

n0tr(An)xn=i<p11λix.

When A is a transfer matrix, this is the eigenvalue form of its closed-walk trace series.

Facts & Assumptions

Given: A field K, a positive size p, a matrix AMp(K), and the displayed split factorisation of χA in K[t].

[L1]

For a transfer matrix, the closed-walk series is n0trK(An)xn (Closed walks have trace and logarithmic-derivative generating functions).

[L4]

The trace of an endomorphism equals the trace of any representing matrix (The basis-independent trace of an endomorphism of a finite-dimensional vector space).

[L7]

The case j=1 of the repeated-pole formula is (1λx)1=n0λnxn (Repeated poles expand formally as (1λx)j=n0(n+j1j1)λnxn).

[L8]

Over a field, the commutative-ring matrix trace equals the published matrix trace (For matrices over a field, the commutative-ring trace agrees with the published matrix trace).

Proof

technique · direct
1.1

Let TA be the coordinate endomorphism from [L2]. By [L3], the given factorisation is also χTA(t)=i<p(tλi).

givenL2L3
2.1

Apply [L5] to q(t)=tn. The roots of χTAn are λin with the displayed multiplicities, so [L6] gives tr(TAn)=i<pλin.

step 1.1L5L6
3.1

By [L4] and [L8], the left side in step 2.1 is tr(An) in either trace convention. This proves the coefficient formula, including n=0.

step 2.1L4L8
4.1

Multiply the coefficient formula by xn, sum formally over n0, and apply [L7] to each of the finitely many roots; this yields the displayed rational-series identity.

step 3.1L7algebra
5.1

If A is a transfer matrix, [L1] identifies the left side of step 4.1 with its closed-walk trace series. The split factorisation was assumed at the outset and is not inferred from algebraic closure or diagonalisation.

step 4.1L1
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-16Open item page →

Finite words, contiguous factors, avoidance and proper-prefix states

Definition

Let Σ be a finite set, called an alphabet. A word of length n over Σ is a function from the natural number n={0,,n1} (The natural numbers N (von Neumann)) to Σ, written a0a1an1. The unique word of length zero is the empty word ε. Concatenation of words u and v is denoted by uv.

A word u is a contiguous factor of w=a0an1 if u=aiai+r1 for some 0ii+rn. It is a prefix if i=0, a suffix if i+r=n, and a proper prefix if it is a prefix other than the whole word.

For a set B of words, a word avoids B if none of its contiguous factors belongs to B. Its set of proper-prefix states is

SB:={u:u avoids B and u is a proper prefix of some bB}.

If B is nonempty and every word in B is nonempty, then εSB. If B is finite, then SB is finite.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

The longest-suffix prefix automaton for a finite set of forbidden factors

Definition

Let Σ be a finite alphabet and let B be a finite nonempty set of nonempty words over Σ. With SB as in Finite words, contiguous factors, avoidance and proper-prefix states, the prefix automaton for B has state set SB, initial state ε, and the following transitions.

For sSB and aΣ, reject the letter a if the concatenation sa contains a factor in B. Otherwise define δ(s,a) to be the longest suffix of sa that belongs to SB, and put an edge labelled a from s to δ(s,a). This state exists because εSB, and it is unique because suffixes of distinct lengths are distinct.

For enumeration, give every edge weight 1 over Z. Different letters that induce the same transition remain parallel edges, so the associated transfer-matrix entry is the number of such letters.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-16Open item page →

Words over a finite alphabet avoiding finitely many nonempty factors have a rational length generating function

Statement

Let Σ be a finite alphabet and let B be a finite set of nonempty words over Σ. If an is the number of length-n words over Σ that avoid every factor in B, then

A(x):=n0anxn

is a rational formal power series over Z.

Facts & Assumptions

Given: A finite alphabet Σ and a finite set B of nonempty words.

[L1]

A rational formal series has a polynomial numerator and a polynomial denominator with unit constant coefficient (Rational formal power series, proper presentations and reduced denominators).

[L2]

For nonempty B, the prefix automaton retains the longest suffix that is a proper prefix of a forbidden word and rejects a transition that creates a forbidden factor (The longest-suffix prefix automaton for a finite set of forbidden factors).

[L3]

For a finite weighted digraph with transfer matrix M, the total weight of length-n walks from u to v is (Mn)uv (The (u,v) entry of An is the total weight of length-n walks from u to v).

[L4]

Every fixed-entry walk generating series of a nonempty finite weighted digraph is a cofactor of IxM divided by det(IxM), hence rational (Transfer-matrix theorem: weighted-walk generating functions are cofactors of IxA divided by det(IxA)).

[L5]

Finite sums of rational formal power series are rational (Rational formal power series are closed under sums and Cauchy products).

Proof

technique · automaton invariant and transfer matrix
1.1

If B= and q=Σ, then an=qn and (1qx)n0qnxn=1 coefficientwise, so [L1] makes A(x)=1/(1qx) rational.

givenL1algebra
1.2

Suppose now that B is nonempty. After a word w avoiding B has been read, the automaton state is the longest suffix of w belonging to SB: this holds initially at ε, and repeated application of [L2] preserves it as each accepted letter is appended.

givenL2
2.1

Let w avoid B, let s be its state from step 1.2, and let aΣ. If wa contains a forbidden factor b, that factor ends at the appended letter, so b=ba with b a suffix of w; and b avoids B and is a proper prefix of bB, so bSB. Since s is the longest suffix of w in SB, the word b is a suffix of s, so b is a factor of sa and [L2] rejects a. Conversely, s is a suffix of w, so any factor of sa in B is a factor of wa. Thus [L2] rejects exactly the extensions that cease to avoid B.

step 1.2L2
3.1

Steps 1.2 and 2.1 give a weight-preserving bijection between length-n words avoiding B and length-n walks in the prefix automaton from ε to any state in SB.

step 1.2step 2.1
4.1

By [L3], an=vSB(Mn)εv. Each series n0(Mn)εvxn is rational by [L4], and their finite sum is rational by [L5]. Together with the empty-B case in step 1.1, this proves the result.

step 1.1step 3.1L3L4L5
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16Open item page →

Binary words avoiding any fixed nonempty factor have a rational length generating function

Statement

Fix a nonempty binary word w. If an is the number of words in {0,1}n that do not contain w as a contiguous factor, then n0anxn is a rational formal power series over Z.

Facts & Assumptions

Given: A nonempty word w over the finite alphabet {0,1}.

[L1]

Words over a finite alphabet that avoid a finite set of nonempty factors have a rational length generating function (Words over a finite alphabet avoiding finitely many nonempty factors have a rational length generating function).

Proof

technique · specialization
1.1

The alphabet {0,1} is finite, and B={w} is a finite set of nonempty words.

given
2.1

Apply [L1] using step 1.1. Its conclusion is the asserted rationality.

step 1.1L1

5 · Examples, counterexamples and false statements

None yet.

Sources

Standard references

Recommended treatments; not extraction sources.