Correctness of pointer-machine compilation to word RAM #
Given implementations of the scalar primitives, the compiler transfers valid pointer-machine runs to the standard word RAM. All represented data and addresses must fit the chosen word width throughout the source run; scalar calls must satisfy their implementations' headroom conditions. The target starts with a represented source state, so input preparation is not charged here.
Scalars.runs_compile preserves the complete represented state with constant overhead per
source instruction. Scalars.executes_compile includes the final halt and retains the represented
final state. The target halt returns zero; the machine's data and heap remain in the final state.
These are forward simulation results, not a correspondence between source and target faults.
Compile a run from represented input, preserving the complete final state. The overhead is constant for a fixed source program and scalar implementation. Fitting words are required at every source boundary; scalar admissibility is required only for instructions that execute.
A successful source execution yields a target run ending at a represented final state and
then halting with zero. The bound includes that halt. The target starts with the canonical
encodeState representation; constructing this preencoded input is not charged here.