Edge-bit sums from actual constraint parity #
The ordered typed occurrence scan reads the original edge-label list exactly. If all actual constraint endpoints have even parity, its whole edge-bit sum is zero. Nullary constraints contribute an empty scope sum and need no selected occurrence.
theorem Cslib.Complexity.CSP.map_incidenceList_edgeLabels {Rel V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} (x : Fin (incidenceGraph F).edges.length → Bool) :
The typed occurrence scan reads the literal edge-bit list in its original order.
theorem Cslib.Complexity.CSP.vertexParity_eq_sum_scope {Rel V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} (x : Fin (incidenceGraph F).edges.length → Bool) (o : F.Occurrence) :
(incidenceGraph F).vertexParity x (incidenceDart o true).vertex = (List.ofFn fun (j : Fin F[↑o.fst].scope.length) => x (incidenceDart ⟨o.fst, j⟩ true).1).sum
The actual constraint-endpoint parity is the sum in its original ordered scope.
theorem Cslib.Complexity.CSP.sum_scope_eq_false_of_constraintParity {Rel V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} (x : Fin (incidenceGraph F).edges.length → Bool) (hx : ∀ (o : F.Occurrence), (incidenceGraph F).vertexParity x (incidenceDart o true).vertex = false) (i : Fin (List.length F)) :
Constraint-endpoint evenness implies zero sum in every original ordered scope, including a nullary scope. No variable-side parity premise is used.
theorem Cslib.Complexity.CSP.sum_edgeLabels_eq_false_of_constraintParity {Rel V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} (x : Fin (incidenceGraph F).edges.length → Bool) (hx : ∀ (o : F.Occurrence), (incidenceGraph F).vertexParity x (incidenceDart o true).vertex = false) :
If every actual constraint endpoint has even parity, the sum over every actual edge is zero. Arbitrary repeated variables and nullary constraints retain their positions.