2

Pumping Lemma for Regular Languages

medium25 pts

Statement#

Use the Pumping Lemma for Regular Languages to prove that the language: L={0n1n:n0}L = \{0^n1^n : n \geq 0\} is not regular.

Required Topics#

  • Pumping lemma
  • Regular languages
  • Proof by contradiction
  • String decomposition
  • DFA limitations

The Pumping Lemma#

If LL is a regular language, then there exists a pumping length p1p \geq 1 such that:

For every string sLs \in L with sp|s| \geq p, there exists a decomposition s=xyzs = xyz satisfying:

  1. y>0|y| > 0 (y is non-empty)
  2. xyp|xy| \leq p (xy occurs within first p symbols)
  3. For all i0i \geq 0: xyizLxy^iz \in L (can pump y any number of times)

Proof Strategy#

  1. Assume (for contradiction) that LL is regular
  2. Apply the pumping lemma: there exists pumping length pp
  3. Choose a specific string sLs \in L with sp|s| \geq p
  4. Consider all possible decompositions s=xyzs = xyz satisfying conditions 1 and 2
  5. Find some ii such that xyizLxy^iz \notin L
  6. Conclude contradiction, so LL is not regular

Suggested String#

Choose s=0p1ps = 0^p 1^p (clearly in LL and s=2pp|s| = 2p \geq p).

What to Show#

  1. Explain where yy must be located (hint: in the first pp symbols)
  2. What does yy consist of? (only 0s, only 1s, or mixed?)
  3. Find an ii such that xyizxy^iz has unequal numbers of 0s and 1s
  4. Conclude xyizLxy^iz \notin L, contradicting the pumping lemma

Solution#

Solution coming soon.

Hints (4)

Topics Needed

pumping-lemmaregular-languagesproof-by-contradiction

Prerequisites

  • regular-languages
  • dfa
  • proof-techniques

Statistics

0
Total Attempts
0%
Success Rate
0%
First Try Success
0%
Completion Rate