The pumping lemma for regular languages states that for every regular language there is an integer such that every with can be writtenwith
To prove it, let a deterministic finite automaton with states recognize . During the reading of the first symbols of an accepted word , the automaton visits states, including the initial state. By the pigeonhole principle, two of them agree, say with . Let be the first symbols, the next symbols, and the remaining suffix. Reading is a nonempty closed path from to itself. Traversing this path any number of times and then reading therefore reaches the same accept state. This proves all three assertions.
Because is minimal, every state is accessible. Choose a word taking the initial state to , and let the nonempty word label the closed path . If a word took to an accept state, thenThese words have strictly increasing lengths because , contradicting the assumption that is finite. Hence no accept state is reachable from .
Suppose a path took to a state . Part (i) implies that no accept state is reachable from either or . Thus every possible continuation is rejected from both states, so and are indistinguishable states of a deterministic finite automaton. Distinct indistinguishable states cannot occur in a minimal deterministic finite automaton. Therefore , and there is no path from to any other state.
Equivalently, a cycle state in a minimal deterministic finite automaton for a finite language is the unique rejecting sink.
Articles by others on the same topic
There are currently no matching articles.