So I have a pumping lemma question A{www|w ∈ {a,b}*} I have the correct answer but I'm not fully sure how it works. I'll give the answer just so people know what I'm going with
Assume A is REG let p be the pumping length x ∈ A, x=a^p b, a^p b, a^p b.... |s|=3p+3 where each a^p b is a w
Let s = xyz a split such that 1)sum of i>=0 s'=xy'z ∈ A 2)|x|>0 , 3)|xy| <=p
By (3) y contains only a's and by (2) y contains at least 1 a. Let s'=xyyz, Then s=a^+ ba^p ba^p b,
1)s' ∈ A as it contains contradiction t>p ie. A not an element of REG