Professional Documents
Culture Documents
6.1 Pumping Lemma and Non-Regular Language Grammars
6.1 Pumping Lemma and Non-Regular Language Grammars
6.1 Pumping Lemma and Non-Regular Language Grammars
By Solomon Getachew
Pumping lemma( for regular language)
Pumping Lemma is used to prove that the language is not
regular
It cannot be used to prove that a language is regular
The language must be infinite
Statement:
If A is a regular Language, then A has a Pumping Length ‘P’ such
that any string ‘S’ where |S| ≥ P maybe divided into 3 parts
S=xyz such that the following condition must be true:
1) xyiz A for every i ≥ 0
2) |y|>0
3) |xy|≤ P
Cont…
To prove that a language is not regular using pumping LEMM,
follow the below steps: (We prove using Contradiction)
L {vv : v *}
R
{a, b}
is not regular
Since L is infinite
we can apply the Pumping Lemma
L {vv : v *}
R
and length | w | p
We pick wa b b a
p p p p
From the Pumping Lemma:
we can write: w a b b a x y z
p p p p
with lengths: | x y | p, | y | 1
p p p p
w xyz a...aa...a...ab...bb...ba...a
x y z
Thus: y a , 1 k p
k
x y za b b a
p p p p
y a , 1 k p
k
i 0, 1, 2, ...
Thus: x y z L
2
x y za b b a
p p p p
y a , 1 k p
k
pk p p p
2
xy z = a...aa...aa...a...ab...bb...ba...a ∈ L
x y y z
pk
Thus: a
p
b b a p p
L
pk
a p
b b a p p
L k 1
pk
a p
b b a p p
L
CONTRADICTION!!!
Classwork