Circuits for prescribed-entry kernel vectors and linear system solving #
Over the full binary basis fullInterpretation (k := 2) of a field F, where every operation on
at most two field elements costs one gate, this module bounds the circuit size of the elimination
routines in CslibFrontier.Foundations.LinearAlgebra.LinearSolve:
Cslib.Circuits.Synthesis.full_kernelVecAt: for anr × nmatrix whose entries are available, the entries ofkernelVecAt A jcost at mostkernelVecCost r ngates.Cslib.Circuits.Synthesis.full_vecMulSolve: for anr × nmatrixMandn-vectorbwhose entries are available, the entries ofvecMulSolve M bcost at mostkernelVecCost n (r + 1) + rgates.
As in CslibFrontier.Computability.Circuit.KernelVector, these bounds count field operations in
the full binary basis, not bit operations over an encoded field (ComputableInPolyTime for
elimination over an encoded field remains open, with rational elimination over ℚ handled in
CslibFrontier.Computability.PolyTime.LinearAlgebra.RationalElimination).
Main results #
Cslib.Circuits.Synthesis.full_kernelVecAt: circuit size ofkernelVecAt.Cslib.Circuits.Synthesis.full_vecMulSolve: circuit size ofvecMulSolve.
A kernel vector with a prescribed entry equal to one, by a circuit. If the entries of a
matrix with r rows and n columns are available, the entries of kernelVecAt A j cost at most
kernelVecCost r n = 8 * (r + 1) * (n + 1) ^ 2 gates of the full binary basis.
Solving w ᵥ* M = b by a circuit. If the entries of a matrix M with r rows and n
columns and of a vector b are available, the entries of vecMulSolve M b cost at most
kernelVecCost n (r + 1) + r gates of the full binary basis.