Documentation

CslibFrontier.Computability.Complexity.Problems.CSP.RotationSystem.BoundaryFusion

Executed fusion of the first two boundary wires #

The raw program identifies the second boundary name with the first throughout the actual body, removes the first structural marker, and retains the mapped tail in its original clockwise order. It executes the existing outgoing swap and bounded prefix restriction. With fewer than two positions it returns the input unchanged. Repeated names and malformed tables remain raw data; acceptance is required only for checker correctness.

This original wire operation is a step toward the common-complement CROSS compiler in #3091. Positioned fusion, hiding the remaining seam, cyclic transport, transposition and accumulated polynomial bounds are not established here. This module makes no native runtime assertion.

Main definitions #

Main results #

Fuse the first two distinct boundary wires by updating the second name to the first. The first marker is removed; its mapped successor survives. Short inputs are unchanged.

The general boundary constructor's exact-table equation proves acceptance of this raw program. No target witness, rotation, genus or runtime premise is supplied.

theorem Cslib.Complexity.CSP.CrossInsertion.eval_fuseHead_iff {Rel : Type} (sem : Rel → List Bool → Bool) (F : Logic.PL.CSP Rel ℕ) (x y : ℕ) (ps : List ℕ) (c : Graph.RotationCertificate) (hxy : x ≠ y) (σ : ℕ → Bool) :
Logic.PL.CSP.eval sem σ (fuseHead { body := F, ports := x :: y :: ps, rotation := c }).body = true ↔ ∃ (τ : ℕ → Bool), Logic.PL.CSP.eval sem τ F = true ∧ τ x = τ y ∧ ∀ (z : ℕ), z ≠ y → τ z = σ z

A fused satisfying assignment is exactly a source assignment equating the selected pair and agreeing on every other natural name, including all unused names. This statement needs neither a source checker nor source arity assumption.