Solution (source code)

= Solution

Two <formal grammars> over the same terminal alphabet are <equivalent grammar>[equivalent] when they generate the same language:
$$
\boxed{L(G_0)=L(G_1).}
$$