Documentation

CslibFrontier.Logics.Propositional.CSP.Planar.Embedding.GadgetTransport

Symbol transport and auxiliary alpha-renaming of checked gadgets #

Relation-symbol changes retain the same positional successor table. Auxiliary bijections use the existing actual-body renaming theorem and fix every canonical free-port position. Neither operation changes the positive cyclic argument order. These contracts apply to empty and nullary bodies, closed components, and unused ports.

Main definitions #

def Cslib.Complexity.CSP.OrderedBoundary.Witness.mapRelation {Rel Other V : Type} [DecidableEq V] {F : Logic.PL.CSP Rel V} {ports : List V} (w : Witness F ports) (f : Rel → Other) :
Witness (List.map (fun (c : Logic.PL.Constraint Rel V) => { rel := f c.rel, scope := c.scope }) F) ports

Change only relation symbols in an ordered body. Its literal table, scopes, boundary positions and full checker acceptance are retained, without an injectivity premise.

def Cslib.Complexity.CSP.OrderedBoundary.GadgetWitness.mapRelation {Rel Other : Type} {arity : Rel → ℕ} {sem : Rel → List Bool → Bool} {otherArity : Other → ℕ} {otherSem : Other → List Bool → Bool} {n : ℕ} {R : Set (Fin n → Bool)} {g : Logic.PL.CSP.PPGadget arity sem R} (w : GadgetWitness g) (f : Rel → Other) (ha : ∀ (r : Rel), otherArity (f r) = arity r) (hs : ∀ (r : Rel) (xs : List Bool), otherSem (f r) xs = sem r xs) :

An interpreted symbol map retains the actual ordered witness of a semantic gadget.

def Cslib.Complexity.CSP.OrderedBoundary.GadgetWitness.relabelAux {Rel : Type} {arity : Rel → ℕ} {sem : Rel → List Bool → Bool} {n : ℕ} {R S : Set (Fin n → Bool)} {g : Logic.PL.CSP.PPGadget arity sem R} {h : Logic.PL.CSP.PPGadget arity sem S} (w : GadgetWitness g) (e : Fin g.numAux ≃ Fin h.numAux) (hb : h.body = Logic.PL.CSP.relabel (Sum.map id ⇑e) g.body) :

Alpha-renaming the actual auxiliary labels preserves canonical free-port order. The body equality specifies the complete target body, so it cannot hide a scope permutation, variable identification, or a change to any closed component.