Example 1:

Our theorem is that the language is not regular.

  1. To begin to prove that it is not regular, we assume that it is regular and hence we know that The Pumping Lemma (Theorem) must hold.
  2. Hence there is some such that every word in the language of length can be written in the form .
  3. Let’s substitute with to give us which satisfies .
  4. Now we need to decompose into , we need to satisfy:
    1. So that we can show for all .
  5. Let’s assume () and ().
  6. Let’s assume . (the remainder of the word)
  7. Since we have satisfied the two conditions, must hold:
  1. The only way this string would ever be in the language and hence holds is if these two exponents are the same for all , so we can instead check if there is a condition where the exponents do not equal.
  1. But we know that the exponents must equal for all , so if we pick say, , then the exponents do not match, hence does not hold. This is a contradiction which means the language given at the start is not regular.

The Pumping Lemma

The Pumping Lemma (Theorem)

The Pumping Lemma says if is a regular language then there is some such that every word of length can be written in the form for such that:

  • If and ,
  • then for all .
Link to original

More Examples

https://www.youtube.com/watch?v=x2J5kaf6gjg&ab_channel=EasyTheory

Example 2: Prove is not regular.

  1. Assume that the language is regular and the Pumping Lemma holds.
  2. Hence there is some such that every word in the language of length can be written in the form .
  3. Let’s assume where .
  4. Decompose to satisfy and :
    1. ()
    2. ()
    3. (we subtract one since is smaller than )
  5. Since we have satisfied the two conditions, must hold:
  1. This string may only be in the language and hence holds if the exponent of is always smaller than the exponent of for all .
  1. Since , we can pick , which gives us:
  1. This is a contradiction as earlier we stated because .
  2. Hence by contradiction, this language is not regular.