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

  1. $f|_Σ = \id_Σ$;

  2. $f(S) = S'$;

  3. $f|_V$ is a bijection; and

  4. 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.