Native restriction of a raw ordered-boundary table #
The retained dart count is computed in unary. The supplied table, its entries and all successor lookups remain binary. Each first-return search uses only the actual table length; malformed entries do not fund a loop. The certificate applies without a checker invariant.
Main results #
computableInPolyTime_restrictPrefix: plain captured polynomial time for the existing literal restriction program, with a computed unary retained count.
theorem Cslib.Complexity.CSP.OrderedBoundary.computableInPolyTime_restrictPrefix {α : Type} {input : α ↪ List Bool} {table : α → Graph.RotationCertificate} {count : α → ℕ} (hc : Turing.MultiTapeTM.ComputableInPolyTime table input Graph.encRotationCertificate) (hn : Turing.MultiTapeTM.ComputableInPolyTime count input Turing.MultiTapeTM.encUnary) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (a : α) => restrictPrefix (count a) (table a)) input
Graph.encRotationCertificate
Restrict a computed binary successor table at a computed unary dart count in native polynomial time. Only the retained count and the actual table length fund the scans; there is no validity or entry-bound premise.