If I let string w
be a^mb^m
then we know that y
will consists of only a
's because of the rule |xy| <= m
.
And if I set i=0
, then ww^R
will have fewer a
's on the left side than on the right side. Thus, it proves that this language is not regular.
However, my text book (An Introduction to Formal Languages and Automata pg. 118 by Linz) says if I were to choose w = a^2m
and let y = aa
, then I would fail.
But how so?
To my mind, no matter what x
, y
, z
are, the first a^2m
will have fewer a
's or more depending on what i
is than the second a^2m
.