Parma Polyhedra Library requirements
C++ Advanced constraint projection
PPL-SPEC-001685
1. Two-coordinate full-rank equality projection PPL-SPEC-001685

try_binary_equality_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles and selections other than two. Let the selected coordinates in ascending order be x, y.

Scan the logical input rows in order. Select the first equality with a nonzero x coefficient. For this row's selected coefficients a, b, scan subsequent equalities for coefficients c, d with ad − bc ≠ 0, using exact GMP arithmetic. Without such a later row, return false. This opportunistic scan need not find an earlier independent row preceding its selected first pivot.

After this rank test, copy the owned rows and eliminate x with that pivot using 🔗 1. Exact equality-pivot elimination. Choose a remaining equality with nonzero y coefficient, preferring 1 or  − 1, and eliminate y with the same kernel. Such a second pivot shall exist. Compact the two coordinates, retaining the other coordinates' order, and swap in a completed same-topology polyhedron. True shall denote the exact projection 🔗 4. Exact polyhedral coordinate deletion, with no increase in logical row count.

False shall preserve all receiver state and allocate no C++ storage. The determinant preflight may allocate GMP temporary storage. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use; rejection preservation shall not impose a stronger exceptional-completion guarantee.

PPL-SPEC-001686
2. Bounded coupled two-coordinate pair projection PPL-SPEC-001686

try_binary_pair_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles, selections other than two, and any logical equality row. Let x, y be selected in ascending order.

Preflight shall count positive, negative and zero x coefficients. Reject more than 16 positive/negative pairs or more than 64 predicted owned rows. Predict the signs in the next y column: unchanged zero-x rows retain their signs, and a pair ax > 0, bx < 0 has the sign of  − byxa + ayxb. These calculations shall use exact GMP arithmetic. Tautological combinations may be counted conservatively. Reject more than 16 predicted second-column pairs or 64 predicted owned rows. Both checks shall precede scratch-row copying. False shall preserve every receiver field and allocate no C++ storage; GMP preflight temporaries are permitted.

For each selected coordinate, retain its zero-coefficient rows. For every pair ax + r▹0 and  − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the positive combination (b ⁄ g)r + (a ⁄ g)s. It shall be strict exactly when either input row is strict. Omit tautologies. The conservative preflight shall bound the actual pair and row counts in both passes. At most 32 pairs shall be generated; each scratch vector shall contain at most 64 logical rows.

Compact the selected coordinates only after their coefficients are zero. True shall replace the receiver with the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and surviving-coordinate order. Only a completed temporary polyhedron shall be swapped in. Common lifetime, arithmetic and exceptional-completion conditions 🔗 1. Polyhedral values, coefficient profile and valid use shall apply without strengthening them to the false-result guarantee.

PPL-SPEC-001687
3. Exact one-dimensional continuous LP projection PPL-SPEC-001687

try_interval_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators and a nonempty in-range selection. It shall reject bounded coefficient profiles, ambient dimensions outside 10 through 16, selections leaving other than one coordinate, descriptions with fewer than twice the ambient dimension or more than 64 stored rows, and descriptions with any logical equality or strict inequality. These rejections shall preserve all receiver state and allocate no C++ storage. The dispatch in 🔗 2. Bounded exact coupled constraint projection shall invoke it only for necessarily closed receivers; its weak-row computation shall preserve the supplied receiver's topology.

Find the sole surviving original coordinate and construct one continuous MIP_Problem from the original constraint system, with that coordinate as the minimization objective. Select PRICING_TEXTBOOK before solving, so pricing shall use coefficient arithmetic rather than floating-point weights. Do not designate integer coordinates or introduce auxiliary ones.

An infeasible lower solve shall replace the receiver with a same-topology empty polyhedron of dimension one. Otherwise retain a finite exact lower value p ⁄ q as qv ≥ p, and omit an unbounded lower bound. Change the same model to maximization, reusing its feasible state and basis. Its result shall remain feasible. Retain a finite upper value r ⁄ s as sv ≤ r, and omit an unbounded upper bound. Denominators shall be positive. Both finite endpoints shall be included. The completed interval shall be the exact real projection 🔗 4. Exact polyhedral coordinate deletion.

Only a completed same-topology result shall be swapped into the receiver. The dimension, initialization, synchronization, resource and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use and the continuous incremental MIP model shall apply. Exceptions shall not strengthen the common guarantees to the false-result preservation guarantee.