Certified fixed-gadget replacement #
Each source constraint is replaced by a fixed equality-free gadget. Original variable v
becomes 2*v; auxiliary port j at constraint index i becomes 2*(B*i+j)+1, where
B bounds every gadget's auxiliary count. Repeated source variables are allowed.
A global exact-arity guard sends malformed inputs to an explicit rejecting target instance.
The rejection premise concerns only that fixed instance, not a solver or gadget theorem.
The native multitape polynomial-time certificate uses binary input/output variable indices, unary local template indices and constraint indices, and a finite lookup for the fixed source alphabet. This is the equality-free case of [Che06], Proposition 3.9, arXiv v1, p. 8, with the encoding and malformed-input behavior made explicit.
Main definitions #
Cslib.Logic.PL.CSP.PPGadget.template: uniform local ports for a certified gadget.Cslib.Logic.PL.CSP.replaceGadgetsGuarded: exact-arity guarded fixed-gadget replacement.
Main results #
Cslib.Logic.PL.CSP.satisfiable_replaceGadgetsGuarded_iff: total semantic correctness.Cslib.Complexity.CSP.computableInPolyTime_replaceGadgetsGuarded: native polynomial time for fixed finite source alphabets, with binary variable names.
Uniform local ports: false denotes a free port and true an auxiliary port.
The natural indices are bounded constants, encoded in unary.
Instances For
Renaming a well-formed gadget preserves exact target arities.
Replacing with well-formed templates produces well-formed target constraints.
The guarded compiler produces a well-formed result if its fixed reject instance is well formed.
Correct gadgets preserve satisfiability on well-formed inputs. Only a uniform bound on the number of auxiliary ports is required.
The exact-arity guard gives total correctness, including malformed inputs. The supplied reject instance must be unsatisfiable.
Full guarded correctness for the exact-arity CSP decision predicate. A reject target may fail either well-formedness or satisfiability, allowing a fixed malformed constraint.
The fixed reject target fails exact arity independently of its semantics.
Instantiate a local template in native polynomial time. Local indices and the constraint number are unary; scope variable names and output names are binary.
Finite fixed gadget lookup and replacement are native polynomial time, with no computability requirement on the process used to obtain the fixed gadgets.
A total native polynomial-time compiler with an explicit malformed-input reject target.