Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Substitution.CopyParity

Parity on actual copied constraint fibers #

A target vertex-even labeling has zero sum on every original gadget body's copied constraint. The exact copy map proves the complete target fiber internally, retaining indexed duplicate rows, repeated argument names and arbitrary empty bodies.

theorem Cslib.Complexity.CSP.GadgetRotation.sum_copied_constraint_eq_false {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)) (o : (gadgets F[↑i].rel).body.Occurrence) (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) :
(List.map (fun (p : (gadgets F[↑i].rel).body.Occurrence) => x (incidenceDart (replacementOccurrence gadgets B F i p) true).1) (List.filter (fun (p : (gadgets F[↑i].rel).body.Occurrence) => decide (p.fst = o.fst)) (gadgets F[↑i].rel).body.incidenceList)).sum = false

Every actual copied body constraint inherits even parity from the complete target vertex-even labeling. No local planarity or source validity assumption is needed.