Complete native per-record product execution #
The native preparation is followed by the complete existing callable product. Every returned word answers its original occurrence; the whole producer catalogue remains below the owned window and is preserved. These are internal readback composition rules; the producer client discharges their descriptor and source-span assertions from its actual initialized execution.
All preparation arithmetic and the original input lie below the already computed virtual window. This follows from the existing actual product admission, rather than an input fit table.
Postcondition of a 320-register per-record matrix-product backend at tensor level L.
Actual record-to-product execution, with only original input/readback premises and no solver/run/time oracle. The final initialized client derives these premises from the producer.
Common execution interface of a 320-register per-record matrix-product backend
(RecordProduct at tensor level 19 * m, RecordBoxProduct at tensor level 21 * m).
- program : WordRAM.Code WordRAM.Basis.standard 320
Native 320-register record-consumer program.
Tensor level
L m(19 * mor21 * m).Per-record instruction bound for scale
mand query listqs.Fixed instruction-count and physical-width-independence certificate.
- exec {W b m n i out rho piece s t q : ℕ} (X : Matrix (Fin n) (Fin (MatrixMultiplication.Schonhage.D m)) ℤ) (Y : Matrix (Fin (MatrixMultiplication.Schonhage.D m)) (Fin n) ℤ) (qs : List (Fin n × Fin n)) (x : WordRAM.Data 320) : x.mem 1 = MatrixMultiplication.Schonhage.D m → x.mem 3 = n → x.regs Reg.ordinal = i → x.regs 39 = out → x.regs 42 = b → out + i * (6 + 2 * (n * MatrixMultiplication.Schonhage.D m)) + 6 ≤ b → { base := out + i * (6 + 2 * (n * MatrixMultiplication.Schonhage.D m)), length := 6 }.Realizes x.mem ![rho, piece, q, qs.length, s, t] → s + n * MatrixMultiplication.Schonhage.D m ≤ b → t + n * MatrixMultiplication.Schonhage.D m ≤ b → q + 2 * qs.length ≤ b → (∀ a < n * MatrixMultiplication.Schonhage.D m, x.mem (s + a) = (WordRAM.State.init (MatrixMultiplication.Schonhage.QueriedProduct.input true (19 * m) X Y qs)).data.mem (5 + a)) → (∀ a < n * MatrixMultiplication.Schonhage.D m, x.mem (t + a) = (WordRAM.State.init (MatrixMultiplication.Schonhage.QueriedProduct.input true (19 * m) X Y qs)).data.mem (5 + n * MatrixMultiplication.Schonhage.D m + a)) → (∀ a < 2 * qs.length, x.mem (q + a) = (WordRAM.State.init (MatrixMultiplication.Schonhage.QueriedProduct.input true (19 * m) X Y qs)).data.mem (5 + 2 * (n * MatrixMultiplication.Schonhage.D m) + a)) → (∀ (a : Fin n) (k : Fin (MatrixMultiplication.Schonhage.D m)), 0 ≤ X a k ∧ X a k ≤ 1) → (∀ (k : Fin (MatrixMultiplication.Schonhage.D m)) (a : Fin n), 0 ≤ Y k a ∧ Y k a ≤ 1) → MatrixMultiplication.Schonhage.D m ^ 18 ≤ n → WordRAM.Fits W (2 * b + 4 * MatrixMultiplication.Schonhage.CallableProduct.windowSize n qs.length + 1024) → ExecPost self.program (self.level m) W b (self.timeBound m qs) X Y qs x
Record-to-product execution from a single descriptor and raw source spans.
The RecordProduct backend at tensor level 19 * m.