0

I am looking to show that $L=\{a^i b^j c^k\,:\, i < j < k\}$ is not context free.

So I suppose that it is a context free language and use the pumping lemma. Let $n$ be the parameter of the lemma and define $z=a^nb^{n+1}c^{n+2}$. We can so write $z=uvwxy$ with $|vwx| \leq n$ and $|vx|\geq 1$. Now we look at different cases and there I got stucked at $2$. These are the following:

  1. $vwx$ is $b^qc^q$ for $p+q \leq n,\, p+q \geq 1$
  2. $vwx$ is $c^p$ for $p \leq n, \, p \geq 1$

The idea should be that for all $i \geq 0$ $uv^iwx^iy \in L$. Now for $i=0$ we should get a contradiction but I don't see where. Can someone helps me out?

1 Answers1

1

For $z = a^n b^{n+1} c^{n+2}$,

  • For your case 1: either $v$ or $x$ must start with atleast one $b$ (i.e. $v=bb^*c^*$ or $x=bb^* c^*$). If $i = 0$, the new string will have its $b$s reduced by at least 1. Hence, the new string would be $a^n b^r c^s$ where $r\le (n+1)-1=n$. With that, the new string is not in $L$.

  • For your case 2: If $i = 0$, the new string will have its $c$s reduced by at least 1 (i.e. either $v$ or $x$ can be empty, but not both). Hence, the new string would be $a^n b^{n+1} c^{r}$ where $r\le (n+2)-1=n+1$. With that, the new string is not in $L$.

Poypoyan
  • 972
  • Many thanks for your answer! Would it not be in case 2 that it is reduced by at least one c, so that we get a problem with the b in fact? – Frederick Manfred Jun 13 '21 at 21:21
  • Maybe I don't see a point but we could have $|vx|=1$ and hence that we have one only one $c$. So if $v$ and $x$ are removed, we would in this case remove $1$ $c$, not? – Frederick Manfred Jun 14 '21 at 07:00
  • Oops... sorry. I just reviewed my old notes. You're right. One of $v$ and $x$ can be empty. So the minimum $c$s to be removed is 1. Yes, we get a problem with the $b$. – Poypoyan Jun 14 '21 at 09:03
  • 1
    I'll revise my answer. – Poypoyan Jun 14 '21 at 09:03