Fixed-width witnesses for critical feasibility #
The witness is a framed list of derivative-sign entries and a binary shift, with room for padding. Its width is computable in unary from the binary quotient dimension and unary test count. Decoding any word yields a bounded label and shift. Every label and shift used in the determinant criterion can be represented by a word of the prescribed width.
This adapts RootLabelWitnessEncoding and CodedCriticalCriterion in lean-canny at
970f28a5ecefc1327402ade16c068aa4b1b2c183, using the frontier label types and framing.
Main results #
exists_zero_iff_neg_criticalFeasibilityDeterminantcharacterizes a real zero of a bounded nonnegative source by an accepting fixed-width determinant witness.
Raw witness fields for the critical determinant test.
- label : List RootLabelTestCode
Derivative-sign entries, read through the bounded label decoder.
- shift : ℕ
Shift, reduced modulo the quotient dimension plus one.
Frame the derivative-sign list and append the binary shift.
The tuple of the fields of encCriticalFeasibilityWitness.
The outer frame delimits the witness. Bits after the frame are padding.
Read a witness from a word, using the total framed decoder.
Decoding and returning the framed witness takes polynomial time on every word.
The framed decoder recovers the witness for any padding suffix.
Bit width for a padded witness with quotient dimension D and at most N
derivative-sign entries.
The prescribed width is polynomial-time computable even in unary.
The determinant at the bounded derivative-sign label and shift read from a witness word.
A bounded nonnegative source has a real zero exactly when some witness of the prescribed width makes its decoded critical determinant negative. Soundness uses only bounded decoding, so arbitrary padding or malformed witness bits cannot cause a false positive.