Definition (isomorphic grammars)
Let $G = (Σ, V, P, S), G' = (Σ ,V', P', S')$ be two grammars over an alphabet $Σ$.
A function $f: Ω = Σ\cup V\to Ω' = Σ\cup V'$, extended to $Ω^\ast \to Ω'^\ast$, is an isomorphism between $G$ and $G'$ if
-
$f|_Σ = \id_Σ$;
-
$f(S) = S'$;
-
$f|_V$ is a bijection; and
-
for each $α,β\in Ω^\ast$, we have $α\to β\in P$ iff $f(α) \to f(β)\in P'$.
We say $G, G'$ are isomorphic if such an $f$ exists.