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.
The published prefix automata extend canonically to DFAs for factor-avoidance languages
Statement
Let be a finite alphabet and let be a finite nonempty set of nonempty words over . Starting from the published prefix automaton on , adjoin a new sink state , send every previously rejected letter to , let loop on every letter, and declare every state in accepting while is rejecting.
The resulting machine is a DFA over , and it recognizes exactly the language of words over that avoid every factor in .
Facts & Assumptions
Given: A finite alphabet and a finite nonempty set of nonempty words over .
The set consists of the words that avoid and are proper prefixes of words in ; it is finite, and , by Finite words, contiguous factors, avoidance and proper-prefix states.
In the published prefix automaton, if still avoids then the edge labelled from goes to the longest suffix of that lies in ; if contains a forbidden factor, the letter is rejected, by The longest-suffix prefix automaton for a finite set of forbidden factors.
A word is accepted by a DFA exactly when the final state lies in the accepting set, by Acceptance of a word by a DFA and the recognized language.
Proof
Define to have state set , start state , accepting set , and transition rule By [L1] and [L2], this is a total transition function on a finite state set, so is a DFA.
We prove by induction on the length of a word that the run of from behaves as follows: if avoids , the final state is the longest suffix of belonging to ; if contains a forbidden factor, the final state is . The induction step is exactly the two cases built into the definition of in step 1.1.
If avoids , then step 2.1 places the run in a state of , hence [L3] says that accepts . If contains a factor in , then step 2.1 places the run in , so [L3] says that rejects .
Therefore is exactly the language of words over that avoid every forbidden factor in .
Depends on
Used by
Dependency tree · two levels
12 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed., Example 4.7.7 and Proposition 4.7.8 (standard reference, not scraped)