Big-step tree size versus small-step length

A language has these big-step rules: B-Val, the axiom v⇓vv \Downarrow v for any numeral or boolean; B-Plus, which from e1⇓n1e_1 \Downarrow n_1 and e2⇓n2e_2 \Downarrow n_2 concludes e1+e2⇓n1+n2e_1 + e_2 \Downarrow n_1 + n_2; and B-Lt, which has the same two premises and concludes e1<e2⇓be_1 < e_2 \Downarrow b, where bb is true exactly when n1<n2n_1 < n_2. Its small-step rules reduce operands left to right, one computation rule per transition.


For the expression (4+1)<(2+2)(4 + 1) < (2 + 2), find:

  • the final value, written true or false;
  • the total number of rule instances in its big-step derivation tree, counting the root and every axiom leaf, as a whole number;
  • the number of small-step transitions needed to reach the value, as a whole number.
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Operational Semantics Questions: