Native root preparation and root-list scattering #
prepareRoot names the existing preparation prefix in scatterListStep: clear the parent and
mark, and subtract that mark from the counter. It is the same effectful source program, not a new
heap representation. Native preparation keeps the exact subtraction domain. The complete list
traversal also requires the original scattering forest and its reached-state domains.
Main definitions #
prepareRoot: the original parent/mark preparation prefix.prepareSafe: native address and exact-subtraction conditions for that prefix.scatterListSafe: domains of the original root-list traversal at actual reached states.
Main results #
realizes_prepareRoot: a native certificate for the original preparation prefix.realizes_scatterList: the complete original traversal for either extraction phase.scatterListSafe_of_scattering: original forest assumptions supply all native loop domains.
The original scatterListStep preparation, factored for source/certificate reuse.
The mark to clear is at most the counter at the actual prefix entry.
Preparation uses the original memory source, with paid arithmetic and no change to the width, layout or history conventions of the surrounding realization.
The existing source scattering forest supplies preparation's exact mark/count domain.
The original next-root query precedes optional preparation and scattering. Every inner loop domain refers to its actual entry memory; the next root is only retained as a word.
The complete original list-step source for either fixed extraction phase. The emitter may
be selected for prep before runtime capacity/layout/handle/maximum words, as in extractMin.
The original scattering forest supplies the native step domain, including the state after making a child an unmarked root. No new heap invariant or subtraction premise is assumed.
Every executed root-list step has its domain at the reached memory. The count, cursor and maximum degree are runtime words; the preparation phase is fixed by the extraction source.
The complete original list traversal. Each root's actual next-pointer query pays loop control, while preparation and inner consolidation retain their original source histories.
The original forest/list invariant supplies every reached native step domain. A final cursor is ignored once the list is exhausted, so no extra handle bound is imposed on it.