Theorem:LetLbe a recursively enumerable language. ThenL= L(G) for some unrestricted grammarG.
Proof: Since L is r.e, it is ampled by a deterministic TM we want to construct an unrestricted grammar whose derivations simulates the computations ofM, such that . That is, for any string iff symbol for some and . For this is to happen we need to represent IDs of TM M by strings of terminals & nonterminals in G and must have productions in such that
S q0w w.
That is ,
The initial ID q0w must be derivable from S.
Induction production in G to simulate every move of M.
If M eventually enters a final state, then transform the string tow.