Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Strassen.Child

Computed Strassen child buffers #

All six child fields below are produced by the actual locateChild block. The layout assertions are internal loop invariants derived from its numerical result, never a precomputed layout parameter supplied to the program. The common parent header and every earlier frame word survive this read-only stage.

Exact child words computed by the native six-instruction buffer calculation.

theorem Cslib.Algorithms.WordRAM.Strassen.ChildBuffers.of_regs_eq {p k scratch : ℕ} {x y : WordRAM.Data 64} (h : ChildBuffers p k scratch x) (hr : ∀ (i : Fin 64), 50 ≤ ↑i → ↑i < 56 → y.regs i = x.regs i) :
ChildBuffers p k scratch y

The low-bank operand kernels preserve every computed child-buffer register.

theorem Cslib.Algorithms.WordRAM.Strassen.exec_locateChild_header {w p k a b out scratch frames frame : ℕ} (x : WordRAM.Data 64) (hx : NodeHeader p (k + 1) a b out scratch frames frame x) (hl : NodeLayout p (k + 1) a b out scratch frames frame) (haddr : WordRAM.Fits w (addressBound frames frame (k + 1))) :
∃ (y : WordRAM.Data 64), WordRAM.ExecWithin w locateChild x y 6 ∧ NodeHeader p (k + 1) a b out scratch frames frame y ∧ ChildBuffers p k scratch y ∧ y.mem = x.mem ∧ ∀ (i : Fin 64), ↑i < 50 → y.regs i = x.regs i

The native block derives all child buffer words and preserves the parent header/phase, using only the original node address envelope for every arithmetic fit.