Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.VisitorSkip

Actual skipped transitions in the fused Chan–He visitor #

Zero-fuel and empty-column entries execute the original seven pops and actual branch paths. They perform no solver call, leave the consumed prefix unchanged and preserve every live pending source, the bitmap and the original frontend prefix.

Main results #

theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.Visitor.skip_transition {r w κ n : ℕ} {a : ChanHe.Traversal.Arena} {target : List ThreeSum.ChanHe.Node} (solver : WordRAM.Code WordRAM.Basis.standard (r + 7)) (e : ChanHe.Traversal.Entry) (es : List ChanHe.Traversal.Entry) (ns : List ThreeSum.ChanHe.Node) (x : WordRAM.Data (registerCount r)) (ha : a.Separated) (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) (hskip : e.fuel = 0 ∨ (e.data 0).length = 0 ∨ (e.data 1).length = 0 ∨ (e.data 2).length = 0) :
∃ (y : WordRAM.Data (registerCount r)), WordRAM.ExecWithin (w + 2) (body solver) x y 107 ∧ Cursor.Invariant a w κ n target { pending := es, consumed := ns } y ∧ { pending := es, consumed := ns }.remaining a = { pending := e :: es, consumed := ns }.remaining a ∧ { pending := es, consumed := ns }.work + 1 ≤ { pending := e :: es, consumed := ns }.work ∧ (∀ (T : ℕ), 109 + { pending := es, consumed := ns }.credit a T ≤ { pending := e :: es, consumed := ns }.credit a T) ∧ y.regs (preprocessingRegisters r ChanHe.Traversal.heap) = x.regs (preprocessingRegisters r ChanHe.Traversal.heap)

A skipped native descriptor leaves the Boolean fold unchanged and reduces traversal credit.