Plain native cost of closing all consecutive metadata runs #
A captured, list-funded fold uses the existing first-run certificate. Its own invariant bounds every reachable outer prefix directly: original rows, occurrences, relation payload, selected original names and decreasing ports. The table is either the original raw table or an actual regenerated bounded table. No polynomial output estimate is iterated through the groups. The envelope is storage, not an exact clock; all statements use plain cost.
theorem Cslib.Complexity.CSP.CrossInsertion.computableInPolyTime_closeMetadataRuns {Rel : Type} (encRel : Rel ↪ List Bool) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (p : State Rel × List ℕ) => closeMetadataRuns p.1 p.2)
(encStateMetadata encRel) (encState encRel)
Close every actual consecutive run in plain polynomial time on EVERY raw State and binary metadata word. The input lists fund counts; relation symbols and malformed huge entries remain encoded data. All prefix growth is derived internally.