Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.Pruned.Memory

Concrete input and scratch layout for native pruned queries #

Main definitions #

The standard State.init length cell precedes this list. Query codes and the two source arrays are read-only. The timestamp region is initially zero because it lies beyond the supplied input.

Flat initialized input: depth, query count, both signed arrays, then explicit query codes.

Start of the returned values, in the original query-list order.

First stack-frame cell, immediately after the returned values.

Query lists occupy one 10^L block per possible stack depth.

Values occupy a separate 10^L block per depth.

One shared timestamp directory suffices for all child-set constructions.

One-past-end address of the complete output and scratch footprint.

A scalar budget for the concrete addresses, counters, powers and timestamp generations.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.PrunedQuery.length_input (L : ℕ) (a b : Fin (10 ^ L) → ℤ) (qs : List (Fin (10 ^ L))) :
(input L a b qs).length = 2 + 2 * 10 ^ L + qs.length

The initialized payload includes no precomputed child requests or recursion certificate.