Consider a transformation as in the previous exercise of the form with .
Show that if this transformation is terminal, the final position does not depend on the order of operations.
Consider a transformation as in the previous exercise of the form with .
Show that if this transformation is terminal, the final position does not depend on the order of operations.
This property is known as a "confluence" property. To demonstrate it, we will consider a sequence of operations that cannot be extended, and a sequence (possibly infinite) of operations. We will show that we can modify the first sequence of operations without changing its result, so that . By induction, we will be done: the sequence of operations will be finite and will yield the same result.
If we draw a bar between an on the left and a on the right of the transformed word by the operation , then as long as this bar is not used, that is, at the center of a word that we transform, we leave it and the letters surrounding it remain unchanged. Since after no more operations can be performed, there exists such that uses this bar.
Thus, we can perform , then , which gives the same result. Hence the result.