Finite-buffer arbitrary-comparison lifting #
Implement the first-connector, shortest-exit and actual-arm scans of the existing whole-instance lifting construction. The comparison may change every surviving outside row. The actual native two-phase augmentation routine supplies its walk; all subsequent scans use original incidence records, binary global positions and list-funded prefix lengths.
The mathematical source is Lemmas 31 and 44 of [KKR18], arXiv:1602.03124v6, printed pp. 14 and 20–22. Finite representation bookkeeping is original.
Scope of one original positional record, with a bounded list default.
Instances For
Record of a surviving original port in the actual contracted body. Its constraint position and original binary name are retained; its argument position is its outside-list rank.
Instances For
Invert surviving ports by the original finite incidence scan, preserving source tie order. The fallback is an actual cycle port on certified inputs; malformed raw positions remain total.
Instances For
Restore the actual outside prefix, retaining its original start and step order.
Instances For
Actual feasible original exits from one prefix, in source scan order. The original outside port must be unused; pair feasibility is tested on the prefix's current finite buffer.
Instances For
Find the earliest whole prefix with a feasible original exit, then its first actual pair.
Instances For
Two actual arms at every matching original constraint, in original cycle-step order. Repeated original constraints are retained as separate copied steps.
Instances For
Choose the first actual valid arm against the already changed outside prefix.
Instances For
Perform the first feasible outside prefix and the first feasible actual original arm.
Instances For
Restore a connector-free augmentation directly, or restore the prefix before its first connector and execute the actual original exit/arm construction.
Instances For
Actual native comparison augmentation followed by whole-instance lifting. Every width check is supplied internally by the native augmentation routine.