I posted this question earlier, but I got no responses. Can anyone
help me out here...any hints or even how to start? Thanks in advance.
Let doubleswap(x) be the string formed by replacing each a in x by the
substring bb and each b by the substring aa. For example,
doubleswap(abcab)=bbaacbbaa. Furthermore, let doubleswap(L) be the
language formed of strings doubleswap(x) for x an element of L. Prove
that if L is regular, then so is doubleswap(L). Where L is a subset
(or equal) to {a, b, c}^*.
If L is regular, the L can be expressed as L(y) for some regular
expression y. We define y' to be the same as y except that we replace
each a in y by a pair of b's and each b by a pair of a's. Since y' is
a regular expression, it will suffice to show that L(y') =
doubleswap(L).
(a) Prove that L(y') is a subset or equal to doubleswap(L).
(b) Prove that doubleswap(L) is a subset or equal to L(y').