Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Substitution.CopyEdgeLabels

Restrict target edge bits to their actual gadget copies #

Local labels read the exact target occurrence-prefix offset. Constraint parity and private auxiliary parity follow internally from target vertex evenness and the proved occurrence fibers. The labels are mathematical proof data; the executed replacement body and table do not change.

def Cslib.Complexity.CSP.GadgetRotation.copiedEdgeLabels {Src Rel : Type} {arity : Rel → ℕ} {sem : Rel → List Bool → Bool} {srcArity : Src → ℕ} {srcSem : Src → List Bool → Bool} (gadgets : (r : Src) → Logic.PL.CSP.PPGadget arity sem (Logic.PL.CSP.booleanRelation srcArity srcSem r)) (B : ℕ) (F : Logic.PL.CSP Src ℕ) (i : Fin (List.length F)) (x : Fin (incidenceGraph (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F)).edges.length → Bool) :
Fin (incidenceGraph (gadgets F[↑i].rel).body).edges.length → Bool

Restrict target edge bits to one actual local gadget copy at its literal prefix offset.

theorem Cslib.Complexity.CSP.GadgetRotation.copiedEdgeLabels_incidenceDart {Src Rel : Type} {arity : Rel → ℕ} {sem : Rel → List Bool → Bool} {srcArity : Src → ℕ} {srcSem : Src → List Bool → Bool} (gadgets : (r : Src) → Logic.PL.CSP.PPGadget arity sem (Logic.PL.CSP.booleanRelation srcArity srcSem r)) (B : ℕ) (F : Logic.PL.CSP Src ℕ) (i : Fin (List.length F)) (x : Fin (incidenceGraph (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F)).edges.length → Bool) (o : (gadgets F[↑i].rel).body.Occurrence) (side : Bool) :
copiedEdgeLabels gadgets B F i x (incidenceDart o side).1 = x (incidenceDart (replacementOccurrence gadgets B F i o) side).1

At an original local occurrence, restriction reads exactly its copied target edge bit.

theorem Cslib.Complexity.CSP.GadgetRotation.vertexParity_copiedEdgeLabels_constraint {Src Rel : Type} {arity : Rel → ℕ} {sem : Rel → List Bool → Bool} {srcArity : Src → ℕ} {srcSem : Src → List Bool → Bool} (gadgets : (r : Src) → Logic.PL.CSP.PPGadget arity sem (Logic.PL.CSP.booleanRelation srcArity srcSem r)) (B : ℕ) (F : Logic.PL.CSP Src ℕ) (i : Fin (List.length F)) (x : Fin (incidenceGraph (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F)).edges.length → Bool) (hx : (incidenceGraph (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F)).VertexEven x) (o : (gadgets F[↑i].rel).body.Occurrence) :

Every actual local constraint has zero parity in the restricted edge labeling.