Pumping Lemma
Pumping Lemma
Pumping Lemma
x
x
L
x
x
L
x
L
x
x
x
u
vx
x
u
u
w
vx
x
u
u
u
w
vx
w
v v
x
u
u
u
u
w
vx
w
v v
w
v v v
u
w
u
w
uw L
x = uvw L
uvvw L
uvvvw L
...
Negation:
n N x L with |x| n
u, v, w
all of these hold:
(1) x = uvw
(2) |uv| n
(3) |v| 1
(4) i 0: uv i w L.
Negation:
n N x L with |x| n
u, v, w
all of these hold:
(1) x = uvw
(2) |uv| n
(3) |v| 1
(4) i 0: uv i w L.
Negation:
n N x L with |x| n
u, v, w
all of these hold:
n N x L with |x| n
u, v, w
not all of these hold:
(1) x = uvw
(1) x = uvw
(2) |uv| n
(2) |uv| n
(3) |v| 1
(3) |v| 1
(4) i 0: uv i w L.
(4) i 0: uv i w L.
Negation:
n N x L with |x| n
u, v, w
all of these hold:
(1) x = uvw
Equivalently:
(2) |uv|(1)
n (2) (3) not(4)
where not(4) is:
(3) |v| 1 i
i : uv w L
(4) i 0: uv i w L.
n N x L with |x| n
u, v, w
not all of these hold:
(1) x = uvw
(2) |uv| n
(3) |v| 1
(4) i 0: uv i w L.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
t 1,
p 0,
s + t + p = n.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
t 1,
p 0,
s + t + p = n.
EXAMPLE 1
Prove that L = {0i 1i : i 0} is NOT regular.
Proof. Show that P.L. doesnt hold (note: showing P.L. holds
doesnt mean regularity).
If L is regular, then by P.L. n such that . . .
Now let x = 0n 1n
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
t 1,
p 0,
s + t + p = n.
uv 0 w = uw = 0s 0p 1n = 0s+p 1n L,
since s + p = n
IN PICTURE
u, v, w such that
(1) x = uvw
(2) |uv| n
(3) |v| 1
(4) i N : uv i w L.
IN PICTURE
u, v, w such that
(1) x = uvw
(2) |uv| n
(3) |v| 1
00000 0 . . . 01111 . . . 1 L
(4) i N : uv i w L.
IN PICTURE
u, v, w such that
non-empty
(1) x = uvw
(2) |uv| n
(3) |v| 1
00000 0 . . . 01111 . . . 1 L
(4) i N : uv i w L.
IN PICTURE
u, v, w such that
non-empty
(1) x = uvw
(2) |uv| n
(3) |v| 1
00000 0 . . . 01111 . . . 1 L
(4) i N : uv i w L.
If (1), (2), (3) hold then (4) fails: it is not the case that for all
i, uv i w is in L.
In particular, let i = 0. uw L.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
uv w
= 0 0
= 0
(|v|+1)(|v|+|w|)
EXAMPLE 2
Prove that L = {0i : i is a prime} is NOT regular.
Proof. We show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Now let x = 0m where m n + 2 is prime.
x L and |x| n, so by P.L. u, v, w such that (1)(4) hold.
uv w
= 0 0
= 0
(|v|+1)(|v|+|w|)
Both factors 2
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
EXAMPLE 3
Prove that L = {yy : y {0, 1} } is NOT regular.
Again we try to show that P.L. doesnt hold.
If L is regular, then by P.L. n such that . . .
Let us consider x = 0n 0n L. Obviously |x| n.
uv w = 0
0
n|v|
10 1.
n
uv w = 0
0
n|v|
10 1.
n