Big-Step Semantics and Evaluation Derivations
Build a derivation from an environment to a result and explain what a missing derivation means in an inductive semantics.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A rule combines complete subevaluations
Write \(\langle e,\rho\rangle\Downarrow v\) when expression \(e\) evaluates to value \(v\) in environment \(\rho\). For addition, the rule evaluates both operands to integers and returns their sum. A variable reads its binding from \(\rho\). For an application in a lexically scoped language, the function value supplies the environment in which its body runs, enriched by the evaluated argument.
An inductive derivation must be finite
A recursive computation that never returns has no finite derivation under ordinary inductive big-step rules. An expression missing a required rule, such as adding a value of the wrong shape, can also lack a derivation. To distinguish these cases, add separate judgments or use small-step semantics, which can observe an infinite run or a stuck state. Interpreter environments provide a concrete representation of bindings used by the application rule.[1][2]