Modular Lagrange basis evaluation within binary argument space #
The counter in basisWeight p s a x is stored in binary. Every modular accumulator is bounded
by p+1, including malformed zero-modulus inputs. Thus the alphabet cardinality s contributes
its binary encoding length, rather than s cells of work space. The native arithmetic
certificates and bounded-counter iteration implement every multiplication, inverse and factor.
Main definitions #
Cslib.TreeEval.Ary.Packed.encBasisArgs: encode(p,s,a,x)in binary.
Main results #
Cslib.TreeEval.Ary.Packed.basisWeight_inSpace: the full scalar basis weight is computable in native work space linear in the encoded arguments.
This certifies one interpolation weight, not the full grid sum or a Tree Evaluation machine.
A single factor uses only linear space in its four binary arguments (p,a,j,x).
The complete basis weight, including its binary counter, is computed in native work space
linear in the binary encodings of (p,s,a,x). The statement is total: no prime or positivity
hypothesis is needed for the resource certificate.