Polynomial-time distinct occurring variables of CSP instances #
The original certificate lists variables in order of first occurrence, preserving the framed CSP and variable encodings. It is extracted unchanged from the counting application so that other native CSP algorithms can use it without importing fine-grained counting endpoints.
Main results #
Cslib.Complexity.CSP.computableInPolyTime_distinctVars: native polynomial-time first-occurrence enumeration for arbitrary encoded relation and variable types.
theorem Cslib.Complexity.CSP.computableInPolyTime_distinctVars {Rel V : Type} [DecidableEq V] (encRel : Rel ↪ List Bool) (encV : V ↪ List Bool) :
Turing.MultiTapeTM.ComputableInPolyTime Logic.PL.CSP.distinctVars (encCSP encRel encV) (Turing.MultiTapeTM.encList encV)
Listing the distinct occurring variables CSP.distinctVars in order of first occurrence is
computable in polynomial time.