I have viewed the examples and solved problem for $\{a^nb^n\}$ but for three (a,b,c) $L = \{a^nb^mc^n | m, n ≥ 0\}$ have not found. So, how can I do it? It will help in understanding more than two means for $a,b,c$.
2026-04-05 05:24:14.1775366654
How to prove that the language $L = \{a^nb^mc^n | m, n ≥ 0\}$ is not regular using pumping lemma?
2.6k Views Asked by user800764 https://math.techqa.club/user/user800764/detail At
3
Proof by contradiction with Pumping Lemma
Let assume to the contrary that the language $L$ is regular. Let the pumping length for the language $L$ be $p$.
Consider $s=a^pb^mc^p \in L$, for $m \geq 0$.
Consider all possible ways to divide $s = xyz$, where $|y|>0$, $|xy| \leq p$.
Let $|y|=j>0$, then $y=a^j$. By pumping lemma, $xy^iz \in L$, $\forall{i} \in\{0,1,2,\ldots\}$.
Now $xy^0z = xz = a^{p-j}b^mc^p \in L$ by pumping Lemma, but number of $a$'s = $p-j < p =$ number of $c$'s in the string, which implies $xz \not \in L$, by the definition of $L$, hence a condtradiction.