statement¶
A statement is one equation line of a block of a stage file, as written:
V = u(c) + β*V[>] :: [id=value]. A value statement is one whose
left-hand side is a value or marginal-value field; the phrase "value line"
is not used for it, because the calculus's value line \(\mathsf L\) is the
set in which values lie. A statement's annotation :: [...] carries its
identifier and its marks, among them !node, which makes the statement a
node and its result a named wire (see sub-builder), and !doc, which
marks a declarative statement.
Three readings¶
In an initial diagram, a graph of the stage on its fields
(semgraph), a statement is a box inside its block's box unless it is
marked !doc: its input wires are the fields it reads and its output wire
the field it defines, so a name a statement introduces, an intermediate
field y = l + h + x or the candidate c[>] of a policy block, appears as
a wire. The initial diagrams are the only graphs in which such names are
recorded. In the definitions table every statement is a record of kind
line, keyed by its address and holding its tags and retained term; its
role, ordinal and operator occurrences are queries. In the builders
graphs, the graphs of the builders, a statement is not a box: the fold replaces it by the
operators it denotes, a pullback, expectations and
aggregations for a value statement of a backward block, and an alias
statement is substituted at its uses
(Appendix C R2).
Two kinds of statement in a backward block¶
A statement whose right-hand side carries no value input, y = l + h + x,
is a field equation: it extends the typing context with a derived field and
belongs to the field reading. A statement whose right-hand side carries a
value input, a continuation function, an expectation's result or a
sub-builder's output, is folded into operators, and only such a statement
may carry !node in a backward block. In a forward block every statement
is a field equation and a !node marks a sub-transition.
A property of a line¶
A statement attached to an operative line by a dotted id, as the
first-order condition optimality.euler is attached to the maximization
line optimality, is that line's property: it forms no row, no address
and no method place of its own, and it prints under the row of its line,
read at the point, with its id. A dotted id whose first part names no line
of its block is refused.
A clause after a statement¶
A statement may carry a clause ⟂ after it, the complementary slackness
between the statement's residual and a bound, as the candidate line of the
consumption stage does, c[>] <= 𝑑𝑢𝑖𝑛𝑣(dV[>]) ⟂ a >= 0. The Kuhn–Tucker
condition of a policy block has three spellings, the clause on the
first-order condition, a declared multiplier and the clause on the
candidate line, and the three denote one relation
(Constraints §§3 and 4).
An occurrence is not a statement¶
An occurrence is an operator written inside a statement, E_η(·),
argmax, solve; its result is a wire the construction makes, free in the
remaining coordinates, and only the operation's own method attaches to it.
Marking a statement !node is the only way to make an occurrence's result
a named object.
Related concepts¶
semgraph, sub-builder, aggregation, initial diagrams, expression.