$L' = \{x\#y $ | $xy \in L, yx \notin L\} $ where $L$ is regular
Hey I need some help with proving that $L'$ is regular by construction and/or regular closures.
Just to make clear $\#$ is a specific char indicates $\#$.
$x$ and $y$ are in $\Sigma^*$. $xy\in L$ ($x$ concatenated with $y$).
Thanks!
Let ${\cal A} = (Q,A,\cdot,i,F)$ be the minimal deterministic complete automaton of $L$. For each state $p, q$ of $\cal A$, let $L_{p,q}$ be the language accepted by $\cal A$ with $p$ as initial state and $q$ as unique final state. Then $$ L' = \Bigl( \bigcup_{q \in Q, f \in F} L_{i,q}\#L_{q,f}\Bigr) \cap \Bigl( \bigcup_{q \in Q, f \in Q-F} L_{q,f}\#L_{i,q}\Bigr) $$ Thus $L'$ is regular.