I want to show that $L = \{a^nb^{\max\{n,m\}}a^m\ |\ n, m ≥ 0\}$ is not context-free.
I tried with things like take $w=a^pb^pa^p$ and got that $vwz$ is $a^qb^{p-q}$ but... I don't know, it doesn't seem right to me.
I want to show that $L = \{a^nb^{\max\{n,m\}}a^m\ |\ n, m ≥ 0\}$ is not context-free.
I tried with things like take $w=a^pb^pa^p$ and got that $vwz$ is $a^qb^{p-q}$ but... I don't know, it doesn't seem right to me.
If $p$ is the pumping length, let $w=a^pb^pa^p$. If $L$ is context-free, it is possible to write $w=uvxyz$ in such a way that $|vy|\ge 1$, $|vxy|\le p$, and $uv^kxy^kz\in L$ for every integer $k\ge 0$. Now consider cases.