Bounded derivative-sign witnesses #
Only the first N entries of the witness are used. A binary index is reduced modulo the
source degree bound D and then incremented to a positive derivative order. The sign is
read modulo three. Slot zero is the qualifying test, and missing slots have target zero.
Adapted from CodedRootLabelData and CodedRootLabelCorrectness in lean-canny at commit
970f28a5ecefc1327402ade16c068aa4b1b2c183.
A derivative-sign witness entry before its fields are reduced to the allowed ranges.
The tuple of the fields of encRootLabelTestCode.
A framed pair containing the binary derivative index followed by the binary sign code.
Framed list of derivative-sign entries in test order. Each entry stores the binary index before the binary sign code.
The bounded decoder always yields an allowed number of entries.
Convert the bounded prefix into the positive orders read by the sparse label evaluator.
The order program uses the successor of the decoded zero-based derivative index.
Read a target residue by binary slot. Slot zero targets a positive qualifying value. An absent witness entry targets zero.
The order list is computable in polynomial time with a unary prefix bound.
Binary addressing of the target costs time polynomial in the encoded input and slot.
The target program agrees with the mathematical label on every used slot, including the qualifying slot and padding. Entries past the prefix cannot affect the label.