A language satisfies the regular pumping lemma if there is an integer such that every with can be written with
Let a deterministic automaton for have states. During the first input symbols of an accepted word of length at least , the run visits states, so two coincide. Write so that labels the nonempty loop between those visits and . Traversing that loop any number of times leaves the remainder of the accepting run unchanged, giving for every .
If an automaton with at most states accepted a word of length , the preceding loop argument would produce for every , with . These words have unbounded lengths and are distinct, contradicting the finiteness of .
Take pumping length . If a nonempty word , pump its first symbol; every pumped word remains in . Otherwise write with . If , pump the first symbol of , leaving a word of the same form. If , pump the initial : deleting it leaves , while retaining one or more copies lets the last pumped serve as the separator. Thus every required pumped word belongs to .
Choose a language that is not recursively enumerable; such a language exists because there are uncountably many languages but only countably many algorithms. Form as in part (d), which satisfies the pumping lemma.
Articles by others on the same topic
There are currently no matching articles.