Documentation

CslibFrontier.DataStructure.PriorityQueue.BinaryHeap.Native.Extract

Native extract-min through the original memory program #

The uniform result carrier forgets the proof in a Fin n handle, retaining its natural value and key. The observation back to the typed indexed-PQ answer uses the existing Memory.entry and is a left inverse. This changes no query, write, history or memory cost of the original extraction. The realization stages the computed sift arguments through the sift-down certificate.

Main results #

These are installed-register operation certificates, not a heap initializer or a complete client clock. The existing source correctness and logarithmic memory bound remain the supplier.

Realize the original extraction after erasing only the proof in its handle. The local sift certificate is reused as a call; its argument staging is part of the native program.

Forgetting only the proof in the source handle and observing it through the existing checked entry constructor is an exact left inverse on the complete memory program.

The actual encoded extraction result is the original typed answer with only the Fin proof forgotten. In particular, every returned natural handle still satisfies its source bound.

The erased result transports the full interpreter run, including its state and history. This is the actual observation contract needed by the uniform Backend.