Problem 3.24: pair: => .S> Because there is an automatic transition between the stuck state and the error state, we do not need to do any extra handling for errors. left: .S> => right: .S> => Problem 3.27: a.i) F = {[]command} x Pfstackval+ x Pdictval* Here I use the same notation as was presented in the Notes, using Pdictval to represent a (Identifier x Value) pair. I : Program -> Cposttext = Lambda(Q) . Answer = Lambda<[]command, V.S', Pdictval*> . (Value -> Answer V) a.ii) => => .D> .D> => .D> Note that this representation assumes is on the top of the Dictionary list, which is not neccessarily true. The full definition requires representation of cases where the pair is in the middle and the end of the Dictionary. b.i> F = {[]command} x Pfstackval+ x Pdictval* I : Program -> Cposttext = Lambda(Q) . O: F -> Answer = Lambda<[]command, V.S', Dictionary> . (Value -> Answer V) a.ii) => => .D> => (V+I1->(V1..))> Note that this representation assumes is on the top of the Dictionary list, which is not neccessarily true. The full definition requires representation of cases where the pair is in the middle and the end of the Dictionary.