Parameter binding and returned local frames #
Function arguments use ordinary list indexing. Return discards callee locals, restores caller locals except the destinations, and retains the actual shared memory and I/O effects. The frame rule below simplifies a pure call to a register update only after all three shared-state equalities are proved.
These are equations about the existing source state, not a new calling convention, evaluator, or cost model.
Distinct destinations expose each field separately. Equal lengths prevent truncation, while ordinary assignment itself also permits repeated destinations.
Return fields are all observed in the original callee state, even when an earlier caller destination has the same index as a later result expression.
A call with unchanged shared memory and I/O is an ordered local assignment of its actual returned fields. No callee-local preservation is required.
A call with proved unchanged shared memory and I/O is precisely a local assignment of its actual return value. Callee registers need not be preserved.