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.
Words over a finite alphabet avoiding finitely many nonempty factors have a rational length generating function
Statement
Let be a finite alphabet and let be a finite set of nonempty words over . If is the number of length- words over that avoid every factor in , then
is a rational formal power series over .
Facts & Assumptions
Given: A finite alphabet and a finite set of nonempty words.
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).
For nonempty , 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).
For a finite weighted digraph with transfer matrix , the total weight of length- walks from to is (The entry of is the total weight of length- walks from to ).
Every fixed-entry walk generating series of a nonempty finite weighted digraph is a cofactor of divided by , hence rational (Transfer-matrix theorem: weighted-walk generating functions are cofactors of divided by ).
Finite sums of rational formal power series are rational (Rational formal power series are closed under sums and Cauchy products).
Proof
If and , then and coefficientwise, so [L1] makes rational.
Suppose now that is nonempty. After a word avoiding has been read, the automaton state is the longest suffix of belonging to : this holds initially at , and repeated application of [L2] preserves it as each accepted letter is appended.
Let avoid , let be its state from step 1.2, and let . If contains a forbidden factor , that factor ends at the appended letter, so with a suffix of ; and avoids and is a proper prefix of , so . Since is the longest suffix of in , the word is a suffix of , so is a factor of and [L2] rejects . Conversely, is a suffix of , so any factor of in is a factor of . Thus [L2] rejects exactly the extensions that cease to avoid .
Steps 1.2 and 2.1 give a weight-preserving bijection between length- words avoiding and length- walks in the prefix automaton from to any state in .
By [L3], . Each series is rational by [L4], and their finite sum is rational by [L5]. Together with the empty- case in step 1.1, this proves the result.
Depends on
- Rational formal power series, proper presentations and reduced denominators
- The longest-suffix prefix automaton for a finite set of forbidden factors
- The $(u,v)$ entry of $A^n$ is the total weight of length-$n$ walks from $u$ to $v$
- Transfer-matrix theorem: weighted-walk generating functions are cofactors of $I-xA$ divided by $\det(I-xA)$
- Rational formal power series are closed under sums and Cauchy products
Used by
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 41 results over 10 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.
Sources
- R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed., Proposition 4.7.8 (standard reference, not scraped)