Skip to content
An Econ-ARK project

Appendix A — Semantics

Summary

This appendix relates authored equations to their mathematical interpretation and numerical use. The buffer-stock decision equation illustrates binding, continuation arguments and the separate assumptions needed for optimization and approximation.

Relationship with other documents

Builds on — Illustrative example supplies the economic model. Used by — Bellman-SYM's Appendix C specifies binding and interpretation rules; Stages and Methodization give the .bl source and the authoring rules for methods. See also — Initial-algebra semantics distinguishes exact interpretation from numerical approximation.

Denotational semantics assigns mathematical values to expressions. A compound expression is interpreted from its constituents under an assignment of its free inputs, such as a continuation function.1 The elaboration is the construction of interpreted equations and composed operations from the authored source. It provides a record that can be inspected before numerical methods are applied. Its mathematical meaning is distinct from the particular data structure used to represent it.

1. The decision equation

For resources \(m>0\), the buffer-stock decision operator on a continuation function \(\mathrm v_\succ\) is

\[ (\mathbb T_\succ\mathrm v_\succ)(m) =\sup_{0<c\le m}\bigl\{\mathrm u(c)+\beta\,\mathrm v_\succ(m-c)\bigr\}, \]

where \(c\) is consumption, \(\mathrm u\) utility, \(\beta\) the discount factor and \(m-c\) assets after consumption. The continuation input and utility must have domains for which this objective is defined. A fixed feasible policy \(\pi\) instead gives \((\mathbb T_{\succ,\pi}\mathrm v_\succ)(m)=\mathrm u(\pi(m))+\beta\,\mathrm v_\succ(m-\pi(m))\). Attainment and a measurable maximizing policy require additional assumptions. The arrival income expectation is the separate operator \(P_\prec\); it equals \(\mathbb T_\prec\) here because the arrival aggregator is the identity.

Bellman-SYM's Stages page writes the transition and value calculation in .bl. The integration and optimization subscripts bind their own local variables, while a continuation field is represented by a function evaluated at the state produced by the declared transition. For representation up to almost-sure equality, the field must have a version measurable with respect to the information generated by the state, under suitable measurable-domain assumptions. A version agrees with the field almost surely. Available information alone is not a proof of state sufficiency. Bellman-SYM's Appendix C, §§1.2–1.3 and rules R4–R8, states these distinctions. It also separates an equation defining a choice value from one selecting a policy.

2. The interpreted equations

In the specified construction, arithmetic expressions and local binders are parsed into a temporary abstract syntax tree, which records grammatical structure. Interpretation constructs retained equation graphs, definitions and typed diagrams from those terms. Later substitution and inspection use those retained structures; the temporary parser tree and source locations are not the mathematical representation of a stage occurrence. Fresh occurrences remain separate, even when their common stage source is parsed once. In a modular model, each occurrence uses its declaration’s recorded calibration sources and operator family. A field supplied at continuation remains an argument, not an occurrence-specific parameter; methods and settings are outside the modularity condition.

The decision expression contains composition with the asset transition, utility, discounting and optimization. Its continuation function has a declared state domain and the regularity required by the operation. An implicit equation records a relation in its designated unknown; it defines a function only after existence and uniqueness, or an admissible selection, has been supplied. A first-order condition alone does not establish a constrained optimum.

An authored equation or occurrence can supply a place for a numerical method when that place is supported. A physical line of source does not automatically create an independently methodizable operation, and an implicit relation does not automatically insert an inversion method. Fields, functions and types states the mathematical rules, and Bellman-SYM's rules for methodization state the authoring rules, separately.

3. Meaning and computation

Syntax records expressions and their binding structure; semantics specifies their mathematical interpretation. Parsing an equation does not establish integrability, a sufficient state or existence of a maximizing policy. These conditions can be stated mathematically even when source text has no separate name for each operation. An explicit interpretation helps compare them with the declared problem and numerical procedure.

Changing independent and identically distributed income to a first-order autoregressive process changes the shock law and generally the state information needed for prediction. It is a change in the economic model. Changing a quadrature rule for a fixed conditional law is a numerical choice. Likewise, replacing value iteration by a policy-based calculation requires a proved relation between the mathematical operators as well as a valid numerical method.

Stoy distinguishes a program's denotation from different ways of computing it.1 This does not imply that arbitrary numerical approximations are exact or equivalent. For Coleman–Reffett time iteration, Sargent and Stachurski describe a value–policy correspondence in volume 2, §8.3.4, pp. 290–292.2 Here it is used only on specified classes preserved by the respective operators, with a verified bijection and operator identity. The marginal-utility inverse requires finite integrals at zero, and a distance defined through corresponding value functions must be finite on the chosen class. Convergence in that distance does not automatically imply ordinary uniform policy convergence. Semi-conjugacy retains the unfinished derivation and these qualifications.

4. Numerical attachment

A handler implements a numerical procedure at a supported declared place, such as an expectation or an implicit relation. Its assumptions and representation requirements remain explicit: a root finder needs an appropriate equation and admissible domain; a candidate-envelope comparison needs a specified candidate family. A method name does not prove accuracy, optimality or convergence.

The remaining comparison with solver libraries must identify the mathematical operation, the authored place and the actual numerical procedure. Exact interpretation and refinement are treated in Initial-algebra semantics; numerical error and stability require the additional conditions summarized in Operator algebra §6.


  1. Stoy, J. E. (1977). Denotational Semantics: The Scott-Strachey Approach to Programming Language Theory. MIT Press, §2.2, p. 11. ↩↩

  2. Sargent, T. J. and Stachurski, J. (2026). Dynamic Programming, volume 2, authors' May 2026 edition, §8.3.4, Lemma 8.3.11 and Proposition 8.3.12, pp. 290–291, and §8.3.4.2, p. 292. The conditional scope used here is stated in §3. ↩