Native insert and decrease-key through the realized sift #
The existing memory programs keep their original queries and writes, calling the shared sift-up
certificate directly via realize. Layouts, handles and keys are runtime words; the bound and
typed operation in the entry domain are proof data only.
Main definitions #
UpdateArgument,updateWords: runtime layout, handle word and key.insertSafe,decreaseSafe: the original indexed-PQ admissibility and heap invariant.
Main results #
realizes_insert,realizes_decreaseKey: source-faithful, zero-local-work certificates.
Argument delivery and initialization remain outside these installed-register certificates.
Runtime layout and handle word, followed by the new key.
The runtime layout.
The number of handles.
The heap layout.
The handle word.
The new key.
Exactly the existing valid insertion at a well-formed heap, with the word handle bound visible. The key bound is proof data, not a parameter selecting emitted code.
Exactly the existing valid decrease-key at a well-formed heap.
Insert uses its original writes and the same globally chosen sift body.
Decrease-key uses the original write and the same globally chosen sift body.