Ordered witnesses for the literal normalization program #
Each instruction constructs the numerical witness of its exact existing interpreter body. Rotation preserves chirality, adjacent reduction uses the explicit wrap map, and a guarded cap hides exactly one port before the old auxiliaries. No target witness is supplied.
noncomputable def Cslib.Logic.PL.CSP.Normalization.Program.orderedWitness {Rel : Type} {ar : Rel → ℕ} {s : Rel → List Bool → Bool} {n m : ℕ} (p : Program n m) {P : Set (Fin n → Bool)} {g : PPGadget ar s P} :
Execute a normalization program on an actual source gadget witness. The result is
the witness of Program.gadget itself, with its original scope order and auxiliary layout.
The alphabet need not be finite; body occurrences may repeat and components may be disconnected.