Checked static expansion of ordered primitive-positive macros #
An actual checked macro and actual checked replacement gadgets produce a checked witness for the literal semantic expansion. The proof uses the existing numeric substitution theorem, then its explicit injection from ragged Fin blocks into the padded even/odd namespace. The old macro auxiliaries precede independent per-occurrence replacement blocks. No target witness, genus, order, injection, connectedness or finite-alphabet premise is required.
A uniform auxiliary bound describes the numeric intermediate representation only. It does not change the ragged semantic body or imply a uniform native compiler or recognition result.
Main definitions #
Cslib.Complexity.CSP.OrderedBoundary.Witness.expandList: the actual ragged expanded body.Cslib.Complexity.CSP.OrderedBoundary.GadgetWitness.expand: the expanded canonical gadget boundary.
Expand a finite checked conjunction, retaining each selected original free port in
its listed order. Auxiliary labels are the actual ragged blocks of PPGadget.expandList.
The injection into numeric replacement names and all target invariants are proved internally.
Expand an actual semantic macro and construct its canonical ordered witness over the original language. Original existential labels are hidden before the independent ragged replacement blocks. This theorem asserts static finite numerical preprocessing only.