A grammar is a right-linear regular grammar when every production has one of the forms
where and . Thus a production has at most one variable on its right-hand side, and that variable is at the right end.
We prove the claim by induction on the length of the grammar derivation from . At length zero the sentential form is , which has the required form.
Suppose the current sentential form is . Because is terminal, the only symbol to which a production can apply is . A production produces
again a terminal word followed by one variable. A production produces the terminal word . Once a completely terminal word is reached, no further production can apply. The induction proves the sentential form of a right-linear regular grammar: every reachable is either or .
In every derivation beginning at , the terminal prefix remains unchanged because no production has a terminal on its left-hand side. By the sentential-form result, each step rewrites the sole variable at the right and appends terminals immediately before its successor variable. Hence
forces for some . Removing the inert prefix from every sentential form in the derivation gives
An accepting derivation in a right-linear grammar has the form
with one active variable until the final terminal production.
If no variable repeated on any accepting derivation, an accepting derivation could contain at most variable occurrences. Since the production set is finite, only finitely many such derivations and hence finitely many terminal words would exist. The hypothesis that is infinite therefore supplies an accepting derivation in which some variable occurs twice.
Split this derivation at the two occurrences:
where . The first segment makes an accessible variable of a regular grammar, the middle segment makes it a looping variable of a regular grammar, and the last makes it a terminable variable of a regular grammar. Thus has all three properties, proving the accessible looping terminable variable criterion.

Articles by others on the same topic (0)

There are currently no matching articles.