Parma Polyhedra Library requirements
Bounded-difference abstractions

Bounded-difference abstractions

PPL-LLR-000051
1. Bounded-difference expressiveness
UID: PPL-LLR-000051
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

A bounded-difference abstraction shall describe a topologically closed set using bounds on individual coordinates and differences of two coordinates, with distinct empty and universe elements in each supported dimension.

RATIONALE:

The restricted relational form defines the domain's expressive power and distinguishes it from both boxes and arbitrary polyhedra.

COMMENT:

Verification covers bounded-difference value types and admitted constraint forms. Related obligations: 🔗 5. Constraint and congruence refinement, 🔗 6. Sound affine forward and backward transfers.

VERIFICATION_CRITERIA:

Construct small sets from independent unary and coordinate-difference inequalities. Check membership, equalities, unbounded directions and zero-dimensional empty/universe cases.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

doc/definitions.dox: Bounded Difference Shapes. src/BD_Shape_defs.hh: domain description.

PPL-LLR-000052
2. Conservative bounded-difference constants
UID: PPL-LLR-000052
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, when an admitted bounded-difference constraint requires a bound not exactly representable in the selected numeric profile, its abstraction shall round the bound outward so that no point satisfying the constraint is excluded; operations promising optimal abstraction shall choose the best bound representable in that profile.

RATIONALE:

An integer or floating-point bound type can lose precision even when the input constraint has the domain's admitted syntactic form.

COMMENT:

Verification covers bounded-difference constraint abstraction and numeric-bound conversion. Related obligations: 🔗 3. Conservative directed numerical bounds, 🔗 5. Constraint and congruence refinement.

VERIFICATION_CRITERIA:

Normalize constraints independently using exact rational arithmetic. Compare rational, integer and floating-point bound profiles on exact and inexact normalized constants, including negative constants and range boundaries.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/BD_Shape_defs.hh: numeric profile, rounding and optimal constraint support. src/WRD_coefficient_types_defs.hh: extended-number policies. doc/definitions.dox: Constraint Geometric Descriptors.

PPL-LLR-000053
3. Bounded-difference intersection and upper bounds
UID: PPL-LLR-000053
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

PPL shall provide intersection and upper-bound operations for compatible bounded-difference shapes. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a successful intersection shall denote the exact set intersection and a successful upper-bound operation shall contain the union of its input sets. For exact rational-bound profiles, the upper bound shall be the smallest bounded-difference set containing that union; rounded profiles may produce a less precise containing set.

RATIONALE:

Intersection remains expressible within this domain. Finite arithmetic can reduce the precision of an upper bound, so conservative containment must be distinguished from a least-upper-bound guarantee.

COMMENT:

Verification covers bounded-difference intersection and upper-bound operations, including compatible dimensions, exact intersection and profile-specific upper-bound precision. Verification combines mathematical analysis with the tests and reviews identified above; representation closure does not replace a check of the represented sets. Related obligations: 🔗 1. Meaning of successful exact and approximate results, 🔗 5. Constraint and congruence refinement, 🔗 4. Explicit numerical operation contracts.

VERIFICATION_CRITERIA:

Derive intersections independently by conjoining operand constraints and check equality across the assessed numeric profiles. Derive least upper bounds independently for low-dimensional exact-rational examples; across supported profiles, check containment of both operands and minimality only where guaranteed. Include incompatible-input handling according to the declared contract, different redundant descriptions, lower-dimensional sets, unbounded bounds and empty inputs.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/BD_Shape_defs.hh: exact intersection, upper-bound contract and exact-versus-rounded precision. doc/definitions.dox: Bounded Difference Shapes.

4. Bounded-difference widening guarantees
UID: PPL-LLR-000054
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

PPL shall provide bounded-difference widening facilities. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall contain its input sets and shall stabilize its prescribed iteration on ascending sequences satisfying the stated inclusion, threshold and finite-delay conditions.

RATIONALE:

Closure and normalization must be integrated with widening without restoring discarded information in a way that defeats its advertised convergence guarantee.

COMMENT:

Verification covers bounded-difference widening operations and convergence preconditions. Related obligations: 🔗 6. Compound extrapolation and finite convergence, 🔗 3. Narrowing and descending precision recovery.

VERIFICATION_CRITERIA:

Check inclusion during ascending iterations and analyze convergence for each supported widening scheme. Include redundant bounds, changing closure state, finite thresholds and exhaustion of delay tokens; do not require rounded closure itself to be idempotent.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/BD_Shape_defs.hh: closure precision caveat and widening contracts. src/BD_Shape_templates.hh: widening operations. doc/definitions.dox: Widening and Extrapolation Operators on Weakly-Relational Shapes.