Native matrix pairs and instance records #
One call writes a six-word record (rho,piece,queries,count,X,Y) and the actual raw unsigned
zero/one matrices X : n×D and Y : D×n immediately after it. Both matrices reuse
WriteMatrices.program; all pointer arithmetic, argument delivery and record stores are charged.
The query words remain in the earlier computed catalogue and are shared by reference.
setup, writeHeader, deliverLeft, deliverRight and matrix are internal program stages.
They are exposed so that the complete catalogue controller can reuse the same fixed program.
Main definitions #
InstancePair.program: fixed thirty-two-register matrix-pair and record writer.InstancePair.leftArgs,InstancePair.rightArgs: existing matrix-writer arguments read directly from the runtime registers.
Main results #
InstancePair.exec: both exact matrices and the real record, with a combined outside frame and a40nD+38charged instruction bound before halt.
Computed A–C residue-array pointer.
Instances For
Computed B–C residue-array pointer.
Instances For
First word of the instance record.
Instances For
Outer matrix dimension.
Instances For
Padded middle matrix dimension.
Instances For
Positive residue modulus.
Instances For
First original vertex in the piece.
Instances For
Actual number of vertices in the piece.
Instances For
Query residue.
Instances For
Actual query-pair pointer.
Instances For
Actual number of query pairs.
Instances For
Index of the original piece.
Instances For
Constant one, preserved by both matrix calls.
Instances For
Header cursor.
Instances For
Number of words in one matrix.
Instances For
Existing left-matrix arguments, with its output following the six-word record.
Instances For
Existing right-matrix arguments, immediately following the left matrix.
Instances For
Compute the left output pointer and matrix area with native arithmetic.
Instances For
Write the actual query reference and both computed matrix pointers.
Instances For
Deliver the seven remaining left-matrix arguments; its destination is already computed.
Instances For
The left writer preserves its argument registers, so only the source and output pointer change for the right call.
Instances For
Reuse either native matrix writer in the lower seventeen registers.
Instances For
Complete record and matrix-pair construction.
Instances For
Finite code independent of every runtime dimension and physical width.
Six raw unsigned record words: residue, piece index, shared query pointer/count, then the two computed matrix pointers. Matrix entries themselves are raw zero/one words.
Instances For
Write both actual matrices and their shared-query instance record. The source arrays are
ordinary residue words before the output region. Existing WriteMatrices.entry supplies the
semantics; no adjacency array, execution or time contract is an input. Halt is excluded.