Actual pending-child invariant for native Strassen #
The first child invariant follows from the actual complete positive-depth iteration. Later children use the same invariant after actual return, accumulation, operand production and push. It records only mathematical meanings of current memory/registers, not executions, time bounds or data supplied to the program. The controller induction must derive every instance from its actual preceding execution.
Current native child and protected parent data, after both form loops and frame push.
- ready : NodeReady p k scratch (scratch + 4 ^ k * p) (scratch + 2 * (4 ^ k * p)) (scratch + 3 * (4 ^ k * p)) frames (frame + 7) child
Entire child frame really exists and is ready for the controller.
- left (j : ℕ) : j < 4 ^ k * p → child.mem (scratch + j) = WordRAM.Signed.encode (MatrixMultiplication.Strassen.leftOperand p k u phase j)
Actual first formed operand.
- right (j : ℕ) : j < 4 ^ k * p → child.mem (scratch + 4 ^ k * p + j) = WordRAM.Signed.encode (MatrixMultiplication.Strassen.rightOperand p k v phase j)
Actual second formed operand.
Original parent first input remains readable.
Original parent second input remains readable.
- partial_words (s : Fin 4) (j : ℕ) : j < 4 ^ k * p → child.mem (out + ↑s * (4 ^ k * p) + j) = WordRAM.Signed.encode (MatrixMultiplication.Strassen.partialValue p k (↑phase) u v s j)
Earlier returned children have already contributed to the real parent output.
Parent fields are protected and its phase word was actually updated by the push.
Every descendant write is within the parent's complete output/scratch/frame footprint.
The three concrete stage-write envelopes all lie inside the parent footprint.
A completed child preserves the original parent arrays and its earlier partial sum. Its own returned values are exactly the current finite child product.
The actual first controller iteration establishes the first pending child from original parent coefficient arrays and its actual freshly written frame, even with dirty output.