Consider the language
$OVERLAP_{CFG} = \{\langle G, H \rangle \mid G \text{ and } H \text{ are CFGs, where } L(G) \cap L(H) \neq \emptyset\}.$
I aim to show that $OVERLAP_{CFG}$ is undecidable.
We can use the reduction method to $A_{TM}$ but I can't figure out how to set up the demonstration (even the TM)
I usually set up problems this way, but with CFG I wouldn't know how to start, for example ...
Let $SO_{TM} = \{ \langle M \rangle \mid M \text{ is a TM with alphabet } \Sigma = \{1,2,\ldots,9\} \text{ that accepts only ordered words} \}$.
The following machine $F$ computes a reduction from $A_{\text{TM}}$ to $SO_{TM}$:
$F$ = "on input $\langle M, w \rangle$, where $M$ is a TM and $w$ is a string:
Construct the following machine $M'$:
On input $x$:- If $x = 111$, accept.
- If $x = 211$, execute $M$ on input $w$ and return the same result as $M$.
- In all other cases, reject.
Return $\langle M' \rangle$.