Example 1:
Our theorem is that the language is not regular.
- 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.
- Hence there is some such that every word in the language of length can be written in the form .
- Let’s substitute with to give us which satisfies .
- Now we need to decompose into , we need to satisfy:
- So that we can show for all .
- Let’s assume () and ().
- Let’s assume . (the remainder of the word)
- Since we have satisfied the two conditions, must hold:
- 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.
- 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:
Link to original
- If and ,
- then for all .
More Examples
https://www.youtube.com/watch?v=x2J5kaf6gjg&ab_channel=EasyTheory
Example 2: Prove is not regular.
- Assume that the language is regular and the Pumping Lemma holds.
- Hence there is some such that every word in the language of length can be written in the form .
- Let’s assume where .
- Decompose to satisfy and :
- ()
- ()
- (we subtract one since is smaller than )
- Since we have satisfied the two conditions, must hold:
- This string may only be in the language and hence holds if the exponent of is always smaller than the exponent of for all .
- Since , we can pick , which gives us:
- This is a contradiction as earlier we stated because .
- Hence by contradiction, this language is not regular.