Prove that
\begin{align*}
L = \{w \in \{a, b, c, d\}^* \;|\; w=dv, v \in \{a, b, c\}^*,
\#_a(w) \cdot \#_c(w) < \#_b(w) \}
\end{align*}
is not regular.
Assume, for contradiction that
- If
$y$ contains$d$ , then we cannot repeat it, since by definition$d$ happens only once in the beginning of each word. - If
$y$ contains$a$ we cannot repeat it, since in that case$p ⋅ x > p$ whenever$x > 1$ , which violates the definition of$L$ . - If we repeat any string containing
$c$ , (but not containing$b$ , which see in the next bullet point), we will violate the requirement that$\#_b(w) > \#_c(w) ⋅ \#_a(w)$ . - Since the prefix concatenated with
$y$ should not be longer than$p$ , we cannot repeat any string containing$b$ because the prefix of length$p$ has no$b$ in it.
Since these are our only options, it must be impossible to satisfy the
requirements of pumping lemma, hence, by contradiction, the language
Prove that the language
\begin{align*}
L = \{w \in \{x, y\}^* \;|\; (w = x^k(yyyy)^{m!},
k,m \geq 2) \lor w = y^{2l}, l \geq 2 \}
\end{align*}
is not regular.
Suppose, for contradiction
Let
\begin{align*}
Reversed(\mu_1 \mu_2 \dots \mu_n, n) = &\mu_1, \mu_2, \dots, \mu_n \in \Sigma, \\
&\mu_1 \mu_2 \dots \mu_n \in L^R. \\
Interleaved(\mu_1 \mu_2 \dots \mu_n, n) = &\exists (\sigma_1, \sigma_2, \dots, \sigma_n,
\zeta_1, \zeta_2, \dots, \zeta_n \in \Sigma): \\
&(\mu_1 \sigma_1 \zeta_1 \mu_2 \sigma_2 \zeta_2
\dots \mu_n \sigma_n \zeta_n \in L) \\
\hat{L} = \{ &\mu_1 \mu_2 \dots \mu_n \;|\; \\
&n \geq 0, \\
&Reversed(\mu_1 \mu_2 \dots \mu_n, n), \\
&Interleaved(\mu_1 \mu_2 \dots \mu_n, n) \}
\end{align*}
And whenever
First I note that
- Reverse all transitions.
- Make the start state an accepting one.
- Make all previously accepting states connect to a newly added start state by
$ε$ -transitions. Thus we obtain an NFA for the reversed language.
Thus,
Next, I note that regular languages are closed under intersection. Thus
proving that
Let
\begin{align*}
\frac{1}{3}L = \{ w \in \Sigma^* \;|\; wxy \in L, \abs{x} = \abs{y} = \abs{w} \}
\end{align*}
The language
- Write regular expression accepting the language
$0^*01^*/0^+$ . - Prove that if
$L$ is regular then$\overset{↔}{L}=\{xy ∈ Σ^* \;|\; yx ∈ L\}$ . - What is wrong with
$\overset{↔}{L} = (Σ^* \setminus L).(L / Σ^*)$ if it was offered as a solution for the previous question?
The proof is immediate from concatenation closure properties: Languages of
Assuming backwards slash means left quotient rather than complement, then
the general idea for the proof seems to be a workable one, except that one
shouldn’t use the same character
\begin{align*}
L_y &= L / \{ x \} \\
L_x &= L \setminus \{ y \} \\
\overset{\leftrightarrow}{L} &= (L \setminus L_y).(L / L_x)
\end{align*}