Lemma (derivation in regular grammar)
Let $G = (Σ, V, P, S)$ be a regular grammar.
Suppose $α\in Ω^\ast$ and $S \xrightarrow{G} α$. Either
-
$α = wA$ for some $w\in \mathbb{W}$ and $A\in V$; or
-
$α \in \mathbb{W}$, in which case any derivation of $α$ has length $|α|$:
-
the final step is an application of a terminal rule, creating the final letter in $α$, and
-
the other steps are application of nonterminal rules.
-