0
$\begingroup$

Consider an alphabet $\Sigma$ and languages $L_1,ドル $L_2$. I am trying to prove that $$(L_1 − L_2)^* = (L_1^* − L_2^*)^*$$ ($-$ is the difference). I suppose that $L_1= \{a\}$ and $L_2= \{b\}$. Then

$(L_1 − L_2)^* = \{a\}^* = \{\varepsilon, a, aa, aaa, \ldots \}\ $ and

$(L_1^* − L_2^*)^* = \{a, aa, aaa, \ldots \}^*$.

So the relation is true: $(L_1 − L_2)^* = (L_1^* − L_2^*)^*$

How I can prove it with definition? I only know that $$A\setminus B = \{x \mid x \in A \text{ and } x \notin B \}$$

J.-E. Pin
43.2k3 gold badges41 silver badges94 bronze badges
asked Feb 12, 2017 at 13:51
$\endgroup$
2
  • $\begingroup$ There's a separate SE for theoretical computer science (though your question might be acceptable here also). $\endgroup$ Commented Feb 15, 2017 at 11:27
  • $\begingroup$ @ghosts-in-the-code This question would immediately be rejected on cstheory.stackexchange.com: this is not a research level question. In any case, never ask a question on several sites at the same time. $\endgroup$ Commented Feb 15, 2017 at 17:30

1 Answer 1

0
$\begingroup$

This is not true. Take $L_1 = \{a, aa\}$ and $L_2 = \{a\}$. Then $(L_1 - L_2)^* = (aa)^*$ but $(L_1^* − L_2^*)^* = (a^* - a^*)^* = \emptyset^* = \{\varepsilon\}$.

answered Feb 15, 2017 at 11:28
$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.