Encoding bounds for raw boundary states #
The component lower bounds and cubic envelope use the existing binary State encoding. Relation-symbol payload is counted in its supplied encoding, including for infinite alphabets. These original bounds are shared by the schedule and metadata-run driver; no validity or runtime premise is part of either statement.
theorem Cslib.Complexity.CSP.CrossInsertion.State.encoding_length_le {Rel : Type} (encRel : Rel ↪ List Bool) (J : State Rel) (L : ℕ) (hq : List.length J.body ≤ L) (hm : J.body.occurrences.length ≤ L) (hp : J.ports.length ≤ L) (hd : J.rotation.successor.length ≤ L) (hr : (List.map (fun (r : Rel) => (encRel r).length) (List.map Logic.PL.Constraint.rel J.body)).sum ≤ L) (hw : ∀ z ∈ J.body.vars ++ J.ports, z.size ≤ L) (hv : ∀ v ∈ J.rotation.successor, v.size ≤ L) :
Component counts, actual encoded relation payload and binary widths give a cubic bound for the existing State word, without a finite alphabet or table-validity premise.