Documentation

CslibFrontier.Computability.Complexity.Problems.CSP.RotationSystem.BoundaryRotation

Executed one-step rotations of an ordered boundary #

CrossInsertion.rotateLeft moves the first port to the end and transports the actual successor table with OrderedBoundary.rotateBoundaryCertificate. The full input is retained at boundary length zero or one, including malformed or surplus table entries. The body and its global assignments are unchanged; the directed boundary values rotate to the left.

The existing static Witness.rotateCons and its complete certificate equation internally prove acceptance of the computed table. Semantic transport applies to all raw states, even with repeated or unused names. This original single step is a prerequisite for the CROSS compiler in #3091; positioned operations, transposition, iteration bounds and the full compiler remain open there.

Main definitions #

Main results #

Move the first port to the end using the literal forward table transport, with the actual occurrence and port counts. Empty and singleton boundaries retain the entire state.

LEFT boundary movement retains the entire actual body.

LEFT boundary movement rotates the ordered raw port word by one position.

The source witness and the static constructor's full table equation supply both full checks internally. The computed output requires no target rotation or genus provider.

theorem Cslib.Complexity.CSP.CrossInsertion.eval_rotateLeft {Rel : Type} (sem : Rel → List Bool → Bool) (I : State Rel) (σ : ℕ → Bool) :

Forward boundary rotation preserves evaluation under every global assignment.

The complete ordered value word is rotated once, including repeated raw port names.

theorem Cslib.Complexity.CSP.CrossInsertion.boundary_rotateLeft_iff {Rel : Type} (sem : Rel → List Bool → Bool) (I : State Rel) (values : List Bool) :
(∃ (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ (rotateLeft I).body = true ∧ List.map σ (rotateLeft I).ports = values.rotate 1) ↔ ∃ (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ I.body = true ∧ List.map σ I.ports = values

A satisfying source assignment with the given word is exactly a satisfying output assignment with that word rotated left. No checker, distinctness, arity or word-length premise is needed; mismatched lengths and repeated names retain their exact meaning.

Move the last port to the front with the literal RIGHT table transport. Empty and singleton raw boundaries retain the entire original state, including malformed entries.

theorem Cslib.Complexity.CSP.CrossInsertion.rotateRight_snoc {Rel : Type} (F : Logic.PL.CSP Rel ℕ) (ps : List ℕ) (p : ℕ) (c : Graph.RotationCertificate) :
rotateRight { body := F, ports := ps ++ [p], rotation := c } = { body := F, ports := p :: ps, rotation := OrderedBoundary.rotateBoundaryCertificateRight F.occurrences.length (ps.length + 1) c }

Moving the last raw port to the front emits the literal RIGHT table on all inputs.

RIGHT boundary movement retains the entire actual body.

RIGHT boundary movement rotates the ordered raw port word by one position.

The actual last-to-first static constructor supplies full acceptance of the computed RIGHT table. No target rotation, genus, order agreement or recognition provider is input.

theorem Cslib.Complexity.CSP.CrossInsertion.eval_rotateRight {Rel : Type} (sem : Rel → List Bool → Bool) (I : State Rel) (σ : ℕ → Bool) :

RIGHT boundary movement leaves every body evaluation unchanged under every assignment.

The complete mapped word moves right, including repeated and unused raw port names. The two word reversals do not reflect a constraint scope or its rotation.

theorem Cslib.Complexity.CSP.CrossInsertion.boundary_rotateRight_iff {Rel : Type} (sem : Rel → List Bool → Bool) (I : State Rel) (values : List Bool) :
(∃ (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ (rotateRight I).body = true ∧ List.map σ (rotateRight I).ports = (values.reverse.rotate 1).reverse) ↔ ∃ (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ I.body = true ∧ List.map σ I.ports = values

Exact rightward ordered-value transport for arbitrary raw states and value words. The same body assignments work on both sides; no checker, distinctness, arity or word-length premise is required. This makes no raw full-cycle cancellation assertion.