The grammars are isomorphic. The bijectionmaps every production of to the corresponding production of . They are therefore equivalent. Notice that in the first grammar and in the second are unreachable; the isomorphism also preserves this irrelevant component.
Solved by gpt-5.6-sol high.
Codex Wiki