For the formal grammar ,
Thus contains exactly the finite terminal words reachable from the start symbol by a finite grammar derivation.
Two formal grammars over the same terminal alphabet are equivalent when they generate the same language:
Two formal grammars over the same terminal alphabet are isomorphic when there is a bijection between their nonterminals such that and
where is extended to words by fixing each terminal and acting symbol by symbol.