Materialized integer matrix-power columns #
powerColumnVector M s i computes M ^ s applied to the i-th standard basis vector.
Each multiplication first computes the previous column and then fills a new array-backed
Vector. Thus later coordinate reads access stored entries of that column.
The getter theorem identifies this computation with the mathematical matrix power. If every
matrix entry has absolute value at most one, an entry after s multiplications has absolute
value at most n ^ s, hence at most s * n.size + 1 magnitude bits. These are correctness and
integer-size guarantees. The uniform native machine realization is supplied by
Cslib.IntTable.powerColumn in CslibFrontier.Computability.PolyTime.Int.MatrixPower;
the complete recovery program and its agreement with this implementation are in Program.
Main definitions #
Cslib.Algorithms.PlantedClique.powerColumnVector: materialized matrix-vector iteration.
Main results #
Cslib.Algorithms.PlantedClique.getElem_powerColumnVector: agreement with a matrix-power column.Cslib.Algorithms.PlantedClique.natAbs_powerColumnVector_le: the entry magnitude bound.Cslib.Algorithms.PlantedClique.size_powerColumnVector_le: the binary magnitude-size bound.
If all matrix entries have magnitude at most one, each multiplication grows the largest entry magnitude by at most a factor of the dimension.
The magnitude of each stored power-column entry uses at most s * n.size + 1 binary digits.
An additional sign bit suffices to encode the corresponding integer.