Ordinary store blocks implementing finite-map updates #
These budget-free contracts connect fixed source statements to mathlib's
Finmap.insert and Finmap.erase. The represented key is ghost data appearing
only in the precondition and result, not in the program's syntax. Runtime
addresses and values are already in the specified registers, as required by
explicit preconditions; address calculation and table initialization are not
provided for free.
Insertion writes the payload before a nonzero presence marker. Both stores
read only registers, so changing memory cannot invalidate the second store's
operands. Erasure stores the ordinary source constant zero into the marker;
its compiled constant evaluation remains part of the existing machine cost.
The exact final state and standard Set.EqOn frames retain all other memory.
Two ordinary register-addressed stores implement native finite-map insertion, with no dependence of the program text on the represented key.
Clearing one marker implements native erasure and leaves its payload unchanged. The zero is an ordinary compiled constant, not an initialized register or a free whole-table initialization step.