Title: More Applications of the Pumping Lemma
1More Applications ofthe Pumping Lemma
2The Pumping Lemma
- Given a infinite regular language
- there exists an integer (critical length)
- for any string with length
3Non-regular languages
Regular languages
4Theorem
The language
is not regular
Proof
Use the Pumping Lemma
5Assume for contradiction that is a regular
language
Since is infinite we can apply the Pumping
Lemma
6Let be the critical length for
Pick a string such that
length
and
We pick
7From the Pumping Lemma
we can write
with lengths
Thus
8From the Pumping Lemma
Thus
9From the Pumping Lemma
Thus
10BUT
CONTRADICTION!!!
11Our assumption that is a regular language is not
true
Therefore
Conclusion
is not a regular language
END OF PROOF
12Non-regular languages
Regular languages
13Theorem
The language
is not regular
Proof
Use the Pumping Lemma
14Assume for contradiction that is a regular
language
Since is infinite we can apply the Pumping
Lemma
15Let be the critical length of
Pick a string such that
and
length
We pick
16From the Pumping Lemma
We can write
With lengths
Thus
17From the Pumping Lemma
Thus
18From the Pumping Lemma
Thus
19BUT
CONTRADICTION!!!
20Our assumption that is a regular language is not
true
Therefore
Conclusion
is not a regular language
END OF PROOF
21Non-regular languages
Regular languages
22Theorem
The language
is not regular
Proof
Use the Pumping Lemma
23Assume for contradiction that is a regular
language
Since is infinite we can apply the Pumping
Lemma
24Let be the critical length of
Pick a string such that
length
We pick
25From the Pumping Lemma
We can write
With lengths
Thus
26From the Pumping Lemma
Thus
27From the Pumping Lemma
Thus
28Since
There must exist such that
29However
for
for any
30BUT
CONTRADICTION!!!
31Our assumption that is a regular language is not
true
Therefore
Conclusion
is not a regular language
END OF PROOF