Documentation

CslibFrontier.Algorithms.WordRAM.ExactTriangle.RecordProduct.Initialized

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.

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.

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.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.InitializedFirstRecord.producer_frame {W m n g p : ℕ} {values : List ℤ} (ready : InitializedFirstRecord W m n g p values) {y : WordRAM.Data 320} (hy : ∀ (j : Fin 320), ↑j < 65 → y.regs j = ready.state.regs j) (j : Fin 64) :

A consumer preserving the low 65 registers retains the complete original producer bank.

theorem Cslib.Algorithms.WordRAM.ExactTriangle.RecordProduct.prepare_first_input {W m n g p A : ℕ} (values : List ℤ) (hlen : values.length = 3 * (n * n)) (hD : 16 ≤ MatrixMultiplication.Schonhage.D m) (hg : 1 ≤ g) (hp : 0 < p) (hN : MatrixMultiplication.Schonhage.D m ^ 18 ≤ n) (hv : ∀ z ∈ values, z.natAbs ≤ A) (hW : admissionWidth n (MatrixMultiplication.Schonhage.D m) g p A ≤ W) :

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.