-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001073 Complexity-sensitive bounded-difference conversion from polyhedra (Specified by)
- PPL-SPEC-001049 Complexity-sensitive box conversion from polyhedra (Specified by)
- PPL-SPEC-001163 Complexity-sensitive octagonal conversion from polyhedra (Specified by)
- PPL-SPEC-001685 Two-coordinate full-rank equality projection (Specified by)
- PPL-SPEC-001686 Bounded coupled two-coordinate pair projection (Specified by)
- PPL-SPEC-001687 Exact one-dimensional continuous LP projection (Specified by)
- PPL-SPEC-001346 Exact rational polyhedral image (Specified by)
- PPL-SPEC-001347 Exact rational polyhedral preimage (Specified by)
- PPL-SPEC-001348 Polyhedral variable-update relational image (Specified by)
- PPL-SPEC-001349 Polyhedral variable-update relational preimage (Specified by)
- PPL-SPEC-001350 Polyhedral expression-update relational image (Specified by)
- PPL-SPEC-001351 Polyhedral expression-update relational preimage (Specified by)
- PPL-SPEC-001352 Exact bounded polyhedral affine image (Specified by)
- PPL-SPEC-001353 Exact bounded polyhedral affine preimage (Specified by)
- PPL-SPEC-001666 Bounded Chvatal half-pair refinement (Specified by)
- PPL-SPEC-001679 Bounded exact projection from current constraints (Specified by)
- PPL-SPEC-001365 H79 polyhedral widening (Specified by)
- PPL-SPEC-001366 BHRZ03 polyhedral widening (Specified by)
- PPL-SPEC-001367 Limited H79 polyhedral extrapolation (Specified by)
- PPL-SPEC-001368 Bounded H79 polyhedral extrapolation (Specified by)
- PPL-SPEC-001369 Limited BHRZ03 polyhedral extrapolation (Specified by)
- PPL-SPEC-001370 Bounded BHRZ03 polyhedral extrapolation (Specified by)
- PPL-SPEC-001345 Exact polyhedral cylindrification (Specified by)
- PPL-SPEC-001354 Polyhedral coordinate growth (Specified by)
- PPL-SPEC-001355 Exact polyhedral Cartesian concatenation (Specified by)
- PPL-SPEC-001356 Exact polyhedral coordinate deletion (Specified by)
- PPL-SPEC-001357 Exact partial coordinate mapping of polyhedra (Specified by)
- PPL-SPEC-001358 Polyhedral coordinate expansion (Specified by)
- PPL-SPEC-001359 Polyhedral coordinate folding (Specified by)
- PPL-SPEC-001683 Exact equality-pivot elimination (Specified by)
- PPL-SPEC-001684 Bounded exact coupled constraint projection (Specified by)
- PPL-SPEC-001360 Nonnegative polyhedral time elapse (Specified by)
- PPL-SPEC-001361 Positive polyhedral time elapse (Specified by)
- PPL-SPEC-001362 Integer-point-preserving polyhedral restriction (Specified by)
- PPL-SPEC-001363 Sound bounded-integer wrapping in polyhedra (Specified by)
- PPL-SPEC-001364 Exact polyhedral topological closure (Specified by)
- PPL-SPEC-001376 Sound polyhedral filtering by interval linear forms (Specified by)
- PPL-SPEC-001377 Sound polyhedral image of interval linear forms (Specified by)
- PPL-SPEC-001378 Polyhedral refinement of a floating interval store (Specified by)
- PPL-SPEC-001667 HH95 closed-polyhedron edge extrapolation (Specified by)
- PPL-SPEC-001665 HPW01 closed-polyhedron extrapolation (Specified by)
- PPL-SPEC-001672 Polyhedral envelope from entry constraint descriptions (Specified by)
- PPL-SPEC-001677 Weak join with exact directional bounds and NNC attainment (Specified by)
- PPL-SPEC-001664 Exact Minkowski sum of polyhedra (Specified by)
- PPL-SPEC-001338 Polyhedral constraint addition and refinement (Specified by)
- PPL-SPEC-001339 Polyhedral congruence addition and conservative refinement (Specified by)
- PPL-SPEC-001340 Polyhedral generator insertion (Specified by)
- PPL-SPEC-001341 Exact polyhedral intersection (Specified by)
- PPL-SPEC-001342 Polyhedral hull and exact-union recognition (Specified by)
- PPL-SPEC-001343 Polyhedral enclosure of set difference (Specified by)
- PPL-SPEC-001344 Polyhedral context-preserving simplification (Specified by)
- PPL-SPEC-001373 Reloadable polyhedral ASCII descriptions (Specified by)
- PPL-SPEC-001374 Polyhedral memory accounting (Specified by)
- PPL-SPEC-001375 Polyhedron representation invariant query (Specified by)
- PPL-SPEC-001326 Polyhedron ambient and affine dimensions (Specified by)
- PPL-SPEC-001327 Equivalent borrowed polyhedral descriptions (Specified by)
- PPL-SPEC-001329 Exact elementary polyhedral predicates (Specified by)
- PPL-SPEC-001330 Exact integer-point existence in polyhedra (Specified by)
- PPL-SPEC-001331 Polyhedral set comparison and hashing (Specified by)
- PPL-SPEC-001332 Exact polyhedron relation with a constraint (Specified by)
- PPL-SPEC-001333 Exact polyhedron relation with a generator (Specified by)
- PPL-SPEC-001334 Exact polyhedron relation with a congruence (Specified by)
- PPL-SPEC-001335 Polyhedral coordinate and expression boundedness (Specified by)
- PPL-SPEC-001336 Exact rational polyhedral extrema and witnesses (Specified by)
- PPL-SPEC-001337 Constant affine-expression frequency in polyhedra (Specified by)
- PPL-SPEC-001724 Saturation subsumption planning and paired deletion (Specified by)
- PPL-SPEC-001670 Selected-coordinate integer-point existence (Specified by)
- PPL-SPEC-001602 Polyhedron internal status value ownership and prerequisites (Specified by)
- PPL-SPEC-001603 Polyhedron internal status flag queries and transitions (Specified by)
- PPL-SPEC-001604 Polyhedron internal status consistency predicate (Specified by)
- PPL-SPEC-001605 Polyhedron internal status signed-keyword export (Specified by)
- PPL-SPEC-001606 Polyhedron internal status signed-keyword loading and rejection (Specified by)
- PPL-SPEC-001316 Polyhedral values, coefficient profile and valid use (Specified by)
- PPL-SPEC-001317 Dimensioned empty and universe polyhedra (Specified by)
- PPL-SPEC-001318 Owned polyhedron copying, assignment and exchange (Specified by)
- PPL-SPEC-001319 Polyhedron construction from constraints (Specified by)
- PPL-SPEC-001320 Polyhedron construction from generators (Specified by)
- PPL-SPEC-001321 Polyhedron construction from representable congruences (Specified by)
- PPL-SPEC-001322 Closed and NNC value conversion (Specified by)
- PPL-SPEC-001323 Polyhedron conversion from boxes (Specified by)
- PPL-SPEC-001324 Polyhedron conversion from difference and octagonal shapes (Specified by)
- PPL-SPEC-001325 Polyhedral affine hull of a rational grid (Specified by)
The polyhedral domains shall distinguish rational topologically closed convex polyhedra from rational convex polyhedra that may exclude boundary points; strict inequalities and closure points shall retain their boundary-membership meaning in the latter domain.
Closing a set can introduce states that were excluded by a strict constraint. The distinction is mathematical rather than a storage choice.
Verification covers closed and non-necessarily-closed polyhedron value types and boundary semantics. Related obligations: 🔗 9. Topological closure and closure approximation.
Check open and closed half-spaces, partially open bounded sets, isolated boundary points and empty/universe cases. Confirm that representation changes do not silently close a nonclosed set.
BagnaraHZ05FAC | whole work (background)
doc/definitions.dox: Topologies and Topological-compatibility; Rational Polyhedra. src/C_Polyhedron_defs.hh: closed polyhedra. src/NNC_Polyhedron_defs.hh: non-necessarily-closed polyhedra.
-
2. Complexity-sensitive bounded-difference conversion from polyhedra UID: PPL-SPEC-001073 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(ph,complexity) shall contain the source polyhedron for ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY; other complexity codes shall be outside the admitted interface.
ANY_COMPLEXITY shall give the least target-profile bounded-difference enclosure, including exact detection of an empty source. Strict source boundaries shall become included whenever they determine finite limiting bounds of the closed result.
SIMPLEX_COMPLEXITY shall give the same exact primitive suprema for a nonempty source, with target bounds converted outward according to the selected profile. It need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
POLYNOMIAL_COMPLEXITY may use conservative bounded-difference extraction and propagation from source constraints. It shall preserve containment, without a general best-enclosure, exact-emptiness or particular fixed-point iteration guarantee. Equivalent source cache and representation histories may produce different allowed conservative results. Every option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: Optimal support projection and polynomial conservative extraction offer different precision contracts; closing a nonempty strict polyhedron preserves its finite support suprema.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
explicit BD_Shape(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use exact rational elimination of independently supplied closed/NNC halfspaces. Require the best closed difference hull for ANY, best primitive bounds for nonempty SIMPLEX sources, and source containment for POLYNOMIAL. Include strict endpoint limits, closed-relaxation-only feasibility, cache and representation histories, all three complexity codes, target profiles, independent affine dimension and const-source preservation.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/frompolyhedron1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
6. Complexity-sensitive box conversion from polyhedra UID: PPL-SPEC-001049 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(ph,complexity) shall contain the source polyhedron under each of ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY. Other complexity codes shall be outside the admitted interface.
With ANY_COMPLEXITY, exact rational endpoint arithmetic and supported openness, the result shall be the least Cartesian box, including endpoint attainment for not necessarily closed polyhedra and exact preservation of emptiness. Inexact target profiles shall retain their declared outward enclosure.
With SIMPLEX_COMPLEXITY and exact rational operations, a nonempty source shall have exact coordinate infima and suprema, but a finite unattained bound may be included. A topologically closed source shall therefore have its least Cartesian box in the exact rational target profile. The operation need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
With POLYNOMIAL_COMPLEXITY, the constructor may use a bounded constraint-propagation computation whose pass budget grows linearly with the space dimension and which stops early when coordinates cease changing. The resulting box shall remain a containing approximation; no general least-box, fixed-point propagation, exact emptiness detection or implementation-specific iteration-count guarantee shall be inferred. Available equivalent source representations may yield different allowed approximations. Each complexity option shall retain the corresponding declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. On success and when construction throws, a source shall retain a valid representation of its unchanged value; logically const normalization may update its caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: A conversion budget may trade optimal coordinate projections for conservative propagation. A dimension-dependent budget accommodates long bound-dependency chains, while a finite cutoff also terminates on asymptotically contracting cycles. Strict endpoint attainment additionally distinguishes open boxes from their closures.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Project independently encoded rational closed/NNC polyhedra using exact elimination. Require the least open box for ANY, exact finite extrema with optional endpoint closure for nonempty SIMPLEX inputs, and sound containment for POLYNOMIAL inputs. Include correlated systems, closed-relaxation-only feasibility, cache/representation histories, all complexity values, source preservation and target profile conversion. Include polynomial conversions of long lower/upper bound chains, strict seeds, variable and row permutations, dense and sparse storage, and a rational cycle that cannot reach its fixed point in finitely many propagation passes. Sweep each measured C++ allocation failure position during pending-constraint integration and fresh constraint-backed minimization, including existing and discovered affine equalities, dense and sparse representations, and closed and NNC sources. Check source validity before retrying, unchanged geometry against the entry conjunction, and a successful retry against independently derived exact coordinate bounds.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; src/Polyhedron_defs.hh; src/Polyhedron_nonpublic.cc; src/Polyhedron_minimize_templates.hh; src/Polyhedron_simplify_templates.hh; tests/polyhedronconstraintconversionfailure1.cc; tests/throw_on_allocation.hh; tests/Box/frompolyhedron1.cc; tests/Box/frompolyhedron2.cc.
-
Incoming link from: 1. Octagonal time evolution by nonnegative rates1
2. Complexity-sensitive octagonal conversion from polyhedra UID: PPL-SPEC-001163 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(ph,complexity) shall construct an octagonal set containing the source closed or not necessarily closed polyhedron. The default ANY_COMPLEXITY and the explicit SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY values shall be admitted.
ANY_COMPLEXITY shall produce the least target-profile octagonal enclosure and shall detect an empty source exactly. For a nonempty source, strict finite boundaries shall contribute their limiting suprema to the closed result. Primitive bounds shall use the exact signed supports and target normalization in 🔗 1. Closed octagonal support hull of geometric generators, including doubling a unary support before rounding. This guarantee shall not depend on an equivalent source constraint/generator representation or cache history.
SIMPLEX_COMPLEXITY shall give the same primitive support bounds for every nonempty source. It may use the closed relaxation obtained by replacing each strict source row by its weak counterpart. Therefore an empty not necessarily closed source whose closed relaxation is nonempty need not be detected as empty. An already available valid generator representation may give the stronger exact-empty result without exceeding the selected complexity class.
POLYNOMIAL_COMPLEXITY shall preserve containment while respecting its polynomial complexity bound. It may conservatively extract and propagate supported information without a universal least-enclosure, exact-emptiness, mandatory-progress or particular iteration fixed-point guarantee. Equivalent source representation/cache histories may yield different permitted conservative enclosures. Each complexity option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction, subject to the stated complexity-dependent emptiness guarantees.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: Optimal projection onto a fixed family of signed normals and conservative constraint extraction have different complexity costs. Closing a nonempty strict polyhedron preserves its finite support suprema, while closing an inconsistent strict conjunction can change emptiness.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use independent rational elimination of arbitrary closed and strict source halfspaces to decide source feasibility and each octagonal support. Compare ANY with the least target-profile hull; require the same bounds for nonempty SIMPLEX sources, and containment for POLYNOMIAL. Separately model closed relaxations of empty strict systems. Include relational non-octagonal rows, all primitive signs, finite unattained limits, universe/empty and zero dimensions, source generators already computed, new pending constraints, minimized constraints, target profiles and source-set preservation. Allocation failures shall check owned cleanup without assuming source-cache rollback.
BIBLIOGRAPHY: BagnaraHZ05FAC | Sections 4 and 4.1, Definition 4.1, Definition 4.2 and Theorem 4.4, NNC polyhedra and their generators. BagnaraHZ09FMSD | Section 4, octagonal normal family and coherent signed encoding (PDF page indices 8–10, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; src/Polyhedron_defs.hh; src/MIP_Problem_defs.hh; tests/Octagonal_Shape/frompolyhedron1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
1. Two-coordinate full-rank equality projection UID: PPL-SPEC-001685 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: A nonzero determinant makes the two equations uniquely determine the two selected coordinates for every retained assignment. Eliminating one coordinate leaves a nonzero coefficient for the other in an independent equation. Positive equality substitution preserves every weak or strict relation and yields the exact existential projection. Each pass removes one pivot, so no pair generation or row growth is needed.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal and independently materialized generator projections through the public API. Cover both pivot signs, nonunit coefficients, independent and dependent cycles, row order, additional inequalities/equalities, strict boundaries, constants, absent columns and noncontiguous coordinates. Check exact rejection state and zero C++ allocation before copying. Exercise owned-row allocation failures, profile selection, cache histories and reload.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
2. Bounded coupled two-coordinate pair projection UID: PPL-SPEC-001686 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: Pairwise lower/upper compatibility is necessary and sufficient for a real coordinate to exist. A strict bound requires strict compatibility in its pair. Positive gcd-reduced combinations preserve these conditions exactly. Their remaining-column signs equal the preflight signs, since division by a positive gcd does not change a sign. Removing tautologies only decreases the predicted counts, proving the second pass's work bounds.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_pair_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare all open/closed input-pair combinations with literal projections and an independent generator route. Cover both signs, zero columns, gcd reduction, tautologies, constant false rows, coupled and noncontiguous coordinates, one-sided passes, exact pair/row limits and conservative rejection. Check unchanged rejection state, zero C++ allocation on rejected preflight and allocation failures after acceptance. Include both matrix layouts and every admitted coefficient profile, preserving the generator fallback elsewhere.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
3. Exact one-dimensional continuous LP projection UID: PPL-SPEC-001687 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: A linear image of a convex set on the real line is an interval. For a nonempty rational polyhedron described by weak inequalities, each finite linear-programming extremum is attained. Its exact lower and upper extrema therefore determine the entire closed interval, including singletons, half-lines and the whole line. Two continuous solves can avoid constructing all original generators. Reusing the model avoids rebuilding its constraints and feasible basis, and textbook pricing avoids floating-point weight work.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_interval_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare public projections with literal closed intervals and an independent generator route. Cover finite rational endpoints, one/both unbounded sides, empty sets, singletons, lower-dimensional descriptions and different surviving indices. Check dimension, row-count, selection and relation rejection, closed dispatch versus NNC fallback, exact pricing and both storage layouts. Verify rejection state, zero C++ allocation on rejection, reload, cache histories and allocation failures. Include an interrupted solve, destruction of the failed receiver and a successful retry on an independent copy of the original input, under the common resource contract.
BIBLIOGRAPHY: Meyer74 | Abstract (existence of finite optima with rational constraint coefficients). Williams86 | Sections on elimination and Fourier's method (exact real projection).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming links from: 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage2
1. Exact rational polyhedral image UID: PPL-SPEC-001346 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {F(x) ∣ x ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
2. Exact rational polyhedral preimage UID: PPL-SPEC-001347 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {x ∣ F(x) ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc; src/Constraint_System.cc.
-
3. Polyhedral variable-update relational image UID: PPL-SPEC-001348 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the set of new states x’ related to some entry state x. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Relational updates add existentially chosen target values; reversing a relation must retain its denominator sign and strictness.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check literal interval relations, all admitted symbols, negative denominators, missing target terms, borrowed scalars, open endpoints and rejected symbols/dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
4. Polyhedral variable-update relational preimage UID: PPL-SPEC-001349 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the set of old states x having a related state x’ in the entry receiver. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Relational updates add existentially chosen target values; reversing a relation must retain its denominator sign and strictness.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check literal interval relations, all admitted symbols, negative denominators, missing target terms, borrowed scalars, open endpoints and rejected symbols/dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
5. Polyhedral expression-update relational image UID: PPL-SPEC-001350 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be the exact image of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A multi-coordinate left expression constrains a relation among new coordinates; it does not define independent assignments to them.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check shared/disjoint supports, constant left/right expressions, singular relations, all admitted symbols, NNC strictness and independently eliminated product-state constraints.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
6. Polyhedral expression-update relational preimage UID: PPL-SPEC-001351 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be the exact preimage of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A multi-coordinate left expression constrains a relation among new coordinates; it does not define independent assignments to them.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check shared/disjoint supports, constant left/right expressions, singular relations, all admitted symbols, NNC strictness and independently eliminated product-state constraints.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
7. Exact bounded polyhedral affine image UID: PPL-SPEC-001352 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the image under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The bounded relation is conjunction of two old-to-new affine inequalities; temporary dimensions must not change the scalar or mix old and new bound values.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_affine_image(Variable, const Linear_Expression& lower, const Linear_Expression& upper, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent product-state elimination, target-dependent bounds, empty transition sets, both denominator signs, borrowed scalars, fractional/strict boundaries and invalid arguments.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedaffineimage1.cc; tests/Polyhedron/boundedaffinepreimage1.cc; tests/Polyhedron/boundedaffineimageempty1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
8. Exact bounded polyhedral affine preimage UID: PPL-SPEC-001353 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the preimage under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The bounded relation is conjunction of two old-to-new affine inequalities; temporary dimensions must not change the scalar or mix old and new bound values.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_affine_preimage(Variable, const Linear_Expression& lower, const Linear_Expression& upper, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent product-state elimination, target-dependent bounds, empty transition sets, both denominator signs, borrowed scalars, fractional/strict boundaries and invalid arguments.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedaffineimage1.cc; tests/Polyhedron/boundedaffinepreimage1.cc; tests/Polyhedron/boundedaffineimageempty1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
Incoming link from: 4. C generated domain transformations1
1. Bounded Chvatal half-pair refinement UID: PPL-SPEC-001666 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000449 Bounded Chvatal half-pair refinement (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
STATEMENT: refine_with_chvatal_cuts(max_pair_tests) shall first perform the existing all-coordinate drop_some_non_integer_points() with its default complexity. For a nonempty result and positive budget, it shall inspect at most max_pair_tests distinct unordered pairs of nonstrict inequalities from that result's minimized constraint description, in nested iterator order. Equalities shall not consume the pair budget. All pairs shall refer to that entry description; cuts shall be applied together after pair examination, without iterating the cutting pass.
For a pair ax + b ≥ 0, cx + d ≥ 0, it shall add ((a + c) ⁄ 2)x + ⌊(b + d) ⁄ 2⌋ ≥ 0 when the summed normal is componentwise even and the summed constant is odd. Pairs with an even constant or any odd summed normal coordinate shall add no cut. Ambient dimension and closed topology shall be preserved. The result shall be a subset of the entry set and contain every entry point in Zn.
Zero budget shall perform only the existing tightening. Empty shall remain empty. The budget shall bound pair examination, not minimization or conversion work. A finite budget may produce different refinements for different minimized-row orders; no exact integer hull or representation-independent budgeted result shall be promised.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: Adding two valid inequalities and dividing by two gives ((a + c) ⁄ 2)x + (b + d) ⁄ 2 ≥ 0. If the normal is integral, its value at x ∈ Zn is an integer, so flooring the constant retains every integer solution. An even constant gives an already implied real inequality; an odd normal does not justify this rounding. The triangle x ≥ 0, y ≥ 0, x + y ≤ 1, − x + y ≤ 0 yields y ≤ 0 from the last two inequalities, excluding (1 ⁄ 2, 1 ⁄ 2) retained by separate-row tightening. New cuts need not describe the complete integer hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void refine_with_chvatal_cuts(dimension_type max_pair_tests);
VERIFICATION_CRITERIA: Derive literal cuts and independently enumerate integer witnesses in translated/reflected triangles. Compare the examined prefix with a public-API pair oracle, including negative-odd floor, odd-normal/even-constant rejection, equality rows, exact budget exhaustion, zero budget, empty, zero-dimensional, affine and unbounded cases. Check no enlargement, reload and repeated refinement.
BIBLIOGRAPHY: Chvatal73DM | Whole work (Chvatal cutting-plane background). NemhauserW88 | Whole work (integer-programming background).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/chvatalcuts1.cc; doc/definitions.dox.
-
Incoming link from: 4. Exact polyhedral coordinate deletion1
1. Bounded exact projection from current constraints UID: PPL-SPEC-001679 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: 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.
INTERFACE: Private member in Parma_Polyhedra_Library::Polyhedron; implementation in src/Polyhedron_chdims.cc.
bool try_constraint_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: 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.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc.
-
Incoming links from: 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation2
1. H79 polyhedral widening UID: PPL-SPEC-001365 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the standard widening of the cited Definition 1, including representation-independent handling of redundant rows. widening_assign shall select this H79 operation. For NNC operands the named algorithm shall operate on compatible closed epsilon representations built from closure facets and maximal excluded faces. The represented result shall be independent of the operand cache history.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite limited growth permits precision improvements without losing the termination purpose of widening. NNC epsilon inclusion must hold for the internal closed-set argument.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void H79_widening_assign(const Polyhedron&, unsigned* tokens=nullptr); void widening_assign(const Polyhedron&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check both input inclusions, delayed strict chains, empty/zero dimensions, representation redundancy, the named algorithm on independent closed examples and NNC epsilon compatibility.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 3, Definition 1; Section 5, Definition 18 and Theorem 19; Section 6, widening delay and tokens.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/h79widening1.cc; tests/Polyhedron/h79widening2.cc; tests/Polyhedron/bhrz03widening1.cc; tests/Polyhedron/bhrz03widening2.cc; tests/Polyhedron/bhrz03widening3.cc; src/Polyhedron_widenings.cc.
-
Incoming links from: 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation2
2. BHRZ03 polyhedral widening UID: PPL-SPEC-001366 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the improved widening of the cited Definition 18: it shall preserve certified limited-growth steps, otherwise combine the specified constraint/point/ray improvements under the standard widening bound. For NNC operands it shall use the same normalized epsilon representations as H79 for its standard widening bound. Its result shall be at least as precise as H79 on the same admitted pair in either topology.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite limited growth permits precision improvements without losing the termination purpose of widening. NNC epsilon inclusion must hold for the internal closed-set argument.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void BHRZ03_widening_assign(const Polyhedron&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check both input inclusions, delayed strict chains, empty/zero dimensions, representation redundancy, the named algorithm on independent closed examples and NNC epsilon compatibility.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 3, Definition 1; Section 5, Definition 18 and Theorem 19; Section 6, widening delay and tokens.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/h79widening1.cc; tests/Polyhedron/h79widening2.cc; tests/Polyhedron/bhrz03widening1.cc; tests/Polyhedron/bhrz03widening2.cc; tests/Polyhedron/bhrz03widening3.cc; src/Polyhedron_widenings.cc.
-
3. Limited H79 polyhedral extrapolation UID: PPL-SPEC-001367 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void limited_H79_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/limitedh79extrapolation1.cc; src/Polyhedron_widenings.cc.
-
4. Bounded H79 polyhedral extrapolation UID: PPL-SPEC-001368 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_H79_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedh79extrapolation1.cc; src/Polyhedron_widenings.cc.
-
5. Limited BHRZ03 polyhedral extrapolation UID: PPL-SPEC-001369 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void limited_BHRZ03_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/limitedbhrz03extrapolation1.cc; src/Polyhedron_widenings.cc.
-
6. Bounded BHRZ03 polyhedral extrapolation UID: PPL-SPEC-001370 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_BHRZ03_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedbhrz03extrapolation1.cc; src/Polyhedron_widenings.cc.
-
1. Exact polyhedral cylindrification UID: PPL-SPEC-001345 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Cylindrification shall forget restrictions on the selected coordinates while preserving exactly the projection onto all other coordinates. Ambient dimension shall be retained. Empty shall remain empty, and an empty coordinate selection shall be a no-op. Coordinates outside the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Forgetting a coordinate is existential elimination followed by adding that coordinate freely, not deleting every row that mentions it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void unconstrain(Variable); void unconstrain(const Variables_Set&);
VERIFICATION_CRITERIA: Check coupled equalities/inequalities, strict projected boundaries, empty selections, invalid indices, empty and pending descriptions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/unconstrain1.cc; src/Polyhedron_chdims.cc.
-
2. Polyhedral coordinate growth UID: PPL-SPEC-001354 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Adding m coordinates shall append them after the old coordinates. add_space_dimensions_and_embed(m) shall form the Cartesian product with Rm; add_space_dimensions_and_project(m) shall append exactly m zero coordinates. Empty shall remain empty in the enlarged dimension. Zero growth shall be a no-op. Exceeding the selected topology's structural dimension limit shall throw std::length_error before extent-dependent allocation; unsigned dimension arithmetic shall not wrap.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Free extension and zero extension have different meanings despite sharing the same new ambient dimension.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_space_dimensions_and_embed(dimension_type m); void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Check independent Cartesian/zero products, both topologies, empty/universe, pending histories, zero growth and reserved/overflow extents.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addspacedims1.cc; tests/Polyhedron/addspacedims2.cc; src/Polyhedron_chdims.cc.
-
3. Exact polyhedral Cartesian concatenation UID: PPL-SPEC-001355 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Concatenation shall assign the exact Cartesian product of the entry receiver and operand, with receiver coordinates followed by operand coordinates. The resulting dimension shall be the sum. Empty shall be absorbing; zero-dimensional universe shall be an identity. Self-concatenation shall use independent copies of the entry value. Incompatible topologies shall throw std::invalid_argument and excessive combined dimension std::length_error before extent-dependent allocation. A distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Concatenation combines independently chosen tuples and must not introduce equalities between copies.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void concatenate_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check literal products, self products, both operand orders for zero dimensions, strict endpoints, empty and dimension/topology rejection. Check current C, current G and both saturation orientations, constraint-heavy fallbacks, zero leading saturation columns across GMP limb boundaries and subsequent pending-row processing against literal Cartesian products.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/concatenate1.cc; src/Polyhedron_chdims.cc.
-
4. Exact polyhedral coordinate deletion UID: PPL-SPEC-001356 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Coordinate deletion shall existentially project away exactly the selected coordinates and pack surviving coordinates in their previous relative order. Removing higher dimensions shall retain the prefix of the requested length. Empty shall remain empty in the resulting dimension. Projection of nonempty onto no coordinates shall be zero-dimensional universe. Empty selection or an unchanged prefix length shall preserve the value. An invalid selection or a requested prefix longer than the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Projection retains consequences among surviving coordinates, including strict boundary information.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type);
VERIFICATION_CRITERIA: Check relational elimination, unbounded directions that vanish, all/none/prefix selection, zero dimensions, pending histories and rejected indices. Compare the constraint and generator routes under 🔗 1. Bounded exact projection from current constraints, including unchanged rejection state, profile selection and allocation failures.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/removespacedims1.cc; tests/Polyhedron/removespacedims2.cc; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc.
-
5. Exact partial coordinate mapping of polyhedra UID: PPL-SPEC-001357 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an admitted partial mapping from old coordinate indices to a dense set {0, …, m − 1}, the operation shall delete unmapped coordinates and rename the remaining ones exactly. The mapping shall be injective on its domain and m ≤ n; an equal-size map shall therefore be a permutation. The mapping object shall implement has_empty_codomain(), max_in_codomain() and maps(i,j) with the entry mapping's consistent answers. Empty codomain shall project onto zero dimensions. The maximum shall be requested at most once and maps at most once per old coordinate. Mappings violating these prerequisites shall have no result guarantee; a defensive invalid-argument check shall not make every malformed map admitted.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: An injective dense image distinguishes projection/permutation from coordinate identification or addition of unconstrained dimensions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
VERIFICATION_CRITERIA: Check independent permutations and partial projections, disappearing directions, empty and zero dimensions, custom mapping call counts and both current representation routes.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/mapspacedims1.cc; src/Polyhedron_chdims.cc.
-
6. Polyhedral coordinate expansion UID: PPL-SPEC-001358 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expansion of coordinate v by m shall append m coordinates, each an independent copy of v conditional on the other old coordinates. Writing an old state as (z, xv), the result shall consist exactly of states (z, xv, t1, …, tm) for which (z, xv) ∈ P and each (z, ti) ∈ P. The copies need not equal one another. Invalid v shall throw std::invalid_argument and excessive dimension growth std::length_error. Zero expansion shall preserve the value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Expansion replicates a coordinate relation while allowing independent values consistent with the shared context.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void expand_space_dimension(Variable v, dimension_type m);
VERIFICATION_CRITERIA: Check literal interval copies, context-dependent relations, strict endpoints, non-equality between copies, empty, zero growth and dimension guards.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/expandspacedim1.cc; tests/Polyhedron/expandspacedim2.cc; src/Polyhedron_chdims.cc.
-
7. Polyhedral coordinate folding UID: PPL-SPEC-001359 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Folding coordinates in vars into dest shall take the least polyhedron of the receiver's topology containing the union of the projections that place either the old destination or one folded coordinate at the surviving destination position, and then delete the folded coordinates. Remaining coordinates shall retain relative order. dest shall be a valid coordinate outside vars; all selected coordinates shall be valid, otherwise std::invalid_argument shall be thrown. Empty selection shall be a no-op.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Folding merges alternative coordinate origins through a polyhedral hull rather than requiring their values to agree.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void fold_space_dimensions(const Variables_Set& vars, Variable dest);
VERIFICATION_CRITERIA: Compare with independently permuted/projected hulls, strict boundaries, destinations before/after deleted coordinates, empty selection and invalid overlap/indices. Compare the result with the hull of independent affine images of the entry value followed by projection, for closed and NNC topology, dense/sparse rows, zero/single/multiple noncontiguous sources, different destination positions, rational correlations, rays, lines and pending or minimized caches.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/foldspacedims1.cc; tests/Polyhedron/foldspacedims2.cc; src/Polyhedron_chdims.cc.
-
1. Exact equality-pivot elimination UID: PPL-SPEC-001683 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With GMP coefficients, project_constraint_equality(rows, v, pivot) shall require owned valid rows of one ambient dimension, an in-range pivot index, an equality at that index and a nonzero pivot coefficient of v. For the pivot E = ax + r = 0 and another row C = bx + s▹0, a nonzero b shall be cancelled by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E, where g = gcd(|a|, |b|). The relation kind shall be retained. Rows with zero coefficient shall be transferred unchanged; tautological results shall be omitted. The pivot shall be removed, every remaining coefficient of v shall be zero, and the result shall represent the exact existential elimination of that coordinate. Row count shall not increase.
The row vector shall retain its ambient coordinate numbering; physical coordinate compaction belongs to its caller. Temporaries shall own their data. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use without a rollback guarantee for this scratch vector. The receiver shall not be modified by scratch-vector failures before the caller's completed-result replacement.
RATIONALE: The multiplier of the original relation is positive, so equality, weak and strict inequality meanings are preserved. On the pivot equality, subtracting its multiple preserves equivalence. The pivot determines the eliminated coordinate uniquely from every assignment satisfying the substituted rows; existential elimination is therefore exact. Dividing cancellation factors by their positive gcd reduces coefficient growth.
INTERFACE: File-local helper in the unnamed namespace of src/Polyhedron_chdims.cc.
void project_constraint_equality(std::vector<Constraint>& rows, Variable v, size_t pivot);
VERIFICATION_CRITERIA: Through public coordinate removal and the production projection selector, exercise both pivot signs, unit and nonunit coefficients, all relation kinds, gcd reduction, unchanged rows, tautological and contradictory results. Compare literal projections and an independently materialized generator route. Exercise allocation failures and verify valid receiver state.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
2. Bounded exact coupled constraint projection UID: PPL-SPEC-001684 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_coupled_equality_projection(vars) shall require an unmarked receiver with current constraints, no pending generators, ambient dimension at least five, at most 64 stored rows and a nonempty in-range selection. It shall attempt the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and relative coordinate order. With bounded coefficients it shall reject. With GMP coefficients, selections above four coordinates shall delegate to 🔗 3. Exact one-dimensional continuous LP projection only for necessarily closed receivers, returning its result; other such selections shall reject.
For each equality record the support on selected coordinates in bounded stack metadata. Repeatedly select an equality whose support on remaining selected coordinates is exactly one coordinate, record that coordinate, and remove it from the remaining set. When peeling stops, inspect remaining selected coordinates in ascending order. If an equality has nonzero support on the coordinate being inspected, delegate to 🔗 1. Two-coordinate full-rank equality projection and return its result. Otherwise opposite signs shall delegate to 🔗 2. Bounded coupled two-coordinate pair projection and return its result. The structural planner itself uses only support/sign queries; the delegated preflights may use exact coefficient algebra. Absent selected columns shall impose no restriction.
After an admissible plan is found, copy the owned rows. For each planned coordinate choose an equality with nonzero coefficient and zero coefficients on all later planned and residual selected coordinates, preferring coefficient 1 or − 1, and apply 🔗 1. Exact equality-pivot elimination. Such a pivot shall exist. After substitution discard rows involving any residual selected coordinate. Compact the retained rows, preserve their relations, and replace the receiver only by swapping in a completed same-topology polyhedron. On this structural equality/one-sided path, at most four substitution passes shall occur and row count shall not exceed its input bound. Delegated paths shall obey their respective contracts and work bounds. A false result shall preserve every receiver field and shall allocate no C++ storage. The delegated rank and sign preflights may perform GMP coefficient algebra before returning false. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use, without strengthening its guarantees to the false-result preservation guarantee.
RATIONALE: A leaf pivot has zero coefficients on every other remaining selected coordinate. Substitution consequently multiplies those coefficients by a positive nonzero factor, preserving their supports. The static support plan remains valid, later pivots remain available and no pairwise row generation is necessary. Every pivot removes one row and possibly tautologies, bounding the work without building a generator description.
A residual coordinate has no equality coefficient and a globally consistent inequality sign. A chosen pivot has zero residual coefficients, so every substitution preserves those signs. For each assignment of retained coordinates satisfying unaffected rows, send all residual variables far enough in their permitted directions. Every row involving them then grows positively, also satisfying strict inequalities. Dropping these rows is therefore exact even with several coupled residual coordinates.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_coupled_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal results and an independent generator route on closed and NNC systems. Cover reversed elimination order, selected support patterns, signed/unit/nonunit pivots, redundant or inconsistent rows, noncontiguous dimensions, one through four selected coordinates and exact limits. Check singular-cycle, large-selection and bounded-profile rejection, complete unchanged ASCII state and zero C++ allocation on rejection. Exercise public cache histories, reload, random systems and allocation failures.
Cover no, partial and complete equality plans, positive/negative and absent residual columns, coupled residual strict and weak rows, and rejection of remaining equalities or opposite-sign inequalities. Independently verify their mathematical projections and unchanged state on every rejection.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
Incoming link from: 4. C generated domain transformations1
1. Nonnegative polyhedral time elapse UID: PPL-SPEC-001360 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Ordinary time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t ≥ 0}, using the entry receiver P and operand Q. Empty in either operand shall give empty. Dimension and topology shall agree, otherwise std::invalid_argument shall be thrown. A distinct operand shall retain its represented value. The progression scalar shall be real, not integral, and zero time shall be admitted for nonempty operands.
The generator-system overload shall interpret its input as the rate polyhedron described by that system, using the receiver's topology. The rate system shall have the same ambient dimension as the receiver. An empty rate system shall give the empty result. A nonempty system without an included point, or a closed receiver with a user-visible closure point in the system, shall raise std::invalid_argument. These argument checks shall precede updates of the receiver. An independent input generator system shall retain its value and representation. If the input is a borrowed generator view of the receiver, the operation shall read its entry generators before any receiver update; the view shall then follow 🔗 2. Equivalent borrowed polyhedral descriptions. A singleton zero rate shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The cone of an NNC rate polyhedron may require a polyhedral enclosure, and closing the result is required by a closed target. Generator input permits a caller that already has a rate description to avoid constructing a rate polyhedron. For nonempty operands, the least polyhedral result is the sum of the initial set and the closed rate cone: every valid strict or nonstrict halfspace must admit nonnegative progression along each rate, and hence along that closed cone.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void time_elapse_assign(const Polyhedron&); void time_elapse_assign(const Generator_System& rates);
VERIFICATION_CRITERIA: Check literal rate cones, zero rates, open rate boundaries, original states at zero time, empty operands, self aliasing and compatibility rejection. Compare generator-input results with independently known cones and with the polyhedron-input overload. Cover unpaired NNC points and closure points, rays, lines, latent empty and pending receivers, both cache states, borrowed receiver generators, zero dimensions and validation before receiver updates. Exercise the powerset time-elapse callback with closed, NNC and recursive powerset operands.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/timeelapse1.cc; tests/Polyhedron/timeelapse2.cc; tests/Polyhedron/timeelapsegenerators1.cc.
-
2. Positive polyhedral time elapse UID: PPL-SPEC-001361 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Positive time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t > 0}. Zero time shall not be introduced merely by the definition; zero rates may nevertheless retain entry states. A closed receiver shall take the closed polyhedral enclosure. Both rate topologies shall be admitted by this variant. Dimensions shall agree, otherwise std::invalid_argument shall be thrown. Empty in either operand shall give empty. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Strictly positive time can exclude initial boundary states; a closed result necessarily adds their appropriate limits.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
// Members of C_Polyhedron and NNC_Polyhedron: void positive_time_elapse_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check independent positive cones, excluded/retained origins, zero rates, empty and zero-dimensional operands, cross-topology rates and dimension mismatch.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/nncpostimeelapse1.cc.
-
3. Integer-point-preserving polyhedral restriction UID: PPL-SPEC-001362 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Restriction shall return a polyhedron contained in the entry receiver that retains every entry point integral in the selected coordinates. The all-coordinate overload shall select all coordinates. Remaining points need not all be integral; no optimality guarantee shall be made, including under ANY_COMPLEXITY. Limited complexity may leave the value unchanged rather than materializing an expensive representation. Empty coordinate selection shall be a no-op. The selection shall contain only valid receiver coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rounding individual constraints can remove fractional states without computing the integer hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Enumerate bounded integer tuples independently, confirm retention and no enlargement, include subset selection, strict bounds, pending/cache and complexity-policy histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/dropsomenonintegerpoints1.cc; tests/Polyhedron/dropsomenonintegerpoints2.cc.
-
4. Sound bounded-integer wrapping in polyhedra UID: PPL-SPEC-001363 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For selected coordinates assumed integral, wrapping shall conservatively represent the outcomes for the selected modeled width and signed or unsigned representation. OVERFLOW_WRAPS shall reduce modulo 2w and choose the representative in the modeled range. OVERFLOW_IMPOSSIBLE shall retain only nonoverflowing outcomes; OVERFLOW_UNDEFINED shall permit arbitrary results on overflowing transitions. Unselected coordinates shall retain their correlations as far as the documented polyhedral abstraction preserves them. Optional constraints shall restrict the output state, may mention only selected coordinates, and may guide the partition of wrapping translations. All selected indices and optional descriptors shall be dimension-compatible; dimension mismatches shall throw std::invalid_argument. The complexity threshold and individual-wrapping flag may trade precision for work; they shall not exclude concrete outcomes.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Modeled machine overflow is distinct from overflow of the coefficients computing a sound enclosure.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void wrap_assign(const Variables_Set&, Bounded_Integer_Type_Width, Bounded_Integer_Type_Representation, Bounded_Integer_Type_Overflow, const Constraint_System* = nullptr, unsigned complexity_threshold=16, bool wrap_individually=true);
VERIFICATION_CRITERIA: Enumerate small integer input sets and modular representatives, include signed endpoints, cross-coordinate relations, optional constraints, every overflow policy and both wrapping modes.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/wrap1.cc; tests/Polyhedron/wrap2.cc.
-
5. Exact polyhedral topological closure UID: PPL-SPEC-001364 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Closure assignment shall replace the receiver by its exact real topological closure. A closed receiver shall retain its value. NNC closure shall include the missing boundary points while preserving dimension, equalities and recession behavior. Empty and zero-dimensional values shall remain unchanged. Repetition shall be idempotent.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closure changes membership at limits without changing the affine hull or introducing unrelated points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void topological_closure_assign();
VERIFICATION_CRITERIA: Check half-open intervals, lower-dimensional open sets, latent empty strict systems, both representation routes and idempotence. Check generator-derived receivers with both representations minimized before closure, including multiple boundary points that become unsorted on insertion; verify the exact closed generator hull, invariants and idempotence.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/topclosure1.cc.
-
1. Sound polyhedral filtering by interval linear forms UID: PPL-SPEC-001376 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For an admitted nonempty receiver, floating-point formats and bounded interval coefficients, linear-form refinement shall retain every receiver state satisfying some coefficient instantiation of the selected comparison, and shall introduce no state outside the receiver. The basic overload shall select less-than or less-or-equal by is_strict; a closed receiver may relax strictness. Generalized refinement shall apply both non-strict filters for equality, reverse operands for greater-than relations, and retain the receiver for disequality. Excess input dimension shall throw std::invalid_argument; an invalid relation enumeration shall throw std::runtime_error. If the form or its normalization overflows the admitted analysis range, refinement may leave the receiver unchanged rather than use an unsound finite coefficient. External forms shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Interval coefficients describe a family of real affine expressions; sound filtering must retain the union of their feasible states.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void refine_with_linear_form_inequality( const Linear_Form<Interval<FP_Format, Interval_Info>>& left, const Linear_Form<Interval<FP_Format, Interval_Info>>& right, bool is_strict=false); template <typename FP_Format, typename Interval_Info> void generalized_refine_with_linear_form_inequality( const Linear_Form<Interval<FP_Format, Interval_Info>>& left, const Linear_Form<Interval<FP_Format, Interval_Info>>& right, Relation_Symbol);
VERIFICATION_CRITERIA: Enumerate endpoint and interior coefficient choices on literal boxes, exact dyadic coefficients, every relation symbol, strict/closed behavior, overflowing normalization and invalid dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
2. Sound polyhedral image of interval linear forms UID: PPL-SPEC-001377 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For an admitted nonempty receiver and a linear form with bounded interval coefficients in a supported floating-point format, affine-form image shall contain every target state produced by an admitted coefficient instantiation, with other coordinates unchanged in the concrete transition. The result may conservatively lose correlations. It shall preserve dimension and topology. Invalid target or excess form dimension shall throw std::invalid_argument. If the form or normalization overflows the analysis range, returning universe shall be permitted. External forms shall preserve their values. Arithmetic and rounding prerequisites of the selected interval and floating-expression profiles shall apply.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Normalization separates interval uncertainty from exact rational coefficients; an overflowing abstraction must widen instead of silently discard concrete outcomes.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void affine_form_image(Variable, const Linear_Form<Interval<FP_Format, Interval_Info>>&);
VERIFICATION_CRITERIA: Compare exact dyadic images with rational transforms, enumerate uncertain coefficients, include subnormals, cancellation, unbounded state coordinates, overflow fallback and argument rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
3. Polyhedral refinement of a floating interval store UID: PPL-SPEC-001378 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Intersecting sound enclosures is safe, while abstracting before intersection can lose relational precision.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void refine_fp_interval_abstract_store( Box<Interval<FP_Format, Interval_Info>>&) const;
VERIFICATION_CRITERIA: Check directed rational-to-floating endpoints, empty and dimension mismatch, source preservation and concrete intersection retention for relational examples.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
Incoming link from: 4. C generated domain transformations1
1. HH95 closed-polyhedron edge extrapolation UID: PPL-SPEC-001667 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For nonempty entry operands P, Q ⊆ Rn, let H = clconv(P∪Q) and let L be its lineality space. In the pointed quotient H ⁄ L, classify a vertex as old exactly when it belongs to (P + L) ⁄ L; classify the remaining vertices as new. HH95_extrapolation_assign(y) shall produce H + cone{v − u ∣ u old, v new, [u, v] an edge of H ⁄ L}, using any lifted representatives. It shall preserve ambient dimension and closed topology and contain both operands.
Empty in either operand shall be neutral. Self-aliasing shall preserve the entry set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering relative to HPW01 shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: For minimized quotient generators, two finite vertices form an edge exactly when their common saturated facets contain no third nonline generator. This minimal-face test handles nonsimple vertices; simply counting incident facets would not suffice. Ignoring hull lines in the test implements the pointed quotient. Adding those same lines to the old operand establishes its quotient membership test. Changing representatives alters a difference only by an element of L, already present in the result. For rational points, GCD-scaled numerator differences give the same ray without multiplying inhomogeneous divisors. The construction contains H by adding rays.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void HH95_extrapolation_assign(const C_Polyhedron& y);
VERIFICATION_CRITERIA: Compare saturation adjacency with public-API minimal-face intersection and affine-dimension tests. Include nonsimple square pyramids, edges and diagonals, unbounded minimal faces, multiple lineality directions, rational vertex pairs, literal lower-dimensional lifts, pending/cache/reload histories, redundant descriptions, self/empty/zero-dimensional values and dimension rejection. Check H79 precision gains and explicit ascending nonstabilizing sequences without asserting a universal HPW01 ordering.
BIBLIOGRAPHY: HenzingerH95 | Extrapolation construction (extreme points, rays and adjacent old/new vertices).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/hh95extrapolation1.cc; doc/definitions.dox.
-
Incoming link from: 4. C generated domain transformations1
1. HPW01 closed-polyhedron extrapolation UID: PPL-SPEC-001665 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For nonempty entry receiver P and operand Q in Rn, HPW01_extrapolation_assign(y) shall replace the receiver by the intersection of the affine-hull equalities of H = clconv(P∪Q) and exactly those facet halfspaces of H whose boundary intersects P. The result shall contain H and preserve ambient dimension and closed topology.
Empty in either operand shall be neutral. Self-aliasing shall use the entry operand twice and preserve its set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering with HH95 extrapolation shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: For a facet valid on P, its slack on points and recession rays is nonnegative and its homogeneous slack on lines is zero. Its boundary meets P exactly when a finite point generator has zero slack. Testing these products implements the boundary-intersection definition without solving one feasibility problem per facet. Equalities remain valid on both operands.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void HPW01_extrapolation_assign(const C_Polyhedron& y);
VERIFICATION_CRITERIA: Compare with public-API boundary intersections and independently known literal results. Include nonsimple and lower-dimensional hulls, rays, lines, rational vertices, changing affine hulls, pending constraints/generators, reloads, empty and zero-dimensional cases, self-aliasing and argument validation. Exhibit a strictly ascending extrapolation sequence and the nested-square precision-ordering counterexample.
BIBLIOGRAPHY: HenzingerPW01 | Section 3.3 (operator definition).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/hpw01extrapolation1.cc; doc/definitions.dox.
-
1. Polyhedral envelope from entry constraint descriptions UID: PPL-SPEC-001672 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000454 Constraint-description polyhedral envelope (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: envelope_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q, as obtained by constraints() without an additional minimization request. Each equality shall supply both opposite non-strict inequalities. The completed receiver shall denote exactly the intersection of those candidate inequalities satisfied by both operands. Included or excluded NNC boundaries shall retain their inequality meaning. Ambient dimension and topology shall be preserved.
Descriptions shall be captured before support queries can normalize their caches. Precision may depend on redundant inequalities or the descriptions materialized at entry. No particular minimal output description is required. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
RATIONALE: Every retained half-space contains both entry sets, so their intersection contains the polyhedral hull. Equality splitting permits retention of one valid side when the other side excludes an operand. A candidate description can include additional valid directions through redundant inequalities, which explains its precision dependence.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The member is inherited by C_Polyhedron and NNC_Polyhedron.
void Polyhedron::envelope_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal boxes, points, rays and lines, alternate affine descriptions and a redundant diagonal cut. Check all scalar endpoint-openness combinations both with generator queries and in higher-dimensional LP cylinders. Exercise unknown empty sets, including strict systems whose closure is nonempty; compatibility rejection before empty shortcuts; aliasing, pending descriptions, source-value preservation, reload and assessed allocation failures.
BIBLIOGRAPHY: BemporadFT01 | Section 3, equation (3) (envelope definition); Section 4, Algorithm 4.1, steps 1–2. BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC boundary semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
6. Weak join with exact directional bounds and NNC attainment UID: PPL-SPEC-001677 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: weak_join_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q through constraints() without an additional minimization request. Split equalities into both opposite inequalities, and let D contain their distinct nonzero homogeneous directions. For nonempty operands, for each a ∈ D bounded below on both sets, let ma = min(infp ∈ Pa⋅p, infq ∈ Qa⋅q). The completed receiver shall denote the intersection of a⋅x ≥ ma, omitting unbounded directions. In NNC topology the inequality shall be strict exactly when no point of either operand attains ma.
Candidates shall be captured before support queries can normalize their caches. Precision may depend on redundant directions and materialized descriptions; no minimal output description is required. The result shall contain the polyhedral hull and be contained in the envelope for the same entry descriptions. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Ambient dimension and topology shall be preserved. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
RATIONALE: Each directional bound is the strongest half-space of that orientation containing both operands. Its infimum value and attainment determine whether the limiting boundary is included. Every retained envelope inequality is implied by the corresponding tight bound, proving the ordering between hull, weak join and envelope. The conference definition specifies this construction for closed polyhedra; the journal reference supplies NNC membership semantics for the stated attainment extension.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The member is inherited by C_Polyhedron and NNC_Polyhedron.
void Polyhedron::weak_join_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal scalar endpoint combinations, rational bounds and independently derived multidimensional examples with distinct directions. Exercise both bound orderings, equal and unequal denominators, sign changes, ties with one or both minima attained, unbounded directions, incompatible operands, aliasing, unknown empty sets, pending/cache histories, reload, source-value preservation and assessed allocation failures. Compare independent generator support oracles with the LP path.
BIBLIOGRAPHY: SankaranarayananCSM06 | Section 3, Definition 5 (weak join and equality splitting). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralweakjoin1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
Incoming link from: 4. C generated domain transformations1
1. Exact Minkowski sum of polyhedra UID: PPL-SPEC-001664 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000447 Exact polyhedral Minkowski addition (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry operands P, Q ⊆ Rn, minkowski_sum_assign(y) shall replace the receiver by exactly P + Q = {p + q ∣ p ∈ P, q ∈ Q}. Ambient dimension and the receiver's closed or NNC topology shall be preserved. Empty in either operand shall yield empty; two nonempty zero-dimensional operands shall yield the zero-dimensional universe. Dimensions and topologies shall agree, otherwise std::invalid_argument shall be thrown before changing the represented value of the receiver. Self-aliasing shall use the entry operand twice. A distinct operand shall preserve its represented value.
Excluded NNC boundaries shall retain their membership meaning. The represented result shall be independent of whether constraints or generators were initially materialized. No particular redundant or minimized description is required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may preserve the mathematical value while changing its materialized representations. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: Taking the Cartesian product and mapping (p, q) ↦ p + q establishes exactness independently of the storage route. In generator form, a finite pair is an included point exactly when both contributing generators are included points, and is a closure point otherwise. Products of the operands' convex weights construct the finite pair sums. Positive total weight on included points in each input gives positive total weight on included point–point pairs. Conversely, the marginal weights of a valid output combination are valid input combinations. Ray cones and line spans add by retaining their generating directions. This proves the NNC construction as well as the closed case. Convexity gives P + P = 2P for self-addition. Using the least common denominator and combining only coordinate slots avoids unnecessary denominator products and temporary inhomogeneous sums.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. This public Polyhedron member is inherited by C_Polyhedron and NNC_Polyhedron.
void minkowski_sum_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal endpoint sums and endpoint inclusion for closed, open and half-open scalar sets. Cover rational points with equal and unequal divisors, including a checked-int8 case whose least common denominator fits while the unreduced product does not. Compare boxes, triangles, deterministic point clouds, lower-dimensional and unbounded sets with the public Cartesian-product reference where admitted. Check both operand orders, self-addition, pending constraints and generators, sorted and unsorted NNC systems, borrowed source views after completion, invalid dimensions and topologies, reload, empty and zero-dimensional inputs. Validate checked-overflow reporting and temporary ownership under the common failure contract.
BIBLIOGRAPHY: Fukuda04JSC | Whole work (background on Minkowski addition and vertex representations). BagnaraHZ10CGTA | Sections 2.1–2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: doc/definitions.dox: Minkowski Addition; src/Polyhedron_defs.hh; src/Polyhedron_public.cc; tests/Polyhedron/minkowskisum1.cc.
-
1. Polyhedral constraint addition and refinement UID: PPL-SPEC-001338 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The rvalue add_constraints overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Adding an admitted constraint or system shall compute its exact conjunction with the receiver. Closed addition shall reject strict rows with std::invalid_argument; NNC addition shall preserve their strictness. Refinement shall use the same conjunction for admitted topology-compatible rows. In a closed receiver, refinement by a strict inequality may relax it to the corresponding non-strict inequality; a false constant shall still yield empty. Trailing free dimensions shall be retained. Excess descriptor dimension shall throw std::invalid_argument. External const input shall be preserved. Recycled input may be consumed and need only remain safely destructible on return. Pending descriptions shall retain all previously added restrictions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed polyhedra can conservatively relax a strict boundary during refinement, while exact addition must reject unrepresentable topology.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void add_constraints(Constraint_System&&); void add_recycled_constraints(Constraint_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Check pending and minimized histories, contradictions, strict topology admission/relaxation, zero dimensions, borrowed descriptor inputs and recycled ownership. Check strict zero contradictions separately from ordinary strict relaxation, with padded and unpadded dense/sparse rows, zero and positive dimensions, processed/pending histories, both refinement APIs and unchanged const inputs.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addconstraint1.cc; tests/Polyhedron/addconstraints1.cc; tests/Polyhedron/addconstraints2.cc; tests/Polyhedron/refinewithconstraint1.cc; tests/Polyhedron/refinewithconstraints1.cc; tests/Polyhedron/recycledsystems1.cc. src/Constraint_System.cc; tests/systembulktransferspec1.cc.
-
Incoming link from: 6. Polyhedron construction from representable congruences1
2. Polyhedral congruence addition and conservative refinement UID: PPL-SPEC-001339 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Addition shall conjoin equality congruences exactly, ignore tautologies, and set empty for contradictions. A proper congruence that is neither constant-true nor constant-false shall throw std::invalid_argument. Refinement shall conjoin equality congruences exactly and may ignore proper congruences. Bulk refinement shall recognize contradictory proper congruences; single refinement in positive ambient dimension may retain the receiver for a proper congruence, including a contradiction. In zero dimensions it shall use the congruence's truth value. Excess descriptor dimension shall throw std::invalid_argument. Const external inputs shall be preserved; recycled inputs need only remain destructible. The source and receiver may have lower and higher dimensions respectively, with trailing coordinates free.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Periodic restrictions are generally nonconvex. Exact addition rejects nonrepresentable rows, while refinement provides an explicit conservative approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void add_recycled_congruences(Congruence_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&);
VERIFICATION_CRITERIA: Check equality, tautological and contradictory proper rows in single and bulk routes, rejected periodic additions, empty/zero dimensions and const/recycled input ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruence1.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/refinewithcongruence1.cc; tests/Polyhedron/refinewithcongruences1.cc.
-
3. Polyhedral generator insertion UID: PPL-SPEC-001340 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The rvalue add_generators overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Generator insertion shall extend the receiver's generator description with the supplied generators and denote that combined description exactly. Inserting points shall form their polyhedral hull with the receiver; rays and lines shall extend recession directions and NNC closure points shall extend closure support without themselves acquiring membership. Empty input shall be a no-op. If the receiver is empty, a nonempty insertion shall contain an included point or throw std::invalid_argument. Closed receivers shall reject closure points; excess descriptor dimension shall be rejected, both by std::invalid_argument. Const external sources shall retain their values. Recycling may consume storage; its source need only remain destructible.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Generator addition changes the hull or recession cone rather than intersecting the pointset.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_generator(const Generator&); void add_generators(const Generator_System&); void add_generators(Generator_System&&); void add_recycled_generators(Generator_System&);
VERIFICATION_CRITERIA: Check latent empty receivers, all generator kinds, points supplied after directions, fractional coordinates, borrowed rows/systems, topology rejection and recycle ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addgenerator1.cc; tests/Polyhedron/addgenerator2.cc; tests/Polyhedron/addgenerators1.cc; tests/Polyhedron/addgenerators2.cc; tests/Polyhedron/recycledsystems1.cc; tests/systembulktransferspec1.cc.
-
4. Exact polyhedral intersection UID: PPL-SPEC-001341 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000033 Polyhedral intersection and hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal dimensions and compatible topologies, intersection shall replace the receiver by its exact intersection with the operand, including strict NNC boundaries. Self-intersection shall preserve the value. Empty shall be absorbing and universe neutral. Incompatible dimensions or topologies shall throw std::invalid_argument before mutation. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Conjoining both systems of constraints is the meet of the selected polyhedral domain.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void intersection_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Compare against independently combined literal constraints, boundary-only contacts, latent emptiness, self aliasing, pending caches and mismatch rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/intersection1.cc.
-
5. Polyhedral hull and exact-union recognition UID: PPL-SPEC-001342 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000033 Polyhedral intersection and hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Hull assignment shall return the least polyhedron of the receiver's topology containing both operands; upper_bound_assign shall be equivalent. The closed hull may add limiting boundary points that the convex hull excludes. The same-type *_if_exact variants shall return true and assign the hull exactly when the set union is already representable as one polyhedron of that topology. On false they shall preserve the receiver's set. Dimension/topology mismatches shall throw std::invalid_argument. A distinct operand shall retain its value; self-hull shall preserve the receiver.
Ordinary hull assignment shall leave the existing caches intact for a self join or for operands that have matching complete current descriptions of the same kind. Matching shall compare ordered stored rows and the pending boundary. A current description is complete when the opposite description has no pending rows.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Convexification can fill gaps and topology can add limits; exact-union recognition must distinguish both effects.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void poly_hull_assign(const Polyhedron&); void upper_bound_assign(const Polyhedron&); // Same-type members, for both concrete polyhedron classes: bool poly_hull_assign_if_exact(const C_Polyhedron&); bool upper_bound_assign_if_exact(const C_Polyhedron&); bool poly_hull_assign_if_exact(const NNC_Polyhedron&); bool upper_bound_assign_if_exact(const NNC_Polyhedron&);
VERIFICATION_CRITERIA: Check overlapping, disjoint and facet-touching sets, open and closed boundary contacts, nonclosed convex hull examples, false-result preservation and self aliasing. Compare stored descriptions after joins with copies in both topologies. Check that different pending constraints or generators still take part in hull computation when the opposite cached descriptions agree.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.2 (polyhedral hull); Sections 3.1–3.2, Theorems 3.2 and 3.6 (exact-union recognition).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/polyhull1.cc; tests/Polyhedron/polyhull2.cc; tests/Polyhedron/polyhullifexact1.cc; tests/Polyhedron/polyhullifexact2.cc; tests/Polyhedron/facetcontacthulls1.cc.
-
6. Polyhedral enclosure of set difference UID: PPL-SPEC-001343 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Difference assignment shall return the smallest polyhedron of the receiver's topology containing the set-theoretic difference of the entry receiver and operand. The closed variant shall close the convex polyhedral difference where needed. It shall not claim that the result excludes every operand point. Empty difference shall return empty. difference_assign shall be equivalent to poly_difference_assign. Dimension/topology mismatch shall throw std::invalid_argument; a distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Set difference can be nonconvex or nonclosed, so representability determines the required hull and closure.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void poly_difference_assign(const Polyhedron&); void difference_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check interval subtraction, holes whose convex hull restores removed points, endpoint exclusions, self difference, empty/universe and mismatch rejection. Check closed and NNC difference against literal halfspace complements and restored convex hulls, with dense/sparse systems, different dimensions and pending or minimized caches. After operand destruction, verify the result, invariants, alias entry point, independent copies and self difference.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/polydifference1.cc; tests/Polyhedron/polydifference2.cc.
-
7. Polyhedral context-preserving simplification UID: PPL-SPEC-001344 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For compatible operands, simplification shall return a polyhedron containing the entry receiver and having the same intersection with the context. A false result shall certify that this intersection is empty; true shall not alone establish nonemptiness. The context shall preserve its value. The operation need not preserve the receiver outside the context or return a unique simplification. Dimension/topology mismatch shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Constraints irrelevant under the context can be removed without changing states that matter within it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool simplify_using_context_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check independent intersections before/after, implication and disjoint contexts, true/false outcomes, self context and pending representations.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/simplifyusingcontext1.cc; tests/Polyhedron/simplifyusingcontext2.cc.
-
Incoming link from: 5. Polyhedron internal status signed-keyword loading and rejection1
1. Reloadable polyhedral ASCII descriptions UID: PPL-SPEC-001373 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: ascii_dump shall write a reloadable description including ambient dimension, topology, authoritative and pending descriptions, status and saturation data, without changing the receiver's represented set. ascii_load of a complete valid description of the receiver's topology shall restore that same set and dimension, independently of its previous value and cache history. A successful load shall leave a valid representation of the receiver's concrete topology. Invalid syntax, dimensions or topology, and descriptor rows or systems that violate their own invariants, shall return false without relying on debug assertions. Loading is specified for trusted records written by ascii_dump with a compatible build. The consistency of the descriptions with one another and with the status flags is validated by the available invariant checks. Altered records can pass those checks. Failure may leave a partially replaced receiver whose ownership permits destruction. Rollback and further queries shall not be assumed. The description headers shall agree with the status flags. A current saturation matrix shall match the processed row counts before its entries are retained. Obsolete saturation data shall be read without being restored to the loaded representation. print() and ascii_dump() shall write the corresponding representations to standard error. Human-readable pointset output shall not promise a reloadable format or stable descriptor order.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 4. Polyhedron internal status signed-keyword export.
The internal status contract shall follow 🔗 5. Polyhedron internal status signed-keyword loading and rejection.
RATIONALE: Reloadable representation data carry authoritative status and topology; successful loading cannot leave those claims inconsistent with the concrete value type.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void ascii_dump(std::ostream&) const; bool ascii_load(std::istream&); void print() const; void ascii_dump() const; namespace IO_Operators { std::ostream& operator<<(std::ostream&, const Polyhedron&); }
VERIFICATION_CRITERIA: Round-trip literal values with pending/alternate caches, empty/zero dimensions and both topologies. Reject truncated, cross-topology and structurally inconsistent records in assertion and optimized builds. Check stream identity, external stream failures and failed-load destruction.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/ascii_dump_load1.cc; tests/Polyhedron/ascii_dump_load2.cc; tests/Polyhedron/ascii_dump_load3.cc; tests/Polyhedron/loadstatus1.cc; tests/Polyhedron/writepolyhedron1.cc; tests/Polyhedron/writepolyhedron2.cc; src/Ph_Status.cc; tests/polyhedronpersistencespec1.cc.
-
2. Polyhedral memory accounting UID: PPL-SPEC-001374 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: External memory accounting shall sum the dynamically owned storage reported by the constraint system, generator system and both saturation matrices, including retained capacities according to those container contracts. Total memory shall equal external memory plus sizeof(Polyhedron). Queries shall preserve values and ownership and shall not materialize new descriptions merely to compute the count. The count shall not promise process-resident size or allocator metadata.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Owned backing storage differs from mathematical size, active rows and process-level memory usage.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const;
VERIFICATION_CRITERIA: Observe actual component backing allocations, spare capacity, pending matrices, empty and dimension shrink/growth histories; verify total-minus-external and absence of query allocations.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/membytes1.cc; tests/Polyhedron/memory2.cc; src/Ph_Status.cc; tests/polyhedronpersistencespec1.cc.
-
3. Polyhedron representation invariant query UID: PPL-SPEC-001375 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: OK(false) shall recognize admitted owned representations whose constraint/generator topologies, dimensions, status, pending boundaries and current saturation data meet the representation invariants. Current representations shall agree on the represented set, and descriptions declared minimal shall satisfy the corresponding redundancy conditions. OK(true) shall additionally require nonemptiness. A latent inconsistent constraint description may satisfy the structural query without having its empty status materialized. The query may use independent temporary normalization and may allocate or propagate supported failures; it shall preserve the receiver's value. Diagnostic wording shall not be a stable interface. The receiver's storage shall already be live and destructible; this query shall not be a validator for arbitrary corrupted addresses.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 3. Polyhedron internal status consistency predicate.
RATIONALE: Status and saturation shortcuts are safe only when their representation claims hold; checking owned structures is distinct from dereferencing arbitrary untrusted pointers.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool OK(bool check_not_empty=false) const;
VERIFICATION_CRITERIA: Check valid pending/cache histories and independently constructed owned counterexamples for status, topology, dimensions, saturation shape and incompatible dual descriptions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/loadstatus1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/systemidentity1.cc; src/Ph_Status.cc; tests/polyhedronpersistencespec1.cc.
-
1. Polyhedron ambient and affine dimensions UID: PPL-SPEC-001326 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: space_dimension() shall return the ambient dimension without changing the represented value. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine space containing the receiver. It shall count excluded closure points only through the affine hull they share with included points, and shall preserve the represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Ambient dimension and affine rank differ for equalities and for empty sets.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Use independent rational ranks for singletons, segments, flats, full-dimensional and empty sets across both topologies and cache histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc.
-
Incoming links from: 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Nonnegative polyhedral time elapse 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid67
2. Equivalent borrowed polyhedral descriptions UID: PPL-SPEC-001327 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Borrowed-description accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned descriptions shall not extend the receiver's lifetime.
Constraint and generator accessors shall return receiver-owned const views whose descriptions denote exactly the receiver, including pending changes, latent emptiness, equalities and excluded NNC boundaries. Minimized accessors shall additionally remove redundant visible descriptors; they shall not promise a particular row order, coefficient scale or unique minimal representation.
A returned view, its iterators, rows and coefficient references shall be used only while the receiver lives and before an operation replaces or normalizes that representation. Logically const access to the opposite representation may invalidate them. Inputs explicitly permitted to borrow receiver coefficients shall be consumed according to the operation's entry-value contract before such invalidation. External copied descriptions shall own independent values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Dual descriptions and pending rows are storage choices; their materialization must not change the set or boundary membership.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
const Constraint_System& constraints() const &; const Constraint_System& minimized_constraints() const &; const Generator_System& generators() const &; const Generator_System& minimized_generators() const &;
VERIFICATION_CRITERIA: Round-trip independent constraint/generator descriptions, pending histories, redundant rows, closure-point supports and empty/zero-dimensional states. Check independent copied views and valid borrowing intervals.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc; tests/Polyhedron/minconstraints2.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/mingenerators1.cc; tests/Polyhedron/mingenerators2.cc; tests/Polyhedron/systemidentity1.cc.
-
4. Exact elementary polyhedral predicates UID: PPL-SPEC-001329 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The predicates shall decide, respectively, emptiness, equality with the ambient universe, topological closedness as a real pointset, discreteness and boundedness. Discreteness shall mean affine dimension zero; thus empty and singletons shall be discrete. Empty shall be bounded and closed. NNC storage shall not itself imply that the set is nonclosed. Pending or nonminimal descriptions shall not change these decisions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A nonempty convex discrete set is a singleton; topological properties belong to the represented set rather than its selected encoding.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_discrete() const; bool is_bounded() const;
VERIFICATION_CRITERIA: Check fractional singletons, open/closed intervals, unbounded lines and rays, redundant strict rows, latent contradictions and zero dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/universe2.cc; tests/Polyhedron/topclosed1.cc; tests/Polyhedron/bounded1.cc.
-
Incoming link from: 1. Selected-coordinate integer-point existence1
5. Exact integer-point existence in polyhedra UID: PPL-SPEC-001330 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: contains_integer_point() shall return true exactly when the receiver contains a tuple integral in every coordinate. Empty shall return false and zero-dimensional universe true. Excluded boundary points of an NNC polyhedron shall not count. The decision shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational feasibility does not imply integer feasibility, and closing an NNC set can introduce its only integer candidates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool contains_integer_point() const;
VERIFICATION_CRITERIA: Check fractional singletons, integer-free open intervals, relationally infeasible integer systems, unbounded sets, zero dimensions and all representation histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/containsintegerpoint1.cc.
-
6. Polyhedral set comparison and hashing UID: PPL-SPEC-001331 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal dimensions and compatible topologies, containment, strict containment, equality and disjointness shall decide the corresponding exact set relations. Containment shall include equality; strict containment shall exclude it. Empty-set relations shall follow set theory. Incompatible dimensions or topologies shall throw std::invalid_argument for the binary member queries; equality shall return false for unequal dimensions or topologies. Inequality expressions shall negate equality. Equal values shall have equal hashes; hash collisions shall not establish equality. Representation history shall not affect these results.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Comparison is extensional, whereas hashing is only a compatible classification with permitted collisions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool contains(const Polyhedron&) const; bool strictly_contains(const Polyhedron&) const; bool is_disjoint_from(const Polyhedron&) const; bool operator==(const Polyhedron&, const Polyhedron&); // Inequality uses C++20 rewriting of operator==. int32_t hash_code() const;
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check strict boundary contacts, equal values with different histories, empty values, dimension/topology mismatch and hash agreement under normalization.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/contains1.cc; tests/Polyhedron/contains2.cc; tests/Polyhedron/disjoint1.cc; tests/Polyhedron/disjoint2.cc; tests/Polyhedron/equals1.cc.
-
Incoming link from: 9. Exact polyhedron relation with a congruence1
7. Exact polyhedron relation with a constraint UID: PPL-SPEC-001332 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(c) shall classify the exact intersection with the set satisfying c. It shall include is_included() exactly when every receiver point satisfies c, is_disjoint() exactly when none does, and strictly_intersects() when some satisfy it and some do not. It shall include saturates() exactly when every receiver point satisfies the boundary equality of c. Empty shall therefore be included, disjoint and saturating. Excess descriptor dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Boundary equality and satisfaction differ for strict inequalities, including when every point lies on their excluded boundary.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Con_Relation relation_with(const Constraint&) const;
VERIFICATION_CRITERIA: Check equality, strict and non-strict constraints against interior, boundary and crossing examples; include empty, zero dimensions and excess descriptor dimension.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc.
-
8. Exact polyhedron relation with a generator UID: PPL-SPEC-001333 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) shall return subsumes() exactly when an included point belongs to the receiver, a closure point belongs to its closure, a ray is a recession direction, or a line is a two-sided recession direction, according to g's kind. Otherwise it shall return nothing(). Empty shall subsume no generator. Excess dimension shall throw std::invalid_argument; shorter generators shall use zero trailing coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closure membership and directional inclusion are distinct from membership of an ordinary point.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check every generator kind on open facets, bounded and unbounded sets, empty/universe, zero padding and dimension rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc.
-
9. Exact polyhedron relation with a congruence UID: PPL-SPEC-001334 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Equality congruences shall use the constraint relation in 🔗 7. Exact polyhedron relation with a constraint. For a proper congruence, is_included() shall mean that every point satisfies it, is_disjoint() that none does, and strictly_intersects() that some but not all do. A nonempty polyhedron with a nonconstant congruence expression can be included only when the expression is constant at an admitted residue; that case shall also be saturates(). An excluded closure point shall not establish an intersection. Empty shall be included, disjoint and saturating. Constant congruences shall retain their arithmetic truth value. Excess dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A nonconstant affine expression on a convex set cannot take only separated lattice values. Endpoint inclusion matters when deciding whether a residue is attained.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Con_Relation relation_with(const Congruence&) const;
VERIFICATION_CRITERIA: Use independent interval/residue calculations, open endpoints, non-axis expressions, constant congruences, empty and dimension mismatch.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations2.cc.
-
10. Polyhedral coordinate and expression boundedness UID: PPL-SPEC-001335 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty receiver, constrains(v) shall return true exactly when it differs from its cylindrification in coordinate v. Empty shall return true for an admitted coordinate. bounds_from_above(e) and bounds_from_below(e) shall decide existence of finite upper and lower bounds for the affine expression; both shall return true for empty. A constant expression shall be bounded on every receiver. An invalid coordinate or excess expression dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: An affine expression may be bounded by relations even when each participating coordinate is unbounded.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool constrains(Variable) const; bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check free/coupled coordinates, constant and relationally bounded expressions, recession directions, empty and argument validation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constrains1.cc; tests/Polyhedron/bounds1.cc; tests/Polyhedron/querydimensioncontracts1.cc.
-
11. Exact rational polyhedral extrema and witnesses UID: PPL-SPEC-001336 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Maximization and minimization shall return true exactly when the receiver is nonempty and the expression has a finite supremum or infimum. On true, numerator and positive denominator shall represent that exact rational bound; the attainment flag shall say whether it belongs to the expression's image. The witness overload shall return an included point attaining the bound when attained, otherwise a closure point of the receiver attaining that bound. On false all scalar, flag and witness outputs shall remain unchanged. An excess expression dimension shall throw std::invalid_argument. The receiver's set and external expression shall be preserved. Bounded-coefficient generator scalar products and extremum comparisons shall use exact working arithmetic until the final translated rational extremum is reduced. Comparison-only values and unreduced numerators shall not require coefficient admission; the returned numerator and denominator shall.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite extrema can be unattained on NNC sets; a closure witness proves the bound without asserting membership.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Use literal rational intervals and linear images of simplices, open endpoints, constant expressions, lines/rays, negative values, sentinel false outputs and witness substitution.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/max_min1.cc; tests/Polyhedron/querydimensioncontracts1.cc; tests/exactboundedworking1.cc; src/Linear_Expression.cc; src/Linear_Expression_defs.hh.
-
12. Constant affine-expression frequency in polyhedra UID: PPL-SPEC-001337 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(e,...) shall return true exactly when the receiver is nonempty and the expression takes a single value on it. On true, frequency shall be 0/1 and the value outputs shall represent that exact rational value with positive denominator. On false all four outputs shall remain unchanged. Excess expression dimension shall throw std::invalid_argument. A nonconstant expression on a convex set shall not be reported as a positive discrete frequency.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The image of a convex set under an affine expression is convex, so a discrete image must be a singleton.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool frequency(const Linear_Expression&, Coefficient& freq_n, Coefficient& freq_d, Coefficient& val_n, Coefficient& val_d) const;
VERIFICATION_CRITERIA: Check empty, constants, fractional fixed expressions, relational equalities, nonconstant bounded/unbounded images and unchanged false outputs.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frequency1.cc; tests/Polyhedron/querydimensioncontracts1.cc.
-
1. Saturation subsumption planning and paired deletion UID: PPL-SPEC-001724 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For the nonline/non-equality rows reaching the independence-planning phase of Polyhedron::simplify, each saturation bit row shall encode that source row's non-saturating counterparts. Planning shall retain the subset-minimal bit sets, retaining the lowest original planning index among exact duplicates. Incomparable sets, including equal-cardinality sets, shall remain distinct. A proper subset is a strict redundancy witness for its superset.
Deletion shall keep source rows, bit rows and cached saturation counts paired through every swap-last removal. Retained geometric rows shall be their original paired values; no order beyond the required basis layout is promised. Zero or one surviving nonbasis row shall be admitted. The caller shall supply valid common dimensions, topology and exact arithmetic under the ordinary simplify prerequisites. Arbitrary bit masks in the relation-level fixture verify planning and pairing; they do not by themselves constitute a valid dual geometric representation.
RATIONALE: Removing subsumed saturation groups requires row/mask alignment and deterministic handling of duplicates.
INTERFACE: The independence-planning phase of Polyhedron::simplify and its relation-level test access.
VERIFICATION_CRITERIA: Check duplicate groups, incomparable equal-cardinality sets, strict subset chains, rotated original indices, descending removal and a phase reached with no surviving nonbasis rows.
SOURCE: src/Polyhedron_simplify_templates.hh; tests/Polyhedron/saturationgroups1.cc.
-
Incoming link from: 2. C generated domain observations1
1. Selected-coordinate integer-point existence UID: PPL-SPEC-001670 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
STATEMENT: A successfully completed contains_integer_point(integer_dimensions) shall return true exactly when the entry polyhedron contains a point whose selected coordinates are integers. Other coordinates shall remain real, and excluded NNC boundaries shall not be introduced. Empty selection shall test nonemptiness; selecting all coordinates shall have the existing 🔗 5. Exact integer-point existence in polyhedra meaning.
A selected index outside the ambient dimension shall raise std::invalid_argument before querying or normalizing the receiver. The represented value shall be preserved; logically const constraint extraction may normalize caches under 🔗 2. Equivalent borrowed polyhedral descriptions. If a required mixed feasibility encoding exceeds the MIP dimension limit, std::length_error shall be raised under 🔗 1. Exact strict mixed-integer feasibility. When the query uses the mixed-integer solver, the equality divisibility and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
RATIONALE: For x = 0, y = 1 ⁄ 2, selecting only x admits the point, while requiring both coordinates to be integral does not. The all-coordinate case can reuse the established integer-point algorithm; proper subsets use exact mixed feasibility with the original boundary conditions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
bool Polyhedron::contains_integer_point( const Variables_Set& integer_dimensions) const;
VERIFICATION_CRITERIA: Check rational singleton enumeration, strict integer-empty intervals with feasible unselected real coordinates, all/empty masks, empty/universe and zero dimensions, both topologies, pending constraints and generators, reload, source-value preservation and rejected indices.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_public.cc; tests/Polyhedron/selectedinteger1.cc.
-
Incoming links from: 2. Polyhedron internal status flag queries and transitions 2. Polyhedron internal status flag queries and transitions 3. Polyhedron internal status consistency predicate 4. Polyhedron internal status signed-keyword export 5. Polyhedron internal status signed-keyword loading and rejection5
1. Polyhedron internal status value ownership and prerequisites UID: PPL-SPEC-001602 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: The nested Status shall own a finite set of named Boolean flags: empty, c_up_to_date, g_up_to_date, c_minimized, g_minimized, sat_c_up_to_date, sat_g_up_to_date, c_pending, g_pending. test_zero_dim_univ() shall recognize the zero flag word; that word shall be the default state. It shall be an encoding predicate, not an independent query of the owning object's dimension or numerical payload. The owning object shall supply that context and establish the truth of its cache claims.
Copy construction and assignment shall preserve all stored flags in an independent value. Assignment shall return its target and admit self-assignment. Mutating or destroying one copy shall not change another. Destruction shall release the status value without destroying an owning domain or its payload. These value operations shall admit any vector of the declared flags, including transient inconsistent combinations used while updating a representation.
Status-only operations shall require live objects and synchronized access against mutation, but no numerical-library/thread initialization or coefficient constant stage. Their selected streams shall remain live. They shall not inspect domain coordinates, reconstruct numerical descriptions or perform coefficient arithmetic. A domain shall use a consistent status whose claims agree with its representation; the local check of 🔗 3. Polyhedron internal status consistency predicate alone shall not certify those numerical facts.
RATIONALE: Cached facts need an independent value and an explicit distinction between status-bit consistency and the truth of claims about a numerical object.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
Status(); Status(const Status&); Status& operator=(const Status&); ~Status();
VERIFICATION_CRITERIA: Check default/copy/assignment, self-assignment, independent mutation and source destruction over every declared flag vector. Use status-only tests without a numerical initialization owner; inspect payload independence.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
2. Polyhedron internal status flag queries and transitions UID: PPL-SPEC-001603 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a declared mask m and current flag word F, the private test_all(m) shall return (F&m) = m, and test_any(m) shall return (F&m) ≠ 0. The empty mask shall therefore match all and match no individual bit. set(m) shall replace F by F|m; reset(m) shall clear exactly the selected bits. Masks shall contain only the declared flags. Tests shall preserve state.
Each named test_* shall return its stored bit, except the zero-word predicate of 🔗 1. Polyhedron internal status value ownership and prerequisites. set_zero_dim_univ() shall clear all flags. reset_zero_dim_univ() shall replace zero by the empty-only state and preserve every nonzero state. set_empty() shall replace the entire word by the empty-only state; reset_empty() shall clear only the empty bit. Other named setters/resets shall set/clear only the indicated bit, subject to no additional flag dependencies enforced by these individual updates.
Updates shall not generally reconcile other assertions. Transient inconsistent vectors shall remain available to 🔗 3. Polyhedron internal status consistency predicate, but shall not be installed as valid domain state. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
RATIONALE: Representation algorithms need exact local cache updates without implicit numerical recomputation or unrelated changes to known facts.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool test_zero_dim_univ() const; void set_zero_dim_univ(); void reset_zero_dim_univ(); bool test_empty() const; void set_empty(); void reset_empty(); bool test_c_up_to_date() const; void set_c_up_to_date(); void reset_c_up_to_date(); bool test_g_up_to_date() const; void set_g_up_to_date(); void reset_g_up_to_date(); bool test_c_minimized() const; void set_c_minimized(); void reset_c_minimized(); bool test_g_minimized() const; void set_g_minimized(); void reset_g_minimized(); bool test_sat_c_up_to_date() const; void set_sat_c_up_to_date(); void reset_sat_c_up_to_date(); bool test_sat_g_up_to_date() const; void set_sat_g_up_to_date(); void reset_sat_g_up_to_date(); bool test_c_pending() const; void set_c_pending(); void reset_c_pending(); bool test_g_pending() const; void set_g_pending(); void reset_g_pending(); // Private primitives; flags_t is the declared unsigned flag-word type. bool test_all(flags_t mask) const; bool test_any(flags_t mask) const; void set(flags_t mask); void reset(flags_t mask);
VERIFICATION_CRITERIA: Compare all flag words and declared masks against independent set algebra. Check every named update and query, both zero-reset cases, whole-word empty replacement, and independent copies.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
3. Polyhedron internal status consistency predicate UID: PPL-SPEC-001604 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: Let E, C, G, MC, MG, SC, SG, PC, PG denote respectively empty, current constraints, current generators, minimized constraints, minimized generators, the two current saturation matrices, pending constraints and pending generators. OK() shall return true exactly for the following consistent combinations of the declared flags:
- The zero word and the empty-only word shall be consistent.
- Empty shall exclude every other flag.
- MC ⇒ C and MG ⇒ G.
- (SC∨SG) ⇒ (C∧G).
- ¬(PC∧PG).
- (PC∨PG) ⇒ (MC∧MG∧(SC∨SG)).
These rules shall admit 28 flag words, including zero.
The result shall be the same with and without assertions. Invalid combinations shall return false; assertion builds shall also write a diagnostic to the current std::cerr. Valid combinations shall not emit that diagnostic. The query shall preserve the flag word. Stream failures shall follow ordinary stream rules. This local predicate shall not inspect the domain payload or certify its ambient dimension, feasibility or cached numerical facts. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
RATIONALE: Cache assertions have logical dependencies. Checking their finite Boolean model must remain distinct from checking the numerical representation.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool OK() const;
VERIFICATION_CRITERIA: Enumerate every flag vector against an independent propositional oracle; check accepted-state counts, source preservation and diagnostic presence in assertion/release builds. Inspect payload independence.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
4. Polyhedron internal status signed-keyword export UID: PPL-SPEC-001605 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: ascii_dump(stream) shall write signed keywords in the order ZE EM CM GM CS GS CP GP SC SG. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate ZE/EM, CM/GM, CS/GS, CP/GP and SC/SG; two spaces shall separate the successive pairs. The record shall end with one trailing space. The exact separators shall follow the default stream formatting; caller-selected width/fill/alignment shall retain ordinary character/string insertion behavior.
Export shall preserve the stored flags, including transient inconsistent vectors, without reconciling claims or inspecting numerical payload. Partial output, state flags and exceptions shall follow the selected stream. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
ascii_dump() shall send the same record to std::cerr. print() shall write No user level output operator defined for class Polyhedron::Status. followed by a flushed newline to std::cerr.
RATIONALE: Serialized cache claims and diagnostics must retain the actual flag state without triggering domain normalization.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
void ascii_dump(std::ostream& stream) const; void ascii_dump() const; void print() const;
VERIFICATION_CRITERIA: Check exact field signs/order/separators over every flag word, stream formatting and source preservation. Exercise returning/throwing output failures and the declared stderr routes, including their flush behavior.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
Incoming link from: 1. Reloadable polyhedral ASCII descriptions1
5. Polyhedron internal status signed-keyword loading and rejection UID: PPL-SPEC-001606 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Polyhedron internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.
For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Polyhedron internal status consistency predicate. A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.
The loader shall reset its word to zero before reading the first field. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 1. Reloadable polyhedral ASCII descriptions.
RATIONALE: The redundant zero marker and the remaining flags must describe one status. Local inconsistency is a recoverable parse rejection in every build mode.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool ascii_load(std::istream& stream); // Internal helper, in its defining translation unit or implementation namespace: bool get_field(std::istream& stream, const char* keyword, bool& positive);
VERIFICATION_CRITERIA: Enumerate all flag/ZE pairs against the propositional oracle and preserve all canonical valid records. Load every valid source over every consistent prior state and retain a suffix token. Reject every malformed/truncated field position; exercise width/whitespace settings, returning failures, input exceptions and output preservation of the translation-unit-local parser by inspection. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
Incoming links from: 1. Two-coordinate full-rank equality projection 2. Bounded coupled two-coordinate pair projection 3. Exact one-dimensional continuous LP projection 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. Bounded exact projection from current constraints 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Exact equality-pivot elimination 2. Bounded exact coupled constraint projection 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral envelope from entry constraint descriptions 3. Exact support queries for polyhedral approximations 6. Weak join with exact directional bounds and NNC attainment 1. Exact Minkowski sum of polyhedra 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid77
1. Polyhedral values, coefficient profile and valid use UID: PPL-SPEC-001316 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: C_Polyhedron shall represent a rational topologically closed convex polyhedron in Rn. NNC_Polyhedron shall additionally admit excluded boundary points. A constraint description shall denote its conjunction of affine equalities and admitted non-strict or strict inequalities. An NNC generator description shall denote sums of real line directions, nonnegative ray directions and convex combinations of points and closure points, with strictly positive total weight on included points. The empty generator system shall denote empty. A nonempty generator system shall contain an included point. Coordinates shall be real even when all stored coefficients are integral.
coefficient_type shall be the configured Coefficient. Every intermediate coefficient operation shall meet that profile's range and resource conditions. In bounded profiles, double-description conversion shall evaluate incidence products and complete row combinations exactly, cancel each new geometric row's common positive factor, and then admit its stored coefficients. Unreduced products need not fit the coefficient profile; a primitive row that does not fit may raise the profile's arithmetic exception. This projective normalization shall preserve the complete augmented row, including NNC epsilon coordinates, and shall not rescale integer-lattice periods. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors and streams shall remain live and valid for their uses. Output objects shall be independently writable and shall not alias one another or input storage unless an operation explicitly permits that aliasing.
Independent objects shall own independent values. Uses that can change caches shall be externally synchronized against other uses of the same object. Unsuccessful construction shall release acquired resources. Supported numerical and resource exceptions may propagate; an existing object's surviving ownership shall permit destruction, without a general rollback or further-query guarantee.
RATIONALE: An included point carries membership information that an excluded closure point cannot supply. Coefficient storage does not change the real coordinate carrier.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
class C_Polyhedron : public Polyhedron {}; class NNC_Polyhedron : public Polyhedron {}; // Inherited public type: typedef Coefficient coefficient_type;
VERIFICATION_CRITERIA: Check literal closed and half-open sets, fractional points, rays, lines, zero-dimensional empty/universe, independent ownership and both representation directions. Inspect initialization, coefficient admission and exception cleanup.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: tests/recyclingconstructors1.cc; src/Exact_Arithmetic.hh; src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/nncminimize1.cc; tests/polyhedronvaluesspec1.cc; tests/descriptorequalityspec1.cc.
-
2. Dimensioned empty and universe polyhedra UID: PPL-SPEC-001317 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from n and kind shall create exactly EMPTY or UNIVERSE in dimension n. Default construction shall create the zero-dimensional universe, containing the unique empty tuple. Empty shall contain no point in every dimension. max_space_dimension() shall report the structural limit; an oversized or reserved dimension shall throw std::length_error before allocation proportional to that dimension. The structural limit shall not promise resource availability for every smaller request.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Dimension is part of the value even for empty sets. Structural rejection must precede extent-dependent storage.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); explicit NNC_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); static dimension_type max_space_dimension();
VERIFICATION_CRITERIA: Check defaults, both kinds in zero and positive dimensions, reserved/oversized dimensions and failed-construction ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/maxspacedim1.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
3. Owned polyhedron copying, assignment and exchange UID: PPL-SPEC-001318 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Same-type copying and assignment shall preserve the source value, ambient dimension and topology while giving the target independent ownership. Assignment shall return its receiver by reference, support self-assignment and permit a change in dimension. The copy-constructor complexity argument shall not change its exactness. Destruction shall release owned resources without throwing. m_swap and swap shall exchange complete values, dimensions and cached representations of topology-compatible objects, including self-exchange. Topology-incompatible exchange shall throw std::invalid_argument before exchange. Cross-topology assignment shall follow 🔗 7. Closed and NNC value conversion.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Value copying and exchange must transfer all authoritative descriptions and pending state consistently.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
C_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); NNC_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const C_Polyhedron&); NNC_Polyhedron& operator=(const NNC_Polyhedron&); ~C_Polyhedron(); ~NNC_Polyhedron(); void m_swap(Polyhedron&); void swap(Polyhedron&, Polyhedron&);
VERIFICATION_CRITERIA: Exercise independent later mutations, dimensions, empty/universe, pending constraints/generators, self-assignment/exchange and topology rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/exceptions1.cc; tests/Polyhedron/exceptions2.cc; tests/Polyhedron/systemidentity1.cc; tests/polyhedronvaluesspec1.cc.
-
4. Polyhedron construction from constraints UID: PPL-SPEC-001319 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a constraint system shall inherit its ambient dimension and represent exactly its conjunction. NNC construction shall preserve strict boundaries. Closed construction shall reject every strict inequality with std::invalid_argument, even if redundant; NNC-encoded non-strict rows shall be accepted without changing their meaning. Empty conjunction shall denote universe. Contradictory conjunction shall denote empty. The const-input form shall preserve its external source. The non-const rvalue form may consume source storage; on either return its source need only remain safely destructible. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Constraint construction is conjunction, with topology admission independent of whether a strict row happens to be redundant.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Constraint_System&); C_Polyhedron(Constraint_System&&); explicit NNC_Polyhedron(const Constraint_System&); NNC_Polyhedron(Constraint_System&&);
VERIFICATION_CRITERIA: Check strict/non-strict/equality rows, redundancy, contradictions, embedded dimensions, const-source preservation, recycled ownership and dimension/topology rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
5. Polyhedron construction from generators UID: PPL-SPEC-001320 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a generator system shall inherit its ambient dimension and denote its generator interpretation in 🔗 1. Polyhedral values, coefficient profile and valid use. An empty system shall create empty. A nonempty system without an included point shall throw std::invalid_argument. Closed construction shall reject closure points, including redundant ones; NNC construction shall retain their excluded boundary meaning. Const-input construction shall preserve its external source. Recycling may consume source storage, which need only remain destructible on return. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Points establish nonemptiness; line and ray directions or closure points alone do not establish an included point.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Generator_System&); C_Polyhedron(Generator_System&&); explicit NNC_Polyhedron(const Generator_System&); NNC_Polyhedron(Generator_System&&);
VERIFICATION_CRITERIA: Check point order, closure-only and direction-only rejection, fractional points, real lines, nonnegative rays, zero dimensions and recycled/const ownership.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background)
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
6. Polyhedron construction from representable congruences UID: PPL-SPEC-001321 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Nontrivial periodic restrictions are generally not convex; the recycling capability describes available storage reuse rather than a semantic distinction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Congruence_System&); explicit NNC_Polyhedron(const Congruence_System&); static bool can_recycle_constraint_systems(); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Check equalities, constant congruences, proper periodic rejection, source preservation, zero dimensions, structural limits and both capability values.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion UID: PPL-SPEC-001322 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed targets cannot retain excluded boundary points, whereas NNC targets can represent every closed polyhedron unchanged.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const NNC_Polyhedron&); NNC_Polyhedron& operator=(const C_Polyhedron&);
VERIFICATION_CRITERIA: Check open and half-open intervals, empty inconsistent strict systems, singletons, free coordinates, source preservation and assignments across dimensions.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/topclosure1.cc; tests/polyhedronvaluesspec1.cc.
-
8. Polyhedron conversion from boxes UID: PPL-SPEC-001323 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite rational interval bounds translate to axis-aligned affine constraints; closing the target changes only endpoint inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Interval> explicit C_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit NNC_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check empty, zero-dimensional, finite/infinite and open/closed endpoint combinations, selected interval profiles and structural bounds.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombox1.cc; tests/Polyhedron/frombox2.cc; tests/polyhedronvaluesspec1.cc.
-
9. Polyhedron conversion from difference and octagonal shapes UID: PPL-SPEC-001324 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a bounded-difference or octagonal shape shall preserve the source's real pointset and ambient dimension exactly in either topology. Every represented finite bound shall retain its coefficient-profile value; unbounded entries shall add no constraint. The complexity argument shall not change precision. Structural dimension overflow shall throw std::length_error. Source values shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Both source constraint classes are representable by ordinary closed rational polyhedra.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename U> explicit C_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit C_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check independent relational constraints, latent empty and zero dimensions, bounded/infinite profiles, selected arithmetic admission and source preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombdshape1.cc; tests/Polyhedron/fromoctagonalshape1.cc; tests/polyhedronvaluesspec1.cc.
-
10. Polyhedral affine hull of a rational grid UID: PPL-SPEC-001325 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a grid shall preserve dimension and return empty for an empty source; otherwise it shall return the exact affine hull of the source, with all periodic restrictions removed and all affine equalities preserved. Both target topologies shall represent the same closed affine space. The complexity argument shall not reduce this guarantee. Source value shall be preserved, and structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The convex hull of a nonempty rational grid is its affine hull: unrestricted integer parameter multiples fill their real spans under convexification.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check periodic sets, non-axis affine equalities, line directions, fractional phases, latent inconsistent congruences, zero dimensions and source preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/fromgrid1.cc; tests/polyhedronvaluesspec1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001338 Polyhedral constraint addition and refinement (Specified by)
- PPL-SPEC-001340 Polyhedral generator insertion (Specified by)
- PPL-SPEC-001373 Reloadable polyhedral ASCII descriptions (Specified by)
- PPL-SPEC-001375 Polyhedron representation invariant query (Specified by)
- PPL-SPEC-001327 Equivalent borrowed polyhedral descriptions (Specified by)
- PPL-SPEC-001328 Polyhedral equality-congruence extraction (Specified by)
- PPL-SPEC-001602 Polyhedron internal status value ownership and prerequisites (Specified by)
- PPL-SPEC-001603 Polyhedron internal status flag queries and transitions (Specified by)
- PPL-SPEC-001604 Polyhedron internal status consistency predicate (Specified by)
- PPL-SPEC-001605 Polyhedron internal status signed-keyword export (Specified by)
- PPL-SPEC-001606 Polyhedron internal status signed-keyword loading and rejection (Specified by)
- PPL-SPEC-001316 Polyhedral values, coefficient profile and valid use (Specified by)
- PPL-SPEC-001317 Dimensioned empty and universe polyhedra (Specified by)
- PPL-SPEC-001319 Polyhedron construction from constraints (Specified by)
- PPL-SPEC-001320 Polyhedron construction from generators (Specified by)
- PPL-SPEC-001322 Closed and NNC value conversion (Specified by)
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a successfully represented rational polyhedron, conversion between its constraint description and its generator description shall preserve the represented set, including emptiness, affine equalities and excluded boundary points.
Users may select either description; their geometric meaning must remain independent of which representation is currently materialized or minimized.
Verification covers polyhedral constraint/generator conversion and representation access. Related obligations: 🔗 3. Preservation by representation-only changes, 🔗 4. Sound conversion between numerical abstractions.
Derive small constraint and generator descriptions independently and check equality after conversion in both directions. Include redundant descriptors, lower-dimensional sets, unbounded directions and nonincluded closure points.
BagnaraHZ05FAC | whole work (background)
doc/definitions.dox: Constraint Description; Generator Description; Rational Polyhedra. src/Polyhedron_defs.hh: constraint and generator representations. src/Polyhedron_conversion_templates.hh: representation conversion.
-
1. Polyhedral constraint addition and refinement UID: PPL-SPEC-001338 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The rvalue add_constraints overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Adding an admitted constraint or system shall compute its exact conjunction with the receiver. Closed addition shall reject strict rows with std::invalid_argument; NNC addition shall preserve their strictness. Refinement shall use the same conjunction for admitted topology-compatible rows. In a closed receiver, refinement by a strict inequality may relax it to the corresponding non-strict inequality; a false constant shall still yield empty. Trailing free dimensions shall be retained. Excess descriptor dimension shall throw std::invalid_argument. External const input shall be preserved. Recycled input may be consumed and need only remain safely destructible on return. Pending descriptions shall retain all previously added restrictions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed polyhedra can conservatively relax a strict boundary during refinement, while exact addition must reject unrepresentable topology.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void add_constraints(Constraint_System&&); void add_recycled_constraints(Constraint_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Check pending and minimized histories, contradictions, strict topology admission/relaxation, zero dimensions, borrowed descriptor inputs and recycled ownership. Check strict zero contradictions separately from ordinary strict relaxation, with padded and unpadded dense/sparse rows, zero and positive dimensions, processed/pending histories, both refinement APIs and unchanged const inputs.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addconstraint1.cc; tests/Polyhedron/addconstraints1.cc; tests/Polyhedron/addconstraints2.cc; tests/Polyhedron/refinewithconstraint1.cc; tests/Polyhedron/refinewithconstraints1.cc; tests/Polyhedron/recycledsystems1.cc. src/Constraint_System.cc; tests/systembulktransferspec1.cc.
-
3. Polyhedral generator insertion UID: PPL-SPEC-001340 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The rvalue add_generators overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Generator insertion shall extend the receiver's generator description with the supplied generators and denote that combined description exactly. Inserting points shall form their polyhedral hull with the receiver; rays and lines shall extend recession directions and NNC closure points shall extend closure support without themselves acquiring membership. Empty input shall be a no-op. If the receiver is empty, a nonempty insertion shall contain an included point or throw std::invalid_argument. Closed receivers shall reject closure points; excess descriptor dimension shall be rejected, both by std::invalid_argument. Const external sources shall retain their values. Recycling may consume storage; its source need only remain destructible.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Generator addition changes the hull or recession cone rather than intersecting the pointset.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_generator(const Generator&); void add_generators(const Generator_System&); void add_generators(Generator_System&&); void add_recycled_generators(Generator_System&);
VERIFICATION_CRITERIA: Check latent empty receivers, all generator kinds, points supplied after directions, fractional coordinates, borrowed rows/systems, topology rejection and recycle ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addgenerator1.cc; tests/Polyhedron/addgenerator2.cc; tests/Polyhedron/addgenerators1.cc; tests/Polyhedron/addgenerators2.cc; tests/Polyhedron/recycledsystems1.cc; tests/systembulktransferspec1.cc.
-
Incoming link from: 5. Polyhedron internal status signed-keyword loading and rejection1
1. Reloadable polyhedral ASCII descriptions UID: PPL-SPEC-001373 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: ascii_dump shall write a reloadable description including ambient dimension, topology, authoritative and pending descriptions, status and saturation data, without changing the receiver's represented set. ascii_load of a complete valid description of the receiver's topology shall restore that same set and dimension, independently of its previous value and cache history. A successful load shall leave a valid representation of the receiver's concrete topology. Invalid syntax, dimensions or topology, and descriptor rows or systems that violate their own invariants, shall return false without relying on debug assertions. Loading is specified for trusted records written by ascii_dump with a compatible build. The consistency of the descriptions with one another and with the status flags is validated by the available invariant checks. Altered records can pass those checks. Failure may leave a partially replaced receiver whose ownership permits destruction. Rollback and further queries shall not be assumed. The description headers shall agree with the status flags. A current saturation matrix shall match the processed row counts before its entries are retained. Obsolete saturation data shall be read without being restored to the loaded representation. print() and ascii_dump() shall write the corresponding representations to standard error. Human-readable pointset output shall not promise a reloadable format or stable descriptor order.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 4. Polyhedron internal status signed-keyword export.
The internal status contract shall follow 🔗 5. Polyhedron internal status signed-keyword loading and rejection.
RATIONALE: Reloadable representation data carry authoritative status and topology; successful loading cannot leave those claims inconsistent with the concrete value type.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void ascii_dump(std::ostream&) const; bool ascii_load(std::istream&); void print() const; void ascii_dump() const; namespace IO_Operators { std::ostream& operator<<(std::ostream&, const Polyhedron&); }
VERIFICATION_CRITERIA: Round-trip literal values with pending/alternate caches, empty/zero dimensions and both topologies. Reject truncated, cross-topology and structurally inconsistent records in assertion and optimized builds. Check stream identity, external stream failures and failed-load destruction.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/ascii_dump_load1.cc; tests/Polyhedron/ascii_dump_load2.cc; tests/Polyhedron/ascii_dump_load3.cc; tests/Polyhedron/loadstatus1.cc; tests/Polyhedron/writepolyhedron1.cc; tests/Polyhedron/writepolyhedron2.cc; src/Ph_Status.cc; tests/polyhedronpersistencespec1.cc.
-
3. Polyhedron representation invariant query UID: PPL-SPEC-001375 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: OK(false) shall recognize admitted owned representations whose constraint/generator topologies, dimensions, status, pending boundaries and current saturation data meet the representation invariants. Current representations shall agree on the represented set, and descriptions declared minimal shall satisfy the corresponding redundancy conditions. OK(true) shall additionally require nonemptiness. A latent inconsistent constraint description may satisfy the structural query without having its empty status materialized. The query may use independent temporary normalization and may allocate or propagate supported failures; it shall preserve the receiver's value. Diagnostic wording shall not be a stable interface. The receiver's storage shall already be live and destructible; this query shall not be a validator for arbitrary corrupted addresses.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 3. Polyhedron internal status consistency predicate.
RATIONALE: Status and saturation shortcuts are safe only when their representation claims hold; checking owned structures is distinct from dereferencing arbitrary untrusted pointers.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool OK(bool check_not_empty=false) const;
VERIFICATION_CRITERIA: Check valid pending/cache histories and independently constructed owned counterexamples for status, topology, dimensions, saturation shape and incompatible dual descriptions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/loadstatus1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/systemidentity1.cc; src/Ph_Status.cc; tests/polyhedronpersistencespec1.cc.
-
Incoming links from: 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Nonnegative polyhedral time elapse 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid67
2. Equivalent borrowed polyhedral descriptions UID: PPL-SPEC-001327 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Borrowed-description accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned descriptions shall not extend the receiver's lifetime.
Constraint and generator accessors shall return receiver-owned const views whose descriptions denote exactly the receiver, including pending changes, latent emptiness, equalities and excluded NNC boundaries. Minimized accessors shall additionally remove redundant visible descriptors; they shall not promise a particular row order, coefficient scale or unique minimal representation.
A returned view, its iterators, rows and coefficient references shall be used only while the receiver lives and before an operation replaces or normalizes that representation. Logically const access to the opposite representation may invalidate them. Inputs explicitly permitted to borrow receiver coefficients shall be consumed according to the operation's entry-value contract before such invalidation. External copied descriptions shall own independent values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Dual descriptions and pending rows are storage choices; their materialization must not change the set or boundary membership.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
const Constraint_System& constraints() const &; const Constraint_System& minimized_constraints() const &; const Generator_System& generators() const &; const Generator_System& minimized_generators() const &;
VERIFICATION_CRITERIA: Round-trip independent constraint/generator descriptions, pending histories, redundant rows, closure-point supports and empty/zero-dimensional states. Check independent copied views and valid borrowing intervals.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc; tests/Polyhedron/minconstraints2.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/mingenerators1.cc; tests/Polyhedron/mingenerators2.cc; tests/Polyhedron/systemidentity1.cc.
-
3. Polyhedral equality-congruence extraction UID: PPL-SPEC-001328 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: congruences() shall return an independently owned system of equality congruences satisfied by every receiver point. minimized_congruences() shall return a nonredundant equality system defining exactly the receiver's affine hull, or an inconsistent system for empty. A nonminimized extraction need not expose equalities implied only by inequalities. Dimension shall be retained; proper periodic congruences shall not be introduced.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Only affine equalities constrain the affine hull of a convex polyhedron; periodic rows would add a distinct discrete restriction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Check implicit equalities, redundancy, empty/universe, NNC facets and independent extracted-system ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/congruences1.cc.
-
Incoming links from: 2. Polyhedron internal status flag queries and transitions 2. Polyhedron internal status flag queries and transitions 3. Polyhedron internal status consistency predicate 4. Polyhedron internal status signed-keyword export 5. Polyhedron internal status signed-keyword loading and rejection5
1. Polyhedron internal status value ownership and prerequisites UID: PPL-SPEC-001602 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: The nested Status shall own a finite set of named Boolean flags: empty, c_up_to_date, g_up_to_date, c_minimized, g_minimized, sat_c_up_to_date, sat_g_up_to_date, c_pending, g_pending. test_zero_dim_univ() shall recognize the zero flag word; that word shall be the default state. It shall be an encoding predicate, not an independent query of the owning object's dimension or numerical payload. The owning object shall supply that context and establish the truth of its cache claims.
Copy construction and assignment shall preserve all stored flags in an independent value. Assignment shall return its target and admit self-assignment. Mutating or destroying one copy shall not change another. Destruction shall release the status value without destroying an owning domain or its payload. These value operations shall admit any vector of the declared flags, including transient inconsistent combinations used while updating a representation.
Status-only operations shall require live objects and synchronized access against mutation, but no numerical-library/thread initialization or coefficient constant stage. Their selected streams shall remain live. They shall not inspect domain coordinates, reconstruct numerical descriptions or perform coefficient arithmetic. A domain shall use a consistent status whose claims agree with its representation; the local check of 🔗 3. Polyhedron internal status consistency predicate alone shall not certify those numerical facts.
RATIONALE: Cached facts need an independent value and an explicit distinction between status-bit consistency and the truth of claims about a numerical object.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
Status(); Status(const Status&); Status& operator=(const Status&); ~Status();
VERIFICATION_CRITERIA: Check default/copy/assignment, self-assignment, independent mutation and source destruction over every declared flag vector. Use status-only tests without a numerical initialization owner; inspect payload independence.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
2. Polyhedron internal status flag queries and transitions UID: PPL-SPEC-001603 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a declared mask m and current flag word F, the private test_all(m) shall return (F&m) = m, and test_any(m) shall return (F&m) ≠ 0. The empty mask shall therefore match all and match no individual bit. set(m) shall replace F by F|m; reset(m) shall clear exactly the selected bits. Masks shall contain only the declared flags. Tests shall preserve state.
Each named test_* shall return its stored bit, except the zero-word predicate of 🔗 1. Polyhedron internal status value ownership and prerequisites. set_zero_dim_univ() shall clear all flags. reset_zero_dim_univ() shall replace zero by the empty-only state and preserve every nonzero state. set_empty() shall replace the entire word by the empty-only state; reset_empty() shall clear only the empty bit. Other named setters/resets shall set/clear only the indicated bit, subject to no additional flag dependencies enforced by these individual updates.
Updates shall not generally reconcile other assertions. Transient inconsistent vectors shall remain available to 🔗 3. Polyhedron internal status consistency predicate, but shall not be installed as valid domain state. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
RATIONALE: Representation algorithms need exact local cache updates without implicit numerical recomputation or unrelated changes to known facts.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool test_zero_dim_univ() const; void set_zero_dim_univ(); void reset_zero_dim_univ(); bool test_empty() const; void set_empty(); void reset_empty(); bool test_c_up_to_date() const; void set_c_up_to_date(); void reset_c_up_to_date(); bool test_g_up_to_date() const; void set_g_up_to_date(); void reset_g_up_to_date(); bool test_c_minimized() const; void set_c_minimized(); void reset_c_minimized(); bool test_g_minimized() const; void set_g_minimized(); void reset_g_minimized(); bool test_sat_c_up_to_date() const; void set_sat_c_up_to_date(); void reset_sat_c_up_to_date(); bool test_sat_g_up_to_date() const; void set_sat_g_up_to_date(); void reset_sat_g_up_to_date(); bool test_c_pending() const; void set_c_pending(); void reset_c_pending(); bool test_g_pending() const; void set_g_pending(); void reset_g_pending(); // Private primitives; flags_t is the declared unsigned flag-word type. bool test_all(flags_t mask) const; bool test_any(flags_t mask) const; void set(flags_t mask); void reset(flags_t mask);
VERIFICATION_CRITERIA: Compare all flag words and declared masks against independent set algebra. Check every named update and query, both zero-reset cases, whole-word empty replacement, and independent copies.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
3. Polyhedron internal status consistency predicate UID: PPL-SPEC-001604 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: Let E, C, G, MC, MG, SC, SG, PC, PG denote respectively empty, current constraints, current generators, minimized constraints, minimized generators, the two current saturation matrices, pending constraints and pending generators. OK() shall return true exactly for the following consistent combinations of the declared flags:
- The zero word and the empty-only word shall be consistent.
- Empty shall exclude every other flag.
- MC ⇒ C and MG ⇒ G.
- (SC∨SG) ⇒ (C∧G).
- ¬(PC∧PG).
- (PC∨PG) ⇒ (MC∧MG∧(SC∨SG)).
These rules shall admit 28 flag words, including zero.
The result shall be the same with and without assertions. Invalid combinations shall return false; assertion builds shall also write a diagnostic to the current std::cerr. Valid combinations shall not emit that diagnostic. The query shall preserve the flag word. Stream failures shall follow ordinary stream rules. This local predicate shall not inspect the domain payload or certify its ambient dimension, feasibility or cached numerical facts. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
RATIONALE: Cache assertions have logical dependencies. Checking their finite Boolean model must remain distinct from checking the numerical representation.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool OK() const;
VERIFICATION_CRITERIA: Enumerate every flag vector against an independent propositional oracle; check accepted-state counts, source preservation and diagnostic presence in assertion/release builds. Inspect payload independence.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
4. Polyhedron internal status signed-keyword export UID: PPL-SPEC-001605 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: ascii_dump(stream) shall write signed keywords in the order ZE EM CM GM CS GS CP GP SC SG. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate ZE/EM, CM/GM, CS/GS, CP/GP and SC/SG; two spaces shall separate the successive pairs. The record shall end with one trailing space. The exact separators shall follow the default stream formatting; caller-selected width/fill/alignment shall retain ordinary character/string insertion behavior.
Export shall preserve the stored flags, including transient inconsistent vectors, without reconciling claims or inspecting numerical payload. Partial output, state flags and exceptions shall follow the selected stream. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply.
ascii_dump() shall send the same record to std::cerr. print() shall write No user level output operator defined for class Polyhedron::Status. followed by a flushed newline to std::cerr.
RATIONALE: Serialized cache claims and diagnostics must retain the actual flag state without triggering domain normalization.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
void ascii_dump(std::ostream& stream) const; void ascii_dump() const; void print() const;
VERIFICATION_CRITERIA: Check exact field signs/order/separators over every flag word, stream formatting and source preservation. Exercise returning/throwing output failures and the declared stderr routes, including their flush behavior.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
Incoming link from: 1. Reloadable polyhedral ASCII descriptions1
5. Polyhedron internal status signed-keyword loading and rejection UID: PPL-SPEC-001606 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Polyhedron internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.
For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Polyhedron internal status consistency predicate. A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.
The loader shall reset its word to zero before reading the first field. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 1. Reloadable polyhedral ASCII descriptions.
RATIONALE: The redundant zero marker and the remaining flags must describe one status. Local inconsistency is a recoverable parse rejection in every build mode.
INTERFACE: Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.
bool ascii_load(std::istream& stream); // Internal helper, in its defining translation unit or implementation namespace: bool get_field(std::istream& stream, const char* keyword, bool& positive);
VERIFICATION_CRITERIA: Enumerate all flag/ZE pairs against the propositional oracle and preserve all canonical valid records. Load every valid source over every consistent prior state and retain a suffix token. Reject every malformed/truncated field position; exercise width/whitespace settings, returning failures, input exceptions and output preservation of the translation-unit-local parser by inspection. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders.
SOURCE: src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.
-
Incoming links from: 1. Two-coordinate full-rank equality projection 2. Bounded coupled two-coordinate pair projection 3. Exact one-dimensional continuous LP projection 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. Bounded exact projection from current constraints 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Exact equality-pivot elimination 2. Bounded exact coupled constraint projection 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral envelope from entry constraint descriptions 3. Exact support queries for polyhedral approximations 6. Weak join with exact directional bounds and NNC attainment 1. Exact Minkowski sum of polyhedra 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid77
1. Polyhedral values, coefficient profile and valid use UID: PPL-SPEC-001316 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: C_Polyhedron shall represent a rational topologically closed convex polyhedron in Rn. NNC_Polyhedron shall additionally admit excluded boundary points. A constraint description shall denote its conjunction of affine equalities and admitted non-strict or strict inequalities. An NNC generator description shall denote sums of real line directions, nonnegative ray directions and convex combinations of points and closure points, with strictly positive total weight on included points. The empty generator system shall denote empty. A nonempty generator system shall contain an included point. Coordinates shall be real even when all stored coefficients are integral.
coefficient_type shall be the configured Coefficient. Every intermediate coefficient operation shall meet that profile's range and resource conditions. In bounded profiles, double-description conversion shall evaluate incidence products and complete row combinations exactly, cancel each new geometric row's common positive factor, and then admit its stored coefficients. Unreduced products need not fit the coefficient profile; a primitive row that does not fit may raise the profile's arithmetic exception. This projective normalization shall preserve the complete augmented row, including NNC epsilon coordinates, and shall not rescale integer-lattice periods. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors and streams shall remain live and valid for their uses. Output objects shall be independently writable and shall not alias one another or input storage unless an operation explicitly permits that aliasing.
Independent objects shall own independent values. Uses that can change caches shall be externally synchronized against other uses of the same object. Unsuccessful construction shall release acquired resources. Supported numerical and resource exceptions may propagate; an existing object's surviving ownership shall permit destruction, without a general rollback or further-query guarantee.
RATIONALE: An included point carries membership information that an excluded closure point cannot supply. Coefficient storage does not change the real coordinate carrier.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
class C_Polyhedron : public Polyhedron {}; class NNC_Polyhedron : public Polyhedron {}; // Inherited public type: typedef Coefficient coefficient_type;
VERIFICATION_CRITERIA: Check literal closed and half-open sets, fractional points, rays, lines, zero-dimensional empty/universe, independent ownership and both representation directions. Inspect initialization, coefficient admission and exception cleanup.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background) BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: tests/recyclingconstructors1.cc; src/Exact_Arithmetic.hh; src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/nncminimize1.cc; tests/polyhedronvaluesspec1.cc; tests/descriptorequalityspec1.cc.
-
2. Dimensioned empty and universe polyhedra UID: PPL-SPEC-001317 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from n and kind shall create exactly EMPTY or UNIVERSE in dimension n. Default construction shall create the zero-dimensional universe, containing the unique empty tuple. Empty shall contain no point in every dimension. max_space_dimension() shall report the structural limit; an oversized or reserved dimension shall throw std::length_error before allocation proportional to that dimension. The structural limit shall not promise resource availability for every smaller request.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Dimension is part of the value even for empty sets. Structural rejection must precede extent-dependent storage.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); explicit NNC_Polyhedron(dimension_type n=0, Degenerate_Element kind=UNIVERSE); static dimension_type max_space_dimension();
VERIFICATION_CRITERIA: Check defaults, both kinds in zero and positive dimensions, reserved/oversized dimensions and failed-construction ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/maxspacedim1.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
4. Polyhedron construction from constraints UID: PPL-SPEC-001319 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a constraint system shall inherit its ambient dimension and represent exactly its conjunction. NNC construction shall preserve strict boundaries. Closed construction shall reject every strict inequality with std::invalid_argument, even if redundant; NNC-encoded non-strict rows shall be accepted without changing their meaning. Empty conjunction shall denote universe. Contradictory conjunction shall denote empty. The const-input form shall preserve its external source. The non-const rvalue form may consume source storage; on either return its source need only remain safely destructible. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Constraint construction is conjunction, with topology admission independent of whether a strict row happens to be redundant.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Constraint_System&); C_Polyhedron(Constraint_System&&); explicit NNC_Polyhedron(const Constraint_System&); NNC_Polyhedron(Constraint_System&&);
VERIFICATION_CRITERIA: Check strict/non-strict/equality rows, redundancy, contradictions, embedded dimensions, const-source preservation, recycled ownership and dimension/topology rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
5. Polyhedron construction from generators UID: PPL-SPEC-001320 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a generator system shall inherit its ambient dimension and denote its generator interpretation in 🔗 1. Polyhedral values, coefficient profile and valid use. An empty system shall create empty. A nonempty system without an included point shall throw std::invalid_argument. Closed construction shall reject closure points, including redundant ones; NNC construction shall retain their excluded boundary meaning. Const-input construction shall preserve its external source. Recycling may consume source storage, which need only remain destructible on return. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Points establish nonemptiness; line and ray directions or closure points alone do not establish an included point.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Generator_System&); C_Polyhedron(Generator_System&&); explicit NNC_Polyhedron(const Generator_System&); NNC_Polyhedron(Generator_System&&);
VERIFICATION_CRITERIA: Check point order, closure-only and direction-only rejection, fractional points, real lines, nonnegative rays, zero dimensions and recycled/const ownership.
BIBLIOGRAPHY: BagnaraHZ05FAC | whole work (background)
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generators1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion UID: PPL-SPEC-001322 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed targets cannot retain excluded boundary points, whereas NNC targets can represent every closed polyhedron unchanged.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const NNC_Polyhedron&); NNC_Polyhedron& operator=(const C_Polyhedron&);
VERIFICATION_CRITERIA: Check open and half-open intervals, empty inconsistent strict systems, singletons, free coordinates, source preservation and assignments across dimensions.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/topclosure1.cc; tests/polyhedronvaluesspec1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for dimension- and topology-compatible polyhedra, a successful intersection shall denote their set intersection and a successful convex polyhedral hull shall denote the least polyhedron of that topology containing both input sets.
These are the meet and join operations of the selected polyhedral domain. The hull is not generally the set-theoretic union.
Verification covers polyhedral intersection and hull operations. Related obligations: 🔗 8. Abstract set-difference semantics.
Compare intersections with combined independent constraints. Establish candidate hulls from independent geometric arguments and check containment and minimality on finite examples, including disjoint inputs, lower-dimensional inputs and nonclosed boundaries.
doc/definitions.dox: Intersection and Convex Polyhedral Hull. src/Polyhedron_defs.hh: intersection and upper-bound contracts.
-
4. Exact polyhedral intersection UID: PPL-SPEC-001341 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000033 Polyhedral intersection and hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal dimensions and compatible topologies, intersection shall replace the receiver by its exact intersection with the operand, including strict NNC boundaries. Self-intersection shall preserve the value. Empty shall be absorbing and universe neutral. Incompatible dimensions or topologies shall throw std::invalid_argument before mutation. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Conjoining both systems of constraints is the meet of the selected polyhedral domain.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void intersection_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Compare against independently combined literal constraints, boundary-only contacts, latent emptiness, self aliasing, pending caches and mismatch rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/intersection1.cc.
-
5. Polyhedral hull and exact-union recognition UID: PPL-SPEC-001342 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000033 Polyhedral intersection and hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Hull assignment shall return the least polyhedron of the receiver's topology containing both operands; upper_bound_assign shall be equivalent. The closed hull may add limiting boundary points that the convex hull excludes. The same-type *_if_exact variants shall return true and assign the hull exactly when the set union is already representable as one polyhedron of that topology. On false they shall preserve the receiver's set. Dimension/topology mismatches shall throw std::invalid_argument. A distinct operand shall retain its value; self-hull shall preserve the receiver.
Ordinary hull assignment shall leave the existing caches intact for a self join or for operands that have matching complete current descriptions of the same kind. Matching shall compare ordered stored rows and the pending boundary. A current description is complete when the opposite description has no pending rows.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Convexification can fill gaps and topology can add limits; exact-union recognition must distinguish both effects.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void poly_hull_assign(const Polyhedron&); void upper_bound_assign(const Polyhedron&); // Same-type members, for both concrete polyhedron classes: bool poly_hull_assign_if_exact(const C_Polyhedron&); bool upper_bound_assign_if_exact(const C_Polyhedron&); bool poly_hull_assign_if_exact(const NNC_Polyhedron&); bool upper_bound_assign_if_exact(const NNC_Polyhedron&);
VERIFICATION_CRITERIA: Check overlapping, disjoint and facet-touching sets, open and closed boundary contacts, nonclosed convex hull examples, false-result preservation and self aliasing. Compare stored descriptions after joins with copies in both topologies. Check that different pending constraints or generators still take part in hull computation when the opposite cached descriptions agree.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.2 (polyhedral hull); Sections 3.1–3.2, Theorems 3.2 and 3.6 (exact-union recognition).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/polyhull1.cc; tests/Polyhedron/polyhull2.cc; tests/Polyhedron/polyhullifexact1.cc; tests/Polyhedron/polyhullifexact2.cc; tests/Polyhedron/facetcontacthulls1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001685 Two-coordinate full-rank equality projection (Specified by)
- PPL-SPEC-001686 Bounded coupled two-coordinate pair projection (Specified by)
- PPL-SPEC-001687 Exact one-dimensional continuous LP projection (Specified by)
- PPL-SPEC-001346 Exact rational polyhedral image (Specified by)
- PPL-SPEC-001347 Exact rational polyhedral preimage (Specified by)
- PPL-SPEC-001683 Exact equality-pivot elimination (Specified by)
- PPL-SPEC-001684 Bounded exact coupled constraint projection (Specified by)
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a valid deterministic rational affine transformation, successful polyhedral image and inverse-image operations shall denote, respectively, the exact image and exact inverse image of the input polyhedron under that transformation. Removing selected real coordinates shall compute their exact existential projection, retaining the order of the surviving coordinates and the closed or NNC topology.
Assignments and backward analysis require a precise distinction between transporting states forward and selecting their preimages.
Verification covers polyhedral affine-image and inverse-image operations, retaining this exactness requirement. Related obligations: 🔗 6. Sound affine forward and backward transfers.
Derive transformed constraints or generators independently for invertible maps, projections, constant assignments and maps preserving lower-dimensional sets. Include strict boundaries and every supported coefficient configuration in which the calculation completes. For coordinate removal, compare independent constraint and generator routes on coupled affine equalities, including nonunit signed coefficients, noncontiguous selections, redundant or inconsistent rows and open boundaries. Include coupled residual one-sided coordinates following equality substitution and fallback cases with opposite signs. Include full-rank cyclic equality systems and rank-deficient fallback cases. Include coupled inequality elimination with every strictness combination and independently bounded work. Compare eligible closed one-coordinate projections with independent continuous optimization, including finite, unbounded and infeasible outcomes.
doc/definitions.dox: Images and Preimages of Affine Transfer Relations; Single-Update Affine Functions. src/Polyhedron_defs.hh: affine image and preimage contracts.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
1. Two-coordinate full-rank equality projection UID: PPL-SPEC-001685 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: A nonzero determinant makes the two equations uniquely determine the two selected coordinates for every retained assignment. Eliminating one coordinate leaves a nonzero coefficient for the other in an independent equation. Positive equality substitution preserves every weak or strict relation and yields the exact existential projection. Each pass removes one pivot, so no pair generation or row growth is needed.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal and independently materialized generator projections through the public API. Cover both pivot signs, nonunit coefficients, independent and dependent cycles, row order, additional inequalities/equalities, strict boundaries, constants, absent columns and noncontiguous coordinates. Check exact rejection state and zero C++ allocation before copying. Exercise owned-row allocation failures, profile selection, cache histories and reload.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
2. Bounded coupled two-coordinate pair projection UID: PPL-SPEC-001686 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: Pairwise lower/upper compatibility is necessary and sufficient for a real coordinate to exist. A strict bound requires strict compatibility in its pair. Positive gcd-reduced combinations preserve these conditions exactly. Their remaining-column signs equal the preflight signs, since division by a positive gcd does not change a sign. Removing tautologies only decreases the predicted counts, proving the second pass's work bounds.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_pair_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare all open/closed input-pair combinations with literal projections and an independent generator route. Cover both signs, zero columns, gcd reduction, tautologies, constant false rows, coupled and noncontiguous coordinates, one-sided passes, exact pair/row limits and conservative rejection. Check unchanged rejection state, zero C++ allocation on rejected preflight and allocation failures after acceptance. Include both matrix layouts and every admitted coefficient profile, preserving the generator fallback elsewhere.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
3. Exact one-dimensional continuous LP projection UID: PPL-SPEC-001687 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: A linear image of a convex set on the real line is an interval. For a nonempty rational polyhedron described by weak inequalities, each finite linear-programming extremum is attained. Its exact lower and upper extrema therefore determine the entire closed interval, including singletons, half-lines and the whole line. Two continuous solves can avoid constructing all original generators. Reusing the model avoids rebuilding its constraints and feasible basis, and textbook pricing avoids floating-point weight work.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_interval_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare public projections with literal closed intervals and an independent generator route. Cover finite rational endpoints, one/both unbounded sides, empty sets, singletons, lower-dimensional descriptions and different surviving indices. Check dimension, row-count, selection and relation rejection, closed dispatch versus NNC fallback, exact pricing and both storage layouts. Verify rejection state, zero C++ allocation on rejection, reload, cache histories and allocation failures. Include an interrupted solve, destruction of the failed receiver and a successful retry on an independent copy of the original input, under the common resource contract.
BIBLIOGRAPHY: Meyer74 | Abstract (existence of finite optima with rational constraint coefficients). Williams86 | Sections on elimination and Fourier's method (exact real projection).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming links from: 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage2
1. Exact rational polyhedral image UID: PPL-SPEC-001346 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {F(x) ∣ x ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
2. Exact rational polyhedral preimage UID: PPL-SPEC-001347 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {x ∣ F(x) ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc; src/Constraint_System.cc.
-
1. Exact equality-pivot elimination UID: PPL-SPEC-001683 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With GMP coefficients, project_constraint_equality(rows, v, pivot) shall require owned valid rows of one ambient dimension, an in-range pivot index, an equality at that index and a nonzero pivot coefficient of v. For the pivot E = ax + r = 0 and another row C = bx + s▹0, a nonzero b shall be cancelled by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E, where g = gcd(|a|, |b|). The relation kind shall be retained. Rows with zero coefficient shall be transferred unchanged; tautological results shall be omitted. The pivot shall be removed, every remaining coefficient of v shall be zero, and the result shall represent the exact existential elimination of that coordinate. Row count shall not increase.
The row vector shall retain its ambient coordinate numbering; physical coordinate compaction belongs to its caller. Temporaries shall own their data. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use without a rollback guarantee for this scratch vector. The receiver shall not be modified by scratch-vector failures before the caller's completed-result replacement.
RATIONALE: The multiplier of the original relation is positive, so equality, weak and strict inequality meanings are preserved. On the pivot equality, subtracting its multiple preserves equivalence. The pivot determines the eliminated coordinate uniquely from every assignment satisfying the substituted rows; existential elimination is therefore exact. Dividing cancellation factors by their positive gcd reduces coefficient growth.
INTERFACE: File-local helper in the unnamed namespace of src/Polyhedron_chdims.cc.
void project_constraint_equality(std::vector<Constraint>& rows, Variable v, size_t pivot);
VERIFICATION_CRITERIA: Through public coordinate removal and the production projection selector, exercise both pivot signs, unit and nonunit coefficients, all relation kinds, gcd reduction, unchanged rows, tautological and contradictory results. Compare literal projections and an independently materialized generator route. Exercise allocation failures and verify valid receiver state.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
2. Bounded exact coupled constraint projection UID: PPL-SPEC-001684 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_coupled_equality_projection(vars) shall require an unmarked receiver with current constraints, no pending generators, ambient dimension at least five, at most 64 stored rows and a nonempty in-range selection. It shall attempt the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and relative coordinate order. With bounded coefficients it shall reject. With GMP coefficients, selections above four coordinates shall delegate to 🔗 3. Exact one-dimensional continuous LP projection only for necessarily closed receivers, returning its result; other such selections shall reject.
For each equality record the support on selected coordinates in bounded stack metadata. Repeatedly select an equality whose support on remaining selected coordinates is exactly one coordinate, record that coordinate, and remove it from the remaining set. When peeling stops, inspect remaining selected coordinates in ascending order. If an equality has nonzero support on the coordinate being inspected, delegate to 🔗 1. Two-coordinate full-rank equality projection and return its result. Otherwise opposite signs shall delegate to 🔗 2. Bounded coupled two-coordinate pair projection and return its result. The structural planner itself uses only support/sign queries; the delegated preflights may use exact coefficient algebra. Absent selected columns shall impose no restriction.
After an admissible plan is found, copy the owned rows. For each planned coordinate choose an equality with nonzero coefficient and zero coefficients on all later planned and residual selected coordinates, preferring coefficient 1 or − 1, and apply 🔗 1. Exact equality-pivot elimination. Such a pivot shall exist. After substitution discard rows involving any residual selected coordinate. Compact the retained rows, preserve their relations, and replace the receiver only by swapping in a completed same-topology polyhedron. On this structural equality/one-sided path, at most four substitution passes shall occur and row count shall not exceed its input bound. Delegated paths shall obey their respective contracts and work bounds. A false result shall preserve every receiver field and shall allocate no C++ storage. The delegated rank and sign preflights may perform GMP coefficient algebra before returning false. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use, without strengthening its guarantees to the false-result preservation guarantee.
RATIONALE: A leaf pivot has zero coefficients on every other remaining selected coordinate. Substitution consequently multiplies those coefficients by a positive nonzero factor, preserving their supports. The static support plan remains valid, later pivots remain available and no pairwise row generation is necessary. Every pivot removes one row and possibly tautologies, bounding the work without building a generator description.
A residual coordinate has no equality coefficient and a globally consistent inequality sign. A chosen pivot has zero residual coefficients, so every substitution preserves those signs. For each assignment of retained coordinates satisfying unaffected rows, send all residual variables far enough in their permitted directions. Every row involving them then grows positively, also satisfying strict inequalities. Dropping these rows is therefore exact even with several coupled residual coordinates.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_coupled_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal results and an independent generator route on closed and NNC systems. Cover reversed elimination order, selected support patterns, signed/unit/nonunit pivots, redundant or inconsistent rows, noncontiguous dimensions, one through four selected coordinates and exact limits. Check singular-cycle, large-selection and bounded-profile rejection, complete unchanged ASCII state and zero C++ allocation on rejection. Exercise public cache histories, reload, random systems and allocation failures.
Cover no, partial and complete equality plans, positive/negative and absent residual columns, coupled residual strict and weak rows, and rejection of remaining equalities or opposite-sign inequalities. Independently verify their mathematical projections and unchanged state on every rejection.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001365 H79 polyhedral widening (Specified by)
- PPL-SPEC-001366 BHRZ03 polyhedral widening (Specified by)
- PPL-SPEC-001367 Limited H79 polyhedral extrapolation (Specified by)
- PPL-SPEC-001368 Bounded H79 polyhedral extrapolation (Specified by)
- PPL-SPEC-001369 Limited BHRZ03 polyhedral extrapolation (Specified by)
- PPL-SPEC-001370 Bounded BHRZ03 polyhedral extrapolation (Specified by)
- PPL-SPEC-001371 H79 convergence certificate values and comparisons (Specified by)
- PPL-SPEC-001372 BHRZ03 convergence certificate values and comparisons (Specified by)
PPL shall provide widening facilities for its supported polyhedral domains. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall contain its input polyhedra and shall stabilize its prescribed iteration on ascending sequences satisfying the stated inclusion and finite-delay conditions.
Improved precision and finite delay must preserve the convergence purpose of widening.
Verification covers polyhedral widening operations, algorithm selection and convergence preconditions. Related obligations: 🔗 6. Compound extrapolation and finite convergence.
Check inclusion at each step of independently described ascending sequences and review the mathematical convergence argument for each advertised algorithm. Include finite delayed iterations, changes of redundant representation and lower-dimensional sequences.
BagnaraHRZ05SCP | whole work (background)
doc/definitions.dox: Widening Operators; Widening with Tokens. src/Polyhedron_defs.hh: widening contracts. src/Polyhedron_widenings.cc: supported widening algorithms.
-
Incoming links from: 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation2
1. H79 polyhedral widening UID: PPL-SPEC-001365 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the standard widening of the cited Definition 1, including representation-independent handling of redundant rows. widening_assign shall select this H79 operation. For NNC operands the named algorithm shall operate on compatible closed epsilon representations built from closure facets and maximal excluded faces. The represented result shall be independent of the operand cache history.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite limited growth permits precision improvements without losing the termination purpose of widening. NNC epsilon inclusion must hold for the internal closed-set argument.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void H79_widening_assign(const Polyhedron&, unsigned* tokens=nullptr); void widening_assign(const Polyhedron&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check both input inclusions, delayed strict chains, empty/zero dimensions, representation redundancy, the named algorithm on independent closed examples and NNC epsilon compatibility.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 3, Definition 1; Section 5, Definition 18 and Theorem 19; Section 6, widening delay and tokens.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/h79widening1.cc; tests/Polyhedron/h79widening2.cc; tests/Polyhedron/bhrz03widening1.cc; tests/Polyhedron/bhrz03widening2.cc; tests/Polyhedron/bhrz03widening3.cc; src/Polyhedron_widenings.cc.
-
Incoming links from: 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation2
2. BHRZ03 polyhedral widening UID: PPL-SPEC-001366 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the improved widening of the cited Definition 18: it shall preserve certified limited-growth steps, otherwise combine the specified constraint/point/ray improvements under the standard widening bound. For NNC operands it shall use the same normalized epsilon representations as H79 for its standard widening bound. Its result shall be at least as precise as H79 on the same admitted pair in either topology.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite limited growth permits precision improvements without losing the termination purpose of widening. NNC epsilon inclusion must hold for the internal closed-set argument.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void BHRZ03_widening_assign(const Polyhedron&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check both input inclusions, delayed strict chains, empty/zero dimensions, representation redundancy, the named algorithm on independent closed examples and NNC epsilon compatibility.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 3, Definition 1; Section 5, Definition 18 and Theorem 19; Section 6, widening delay and tokens.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/h79widening1.cc; tests/Polyhedron/h79widening2.cc; tests/Polyhedron/bhrz03widening1.cc; tests/Polyhedron/bhrz03widening2.cc; tests/Polyhedron/bhrz03widening3.cc; src/Polyhedron_widenings.cc.
-
3. Limited H79 polyhedral extrapolation UID: PPL-SPEC-001367 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void limited_H79_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/limitedh79extrapolation1.cc; src/Polyhedron_widenings.cc.
-
4. Bounded H79 polyhedral extrapolation UID: PPL-SPEC-001368 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_H79_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedh79extrapolation1.cc; src/Polyhedron_widenings.cc.
-
5. Limited BHRZ03 polyhedral extrapolation UID: PPL-SPEC-001369 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void limited_BHRZ03_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/limitedbhrz03extrapolation1.cc; src/Polyhedron_widenings.cc.
-
6. Bounded BHRZ03 polyhedral extrapolation UID: PPL-SPEC-001370 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Admitted limiting constraints retain soundness, while convergence needs control over which constraints can reappear. The box widening supplies a separate coordinate-bound approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_BHRZ03_extrapolation_assign( const Polyhedron&, const Constraint_System&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check selected/rejected limiters, empty limiter correspondence, both inclusions, token counts, fixed-limit ascending chains, bound directions and dimension/topology rejection.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, base widening definitions (background for limiting adaptation).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedbhrz03extrapolation1.cc; src/Polyhedron_widenings.cc.
-
7. H79 convergence certificate values and comparisons UID: PPL-SPEC-001371 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty polyhedron, H79_Certificate shall record its affine dimension and number of nonredundant visible constraints, excluding internal positivity and epsilon bounds. The default certificate shall describe the zero-dimensional universe. Copying and assignment shall preserve the recorded value. Certificate comparison shall order the pair lexicographically, returning only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a containing nonempty same-dimensional polyhedron shall return 1 for increasing affine dimension, or at equal affine dimension for decreasing constraint count; -1 for increasing count and 0 for equal components. Zero shall not imply pointset equality. Generic non-polyhedron inputs shall be admitted only when their constraint descriptions can be converted to a closed polyhedron without strict inequalities. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 widening of P by Q , then H79_Certificate(P).compare(R) shall return 1. The NNC case shall reconcile epsilon representations before strong constraint minimization and saturation matching, as established in doc/definitions.dox (user-manual section NNC_Widening_Certificates). Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Certificate ordering and certified growth have different orientations; neither equality of components nor a negative growth result decides set inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of H79_Certificate.
H79_Certificate(); H79_Certificate(const Polyhedron&); template <typename PH, typename = void> requires (!std::is_convertible_v<const PH&, const Polyhedron&>) H79_Certificate(const PH&); H79_Certificate(const H79_Certificate&); H79_Certificate& operator=(const H79_Certificate&); ~H79_Certificate(); int compare(const H79_Certificate&) const; int compare(const Polyhedron&) const; template <typename PH> requires (!std::is_convertible_v<const PH&, const Polyhedron&>) int compare(const PH&) const; struct Compare { bool operator()(const H79_Certificate&, const H79_Certificate&) const; };
VERIFICATION_CRITERIA: Independently count ranks and facets, check default/copy/assignment, both comparison orientations, containing sets with equal components and generic closed conversion. Check NNC strip statistics across strict/closed endpoints, equivalent generator descriptions and alternating cache histories; these samples shall not be presented as a proof for NNC widening. Inspect doc/definitions.dox (user-manual section NNC_Widening_Certificates) and check tokenless widening progress on excluded faces and differing epsilon slopes.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, limited-growth compatibility and component orderings.
SOURCE: src/H79_Certificate_defs.hh; src/H79_Certificate_inlines.hh; src/H79_Certificate.cc; tests/certificatelifecycles1.cc.
-
8. BHRZ03 convergence certificate values and comparisons UID: PPL-SPEC-001372 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty polyhedron, BHRZ03_Certificate shall record affine dimension, lineality dimension, nonredundant visible constraint count, point or closure-point count, and for each possible number of zero coordinates the count of nonredundant rays with that many zero coordinates. Default shall describe zero-dimensional universe. Copying shall preserve the recorded value. Certificate comparison shall order these components lexicographically and return only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a same-dimensional nonempty containing polyhedron shall return 1 for growth certified stabilizing by the cited component ordering, 0 when the examined components agree and -1 otherwise. Increased affine/lineality dimension is stabilizing; at equal earlier dimensions a decrease of constraint, point or lexicographically examined ray counts is stabilizing. An increase in a later examined count may return -1 for a valid containing pair. Zero shall not establish set equality. is_stabilizing shall mean comparison is positive; OK shall test structural consistency of the stored component ranges. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 or BHRZ03 widening of P by Q , then BHRZ03_Certificate(P).compare(R) shall return 1. The NNC H79 selection path, including the BHRZ03 last resort, shall reconcile epsilon representations before strong constraint minimization and saturation matching. doc/definitions.dox (user-manual section NNC_Widening_Certificates) establishes this extension of the cited closed-polyhedron compatibility argument. Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Limited growth is a sufficient convergence argument, rather than a restatement of containment. Ray-coordinate counts distinguish later components without asserting geometric equality.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of BHRZ03_Certificate.
BHRZ03_Certificate(); BHRZ03_Certificate(const Polyhedron&); BHRZ03_Certificate(const BHRZ03_Certificate&); int compare(const BHRZ03_Certificate&) const; int compare(const Polyhedron&) const; bool is_stabilizing(const Polyhedron&) const; bool OK() const; struct Compare { bool operator()(const BHRZ03_Certificate&, const BHRZ03_Certificate&) const; };
VERIFICATION_CRITERIA: Count components independently for flats, simplices, pyramids/prisms and rays; check negative containing comparisons, default/copy, total-order consistency and stabilizing predicates. Check NNC point/closure-point counts and strict inclusions with equal tuples across equivalent representations and cache histories. Inspect the NNC compatibility argument and epsilon preparation separately; test tokenless widening progress across strict facets, excluded lower-dimensional faces and cache histories.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 5, Definitions 10–11, Proposition 12 and Theorem 19.
SOURCE: src/BHRZ03_Certificate_defs.hh; src/BHRZ03_Certificate_inlines.hh; src/BHRZ03_Certificate.cc; tests/Polyhedron/bhrz03widening3.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, the C++ polyhedral facility shall provide exact Minkowski addition for dimension- and topology-compatible polyhedra. The completed result shall denote the set of sums of one state from each entry operand, preserving the receiver's ambient dimension and topology and the boundary-membership meaning of not-necessarily-closed operands. Empty shall be absorbing.
Adding independently varying state sets is needed to combine displacements, disturbances and numerical effects. The operation differs from convex hull and from multiplying a rate by an arbitrary nonnegative duration. Excluded boundaries remain semantically significant.
Derive literal sums of closed, open and half-open intervals, lower-dimensional sets, rational points and unbounded polyhedra. Compare with an independent Cartesian-product, linear-image and projection construction where the coefficient profile admits that construction. Check commutativity, self-addition, empty and zero-dimensional operands, and preservation of a distinct source. Exercise each supported coefficient profile under its intermediate-range preconditions.
Fukuda04JSC | Whole work (background on Minkowski addition of convex polytopes). BagnaraHZ10CGTA | Sections 2.1–2.3, Definition 2.2 (closed and NNC generator semantics).
doc/definitions.dox: Minkowski sum definition and Minkowski Addition.
-
Incoming link from: 4. C generated domain transformations1
1. Exact Minkowski sum of polyhedra UID: PPL-SPEC-001664 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000447 Exact polyhedral Minkowski addition (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry operands P, Q ⊆ Rn, minkowski_sum_assign(y) shall replace the receiver by exactly P + Q = {p + q ∣ p ∈ P, q ∈ Q}. Ambient dimension and the receiver's closed or NNC topology shall be preserved. Empty in either operand shall yield empty; two nonempty zero-dimensional operands shall yield the zero-dimensional universe. Dimensions and topologies shall agree, otherwise std::invalid_argument shall be thrown before changing the represented value of the receiver. Self-aliasing shall use the entry operand twice. A distinct operand shall preserve its represented value.
Excluded NNC boundaries shall retain their membership meaning. The represented result shall be independent of whether constraints or generators were initially materialized. No particular redundant or minimized description is required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may preserve the mathematical value while changing its materialized representations. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: Taking the Cartesian product and mapping (p, q) ↦ p + q establishes exactness independently of the storage route. In generator form, a finite pair is an included point exactly when both contributing generators are included points, and is a closure point otherwise. Products of the operands' convex weights construct the finite pair sums. Positive total weight on included points in each input gives positive total weight on included point–point pairs. Conversely, the marginal weights of a valid output combination are valid input combinations. Ray cones and line spans add by retaining their generating directions. This proves the NNC construction as well as the closed case. Convexity gives P + P = 2P for self-addition. Using the least common denominator and combining only coordinate slots avoids unnecessary denominator products and temporary inhomogeneous sums.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. This public Polyhedron member is inherited by C_Polyhedron and NNC_Polyhedron.
void minkowski_sum_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal endpoint sums and endpoint inclusion for closed, open and half-open scalar sets. Cover rational points with equal and unequal divisors, including a checked-int8 case whose least common denominator fits while the unreduced product does not. Compare boxes, triangles, deterministic point clouds, lower-dimensional and unbounded sets with the public Cartesian-product reference where admitted. Check both operand orders, self-addition, pending constraints and generators, sorted and unsorted NNC systems, borrowed source views after completion, invalid dimensions and topologies, reload, empty and zero-dimensional inputs. Validate checked-overflow reporting and temporary ownership under the common failure contract.
BIBLIOGRAPHY: Fukuda04JSC | Whole work (background on Minkowski addition and vertex representations). BagnaraHZ10CGTA | Sections 2.1–2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: doc/definitions.dox: Minkowski Addition; src/Polyhedron_defs.hh; src/Polyhedron_public.cc; tests/Polyhedron/minkowskisum1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, the C++ closed-polyhedron facility shall provide the HPW01 extrapolation of two dimension-compatible operands. The result shall contain both operands and retain precisely the affine equalities and supporting facet inequalities of their closed hull whose boundary meets the first operand. Empty shall be neutral. The operation shall not imply stabilization of an iteration.
Facet contact retains bounds supported by previously reached states while removing boundaries reached only by the new states. This extrapolation has a different mathematical purpose from a widening with a convergence guarantee.
Derive literal facet-contact results for bounded, unbounded and lower-dimensional sets; compare generator saturation with independent boundary intersections. Exercise empty and zero-dimensional operands, self-aliasing, source preservation, representation histories and incompatible dimensions.
HenzingerPW01 | Section 3.3 (extrapolation construction).
-
Incoming link from: 4. C generated domain transformations1
1. HPW01 closed-polyhedron extrapolation UID: PPL-SPEC-001665 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For nonempty entry receiver P and operand Q in Rn, HPW01_extrapolation_assign(y) shall replace the receiver by the intersection of the affine-hull equalities of H = clconv(P∪Q) and exactly those facet halfspaces of H whose boundary intersects P. The result shall contain H and preserve ambient dimension and closed topology.
Empty in either operand shall be neutral. Self-aliasing shall use the entry operand twice and preserve its set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering with HH95 extrapolation shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: For a facet valid on P, its slack on points and recession rays is nonnegative and its homogeneous slack on lines is zero. Its boundary meets P exactly when a finite point generator has zero slack. Testing these products implements the boundary-intersection definition without solving one feasibility problem per facet. Equalities remain valid on both operands.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void HPW01_extrapolation_assign(const C_Polyhedron& y);
VERIFICATION_CRITERIA: Compare with public-API boundary intersections and independently known literal results. Include nonsimple and lower-dimensional hulls, rays, lines, rational vertices, changing affine hulls, pending constraints/generators, reloads, empty and zero-dimensional cases, self-aliasing and argument validation. Exhibit a strictly ascending extrapolation sequence and the nested-square precision-ordering counterexample.
BIBLIOGRAPHY: HenzingerPW01 | Section 3.3 (operator definition).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/hpw01extrapolation1.cc; doc/definitions.dox.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, the C++ closed-polyhedron facility shall provide a bounded pass of Chvatal cuts from pairs of inequalities, following the existing all-coordinate integer-point tightening. The result shall remain inside the entry set and retain every entry point integral in all coordinates. Zero budget shall perform the existing tightening alone; exact integer hull computation shall not be implied.
Combining inequalities can establish integer bounds that separate-row tightening cannot infer. A caller-selected pair budget limits the additional search for such bounds.
Compare integer membership by independent bounded enumeration and derive cuts analytically, including negative odd constants. Check a triangle on which the pass strictly improves existing tightening, exhausted and zero budgets, equality rows, empty and unbounded inputs, repeated calls and coefficient-profile prerequisites.
Chvatal73DM | Whole work (background on Chvatal cutting planes). NemhauserW88 | Whole work (integer-programming background).
-
Incoming link from: 4. C generated domain transformations1
1. Bounded Chvatal half-pair refinement UID: PPL-SPEC-001666 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000449 Bounded Chvatal half-pair refinement (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
STATEMENT: refine_with_chvatal_cuts(max_pair_tests) shall first perform the existing all-coordinate drop_some_non_integer_points() with its default complexity. For a nonempty result and positive budget, it shall inspect at most max_pair_tests distinct unordered pairs of nonstrict inequalities from that result's minimized constraint description, in nested iterator order. Equalities shall not consume the pair budget. All pairs shall refer to that entry description; cuts shall be applied together after pair examination, without iterating the cutting pass.
For a pair ax + b ≥ 0, cx + d ≥ 0, it shall add ((a + c) ⁄ 2)x + ⌊(b + d) ⁄ 2⌋ ≥ 0 when the summed normal is componentwise even and the summed constant is odd. Pairs with an even constant or any odd summed normal coordinate shall add no cut. Ambient dimension and closed topology shall be preserved. The result shall be a subset of the entry set and contain every entry point in Zn.
Zero budget shall perform only the existing tightening. Empty shall remain empty. The budget shall bound pair examination, not minimization or conversion work. A finite budget may produce different refinements for different minimized-row orders; no exact integer hull or representation-independent budgeted result shall be promised.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: Adding two valid inequalities and dividing by two gives ((a + c) ⁄ 2)x + (b + d) ⁄ 2 ≥ 0. If the normal is integral, its value at x ∈ Zn is an integer, so flooring the constant retains every integer solution. An even constant gives an already implied real inequality; an odd normal does not justify this rounding. The triangle x ≥ 0, y ≥ 0, x + y ≤ 1, − x + y ≤ 0 yields y ≤ 0 from the last two inequalities, excluding (1 ⁄ 2, 1 ⁄ 2) retained by separate-row tightening. New cuts need not describe the complete integer hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void refine_with_chvatal_cuts(dimension_type max_pair_tests);
VERIFICATION_CRITERIA: Derive literal cuts and independently enumerate integer witnesses in translated/reflected triangles. Compare the examined prefix with a public-API pair oracle, including negative-odd floor, odd-normal/even-constant rejection, equality rows, exact budget exhaustion, zero budget, empty, zero-dimensional, affine and unbounded cases. Check no enlargement, reload and repeated refinement.
BIBLIOGRAPHY: Chvatal73DM | Whole work (Chvatal cutting-plane background). NemhauserW88 | Whole work (integer-programming background).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/chvatalcuts1.cc; doc/definitions.dox.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, the C++ closed-polyhedron facility shall provide HH95 edge extrapolation of dimension-compatible operands. It shall add to their closed hull the directions from old hull vertices to adjacent new hull vertices, interpreting the construction modulo the hull lineality. Empty shall be neutral. The result shall contain both operands, without implying stabilization or universal precision ordering relative to HPW01.
Adjacent old/new vertices determine candidate continuing directions. Quotienting out lineality gives a well-defined extension when the hull contains lines, while retaining its free directions.
Compare against independent minimal-face dimension tests and literal geometric results. Include nonsimple vertices, affine hulls, unbounded rays and lines, rational vertices, empty/self/zero-dimensional operands, cache histories and dimension rejection.
HenzingerH95 | Extrapolation construction (extreme points, rays and adjacent old/new vertices).
-
Incoming link from: 4. C generated domain transformations1
1. HH95 closed-polyhedron edge extrapolation UID: PPL-SPEC-001667 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For nonempty entry operands P, Q ⊆ Rn, let H = clconv(P∪Q) and let L be its lineality space. In the pointed quotient H ⁄ L, classify a vertex as old exactly when it belongs to (P + L) ⁄ L; classify the remaining vertices as new. HH95_extrapolation_assign(y) shall produce H + cone{v − u ∣ u old, v new, [u, v] an edge of H ⁄ L}, using any lifted representatives. It shall preserve ambient dimension and closed topology and contain both operands.
Empty in either operand shall be neutral. Self-aliasing shall preserve the entry set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering relative to HPW01 shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: For minimized quotient generators, two finite vertices form an edge exactly when their common saturated facets contain no third nonline generator. This minimal-face test handles nonsimple vertices; simply counting incident facets would not suffice. Ignoring hull lines in the test implements the pointed quotient. Adding those same lines to the old operand establishes its quotient membership test. Changing representatives alters a difference only by an element of L, already present in the result. For rational points, GCD-scaled numerator differences give the same ray without multiplying inhomogeneous divisors. The construction contains H by adding rays.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void HH95_extrapolation_assign(const C_Polyhedron& y);
VERIFICATION_CRITERIA: Compare saturation adjacency with public-API minimal-face intersection and affine-dimension tests. Include nonsimple square pyramids, edges and diagonals, unbounded minimal faces, multiple lineality directions, rational vertex pairs, literal lower-dimensional lifts, pending/cache/reload histories, redundant descriptions, self/empty/zero-dimensional values and dimension rejection. Check H79 precision gains and explicit ascending nonstabilizing sequences without asserting a universal HPW01 ordering.
BIBLIOGRAPHY: HenzingerH95 | Extrapolation construction (extreme points, rays and adjacent old/new vertices).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/hh95extrapolation1.cc; doc/definitions.dox.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
The C++ polyhedral facility shall test existence of a represented point integral on a caller-selected coordinate subset, leaving other coordinates real. Under the input and arithmetic preconditions, true shall mean that such a point exists. Empty selection shall mean nonemptiness and selecting all coordinates shall retain the all-coordinate integer-point meaning, including excluded NNC boundaries.
Mixed integer states often constrain only selected program coordinates. Requiring every coordinate to be integral would incorrectly reject valid mixed witnesses.
Independently enumerate rational singleton cases with selected integral coordinates; check open boundaries, empty/universe and zero-dimensional sets, both topologies, cache and pending histories, reload, all/empty selections and invalid indices.
-
Incoming link from: 2. C generated domain observations1
1. Selected-coordinate integer-point existence UID: PPL-SPEC-001670 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
STATEMENT: A successfully completed contains_integer_point(integer_dimensions) shall return true exactly when the entry polyhedron contains a point whose selected coordinates are integers. Other coordinates shall remain real, and excluded NNC boundaries shall not be introduced. Empty selection shall test nonemptiness; selecting all coordinates shall have the existing 🔗 5. Exact integer-point existence in polyhedra meaning.
A selected index outside the ambient dimension shall raise std::invalid_argument before querying or normalizing the receiver. The represented value shall be preserved; logically const constraint extraction may normalize caches under 🔗 2. Equivalent borrowed polyhedral descriptions. If a required mixed feasibility encoding exceeds the MIP dimension limit, std::length_error shall be raised under 🔗 1. Exact strict mixed-integer feasibility. When the query uses the mixed-integer solver, the equality divisibility and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
RATIONALE: For x = 0, y = 1 ⁄ 2, selecting only x admits the point, while requiring both coordinates to be integral does not. The all-coordinate case can reuse the established integer-point algorithm; proper subsets use exact mixed feasibility with the original boundary conditions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
bool Polyhedron::contains_integer_point( const Variables_Set& integer_dimensions) const;
VERIFICATION_CRITERIA: Check rational singleton enumeration, strict integer-empty intervals with feasible unselected real coordinates, all/empty masks, empty/universe and zero dimensions, both topologies, pending constraints and generators, reload, source-value preservation and rejected indices.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_public.cc; tests/Polyhedron/selectedinteger1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001672 Polyhedral envelope from entry constraint descriptions (Specified by)
- PPL-SPEC-001673 Captured inequality candidates for polyhedral approximations (Specified by)
- PPL-SPEC-001674 Exact support queries for polyhedral approximations (Specified by)
- PPL-SPEC-001675 Support backend selection for polyhedral approximations (Specified by)
The C++ polyhedral facility shall provide the envelope of dimension- and topology-compatible polyhedra. Candidates shall be the inequalities in the entry constraint descriptions, with each equality contributing its two opposite inequalities. The result shall be the intersection of the candidates satisfied by both operands, preserving the ambient dimension and topology. No forced minimization of the candidate descriptions shall be required; redundant rows and different materialized descriptions may affect precision. Empty shall be neutral and self-application shall preserve the represented value. Incompatible dimensions or topologies shall be rejected before changing the receiver's represented value.
Successful computed-result guarantees shall assume the interface contracts' initialization, lifetime, synchronization, arithmetic-profile and resource preconditions, including all required intermediate calculations.
Retaining already valid half-spaces provides an enclosing approximation for merging reachable-state descriptions without introducing new directions or moving bounds. The chosen H-descriptions are part of the approximation policy; treating the result as representation independent would obscure that policy.
Software behavior is allocated to interface contracts and verified with independent half-space and geometric models, operation tests and analysis of boundary membership.
Derive literal retained-inequality results for closed and NNC sets, equalities, redundant descriptions, rational points, unbounded sets and empty or zero-dimensional operands. Check strict-bound validity, source-value preservation, self-application and compatibility rejection. Compare generator and LP support evaluation on the same captured candidate descriptions and assess their costs on reachability-merge fixtures.
BemporadFT01 | Section 3 (definition of the envelope of H-polyhedra); Section 4, Algorithm 4.1, steps 1–2. BagnaraHZ10CGTA | Sections 2.1–2.3 (closed and NNC polyhedral semantics).
-
1. Polyhedral envelope from entry constraint descriptions UID: PPL-SPEC-001672 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000454 Constraint-description polyhedral envelope (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: envelope_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q, as obtained by constraints() without an additional minimization request. Each equality shall supply both opposite non-strict inequalities. The completed receiver shall denote exactly the intersection of those candidate inequalities satisfied by both operands. Included or excluded NNC boundaries shall retain their inequality meaning. Ambient dimension and topology shall be preserved.
Descriptions shall be captured before support queries can normalize their caches. Precision may depend on redundant inequalities or the descriptions materialized at entry. No particular minimal output description is required. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
RATIONALE: Every retained half-space contains both entry sets, so their intersection contains the polyhedral hull. Equality splitting permits retention of one valid side when the other side excludes an operand. A candidate description can include additional valid directions through redundant inequalities, which explains its precision dependence.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The member is inherited by C_Polyhedron and NNC_Polyhedron.
void Polyhedron::envelope_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal boxes, points, rays and lines, alternate affine descriptions and a redundant diagonal cut. Check all scalar endpoint-openness combinations both with generator queries and in higher-dimensional LP cylinders. Exercise unknown empty sets, including strict systems whose closure is nonempty; compatibility rejection before empty shortcuts; aliasing, pending descriptions, source-value preservation, reload and assessed allocation failures.
BIBLIOGRAPHY: BemporadFT01 | Section 3, equation (3) (envelope definition); Section 4, Algorithm 4.1, steps 1–2. BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC boundary semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
2. Captured inequality candidates for polyhedral approximations UID: PPL-SPEC-001673 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a valid constraint system, polyhedron_join_inequalities shall return owned candidate rows equivalent to its non-tautological inequalities, replacing each equality by its two opposite non-strict inequalities. Rows equivalent under the normalized constraint ordering shall occur once. The input shall be preserved. The ordering predicate shall agree with the sign of compare(x,y). Capturing the returned rows shall not request polyhedral minimization. Arithmetic-profile conditions shall include constructing both equality orientations.
RATIONALE: Owned snapshots keep candidate selection independent of later cache updates. Opposite inequalities preserve equality meaning while allowing different validity outcomes on the other operand.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
struct Polyhedron_Join_Less { bool operator()(const Constraint& x, const Constraint& y) const; }; using Polyhedron_Join_Rows = std::set<Constraint, Polyhedron_Join_Less>; Polyhedron_Join_Rows polyhedron_join_inequalities(const Constraint_System& cs);
VERIFICATION_CRITERIA: Directly check tautologies, inconsistent constants, equality orientations, strict and non-strict rows, duplicates, ordering and source independence. Check their public envelope effects on descriptions that minimization would otherwise replace.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
3. Exact support queries for polyhedral approximations UID: PPL-SPEC-001674 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000454 Constraint-description polyhedral envelope (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Specifies)
STATEMENT: Polyhedron_Join_Support shall borrow its source polyhedron and own any temporary LP. With generator mode selected, it shall use the existing exact polyhedral queries. Otherwise it shall build and reuse a continuous MIP model of the system obtained by weakening strict inequalities. It shall establish original-set emptiness: an infeasible weakened system is empty; a feasible weakened system with strict rows shall additionally be checked by exact feasibility of the original system.
For a nonempty source and an in-dimension expression, minimum shall return finite == false exactly when the expression is unbounded below. A finite result shall have a positive denominator and its numerator/denominator shall equal the source infimum. For the corresponding finite result, attained shall return true exactly when the original source contains an infimizing point. The LP route shall decide this by feasibility of the original system intersected with the equality face; systems without strict rows shall attain every finite infimum. The presence of strict rows shall be determined once during construction.
includes shall accept a non-strict or strict candidate inequality and return true exactly when every source point satisfies it. Its source shall be nonempty. For a strict row, a zero infimum shall imply validity exactly when that infimum is unattained.
Source objects shall remain alive while queries are issued, and their represented values shall be preserved. The LP route shall borrow an unchanged original description. Generator queries may normalize caches. After the final query, destruction shall release only owned LP state, without querying the borrowed source. Non-finite numerical fields and the LP-side cached attainment field are unspecified. The common conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply.
RATIONALE: For a nonempty finite linear system, weakening strict rows gives its closure: convex combinations with an original feasible point approach every point of the weakened system while satisfying all original strict rows. Infima therefore agree. Original feasibility must be established separately because weakening can turn an empty strict system into a nonempty closed one. Equality-face feasibility exactly characterizes attainment. Changing an LP objective preserves feasibility, so a completed solve is either optimized or downward unbounded.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
struct Polyhedron_Join_Bound { bool finite; Coefficient numerator; Coefficient denominator; bool attained; }; class Polyhedron_Join_Support { public: Polyhedron_Join_Support(const Polyhedron& p, bool use_generators); bool empty() const; Polyhedron_Join_Bound minimum(const Linear_Expression& e); bool attained(const Linear_Expression& e, const Polyhedron_Join_Bound& bound) const; bool includes(const Constraint& c); };
VERIFICATION_CRITERIA: Compare both backends with literal rational infima, attained and unattained boundaries, unbounded expressions and all validity sign cases. Include contradictory closed systems and strict-empty systems with feasible and infeasible closures. Verify temporary ownership, source-value preservation, repeated objective changes and cleanup under assessed allocation failures.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3 (closed and NNC polyhedra and membership).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
4. Support backend selection for polyhedral approximations UID: PPL-SPEC-001675 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a valid polyhedron and the number of captured nontrivial candidate inequalities, use_generator_support_for_join shall return true when the ambient dimension reaches the MIP dimension ceiling, when generators are current with no pending constraints and at most 64 stored generator rows, or when the dimension is at most four and there are at most eight candidates. Otherwise it shall return false. The query shall preserve the object and shall not materialize either representation. The dimension-ceiling route shall avoid an unavailable additional LP slack coordinate.
RATIONALE: Small descriptions and small current generator systems avoid LP setup. Larger H-descriptions avoid vertex enumeration; larger current generator systems avoid repeated long scans. The decision changes cost rather than the bound semantics.
INTERFACE: Private Polyhedron member in src/Polyhedron_defs.hh.
bool use_generator_support_for_join(size_t candidates) const;
VERIFICATION_CRITERIA: Check both sides of the candidate-count, dimension and generator-count thresholds, with pending constraints and current versus stale generators. Review the capacity-boundary route separately where materializing the necessary dimension is not feasible. Compare operation results across backend choices.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
- PPL-SPEC-001673 Captured inequality candidates for polyhedral approximations (Specified by)
- PPL-SPEC-001674 Exact support queries for polyhedral approximations (Specified by)
- PPL-SPEC-001675 Support backend selection for polyhedral approximations (Specified by)
- PPL-SPEC-001676 Homogeneous directions for weak polyhedral join (Specified by)
- PPL-SPEC-001677 Weak join with exact directional bounds and NNC attainment (Specified by)
- PPL-SPEC-001678 Comparison of finite rational support bounds (Specified by)
The C++ polyhedral facility shall provide a weak join of dimension- and topology-compatible polyhedra using the distinct nonzero homogeneous directions of their entry constraint descriptions, with each equality contributing both directions. For each direction bounded below on both nonempty operands, the result shall use the infimum over their union; unbounded directions shall be omitted. An NNC result shall exclude a finite limiting boundary exactly when neither operand attains that union infimum. The result shall contain the polyhedral hull and shall be contained in the envelope for the same descriptions. Ambient dimension and topology shall be preserved; empty shall be neutral, self-application shall preserve the represented value, and incompatible operands shall be rejected before changing that value.
No forced minimization of input descriptions shall be required; redundant directions may affect precision. Successful computed-result guarantees shall assume the interface contracts' initialization, lifetime, synchronization, arithmetic-profile and resource preconditions, including required intermediate calculations.
Tight support bounds in existing directions improve the enclosing approximation while avoiding construction of all hull directions. The journal reference supplies the boundary semantics; the cited conference definition supplies the specific weak-join construction and its equality convention. The NNC attainment rule follows from validity of the resulting half-spaces.
Software behavior is allocated to interface contracts and verified with independent half-space and geometric models, operation tests and analysis of boundary membership.
Derive literal directional bounds for boxes, points, rational endpoints, distinct directions, redundant rows, lower-dimensional and unbounded sets. Check both optimal-value orderings and ties, one or both operands attaining the union infimum, empty or zero-dimensional inputs, source preservation and compatibility rejection. Compare LP and generator results for the same captured descriptions and measure their delta costs.
SankaranarayananCSM06 | Section 3, Definition 5 (weak join and equality splitting). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC semantics).
-
2. Captured inequality candidates for polyhedral approximations UID: PPL-SPEC-001673 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a valid constraint system, polyhedron_join_inequalities shall return owned candidate rows equivalent to its non-tautological inequalities, replacing each equality by its two opposite non-strict inequalities. Rows equivalent under the normalized constraint ordering shall occur once. The input shall be preserved. The ordering predicate shall agree with the sign of compare(x,y). Capturing the returned rows shall not request polyhedral minimization. Arithmetic-profile conditions shall include constructing both equality orientations.
RATIONALE: Owned snapshots keep candidate selection independent of later cache updates. Opposite inequalities preserve equality meaning while allowing different validity outcomes on the other operand.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
struct Polyhedron_Join_Less { bool operator()(const Constraint& x, const Constraint& y) const; }; using Polyhedron_Join_Rows = std::set<Constraint, Polyhedron_Join_Less>; Polyhedron_Join_Rows polyhedron_join_inequalities(const Constraint_System& cs);
VERIFICATION_CRITERIA: Directly check tautologies, inconsistent constants, equality orientations, strict and non-strict rows, duplicates, ordering and source independence. Check their public envelope effects on descriptions that minimization would otherwise replace.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
3. Exact support queries for polyhedral approximations UID: PPL-SPEC-001674 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000454 Constraint-description polyhedral envelope (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Specifies)
STATEMENT: Polyhedron_Join_Support shall borrow its source polyhedron and own any temporary LP. With generator mode selected, it shall use the existing exact polyhedral queries. Otherwise it shall build and reuse a continuous MIP model of the system obtained by weakening strict inequalities. It shall establish original-set emptiness: an infeasible weakened system is empty; a feasible weakened system with strict rows shall additionally be checked by exact feasibility of the original system.
For a nonempty source and an in-dimension expression, minimum shall return finite == false exactly when the expression is unbounded below. A finite result shall have a positive denominator and its numerator/denominator shall equal the source infimum. For the corresponding finite result, attained shall return true exactly when the original source contains an infimizing point. The LP route shall decide this by feasibility of the original system intersected with the equality face; systems without strict rows shall attain every finite infimum. The presence of strict rows shall be determined once during construction.
includes shall accept a non-strict or strict candidate inequality and return true exactly when every source point satisfies it. Its source shall be nonempty. For a strict row, a zero infimum shall imply validity exactly when that infimum is unattained.
Source objects shall remain alive while queries are issued, and their represented values shall be preserved. The LP route shall borrow an unchanged original description. Generator queries may normalize caches. After the final query, destruction shall release only owned LP state, without querying the borrowed source. Non-finite numerical fields and the LP-side cached attainment field are unspecified. The common conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply.
RATIONALE: For a nonempty finite linear system, weakening strict rows gives its closure: convex combinations with an original feasible point approach every point of the weakened system while satisfying all original strict rows. Infima therefore agree. Original feasibility must be established separately because weakening can turn an empty strict system into a nonempty closed one. Equality-face feasibility exactly characterizes attainment. Changing an LP objective preserves feasibility, so a completed solve is either optimized or downward unbounded.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
struct Polyhedron_Join_Bound { bool finite; Coefficient numerator; Coefficient denominator; bool attained; }; class Polyhedron_Join_Support { public: Polyhedron_Join_Support(const Polyhedron& p, bool use_generators); bool empty() const; Polyhedron_Join_Bound minimum(const Linear_Expression& e); bool attained(const Linear_Expression& e, const Polyhedron_Join_Bound& bound) const; bool includes(const Constraint& c); };
VERIFICATION_CRITERIA: Compare both backends with literal rational infima, attained and unattained boundaries, unbounded expressions and all validity sign cases. Include contradictory closed systems and strict-empty systems with feasible and infeasible closures. Verify temporary ownership, source-value preservation, repeated objective changes and cleanup under assessed allocation failures.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3 (closed and NNC polyhedra and membership).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
4. Support backend selection for polyhedral approximations UID: PPL-SPEC-001675 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For a valid polyhedron and the number of captured nontrivial candidate inequalities, use_generator_support_for_join shall return true when the ambient dimension reaches the MIP dimension ceiling, when generators are current with no pending constraints and at most 64 stored generator rows, or when the dimension is at most four and there are at most eight candidates. Otherwise it shall return false. The query shall preserve the object and shall not materialize either representation. The dimension-ceiling route shall avoid an unavailable additional LP slack coordinate.
RATIONALE: Small descriptions and small current generator systems avoid LP setup. Larger H-descriptions avoid vertex enumeration; larger current generator systems avoid repeated long scans. The decision changes cost rather than the bound semantics.
INTERFACE: Private Polyhedron member in src/Polyhedron_defs.hh.
bool use_generator_support_for_join(size_t candidates) const;
VERIFICATION_CRITERIA: Check both sides of the candidate-count, dimension and generator-count thresholds, with pending constraints and current versus stale generators. Review the capacity-boundary route separately where materializing the necessary dimension is not feasible. Compare operation results across backend choices.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralenvelope1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
5. Homogeneous directions for weak polyhedral join UID: PPL-SPEC-001676 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: Given candidate rows captured from two nonempty operands after tautology removal and equality splitting, polyhedron_join_directions shall return one normalized non-strict zero-constant row for every distinct positive-scaling class of their homogeneous parts. Orientations shall be preserved. Inputs shall be preserved. Each input row shall have a nonzero homogeneous part under these preconditions.
RATIONALE: A non-tautological constant row is inconsistent, so it cannot occur in a nonempty operand. A second zero-vector scan is unnecessary under the stated preconditions. Zeroing constants and using normalized inequality ordering identifies equal directions without identifying opposite orientations.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
Polyhedron_Join_Rows polyhedron_join_directions( const Polyhedron_Join_Rows& xs, const Polyhedron_Join_Rows& ys);
VERIFICATION_CRITERIA: Check positive scalings, opposite orientations from equalities, repeated directions with different constants and independence of input rows. Check their effects on literal weak joins with and without an additional redundant direction.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralweakjoin1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
6. Weak join with exact directional bounds and NNC attainment UID: PPL-SPEC-001677 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: weak_join_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q through constraints() without an additional minimization request. Split equalities into both opposite inequalities, and let D contain their distinct nonzero homogeneous directions. For nonempty operands, for each a ∈ D bounded below on both sets, let ma = min(infp ∈ Pa⋅p, infq ∈ Qa⋅q). The completed receiver shall denote the intersection of a⋅x ≥ ma, omitting unbounded directions. In NNC topology the inequality shall be strict exactly when no point of either operand attains ma.
Candidates shall be captured before support queries can normalize their caches. Precision may depend on redundant directions and materialized descriptions; no minimal output description is required. The result shall contain the polyhedral hull and be contained in the envelope for the same entry descriptions. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Ambient dimension and topology shall be preserved. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
RATIONALE: Each directional bound is the strongest half-space of that orientation containing both operands. Its infimum value and attainment determine whether the limiting boundary is included. Every retained envelope inequality is implied by the corresponding tight bound, proving the ordering between hull, weak join and envelope. The conference definition specifies this construction for closed polyhedra; the journal reference supplies NNC membership semantics for the stated attainment extension.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The member is inherited by C_Polyhedron and NNC_Polyhedron.
void Polyhedron::weak_join_assign(const Polyhedron& y);
VERIFICATION_CRITERIA: Check literal scalar endpoint combinations, rational bounds and independently derived multidimensional examples with distinct directions. Exercise both bound orderings, equal and unequal denominators, sign changes, ties with one or both minima attained, unbounded directions, incompatible operands, aliasing, unknown empty sets, pending/cache histories, reload, source-value preservation and assessed allocation failures. Compare independent generator support oracles with the LP path.
BIBLIOGRAPHY: SankaranarayananCSM06 | Section 3, Definition 5 (weak join and equality splitting). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralweakjoin1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.
-
7. Comparison of finite rational support bounds UID: PPL-SPEC-001678 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: For finite bounds with positive denominators, polyhedron_join_compare_bounds shall return a negative, zero or positive integer exactly when the first quotient is smaller than, equal to or greater than the second. Equal denominators shall compare numerators without products; unequal numerator signs shall compare signs without products. Otherwise cross-products shall be compared under the selected coefficient profile's intermediate-range conditions. Inputs shall be preserved.
RATIONALE: Common integral bounds and equal-denominator rational endpoints need no cross-products. Sign differences also determine order directly. Avoiding those products removes allocations for large GMP values and avoids unnecessary bounded-integer overflow.
INTERFACE: Translation unit: src/Polyhedron_joins.cc; anonymous namespace.
int polyhedron_join_compare_bounds(const Polyhedron_Join_Bound& x, const Polyhedron_Join_Bound& y);
VERIFICATION_CRITERIA: Compare with independent arbitrary-precision rational ordering over equal and unequal positive denominators and every numerator-sign pairing. Include zero, equal quotients and bounded-coefficient endpoint cases where the avoided products would overflow.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_joins.cc; tests/Polyhedron/polyhedralweakjoin1.cc; tests/Polyhedron/joinfailure1.cc; tests/Polyhedron/joinsupport1_impl.cc.