Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Substitution.Parity

Parity inherited by the actual substitution words #

Every target vertex-even edge labeling has zero sum on each executed source-variable word. An empty word has zero sum directly; a nonempty word is identified with its complete actual target endpoint fiber. No nonempty-port or target-genus premise is used.

theorem Cslib.Complexity.CSP.GadgetRotation.sum_variableBlock_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 : ℕ) (F : Logic.PL.CSP Src ℕ) (hF : Logic.PL.CSP.WellFormed srcArity F) (c : Graph.RotationCertificate) (hc : Graph.RotationCertificate.verifyRotation (incidenceGraph F) c = true) (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) (v : ℕ) (hv : v ∈ F.vars) :
(List.map (fun (i : ℕ) => (List.ofFn x).getD i false) (variableBlock (fun (r : Src) => (gadgets r).template) (fun (r : Src) => freeBoundaryBlocks (gadgets r) (witnesses r)) F c v)).sum = false

Target vertex evenness gives zero sum on the exact spliced word for every occurring source name. A source name can disappear completely when all of its local blocks are empty.

theorem Cslib.Complexity.CSP.GadgetRotation.sum_auxiliaryBlock_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)) (a : Fin (gadgets F[↑i].rel).numAux) (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 (j : ℕ) => (List.ofFn x).getD j false) (shiftBlock (occurrencePrefix (fun (r : Src) => (gadgets r).template) F ↑i) ((auxiliaryBoundaryBlocks (gadgets F[↑i].rel) (witnesses F[↑i].rel)).getD ↑a []))).sum = false

Each copied auxiliary word inherits zero sum from its complete private target fiber. Unused auxiliary ports and a zero uniform auxiliary bound need no exceptional convention.