I am trying to find that $L ={\{w\text{ | } w ∈ {\{a, b\}} * \text{is not a palindrome}\}}$
This is related to this previous question, though in this case I want to explicitly prove it via pumping lemma, since I am unsure my solution is correct. This is what I have:
- $\text{for any } N, \text{ let } w \in L, |w|\ge N$
$w=a^Nb^Na^{N+1}$
- $\text{For any partition } w =xyz , |y|\ge 1, |xy| \le N$
$x=a^r, y=a^s, z=a^{N-r-s}b^Na^{N+1},\text{where }s\ge 1$
- $\exists i \text{ where } xy^iz\notin L$
$i=2\text{ ---> }xy^2z=a^{N+s}b^Na^{N+1} \text{ ,where we know that } s\ge 1$
$\text{if }s=1 \text{ then }xy^2z\notin L \text{ and thus L is not regular}$
I am really unsure about the last part. Does the pumping lemma hold if the "pumped word" doesn't belong to L for some specific values of $s$?