Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Substitution.MarkerParity

Internally determined even marker tuples #

Each marker bit is the sum of the actual copied free block. Constraint parity makes the whole copied body edge sum zero; its complete free/auxiliary partition and private auxiliary parity then force the complete marker tuple to have even sum. Arity zero is included.

def Cslib.Complexity.CSP.GadgetRotation.copiedFreeLabels {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)) (witnesses : (r : Src) → OrderedBoundary.GadgetWitness (gadgets 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 (srcArity F[↑i].rel) → Bool

The actual free-block edge sum determining one structural marker bit.

theorem Cslib.Complexity.CSP.GadgetRotation.sum_copiedFreeLabels_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)) (witnesses : (r : Src) → OrderedBoundary.GadgetWitness (gadgets r)) (B : ℕ) (hB : ∀ (r : Src), (gadgets r).numAux ≤ 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) :
(List.ofFn (copiedFreeLabels gadgets witnesses B F i x)).sum = false

The complete marker tuple is even, internally derived from actual target vertex evenness. Closed and nullary body components contribute through the original full partition.