More Applications of The Pumping Lemma: Costas Busch - LSU 1
More Applications of The Pumping Lemma: Costas Busch - LSU 1
More Applications of The Pumping Lemma: Costas Busch - LSU 1
of
• with |x y| p and | y | 1
i i 0, 1, 2, ...
• such that: xy z L
Costas Busch - LSU 2
Non-regular languages R
L {vv : v *}
Regular languages
Since L is infinite
we can apply the Pumping Lemma
We pick wa b b a 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
Costas Busch - LSU 7
x y za b b a
p p p p
y a , 1 k p
k
i
From the Pumping Lemma: xy z L
i 0, 1, 2, ...
2
Thus: xy z L
Costas Busch - LSU 8
x y za b b a
p p p p
y a , 1 k p
k
2
From the Pumping Lemma: xy z L
pk p p p
2
xy z = a...aa...aa...a...ab...bb...ba...a ∈ L
x y y z
pk
Thus: a b b ap p p
L
Costas Busch - LSU 9
pk
a p
b b a p p
L k 1
R
BUT: L {vv : v *}
pk
a p
b b a p p
L
CONTRADICTION!!!
Costas Busch - LSU 10
Therefore: Our assumption that L
is a regular language is not true
END OF PROOF
Costas Busch - LSU 11
Non-regular languages
n l n l
L {a b c : n, l 0}
Regular languages
Since L is infinite
we can apply the Pumping Lemma
length | w| p
We pick wa b c p p 2p
p p 2p
w xyz a...aa...aa...ab...bc...cc...c
x y z
Thus: y a , 1 k p
k
i
From the Pumping Lemma: xy z L
i 0, 1, 2, ...
0
Thus: x y z = xz ∈ L
pk p 2p
xz a...aa...ab...bc...cc...c L
x z
pk
Thus: a p 2p
b c L
Costas Busch - LSU 18
a pk p 2p
b c L k 1
n l n l
BUT: L {a b c : n, l 0}
pk
a p 2p
b c L
CONTRADICTION!!!
Costas Busch - LSU 19
Therefore: Our assumption that L
is a regular language is not true
END OF PROOF
Costas Busch - LSU 20
n!
Non-regular languages L {a : n 0}
Regular languages
n! 1 2 (n 1) n
Since L is infinite
we can apply the Pumping Lemma
We pick wa p!
With lengths | x y | p, | y | 1
p p! p
w xyz a a...aa...aa...aa...aa...a
p!
x y z
Thus: y a , 1 k p
k
Costas Busch - LSU 25
x y za p!
y a , 1 k p
k
i
From the Pumping Lemma: xy z L
i 0, 1, 2, ...
2
Thus: xy z L
2
From the Pumping Lemma: xy z L
pk p! p
2
xy z a...aa...aa...aa...aa...aa...a L
x y y z
p! k
Thus: a L
Costas Busch - LSU 27
p! k
a L 1 k p
n!
Since: L {a : n 0}
p! k z!
Costas Busch - LSU 28
However: p! k p! p for p 1
p! p!
p! p p!
p!( p 1)
( p 1)!
p! k ( p 1)!
n!
BUT: L {a : n 0}
p! k
a L
CONTRADICTION!!!
Costas Busch - LSU 31
Therefore: Our assumption that L
is a regular language is not true
END OF PROOF
Costas Busch - LSU 32