How to use the pumping lemma to prove that $ Y = a^{m}b^{n}a^{m}c^n$ is not context free? Note that $m,n \ge 0$.
I tried by finding the case where it would be impossible for a word $w$ to be in $Y$. My problem is that I'm not sure about what I'm doing.
I think there are two cases to consider:
- When the sub word $v$ or $y$ has different letter within it. Therefore, impossible for it to be in $Y$.
- When the sub word $v$ or $y$ has only the same letters within itself. Because we have 4 different letters $a,b,a,c$ it is also impossible to encapsulate that in $|vxy|\leq p$.
The above assumption may be wrong. I need help with this because I barely understand how the pumping lemma works and how it works in this given problem.
I don't fully understand your proposed strategy, but I think you're on the right track. Let $\ p\ $ be the pumping length, and take $\ z=a^pb^pa^pc^p\in Y\ $. If $\ z=uvwxy\ $ with $\ |vwx|=q\le p\ $ and $\ |vx|\ge 1\ $, you can divide the possibilities for $\ u, vwx\ $ and $\ y\ $ into $7$ cases
If $\ n>1 $, then in the first case, $\ uv^nwx^ny=$$a^{p+n|vx|}b^pa^pc^p$$\not\in Y\ $, and in the second, $\ uv^nwx^ny=a^rb^sa^pc^p\ $ for some $\ r\ge p, s\ge p\ $ with $\ r+s>2p\ $, so again $\ uv^nwx^ny\not\in Y\ $. All the other cases can be handled similarly.