Documentation

CslibFrontier.Algorithms.WordRAM.ThreeSum.Decision.VisitorCall

Charged in-place Convolution calls during Chan–He traversal #

The callback reads the current actual packed pointer and allocation endpoint. Its disjoint host bank preserves every traversal register, while the existing callee contract protects the complete memory prefix below that endpoint and permits arbitrary higher scratch writes.

Main results #

These calling-convention proofs are original.

Boolean OR costs at most three native instructions and changes no other register or cell.

theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.Visitor.exec_consume {r κ n w N H b : ℕ} (c : Host.Callee r) (x : WordRAM.Data (registerCount r)) (μ : ℕ → ℤ) (hw : width κ c.widthCoefficient n ≤ w) (hN : N < (n + 2) ^ envelopeExponent κ) (hH : H ≤ (n + 2) ^ envelopeExponent κ) (hlen : x.regs (preprocessingRegisters r ChanHe.Preprocessing.packedLength) = N) (hbound : x.regs (controllerRegisters r envelope) = (n + 2) ^ envelopeExponent κ) (hheap : x.regs (preprocessingRegisters r ChanHe.Traversal.heap) = H) (hone : x.regs (controllerRegisters r one) = 1) (hans : x.regs (controllerRegisters r answer) = b) (hb : b ≤ 1) (hbelow : x.regs (preprocessingRegisters r ChanHe.Traversal.packed) + N ≤ H) (hvalues : ∀ i < N, |μ i| ≤ ↑((n + 2) ^ envelopeExponent κ)) (hmem : ∀ i < N, x.mem (x.regs (preprocessingRegisters r ChanHe.Traversal.packed) + i) = WordRAM.Signed.encode (μ i)) :

Invoke the existing certified solver on the current actual packed block, preserving the entire live prefix and traversal bank. Argument copies and Boolean accumulation are charged.