The same arithmetic program is executed and proved #
This program reads two words, compiles a source multiplication expression, writes its result, and halts. The theorem counts the entire run, including input, output, and halt. No operation-specific cost annotation is present in the source.
Equations
Instances For
Equations
Instances For
The instruction count is calculated from compiled code, not assumed by a source-level multiplication specification.
The executable runner and the machine relation agree on the complete program, and its observable output is the specified machine-word product.
Successful termination is part of the certificate, not an implication conditioned on an execution that might never exist.
The same complete program computes mathematical multiplication modulo the word range for arbitrary input words.
When the inputs and product fit, the result is the exact mathematical product. The width is arbitrary and the compiled program is unchanged.