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 #
OrderedBoundary.rotateBoundaryCertificateRight: one RIGHT step with exact short identity.OrderedBoundary.boundaryIndexMap: transport a probe-window index with its side bit.OrderedBoundary.rotateBoundaryCertificate: one forward probe-index shift, with its separate inverse lookup map and the existing transformed-zero fallback.
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.