Documentation

CslibFrontier.Computability.PolyTime.CSP.Edge.Solver.Contraction

Finite-buffer whole-instance contraction #

Native list operations implement the existing whole-instance constructor. All old constraints, including nullaries, keep their positions. Selected internal coordinates are gathered once per original constraint, surviving coordinates keep their order, and one central exactly-one table is appended. Local rows and positions are funded by actual scopes, not declared binary arities.

Original names and fresh connectors remain binary. The maximum scan traverses only occurring names; no interval below a name is enumerated. The source construction is Section 5.3 of [KKR18], arXiv:1602.03124v6, printed pp. 12–13.

Actual local rows, in original constraint and argument order, read from the existing buffer.

Instances For

    A fresh binary base, obtained by one scan of actual original names.

    Instances For

      Actual fresh connectors, one per touched original constraint and in original order.

      Instances For

        Replace all selected positions of one original constraint in a single local contraction.

        Instances For

          Total finite whole-instance contraction on arbitrary raw table and buffer inputs.

          Instances For

            The honest contracted reference: zero old connector bits, followed by one central one-hot row. The central row is paid for by the actual connector list.

            Instances For

              The fresh-name scan agrees with the original constructor's maximum scan.

              Every raw-buffer row is exactly the original positional local tuple; no width premise is needed, since both readers default identically on missing occurrence bits.

              Fresh connectors are precisely those of the original whole-instance constructor.

              Exact native whole-instance contraction on every raw buffer, without semantic premises.

              Exact actual reference rows, including the central one-hot row.

              Flattening the actual constructor's reference rows gives precisely its occurrence buffer. Every row has the actual scope width, including the appended central row and all nullaries.

              @[reducible, inline]

              Framed original body followed by the framed list of selected original binary names.

              Instances For

                Whole-instance contraction is ordinary native polynomial-time on all raw inputs. The certificate scans actual rows and scopes and includes binary fresh-name arithmetic.