The Pumping Lemma for Regular Languages

San Skulrattanakulchai

March 6, 2018

The Pumping Lemma

The Pumping Lemma by example

Theorem. The language \(A=\{ a^iba^i : i\ge 0\}\) is not regular.

Proof. Suppose for the sake of contradiction that \(A\) is regular and let \(M\) be a DFA accepting \(A\). Let \(M\) have \(p\) states. Consider the string \(a^pba^p\in A\). Let \(P\) be the \(a^p\)-path from the start state \(q_0\), ending in some state \(q_1\). Path \(P\) contains more than \(p\) states; therefore, it repeats some state. This means that \(P\) contains a closed walk of length \(\ell > 0\). Thus the \(a^{p+\ell}\)-path also goes from the start state \(q_0\) to the state \(q_1\). Therefore, \(a^{p+\ell}ba^p\in A\), a contradiction. \[\tag*{$\Box$}\]

Remarks

Pumping Lemma for Regular Languages

Theorem. Any regular language \(A\) has a positive integer constant \(p\) such that any string \(w\) of length at least \(p\) can be written as \(w=xyz\) so that all the following statements hold:

  1. \(|xy| \le p\)
  2. \(y \ne \varepsilon\)
  3. \(xy^iz \in A\) for all \(i \ge 0\) \[\tag*{$\Box$}\]

Exercises