Documentation

CslibFrontier.Computability.Complexity.Problems.CSP.RotationSystem.BoundaryAppendProgram

The raw table program for appending ordered probes #

Source occurrence blocks are left body, left probe, right body, right probe. The program concatenates the supplied tables with an explicit right offset, splices the two nonempty probe centers at their last outgoing darts, then moves the left probe behind the right body and probe. Empty probes skip the splice and introduce no dart at an isolated center.

This module supplies the actual program and its finite-index invariants. Correctness for accepted ordered bodies additionally identifies its table with the existing scope-join rotation; that is separate from these raw input bounds.

Execute the append splice and positional reindexing. Counts come from actual body occurrence and boundary lists in the caller; raw source entries are only binary lookup data.

@[simp]
theorem Cslib.Complexity.CSP.OrderedBoundary.length_appendRawCertificate (leftBody leftPorts rightBody rightPorts : ℕ) (left right : Graph.RotationCertificate) :
(appendRawCertificate leftBody leftPorts rightBody rightPorts left right).successor.length = 2 * (leftBody + leftPorts + rightBody + rightPorts)

The emitted table has exactly the total number of original indexed edge ends.

theorem Cslib.Complexity.CSP.OrderedBoundary.entries_appendRawCertificate_lt (leftBody leftPorts rightBody rightPorts : ℕ) (left right : Graph.RotationCertificate) (hl : ∀ a ∈ left.successor, a < 2 * (leftBody + leftPorts)) (hr : ∀ a ∈ right.successor, a < 2 * (rightBody + rightPorts)) (a : ℕ) :
a ∈ (appendRawCertificate leftBody leftPorts rightBody rightPorts left right).successor → a < 2 * (leftBody + leftPorts + rightBody + rightPorts)

If each supplied entry names a local dart, every emitted entry names a dart of the combined table. Missing entries and skipped empty-probe splices retain this invariant.