Parma Polyhedra Library requirements
Rational grids

Rational grids

1. Rational-grid meaning
UID: PPL-LLR-000041
STATUS: APPROVED
COMPONENT: GRIDS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

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

2. Equivalent grid representations
UID: PPL-LLR-000042
STATUS: APPROVED
COMPONENT: GRIDS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

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.

3. Grid intersection and grid hull
UID: PPL-LLR-000043
STATUS: APPROVED
COMPONENT: GRIDS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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.

SOURCE:

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

PPL-LLR-000044
4. Rational affine transformations of grids
UID: PPL-LLR-000044
STATUS: APPROVED
COMPONENT: GRIDS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

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

PPL-LLR-000433
5. Rational-grid widening facilities
UID: PPL-LLR-000433
STATUS: APPROVED
COMPONENT: GRIDS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis, Review
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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.

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

BagnaraDHMZ07 | Whole work (background on grid operations).

SOURCE:

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.