Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Strassen.Traversal

Native Strassen traversal induction #

The explicit native controller executes all seven children, real parent resumptions and the final pop. The proof inducts on matrix depth and the actual remaining child phases. Every recursive execution comes from that induction; there is no assumed multiplication, execution or time field in the final result. Root setup and initialized counter composition must separately derive the entry invariants from original input data.

Internal remaining-work budget, including each real child and its parent return step. The five double updates and two single updates account for exactly twelve coefficient loops.

theorem Cslib.Algorithms.WordRAM.Strassen.exec_ready (k : ℕ) {w p A B a b out scratch frames frame : ℕ} (x : WordRAM.Data 64) (u v : ℕ → ℤ) (hx : NodeReady p k a b out scratch frames frame x) (hl : NodeLayout p k a b out scratch frames frame) (hu : ∀ i < 4 ^ k * p, (u i).natAbs ≤ A) (hv : ∀ i < 4 ^ k * p, (v i).natAbs ≤ B) (hleft : ∀ i < 4 ^ k * p, x.mem (a + i) = WordRAM.Signed.encode (u i)) (hright : ∀ i < 4 ^ k * p, x.mem (b + i) = WordRAM.Signed.encode (v i)) (hmag : GenericRAM.Signed.Fits w ↑(magnitudeBound p A B k)) (haddr : WordRAM.Fits (w + 2) (addressBound frames frame k)) :
∃ (y : WordRAM.Data 64), NodeResult p k out scratch frames frame u v x y ∧ ∀ (z : WordRAM.Data 64) (T : ℕ), WordRAM.ExecWithin (w + 2) controller y z T → WordRAM.ExecWithin (w + 2) controller x z (traceBudget p k + T)

Complete native execution of one ready node, including every recursively executed child, stack access, phase decision, operand loop, accumulation and return. The continuation form charges the surrounding real loop while allowing a nonroot child to return to its parent.