Let $L_1$ a regular language and $L_2$ a context-free one.
I need to show that $$L = \{w \mid w = x_1y_1x_2y_2\dots x_ny_n \mbox{ where } x_1x_2\dots x_n \in L_1 \mbox{ and } y_1y_2\dots y_n \in L_2\}$$ is context-free (or not) ($x_i$ and $y_i$ are letters under the alphabet $\{a, b\}$)
As far as I know, if $L_1$ and $L_2$ were both regular, this language would also be regular, so my guess is that this one is context-free. I need to prove this properly using only closures under homomorphisms and under intersection of a regular lang. with a context-free lang.
Help would be greatly appreciated.
Thanks
Hopefully your are also allowed to use closure under inverse homomorphisms (for both regular and context-free languages)?
As this is homework, I will first give a hint only. When you need more explicit help let us know.
Let us fix the alphabets: $L_i\subseteq \Sigma_i^*$, for $i=1,2$.
The operation (sometimes called fair shuffle) alternates letters from both languages. It is a first step to "combine" both languages by using a "parallel alphabet" $\Sigma_1\times \Sigma_2$, intersection and inverse morphism. This intermediate alphabet has pairs of letters, but is an alphabet as it is of finite cardinality.
E.g., $\{a,b\}\times \{0,1,2\} = \{ (a,0), (b,0), (a,1), (b,1), (a,2), (b,2) \}$. For $abba\in L_1$ and $1120 \in L_2$ we code both strings as $(a,1)(b,1)(b,2)(a,0)$.