Prove that $L=\big\{\langle G\rangle \mid G\text{ is a CFG over }\Sigma=\{0,1\}\text{ and }1^* \cap L(G)\ne\varnothing\big\}$ is decidable.

context-free-grammardecidabilityformal-languages

How to prove that $L = \big\{\langle G\rangle \mid G \text { is a CFG over } \Sigma = \{0,1\} \text { and } 1^* \cap L(G) \ne \varnothing\big\}$ is decidable? I know I am supposed to prove that it is decidable or not $ L $ contains some string of the language $1^*$ and I know that CFLs are not closed under intersection and that $E_{TM}$ is not decidable but I am having trouble constructing the proof knowing this. If anyone could point me in the right direction, I would appreciate it. Thank you.

Best Answer

Hint. The intersection of a context-free language with a regular language is context-free.