Pumping Lemma for Regular Languages
Statement#
Use the Pumping Lemma for Regular Languages to prove that the language: is not regular.
Required Topics#
- Pumping lemma
- Regular languages
- Proof by contradiction
- String decomposition
- DFA limitations
The Pumping Lemma#
If is a regular language, then there exists a pumping length such that:
For every string with , there exists a decomposition satisfying:
- (y is non-empty)
- (xy occurs within first p symbols)
- For all : (can pump y any number of times)
Proof Strategy#
- Assume (for contradiction) that is regular
- Apply the pumping lemma: there exists pumping length
- Choose a specific string with
- Consider all possible decompositions satisfying conditions 1 and 2
- Find some such that
- Conclude contradiction, so is not regular
Suggested String#
Choose (clearly in and ).
What to Show#
- Explain where must be located (hint: in the first symbols)
- What does consist of? (only 0s, only 1s, or mixed?)
- Find an such that has unequal numbers of 0s and 1s
- Conclude , contradicting the pumping lemma
Solution#
Solution coming soon.
Hints (4)
Topics Needed
Prerequisites
- regular-languages
- dfa
- proof-techniques
Statistics
Pumping Lemma for Regular Languages
Statement#
Use the Pumping Lemma for Regular Languages to prove that the language: is not regular.
Required Topics#
- Pumping lemma
- Regular languages
- Proof by contradiction
- String decomposition
- DFA limitations
The Pumping Lemma#
If is a regular language, then there exists a pumping length such that:
For every string with , there exists a decomposition satisfying:
- (y is non-empty)
- (xy occurs within first p symbols)
- For all : (can pump y any number of times)
Proof Strategy#
- Assume (for contradiction) that is regular
- Apply the pumping lemma: there exists pumping length
- Choose a specific string with
- Consider all possible decompositions satisfying conditions 1 and 2
- Find some such that
- Conclude contradiction, so is not regular
Suggested String#
Choose (clearly in and ).
What to Show#
- Explain where must be located (hint: in the first symbols)
- What does consist of? (only 0s, only 1s, or mixed?)
- Find an such that has unequal numbers of 0s and 1s
- Conclude , contradicting the pumping lemma
Solution#
Solution coming soon.
Hints (4)
Topics Needed
Prerequisites
- regular-languages
- dfa
- proof-techniques