Documentation

CslibFrontier.Computability.Complexity.Problems.CSP.RotationSystem.BoundaryHiding

Executed hiding of the first boundary marker #

CrossInsertion.hideHead keeps the entire original body and removes only its first structural boundary marker. The table is the existing list-funded prefix restriction. Hiding makes that port existential in the ordered boundary assignment relation; it neither removes a body occurrence nor renames a variable. Unused ports and closed or nullary body components are retained. An empty raw boundary returns the exact input unchanged.

This original composition step is one prerequisite for the CROSS compiler in #3091. Positioned operations, cyclic transport, transposition and accumulated iteration bounds remain open there.

Main definitions #

Main results #

Hide the first boundary position, retaining the same body and inherited tail order. The raw table is restricted to the body and remaining probe darts. Empty inputs are identity.

Source acceptance internally supplies the full checker result for the executed restriction. The original body, including every closed and nullary component, is unchanged.

theorem Cslib.Complexity.CSP.CrossInsertion.boundary_hideHead_iff {Rel : Type} (sem : Rel → List Bool → Bool) (F : Logic.PL.CSP Rel ℕ) (p : ℕ) (ps : List ℕ) (c : Graph.RotationCertificate) (values : List Bool) :
(∃ (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ (hideHead { body := F, ports := p :: ps, rotation := c }).body = true ∧ List.map σ (hideHead { body := F, ports := p :: ps, rotation := c }).ports = values) ↔ ∃ (b : Bool) (σ : ℕ → Bool), Logic.PL.CSP.eval sem σ F = true ∧ List.map σ (p :: ps) = b :: values

The surviving ordered boundary values extend by exactly one existential first value. The same global assignment satisfies the whole body on both sides, including unused names. This semantic statement also applies to repeated raw boundary names and malformed tables.