Internal explicit-stack Strassen invariants #
The program takes ordinary pointers, depth and coefficient length. These structures describe its actual intermediate state for the execution induction. They contain no run, result or time oracle. Root readiness follows from the native setup theorem; child readiness is derived from the actual operand writes and frame push. The final caller interface must compose those derivations from original input data, rather than require these invariants.
Numerical separation maintained by the actual Strassen buffers and frame stack.
- modulus_pos : 0 < p
Scalar cyclic ring length is positive.
The complete first input is protected below current scratch.
The complete second input is protected below current scratch.
The output also ends before current scratch.
Recursive coefficient buffers end before the actual stack base.
- frames_before : frames ≤ frame
Older frames precede the current frame.
The output is disjoint from the first input.
The output is disjoint from the second input.
The actual three-buffer advancement gives the child all separation properties.
Every index of either input array lies outside the output block and strictly below scratch.
Both input arrays lie outside the current output block, so any state whose memory agrees
outside [out, out + 4 ^ k * p) retains both input arrays.
Both parent input arrays precede scratch and frame and are disjoint from out, so
stage executions that modify only output, child scratch and current/child frame preserve them.
Current matrix parameters and fixed controller constants, before phase-specific work.
First input pointer.
Second input pointer.
Output pointer.
Current scratch pointer.
Actual runtime cyclic length.
Current depth.
Actual computed coefficient-array length.
First real frame address.
Current real frame address.
Current traversal is active.
Raw/canonical zero constant.
Counter constant.
Quadrant radix.
Real frame width.
Reuse the common header after a real helper call preserving its high register bank.
Frame loads and output clearing may change the two cursors, which are not parameters of the current node. All actual header fields are preserved.
Actual current fields and frame words at a newly entered root or pushed child.
Entry dispatch phase.
Words actually written by native root setup or child push.
Only current output, recursive coefficient scratch and current/descendant frames may change during this node. Older parent frames are protected.
Semantic/memory result of a node return, independent of an execution or time claim.
- values (i : ℕ) : i < 4 ^ k * p → y.mem (out + i) = WordRAM.Signed.encode (MatrixMultiplication.Strassen.multiply p k u v i)
Every actual result coefficient agrees with the existing finite product.
Actual preserved caller/parent memory.
The current output pointer is the returned native address.
The cyclic length is preserved.
Root stack address is preserved.
The actual return is a parent pop or the unchanged root pointer.
Only root return clears the actual traversal flag.
Raw/canonical zero survives all low-bank helper calls.
Counter constant survives.
Quadrant radix survives.
Frame width survives.
Native instruction budget established by the subsequent controller composition proof. Its definition alone supplies no execution or source Light instruction-count theorem.
Arithmetic bound for the native budget. The strengthened potential pays the linear
quarter-size work; the actual execution theorem is proved separately in Strassen.Exec.
The actual native setup constructs root readiness, rather than taking it as a premise.