Parma Polyhedra Library requirements
Rational grids

Rational grids

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-000041

A rational grid shall denote the solutions of a finite system of rational linear congruences, including the empty grid and the universe grid in every supported space dimension.

Grid membership combines affine equalities and periodic restrictions; it is not restricted to the integer points of a convex polyhedron.

Verification covers grid value types, congruence interpretation and distinguished elements. Related obligations: 🔗 11. Preservation of integer points in integer restriction.

BagnaraDHMZ07 | whole work (background)

APPROVED
GRIDS
ALL
Test, Analysis

Use exact congruence calculations to check affine subspaces, discrete periodic sets, rational offsets and inconsistent systems. Include empty and universe grids in zero dimensions.

doc/definitions.dox: Rational Grids; Congruences and Congruence Relations. src/Grid_defs.hh: grid domain semantics.

LLR
2
PPL-LLR-000042

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, successful conversion between a grid's congruence description and its generator description shall preserve the represented grid, with grid parameters retaining integer displacement and grid lines retaining arbitrary real displacement.

The two descriptions must agree on periodicity as well as affine geometry.

Verification covers grid representation conversion and generator interpretation. Related obligations: 🔗 3. Preservation by representation-only changes, 🔗 4. Sound conversion between numerical abstractions.

BagnaraDHMZ07 | whole work (background)

APPROVED
GRIDS
ALL
Test, Analysis

Independently derive dual descriptions of rational grids containing points, periodic parameters and continuous directions. Check conversion in both directions, redundant descriptions and grids without generating points.

doc/definitions.dox: Points, Parameters and Lines; The Grid Generator Representation; Minimized Grid Representations. src/Grid_defs.hh: grid representations. src/Grid_conversion.cc: representation conversion.

LLR
3
PPL-LLR-000043

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for dimension-compatible grids, a successful intersection shall denote their exact set intersection and a successful grid hull shall denote the least rational grid containing both inputs.

The least containing grid can include points absent from the union, so the hull must not be interpreted as exact disjunction.

Verification covers grid intersection and hull operations. Related obligations: 🔗 8. Abstract set-difference semantics.

APPROVED
GRIDS
ALL
Test, Analysis

Compute simple periodic intersections and containing grids by exact arithmetic on residues and rational generators. Include incompatible periods, shifted grids, continuous directions and empty operands.

doc/definitions.dox: Rational Grids; Operations on Rational Grids. src/Grid_defs.hh: intersection and upper-bound contracts.

LLR
4
PPL-LLR-000044
PPL-LLR-000044
Rational affine transformations of grids

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a valid deterministic rational affine transformation, successful grid image and inverse-image operations shall denote the exact image and exact inverse image of the input grid under that transformation.

Affine transformations must preserve the appropriate combination of equalities, periods and continuous directions.

Verification covers grid affine-image and inverse-image operations, retaining this exactness requirement. Related obligations: 🔗 6. Sound affine forward and backward transfers.

BagnaraDHMZ07 | whole work (background)

APPROVED
GRIDS
ALL
Test, Analysis

Compute images and preimages independently from rational congruences and generators. Include rational scaling, translations, constant assignments, noninvertible maps and empty grids.

doc/definitions.dox: Affine Images and Preimages for Grids. src/Grid_defs.hh: affine image and preimage contracts.

LLR
5
PPL-LLR-000433
PPL-LLR-000433
Rational-grid widening facilities

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

Grid joins alone do not ensure finite stabilization of ascending iterations. Congruence- and generator-based widening need the same stated soundness and convergence obligations.

The cited proceedings article provides background on the grid construction.

Verification covers grid widening operations, representation choices and inclusion or delay preconditions. Related obligations: 🔗 1. Rational-grid meaning, 🔗 2. Equivalent grid representations, 🔗 3. Grid intersection and grid hull, 🔗 6. Compound extrapolation and finite convergence.

BagnaraDHMZ07 | Whole work (background on grid operations).

APPROVED
GRIDS
ALL
Test, Analysis, Review

Review the convergence argument for each supported grid widening and check containment during independently described ascending iterations. Include changing periods, affine equalities, empty and universe grids, alternate representations and exhaustion of a finite delay budget.

doc/definitions.dox: Grid Widening Operators; Grid Widening with Tokens. src/Grid_defs.hh: congruence, generator and default grid widening. src/Grid_widenings.cc: supported grid widening algorithms.