Prove that this language is context-free: $C=\{x\#y|x,y\in \{a,b\}^*\wedge x\neq y\}$.
I try to construct a grammar:
$S\rightarrow C_a\#C_b|C_b\#C_a$
$C_a\rightarrow XC_aX|a$
$C_b\rightarrow XC_bX|b$
$X\rightarrow a|b$
Is it good ? I can try to prove it.
Edit
$S\rightarrow C_abY|C_baY$
$C_a\rightarrow XC_aX|aY\#$
$C_b\rightarrow XC_bX|bY\#$
$Y\rightarrow Ya|Yb|\epsilon$
$X\rightarrow a|b$
$S\rightarrow RT | TR$
$R\rightarrow aRa | aRb|bRa|bRb |\#$
$T\rightarrow a|b|Ta|Tb$