pumping lemma (regular languages)
Lemma 1.
Let be a regular language (a.k.a. type 3 language). Then there existan integer such that, if the length of a word is greaterthan , then where are subwords such that
- 1.
The length of the subword is less than .
- 2.
The subword cannot be empty (although one of or mighthappen to be empty).
- 3.
For all integers , it is the case that belongs to ,where exponentiation
denotes repetition of a subword times.
An important use of this lemma is to show that a languageis not regular. (Remember, just because a language happens to be describedin terms of an irregular grammar
![]()
does not automatically preclude thepossibility of describing the same language also by aregular grammar.) The idea is to assume that the language isregular, then arrive at a contradiction
![]()
via this lemma.
An example of such a use of this lemma is afforded by the language
Let be the number whose existence is guaranteed by the lemma.Now, consider the word . There mustexist subwords such that and must be of length less than . The only possibilities are the following
- 1.
- 2.
- 3.
- 4.
- 5.
In these cases, would have the following form:
- 1.
- 2.
- 3.
- 4.
- 5.
It is easy to see that, in each of these five cases, .Hence cannot be a regular language.