Alphabeta Math
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⁡(I−xA), 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)n≥0 be a sequence in K, and let d≥1. A constant-coefficient linear recurrence of order d starting at N is an identity

an+d+c1an+d−1+⋯+cdan=0(n≥N),

where c1,…,cd∈K and cd≠0. Its characteristic polynomial and reciprocal denominator are

χ(t)=td+c1td−1+⋯+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 n≥N; 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:Z→K, the same displayed identity is a recurrence of order d when it holds for every n∈Z. The condition cd≠0 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 F∈R⟦x⟧ (Formal power series over a commutative ring and the coefficient-extraction functional [xn]) is rational if there are polynomials P,Q∈R[x] such that Q(0) is a unit and

QF=P

in R⟦x⟧. Equivalently, F=P/Q, where Q−1 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<deg⁡Q (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 d≥1, let c1,…,cd∈K with cd≠0, 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+d−1+⋯+cdan=0 for every n≥0;
  3. the space of polynomials P with P=0 or deg⁡P<d;
  4. the space of formal series P/Q with P=0 or deg⁡P<d.

Each space has dimension d.

Facts & Assumptions

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

[L1]

An order-d recurrence from the start is an+d+c1an+d−1+⋯+cdan=0 for every n≥0 (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 deg⁡P<deg⁡Q (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[xn−i]F (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

Proof

technique · direct
1.1givenL1construct

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

1.2L1L3

For a recurrence sequence with F=∑n≥0anxn, [L3] gives [xm](QF)=am+c1am−1+⋯+cdam−d for m≥d, so every such coefficient is zero by [L1] and P:=QF has degree below d or is zero.

1.3L2

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

2.1step 1.1algebra

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

2.2step 1.2L3

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

3.1step 2.1step 2.2step 1.3L4∎

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.

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)n≥0 be a sequence in K, and let F(x)=∑n≥0anxn. 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 d≥1 and cd≠0. 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)n≥0, and its formal generating function F=∑n≥0anxn.

[L1]

For fixed Q(x)=1+c1x+⋯+cdxd with d≥1 and cd≠0, 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 0≠Q∈K[x] and P∈K[x], there are unique D,R∈K[x] with P=DQ+R and either R=0 or deg⁡R<deg⁡Q (Division algorithm for polynomials over a field).

Proof

technique · direct
1.1givenL1algebra

Suppose first that a satisfies an order-d recurrence from index N. For m≥N+d, coefficient extraction gives [xm](QF)=am+c1am−1+⋯+cdam−d=0, so QF is a polynomial and F=(QF)/Q is rational.

1.2given

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

1.3givenL2algebra

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 deg⁡R<deg⁡Q; then F=D+R/Q.

2.1step 1.3L1

If deg⁡Q=d≥1, [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.

3.1step 1.1step 2.1algebra∎

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.

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 d≥1, and coefficients c1,…,cd∈K with cd≠0. For every initial list (u0,…,ud−1)∈Kd, there is exactly one sequence (an)n≥0 satisfying

an+d+c1an+d−1+⋯+cdan=0(n≥0)

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.1givenL1

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

2.1step 1.1L1∎

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.

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=∑n≥0anxn∈K⟦x⟧ 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 deg⁡Q, with the convention that deg⁡1=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.1givenL1

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.

2.1step 1.1L2algebra

Since P and Q are coprime in the UFD K[x], the identity PD=AQ forces Q∣D; therefore deg⁡Q≤e.

3.1step 2.1L1∎

If deg⁡Q>0, the presentation P/Q itself gives by [L1] an eventual recurrence of order deg⁡Q, 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.

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.1given

The difference H(x)=∑n≥0(an−bn)xn has finite support, so it is a polynomial.

2.1step 1.1algebra

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

3.1step 2.1L1

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

4.1step 3.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.

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−(x−1) in K(x)

Statement

Let K be a field, let d≥1, and let f:Z→K satisfy

f(n+d)+c1f(n+d−1)+⋯+cdf(n)=0(n∈Z),

where cd≠0. Put

F+(x)=∑n≥0f(n)xn,F−(x)=∑n≥1f(−n)xn.

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

F+(x)=−F−(x−1).

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

r=min⁡{n≥0:f(n)≠0},s=min⁡{n≥1:f(−n)≠0},

then r=min⁡{j≥0:βj≠0} and f(r)=βr, while s=d−deg⁡P and f(−s)=−cd−1βd−s. Finally,

F+(x)=±xr−sF+(x−1)

holds exactly when f(n)=∓f(−n+r−s) for every n∈Z. If P=0, the recurrence and cd≠0 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,Q∈K[x], Q≠0} (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.1givenL1

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

2.1givenstep 1.1algebra

In the vector space of all formal sums ∑n∈Zanxn, multiplication by the polynomial Q is coefficientwise finite. The recurrence says Q∑n∈Zf(n)xn=0, so linearity gives Q(x)∑n≥1f(−n)x−n=−Q(x)F+(x)=−P(x).

2.2step 1.1algebra

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:βj≠0} and f(r)=βr.

3.1step 2.1L2algebra

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

4.1step 3.1algebra

Rewriting −P(x−1)/Q(x−1) as −cd−1xdP(x−1)/(1+cd−1cd−1x+⋯+cd−1xd) shows that its first nonzero term has degree s=d−deg⁡P and coefficient −cd−1βd−s, proving the negative-side clauses.

5.1step 3.1step 2.2step 4.1algebra

Apply the main identity to replace F+(x−1) by −F−(x); coefficient comparison then shows that F+(x)=±xr−sF+(x−1) is equivalent to f(n)=∓f(−n+r−s) for every integer n.

6.1step 1.1given∎

If P=0, then F+=0, so f(n)=0 for n≥0; solving the recurrence backwards using cd≠0 gives f(n)=0 for all n∈Z, and the main identity remains valid.

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,G∈R⟦x⟧ 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.1givenL1L2

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

2.1step 1.1L1algebra∎

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.

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=∑n≥0anxn and G=∑n≥0bnxn are rational formal power series over K, then their Hadamard product

F∗G:=∑n≥0anbnxn

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.1givenL1

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.

2.1step 1.1L1

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,e≥1.

3.1step 1.1step 2.1algebra

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

4.1step 3.1L2algebra

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).

5.1step 1.1step 2.1step 4.1L1∎

Applying [L1] to the product sequence in step 4.1 proves that F∗G 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.

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+c1td−1+⋯+cd

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

χ(t)=∏i(t−λi)mi⟺Q(x)=∏i(1−λix)mi.

The roots of Q are the reciprocals λi−1, 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,…,λs∈E be pairwise distinct and nonzero, let mi≥1, and put

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

For every P∈E[x] with P=0 or deg⁡P<deg⁡Q, there are unique scalars bij∈E such that

P(x)Q(x)=∑i=1s∑j=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.1givenL2L3

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.

2.1step 1.1L2algebra

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

3.1step 2.1algebra

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

4.1step 1.1step 3.1L2

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

5.1step 2.1step 3.1step 4.1L1∎

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

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=∑n≥0(n+j−1j−1)λnxn

Statement

Let R be a commutative ring, let λ∈R, and let j≥1. In R⟦x⟧,

1(1−λx)j=∑n≥0(n+j−1j−1)λ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 j≥1.

[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[xn−i]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.1baseL1L2L3

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

2.1ihstep 1.1L2

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

3.1step 2.1L3L4

Terms below j−1 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.

4.1step 1.1step 3.1discharge-induction∎

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

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)n≥0 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 pi∈E[z] with deg⁡pi<mi such that

an=∑i=1spi(n)λin(n≥0).

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+j−1j−1)λn (Repeated poles expand formally as (1−λx)−j=∑n≥0(n+j−1j−1)λ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 n≥1 with n⋅1R=0 when one exists, and 0 otherwise).

Proof

technique · direct
1.1givenL1L2L5

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

1.2L6L7algebra

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

2.1step 1.2L1L2L4algebra

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.

2.2step 1.1L3L4

Apply [L3] and then [L4] to obtain an=∑i=1s∑j=1mibij(n+j−1j−1)λin.

3.1step 2.2step 1.2L3

Step 1.2 rewrites each coefficient (n+j−1j−1) 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.

4.1step 3.1step 2.1L2∎

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

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 d≥1, and let

χ(t)=td+c1td−1+⋯+cd.

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

Ci,i+1=1(0≤i<d−1),Cd−1,j=−cd−j(0≤j<d),

with all other entries zero. Thus

C=(010⋯0001⋯0⋮⋱⋮000⋯1−cd−cd−1−cd−2⋯−c1).

For a recurrence sequence a, its state at time n is the column vector vn=(an,an+1,…,an+d−1)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+d−1)T. Then

vn+1=Cvnandvn=Cnv0

for every n≥0.

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,−cd−1,…,−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.1givenL1L2

Multiplying C by vn, the first d−1 rows return an+1,…,an+d−1 and the final row returns −cdan−⋯−c1an+d−1=an+d, so Cvn=vn+1.

1.2baseL2L3

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

2.1ihstep 1.1L3

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

3.1step 1.2step 2.1discharge-induction∎

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

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 d≥1, and let C be the row-shift companion matrix associated with

χ(t)=td+c1td−1+⋯+cd.

Then the matrix characteristic polynomial is exactly

χC(t)=det⁡(tId−C)=td+c1td−1+⋯+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.1baseL1L2

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

1.2ihL1L2

Assume the formula for size d−1. In tId−C, the first column has only two nonzero entries: t in row 0 and cd in row d−1.

2.1step 1.2L3

Expanding that column by [L3], the cofactor of t is the size-(d−1) companion determinant td−1+c1td−2+⋯+cd−1 by the induction hypothesis.

2.2step 1.2L3algebra

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

3.1step 2.1step 2.2algebra

Therefore det⁡(tId−C)=t(td−1+c1td−2+⋯+cd−1)+cd, which is the claimed polynomial.

4.1step 1.1step 3.1discharge-induction∎

The base case and induction step prove the formula for every d≥1.

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 n≥1, and let A∈Mn(K) be invertible. Write

χA(t)=tn+b1tn−1+⋯+bn.

Then bn≠0, and for every pair u,v<n the sequence m↦(Am)uv, as well as the sequence m↦tr⁡(Am), satisfies from m=0 the order-n recurrence

sm+n+b1sm+n−1+⋯+bnsm=0.

Facts & Assumptions

Given: A field K, a positive size n, and an invertible matrix A∈Mn(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.1givenL1L2L3

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

1.2L4L6algebra

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

2.1step 1.1algebra

Multiplying the identity in step 1.1 by Am gives Am+n+b1Am+n−1+⋯+bnAm=0 for every m≥0.

3.1step 2.1L5algebra

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.

4.1step 3.1step 1.2∎

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

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)n≥0 and Lucas sequence (Ln)n≥0 are defined by

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

and, for every n≥0,

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 t2−t−1 and reciprocal denominator 1−x−x2. 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 p∈N, 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

tr⁡R(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 p∈N, and let A∈Mp(K). Then the commutative-ring trace tr⁡K(A) equals the published field-matrix trace tr⁡(A). This includes p=0.

Facts & Assumptions

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

[L1]

The commutative-ring trace is tr⁡K(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.1givenL1

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

1.2givenL2

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

2.1step 1.1step 1.2∎

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

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,…,p−1}, a finite edge set E, source and target maps s,t:E→p, and a weight map w:E→R. Parallel edges and loops are allowed.

A walk of length n from u to v is a sequence (e0,…,en−1) of edges with s(e0)=u, t(en−1)=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 A∈Mp(R) (Finite rectangular matrices over a commutative ring, their entries, rows and columns) defined by

Auv:=∑e∈Es(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 n∈N and vertices u,v,

(An)uv=∑W:u⇝v, ∣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 n∈N.

[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.1baseL1L2

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.

1.2ihL2

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].

2.1step 1.2L1L3algebra

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.

3.1step 2.1L1

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.

4.1step 1.1step 3.1discharge-induction∎

The base case and induction step prove the formula for all n∈N.

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

Formally, (I−xA)−1=∑n≥0Anxn over every commutative coefficient ring

Statement

Let R be a commutative ring, let p∈N, and let A∈Mp(R). In the matrix ring Mp(R⟦x⟧),

(Ip−xA)−1=∑n≥0Anxn.

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 p∈N, and a matrix A∈Mp(R).

[L1]

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

[L2]

Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] (Cauchy multiplication makes R⟦x⟧ 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.1givenL1L2L3L4

Define S=∑n≥0Anxn entrywise. The constant coefficient of (Ip−xA)S is Ip, and for every n≥1 its coefficient is An−AAn−1=0.

1.2givenL1L2L3L4

The same coefficient calculation on the other side gives the constant coefficient Ip and positive coefficient An−An−1A=0 for S(Ip−xA).

2.1step 1.1step 1.2L1∎

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

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 I−xA divided by det⁡(I−xA)

Statement

Let R be a commutative ring, let a finite weighted directed multigraph have p≥1 vertices and transfer matrix A, and put M(x)=Ip−xA. For vertices u,v,

∑n≥0(∑W:u⇝v, ∣W∣=nw(W))xn=(M−1)uv=(−1)u+vdet⁡M(v,u)det⁡M.

The quotient is a rational formal power series over R because det⁡M 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=Ip−xA.

[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, M−1=∑n≥0Anxn over every commutative coefficient ring (Formally, (I−xA)−1=∑n≥0Anxn over every commutative coefficient ring).

[L3]

The adjugate satisfies adj⁡(M)uv=(−1)u+vdet⁡M(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 M−1=det⁡(M)−1adj⁡(M) (If det⁡(A) is a unit, then A−1=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.1givenL1L2

By [L2], the (u,v) entry of M−1 is ∑n≥0(An)uvxn, and [L1] identifies each coefficient with the total weight of the corresponding walks.

1.2givenL6L7

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

2.1step 1.2L4L5L8

Apply [L4] and [L5] over the commutative ring R⟦x⟧ from [L8] to obtain M−1=det⁡(M)−1adj⁡(M).

3.1step 2.1L3

Taking the (u,v) entry in step 2.1 and using [L3] gives (M−1)uv=(−1)u+vdet⁡M(v,u)/det⁡M.

4.1step 1.1step 3.1L3L6∎

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

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

ddxdet⁡(I−xA)=−tr⁡(adj⁡(I−xA)A)

Statement

Let R be a commutative ring, let p≥1, let A∈Mp(R), and put M(x)=Ip−xA. Then, with the formal derivative,

ddxdet⁡M(x)=−tr⁡R[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 A∈Mp(R), and M=Ip−xA.

[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 n≥1, the determinant over a commutative ring by the Leibniz formula, and ∣det⁡A∣ for a real matrix).

[L4]

The formal derivative is coefficientwise and sends x to 1 and constants to 0 (The formal derivative D(∑anxn)=∑n≥1nanxn−1).

Proof

technique · direct
1.1givenL3L5

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).

1.2L1L2algebra

By [L1] and matrix multiplication, tr⁡R(adj⁡(M)A)=∑i∑jadj⁡(M)ijAji. Using [L2] and renaming the finite indices gives ∑i,jCij(M)Aij.

2.1step 1.1L4algebra

Thus (det⁡M)′=∑i,jCij(M)Mij′. Since M′=−A by [L4], this is −∑i,jCij(M)Aij.

3.1step 2.1step 1.2L2∎

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

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 p≥1, let A∈Mp(R) be a transfer matrix, and put Q(x)=det⁡(Ip−xA). Then

∑n≥0tr⁡R(An)xn=tr⁡R[x](adj⁡(Ip−xA))Q(x),

and

∑n≥1tr⁡R(An)xn=−xQ′(x)Q(x).

The coefficient tr⁡R(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: An∈Mp(R), while adj⁡(Ip−xA) has entries in R[x], so that numerator is tr⁡R[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=Ip−xA, and Q=det⁡M.

[L1]

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

[L2]

The determinant derivative satisfies Q′=−tr⁡R[x](adj⁡(M)A), the trace being over R[x] where those entries lie (ddxdet⁡(I−xA)=−tr⁡(adj⁡(I−xA)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.1givenL1L3

Sum the diagonal instances of [L1]. By [L3], the left side is ∑n≥0tr⁡R(An)xn and the numerator on the right is tr⁡R[x](adj⁡(M)), proving the first identity and the closed-walk interpretation.

1.2L1L3algebra

From [L1], M−1=∑n≥0Anxn=adj⁡(M)/Q. Multiplying by A, taking the trace over R⟦x⟧ where M−1A has its entries, and then multiplying by x gives xtr⁡R⟦x⟧(M−1A)=∑n≥1tr⁡R(An)xn, the right-hand coefficients being the traces over R of the matrices An.

2.1step 1.2L2algebra

Dividing [L2] by the unit Q gives −xQ′/Q=xtr⁡R⟦x⟧(M−1A). Combine this with step 1.2 to obtain the second identity.

3.1step 1.1step 2.1∎

Both calculations take place in R⟦x⟧, so they require no topology or spectral-radius assumption.

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, p≥1, and A∈Mp(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 p≥1, and let A∈Mp(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(n≥0),

and, formally,

∑n≥0tr⁡(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 A∈Mp(K), and the displayed split factorisation of χA in K[t].

[L1]

For a transfer matrix, the closed-walk series is ∑n≥0tr⁡K(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=∑n≥0λnxn (Repeated poles expand formally as (1−λx)−j=∑n≥0(n+j−1j−1)λ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.1givenL2L3

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

2.1step 1.1L5L6

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

3.1step 2.1L4L8

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.

4.1step 3.1L7algebra

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

5.1step 4.1L1∎

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.

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,…,n−1} (The natural numbers N (von Neumann)) to Σ, written a0a1⋯an−1. 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=a0⋯an−1 if u=ai⋯ai+r−1 for some 0≤i≤i+r≤n. 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 b∈B}.

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 s∈SB 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):=∑n≥0anxn

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 I−xM divided by det⁡(I−xM), hence rational (Transfer-matrix theorem: weighted-walk generating functions are cofactors of I−xA divided by det⁡(I−xA)).

[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.1givenL1algebra

If B=∅ and q=∣Σ∣, then an=qn and (1−qx)∑n≥0qnxn=1 coefficientwise, so [L1] makes A(x)=1/(1−qx) rational.

1.2givenL2

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.

2.1step 1.2L2

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=b′a with b′ a suffix of w; and b′ avoids B and is a proper prefix of b∈B, so b′∈SB. 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.

3.1step 1.2step 2.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.

4.1step 1.1step 3.1L3L4L5∎

By [L3], an=∑v∈SB(Mn)εv. Each series ∑n≥0(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.

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 ∑n≥0anxn 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.1given

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

2.1step 1.1L1∎

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

5 · Examples, counterexamples and false statements

None yet.

Sources