Parma Polyhedra Library requirements
Intervals and boxes

Intervals and boxes

UID:
VERSION:
CLASSIFICATION:
PREFIX:
Type
Level
MID
UID
REFS
Title
Statement
Rationale
Comment
BIBLIOGRAPHY
STATUS
COMPONENT
APPLICABILITY
VERIFICATION_METHODS
VERIFICATION_CRITERIA
SOURCE
LANGUAGE
VISIBILITY
INTERFACE
LLR
1
PPL-LLR-000021
Interval boundary membership

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.

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

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

APPROVED
INTERVALS_BOXES
ALL
Test, Analysis

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.

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

LLR
2
PPL-LLR-000022

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.

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

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.

APPROVED
INTERVALS_BOXES
ALL
Test, Analysis

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

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

LLR
3
PPL-LLR-000023
Sound interval arithmetic

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.

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

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.

APPROVED
INTERVALS_BOXES
ALL
Test, Analysis

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.

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.

LLR
4
PPL-LLR-000024
Convergence of interval and box widening

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.

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

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

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

APPROVED
INTERVALS_BOXES
ALL
Test, Analysis

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.

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.

LLR
5
PPL-LLR-000416
PPL-LLR-000416
Box intersection and least upper bounds

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.

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

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.

APPROVED
INTERVALS_BOXES
ALL
Test, Analysis, Review

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.

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