Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.VisitorRoot

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 #

Main results #

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.

theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.Visitor.root_exec {r κ n w : ℕ} {a : ChanHe.Traversal.Arena} (c : Host.Callee r) (e : ChanHe.Traversal.Entry) (ns : List ThreeSum.ChanHe.Node) (x : WordRAM.Data (registerCount r)) (hw : width κ c.widthCoefficient n ≤ w + 2) (ha : a.Separated) (hresources : a.ceiling ≤ (n + 2) ^ envelopeExponent κ ∧ 4 * a.N < (n + 2) ^ envelopeExponent κ ∧ 60 * a.U + 40 ≤ (n + 2) ^ envelopeExponent κ) (hready : a.Ready w) (h : RootInput a w κ n e ns x) :
have T := Host.callerTime (4 * a.N) (c.time (Host.sideLength (4 * a.N)) (2 * (n + 2) ^ envelopeExponent κ + 1)) + 8; ∃ (y : WordRAM.Data (registerCount r)), WordRAM.ExecWithin (w + 2) (oneRoot c.code) x y (70 + ChanHe.Traversal.Math.work e.fuel * (ChanHe.Traversal.visitTime a.n a.m a.N + 316) + (ChanHe.Traversal.Math.Task.output a.m.primesLE a.Λ e.task).length * T) ∧ Cursor.Invariant a w κ n (ns ++ ChanHe.Traversal.Math.Task.output a.m.primesLE a.Λ e.task) { pending := [], consumed := ns ++ ChanHe.Traversal.Math.Task.output a.m.primesLE a.Λ e.task } y ∧ (∀ p < a.stack, y.mem p = x.mem p) ∧ ∀ (i : Fin 128), 109 ≤ ↑i → y.regs (preprocessingRegisters r i) = x.regs (preprocessingRegisters r i)

Initialize the actual stack and consume every native node of this root in exact preorder.