C++ Constraint-based polyhedral projection
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Parents:
|
Incoming link from:
4. Exact polyhedral coordinate deletion
1 |
For an unmarked receiver with current constraints and no pending generators, try_constraint_projection(vars) shall attempt the exact real-coordinate projection specified by 🔗 4. Exact polyhedral coordinate deletion. The selection shall be nonempty and in range. Surviving coordinates shall retain their relative order, and the receiver's closed or NNC topology shall be preserved. The attempt shall reject dimensions below five or descriptions containing more than 64 stored rows. For a selected coordinate, an equality with a nonzero coefficient or inequalities of both coefficient signs shall reject the one-sided path. Otherwise every row involving any selected coordinate shall be discarded, and all other rows shall be retained with compacted coordinates. Strict inequalities shall retain their membership meaning. This path shall be available for every supported coefficient profile. For GMP coefficients, algebraic elimination shall additionally be attempted. If more than one coordinate is selected, each input row shall mention at most one selected coordinate, or the bounded coupled planner in 🔗 2. Bounded exact coupled constraint projection shall be attempted instead. This independence restriction shall not apply to the one-sided path. Prefer a pivot whose coefficient is 1 or − 1. For an equality E = ax + r = 0 and another row C = bx + s▹0, with b ≠ 0 and g = gcd(|a|, |b|), replace that row by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E▹0. The shared equality kernel 🔗 1. Exact equality-pivot elimination shall implement this substitution. The original relation kind shall be preserved. Rows independent of the pivot shall be transferred unchanged and tautological results omitted. Each eliminated equality shall reduce the predicted stored-row bound by one; one-sided elimination shall subtract the number of rows involving that coordinate. A predicted count above 64 shall reject the attempt before scratch copying. Bounded-coefficient profiles shall retain only the one-sided path, adding no elimination products to their admitted range. For GMP coefficients, a selected coordinate without an equality pivot may also have both coefficient signs. At most 16 positive/negative pairs per coordinate and a predicted stored-row bound of 64 shall be admitted. For ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the cancelled positive combination (b ⁄ g)r + (a ⁄ g)s▹0. It shall be strict exactly when either input is strict. Rows with zero coefficient shall be retained, and tautological combinations omitted. The predicted row count for a coordinate without an equality shall replace its positive and negative rows by their pair count. These counts shall be checked before copying or coefficient algebra. Independence of selected coordinates makes the counts stable across elimination and bounds the total emitted pair count by 64. Bounded-coefficient profiles shall retain only the one-sided path. A false result shall preserve all receiver state, including materialized caches. Rejection shall precede scratch-row copying and coefficient algebra. A true result shall replace the receiver with the completed exact projection; no particular minimal representation is required. Temporary rows and cancellation factors shall own their storage, and only a completed temporary polyhedron shall be swapped into the receiver. The local row-emission closure shall compact rows only after their selected coefficients are zero, preserve relation kind and topology, and transfer the compacted rows to the output system. The lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply. Common failure guarantees shall not be strengthened by the boolean rejection guarantee: arithmetic and resource exceptions remain subject to that common contract. |
For a fixed retained point, finitely many one-sided bounds on a real coordinate can all be satisfied by choosing its value sufficiently far in the permitted direction. Repeating this argument proves exact elimination of several one-sided coordinates, including coupled rows. Row copying and coordinate compaction preserve every unaffected relation. Multiplying a relation by a positive scalar preserves its kind. Subtracting a multiple of an equality preserves equivalence on that equality; dividing cancellation factors by their positive gcd reduces intermediate growth. Independence prevents elimination from changing another selected coordinate's rows, so eligibility and work limits can be checked upfront. Opposite-sign pairs express every lower/upper compatibility condition. A strict bound requires strict compatibility in that pair. All compatible finite bounds admit a real witness, proving exactness. Independent pair results mention no remaining selected coordinate; the predicted final row bound therefore also bounds the total pair count. |
Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries). |
|
|
|
|
Compare with literal projections and with the existing generator route on closed and NNC sets. Cover positive, negative and absent selected coefficients, coupled one-sided coordinates, constant false rows, all/none coordinate selection, open boundaries, reload, source/cache histories and selection rejection. Directly check both dimension and stored-row limits, exact accepted results, unchanged state on rejection, and allocation failures before and after completed result replacement. Cover positive/negative and unit/nonunit pivots, duplicate and contradictory rows, unaffected-row transfers, independence rejection, coupled-planner delegation and profile selection. Check every strictness combination, gcd reduction, pair and predicted-row limits, multicoordinate independent pairs and generator fallback. |
src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc. |
|
|
Private member in Parma_Polyhedra_Library::Polyhedron; implementation in src/Polyhedron_chdims.cc. bool try_constraint_projection(const Variables_Set& vars); |