Let $L \subset \{0, 1\}^∗$ be regular language. $$L_e = \{ w | w = uxv, x \in \{0, 1\}, u\overline{x}v \in L\}$$, where $\overline{x} = 1 − x$ Prove $L_e$ is regular language. For example: If $10 \in L$, then $11, 00 \in L_e$ $.
I am thinking about it many hours but nothing works. I try use Nyhill-Nerode's theorem but it doesn't help. Please hint me.
HINT: Let $M$ be a DFA that recognizes $L$. Make two copies of $M$, say $M_1$ and $M_2$; we’ll modify them to make an NFA $N$ that recognizes $L_e$. $N$ starts in the initial state of $M_1$. Each state of $M_1$ has all of the transitions of $M$, and each also has two extra transitions, one for $0$ and one for $1$, that go into $M_2$. There are no transitions from $M_2$ back to $M_1$.
The idea is that in order to be accepted, a word must drive $N$ into $M_2$, and it can do this only by pretending – just once! – that an input of $i$ is actually $1-i$. I’ve left more of the details in the spoiler-protected block below, but see if you can come up with $N$ on your own first.