# Show L1 /L2 is regular [duplicate]

Let $L_1$ and $L_2$ be two languages over an alphabet $\Sigma$. The quotient of $L_1$ and $L_2$ is the language $L_1/L_2 = \{x : \exists y \in L_2, xy \in L_1\}$

Show that if $L_1$ is regular and $L_2$ is any language, then $L_1/L_2$ is regular.

I've looked up online how to do this but it not very helpful. So far I know that $L_1$ and $L_2 \in \Sigma^*$ and that $L_1 = \{xy \mid x \in \Sigma^* \text{ and } y \in \Sigma^*\}$ and we can say it is regular by concatenation and $L_2 \in \Sigma^*$ which is any language.

From here, we can say that in $L_1$, $x$ has an accept state before going to the DFA for $y$ and $L_1 / L_2$ would just be eliminating the DFA for $y$, leaving you with just $x$, which still has an accept state, which makes it regular. I don't know how to put this in words and not pictures.

• Your proof outline seems to assume that $L_2$ is regular. Apr 6, 2016 at 18:21

Let $A$ be a DFA accepting $L_1$, and let $Q$ be its set of states. Denote by $L_A(q)$ the set of words which cause $A$ to move from its initial state to state $q$. For each state $q$ and word $w$, one of the following holds (exercise):
1. For every $x \in L_A(q)$, $xw \in L_1$.
2. For every $x \in L_A(q)$, $xw \notin L_1$.
We now modify $A$ by determining its accepting states as follows. A state $q$ is accepting if for some word $w \in L_2$, $xw \in L_1$ for all $x \in L_A(q)$. It is not too hard to show that the modified automaton accepts $L_1/L_2$ (exercise).