A "string" consists only of the characters "A", "B", "C", and "D". An example would be ABBDCA. Another example could simply be "D". The below rules are the only ways for us to change the string:
- A substring of AB or BA can be replaced with C and the character C can be replaced with a substring AB or BA.
- A substring of BC or CB can be replaced with A and vice versa.
- A substring of AC or CA can be replaced with B and vice versa.
- A substring of "ABC" can be replaced with the character "D" and vice versa.
How do you rigorously show that you cannot go from the string "A" to the string "B"? How do you show that you cannot get from the string "A" to the string "D"?
What I tried:
If you can get from string "A" to string "B", that must mean you can also get from string "A" to string "AC". If we show that we can't get from string "A" to string "AC" then that must mean we also can't get to string "B". This seems trivial but I can't prove it rigorously. Any ideas?