Initialized native preparation of the first record #
prepare_first_input runs the actual producer and selects ordinal zero with one instruction.
Its InitializedFirstRecord certificate supplies the original producer run, the selected native
state and the input-derived physical fit to either record-product adapter. The certificate's
exec_consumer and producer_frame rules compose a consumer without repeating preparation or
register-bank reasoning. Product correctness and the consumer's time bound remain its own work.
The producer's low bank embeds its registers injectively.
An actual initialized producer run followed by the selection of its first occupied record. The same native memory and low register bank are available to either record-product adapter.
- producer : WordRAM.Data 64
The actual producer's pre-halt state.
- index : ExactTriangle.InstanceIndex p
The occupied record selected by ordinal zero.
- state : WordRAM.Data 320
The extended native state after the real ordinal-selection instruction.
- producerExec : WordRAM.ExecWithin W Instances.program (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) self.producer (preparationTime n (MatrixMultiplication.Schonhage.D m) g p values - 1)
The producer ran from the original headers and signed weights.
- index_mem : self.index ∈ ExactTriangle.instanceIndices (fun (a b : Fin n) => values.getD (Matrix.pairIndex (a, b)) 0) (MatrixMultiplication.Schonhage.D m) g p
The selected record belongs to the producer's instance list.
- ordinal_zero : recordOrdinal n (MatrixMultiplication.Schonhage.D m) g p (fun (q : ℕ) => values.getD q 0) self.index = 0
Its actual ordinal is zero.
- exec_prefix : WordRAM.ExecWithin W (produce.seq (WordRAM.Code.op (WordRAM.Op.const Reg.ordinal 0))) (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) self.state (preparationTime n (MatrixMultiplication.Schonhage.D m) g p values)
Preparation includes the producer and the charged ordinal-selection instruction.
Selection preserves the complete producer bank and memory.
- output : Instances.Output n (MatrixMultiplication.Schonhage.D m) g p (fun (q : ℕ) => values.getD q 0) (WordRAM.Data.init (PreparationInput.input n (MatrixMultiplication.Schonhage.D m) g p values)) (WordRAM.Data.comap producerBank self.state)
The consumer sees a genuine producer output in that same state.
- selected : self.state.regs Reg.ordinal = recordOrdinal n (MatrixMultiplication.Schonhage.D m) g p (fun (q : ℕ) => values.getD q 0) self.index
The consumer's ordinal register selects the occupied record.
- fits : WordRAM.Fits W (2 * self.state.regs 42 + 4 * MatrixMultiplication.Schonhage.CallableProduct.windowSize n (recordQueryCount n (MatrixMultiplication.Schonhage.D m) p (fun (q : ℕ) => values.getD q 0) self.index) + 1024)
Original input bounds cover the selected record's physical product window.
The selected state retains the producer's heap pointer.
The selected state retains the producer's actual memory, including dirty unused words.
Append a certified consumer to the original initialized producer and ordinal selection. The preparation budget already includes the selection instruction.
A consumer preserving the low 65 registers retains the complete original producer bank.
Produce the first actual occupied record from original input alone. No layout, native run, selected index or intermediate physical-fit certificate is an input hypothesis.