Documentation

CslibFrontier.Computability.Complexity.Problems.CSP.RotationSystem.BoundaryRotateProgram

Directed boundary rotation on raw successor tables #

The body-prefix occurrence count and boundary length determine the probe window. Only that window is shifted; binary indices outside it stay fixed. Counts zero and one return the entire supplied certificate, including malformed or surplus entries.

Main definitions #

Map a dart index inside the boundary probe window using shift, preserving its side bit. Body-prefix and out-of-window indices remain fixed.

theorem Cslib.Complexity.CSP.OrderedBoundary.size_boundaryIndexMap_le (M N : ℕ) (shift : ℕ → ℕ) (h : ∀ (j : ℕ), shift j < N) (v : ℕ) :
(boundaryIndexMap M N shift v).size ≤ max v.size (2 * (M + N)).size

A probe-window map changes only bounded indices; arbitrary out-of-window binary data keeps its original width.

Execute one left boundary-word rotation's numeric table transport. The reversed probe moves old argument slots forward by one; lookup uses the inverse shift. No validity check or entry-bound premise is used. Short boundaries retain the exact original certificate.

Execute one RIGHT boundary-word rotation by exchanging the first two-dart probe block with the rest. The reciprocal block move supplies lookup. Short boundaries retain all original data; missing lookups use the forward image of zero, not an assumed zero.

The complete RIGHT program uses the same probe-window function as LEFT, with the predecessor and successor interchanged. This equality holds for arbitrary raw tables.