Starting with a string AB. One is allowed to add, or remove any occurrence of AAA, BB, or ABAB anywhere in the string . Is it possible to obtain BA?
My attempt at proof of impossibility below:
In the proof, I will write about "creating a string X from scratch". That means applying a sequence of the rules to the empty string and ending up with X.
Note, for example, that it is possible to create BABA from scratch. $ -> BB -> BABABB -> BABA$
Also note, that since all the rules can be applied in reverse, if one can given a string A, produce a string B - one can also given a string B, produce string A.
One consequence of this is that if you can create a string X from scratch, you can also "destroy it" i.e. apply a sequence of operations to a string containing X until you get an identical string not containing X.
It is impossible, however, to create string B from scratch. After all, all the rules increment, or decrement the number of B's by $2$ so, starting with no B it is impossible to arrive at one B.
More generally, starting with a string with $n$ B's it is impossible to end up with a string containing $n+1$ or $n-1$ B's.
What about A? Can one create A from scratch? First of all, if one could create A from scratch than the puzzle would be solved. $AB -> B - > BA$
More importantly though, if you can solve the puzzle, you can create A.
Start with $AB -> ABABAB -> AABBAB -> AAAB -> B$.
This took AB and ended up with B, destroying A in the process. Of course one can also create A if the process is reversed.
Thus, by contrapositive, if A cannot be created, the puzzle cannot be solved.
There are only two ways one could conceivably create A. One of them is use AAA rule then do some magic and then remove ABAB.
The other way is to use ABAB twice getting ABABABAB then do some magic and subtract AAA.
The other ways are just simple variants of these.
Both of these are impossible because, in ABAB the A's are one B apart this distance cannot be reduced. None of the rules can be used to decrease this distance as you can just insert strings and remove them at will but reducing the distance would amount to the transformation $ABA -> AA$ which is impossible (as proved earlier).
So the A cannot be created from scratch and thus the puzzle cannot be solved.