Literal semantic expansion of the crossover source macros #
Actual original-language gadgets replace every occurrence in the literal bodies of [DK15], Figure 1(a,b), printed pp. 440–441. The existing PP expansion retains free order and independently freshens auxiliaries at every occurrence, including repeated copies of the same gadget. These constructors assert semantics only.
Main definitions #
Cslib.Logic.PL.CSP.Crossover.figureOneAExpanded: expand Figure 1(a).Cslib.Logic.PL.CSP.Crossover.figureOneBExpanded: expand Figure 1(b).
def Cslib.Logic.PL.CSP.Crossover.figureOneAExpanded {Rel : Type} {ar : Rel → ℕ} {s : Rel → List Bool → Bool} {R : Set (Fin 4 → Bool)} [DecidablePred fun (x : Fin 4 → Bool) => x ∈ R] (r : PPGadget ar s R) (d : PPGadget ar s RelationMinor.disequality) :
PPGadget ar s (figureOneARelation R)
Expand the two actual occurrences of the four-port relation and the two actual disequalities in Figure 1(a), retaining their literal ordered scopes.
def Cslib.Logic.PL.CSP.Crossover.figureOneBExpanded {Rel : Type} {ar : Rel → ℕ} {s : Rel → List Bool → Bool} (r : PPGadget ar s BitString.nearCross) :
PPGadget ar s BitString.cross
Expand the literal second figure using independently freshened copies of an actual NEAR-CROSS gadget. Its exact original-language PP body defines CROSS.