Parma Polyhedra Library requirements
C++ polyhedral envelope and weak join
PPL-SPEC-001672
1. Polyhedral envelope from entry constraint descriptions PPL-SPEC-001672

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.

  • PPL-LLR-000454
    11. Constraint-description polyhedral envelope PPL-LLR-000454

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      8. Controlled runtime operation and resource use PPL-HLR-000008

      PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.

  • PPL-LLR-000455
    12. Tight enclosing bounds in selected polyhedral directions PPL-LLR-000455

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

PPL-SPEC-001673
2. Captured inequality candidates for polyhedral approximations PPL-SPEC-001673

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.

PPL-SPEC-001674
3. Exact support queries for polyhedral approximations PPL-SPEC-001674

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.

  • PPL-LLR-000454
    11. Constraint-description polyhedral envelope PPL-LLR-000454

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      7. Access through supported language interfaces PPL-HLR-000007

      PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.

  • PPL-LLR-000455
    12. Tight enclosing bounds in selected polyhedral directions PPL-LLR-000455

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

PPL-SPEC-001675
4. Support backend selection for polyhedral approximations PPL-SPEC-001675

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.

  • PPL-LLR-000455
    12. Tight enclosing bounds in selected polyhedral directions PPL-LLR-000455

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      8. Controlled runtime operation and resource use PPL-HLR-000008

      PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.

PPL-SPEC-001676
5. Homogeneous directions for weak polyhedral join PPL-SPEC-001676

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.

PPL-SPEC-001677
6. Weak join with exact directional bounds and NNC attainment PPL-SPEC-001677

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.

  • PPL-LLR-000455
    12. Tight enclosing bounds in selected polyhedral directions PPL-LLR-000455

    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.

    • PPL-HLR-000002
      2. Primitive numerical abstractions PPL-HLR-000002

      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.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      8. Controlled runtime operation and resource use PPL-HLR-000008

      PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.

PPL-SPEC-001678
7. Comparison of finite rational support bounds PPL-SPEC-001678

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.