Complete native root traversal with an in-place Convolution consumer #
The actual stack initializer and seven-word root push enter the certified visitor loop. The resulting Boolean folds the exact root preorder together with the previously consumed prefix. No pointer-table readback or catalogue publication is required. The caller supplies a local allocation ceiling, allowing later forest roots to retain their reserved space.
Main definitions #
RootInput: actual descriptor, live memory and resource obligations before stack initialization.
Main results #
oneRoot_preserves: all saved frontend and forest registers survive, including the counters.root_exec: actual complete root execution and its exact Boolean-fold invariant.
Every saved frontend/forest scalar survives the entire root, even for opaque solver code.
Caller obligations for an actual root descriptor and its already accumulated Boolean fold.
- bounded : WordRAM.Data.Bounded (w + 2) x
All actual words already fit.
Persistent traversal parameters.
The actual root metadata is loaded in the native descriptor registers.
The three actual source blocks retain exact signed readback.
The existing reduction's cardinality, magnitude and duplicate-free promises.
The actual prime bitmap is ready.
Root sources avoid the complete reserved stack gap.
- ends (j : Fin 3) : e.source j + (e.data j).length ≤ x.regs (preprocessingRegisters r ChanHe.Traversal.heap)
Every root source ends below the fresh allocation.
Root fuel matches the reserved stack depth.
Allocation starts above the reserved gap.
- heapBudget : x.regs (preprocessingRegisters r ChanHe.Traversal.heap) + ChanHe.Traversal.Math.work e.fuel * ChanHe.Traversal.allocationSize a.n a.m a.N ≤ a.ceiling
This root's complete work retains its local allocation reservation.
The common packed length remains actual metadata.
The value envelope was computed from the original ordinary input length.
The actual Boolean accumulator constant.
Raw Boolean accumulator.
- verdict : x.regs (controllerRegisters r answer) = 1 ↔ ∃ node ∈ ns, ThreeSum.Convolution (4 * a.N) (node.oneArray a.U)
The accumulator is exactly the disjunction of the previous calls.
The original frontend prefix is available for later roots.
Initialize the actual stack and consume every native node of this root in exact preorder.