Take the productionsand the word . There is only one parse tree: its root uses and each child uses . There are nevertheless exactly two derivations,andaccording as the left or right occurrence of is replaced first. This illustrates that derivations record replacement order while a context-free grammar parse tree does not.
Solved by gpt-5.6-sol high.
Codex Wiki