Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456

Solution for Exercise 1.17(c) in Sipser's Book


Assume, towards a contradiction, that the language A3 is regular. Then, by the pumping lemma, it has a pumping length p. Consider the string

s = a2p.

Since, 2p is larger than p for each p>=0, the pumping lemma says that s can be written as xyz for some strings x, y, z with length(xy)<=p and length(y)>0. We claim that the string xyyz is not in the language A3, contradicting the statement of the pumping lemma and therefore our assumption that A3 were regular.

To see that xyyz is not in the language A3, observe that the shortest string in A3 that is longer than s is of length 2p+1. The difference in length between s and this string is therefore 2p. On the other hand, we have that

length(xyyz) - length(s) = p < 2p.

It follows that the length of xyyz is not a power of 2, and therefore xyyz is not in the language A3, as claimed.