Parma Polyhedra Library requirements
Intervals and boxes

Intervals and boxes

1. Interval boundary membership
UID: PPL-LLR-000021
STATUS: APPROVED
COMPONENT: INTERVALS_BOXES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

An interval shall denote the values of its declared number carrier that satisfy its represented bounds and supported openness conditions. An unbounded boundary shall be distinguished from an included infinite value, and supported empty and singleton intervals shall retain their distinct meanings.

RATIONALE:

Endpoint values alone do not distinguish empty, singleton and open-boundary sets. The available endpoint distinctions depend on the supported interval policy.

COMMENT:

Verification covers interval value types, policy-dependent carriers, bounds and membership. Related obligations: 🔗 2. Cartesian meaning of boxes, 🔗 3. Sound interval arithmetic.

VERIFICATION_CRITERIA:

Check each declared number carrier separately, including real and extended-real policies where supported. Include equal and reversed bounds, every supported endpoint-openness combination, finite singletons, half-unbounded intervals, empty and universe intervals, and singleton signed infinities where admitted. Check that a bound used only to express absence of a finite limit is not mistaken for an included infinite value.

SOURCE:

doc/definitions.dox: Intervals and Boxes. src/Interval_defs.hh: interval and boundary semantics. src/Interval_Info_defs.hh: supported endpoint policies.

2. Cartesian meaning of boxes
UID: PPL-LLR-000022
STATUS: APPROVED
COMPONENT: INTERVALS_BOXES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

A positive-dimensional box shall denote the Cartesian product of its coordinate intervals; in zero dimensions the empty box and the universe box shall remain distinct.

RATIONALE:

The product interpretation explains non-relational approximation and must retain the exceptional zero-dimensional empty set.

COMMENT:

Verification covers box value types and their Cartesian and zero-dimensional semantics. Related obligations: 🔗 5. Box intersection and least upper bounds, 🔗 1. Coordinate removal and existential projection, 🔗 2. Distinguished coordinate extensions.

VERIFICATION_CRITERIA:

Compare membership with the conjunction of independent coordinate-membership checks. Include an empty coordinate interval, unconstrained coordinates, singleton coordinates and both zero-dimensional cases.

SOURCE:

doc/definitions.dox: Intervals and Boxes. src/Box_defs.hh: box constructors and represented sets. src/Box_inlines.hh: emptiness and dimension behavior.

3. Sound interval arithmetic
UID: PPL-LLR-000023
STATUS: APPROVED
COMPONENT: INTERVALS_BOXES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, when interval arithmetic reports an enclosure for a supported operation, that enclosure shall contain every defined mathematical result obtained from operand values in the input intervals, including approximation introduced by endpoint arithmetic.

RATIONALE:

Soundness requires outward enclosure of the entire operand ranges rather than accuracy only at selected endpoints.

COMMENT:

Verification covers interval arithmetic and its enclosure and failure contracts. Related obligations: 🔗 3. Conservative directed numerical bounds, 🔗 1. Meaning of successful exact and approximate results.

VERIFICATION_CRITERIA:

Use independently computed rational ranges and selected exact operand values for supported operations. Include sign changes, open endpoints, unbounded inputs and inexact endpoint results. Treat invalid-operation and failure outcomes according to their separate contracts.

SOURCE:

src/Interval_defs.hh: interval arithmetic contracts. src/Interval_templates.hh: interval operations. src/intervals_defs.hh: interval arithmetic support. src/Rounding_Dir_defs.hh: directed bounds.

4. Convergence of interval and box widening
UID: PPL-LLR-000024
STATUS: APPROVED
COMPONENT: INTERVALS_BOXES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

PPL shall provide interval and box widening facilities. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall yield an upper bound of its input sets and shall stabilize its prescribed recurrence on ascending input sequences satisfying the stated ordering, threshold and finite-delay conditions.

RATIONALE:

Sound enlargement alone is not a widening guarantee; finite convergence is needed for iterative analysis.

COMMENT:

Verification covers interval and box widening operations, supported profiles and convergence preconditions. Related obligations: 🔗 6. Compound extrapolation and finite convergence.

VERIFICATION_CRITERIA:

Check upper-bound inclusion at each iteration and analyze the convergence argument for each advertised widening. Exercise sequences with expanding finite bounds, finite threshold crossings and exhaustion of any finite delay budget.

BIBLIOGRAPHY:

CousotC76 | whole work (background) BlanchetCCFMMMR02 | whole work (background)

SOURCE:

doc/definitions.dox: Widening and Extrapolation Operators on Boxes; Widening with Tokens. src/Box_defs.hh: interval widening and threshold contracts. src/Interval_defs.hh: interval widening contracts.

PPL-LLR-000416
5. Box intersection and least upper bounds
UID: PPL-LLR-000416
STATUS: APPROVED
COMPONENT: INTERVALS_BOXES
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis, Review
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

For compatible boxes with the same supported interval profile, PPL shall provide intersection and upper-bound operations. Under their documented arithmetic preconditions, intersection shall denote the exact set intersection and the upper bound shall denote the least box of that profile containing both inputs.

RATIONALE:

Box denotation and interval arithmetic do not by themselves establish the behavior of the domain's meet and join.

COMMENT:

Verification covers box intersection and upper-bound operations, compatibility conditions and interval-profile restrictions. Related obligations: 🔗 1. Interval boundary membership, 🔗 2. Cartesian meaning of boxes, 🔗 3. Polyhedral intersection and hull, 🔗 3. Grid intersection and grid hull.

VERIFICATION_CRITERIA:

Derive products of independent coordinate intersections and interval hulls. Check empty, universe and zero-dimensional inputs, unbounded coordinates and admitted endpoint-openness combinations. Compare the result with the least enclosing box in the same profile rather than with an exact disjunctive union.

SOURCE:

src/Box_defs.hh: intersection and smallest containing box contracts. src/Box_templates.hh: box operations. src/Interval_defs.hh: interval intersection and hull.