Parma Polyhedra Library requirements
Common numerical-domain operations

Common numerical-domain operations

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

PPL shall provide coordinate-removal operations for supported pointset domains. Coordinate removal shall have the concrete meaning of retaining exactly those valuations of the remaining coordinates for which the original set has an extension, in the declared remaining-coordinate order. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed abstract result shall contain that existential projection and satisfy the domain's stated exactness or precision guarantee.

Removing a coordinate eliminates its value existentially; it does not fix the coordinate to zero or merely erase stored coefficients.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Derive low-dimensional projections independently, including eliminated equalities, retained relations between surviving coordinates, empty and universe sets, and removal of all or no coordinates. Check coordinate order and apply equality only where the domain and numeric profile guarantee an exact projection.

doc/definitions.dox: Removing Dimensions from the Vector Space. src/Polyhedron_defs.hh: coordinate removal. src/Grid_defs.hh: grid coordinate removal. src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: weakly relational coordinate removal.

LLR
2
PPL-LLR-000418

PPL shall provide the supported pointset-domain extensions that add unconstrained coordinates and that add coordinates fixed to zero. Unconstrained extension shall mean adjoining unrestricted coordinates; zero-coordinate extension shall mean adjoining coordinates fixed to zero. Both meanings shall retain the identities of the original coordinates and apply also to zero-dimensional input sets. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed extension shall denote its specified extension, preserving the original coordinates and their relationships while applying the selected condition to every new coordinate.

An unconstrained extension and an extension at zero have different concrete meanings even though both increase the space dimension.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Construct independent product-with-space and product-with-zero-set oracles for each supported extension. Include empty and universe inputs, zero new coordinates, zero-dimensional inputs and original coordinate equalities. Verify the positions assigned to new coordinates.

doc/definitions.dox: Adding New Dimensions to the Vector Space. src/Polyhedron_defs.hh: unconstrained and zero-coordinate extension. src/Box_defs.hh and src/Grid_defs.hh: dimension extension contracts.

LLR
3
PPL-LLR-000419

PPL shall provide supported coordinate-remapping operations for pointset domains. The concrete meaning of a valid mapping shall follow the specified source-to-target correspondence for surviving values and existentially eliminate coordinates outside the mapping. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed remapping result shall contain the exact remapped set and satisfy the operation's stated exactness or precision guarantee.

Coordinate names and their order must remain consistent across descriptors, domains and solver inputs; storage reindexing alone is insufficient to define domain remapping.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Compare remapping with independently calculated projection and permutation results. Include sparse maps, reordered images, an empty map, unchanged mappings and removal of constrained coordinates. Apply only mappings satisfying the documented injectivity, range and output-coordinate conditions.

src/Polyhedron_defs.hh: space-dimension mapping. src/Grid_defs.hh and src/Box_defs.hh: mapping contracts. src/Partial_Function_defs.hh: valid injective partial maps.

LLR
4
PPL-LLR-000420
Sound conversion between numerical abstractions

PPL shall provide the documented supported conversions between numerical abstractions. A supported conversion's source and target shall interpret corresponding coordinates consistently. Exactness, optimality and permitted precision loss shall be defined for each supported source-and-target combination and any selected complexity policy. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed conversion shall preserve that coordinate meaning and contain every point represented by the source.

Changing abstract domains can intentionally lose information. Representation conversion within one domain is a distinct operation and can retain stronger equality guarantees.

Verification covers cross-domain constructors and conversion operations, supported domain pairs and selected precision policies. Related obligations: 🔗 2. Equivalent polyhedral representations, 🔗 2. Equivalent grid representations, 🔗 1. Meaning of successful exact and approximate results.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Compare conversions with independently described source sets in small dimensions. Check inclusion for every assessed conversion, and equality or best precision only for combinations and complexity choices that guarantee it. Include strict boundaries, periodic grids, empty sets and zero-dimensional inputs.

doc/definitions.dox: Generic Operations on Semantic Geometric Descriptors, cross-domain constructors. src/Box_defs.hh: conversion precision and complexity policies. src/Polyhedron_defs.hh and src/Grid_defs.hh: conversions from other domains.

LLR
5
PPL-LLR-000421

PPL shall provide constraint and congruence refinement for its documented supported pointset domains. Under the arithmetic preconditions, a successful refinement shall retain every input point satisfying the supplied conditions without introducing points outside the input set. Each domain shall identify its accepted descriptor classes and the precision guaranteed for them; unsupported descriptor forms shall follow the operation's declared rejection or conservative-approximation behavior.

The exact meaning of a descriptor is separate from the ability of a domain to represent its conjunction with the current abstract state.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Use independent conjunctions of input sets and descriptors to check inclusion of satisfying points and absence of newly introduced outside points. Cover admitted and nonadmitted forms, tautologies, contradictions, strict boundaries and proper congruences. Distinguish exact insertion, best abstraction and conservative refinement where their contracts differ.

doc/definitions.dox: Constraint Geometric Descriptors and interaction with semantic descriptors. src/Polyhedron_defs.hh: addition versus refinement. src/Box_defs.hh, src/BD_Shape_defs.hh, src/Octagonal_Shape_defs.hh and src/Grid_defs.hh: descriptor support.

LLR
6
PPL-LLR-000422

PPL shall provide forward-image and backward-preimage operations for the supported rational affine functions and relations of its pointset domains. Under their arithmetic preconditions, successful results shall contain the exact image or preimage defined by the operation, and the supported domain and transformation class shall determine the stated exactness or other precision guarantee.

Forward and backward analysis require a defined relational meaning even when a restricted domain approximates the result.

This shared soundness obligation does not weaken the exact deterministic rational guarantees in the linked polyhedral and grid obligations.

Verification covers forward and backward affine transfer operations, admitted relations and domain-specific precision. Related obligations: 🔗 4. Rational affine transformations of polyhedra, 🔗 4. Rational affine transformations of grids, 🔗 2. Sound successful floating-point linearization, 🔗 1. Meaning of successful exact and approximate results.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Derive images and inverse images independently for deterministic assignments, noninvertible maps and supported relational or bounded updates. Include negative scaling, equalities, strict conditions, empty sets and unconstrained variables. Check domain-specific exactness where guaranteed and sound inclusion elsewhere.

doc/definitions.dox: Images and Preimages of Affine Transfer Relations; Generalized Affine Relations; Single-Update Bounded Affine Relations. src/Polyhedron_defs.hh and src/Grid_defs.hh: exact deterministic affine operations. src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: restricted-domain affine approximations.

LLR
7
PPL-LLR-000423
PPL-LLR-000423
Domain-specific time-elapse abstraction

PPL shall provide its supported pointset time-elapse operations with a defined domain-specific progression semantics. Under the arithmetic preconditions, a completed result shall contain every state generated by that semantics: nonnegative real-time multiples for ordinary polyhedral time elapse and integer multiples for grid time elapse. Any positive-time variant shall distinguish strictly positive time from the ordinary variant, and exactness or least-domain-enclosure guarantees shall be stated for the supported operation.

The progression parameter and the abstract domain hull both affect time-elapse meaning; grid progression is not ordinary continuous-time progression.

Verification covers time-elapse operations, progression parameters, topology and domain-specific hull guarantees. Related obligations: 🔗 1. Meaning of successful exact and approximate results, 🔗 9. Topological closure and closure approximation.

HalbwachsPR97 | Whole work (background on continuous time-elapse analysis). BenerecettiFM13 | Whole work (background on polyhedral safety control and time-elapse analysis).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Independently derive generated sets and their required domain enclosures. Include zero time, negative direction values, strictly positive-time boundary cases where supported, empty source or direction sets and grid examples whose generated set is not itself a grid. Check only the precision promised for the assessed domain and variant. Where abstract-element and generator rate descriptions are both supported, verify their semantic equivalence, input preservation and compatibility rules.

doc/definitions.dox: Time-Elapse Operator; Positive Time-Elapse Operator; Grid Time-Elapse. src/Polyhedron_defs.hh: ordinary and positive-time operations. src/Grid_defs.hh: grid progression. src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: time-elapse abstractions.

LLR
8
PPL-LLR-000424
Abstract set-difference semantics

PPL shall provide abstract set-difference operations for its documented supported pointset domains. Under their arithmetic preconditions, a completed result shall contain every point in the first operand that is absent from the second; exactness or least-domain-enclosure guarantees shall be defined per domain rather than assuming that every result is the set-theoretic difference.

A difference of representable sets can be nonconvex or outside the result domain, so a sound abstract difference may retain removed points or fill gaps.

Verification covers abstract difference operations, compatibility conditions and per-domain exactness or enclosure guarantees. Related obligations: 🔗 3. Polyhedral intersection and hull, 🔗 3. Grid intersection and grid hull, 🔗 5. Lifted operations on finite pointset powersets, 🔗 1. Meaning of successful exact and approximate results.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Compare with independently derived set differences for overlapping, disjoint, equal and empty operands. Include removal of a boundary, an equality and an interior region. For products, check both component-exclusion alternatives, all supported reduction policies and component orders, and a singleton at zero subtracted by an odd-integer grid. Include self-subtraction, empty and zero-dimensional cases, dimension mismatch, nonintegral witnesses and histories that change reduction state. Check sound inclusion and any domain-specific optimality, without requiring the abstract result to be disjoint from the second operand.

doc/definitions.dox: Convex Polyhedral Difference. src/Polyhedron_defs.hh, src/Box_defs.hh, src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: abstract difference contracts. src/Pointset_Powerset_defs.hh: powerset difference. src/Partially_Reduced_Product_defs.hh and src/Partially_Reduced_Product_inlines.hh; tests/Partially_Reduced_Product/difference1.cc and tests/Partially_Reduced_Product/directproduct3.cc.

LLR
9
PPL-LLR-000425
Topological closure and closure approximation

PPL shall provide topological-closure operations for its supported real pointset domains. Under their arithmetic preconditions, completed results shall contain the exact topological closure of the input. For primitive domains whose admitted representation can express that closure, the result shall be exact; compound-domain closure shall retain its stated precision and shall not inherit exactness solely from exact component closures.

Closing component sets and then intersecting them need not equal closing their intersection. Ordinary topological closure is also distinct from graph normalization used internally by weakly relational domains.

Verification covers topological-closure operations and the supported topology, endpoint policies and compound precision. Related obligations: 🔗 1. Interval boundary membership, 🔗 1. Closed and non-necessarily-closed polyhedra, 🔗 4. Intersection meaning of product domains, 🔗 3. Preservation by representation-only changes.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Independently derive closures of open and partially open sets, closed sets and empty sets. Check identity on closed primitive sets and exactness where the profile admits the closed endpoints. For compound domains, examine cases where component intersections lose boundary points or are empty and verify the stated containment or stronger guarantee.

src/Polyhedron_defs.hh: topological closure. src/Box_defs.hh and src/Interval_defs.hh: closing supported interval bounds. src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: closed primitive domains. src/Partially_Reduced_Product_defs.hh: componentwise closure.

LLR
10
PPL-LLR-000426
PPL-LLR-000426
Context-preserving simplification

PPL shall provide its supported context-based simplification operations. Under their arithmetic preconditions, simplification shall preserve the intersection of the input set with the supplied context and satisfy the domain's stated simplification guarantee. Preservation inside the context shall not be presented as preservation or enlargement of the whole input outside that context unless the operation also guarantees it.

Primitive-domain simplification can be an enlargement, while powerset simplification may discard disjuncts disjoint from the context. Both must retain the relevant intersection.

Verification covers context-simplification operations, intersection-preservation guarantees, simplification measures and result meanings. Related obligations: 🔗 2. Meaning-preserving removal of redundant disjuncts, 🔗 2. Interpretation of sufficient property tests, 🔗 3. Preservation by representation-only changes.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Independently compare the original and resulting intersections with the context. Include empty and disjoint contexts, redundant conditions, primitive-domain enlargement and powerset removal of context-disjoint disjuncts. Check the operation's stated simplification measure and interpret any Boolean result using its one-sided or exact guarantee.

doc/definitions.dox: Meet-Preserving Enlargement and Simplification; Powerset Meet-Preserving Simplification. src/Pointset_Powerset_defs.hh: discarding disjuncts outside context and return meaning. src/Polyhedron_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: primitive simplification contracts.

LLR
11
PPL-LLR-000427
Preservation of integer points in integer restriction

PPL shall provide integer-point restriction for the documented supported pointset domains and selected-coordinate variants. Under the arithmetic preconditions, the result shall contain every input point integral on the selected coordinates and shall introduce no point outside the input set. Grid restriction shall compute the exact intersection with those integer-coordinate requirements; other domains shall retain their stated precision without implying that every remaining point is integral.

A sound integer restriction may leave noninteger points in a convex abstraction, while rational grids can represent the selected integer restriction exactly.

Verification covers integer-restriction operations, selected-coordinate interpretation and exact versus approximate guarantees. Related obligations: 🔗 4. Preservation of integer points during octagonal refinement, 🔗 1. Rational-grid meaning, 🔗 1. Meaning of successful exact and approximate results.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Compare selected-coordinate integer points before and after restriction using independent enumeration in bounded examples and analytic descriptions in unbounded cases. Check exact lattice intersection for grids, unselected fractional coordinates, an empty coordinate selection and empty inputs. For approximate domains, verify preservation without requiring elimination of all fractional points.

src/Grid_defs.hh: exact integer lattice intersection and selected-coordinate semantics. src/Polyhedron_defs.hh, src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: discarding some noninteger points.

LLR
12
PPL-LLR-000428
PPL-LLR-000428
Modeled bounded-integer arithmetic and wrapping

For coordinates assumed to denote integer values, PPL shall provide bounded-integer abstraction for the supported modeled widths, representations and overflow interpretations. Under the computational arithmetic preconditions, results shall conservatively contain the selected concrete arithmetic outcomes. Wrapping shall mean modular reduction interpreted in the selected signed or unsigned representation; undefined-result overflow shall permit arbitrary arithmetic results; impossible-overflow semantics shall include only transitions in which overflow does not affect the state.

Modeled machine overflow is a property of the analyzed arithmetic, not a permission for the arithmetic computing its abstraction to overflow.

Modeled 128-bit behavior does not introduce a global 128-bit coefficient choice or a public native 128-bit scalar profile. The cited conference work provides background on the wrapping construction described in the manual.

Verification covers bounded-integer abstraction and wrapping operations, supported widths, input assumptions, guards and precision controls. Related obligations: 🔗 1. Identity of modeled numeric types, 🔗 3. Conservative directed numerical bounds, 🔗 1. Meaning of successful exact and approximate results.

SimonK07 | Whole work (background on wrapping-based bounded-integer analysis).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Derive independent concrete outcomes at signed and unsigned range boundaries for each assessed width and overflow mode. Include negative unwrapped values, joint and coordinatewise approximation choices, supplied guard conditions and range-crossing values. Check the specifically supported 128-bit cases without assuming native scalar support, and keep arithmetic-result uncertainty distinct from other effects of language undefined behavior.

doc/definitions.dox: Approximating Bounded Integers; Wrapping Operator. src/globals_types.hh: modeled widths, representations and overflow meanings. src/wrap_assign.hh: shared bounded-integer abstraction. src/Polyhedron_defs.hh and src/Grid_defs.hh: wrapping contracts and integer-coordinate assumptions.

LLR
13
PPL-LLR-000431
Mathematical query capabilities and logical outcomes

PPL shall provide mathematical-property and set-relation query families for its supported pointset domains, including emptiness and the domain-appropriate inclusion, equality, disjointness and boundedness capabilities. For each supported query, the per-domain guarantee shall identify whether its outcome is an exact decision, a sufficient test or an inconclusive result; a guarantee for a primitive domain shall not be assumed for a compound domain or a different numeric profile.

The general logical rule for sufficient tests does not identify which query capabilities exist or which conclusions their domains support.

Query availability and guarantees depend on domain and profile; uniform exactness and every query family are not required from every domain.

Verification covers domain-property, comparison and relation query operations and their per-domain result classifications. Related obligations: 🔗 3. Meaning of geometric powerset comparisons, 🔗 2. Interpretation of sufficient property tests, 🔗 14. Directional bounds, extrema and attainment.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Inspect the allocation of query families and guarantees to supported domains and profiles. Compare representative answers with independent finite or geometric models, including empty and zero-dimensional sets and compound objects whose nonempty components have an empty intersection. Exercise positive, negative and admitted inconclusive outcomes according to the identified guarantee.

doc/definitions.dox: Generic Operations on Semantic Geometric Descriptors; Relation-With Operators. src/Box_defs.hh, src/Grid_defs.hh, src/Polyhedron_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: property and set queries. src/Partially_Reduced_Product_defs.hh: sufficient componentwise tests.

LLR
14
PPL-LLR-000432

PPL shall provide directional-bound and extremum queries for the documented supported pointset domains. Under the arithmetic preconditions, a reported upper bound shall bound all admitted objective values from above and a lower bound shall bound them from below. The per-domain result contract shall distinguish a conservative bound from an established supremum or infimum and shall identify whether success, attainment and any witness concern the represented set or only a supplying component.

A useful component-derived bound need not be the exact extremum of the product intersection, and successful bound computation alone need not prove that the intersection is nonempty.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Independently derive objective bounds, exact extrema and attainment for small open, closed, empty and unbounded sets. Check the promised witness meaning and exactness separately from the bound inequality. Include products whose component extremum is not attained in the intersection and products with empty intersections but nonempty components.

src/Polyhedron_defs.hh: directional bounds and extremum witnesses. src/Box_defs.hh, src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: domain bounds and optimization. src/Partially_Reduced_Product_defs.hh: component-derived bounds, nonemptiness and attainment limits.