Preparing the native Convolution-3SUM host #
The host reads the standard length header and computes a polynomial magnitude bound using the existing native parameter program. It then computes the matrix side and consecutive matrix addresses. The parameter program's additional computations are included in the instruction count.
This directly adapts the setup of Anthropic's pinned
c3Body.
The complete reduction must also fill every instance and invoke a concrete certified solver.
Main definitions #
Host.ParametersAt,Host.Parameters: caller-owned and standalone register interfaces.Host.prepare: native header, magnitude, square-root and layout computation.
Main results #
Host.exec_prepare: exact prepared parameters and a charged setup bound.
References #
Polynomial magnitude bound.
Input base address.
AB matrix base address.
BC matrix base address.
AC matrix base address.
Solver workspace starts after the three matrices.
Number of vertices per part.
Current instance number.
Number of instances.
Accumulated Boolean verdict.
Unsigned filler magnitude.
Signed-encoded positive filler.
Number of entries per matrix.
Square-root argument.
Square-root output.
Register embedding for the existing parameter routine.
Register embedding for successive squares.
The mathematical side length used by the reduction.
Runtime source and caller-owned matrix workspace retained throughout the instance loop.
Input length.
Magnitude bound.
Caller-supplied input pointer.
AB starts in the caller-owned matrix workspace.
BC follows AB.
AC follows BC.
Solver scratch follows AC.
Side length.
Two instances per possible low-index sum.
Positive invalid-index filler.
Sign-and-magnitude representation of that filler.
Loop increment.
Standalone layout: input starts after header zero and matrices immediately follow it.
Input-length output of the parameter bank.
Magnitude output of the parameter bank.
Copy the two needed parameter outputs and initialize constants.
Consecutive output blocks and the two loop counters.
All initialization consists of actual native subprograms and charged register operations.
Existing layout code also supports arbitrary source placement.
Exact initialization from the ordinary length header. The existing parameter program
computes U = (N+2)^κ; its entire execution is charged, including the unused extra parameters.
The additional fit premises cover matrix addresses and the encoded filler, and are independent
of any solver execution contract.