Exact target-name fibers of the executed substitution words #
Each source-variable word contains precisely the actual target occurrences at its even name. Each auxiliary word contains precisely the actual occurrences at that copy's private odd name. The proofs recover typed local occurrences using the public positional inverse lookup and retain repeated source names. No target permutation, fiber or genus provider is an input.
theorem Cslib.Complexity.CSP.GadgetRotation.mem_variableBlock_iff_targetName {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) (v : ℕ) (hv : v ∈ F.vars) (index : ℕ) :
index ∈ variableBlock (fun (r : Src) => (gadgets r).template)
(fun (r : Src) => freeBoundaryBlocks (gadgets r) (witnesses r)) F c v ↔ index < (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F).vars.length ∧ (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F).vars.getD index 0 = 2 * v
The source's supplied white cycle splices exactly all target occurrences with that original even name. Local free ports are distinct; source scope names need not be.
theorem Cslib.Complexity.CSP.GadgetRotation.mem_shifted_auxiliaryBlock_iff_targetName {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 : ℕ} (hi : i < List.length F) (a : Fin (gadgets F[i].rel).numAux) (index : ℕ) :
index ∈ shiftBlock (occurrencePrefix (fun (r : Src) => (gadgets r).template) F i)
((auxiliaryBoundaryBlocks (gadgets F[i].rel) (witnesses F[i].rel)).getD ↑a []) ↔ index < (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F).vars.length ∧ (Logic.PL.CSP.replaceGadgets B (fun (r : Src) => (gadgets r).template) F).vars.getD index 0 = 2 * (B * i + ↑a) + 1
A copy's auxiliary word is exactly one private odd-name fiber of the actual target. The uniform auxiliary bound separates copies even when source rows and names repeat.