Native read-only memory-heap operations #
The original Memory.isEmpty and Memory.getKey programs are realized over the shared runtime
layout and typed-handle encodings. Both emitters are selected before every layout, handle, word
width and memory. The bounded read and Boolean/optional-result glue are paid by a fixed factor.
No key is shifted to encode absence, so a maximum fitting key remains representable.
Main results #
realizes_isEmpty: the original one-query emptiness test.realizes_getKeyWord,realizes_getKey: the same at-most-two-query lookup for a runtime handle word with a visible bound, or for the typed indexed-PQ client.
These certificates assume arguments installed in registers. They neither load an external heap nor initialize its representation. The heap's existing source correctness remains separate.
The original emptiness test with constant native overhead and a runtime layout.
The original optional lookup on a runtime handle word. The bound is part of the explicit entry domain; it is not an input-dependent choice of code or an extra native check.
The typed indexed-PQ client reuses the word-body certificate by static wiring. Its key is returned unshifted, including the largest fitting word.