Complete live transitions of the fused Chan–He visitor #
Each live transition executes actual popping, local node construction, the certified solver, one packed-tail release and three child pushes. No pointer-table readback is assumed. Pending arrays and the frontend prefix survive the callee's arbitrary higher scratch writes.
theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.Visitor.live_transition {r κ n w : ℕ} {target : List ThreeSum.ChanHe.Node} {a : ChanHe.Traversal.Arena} (c : Host.Callee r) (e : ChanHe.Traversal.Entry) (es : List 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) (h2 : WordRAM.Fits (w + 2) 2) (hcap : WordRAM.Fits (w + 2) (a.stack + a.capacity)) (h : Cursor.Invariant a w κ n target { pending := e :: es, consumed := ns } x) (hf : e.fuel ≠ 0) (hn : ∀ (j : Fin 3), (e.data j).length ≠ 0) :
have T := Host.callerTime (4 * a.N) (c.time (Host.sideLength (4 * a.N)) (2 * (n + 2) ^ envelopeExponent κ + 1)) + 8;
∃ (s : Cursor) (y : WordRAM.Data (registerCount r)),
WordRAM.ExecWithin (w + 2) (body c.code) x y (ChanHe.Traversal.visitTime a.n a.m a.N + 314 + T) ∧ Cursor.Invariant a w κ n target s y ∧ { pending := e :: es, consumed := ns }.remaining a = ChanHe.Traversal.Math.Task.node a.m.primesLE a.Λ e.task :: s.remaining a ∧ s.work + 1 ≤ { pending := e :: es, consumed := ns }.work ∧ y.regs (preprocessingRegisters r ChanHe.Traversal.heap) = x.regs (preprocessingRegisters r ChanHe.Traversal.heap) + 3 + ((e.data 0).length + (e.data 1).length + (e.data 2).length)
Consume exactly the next preorder node and preserve the complete actual native worklist.