Parma Polyhedra Library requirements
Common numerical guarantees

Common numerical guarantees

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

For valid inputs under an operation's stated arithmetic and resource assumptions, a successfully reported exact result shall have the specified mathematical meaning, and a successfully reported conservative over-approximation shall contain every concrete result admitted by those inputs.

Clients rely on the semantic guarantee of a result rather than the details of its representation.

Verification covers exact-result and conservative-result contracts across the numerical facilities, including domain-specific precision obligations. Mathematical analysis and independent result checks assess both common soundness and domain-specific precision.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Identify each reviewed operation's concrete semantics and guarantee. Use mathematical analysis for containment or equality and independently established examples to check boundary cases. Keep errors and inconclusive outcomes separate from successful numerical results.

doc/definitions.dox: Semantic_Geometric_Descriptors and domain-specific operation definitions; src/Polyhedron_defs.hh; src/BD_Shape_defs.hh; src/Octagonal_Shape_defs.hh; src/Box_defs.hh.

LLR
2
PPL-LLR-000302

For valid inputs satisfying the query's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a positive result from a successfully completed numerical property query specified as a sufficient test shall establish the stated property for the represented object. A nonpositive or inconclusive result shall not be presented as establishing the negation unless that conclusion is separately guaranteed by the query.

A sufficient test and a complete decision procedure support different conclusions.

Verification covers property-query outcomes and their logical implications, including termination and compound-domain queries. Exact decisions, sufficient tests and inconclusive answers have distinct meanings.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review each sufficient-test outcome against its stated logical implication. Include objects for which the property holds but the test is inconclusive, alongside positive and genuinely negative cases.

src/Partially_Reduced_Product_defs.hh: sufficient property tests; src/termination_defs.hh: inconclusive unsuccessful termination tests.

LLR
3
PPL-LLR-000303

For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed operation specified to change only the representation of a numerical object shall preserve the object's concrete meaning and space dimension. Any change to its precision or represented set shall instead be governed by an explicitly stated semantic operation.

Representation normalization and storage maintenance must not be confused with abstract transfer or approximation.

Verification covers normalization, descriptor minimization and storage-maintenance operations classified as representation-only changes, distinguished from semantic transformations and approximation operations. Equality-of-meaning analysis and independent before/after checks assess preservation.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review the scope of representation-only operations. Compare concrete meaning before and after applicable normalization, redundant-descriptor removal and storage maintenance, including empty objects and alternative descriptions of the same set.

src/Polyhedron_defs.hh: minimized descriptions and redundant constraints/generators; src/Grid_defs.hh: minimized grid descriptions; src/Linear_System_defs.hh: system representation operations.

LLR
4
PPL-LLR-000442

Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

A result guarantee can be used correctly only when its mathematical meaning, assumptions and outcome distinctions are explicit. Requiring these contracts closes the gap between the library-wide promise of explicit guarantees and requirements that constrain results only after their classifications have been stated. Explicit domain, profile and interface scope prevents a contract from silently omitting a required capability or transferring another configuration's precision guarantee.

Verification compares the supported-facility inventory with operation meanings, conditions and outcomes, and checks behavior against those contracts. Successful-result meaning, sufficient tests and representation-only preservation are governed by 🔗 1. Meaning of successful exact and approximate results, 🔗 2. Interpretation of sufficient property tests and 🔗 3. Preservation by representation-only changes.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Review the inventory of supported numerical facilities against their type, module and operation contracts in each applicable configuration. Check that each operation identifies its concrete meaning, valid-input and arithmetic assumptions, applicable resource conditions, and every supported result or failure classification. Compare domain, numerical-profile and interface availability with the required facility families and selected configuration; review every exclusion or restriction rather than treating missing specification coverage as evidence of unavailability. For approximations, inspect the direction of containment and whether optimality is guaranteed; for decisions and estimates, distinguish complete decisions, sufficient tests, conservative bounds and established extrema. Check that unsupported or failed computations are not described as successful numerical outcomes and that the declared meanings agree with the applicable domain and common numerical requirements.