mathmari said:
I tried to explain it more detailed... Could you tell me if the following is right?
Briefly, the case you considered is correct, but there are other cases you have not covered.
mathmari said:
One case is that $vy$ contains only $b$'s. Then these come from at most two of the three blocks of $b$.
A great beginning.
mathmari said:
So, $uv^0xy^0z=a^pb^{p-m}a^pb^{p-l}a^pb^{p-n}$, where $m,l,n \geq 0$ (at least one of them is greater than $0$ and one equal to $0$). But in order to belong in $L$, the word has to be of the form $www$ so $w=a^pb^{p-m}=a^pb^{p-l}=a^pb^{p-n} \Rightarrow p-m=p-l=p-n \Rightarrow m=l=n.$
The only thing here that requires a moment of though is that $a^pb^{p-m}a^pb^{p-l}a^pb^{p-n}=www$ implies that $w$ consists of one block of $a$'s possibly followed by one block of $b$'s. Is it possible that $w$ is described by the regular expression $a^+b^+a^+$? No, because the second block of $a$'s in $www$ would be longer than the first one. There are some other possibilities to refute. It is precisely this fact that you have not addressed above. In contrast, the fact that taking some symbols from two of the three blocks of $b$'s, which initially had equal lengths, makes their lengths differ does not require using algebra; it is obvious.
mathmari said:
The other case is the same by replacing $b$ with $a$.
What about the case when $vy$ contains
both $a$'s and $b$'s? This case is the reason for considering $L'=\{kkk\mid k=a^mb^n,m>0,n>0\}$ rather the original $L=\{kkk\mid k\in\{a,b\}^*\}$, as described below.
Here is how I would handle this problem. The idea to start with $(a^pb^p)^3$ is correct. (By the way, $p$ does not have to equal or exceed the pumping length. The
total length, i.e., $6p$, has to be greater than or equal to the pumping length.) It is clear that if this word is split into $uvxyz$, then adding $v$'s and $y$'s will break the word structure, so it won't have the shape $(a^nb^n)^3$ for some $n$ anymore. I explained it in posts https://driven2services.com/staging/mh/index.php?posts/38801/ and https://driven2services.com/staging/mh/index.php?posts/38862/:
Evgeny.Makarov said:
The important thing is that inserting more $v$'s and $y$'s changes either the number of blocks of $a$'s and $b$'s (each word in $L'$ has 6 such blocks), or it makes the three blocks of $a$'s (or the three blocks of $b$'s) have different number of symbols (each word in $L'$ has equal number of $a$'s in each of the three blocks, and similarly for $b$'s).
(1) If either $v$ or $y$ contains
both $a$ and $b$, then pumping in $v$ and $y$ increases the number of transitions from $a$ to $b$ while in the original word there are precisely three such transitions. (2) If, on the other hand, $v$ consists of only $a$'s or only $b$'s, and similarly for $y$, then adding $v$ and $y$ will not change the number of transitions from $a$ to $b$; however, either the three blocks of $a$'s will not all have the same length, or the three blocks of $b$'s will not all have the same length. (1) and (2) are the only possible cases. I think that this reasoning is sufficiently simple and using algebra would only make it harder to read. Note also that this argument shows that the word with added $v$ and $y$ will not have the shape $(a^nb^n)^3$, but it also shows that it won't even have the shape $(a^mb^n)^3$ where $m$ and $n$ don't have to coincide.
What have we gained so far? If $(a^pb^p)^3=uvxyz$, then $uv^2xy^2z$ does not have the shape $(a^mb^n)^3$. However, this is not sufficient to conclude that $uv^2xy^2z\notin L$, i.e., that $uv^2xy^2z$ does not have the shape $www$ for some $w\in\{a,b\}^*$. Indeed, $w$ can have $a$'s and $b$'s in an arbitrary order, so $www$ does not have to have three blocks of $a$'s and three blocks of $b$'s. Therefore, reasoning in case (1) above is not sufficient. At least, the fact that that $uv^2xy^2z$ does not have the shape $www$ is not obvious. Therefore we'd like to reduce the problem to the situation in the previous paragraph, and for this we consider the intersection of $L$ with the regular language $L''$ described by $(a^+b^+)^3$. If we show that this intersection is $\{kkk\mid k=a^mb^n,m>0,n>0\}$, then we are indeed in that situation and we are done. Suppose that $www\in L\cap L''$. There are four possible cases: (a) $w=a^m$ (b) $w=a^mb^n$, (c) $w=a^mb^naw'$ where $aw'$ ends in $a$, and (d) $w=a^mb^naw'$ where $w'$ ends in $b$. Case (a) is impossible because $www$ constains no $b$'s contrary to the definition of $L''$. Case (c) is also impossible because $www$ ends with an $a$. In case (d), $www$ has more than three transitions from $a$ to $b$. Therefore, the remaining case is (b).
In this proof, the key is identifying all relevant possibilities. Once the cases (1) and (2) as well as (a)--(d) are clearly stated, it is easy to prove them and to see that they are exhaustive. It is possible that this reasoning can be simplified.
Edit. Changes cases (c) and (d) from
"(c) $w=a^mb^naw'$ for some $w'$ ending in $a$, and (d) $w=a^mb^naw'$ for some $w'$ ending in $b$"
to
"(c) $w=a^mb^naw'$ where $aw'$ ends in $a$, and (d) $w=a^mb^naw'$ where $w'$ ends in $b$"
This is because the cases are exhaustive only if $w'$ in case (c) can be empty.