How can one formally prove
$L \cdot L^{*} = L^{+}$
It looks obvious to me since with the concatenation you get rid of $\varepsilon$, but I cannot think of a formal proof through induction or something.
|
How can one formally prove $L \cdot L^{*} = L^{+}$ It looks obvious to me since with the concatenation you get rid of $\varepsilon$, but I cannot think of a formal proof through induction or something. |
|||||||||||||||||||
|
|
To summarize the comments. A. Sometimes $L^+$ is defined to be $L\circ L^*$, where '$\circ$' is the concatenations operator. B. Assume the following definitions,
Then, by the properties of the concatenation operator, $L\circ L^i = L^{i+1}$. Explicitly for the case of $i=0$, it also holds that $L\circ\{\epsilon\} = L$. Then, $$\begin{align} L\circ L^* &= L \circ \left( \{\varepsilon\} \cup L \cup L^2 \cup \cdots \right ) \\ &= (L\circ \{\varepsilon\}) \cup (L\circ L) \cup (L \circ L^2) \cup \cdots \\ &= L \cup L^2 \cup \cdots \\ &\equiv L^+ \end{align}$$ The only missing part is to explain the second transition--The distributivity of the concatenation operator over unions. |
|||||
|