I want to use the Pumping Lemma to prove that
$$L = \{a^ib^jc^k \mid k = i*j\}$$
is not context-free. I think I have the intuition, but I don't know how to prove it. Help?
I want to use the Pumping Lemma to prove that
$$L = \{a^ib^jc^k \mid k = i*j\}$$
is not context-free. I think I have the intuition, but I don't know how to prove it. Help?
Part of on how to the proof $L$ is not context-free.
To prove that $L$ is not context-free we use the Pumping Lemma for context-free languages. We assume that $L$ is a context-free language and by obtaining a contradiction to prove that $L$ is not a context-free language.
Let $p$ be the pumping length for $L$ that is guaranteed to exists by the pumping lemma, such that $p \geq 1$
Let $s = a^p b^p c^{p^2} \in L$
Because $s \in L$ and the length of $s$ will always be greater than $p$ we may divide $s$ into five pieces $s = uvxyz$ that satisfy the following conditions:
Show that all possible cases you can divide your $s$ into the five pieces as stated by the lemma, yet for each case you end up pumping by a certain value for $i$ such that you end up with a string that $\notin L$
Description of cases
Take $p=4$ then our string looks like $aaaa\ bbbb\ cccc\ cccc\ cccc \in L$ Note the spaces are for readability only We divide our string in two ways such that we satisfy both condition 2 and 3 of
Case 1 $vxy$ contains one symbol:
$v$ and $y$ contain both: only a's, only b's or only c's so you have $vxy = "aaaa" \lor "bbbb" \lor "cccc"$
Case 2 : $v$ contains a's and b's and $y$ contains b's
we take $vxy = "ab\ b\ b"$
Case 3 : $v$ contains b's and c's and $y$ contains c's
we take $vxy = "bb\ b\ c"$
Because one of these cases must always happen you will always have a contradiction as result, thus an contradiction is unavoidable. So the assumption that $L$ is a context-free language must be false. Thus we have proved $L$ is not a context-free language.