In-place mapping with an imported helper #
The named source calls the already verified square function and writes each result back into the borrowed array. The shared map contract supplies the loop invariant, termination and outside-array frame; the client supplies only the helper contract and its ordinary mathematical transformation.
The executable contents equation uses List.map. Its independent full-run bound
includes the helper calls, real loads and stores, both iteration cursors, the
generated index, and the enclosing call and halt. No list loader or
allocation is performed, and machine-word multiplication remains modular.
Equations
Instances For
Equations
Instances For
The declared function's result and shared state, observed through its actual execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function's compiled call, retaining the complete machine result.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Instances For
Execute the declared function with a normal-halt proof, retaining its state and count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Project the declared word, array, or Unit result of the normally terminating call.
Use runTotal or applyState to observe execution when the result is Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Project the declared word, array, or Unit result of the normally terminating call.
Use runTotal or applyState to observe execution when the result is Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
The declared function's result and shared state, observed through its actual execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared parameters' actual by-value word fields.
The declared function's compiled body count, excluding its enclosing call overhead.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function and return its typed value and source shared state, excluding private stack cells and restoring caller registers while retaining actual stream effects.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Project the declared word, array, or Unit result of the normally terminating call.
Use runTotal or applyState to observe execution when the result is Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Execute the declared function with a normal-halt proof, retaining its state and count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function and return its typed value and source shared state, excluding private stack cells and restoring caller registers while retaining actual stream effects.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared parameters' actual by-value word fields.
The declared parameters' actual by-value word fields.
Execute the declared function's compiled call, retaining the complete machine result.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared function's compiled body count, excluding its enclosing call overhead.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function's compiled call, retaining the complete machine result.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function and return its typed value and source shared state, excluding private stack cells and restoring caller registers while retaining actual stream effects.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
The declared function's result and shared state, observed through its actual execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Transform a borrowed array using a statically imported source function.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared function's result and shared state, observed through its actual execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared function's compiled body count, excluding its enclosing call overhead.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared function's result and shared state, observed through its actual execution.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function and return its typed value and source shared state, excluding private stack cells and restoring caller registers while retaining actual stream effects.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function's compiled call, retaining the complete machine result.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The declared function's compiled body count, excluding its enclosing call overhead.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function with a normal-halt proof, retaining its state and count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
The declared function's compiled body count, excluding its enclosing call overhead.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function's compiled call, retaining the complete machine result.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Ram.Examples.ArrayMap.functions.importMap.Scalar i✝ = List.length { registers := 0, declarations := [] }.program + i✝
Instances For
Equations
Instances For
Project the declared word, array, or Unit result of the normally terminating call.
Use runTotal or applyState to observe execution when the result is Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function with a normal-halt proof, retaining its state and count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function with a normal-halt proof, retaining its state and count.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Project the declared word, array, or Unit result of the normally terminating call.
Use runTotal or applyState to observe execution when the result is Unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute the declared function and return its typed value and source shared state, excluding private stack cells and restoring caller registers while retaining actual stream effects.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The named source is an instance of the verified reusable map operation.
Ordinary list mapping describes the actual mutation. The helper's contract is reused without inspecting its body or exposing the traversal's local slots.
A separate uniform bound on the same function body. Squaring has an empty body and computes its result in the actual return expression, charged by its call.
Budget-free correctness proves normal termination of the actual compiled call, with the two required frames and no separately supplied time bound.
The ordinary executable state projection contains exactly the mathematical
mapped list. This is the compiled invocation, not a host call to List.map.
Bound this same complete invocation, including its outer call and halt.