Parma Polyhedra Library requirements
Geometric descriptors

Geometric descriptors

1. Coordinate identity and ambient dimension
UID: PPL-LLR-000011
STATUS: APPROVED
COMPONENT: GEOMETRIC_DESCRIPTORS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

Geometric descriptors shall identify coordinates within a finite-dimensional ambient vector space and shall preserve coordinate identity when their declared dimension is increased without an explicit coordinate transformation.

RATIONALE:

An ambient dimension describes available coordinates and is distinct from the affine dimension of a represented set.

COMMENT:
VERIFICATION_CRITERIA:

Check zero-dimensional descriptors, descriptors containing unused coordinates and extension by trailing unused coordinates. Confirm that extension does not change the values of expressions on the original coordinates.

SOURCE:

doc/definitions.dox: Basic Geometric Descriptors; Space Dimensions and Dimension Compatibility. src/Variable_defs.hh: coordinate identity. src/Variables_Set_defs.hh: coordinate sets. src/Linear_Expression_defs.hh: space dimension.

PPL-LLR-000012
2. Affine meaning of linear expressions
UID: PPL-LLR-000012
STATUS: APPROVED
COMPONENT: GEOMETRIC_DESCRIPTORS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.

RATIONALE:

Expressions are mathematical descriptors used across domains and solvers, independently of their storage representation. Addition, subtraction and scaling change a value according to their mathematical operations; preserving a descriptor's zero set alone does not establish preservation of its affine value. Computational preconditions limit the operation's guarantee rather than the mathematical meaning of the stored expression. Apparent completion of unchecked arithmetic does not establish that those preconditions hold.

COMMENT:

Verification covers linear-expression value types and their supported algebraic operations. Their normative contracts make the delegated input and computational-arithmetic preconditions precise while retaining the required affine semantics. Related obligations: 🔗 1. Meaning of successful exact and approximate results, 🔗 3. Preservation by representation-only changes.

VERIFICATION_CRITERIA:

Establish the stated input and computational-arithmetic preconditions for the assessed operation and evidence cases. Evaluate operands and results independently at selected rational points and compare addition, subtraction and scaling with their specified affine results. For a transformation claimed to preserve value, check equality of affine evaluations within those conditions. Assess coefficient normalization against its stated transformation rather than inferring value preservation from an unchanged zero set. Include zero coefficients, constant expressions and expressions with trailing unused coordinates. Do not use unchecked completion alone as evidence of valid coefficient arithmetic.

SOURCE:

src/Linear_Expression_defs.hh: expression semantics and algebra. src/Linear_Expression_Interface_defs.hh: expression representation interface. doc/definitions.dox: Basic Geometric Descriptors.

PPL-LLR-000013
3. Meaning of linear constraints
UID: PPL-LLR-000013
STATUS: APPROVED
COMPONENT: GEOMETRIC_DESCRIPTORS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

A linear constraint shall denote the set of valuations satisfying its stated equality, strict inequality or non-strict inequality; a finite constraint system shall denote the conjunction of its members.

RATIONALE:

This separates the exact meaning of a descriptor from the approximation a particular abstract domain may apply when accepting it.

COMMENT:

Verification covers constraint and constraint-system value types and their relation meanings. Related obligations: 🔗 5. Constraint and congruence refinement.

VERIFICATION_CRITERIA:

Check independently chosen valuations on, inside and outside boundaries. Include constant tautologies, constant contradictions, duplicate constraints, an empty system and systems whose members use different numbers of coordinates.

SOURCE:

doc/definitions.dox: Constraint Geometric Descriptors; Constraint Description. src/Constraint_defs.hh: constraint relations. src/Constraint_System_defs.hh: finite systems.

PPL-LLR-000014
4. Meaning of linear congruences
UID: PPL-LLR-000014
STATUS: APPROVED
COMPONENT: GEOMETRIC_DESCRIPTORS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

A linear congruence shall hold exactly when its expression differs from its base value by an integer multiple of its modulus; a zero modulus shall express equality, and a finite congruence system shall denote conjunction.

RATIONALE:

Proper congruences describe periodic restrictions, whereas zero-modulus congruences express exact linear equalities.

COMMENT:

Verification covers congruence and congruence-system value types, including zero-modulus equality. Related obligations: 🔗 5. Constraint and congruence refinement.

VERIFICATION_CRITERIA:

Use exact rational calculations to check zero and nonzero moduli, positive and negative integer multiples, nonmember values, tautologies and inconsistent systems. Verify that equivalent normalized congruences admit the same valuations.

SOURCE:

doc/definitions.dox: Congruences and Congruence Relations. src/Congruence_defs.hh: congruence meaning and modulus. src/Congruence_System_defs.hh: finite congruence systems.

PPL-LLR-000015
5. Distinct meanings of geometric generators
UID: PPL-LLR-000015
STATUS: APPROVED
COMPONENT: GEOMETRIC_DESCRIPTORS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

RATIONALE:

Confusing generator kinds changes boundary membership, boundedness or periodicity even when their coordinate vectors coincide.

COMMENT:

Verification covers polyhedral and grid generator value types and generator-kind interpretation. Related obligations: 🔗 2. Equivalent polyhedral representations, 🔗 2. Equivalent grid representations.

VERIFICATION_CRITERIA:

Construct independent one- and two-dimensional examples that distinguish each applicable generator kind. Check rational point scaling and verify that changing a generator's kind changes the represented possibilities in the prescribed manner.

SOURCE:

doc/definitions.dox: Generator Geometric Descriptors; Generator Description; Points, Parameters and Lines. src/Generator_defs.hh: polyhedral generator kinds. src/Grid_Generator_defs.hh: grid generator kinds.