Native ordered-probe append table computation #
The four block lengths are computed in unary from actual body and boundary lists. The two supplied tables, their entries, corner indices and reindex maps remain binary. The certificate covers malformed tables as well; accepted-source correctness separately identifies this actual output with the structural probe-center splice.
theorem Cslib.Complexity.CSP.OrderedBoundary.computableInPolyTime_appendRawCertificate {α : Type} {input : α ↪ List Bool} {leftBody leftPorts rightBody rightPorts : α → ℕ} {left right : α → Graph.RotationCertificate} (hlb : Turing.MultiTapeTM.ComputableInPolyTime leftBody input Turing.MultiTapeTM.encUnary) (hlp : Turing.MultiTapeTM.ComputableInPolyTime leftPorts input Turing.MultiTapeTM.encUnary) (hrb : Turing.MultiTapeTM.ComputableInPolyTime rightBody input Turing.MultiTapeTM.encUnary) (hrp : Turing.MultiTapeTM.ComputableInPolyTime rightPorts input Turing.MultiTapeTM.encUnary) (hl : Turing.MultiTapeTM.ComputableInPolyTime left input Graph.encRotationCertificate) (hr : Turing.MultiTapeTM.ComputableInPolyTime right input Graph.encRotationCertificate) :
Turing.MultiTapeTM.ComputableInPolyTime
(fun (x : α) => appendRawCertificate (leftBody x) (leftPorts x) (rightBody x) (rightPorts x) (left x) (right x)) input
Graph.encRotationCertificate
Compute the actual raw append table in native polynomial time. Unary count witnesses fund the output list; binary table entries never fund any loop.