Polynomial-time evaluation over a fixed finite semiring #
Specializes CslibFrontier.Computability.Circuit.Encoding.EvaluationTime to arithSignature F
over a fixed finite semiring F. One machine evaluates every runtime arithmetic gate list and
input list over F using binary wire indices and bounded list lookup, including on malformed gate
lists. This does not certify arithmetic uniformly over growing fields.
Main results #
Arithmetic.computableInPolyTime_evalCode: the total arithmetic evaluator is polynomial-time.Arithmetic.computableInPolyTime_evalOutput: a binary-indexed output lookup is polynomial-time.
The semantic bridges are Program.evalCode_code and Circuit.eval_eq_getD.
These runtime certificates are original.
The input and the entire arithmetic gate list are charged runtime data. The carrier and
scalar encoding are fixed; missing arguments and invalid binary indices use the total default
semantics of evalCode.
Read an output from the computed trace without iterating to the numeric value of an unchecked binary index.