Suppose a variable repeats, such as:
\(A \stackrel{*}{\Rightarrow} vAy\),
with \(A \stackrel{*}{\Rightarrow} x\).
The derived string will then contain the substring \(vxy\).
There will also be strings in the language that contain substrings
\(x, vvxyy, vvvxyyy...\)
A little more complicated because there can be two “pumped” parts
(in equal measure of pumped-ness).
Of course, the production is not required to have both $v$ and $y$.
Then there exists a constant \(m\) (depending only on \(L\)),
such that for every string \(w \in L\),
with \(|w| \ge m\), we may partition \(w = uvxyz\) such that:
Assume \(L\) is a CFL and apply the pumping lemma.
Let \(m\) be the constant in the pumping lemma and consider
\(w = a^mb^mc^m\).
Note \(|w|\ge m\).
Show there is no division of \(w\) into \(uvxyz\) such
that \(|vy|\ge 1\), \(|vxy|\le m\), and
\(uv^ixy^iz \in L\) for \(i = 0, 1, 2, \ldots\).
Case 1: Neither \(v\) nor \(y\) may contain 2 or more
distinct symbols.
If, for example, \(v\) contains a’s and b’s, then
\(uv^2xy^2z \notin L\) since there will be b’s before a’s.
Likewise for \(y\).
Thus, \(v\) and \(y\) each can be only a’s,
b’s, or c’s (not mixed).
Case 2:\(v = a^{t_1}\), then \(y = a^{t_2}\)
or \(b^{t_3}\) (since \(|vxy| \le m\))
If \(y = a^{t_2}\),
then \(uv^2xy^2z = a^{m+t_1+t_2}b^mc^m \notin L\) since
\(t_1 + t_2 > 0, n(a) > n(b)\) (number of a’s is
greater than number of b’s)
If \(y = b^{t_3}\), then
\(uv^2xy^2z = a^{m+t_1}b^{m+t_3}c^m \notin L\)
since \(t_1 + t_3 > 0\), either \(n(a) > n(c)\) or
\(n(b) > n(c)\).
Case 3:\(v = b^{t_1}\), then \(y = b^{t_2}\) or \(c^{t_3}\).
If \(y = b^{t_2}\), then \(uv^2xy^2z = a^mb^{m+t_1+t_2}c^m \notin L\)
since \(t_1 + t_2 > 0, n(b) > n(a)\).
If \(y = c^{t_3}\), then
\(uv^2xy^2z = a^mb^{m+t_1}c^{m+t_3} \notin L\)
since \(t_1 + t_3 > 0\), either \(n(b) > n(a)\) or
\(n(c) > n(a)\).