-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001431 Reloadable pointset-powerset representations (Specified by)
- PPL-SPEC-001432 Pointset-powerset diagnostics, display and hash (Specified by)
- PPL-SPEC-001379 Compound-domain values and valid use (Specified by)
- PPL-SPEC-001388 Determinate values and copy-on-write ownership (Specified by)
- PPL-SPEC-001389 Determinate order and distinguished values (Specified by)
- PPL-SPEC-001399 Pointset-powerset empty and universe queries (Specified by)
- PPL-SPEC-001400 Affine dimension of a pointset powerset (Specified by)
- PPL-SPEC-001401 Pointset-powerset structural shape queries (Specified by)
- PPL-SPEC-001402 Pointset-powerset structural set relations (Specified by)
- PPL-SPEC-001404 Pointset-powerset directional bound tests (Specified by)
- PPL-SPEC-001405 Pointset-powerset extrema and witnesses (Specified by)
- PPL-SPEC-001406 Pointset-powerset descriptor relations (Specified by)
- PPL-SPEC-001392 Dimensioned pointset-powerset construction (Specified by)
- PPL-SPEC-001393 Pointset-powerset copying, assignment and exchange (Specified by)
- PPL-SPEC-001394 Pointset-powerset construction from descriptor systems (Specified by)
- PPL-SPEC-001395 Pointset-powerset construction from a simple domain (Specified by)
- PPL-SPEC-001396 Cross-base powerset conversion and assignment (Specified by)
- PPL-SPEC-001397 Pointset-powerset construction from a product (Specified by)
- PPL-SPEC-001398 Insertion of pointset disjuncts (Specified by)
- PPL-SPEC-001380 Generic powerset construction and ownership (Specified by)
- PPL-SPEC-001381 Generic powerset entailment and equality (Specified by)
- PPL-SPEC-001382 Generic powerset traversal and erasure (Specified by)
- PPL-SPEC-001384 Disjunctive insertion and exact powerset union (Specified by)
- PPL-SPEC-001595 Read-only iterator types, borrowed positions and value operations (Specified by)
- PPL-SPEC-001596 Read-only iterator element identity and const access (Specified by)
- PPL-SPEC-001597 Read-only iterator traversal and interoperable equality (Specified by)
A supported finite pointset powerset shall denote the union of the sets represented by its disjuncts; an empty disjunct collection shall denote the empty set.
Explicit finite disjunction can retain distinctions that the hull of a base domain would lose.
Verification covers finite pointset-powerset value types and disjunctive construction. Related obligations: 🔗 5. Lifted operations on finite pointset powersets.
Use independently described disjoint and overlapping base-domain sets to check powerset membership. Include empty collections, empty disjuncts, duplicate disjuncts and a disjunct denoting the universe.
Bagnara98SCP | whole work (background) BagnaraHZ06STTT | whole work (background) BagnaraHZ06STTTerratum | Whole erratum; corrected figures for the journal article.
doc/definitions.dox: The Powerset Construction; The Powerset Domain; The Pointset Powerset Domain. src/Pointset_Powerset_defs.hh: pointset powerset meaning.
-
1. Reloadable pointset-powerset representations UID: PPL-SPEC-001431 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: ascii_dump shall write the stored collection size, ambient dimension and each base representation, preserving enough information to reload the value with the matching coefficient/base configuration. ascii_load shall return true only for a complete admitted representation with matching disjunct dimensions and valid components; malformed, truncated or structurally invalid input shall return false. A successful round trip shall preserve union and dimension, without requiring canonical text or reduced decomposition. Stream and resource exceptions may propagate. A false return shall not promise rollback or further queries; surviving ownership shall remain destructible. Human-readable print shall remain distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Persistence must reject incompatible structure rather than create an object whose dimension disagrees with its disjuncts.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void ascii_dump(std::ostream&) const; bool ascii_load(std::istream&); void print() const;
VERIFICATION_CRITERIA: Check empty/universe and nonreduced round trips, every token truncation, bad labels/counts/dimensions and incompatible component encodings.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contractvalues1.cc; tests/Powerset/powerset1.cc.
-
2. Pointset-powerset diagnostics, display and hash UID: PPL-SPEC-001432 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: OK shall check disjunct dimensions and generic powerset invariants. Memory queries shall give lower bounds; total shall add sizeof(*this) to external bytes. Hash shall depend on ambient dimension, so equal values shall have equal hashes without promising collision resistance. Stream insertion shall use the inherited powerset display and return the supplied stream; printing may normalize redundant storage without changing the value.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A cheap dimension hash is compatible with equality while allowing many collisions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool OK() const; memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const; int32_t hash_code() const;
VERIFICATION_CRITERIA: Check dimensioned values, generic display, memory relationships and hash agreement after copy, reordering and reduction.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contractvalues1.cc; tests/Powerset/membytes1.cc.
-
Incoming links from: 1. Exact linear polyhedron partitioning 2. Finite and approximate grid partitioning 1. Reloadable pointset-powerset representations 2. Pointset-powerset diagnostics, display and hash 3. Reloadable product representations 4. Product diagnostics, display, memory and hash 1. Determinate values and copy-on-write ownership 2. Determinate order and distinguished values 3. Determinate operations and binary lifting 4. Determinate display, invariants and memory 1. Lifted powerset image 2. Lifted powerset preimage 3. Lifted powerset generalized image 4. Lifted powerset generalized preimage 5. Lifted powerset bounded image 6. Lifted powerset bounded preimage 7. Lifted expression-to-expression affine relations 1. Exact pairwise powerset reduction 2. BGP99 powerset extrapolation 3. Certificate-based powerset widening 1. Pointset-powerset coordinate growth 2. Pointset-powerset projection and coordinate mapping 3. Pointset-powerset dimension expansion and folding 4. Pointset-powerset concatenation 1. Lifted constraint addition and refinement 2. Lifted congruence addition and refinement 3. Lifted cylindrification 4. Lifted pointset-powerset intersection 5. Pointset-powerset set difference 6. Meet-preserving powerset context simplification 7. Powerset topological closure and time elapse 8. Powerset integer restriction and wrapping 1. Pointset-powerset empty and universe queries 2. Affine dimension of a pointset powerset 3. Pointset-powerset structural shape queries 4. Pointset-powerset structural set relations 5. Geometric powerset coverage and equality 6. Pointset-powerset directional bound tests 7. Pointset-powerset extrema and witnesses 8. Pointset-powerset descriptor relations 1. Dimensioned pointset-powerset construction 2. Pointset-powerset copying, assignment and exchange 3. Pointset-powerset construction from descriptor systems 4. Pointset-powerset construction from a simple domain 5. Cross-base powerset conversion and assignment 6. Pointset-powerset construction from a product 7. Insertion of pointset disjuncts 1. Generic powerset construction and ownership 2. Generic powerset entailment and equality 3. Generic powerset traversal and erasure 4. Omega reduction of generic powersets 5. Disjunctive insertion and exact powerset union 6. Pairwise lifting and generic powerset meet 7. Explicit powerset collapse 8. Generic powerset diagnostics and memory accounting 1. Componentwise product image 2. Componentwise product preimage 3. Componentwise product generalized image 4. Componentwise product generalized preimage 5. Componentwise product bounded image 6. Componentwise product bounded preimage 7. Product expression-to-expression affine relations 1. Product component widening and convergence scope 1. Product coordinate operations 2. Product concatenation 1. Product descriptor addition, refinement and recycling 2. Product intersection 3. Product component joins and component exactness 4. Sound product set difference 5. Product closure and time elapse 6. Product integer-coordinate tightening 1. Product constraint and congruence exports 2. Component-based product property tests 3. Component-based product descriptor relations 4. Component-selected product bounds and witnesses 5. Product component order and equality 1. Direct and smash reduction policies 2. Constraint-sharing product reduction 3. Congruence-sharing product reduction 4. Shape-preserving product reduction 5. Lazy product reduction and component views 1. Partially reduced product values and policy aliases 2. Dimensioned product construction and extent 3. Product copying, assignment and exchange 4. Product construction from descriptor systems 5. Conversions to a product86
1. Compound-domain values and valid use UID: PPL-SPEC-001379 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Pointset_Powerset<PSET> shall denote ⋃iγ(pi). An empty collection shall denote empty. Partially_Reduced_Product<D1,D2,R> shall denote γ1(d1)∩γ2(d2) in a common real ambient space. Powerset<D> shall implement the finite powerset construction on a base domain with bottom, top, entailment, equality, upper bound and meet. Determinate<PSET> shall adapt a supported pointset domain to that base interface without changing its represented set.
A component type shall supply the operations used by an instantiated member, with their stated soundness, precision, dimension and arithmetic conditions. Every intermediate arithmetic operation shall meet its coefficient profile's range and resource conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; indices and dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, function objects and streams shall remain live and valid throughout their uses. Independently written outputs shall not alias each other or input storage, except where explicitly permitted. The denominator-taking affine wrappers shall admit a scalar borrowed from the receiver at entry as specified below.
Value copies shall permit independent subsequent mutations. Accesses that can change shared representations or caches shall be externally synchronized. Numerical, allocation and resource exceptions may propagate. Failed construction shall release acquired resources. For existing objects no general rollback or further-query guarantee shall be assumed after an exception; surviving owned resources shall remain destructible.
RATIONALE: Disjunction and conjunction have different concretizations and different lifting laws. Component contracts determine which operations can be instantiated.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D> class Powerset; template <typename PSET> class Determinate; template <typename PSET> class Pointset_Powerset; template <typename D1, typename D2, typename R> class Partially_Reduced_Product;
VERIFICATION_CRITERIA: Check independent union and intersection examples, empty collections, dimensioned distinguished values, independent copies, coefficient admission and ownership during failures.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definitions 4–5 (finite powersets and union concretization). CousotC79 | whole work (background on products).
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Partially_Reduced_Product/directproduct1.cc; tests/Powerset/powerset1.cc.
-
1. Determinate values and copy-on-write ownership UID: PPL-SPEC-001388 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a pointset, constraint system or congruence system shall embed the corresponding base-domain value. Copying may share its representation, but subsequent mutation through either adapter shall preserve the other value. In a thread-safe build each copy shall own its own representation so that const queries on different threads can update the embedded values' caches independently. Assignment shall support self-assignment and return its receiver. Exchange shall swap the embedded values. pointset() const shall return a borrowed const view. Both pointset() overloads shall require an lvalue wrapper; mutable and const temporary wrappers shall be rejected. Mutable pointset() and mutate() shall first detach shared storage. A retained mutable reference shall not be used across subsequent copying or other operations that can share or replace its representation. Destruction shall release the representation when its last owner is destroyed.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Copy-on-write is an ownership mechanism, so value independence must survive every exposed mutation path.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Determinate unless qualified otherwise.
explicit Determinate(const PSET&); explicit Determinate(const Constraint_System&); explicit Determinate(const Congruence_System&); Determinate(const Determinate&); ~Determinate(); Determinate& operator=(const Determinate&); const PSET& pointset() const &; const PSET& pointset() const && = delete; PSET& pointset() &; PSET& pointset() && = delete; void mutate(); void m_swap(Determinate&); template <typename PSET> void swap(Determinate<PSET>&, Determinate<PSET>&);
VERIFICATION_CRITERIA: Check pointset/system construction, const sharing, detach, self-assignment/exchange and lifetime after an owner is destroyed. Admit mutable and const lvalue pointset borrows with unchanged reference types; reject mutable and const temporary wrappers.
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; tests/Powerset/powerset1.cc; tests/determinatehistories1.cc.
-
2. Determinate order and distinguished values UID: PPL-SPEC-001389 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Entailment shall mean that the receiver's embedded pointset is contained in y; definite equivalence and equality shall use base equality. Shared representations may short-circuit these tests. Top and bottom shall mean base universe and empty, respectively. Inequality shall negate equality.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The adapter must preserve the ordering direction expected by the powerset construction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Determinate unless qualified otherwise.
bool definitely_entails(const Determinate&) const; bool is_definitely_equivalent_to(const Determinate&) const; bool is_top() const; bool is_bottom() const; template <typename PSET> bool operator==(const Determinate<PSET>&, const Determinate<PSET>&); template <typename PSET> bool operator!=(const Determinate<PSET>&, const Determinate<PSET>&);
VERIFICATION_CRITERIA: Check equal shared and unshared values, proper inclusion in both directions and empty/universe.
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; tests/Powerset/entails1.cc; tests/Powerset/equals1.cc; tests/determinatehistories1.cc.
-
1. Pointset-powerset empty and universe queries UID: PPL-SPEC-001399 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: is_empty shall return true exactly when every stored disjunct is empty, including the empty collection. is_universe shall return true exactly when a stored disjunct denotes universe; it may remove other disjuncts when such a disjunct is found. A union that covers the whole ambient space without a universe disjunct need not make this structural universe query true; geometric coverage shall be used for that semantic comparison.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A structural top test is cheaper than deciding whether several proper disjuncts jointly cover universe.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_empty() const; bool is_universe() const;
VERIFICATION_CRITERIA: Check empty and redundant collections, a universe disjunct and two complementary half-spaces without a universe disjunct.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/empty1.cc; tests/Powerset/universe1.cc.
-
2. Affine dimension of a pointset powerset UID: PPL-SPEC-001400 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_dimension shall return the affine dimension of the smallest affine space containing the union, using the affine hull of each nonempty disjunct. Empty shall have affine dimension zero. Distinct zero-dimensional disjuncts may jointly have positive affine dimension. Base minimized equality constraints shall describe each disjunct's affine hull for this calculation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Taking the maximum of disjunct dimensions would miss dimensions introduced by distinct affine offsets.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Check separated points, parallel affine subspaces, empty disjuncts and full dimension.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affinedimension1.cc.
-
3. Pointset-powerset structural shape queries UID: PPL-SPEC-001401 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Boundedness and discreteness shall hold exactly when they hold for all stored disjuncts. contains_integer_point shall hold when some disjunct contains one. is_topologically_closed shall reduce and report whether all remaining disjuncts are closed; false may be conservative when several nonclosed disjuncts jointly form a closed union. constrains(v) shall validate the variable, reduce, and report true for empty or when some remaining disjunct constrains v. It may conservatively report true for a union that is cylindrically unconstrained. Invalid v shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Finite unions preserve boundedness and discreteness, but closure and coordinate independence can emerge from a combined decomposition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_bounded() const; bool is_discrete() const; bool is_topologically_closed() const; bool constrains(Variable) const; bool contains_integer_point() const;
VERIFICATION_CRITERIA: Check finite separated points, unbounded members, open pieces covering a closed set, fractional grids and invalid variables.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/bounded1.cc; tests/Powerset/closed1.cc; tests/Powerset/containsintegerpoint1.cc; tests/Powerset/discrete1.cc.
-
4. Pointset-powerset structural set relations UID: PPL-SPEC-001402 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: contains(y) shall return true exactly when each stored y disjunct is contained in some receiver disjunct. strictly_contains(y) shall first reduce the receiver, then require each stored y disjunct to be strictly contained in some remaining receiver disjunct. The latter universal condition is true for an empty stored y collection, including an empty receiver. Neither result shall be substituted for strict geometric containment of represented unions. Dimension-incompatible operands shall throw std::invalid_argument.
is_disjoint_from(y) shall apply the selected base domain's disjointness predicate to each pair of retained receiver and source disjuncts. It shall return true exactly when every pair reports disjointness. For a base satisfying an exact disjointness contract, this shall decide whether the two represented unions have empty intersection, independently of their decomposition. An empty stored collection shall be disjoint from every dimension-compatible powerset. Stored bottom disjuncts and self-aliasing shall retain the base predicate's meaning. The query shall preserve the stored collections and represented values; logically const component queries may update their permitted caches. Incompatible ambient dimensions shall throw std::invalid_argument before pair visitation, including when both collections are empty.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Containment uses disjunctwise matching and its stated strictness condition. Disjointness is the conjunction of base-domain disjointness over all pairs; it does not require the union-coverage algorithm used for geometric inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool contains(const Pointset_Powerset&) const; bool strictly_contains(const Pointset_Powerset&) const; bool is_disjoint_from(const Pointset_Powerset&) const;
VERIFICATION_CRITERIA: Check split coverage, proper per-disjunct inclusion, equal decompositions, empty collections and dimension rejection. Check symmetric zero/positive- dimensional disjointness, strict endpoint contacts, one intersecting pair, self queries, retained empty components and rejected mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contains1.cc; tests/Powerset/disjoint1.cc; tests/Powerset/argumentadmission1.cc.
-
6. Pointset-powerset directional bound tests UID: PPL-SPEC-001404 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Directional bound tests shall reduce, then return true exactly when every remaining disjunct bounds the expression in that direction. Empty shall be bounded in either direction. For nonempty collections, the expression's ambient dimension shall be admitted by every disjunct; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A finite union has a finite directional bound exactly when every nonempty member has one.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check all-bounded, one-unbounded, empty and single-direction cases with fractional expressions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/bounds1.cc.
-
7. Pointset-powerset extrema and witnesses UID: PPL-SPEC-001405 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Maximization and minimization shall fail for empty or directionally unbounded unions, leaving all outputs unchanged on a false return. Otherwise they shall return the greatest disjunct supremum or least disjunct infimum as an exact rational with positive denominator. The attainment flag shall be true when at least one disjunct attaining the selected bound includes its optimum. A witness overload shall select an included point when the union attains the bound and otherwise a closure point of a contributing disjunct. The witness shall attain the returned bound in the corresponding union or its closure. Expression dimension admission and arithmetic shall follow the base extrema members; independently writable output objects shall be required.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Taking an extremum over a finite union requires selecting across all disjuncts, including attainment ties.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check separated bounds, rational ties with both attainment flags, witnesses, empty/unbounded failure sentinels and output independence.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/maxmin1.cc.
-
8. Pointset-powerset descriptor relations UID: PPL-SPEC-001406 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence relations shall combine disjunct relations: inclusion, disjointness and saturation shall each require that flag from every disjunct. Strict intersection shall be reported when a disjunct strictly intersects or when nonempty included and disjoint disjuncts occur. Empty disjuncts shall not supply a strict-intersection witness. Generator subsumption shall be reported when at least one disjunct subsumes it, using base generator semantics. Empty collections shall give the vacuous inclusion, disjointness and saturation flags and no generator subsumption. Invalid descriptor dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Relations over a union aggregate universal set properties and existential witnesses differently.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
Poly_Con_Relation relation_with(const Constraint&) const; Poly_Con_Relation relation_with(const Congruence&) const; Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check each relation flag, mixed included/disjoint disjuncts, redundant empties, points/directions and dimension rejection.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/relationwith1.cc.
-
1. Dimensioned pointset-powerset construction UID: PPL-SPEC-001392 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from n and kind shall create empty or universe in dimension n. Default shall be the zero-dimensional universe. Empty shall retain its ambient dimension with no disjuncts; universe shall contain a base universe disjunct. max_space_dimension shall report the base structural limit. Requests above that limit or using a reserved dimension shall throw std::length_error before extent-proportional storage. The limit shall not promise allocation success for every admitted dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The ambient space is part of an empty value and remains subject to the same structural limits.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
explicit Pointset_Powerset(dimension_type n=0, Degenerate_Element kind=UNIVERSE); static dimension_type max_space_dimension(); dimension_type space_dimension() const;
VERIFICATION_CRITERIA: Check both kinds in zero/positive dimensions, defaults and oversized/reserved dimensions without large allocation.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/fromspacedimension1.cc.
-
2. Pointset-powerset copying, assignment and exchange UID: PPL-SPEC-001393 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Same-type copying and assignment shall preserve dimension and represented union, including stored decomposition and reduction state, while permitting independent later mutations through copy-on-write disjuncts. Assignment shall return its receiver and support self-assignment. m_swap and swap shall exchange dimension and collection together. The same-type copy complexity argument shall not change exactness. Implicit destruction shall release all owned disjuncts and collection storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Exchanging only disjunct storage would separate the collection from its ambient dimension.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
Pointset_Powerset(const Pointset_Powerset&, Complexity_Class=ANY_COMPLEXITY); Pointset_Powerset& operator=(const Pointset_Powerset&); void m_swap(Pointset_Powerset&); template <typename PSET> void swap(Pointset_Powerset<PSET>&, Pointset_Powerset<PSET>&);
VERIFICATION_CRITERIA: Check later independent mutation, self-assignment/exchange, unlike dimensions and destruction of a shared owner.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/disjunct1.cc; tests/Powerset/powerset1.cc; tests/powersetlatticehistories1.cc.
-
3. Pointset-powerset construction from descriptor systems UID: PPL-SPEC-001394 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from constraints or congruences shall create the corresponding base-domain value as a singleton disjunct and inherit the system dimension. Source values shall remain unchanged. Admission, arithmetic, topology and exactness shall follow the base constructor; redundant or empty singleton storage may remain until reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The singleton construction must preserve base constructor semantics without introducing a hull over unrelated inputs.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
explicit Pointset_Powerset(const Constraint_System&); explicit Pointset_Powerset(const Congruence_System&);
VERIFICATION_CRITERIA: Check tautological, contradictory and dimensioned systems, strict boundaries and base rejection conditions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/fromcongruences1.cc; tests/Powerset/fromconstraints1.cc.
-
4. Pointset-powerset construction from a simple domain UID: PPL-SPEC-001395 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a simple domain shall preserve ambient dimension and contain its represented set. A nonempty source shall be converted using the base constructor with its applicable complexity contract and stored as a singleton. Known-empty sources may yield an empty collection. Conversion shall be exact when the destination base conversion is exact; unsupported discrete or relational information may be lost. External source values shall remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Converting a single pointset does not require disjunctive approximation beyond its base conversion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
explicit Pointset_Powerset(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Pointset_Powerset(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Pointset_Powerset(const Grid&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Pointset_Powerset(const BD_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Pointset_Powerset(const Octagonal_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit Pointset_Powerset(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check each source family, empty/universe, fractional/open boundaries, exact conversions and deliberate information loss.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/frombdshape1.cc; tests/Powerset/frombox1.cc; tests/Powerset/fromgrid1.cc; tests/Powerset/fromoctagonalshape1.cc; tests/Powerset/frompolyhedron1.cc.
-
5. Cross-base powerset conversion and assignment UID: PPL-SPEC-001396 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Cross-base construction shall convert each stored source disjunct with the destination base conversion and preserve ambient dimension. The resulting union shall contain the source union and be exact when every base conversion is exact. Assignment shall have the same conversion result and return its receiver. Destination reduction state shall be recomputed when conversion can make previously incomparable disjuncts comparable; a proven exact conversion may retain source reduction state. Neither source decomposition nor reduced cardinality shall be a geometric canonical form.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Approximate conversion can collapse distinctions that justified source nonredundancy.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH> explicit Pointset_Powerset(const Pointset_Powerset<QH>&, Complexity_Class=ANY_COMPLEXITY); template <typename QH> Pointset_Powerset& operator=(const Pointset_Powerset<QH>&);
VERIFICATION_CRITERIA: Check closed/NNC conversions in both directions, grid-to-polyhedron loss, exact shape conversions and reduction after comparable images.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/conversionreduction1.cc.
-
6. Pointset-powerset construction from a product UID: PPL-SPEC-001397 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a product shall convert both reduced component views to the destination base and intersect them, storing the resulting base value as a disjunct unless a known-empty shortcut applies. It shall preserve ambient dimension and overapproximate the product intersection. Exactness shall hold when both conversions and their base intersection are exact.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A product represents conjunction, so conversion must intersect rather than choose or join its components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH1, typename QH2, typename R> explicit Pointset_Powerset(const Partially_Reduced_Product<QH1,QH2,R>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use products whose components contribute independent restrictions and compare the converted intersection; include known empty.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Partially_Reduced_Product/fromproduct1.cc; tests/Powerset/contractvalues1.cc.
-
7. Insertion of pointset disjuncts UID: PPL-SPEC-001398 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_disjunct(p) shall add a value copy and represent union with p. It shall require exactly the receiver dimension and throw std::invalid_argument on a mismatch. Duplicates and empty disjuncts may remain stored until reduction; insertion shall mark reduction as unknown. Later mutation of the external source shall not alter the powerset.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Insertion is exact disjunction even when storage contains redundancies.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_disjunct(const PSET&);
VERIFICATION_CRITERIA: Check source independence, duplicate/empty insertion, arbitrary order and mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/disjunct1.cc.
-
1. Generic powerset construction and ownership UID: PPL-SPEC-001380 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Default construction shall create the empty collection. Construction from d shall store one copy of d; bottom may remain stored until reduction. Copying and assignment shall preserve the stored base-domain values and permit independent later mutations. Assignment shall return the receiver and support self-assignment. Exchange shall swap the entire collection and reduction state; self-exchange shall preserve the value. Destruction shall release owned storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Collection ownership must preserve the meaning of base elements independently of storage sharing within the base domain.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
Powerset(); explicit Powerset(const D&); Powerset(const Powerset&); ~Powerset(); Powerset& operator=(const Powerset&); void m_swap(Powerset&); template <typename D> void swap(Powerset<D>&, Powerset<D>&);
VERIFICATION_CRITERIA: Exercise default/singleton, bottom, copies, self-assignment, exchanges and independent mutations.
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/disjunct1.cc; tests/Powerset/powerset1.cc; tests/determinatehistories1.cc.
-
2. Generic powerset entailment and equality UID: PPL-SPEC-001381 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: definitely_entails(y) shall return true exactly when every stored receiver element entails some stored element of y. is_bottom shall reduce and test whether no disjunct remains. is_top shall reduce and test for the singleton top element. Equality shall compare the reduced collections up to order and base equality; inequality shall negate equality. This is powerset-domain equality, which may distinguish collections with equal unions. These operations may perform lazy reduction and invalidate removed-element iterators.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The Hoare ordering and reduced collection equality differ from geometric equality of unions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
bool definitely_entails(const Powerset&) const; bool is_top() const; bool is_bottom() const; template <typename D> bool operator==(const Powerset<D>&, const Powerset<D>&); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check permuted, redundant and empty collections, entailment direction and equal unions with different decompositions.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definitions 4–5 (Hoare ordering and semantic equivalence).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/entails1.cc; tests/Powerset/equals1.cc.
-
3. Generic powerset traversal and erasure UID: PPL-SPEC-001382 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: size and empty shall report stored collection cardinality without requiring semantic reduction. Forward and reverse iterators shall visit the stored disjuncts in list order and reverse list order, respectively. Iterator dereference shall expose a const base element. drop_disjunct shall erase a valid dereferenceable iterator and return its successor. drop_disjuncts shall erase a valid half-open range; clear shall erase all elements. Erasure shall invalidate erased-element iterators; operations that replace or reduce the collection may invalidate additional iterators. End iterators shall not be dereferenced or passed as single-element erasure positions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. The iterator adapter protocols in 🔗 1. Read-only iterator types, borrowed positions and value operations, 🔗 2. Read-only iterator element identity and const access and 🔗 3. Read-only iterator traversal and interoperable equality shall apply.
RATIONALE: Stored cardinality can include redundant or empty disjuncts and must remain distinct from semantic emptiness.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
typedef typename std::list<D>::size_type size_type; typedef D value_type; typedef iterator_to_const<std::list<D>> iterator; typedef const_iterator_to_const<std::list<D>> const_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; size_type size() const; bool empty() const; iterator begin(); iterator end(); const_iterator begin() const; const_iterator end() const; reverse_iterator rbegin(); reverse_iterator rend(); const_reverse_iterator rbegin() const; const_reverse_iterator rend() const; iterator drop_disjunct(iterator); void drop_disjuncts(iterator, iterator); void clear();
VERIFICATION_CRITERIA: Check forward/reverse and const traversal, erase successors, empty/full ranges and retained unrelated iterators.
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/disjunct1.cc; tests/Powerset/size1.cc; tests/determinatehistories1.cc.
-
5. Disjunctive insertion and exact powerset union UID: PPL-SPEC-001384 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_disjunct(d) shall append a value copy and denote union with d. least_upper_bound_assign and upper_bound_assign shall compute exact disjunctive union, with redundant elements removable. Self-union shall preserve the value. upper_bound_assign_if_exact shall perform that same operation and return true. No convexification shall be implicit in these union members.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The finite collection already represents disjunction exactly, without joining base elements.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
void add_disjunct(const D&); void least_upper_bound_assign(const Powerset&); void upper_bound_assign(const Powerset&); bool upper_bound_assign_if_exact(const Powerset&);
VERIFICATION_CRITERIA: Check disjoint/overlapping union, bottom, top, duplicate input, independent source ownership and self-union.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definition 5 (finite powerset join).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/disjunct1.cc; tests/Powerset/upperbound1.cc; tests/determinatehistories1.cc.
-
1. Read-only iterator types, borrowed positions and value operations UID: PPL-SPEC-001595 STATUS: APPROVED COMPONENT: CORE_DATA_STRUCTURES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: iterator_to_const<Container> shall store a Container::iterator; const_iterator_to_const<Container> shall store a Container::const_iterator. Both wrappers shall expose the five iterator traits of Container::const_iterator. Admitted containers shall provide bidirectional mutable and constant iterators, with constant-iterator reference and pointer types providing ordinary const element references and pointers. Each selected underlying iterator operation shall be well-formed and satisfy its own lifetime, range and synchronization conditions.
Default construction shall value-initialize the underlying position. Copying and assignment shall preserve the borrowed position without copying an element or taking ownership of the sequence. Assignment shall return a reference to its target. Conversion from a mutable wrapper to its constant counterpart shall preserve the position and element identity; the reverse conversion shall not be provided. Construction from an underlying position shall remain restricted to the declared friends. Destruction shall destroy the stored iterator without destroying the borrowed container or elements. Underlying exceptions shall propagate with the underlying operation's state guarantees and normal completed-subobject cleanup.
Position validity and invalidation shall follow the underlying container. Singular positions shall be used only for operations admitted for the underlying singular iterator; element access and movement shall require valid range positions. The adapters shall impose no numerical initialization prerequisite of their own. Element operations shall retain their prerequisites.
RATIONALE: Container traversal needs copyable borrowed positions while disjunct values remain protected by the container interface.
INTERFACE: Public header: <ppl.hh>; implementation names in Parma_Polyhedra_Library. Member excerpts apply to the indicated types.
template <typename Container> class iterator_to_const; template <typename Container> class const_iterator_to_const; // Both classes expose iterator_category, value_type, difference_type, // pointer and reference from the container's constant iterator traits. iterator_to_const(); iterator_to_const(const iterator_to_const&); iterator_to_const& operator=(const iterator_to_const&); const_iterator_to_const(); const_iterator_to_const(const const_iterator_to_const&); const_iterator_to_const& operator=(const const_iterator_to_const&) = default; const_iterator_to_const(const iterator_to_const<Container>&);
VERIFICATION_CRITERIA: Check aliases and C++20 bidirectional iterator concepts for the list-backed powerset instantiation. Exercise default/copy/assignment, self-assignment and conversion; reject reverse conversion at compile time. Inspect generic underlying-exception propagation and completed-subobject cleanup. Check that destroying wrappers preserves the collection and erasing an unrelated list element preserves retained positions.
SOURCE: src/iterator_to_const_defs.hh; src/iterator_to_const_inlines.hh; tests/readonlyiteratorsspec1.cc; src/Powerset_defs.hh.
-
Incoming link from: 3. Generic powerset traversal and erasure1
2. Read-only iterator element identity and const access UID: PPL-SPEC-001596 STATUS: APPROVED COMPONENT: CORE_DATA_STRUCTURES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: At a valid dereferenceable position, operator* shall return the underlying element as the declared constant reference, and operator-> shall return a pointer to that same element as the declared constant pointer. Both mutable-container and constant-container wrappers shall prevent direct mutation through their exposed reference and pointer types. Access shall preserve the stored position and the identity of the borrowed element, without copying it. The valid-use conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply. An end or singular iterator shall not be dereferenced.
RATIONALE: Read-only element access allows the container to maintain its representation invariants through controlled element replacement.
INTERFACE: Public header: <ppl.hh>; implementation names in Parma_Polyhedra_Library. Member excerpts apply to the indicated types.
// Members of both read-only iterator adapter classes: reference operator*() const; pointer operator->() const;
VERIFICATION_CRITERIA: Check reference/pointer constness at compile time and compare referent addresses from dereference, arrow, independent copies and const conversion. Check every position against an independently constructed value; verify that wrapper destruction preserves element addresses and collection contents.
SOURCE: src/iterator_to_const_defs.hh; src/iterator_to_const_inlines.hh; tests/readonlyiteratorsspec1.cc; src/Powerset_defs.hh.
-
Incoming link from: 3. Generic powerset traversal and erasure1
3. Read-only iterator traversal and interoperable equality UID: PPL-SPEC-001597 STATUS: APPROVED COMPONENT: CORE_DATA_STRUCTURES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: Prefix increment and decrement shall move the stored position by one underlying step and return a reference to the same wrapper. Postfix forms shall make the same movement and return a wrapper holding the preceding position. Copies shall thereafter move independently. Forward and reverse traversal shall follow the underlying sequence order without modifying its elements.
Equality shall compare the underlying positions; inequality shall be its Boolean complement. Mutable and constant wrappers of the same container type shall support both operand orders, with comparison through the corresponding constant position. Comparisons shall require positions in an underlying comparison domain, including the same sequence when required by that iterator. Movement shall remain within the underlying bidirectional range: increment of its end and decrement of its begin shall not be admitted. Decrement of end shall be admitted for a nonempty range. The conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply.
RATIONALE: Generic collection algorithms need ordinary bidirectional traversal and consistent equality across mutable and constant collection views.
INTERFACE: Public header: <ppl.hh>; implementation names in Parma_Polyhedra_Library. Member excerpts apply to the indicated types.
// Members of iterator_to_const<Container>: iterator_to_const& operator++(); iterator_to_const operator++(int); iterator_to_const& operator--(); iterator_to_const operator--(int); bool operator==(const iterator_to_const&) const; bool operator!=(const iterator_to_const&) const; // Members of const_iterator_to_const<Container>: const_iterator_to_const& operator++(); const_iterator_to_const operator++(int); const_iterator_to_const& operator--(); const_iterator_to_const operator--(int); bool operator==(const const_iterator_to_const&) const; bool operator!=(const const_iterator_to_const&) const; template <typename Container> bool operator==(const iterator_to_const<Container>&, const const_iterator_to_const<Container>&); template <typename Container> bool operator!=(const iterator_to_const<Container>&, const const_iterator_to_const<Container>&);
VERIFICATION_CRITERIA: Check prefix return identities, postfix old values, independent copied positions and both directions of each equality/inequality outcome. Traverse three distinguishable elements forward and backward, use end decrement and standard distance/reverse adapters, and check preserved sequence contents.
SOURCE: src/iterator_to_const_defs.hh; src/iterator_to_const_inlines.hh; tests/readonlyiteratorsspec1.cc; src/Powerset_defs.hh.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
Removing empty disjuncts or disjuncts contained in another disjunct shall preserve the represented union; deferred removal of such redundancies shall not change the powerset's mathematical meaning.
The implementation may retain redundant storage, so mathematical identity must not depend on an immediate canonical representation.
Verification covers powerset reduction and representation maintenance. Related obligations: 🔗 3. Preservation by representation-only changes.
Compare unions before and after reduction using independent membership or geometric-equality checks. Include repeated disjuncts, chains of containment, empty disjuncts and different insertion orders.
Bagnara98SCP | whole work (background)
doc/definitions.dox: The Powerset Domain and lazy Omega-reduction. src/Powerset_defs.hh: nonredundancy and reduction. src/Pointset_Powerset_defs.hh: reduction operations.
-
1. Exact pairwise powerset reduction UID: PPL-SPEC-001426 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Pairwise reduction shall first remove entailment redundancies, then repeatedly merge pairs for which the base upper_bound_assign_if_exact certifies exact union. The represented union shall be preserved, and no pair remaining at termination shall admit a further certified exact merge. It shall not promise a globally minimum disjunct count or an insertion-order-independent geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Exact pair merging can reduce decomposition beyond containment without filling gaps.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void pairwise_reduce();
VERIFICATION_CRITERIA: Check adjacent and separated intervals, repeated merging chains, duplicate/bottom members and order variations.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 8, Definition 18 (mergers and pairwise merging).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contractvalues1.cc; tests/Powerset/reduce1.cc.
-
5. Cross-base powerset conversion and assignment UID: PPL-SPEC-001396 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Cross-base construction shall convert each stored source disjunct with the destination base conversion and preserve ambient dimension. The resulting union shall contain the source union and be exact when every base conversion is exact. Assignment shall have the same conversion result and return its receiver. Destination reduction state shall be recomputed when conversion can make previously incomparable disjuncts comparable; a proven exact conversion may retain source reduction state. Neither source decomposition nor reduced cardinality shall be a geometric canonical form.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Approximate conversion can collapse distinctions that justified source nonredundancy.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH> explicit Pointset_Powerset(const Pointset_Powerset<QH>&, Complexity_Class=ANY_COMPLEXITY); template <typename QH> Pointset_Powerset& operator=(const Pointset_Powerset<QH>&);
VERIFICATION_CRITERIA: Check closed/NNC conversions in both directions, grid-to-polyhedron loss, exact shape conversions and reduction after comparable images.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/conversionreduction1.cc.
-
4. Omega reduction of generic powersets UID: PPL-SPEC-001383 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: omega_reduce shall remove bottom disjuncts and base-entailment redundancies, preserving the represented union and leaving no distinct pair related by base entailment. Equal disjuncts shall retain one representative. Repeated reduction shall preserve the value. is_omega_reduced shall report or establish whether that nonredundancy condition holds, without removing elements. Reduction shall not promise a unique geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Removing an included disjunct preserves union, whereas replacing several disjuncts by their upper bound can enlarge it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
void omega_reduce() const; bool is_omega_reduced() const;
VERIFICATION_CRITERIA: Check duplicate, bottom, containment chains, incomparable disjuncts and repeated reductions against an independent union.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definition 4 (nonredundancy and Omega reduction).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/cancellation1.cc; tests/powersetinterruptedproducts1.cc; tests/Powerset/reduce1.cc.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001429 Exact linear polyhedron partitioning (Specified by)
- PPL-SPEC-001430 Finite and approximate grid partitioning (Specified by)
- PPL-SPEC-001389 Determinate order and distinguished values (Specified by)
- PPL-SPEC-001399 Pointset-powerset empty and universe queries (Specified by)
- PPL-SPEC-001401 Pointset-powerset structural shape queries (Specified by)
- PPL-SPEC-001402 Pointset-powerset structural set relations (Specified by)
- PPL-SPEC-001403 Geometric powerset coverage and equality (Specified by)
- PPL-SPEC-001381 Generic powerset entailment and equality (Specified by)
Geometric coverage and geometric equality of powersets shall be defined on their represented unions, independently of the disjunct decomposition. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed powerset comparison advertised as geometric coverage or geometric equality shall compare those represented unions, without requiring a matching disjunct decomposition or componentwise equality.
The same set can have different finite decompositions, and structural entailment need not capture geometric coverage.
Verification covers powerset geometric comparison operations and their decision scope. Related obligations: 🔗 2. Interpretation of sufficient property tests, 🔗 13. Mathematical query capabilities and logical outcomes.
Compare independently equivalent unions with different decompositions, overlapping disjuncts and redundant elements. Include cases where a union covers another disjunct although no single member covers it.
BagnaraHZ06STTT | whole work (background) BagnaraHZ06STTTerratum | Whole erratum; corrected figures for the journal article.
src/Pointset_Powerset_defs.hh: geometric coverage and equality. doc/definitions.dox: Geometric Comparisons.
-
1. Exact linear polyhedron partitioning UID: PPL-SPEC-001429 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For compatible polyhedra p and q, linear_partition(p,q) shall return first denoting p∩q and a finite NNC-polyhedron powerset second denoting q⧵p. Its nonempty residue pieces shall be pairwise disjoint and disjoint from p. Together with first they shall partition q. Equalities shall split into complementary sides; strict inequalities shall use their non-strict complement. Input values shall remain unchanged. The template base shall admit exact constraint conjunction for the returned first component.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Excluded boundaries require NNC residues even when both inputs are closed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename PSET> std::pair<PSET, Pointset_Powerset<NNC_Polyhedron>> linear_partition(const PSET&, const PSET&);
VERIFICATION_CRITERIA: Check interval cuts, equalities, strict boundaries, empty/universe and independent disjointness/union reconstruction.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Polyhedron/linearpartition1.cc; tests/Powerset/difference1.cc.
-
2. Finite and approximate grid partitioning UID: PPL-SPEC-001430 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: approximate_partition(p,q,finite) shall return the exact grid intersection p∩q as first. When the residue is finitely representable by the procedure, finite shall be true and second shall be a pairwise-disjoint finite grid partition of q⧵p. Otherwise finite shall be false and second shall soundly contain that residue, possibly returning q itself. Failure of an early finite partition shall not omit later input congruences from first. If the full intersection is empty, returning q shall be an exact finite residue. Inputs shall be dimension-compatible and remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A grid complement may require infinitely many cosets; finite approximation must still compute the full intersection exactly.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
std::pair<Grid, Pointset_Powerset<Grid>> approximate_partition(const Grid&, const Grid&, bool& finite_partition);
VERIFICATION_CRITERIA: Check even/odd residues, inhomogeneous and rational cosets, equality cuts without finite residue and late contradictions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Grid/approximatepartition1.cc; tests/Powerset/difference1.cc; tests/Powerset/gridpartition1.cc.
-
2. Determinate order and distinguished values UID: PPL-SPEC-001389 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Entailment shall mean that the receiver's embedded pointset is contained in y; definite equivalence and equality shall use base equality. Shared representations may short-circuit these tests. Top and bottom shall mean base universe and empty, respectively. Inequality shall negate equality.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The adapter must preserve the ordering direction expected by the powerset construction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Determinate unless qualified otherwise.
bool definitely_entails(const Determinate&) const; bool is_definitely_equivalent_to(const Determinate&) const; bool is_top() const; bool is_bottom() const; template <typename PSET> bool operator==(const Determinate<PSET>&, const Determinate<PSET>&); template <typename PSET> bool operator!=(const Determinate<PSET>&, const Determinate<PSET>&);
VERIFICATION_CRITERIA: Check equal shared and unshared values, proper inclusion in both directions and empty/universe.
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; tests/Powerset/entails1.cc; tests/Powerset/equals1.cc; tests/determinatehistories1.cc.
-
1. Pointset-powerset empty and universe queries UID: PPL-SPEC-001399 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: is_empty shall return true exactly when every stored disjunct is empty, including the empty collection. is_universe shall return true exactly when a stored disjunct denotes universe; it may remove other disjuncts when such a disjunct is found. A union that covers the whole ambient space without a universe disjunct need not make this structural universe query true; geometric coverage shall be used for that semantic comparison.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A structural top test is cheaper than deciding whether several proper disjuncts jointly cover universe.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_empty() const; bool is_universe() const;
VERIFICATION_CRITERIA: Check empty and redundant collections, a universe disjunct and two complementary half-spaces without a universe disjunct.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/empty1.cc; tests/Powerset/universe1.cc.
-
3. Pointset-powerset structural shape queries UID: PPL-SPEC-001401 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Boundedness and discreteness shall hold exactly when they hold for all stored disjuncts. contains_integer_point shall hold when some disjunct contains one. is_topologically_closed shall reduce and report whether all remaining disjuncts are closed; false may be conservative when several nonclosed disjuncts jointly form a closed union. constrains(v) shall validate the variable, reduce, and report true for empty or when some remaining disjunct constrains v. It may conservatively report true for a union that is cylindrically unconstrained. Invalid v shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Finite unions preserve boundedness and discreteness, but closure and coordinate independence can emerge from a combined decomposition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_bounded() const; bool is_discrete() const; bool is_topologically_closed() const; bool constrains(Variable) const; bool contains_integer_point() const;
VERIFICATION_CRITERIA: Check finite separated points, unbounded members, open pieces covering a closed set, fractional grids and invalid variables.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/bounded1.cc; tests/Powerset/closed1.cc; tests/Powerset/containsintegerpoint1.cc; tests/Powerset/discrete1.cc.
-
4. Pointset-powerset structural set relations UID: PPL-SPEC-001402 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: contains(y) shall return true exactly when each stored y disjunct is contained in some receiver disjunct. strictly_contains(y) shall first reduce the receiver, then require each stored y disjunct to be strictly contained in some remaining receiver disjunct. The latter universal condition is true for an empty stored y collection, including an empty receiver. Neither result shall be substituted for strict geometric containment of represented unions. Dimension-incompatible operands shall throw std::invalid_argument.
is_disjoint_from(y) shall apply the selected base domain's disjointness predicate to each pair of retained receiver and source disjuncts. It shall return true exactly when every pair reports disjointness. For a base satisfying an exact disjointness contract, this shall decide whether the two represented unions have empty intersection, independently of their decomposition. An empty stored collection shall be disjoint from every dimension-compatible powerset. Stored bottom disjuncts and self-aliasing shall retain the base predicate's meaning. The query shall preserve the stored collections and represented values; logically const component queries may update their permitted caches. Incompatible ambient dimensions shall throw std::invalid_argument before pair visitation, including when both collections are empty.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Containment uses disjunctwise matching and its stated strictness condition. Disjointness is the conjunction of base-domain disjointness over all pairs; it does not require the union-coverage algorithm used for geometric inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool contains(const Pointset_Powerset&) const; bool strictly_contains(const Pointset_Powerset&) const; bool is_disjoint_from(const Pointset_Powerset&) const;
VERIFICATION_CRITERIA: Check split coverage, proper per-disjunct inclusion, equal decompositions, empty collections and dimension rejection. Check symmetric zero/positive- dimensional disjointness, strict endpoint contacts, one intersecting pair, self queries, retained empty components and rejected mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contains1.cc; tests/Powerset/disjoint1.cc; tests/Powerset/argumentadmission1.cc.
-
5. Geometric powerset coverage and equality UID: PPL-SPEC-001403 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: geometrically_covers(y) shall decide whether the receiver union contains the y union. geometrically_equals shall decide mutual geometric coverage, independently of decomposition or redundant storage. check_containment(p,ps) shall decide whether the union ps contains p. NNC polyhedra shall use exact polyhedral partitioning; supported convex base domains shall use exact conversion to NNC polyhedra. Grids shall use their specialized finite-coset coverage procedure. Arithmetic preconditions shall hold throughout all partitions. Ambient dimensions shall agree; incompatible operands shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A single target disjunct may be covered by several source disjuncts without any one covering it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool geometrically_covers(const Pointset_Powerset&) const; bool geometrically_equals(const Pointset_Powerset&) const; bool check_containment(const NNC_Polyhedron&, const Pointset_Powerset<NNC_Polyhedron>&); bool check_containment(const Grid&, const Pointset_Powerset<Grid>&); template <typename PSET> bool check_containment(const PSET&, const Pointset_Powerset<PSET>&);
VERIFICATION_CRITERIA: Check split and overlapping decompositions, holes and excluded boundaries, residue-class unions and invalid dimensions.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3 (union concretization and semantic equivalence).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contains1.cc; tests/Powerset/equals1.cc; tests/Powerset/gridpartition1.cc.
-
2. Generic powerset entailment and equality UID: PPL-SPEC-001381 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: definitely_entails(y) shall return true exactly when every stored receiver element entails some stored element of y. is_bottom shall reduce and test whether no disjunct remains. is_top shall reduce and test for the singleton top element. Equality shall compare the reduced collections up to order and base equality; inequality shall negate equality. This is powerset-domain equality, which may distinguish collections with equal unions. These operations may perform lazy reduction and invalidate removed-element iterators.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The Hoare ordering and reduced collection equality differ from geometric equality of unions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
bool definitely_entails(const Powerset&) const; bool is_top() const; bool is_bottom() const; template <typename D> bool operator==(const Powerset<D>&, const Powerset<D>&); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check permuted, redundant and empty collections, entailment direction and equal unions with different decompositions.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definitions 4–5 (Hoare ordering and semantic equivalence).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/entails1.cc; tests/Powerset/equals1.cc.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001051 Box conversion from partially reduced products (Specified by)
- PPL-SPEC-001464 Reloadable product representations (Specified by)
- PPL-SPEC-001465 Product diagnostics, display, memory and hash (Specified by)
- PPL-SPEC-001379 Compound-domain values and valid use (Specified by)
- PPL-SPEC-001397 Pointset-powerset construction from a product (Specified by)
- PPL-SPEC-001452 Componentwise product image (Specified by)
- PPL-SPEC-001453 Componentwise product preimage (Specified by)
- PPL-SPEC-001454 Componentwise product generalized image (Specified by)
- PPL-SPEC-001455 Componentwise product generalized preimage (Specified by)
- PPL-SPEC-001456 Componentwise product bounded image (Specified by)
- PPL-SPEC-001457 Componentwise product bounded preimage (Specified by)
- PPL-SPEC-001458 Product expression-to-expression affine relations (Specified by)
- PPL-SPEC-001463 Product component widening and convergence scope (Specified by)
- PPL-SPEC-001459 Product coordinate operations (Specified by)
- PPL-SPEC-001460 Product concatenation (Specified by)
- PPL-SPEC-001448 Product descriptor addition, refinement and recycling (Specified by)
- PPL-SPEC-001449 Product intersection (Specified by)
- PPL-SPEC-001450 Product component joins and component exactness (Specified by)
- PPL-SPEC-001451 Sound product set difference (Specified by)
- PPL-SPEC-001461 Product closure and time elapse (Specified by)
- PPL-SPEC-001462 Product integer-coordinate tightening (Specified by)
- PPL-SPEC-001443 Product constraint and congruence exports (Specified by)
- PPL-SPEC-001444 Component-based product property tests (Specified by)
- PPL-SPEC-001445 Component-based product descriptor relations (Specified by)
- PPL-SPEC-001446 Component-selected product bounds and witnesses (Specified by)
- PPL-SPEC-001447 Product component order and equality (Specified by)
- PPL-SPEC-001438 Direct and smash reduction policies (Specified by)
- PPL-SPEC-001439 Constraint-sharing product reduction (Specified by)
- PPL-SPEC-001440 Congruence-sharing product reduction (Specified by)
- PPL-SPEC-001441 Shape-preserving product reduction (Specified by)
- PPL-SPEC-001442 Lazy product reduction and component views (Specified by)
- PPL-SPEC-001433 Partially reduced product values and policy aliases (Specified by)
- PPL-SPEC-001434 Dimensioned product construction and extent (Specified by)
- PPL-SPEC-001435 Product copying, assignment and exchange (Specified by)
- PPL-SPEC-001436 Product construction from descriptor systems (Specified by)
- PPL-SPEC-001437 Conversions to a product (Specified by)
For supported component domains describing the same ambient space, their product shall denote the intersection of the component sets. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed application of a supported reduction policy shall preserve that intersection. A policy may perform no reduction or may exchange information between components.
Reduction improves available information without changing the product's concretization. Componentwise query success alone need not prove a fact about the entire intersection.
Verification covers product value types, reduction policies and intersection-preservation guarantees. Related obligations: 🔗 6. Compound extrapolation and finite convergence, 🔗 14. Directional bounds, extrema and attainment.
Independently derive intersections for supported component pairs and check them before and after each reduction policy. Include disjoint nonempty components, equalities derivable through information exchange and a policy that performs no reduction.
CousotC79 | whole work (background)
src/Partially_Reduced_Product_defs.hh: concretization, reduction policies and query limitations. src/Partially_Reduced_Product_templates.hh: reduction behavior.
-
8. Box conversion from partially reduced products UID: PPL-SPEC-001051 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(dp,complexity) shall convert each component domain of dp into the target box profile under the supplied admitted complexity value, then take their same-profile box intersection. The result shall contain every point in the product's represented component intersection. Each component conversion shall retain its own admission, numerical and complexity prerequisites.
Even when both component conversions are individually least, their box intersection need not be the least box of the product: constraints correlating coordinates across components may be lost. No additional reduction or global optimality guarantee shall be inferred. Empty component enclosures shall yield empty; an empty semantic product whose separate component boxes overlap may yield a nonempty approximation. The default complexity value shall be ANY_COMPLEXITY.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: Projecting separate component sets and then intersecting coordinate enclosures is sound, while shared relational information can make the exact product projection smaller.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
template <typename D1, typename D2, typename R> explicit Box(const Partially_Reduced_Product<D1,D2,R>& dp, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Independently construct component Cartesian enclosures and intersect them. Include agreeing/conflicting coordinate bounds, relational intersections tighter than the intersection of hulls, empty and zero-dimensional products, several reductions/components, all admitted complexity values and source value preservation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/frompartiallyreducedproduct1.cc.
-
3. Reloadable product representations UID: PPL-SPEC-001464 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000446 Reloadable textual representations (Specifies)
STATEMENT: Dumping shall write the product label, reduction marker and both base representations. Loading shall accept a complete representation only when both base loads succeed, component dimensions agree and component invariants hold. Malformed, truncated or structurally inconsistent input shall return false. A successful round trip shall preserve the component pair's intersection and common dimension. A loaded reduction marker shall not bypass the requirement that a pair be admitted by its selected policy. False shall not promise rollback or further queries; surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Human display shall be distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Two individually valid component encodings do not form a valid product when their dimensions differ.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void ascii_dump(std::ostream&) const; bool ascii_load(std::istream&); void print() const;
VERIFICATION_CRITERIA: Check every policy round trip, unlike component dimensions, marker/label errors, all token truncations and valid-prefix trailing content.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/asciidumpload1.cc; tests/Partially_Reduced_Product/contractvalues1.cc.
-
4. Product diagnostics, display, memory and hash UID: PPL-SPEC-001465 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: OK shall require matching component dimensions and both component invariants, without certifying policy application or a reduction fixed point. External memory shall sum component external estimates; total shall add sizeof(*this). Hash shall depend on ambient dimension and agree for equal products without promising collision resistance. Stream insertion shall label and display both components and return the supplied stream.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: An invariant check is structural and must not silently strengthen a lazy reduction flag into a fixed-point claim.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool OK() const; memory_size_type external_memory_in_bytes() const; memory_size_type total_memory_in_bytes() const; int32_t hash_code() const; template <typename D1, typename D2, typename R> std::ostream& IO_Operators::operator<<(std::ostream&, const Partially_Reduced_Product<D1,D2,R>&);
VERIFICATION_CRITERIA: Check byte relationships, stream identity/labels, hash equality and diagnostics before/after policy application.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/directproduct1.cc.
-
Incoming links from: 1. Exact linear polyhedron partitioning 2. Finite and approximate grid partitioning 1. Reloadable pointset-powerset representations 2. Pointset-powerset diagnostics, display and hash 3. Reloadable product representations 4. Product diagnostics, display, memory and hash 1. Determinate values and copy-on-write ownership 2. Determinate order and distinguished values 3. Determinate operations and binary lifting 4. Determinate display, invariants and memory 1. Lifted powerset image 2. Lifted powerset preimage 3. Lifted powerset generalized image 4. Lifted powerset generalized preimage 5. Lifted powerset bounded image 6. Lifted powerset bounded preimage 7. Lifted expression-to-expression affine relations 1. Exact pairwise powerset reduction 2. BGP99 powerset extrapolation 3. Certificate-based powerset widening 1. Pointset-powerset coordinate growth 2. Pointset-powerset projection and coordinate mapping 3. Pointset-powerset dimension expansion and folding 4. Pointset-powerset concatenation 1. Lifted constraint addition and refinement 2. Lifted congruence addition and refinement 3. Lifted cylindrification 4. Lifted pointset-powerset intersection 5. Pointset-powerset set difference 6. Meet-preserving powerset context simplification 7. Powerset topological closure and time elapse 8. Powerset integer restriction and wrapping 1. Pointset-powerset empty and universe queries 2. Affine dimension of a pointset powerset 3. Pointset-powerset structural shape queries 4. Pointset-powerset structural set relations 5. Geometric powerset coverage and equality 6. Pointset-powerset directional bound tests 7. Pointset-powerset extrema and witnesses 8. Pointset-powerset descriptor relations 1. Dimensioned pointset-powerset construction 2. Pointset-powerset copying, assignment and exchange 3. Pointset-powerset construction from descriptor systems 4. Pointset-powerset construction from a simple domain 5. Cross-base powerset conversion and assignment 6. Pointset-powerset construction from a product 7. Insertion of pointset disjuncts 1. Generic powerset construction and ownership 2. Generic powerset entailment and equality 3. Generic powerset traversal and erasure 4. Omega reduction of generic powersets 5. Disjunctive insertion and exact powerset union 6. Pairwise lifting and generic powerset meet 7. Explicit powerset collapse 8. Generic powerset diagnostics and memory accounting 1. Componentwise product image 2. Componentwise product preimage 3. Componentwise product generalized image 4. Componentwise product generalized preimage 5. Componentwise product bounded image 6. Componentwise product bounded preimage 7. Product expression-to-expression affine relations 1. Product component widening and convergence scope 1. Product coordinate operations 2. Product concatenation 1. Product descriptor addition, refinement and recycling 2. Product intersection 3. Product component joins and component exactness 4. Sound product set difference 5. Product closure and time elapse 6. Product integer-coordinate tightening 1. Product constraint and congruence exports 2. Component-based product property tests 3. Component-based product descriptor relations 4. Component-selected product bounds and witnesses 5. Product component order and equality 1. Direct and smash reduction policies 2. Constraint-sharing product reduction 3. Congruence-sharing product reduction 4. Shape-preserving product reduction 5. Lazy product reduction and component views 1. Partially reduced product values and policy aliases 2. Dimensioned product construction and extent 3. Product copying, assignment and exchange 4. Product construction from descriptor systems 5. Conversions to a product86
1. Compound-domain values and valid use UID: PPL-SPEC-001379 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Pointset_Powerset<PSET> shall denote ⋃iγ(pi). An empty collection shall denote empty. Partially_Reduced_Product<D1,D2,R> shall denote γ1(d1)∩γ2(d2) in a common real ambient space. Powerset<D> shall implement the finite powerset construction on a base domain with bottom, top, entailment, equality, upper bound and meet. Determinate<PSET> shall adapt a supported pointset domain to that base interface without changing its represented set.
A component type shall supply the operations used by an instantiated member, with their stated soundness, precision, dimension and arithmetic conditions. Every intermediate arithmetic operation shall meet its coefficient profile's range and resource conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; indices and dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, function objects and streams shall remain live and valid throughout their uses. Independently written outputs shall not alias each other or input storage, except where explicitly permitted. The denominator-taking affine wrappers shall admit a scalar borrowed from the receiver at entry as specified below.
Value copies shall permit independent subsequent mutations. Accesses that can change shared representations or caches shall be externally synchronized. Numerical, allocation and resource exceptions may propagate. Failed construction shall release acquired resources. For existing objects no general rollback or further-query guarantee shall be assumed after an exception; surviving owned resources shall remain destructible.
RATIONALE: Disjunction and conjunction have different concretizations and different lifting laws. Component contracts determine which operations can be instantiated.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D> class Powerset; template <typename PSET> class Determinate; template <typename PSET> class Pointset_Powerset; template <typename D1, typename D2, typename R> class Partially_Reduced_Product;
VERIFICATION_CRITERIA: Check independent union and intersection examples, empty collections, dimensioned distinguished values, independent copies, coefficient admission and ownership during failures.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definitions 4–5 (finite powersets and union concretization). CousotC79 | whole work (background on products).
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Partially_Reduced_Product/directproduct1.cc; tests/Powerset/powerset1.cc.
-
6. Pointset-powerset construction from a product UID: PPL-SPEC-001397 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a product shall convert both reduced component views to the destination base and intersect them, storing the resulting base value as a disjunct unless a known-empty shortcut applies. It shall preserve ambient dimension and overapproximate the product intersection. Exactness shall hold when both conversions and their base intersection are exact.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A product represents conjunction, so conversion must intersect rather than choose or join its components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH1, typename QH2, typename R> explicit Pointset_Powerset(const Partially_Reduced_Product<QH1,QH2,R>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use products whose components contribute independent restrictions and compare the converted intersection; include known empty.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Partially_Reduced_Product/fromproduct1.cc; tests/Powerset/contractvalues1.cc.
-
1. Componentwise product image UID: PPL-SPEC-001452 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image shall apply the base transfer relation described in 🔗 1. Lifted powerset image to both components and mark reduction unknown. The resulting intersection shall soundly contain the image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
2. Componentwise product preimage UID: PPL-SPEC-001453 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage shall apply the base transfer relation described in 🔗 2. Lifted powerset preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
3. Componentwise product generalized image UID: PPL-SPEC-001454 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_image shall apply the base transfer relation described in 🔗 3. Lifted powerset generalized image to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
4. Componentwise product generalized preimage UID: PPL-SPEC-001455 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage shall apply the base transfer relation described in 🔗 4. Lifted powerset generalized preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
5. Componentwise product bounded image UID: PPL-SPEC-001456 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image shall apply the base transfer relation described in 🔗 5. Lifted powerset bounded image to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_image(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
6. Componentwise product bounded preimage UID: PPL-SPEC-001457 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage shall apply the base transfer relation described in 🔗 6. Lifted powerset bounded preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_preimage(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
7. Product expression-to-expression affine relations UID: PPL-SPEC-001458 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expression overloads shall apply the base generalized relation in 🔗 7. Lifted expression-to-expression affine relations to each component and mark reduction unknown. The resulting intersection shall soundly contain the corresponding image or preimage of the old product intersection, with no extra precision claim based only on component exactness. Overlapping expression supports, admissible relation symbols, dimensions and topology shall follow both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Independent component witnesses can lose correlations even for exact base relations.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(const Linear_Expression&, Relation_Symbol, const Linear_Expression&); void generalized_affine_preimage(const Linear_Expression&, Relation_Symbol, const Linear_Expression&);
VERIFICATION_CRITERIA: Check shared/disjoint variable supports, constants, componentwise equivalence and sound concrete relation samples.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
1. Product component widening and convergence scope UID: PPL-SPEC-001463 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000433 Rational-grid widening facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The set represented by y shall be contained in the set represented by the receiver. Default widening shall reduce both operands and mark the receiver's reduction unknown. If a reduced receiver component does not contain the corresponding reduced component of y, replace that receiver component with their upper bound before component widening. Both default component widenings shall receive the same optional token budget. The resulting intersection shall contain both input products.
widening_assign_with(y, widening1, widening2, tokens) shall perform the same input reductions and receiver reduction-state invalidation. The reduced component pairs shall already meet the selected preconditions. It shall invoke widening1 on the first pair of components before invoking widening2 on the second pair. Both shall receive the same optional token pointer. Callables shall be forwarded with their supplied value categories, without copying or storing them. They shall meet the selected component widening's preconditions and preserve its ambient dimension and upper-bound guarantees.
If a component callable throws, the exception shall propagate, subsequent callables shall not be invoked, and earlier component and token effects shall remain. The receiver shall be marked for lazy reduction. No whole-operation rollback shall be promised. The existing widening_assign member shall remain unambiguous when taking its address.
For direct and smash policies, the component convergence guarantees shall be preserved under their iteration and finite-delay conditions. For information- sharing policies, this operation shall be treated as componentwise extrapolation unless a separate combined convergence proof is supplied: reduction between iterations can restore discarded bounds. To use component convergence with sharing operations, a separate direct-product widening history shall remain free of sharing reduction, with reduced copies used for information exchange.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Restoring a discarded constraint through another component can prevent finite stabilization. Caller-selected component widenings expose the component domains' precision choices without changing the default operation or storing additional state in the product.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void widening_assign(const Partially_Reduced_Product&, unsigned* tokens=nullptr); template <typename Widening1, typename Widening2> void widening_assign_with(const Partially_Reduced_Product&, Widening1&&, Widening2&&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check upper-bound inclusion, shared token changes, direct/smash stabilization, and default widening after a join that leaves incomparable reduced components; review history separation. Compare selected component algorithms with independent component calls using the same token budget. Check lvalue and rvalue noncopyable callables, component invocation order, exceptions in either callable, deferred reduction after exceptions, default member-address compatibility and self-aliasing.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/widening1.cc; tests/Partially_Reduced_Product/selectedwidenings1.cc.
-
1. Product coordinate operations UID: PPL-SPEC-001459 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Existential coordinate operations can lose conjunction correlations when applied independently to components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void unconstrain(Variable); void unconstrain(const Variables_Set&); void add_space_dimensions_and_embed(dimension_type); void add_space_dimensions_and_project(dimension_type); void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); template <typename Partial_Function> void map_space_dimensions(const Partial_Function&); void expand_space_dimension(Variable, dimension_type); void fold_space_dimensions(const Variables_Set&, Variable);
VERIFICATION_CRITERIA: Check all members, coordinate order and dimensions, relational projection examples, empty values, invalid variables and growth bounds.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/spacedims1.cc.
-
2. Product concatenation UID: PPL-SPEC-001460 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Concatenation shall concatenate corresponding components in receiver- then-argument coordinate order. The resulting common dimension shall be the sum, subject to both structural limits. With exact component concatenation the intersection shall represent the exact Cartesian product of the input product sets, because the coordinate blocks are independent. Self-concatenation shall be supported. Lazy reduction state shall be retained only when both operands are already marked reduced; component limit errors may propagate without rollback.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Cartesian products on disjoint coordinate blocks commute with component conjunction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void concatenate_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check coordinate order, separate restrictions, empty and self inputs, reduction-state combinations and excessive extents.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/concatenate1.cc.
-
1. Product descriptor addition, refinement and recycling UID: PPL-SPEC-001448 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Ordinary addition and refinement shall apply the corresponding operation to both components and mark reduction unknown. The intersection shall retain all source points satisfying the supplied restrictions, with component exactness and admission conditions. Exact-addition members shall require admission by each called component. Recycling shall first refine the nonconsuming component, then pass the system to a component advertising recycling; if neither advertises it, both shall use ordinary addition. The source may be consumed only after the other component has read it. Failure shall not promise rollback of either component or recycled input.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Information must reach both components before an input system is consumed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&); void add_recycled_constraints(Constraint_System&); void add_recycled_congruences(Congruence_System&);
VERIFICATION_CRITERIA: Check addition/refinement, unsupported rows, recycling into either component and no-recycling paths, source consumption and post-mutation reduction.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/addcongruences1.cc; tests/Partially_Reduced_Product/refinewithcongruences1.cc; tests/Partially_Reduced_Product/refinewithconstraints1.cc.
-
2. Product intersection UID: PPL-SPEC-001449 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Intersection shall intersect corresponding component pairs and mark reduction unknown. With exact component intersections, associativity of conjunction shall make the result the exact intersection of the represented products; approximate component intersections shall retain their soundness. Self-intersection shall be supported. Components shall have compatible ambient dimensions or throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Unlike general images, intersection can be regrouped componentwise without losing cross-component information.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void intersection_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Independently derive four-way intersections, including independent component restrictions and self-aliasing.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/intersection1.cc.
-
3. Product component joins and component exactness UID: PPL-SPEC-001450 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Upper bound shall reduce both products, join corresponding components and mark reduction unknown. The resulting intersection shall contain both input products. The conditional member shall return true only if both component joins certify exactness; on false, the represented receiver shall remain unchanged apart from permitted reduction/cache changes. Exactness of each component join shall not imply exact union of the represented products. Self-join shall preserve value; dimension mismatch shall follow component std::invalid_argument admission.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersection of two component unions can include cross-combinations absent from the union of the original products.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void upper_bound_assign(const Partially_Reduced_Product&); bool upper_bound_assign_if_exact(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check both exactness failure paths, source/receiver unchanged controls, lazy policy reapplication and cross-combination precision loss.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/upperbound1.cc.
-
4. Sound product set difference UID: PPL-SPEC-001451 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Difference shall reduce both operands and form sound approximations of (A1⧵B1)∩A2 and A1∩(A2⧵B2), then take an upper bound of the nonempty alternatives. Known-empty alternatives shall not contribute unrelated nonempty components to that join. The result shall contain the exact product difference; component subtraction and join may lose precision. Self-subtraction shall give empty. Subtracting empty shall preserve the minuend, and empty minuend shall remain empty. Dimension mismatch shall still reach the documented component exception. Mutated alternatives and joins shall be marked for lazy reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: De Morgan expansion makes difference a union of two product alternatives; subtracting both components simultaneously would lose valid states.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void difference_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Independently enumerate small product differences, both alternatives, empty/self inputs, no-reduction and sharing policies.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/difference1.cc; tests/Partially_Reduced_Product/directproduct3.cc.
-
5. Product closure and time elapse UID: PPL-SPEC-001461 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Closure shall apply each component's closure. Time elapse shall reduce both products, then time-elapse corresponding component pairs. The resulting intersection shall soundly contain the respective closure or time-elapse set of the original product. Component exactness shall not imply concrete product exactness, since closure or existential elapsed-time witnesses need not commute with intersection. Common ambient dimension and base arithmetic/admission conditions shall apply.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Independent elapsed-time or limiting witnesses can overapproximate a jointly constrained transition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void topological_closure_assign(); void time_elapse_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check open/closed component boundaries, velocities, different component precision, empty values and sound concrete samples.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/timeelapse1.cc; tests/Partially_Reduced_Product/topclosure1.cc.
-
6. Product integer-coordinate tightening UID: PPL-SPEC-001462 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Integer tightening shall reduce first, apply the corresponding base restriction to both components and mark reduction unknown. The result shall lie within the old product and retain every old point integral in all selected coordinates. The overload without a variable set shall select all coordinates. The complexity argument shall limit the base algorithms used; no optimal integer hull or complete integer-feasibility decision shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Each component can tighten safely without proving a complete integer abstraction of their intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check partial/all coordinate selection, fractional boundaries, preserved integral points and component-policy reapplication.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/dropsomenonintegerpoints1.cc.
-
1. Product constraint and congruence exports UID: PPL-SPEC-001443 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence exports shall reduce, combine the systems exported by both components and return owned systems. The systems shall soundly overapproximate the product; neither kind alone need express all information in the intersection. Minimized constraints shall minimize their combined polyhedron using NNC topology when strict rows occur; minimized congruences shall minimize the combined grid. Returned systems shall remain independent of later product mutation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Conjoining sound component exports preserves all product points, but can lose information unavailable in that descriptor language.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
Constraint_System constraints() const; Constraint_System minimized_constraints() const; Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Check distinct restrictions from both donors, duplicate/strict rows, independent returned values and modular information loss in constraints.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/congruences1.cc; tests/Partially_Reduced_Product/constraints1.cc.
-
2. Component-based product property tests UID: PPL-SPEC-001444 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: After policy reduction, emptiness shall test whether either component is empty; boundedness and discreteness shall test whether either component has the property; topological closure shall test whether both do. Universe shall test whether both components are universe. Disjointness shall test whether corresponding first components or corresponding second components are disjoint. Directional bound tests and constrains shall use the logical OR of the two component results. Except for exact universe characterization, these shall retain their stated component scope: a negative emptiness, boundedness, discreteness or disjointness result shall not refute the corresponding concrete property of the intersection. Component dimension/variable admission shall apply; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Component facts can establish properties of an intersection without deciding all facts jointly implied by both components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_discrete() const; bool is_bounded() const; bool is_disjoint_from(const Partially_Reduced_Product&) const; bool constrains(Variable) const; bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check truth tables, empty intersections with nonempty components, jointly bounded intersections, directional bounds and invalid variables.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/bounded1.cc; tests/Partially_Reduced_Product/bounds1.cc; tests/Partially_Reduced_Product/discrete1.cc; tests/Partially_Reduced_Product/disjoint1.cc; tests/Partially_Reduced_Product/isempty1.cc; tests/Partially_Reduced_Product/isuniverse1.cc; tests/Partially_Reduced_Product/topclosed1.cc.
-
3. Component-based product descriptor relations UID: PPL-SPEC-001445 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence relations shall reduce, then include each is_included, is_disjoint or saturates flag when either component reports it. They shall not infer strict intersection from component strict intersection. Generator subsumption shall require subsumption by both components. The flags shall retain the base descriptor meanings and may be incomplete for the full intersection. Descriptor dimension incompatibility shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A property true of either superset component holds for the product, while a witness must satisfy both components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
Poly_Con_Relation relation_with(const Constraint&) const; Poly_Con_Relation relation_with(const Congruence&) const; Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check each donor flag, mixed component relations, absent strict-intersection inference, generator agreement and dimension rejection.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/relations1.cc.
-
4. Component-selected product bounds and witnesses UID: PPL-SPEC-001446 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Extremum queries shall reduce and return false if a component is empty or neither component provides a directional bound; outputs shall then remain unchanged. Otherwise maximization shall choose the smaller available component supremum and minimization the larger component infimum. Equal bounds shall prefer a component not attaining that bound. Success shall return its rational bound with positive denominator, attainment flag and, for witness overloads, its corresponding point or closure point. Neither success, attainment nor the witness shall establish nonemptiness or optimum attainment in the product intersection; the selected witness need not satisfy the other component. Comparison of representable component bounds shall be exact even when their cross-products exceed the configured coefficient range. Expression dimensions and independently writable outputs shall satisfy both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersecting components may improve their bounds jointly, so choosing the best individual bound need not solve optimization over the intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check both donor directions, sole-bound donors, equal open/closed ties, rational comparison with cross-products exceeding the coefficient range, failure sentinels and witnesses outside the other component.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/maxmin1.cc.
-
5. Product component order and equality UID: PPL-SPEC-001447 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Containment shall reduce both operands and require containment for both corresponding component pairs. Strict containment shall additionally require strictness for at least one pair. Equality shall require both component equalities after reduction; inequality shall negate it. These are component-order and equality tests, which may distinguish equal represented intersections. Componentwise strictness shall not prove strictness of concrete intersection inclusion. Dimension admission shall follow the component tests.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The product representation can carry redundant restrictions distributed differently between components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool contains(const Partially_Reduced_Product&) const; bool strictly_contains(const Partially_Reduced_Product&) const; template <typename D1, typename D2, typename R> bool operator==(const Partially_Reduced_Product<D1,D2,R>&, const Partially_Reduced_Product<D1,D2,R>&); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check proper component inclusion, concrete-equal pairs with different components, self-comparison and dimension errors.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contains1.cc; tests/Partially_Reduced_Product/equals1.cc.
-
1. Direct and smash reduction policies UID: PPL-SPEC-001438 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: No_Reduction shall leave both components unchanged. Smash_Reduction shall set both components empty when either is empty, otherwise preserve them. Both policies shall preserve common dimension and the represented intersection. Policy objects shall be stateless, default-constructible and destructible. Direct policy application shall require valid same-dimensional components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Propagating known emptiness is exact and does not require exchanging numerical constraints.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D1, typename D2> class No_Reduction { public: No_Reduction(); ~No_Reduction(); void product_reduce(D1&,D2&); }; template <typename D1, typename D2> class Smash_Reduction { public: Smash_Reduction(); ~Smash_Reduction(); void product_reduce(D1&,D2&); };
VERIFICATION_CRITERIA: Check both empty-component directions, both empty and both nonempty, including different component types.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contractvalues1.cc; tests/Partially_Reduced_Product/directproduct1.cc; tests/Partially_Reduced_Product/smashproduct1.cc.
-
2. Constraint-sharing product reduction UID: PPL-SPEC-001439 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint reduction shall propagate known emptiness, then refine the first component with the second's minimized constraints and the second with the resulting first component's minimized constraints. A newly detected empty component shall make both empty. Every shared constraint shall be implied by its donor and refinement shall preserve all points satisfying it, so the represented intersection and dimension shall be preserved. Application shall not promise a full reduced-product fixed point or exact concrete emptiness. Policy construction and destruction shall have no mathematical effect.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Adding a donor consequence to the other component preserves intersection even if information exchange remains incomplete.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D1, typename D2> class Constraints_Reduction { public: Constraints_Reduction(); ~Constraints_Reduction(); void product_reduce(D1&,D2&); };
VERIFICATION_CRITERIA: Check both donor directions, new equalities, detected contradictions and repeated application without assuming a fixed point.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/constraintsproduct1.cc; tests/Partially_Reduced_Product/contractvalues1.cc.
-
3. Congruence-sharing product reduction UID: PPL-SPEC-001440 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence reduction shall propagate known emptiness and process the minimized congruences of each donor component. Equality congruences shall refine the other component. For a proper congruence e ∈ mZ, finite bounds from the other component shall identify admitted hyperplanes e = km. If no such hyperplane can intersect, both shall become empty; if exactly one can intersect, its equality shall refine both. Otherwise the procedure may leave them unchanged. Strict endpoint exclusion and signed remainders shall be respected. The represented intersection and common dimension shall be preserved; complete reduction shall not be promised. Donors shall provide minimized valid congruences, and bound arithmetic shall meet all intermediate coefficient conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A congruence restricts an affine expression to spaced hyperplanes; finite bounds can isolate none or one without enumerating all points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D1, typename D2> class Congruences_Reduction { public: Congruences_Reduction(); ~Congruences_Reduction(); void product_reduce(D1&,D2&); };
VERIFICATION_CRITERIA: Independently enumerate small signed/rational intervals and residue classes, with open/closed endpoints and zero/one/many admitted hyperplanes in both component orders.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/congruencesproduct1.cc; tests/Partially_Reduced_Product/contractvalues1.cc.
-
4. Shape-preserving product reduction UID: PPL-SPEC-001441 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Shape-preserving reduction shall first perform congruence reduction, then use frequencies from one component to tighten the other's inequality bounds to admitted affine-expression values, in both directions. It shall share resulting equalities using constraint reduction. Each tightening shall be implied by the other component, preserving the represented intersection. Except for equalities introduced by congruence reduction and subsequent constraint sharing, tightening shall retain inequality directions and adjust bounds. A strict inequality whose boundary is an admitted discrete level shall advance by one full positive period even when its closest residue is zero. A strict inequality with a constant zero image shall exclude the whole intersection. Unsupported frequency queries may leave restrictions unchanged. Common dimension and all intermediate arithmetic preconditions shall hold.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Frequency information can move a bound to the next admitted value without changing the represented intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.
template <typename D1, typename D2> class Shape_Preserving_Reduction { public: Shape_Preserving_Reduction(); ~Shape_Preserving_Reduction(); void product_reduce(D1&,D2&); };
VERIFICATION_CRITERIA: Check rational frequencies, positive/negative offsets, strict inequalities, equality discovery and independent intersection preservation.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contractvalues1.cc; tests/Partially_Reduced_Product/shapepreservingproduct1.cc.
-
5. Lazy product reduction and component views UID: PPL-SPEC-001442 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: reduce() shall apply a default-constructed policy object when reduction is unknown, mark the pair as reduced and return true; when already marked it shall return false without invoking the policy. That flag shall record policy application rather than a mathematical fixed-point proof. domain1 and domain2 shall first reduce and return borrowed const component references. A caller shall not retain a component coefficient or representation view across another operation that can reduce, mutate or replace the component, except the explicitly supported entry-denominator borrowing in the affine wrappers.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Lazy information exchange may change component representations while preserving the product intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool reduce() const; const D1& domain1() const; const D2& domain2() const;
VERIFICATION_CRITERIA: Use a counting reduction policy to check flag transitions, repeat queries, mutation followed by reduction and borrowed-view lifetime.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contractvalues1.cc; tests/Partially_Reduced_Product/directproduct1.cc.
-
1. Partially reduced product values and policy aliases UID: PPL-SPEC-001433 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: A product shall own two same-dimensional components and denote their intersection, independently of how much information the selected policy has exchanged. Domain_Product<D1,D2> shall provide direct, smash, constraints, congruences and shape-preserving aliases selecting the corresponding reduction classes. Componentwise equality, strictness, emptiness and extrema shall have the explicitly stated query scope below, rather than decide all properties of the concrete intersection. Supported component domains shall satisfy the requirements of every operation and reduction policy actually instantiated.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersection meaning is independent of the strength of a policy or a sufficient query.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
template <typename D1, typename D2, typename R> class Partially_Reduced_Product; template <typename D1, typename D2> class Domain_Product { public: typedef Partially_Reduced_Product<D1,D2,No_Reduction<D1,D2>> Direct_Product; typedef Partially_Reduced_Product<D1,D2,Smash_Reduction<D1,D2>> Smash_Product; typedef Partially_Reduced_Product<D1,D2,Constraints_Reduction<D1,D2>> Constraints_Product; typedef Partially_Reduced_Product<D1,D2,Congruences_Reduction<D1,D2>> Congruences_Product; typedef Partially_Reduced_Product<D1,D2,Shape_Preserving_Reduction<D1,D2>> Shape_Preserving_Product; };
VERIFICATION_CRITERIA: Check policy aliases, grid/polyhedron intersections with independent restrictions and nonempty components with empty intersection.
BIBLIOGRAPHY: CousotC79 | whole work (background on product domains).
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contractvalues1.cc; tests/Partially_Reduced_Product/directproduct1.cc; tests/Partially_Reduced_Product/smashproduct1.cc.
-
2. Dimensioned product construction and extent UID: PPL-SPEC-001434 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Dimension construction shall create two empty or two universe components in n dimensions; default shall be zero-dimensional universe. The structural limit shall be the minimum component limit. An oversized or reserved dimension shall throw std::length_error before extent-proportional storage. space_dimension shall return their common ambient dimension. affine_dimension shall reduce and return the smaller component affine dimension, which need not equal the intersection's affine dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The product cannot admit dimensions unsupported by either component; affine dimensions can shrink further on intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
explicit Partially_Reduced_Product(dimension_type n=0, Degenerate_Element=UNIVERSE); static dimension_type max_space_dimension(); dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Check both distinguished values and defaults, component limit minimum, invalid dimensions and components whose intersection has smaller affine dimension.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/dimension1.cc.
-
3. Product copying, assignment and exchange UID: PPL-SPEC-001435 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Same-type copying and assignment shall preserve both component values and the lazy reduction state. Later mutation shall be independent. Assignment shall support self-assignment and return its receiver. The copy complexity argument shall not change exactness. Exchange shall swap both components and reduction state together, including dimension; self-exchange shall preserve the value. Destruction shall release both components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A policy state belongs to its component pair and must move with it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
Partially_Reduced_Product(const Partially_Reduced_Product&, Complexity_Class=ANY_COMPLEXITY); ~Partially_Reduced_Product(); Partially_Reduced_Product& operator=(const Partially_Reduced_Product&); void m_swap(Partially_Reduced_Product&); template <typename D1, typename D2, typename R> void swap(Partially_Reduced_Product<D1,D2,R>&, Partially_Reduced_Product<D1,D2,R>&);
VERIFICATION_CRITERIA: Check independent mutation, self-assignment/exchange, unlike dimensions and delayed reduction state.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/directproduct1.cc; tests/Partially_Reduced_Product/fromproduct1.cc.
-
4. Product construction from descriptor systems UID: PPL-SPEC-001436 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint-system and congruence-system construction shall construct both components from the same input and mark reduction unknown. The resulting intersection shall contain the described set and shall be exact when the combined component constructions represent it exactly. Const sources shall be preserved. Nonconst overloads shall permit the documented second-component recycling while constructing the first from an unconsumed view. Admission and exceptions shall follow both component constructors.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Consuming input for one component must occur only after the other has obtained its value.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
explicit Partially_Reduced_Product(const Constraint_System&); explicit Partially_Reduced_Product(Constraint_System&); explicit Partially_Reduced_Product(const Congruence_System&); explicit Partially_Reduced_Product(Congruence_System&);
VERIFICATION_CRITERIA: Check constraints/congruences, const/nonconst sources, dimension and contradiction handling, and distinct component precision.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/congruences1.cc; tests/Partially_Reduced_Product/constraints1.cc.
-
5. Conversions to a product UID: PPL-SPEC-001437 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Simple-domain conversion shall construct both destination components from the source, preserve dimension and contain its represented set. The result shall be exact when the component intersection preserves all source information. Polyhedron conversions shall pass the supplied complexity class; Grid, Box, BD and octagon overloads shall use their component constructors' default complexity. Cross-product conversion shall convert both source component views into destination products and intersect those products, so restrictions contributed by either source component are retained to the precision of the destination. Source values shall remain unchanged apart from permitted cache/reduction changes.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Both source components can contribute restrictions that the other cannot express.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
explicit Partially_Reduced_Product(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const Grid&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit Partially_Reduced_Product(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const BD_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const Octagonal_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename E1, typename E2, typename S> explicit Partially_Reduced_Product(const Partially_Reduced_Product<E1,E2,S>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check every source family, both product component orders, separate restrictions and empty sources.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/frombdshape1.cc; tests/Partially_Reduced_Product/frombox1.cc; tests/Partially_Reduced_Product/fromgrid1.cc; tests/Partially_Reduced_Product/fromoctagonalshape1.cc; tests/Partially_Reduced_Product/frompolyhedron1.cc; tests/Partially_Reduced_Product/fromproduct1.cc.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001429 Exact linear polyhedron partitioning (Specified by)
- PPL-SPEC-001430 Finite and approximate grid partitioning (Specified by)
- PPL-SPEC-001390 Determinate operations and binary lifting (Specified by)
- PPL-SPEC-001413 Lifted powerset image (Specified by)
- PPL-SPEC-001414 Lifted powerset preimage (Specified by)
- PPL-SPEC-001415 Lifted powerset generalized image (Specified by)
- PPL-SPEC-001416 Lifted powerset generalized preimage (Specified by)
- PPL-SPEC-001417 Lifted powerset bounded image (Specified by)
- PPL-SPEC-001418 Lifted powerset bounded preimage (Specified by)
- PPL-SPEC-001419 Lifted expression-to-expression affine relations (Specified by)
- PPL-SPEC-001426 Exact pairwise powerset reduction (Specified by)
- PPL-SPEC-001420 Pointset-powerset coordinate growth (Specified by)
- PPL-SPEC-001421 Pointset-powerset projection and coordinate mapping (Specified by)
- PPL-SPEC-001422 Pointset-powerset dimension expansion and folding (Specified by)
- PPL-SPEC-001423 Pointset-powerset concatenation (Specified by)
- PPL-SPEC-001407 Lifted constraint addition and refinement (Specified by)
- PPL-SPEC-001408 Lifted congruence addition and refinement (Specified by)
- PPL-SPEC-001409 Lifted cylindrification (Specified by)
- PPL-SPEC-001410 Lifted pointset-powerset intersection (Specified by)
- PPL-SPEC-001411 Pointset-powerset set difference (Specified by)
- PPL-SPEC-001412 Meet-preserving powerset context simplification (Specified by)
- PPL-SPEC-001424 Powerset topological closure and time elapse (Specified by)
- PPL-SPEC-001425 Powerset integer restriction and wrapping (Specified by)
- PPL-SPEC-001404 Pointset-powerset directional bound tests (Specified by)
- PPL-SPEC-001405 Pointset-powerset extrema and witnesses (Specified by)
- PPL-SPEC-001406 Pointset-powerset descriptor relations (Specified by)
- PPL-SPEC-001394 Pointset-powerset construction from descriptor systems (Specified by)
- PPL-SPEC-001395 Pointset-powerset construction from a simple domain (Specified by)
- PPL-SPEC-001396 Cross-base powerset conversion and assignment (Specified by)
- PPL-SPEC-001397 Pointset-powerset construction from a product (Specified by)
- PPL-SPEC-001398 Insertion of pointset disjuncts (Specified by)
- PPL-SPEC-001384 Disjunctive insertion and exact powerset union (Specified by)
- PPL-SPEC-001385 Pairwise lifting and generic powerset meet (Specified by)
- PPL-SPEC-001386 Explicit powerset collapse (Specified by)
- PPL-SPEC-001452 Componentwise product image (Specified by)
- PPL-SPEC-001453 Componentwise product preimage (Specified by)
- PPL-SPEC-001454 Componentwise product generalized image (Specified by)
- PPL-SPEC-001455 Componentwise product generalized preimage (Specified by)
- PPL-SPEC-001456 Componentwise product bounded image (Specified by)
- PPL-SPEC-001457 Componentwise product bounded preimage (Specified by)
- PPL-SPEC-001458 Product expression-to-expression affine relations (Specified by)
- PPL-SPEC-001459 Product coordinate operations (Specified by)
- PPL-SPEC-001460 Product concatenation (Specified by)
- PPL-SPEC-001449 Product intersection (Specified by)
- PPL-SPEC-001450 Product component joins and component exactness (Specified by)
- PPL-SPEC-001451 Sound product set difference (Specified by)
- PPL-SPEC-001461 Product closure and time elapse (Specified by)
- PPL-SPEC-001462 Product integer-coordinate tightening (Specified by)
- PPL-SPEC-001443 Product constraint and congruence exports (Specified by)
- PPL-SPEC-001437 Conversions to a product (Specified by)
PPL shall provide disjunctive union and supported lifted intersection, refinement and transfer operations for finite pointset powersets. Disjunctive union shall denote exact union. Under their arithmetic preconditions, lifted results shall be sound for the represented input unions and shall satisfy the applicable base-domain precision guarantees; exact lifted intersection or transfer shall be provided where the supported base operation is exact.
The union interpretation of stored disjuncts must be retained by operations, not only by construction and redundant-element removal.
Verification covers powerset union, lifted operations and any explicitly selected collapse or precision controls. Related obligations: 🔗 1. Disjunctive meaning of finite powersets, 🔗 2. Meaning-preserving removal of redundant disjuncts, 🔗 5. Constraint and congruence refinement, 🔗 6. Sound affine forward and backward transfers, 🔗 1. Meaning of successful exact and approximate results.
Independently distribute intersection and supported transfers over small disjunct collections and compare represented unions. Check exact disjunctive union, empty collections, overlapping disjuncts and base domains with approximate operations. Distinguish exact disjunction from optional collapse or cardinality control that enlarges a union.
BagnaraHZ06STTT | Whole work (background on finite powerset operations). BagnaraHZ06STTTerratum | Whole erratum (corrected figures for the journal article).
doc/definitions.dox: Meet and Upper Bound on Powerset Domains; The Pointset Powerset Domain. src/Pointset_Powerset_defs.hh: intersection, refinement, transfer and collapse. src/Powerset_defs.hh: disjunctive upper bounds.
-
1. Exact linear polyhedron partitioning UID: PPL-SPEC-001429 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For compatible polyhedra p and q, linear_partition(p,q) shall return first denoting p∩q and a finite NNC-polyhedron powerset second denoting q⧵p. Its nonempty residue pieces shall be pairwise disjoint and disjoint from p. Together with first they shall partition q. Equalities shall split into complementary sides; strict inequalities shall use their non-strict complement. Input values shall remain unchanged. The template base shall admit exact constraint conjunction for the returned first component.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Excluded boundaries require NNC residues even when both inputs are closed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename PSET> std::pair<PSET, Pointset_Powerset<NNC_Polyhedron>> linear_partition(const PSET&, const PSET&);
VERIFICATION_CRITERIA: Check interval cuts, equalities, strict boundaries, empty/universe and independent disjointness/union reconstruction.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Polyhedron/linearpartition1.cc; tests/Powerset/difference1.cc.
-
2. Finite and approximate grid partitioning UID: PPL-SPEC-001430 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: approximate_partition(p,q,finite) shall return the exact grid intersection p∩q as first. When the residue is finitely representable by the procedure, finite shall be true and second shall be a pairwise-disjoint finite grid partition of q⧵p. Otherwise finite shall be false and second shall soundly contain that residue, possibly returning q itself. Failure of an early finite partition shall not omit later input congruences from first. If the full intersection is empty, returning q shall be an exact finite residue. Inputs shall be dimension-compatible and remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A grid complement may require infinitely many cosets; finite approximation must still compute the full intersection exactly.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
std::pair<Grid, Pointset_Powerset<Grid>> approximate_partition(const Grid&, const Grid&, bool& finite_partition);
VERIFICATION_CRITERIA: Check even/odd residues, inhomogeneous and rational cosets, equality cuts without finite residue and late contradictions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Grid/approximatepartition1.cc; tests/Powerset/difference1.cc; tests/Powerset/gridpartition1.cc.
-
3. Determinate operations and binary lifting UID: PPL-SPEC-001390 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Upper bound, meet and concatenation shall detach as needed and delegate to base upper bound, intersection and concatenation, respectively. Their mathematical precision and argument admission shall follow the corresponding base member. lift_op_assign(f) shall return a function object which invokes f on a writable detached first pointset and a const second pointset. Self-aliasing shall follow the corresponding base operation. The function object shall retain a copy of f.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Lifting must route every mutation through detachment so shared disjuncts retain value semantics.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Determinate unless qualified otherwise.
void upper_bound_assign(const Determinate&); void meet_assign(const Determinate&); void concatenate_assign(const Determinate&); template <typename Binary_Operator_Assign> class Binary_Operator_Assign_Lifter; template <typename Binary_Operator_Assign> static Binary_Operator_Assign_Lifter<Binary_Operator_Assign> lift_op_assign(Binary_Operator_Assign);
VERIFICATION_CRITERIA: Compare each lifted operation with independent base calculations, including shared receivers and function-object state.
SOURCE: src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; tests/Powerset/concatenate1.cc; tests/Powerset/meet1.cc; tests/determinatehistories1.cc.
-
Incoming link from: 1. Componentwise product image1
1. Lifted powerset image UID: PPL-SPEC-001413 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image shall lift the corresponding base image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 2. Componentwise product preimage1
2. Lifted powerset preimage UID: PPL-SPEC-001414 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage shall lift the corresponding base preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 3. Componentwise product generalized image1
3. Lifted powerset generalized image UID: PPL-SPEC-001415 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_image shall lift the corresponding base generalized image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 4. Componentwise product generalized preimage1
4. Lifted powerset generalized preimage UID: PPL-SPEC-001416 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage shall lift the corresponding base generalized preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 5. Componentwise product bounded image1
5. Lifted powerset bounded image UID: PPL-SPEC-001417 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image shall lift the corresponding base bounded image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void bounded_affine_image(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 6. Componentwise product bounded preimage1
6. Lifted powerset bounded preimage UID: PPL-SPEC-001418 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage shall lift the corresponding base bounded preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void bounded_affine_preimage(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 7. Product expression-to-expression affine relations1
7. Lifted expression-to-expression affine relations UID: PPL-SPEC-001419 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expression overloads shall lift the base relation ℓ’ ⋈ r to every disjunct, modifying the coordinates present in the left expression according to the base generalized-affine contract. Image shall collect allowed successors; preimage shall collect source states with an allowed successor in the old receiver. Shared left/right variables shall retain their before/after interpretation. Dimension, relation and topology admission shall follow the base member, with std::invalid_argument for invalid inputs.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Generalized relations distinguish new left-hand coordinates from old right-hand coordinates even when variable names overlap.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_image(const Linear_Expression&, Relation_Symbol, const Linear_Expression&); void generalized_affine_preimage(const Linear_Expression&, Relation_Symbol, const Linear_Expression&);
VERIFICATION_CRITERIA: Check overlapping/disjoint variable supports, constant left expressions, strict and equality relations and base rejection.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
1. Exact pairwise powerset reduction UID: PPL-SPEC-001426 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Pairwise reduction shall first remove entailment redundancies, then repeatedly merge pairs for which the base upper_bound_assign_if_exact certifies exact union. The represented union shall be preserved, and no pair remaining at termination shall admit a further certified exact merge. It shall not promise a globally minimum disjunct count or an insertion-order-independent geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Exact pair merging can reduce decomposition beyond containment without filling gaps.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void pairwise_reduce();
VERIFICATION_CRITERIA: Check adjacent and separated intervals, repeated merging chains, duplicate/bottom members and order variations.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 8, Definition 18 (mergers and pairwise merging).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contractvalues1.cc; tests/Powerset/reduce1.cc.
-
1. Pointset-powerset coordinate growth UID: PPL-SPEC-001420 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Embedding shall extend each disjunct with m unconstrained trailing coordinates, denoting S×Rm. Projecting growth shall extend with m zero coordinates, denoting S×{0}m. Empty shall retain empty meaning and acquire the new ambient dimension. Zero growth shall preserve the value. Growth exceeding the structural dimension limit shall throw std::length_error before extent-proportional allocation or dimension arithmetic overflow.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Even an empty collection has an ambient dimension which must be updated and range-checked.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_space_dimensions_and_embed(dimension_type); void add_space_dimensions_and_project(dimension_type);
VERIFICATION_CRITERIA: Check free versus zero added coordinates, empty collections, zero growth and reserved/overflowing extents.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
2. Pointset-powerset projection and coordinate mapping UID: PPL-SPEC-001421 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Removal shall existentially project out the selected coordinates of every disjunct and compact remaining indices in order. Higher removal shall retain exactly the requested prefix. Mapping shall use an injective partial map with in-range source dimensions and compact destination range, retaining mapped coordinates and existentially eliminating the others. Empty map shall produce dimension zero. Empty collections shall still acquire the correct result dimension. Invalid removal extents shall throw std::invalid_argument; mapping shall meet 🔗 1. Public partial coordinate-map type and valid use– 🔗 8. Coordinate-map diagnostic printing and output failures and the base map's stated preconditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Projection is not setting removed coordinates to zero, and dimension bookkeeping cannot depend on stored nonempty disjuncts.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
VERIFICATION_CRITERIA: Check sparse projection, permutation/partial/empty maps, fractional witnesses, empty collections and invalid extents.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
3. Pointset-powerset dimension expansion and folding UID: PPL-SPEC-001422 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Expansion shall add m independent copies of the selected coordinate's base-domain restrictions using the base expansion operation. Folding shall merge selected coordinates into the retained destination by base folding and remove the folded coordinates. They shall lift per disjunct, update ambient dimension and inherit base soundness and precision. Variables shall be in range, fold destination shall be outside the folded set, and growth shall respect structural limits; invalid variables/sets shall throw std::invalid_argument and excessive growth std::length_error.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Independent expansion differs from imposing equality between duplicate coordinates; folding may approximate unions of projections.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void expand_space_dimension(Variable, dimension_type); void fold_space_dimensions(const Variables_Set&, Variable);
VERIFICATION_CRITERIA: Check relational expansion, independent duplicate values, folding with retained indices, empty sets and invalid dimensions. Fold previously reduced incomparable disjuncts into identical universes, and compare the public universe result with an unreduced-entry control in closed/NNC polyhedra, bounded-difference, octagonal and rational-box powersets.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/spacedims1.cc.
-
4. Pointset-powerset concatenation UID: PPL-SPEC-001423 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Concatenation shall collect base concatenations for every pair of reduced disjuncts in receiver-then-argument coordinate order, representing S×T when base concatenation is exact and otherwise its sound base approximation. Empty input shall give empty in the sum dimension. Self-concatenation shall be supported. The sum dimension shall be range-checked without unsigned wraparound; excessive extent shall throw std::length_error.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Cartesian product distributes over both input unions and includes ambient dimensions of empty inputs.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void concatenate_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check cross-pair products, coordinate order, empty/self inputs and overflowing sums.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/cancellation1.cc; tests/powersetinterruptedproducts1.cc; tests/Powerset/concatenate1.cc.
-
1. Lifted constraint addition and refinement UID: PPL-SPEC-001407 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint addition and refinement shall apply the corresponding base operation to every disjunct, retaining union semantics and marking reduction unknown. Exact addition shall intersect each disjunct with the admitted constraint conjunction. Refinement shall preserve every point satisfying the input conjunction and satisfy the base precision guarantee, possibly ignoring unsupported restrictions. Topology and dimension rejection shall follow the base operation, including std::invalid_argument for incompatible inputs.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersection with a conjunction distributes over disjunction, while refinement may approximate at base level.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Check strict boundaries, equalities, contradictions, unsupported base rows, empty/nonempty collections and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/addconstraints1.cc; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/refinewith1.cc.
-
2. Lifted congruence addition and refinement UID: PPL-SPEC-001408 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence addition and refinement shall apply the corresponding base operation to every disjunct, preserving union semantics and marking reduction unknown. Exact addition shall intersect with the admitted congruence conjunction; refinement shall be sound with the base precision guarantee. Proper modular restrictions shall not be converted into affine equalities. Dimension or unsupported exact-addition admission shall follow the base exception contract.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Congruences represent residue classes, so interpreting a proper congruence as equality would discard valid points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&);
VERIFICATION_CRITERIA: Check residue classes, equality congruences, contradictory/tautological rows, approximate refinement and dimensional errors.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/addcongruences1.cc; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/refinewith1.cc.
-
3. Lifted cylindrification UID: PPL-SPEC-001409 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
STATEMENT: unconstrain shall cylindrify each disjunct in the selected coordinates while retaining ambient dimension and mark reduction unknown. The resulting union shall have the base operation's exactness and arithmetic guarantees. An empty variable set shall preserve the value. Out-of-range variables shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Existential projection followed by unconstrained embedding distributes over finite unions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void unconstrain(Variable); void unconstrain(const Variables_Set&);
VERIFICATION_CRITERIA: Check relational disjuncts, scalar/set overload agreement, empty variable sets and invalid dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
4. Lifted pointset-powerset intersection UID: PPL-SPEC-001410 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Intersection shall collect all pairwise base intersections of the reduced operands, discarding bottom results. It shall represent exact union intersection when the base intersection is exact and otherwise inherit its soundness and precision. Self-intersection shall be supported. Operands shall have the same ambient dimension; mismatch shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Every point in the intersection belongs to a pair of input disjuncts.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void intersection_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check cross-pair rather than positional overlap, empty operands, self-intersection and mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/intersection1.cc.
-
5. Pointset-powerset set difference UID: PPL-SPEC-001411 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Difference shall subtract each subtrahend disjunct successively. For NNC polyhedra, exact polyhedral partitions shall represent exact set difference, including excluded boundaries. Other supported convex bases shall convert through NNC partitions and inherit conversion precision. Grid subtraction shall return exact finite-coset residues when representable and otherwise a sound finite overapproximation. Empty subtraction shall preserve the minuend; self-subtraction shall give empty. Ambient dimensions shall agree or std::invalid_argument shall be thrown.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Finite disjunction can preserve nonconvex residues that a single convex base element cannot represent.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void difference_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check interior holes, boundary subtraction, multiple subtrahends, grid finite/infinite residue cases and self-subtraction.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/difference1.cc; tests/Powerset/gridpartition1.cc.
-
6. Meet-preserving powerset context simplification UID: PPL-SPEC-001412 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Context simplification shall preserve the represented intersection with y and leave no more disjuncts than the reduced original receiver. Disjuncts disjoint from the context may be removed; the result need not contain the original union outside that context. A false return shall establish empty intersection, while true need not establish nonemptiness for approximate base simplification. Empty receiver or context shall produce a false return. Dimension mismatch shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Preservation inside a context allows dropping irrelevant disjuncts and relaxing relevant ones.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool simplify_using_context_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check singleton and multiple contexts, empty intersections, cardinality, and independent before/after intersection equality. Include late overlaps after unchanged disjoint prefixes, accumulated simplifications reaching a fixed point, restoring source bounds needed by a later context, empty effective contexts, aliases, and preservation of distinct contexts. Inject allocation failures after a disjunct has been enlarged and check ownership and invalidation of stale reduction certificates. Include an unreduced original pair whose later disjunct strictly contains its predecessor, checking raw result size against the separately reduced original before any result query can canonicalize it.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/simplifyusingcontext1.cc; tests/powersetcontextfailure1.cc.
-
7. Powerset topological closure and time elapse UID: PPL-SPEC-001424 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Topological closure shall close every disjunct; for a finite collection of exact base closures the result shall be the exact closure of the union. Time elapse shall collect all pairwise base time-elapse results, denoting the corresponding union of p + tv for admitted states, velocities and t ≥ 0, with the base precision contract. Empty state or velocity collections shall follow the base time-elapse semantics. Dimension-incompatible time operands shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Closure distributes over finite unions, while velocities require a cross-product lifting.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void topological_closure_assign(); void time_elapse_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check open boundary closure, zero/nonzero velocities, separated disjunct pairs, empty inputs and base approximation. Close an initially reduced antichain whose new boundary makes a disjunct redundant, then request omega-reduction and compare the remaining geometry. Exercise NNC polyhedra and open rational boxes, shared-source preservation, empty and zero-dimensional collections, and exact identity closure for closed polyhedra, grids, BD/octagonal shapes and interval boxes without openness.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/closure1.cc.
-
8. Powerset integer restriction and wrapping UID: PPL-SPEC-001425 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Integer restriction shall apply the selected base tightening to each disjunct, preserve all points integral in the selected coordinates and retain a subset of the old union; no optimality shall be promised. Wrapping shall apply the base bounded-integer conversion to every disjunct with the supplied width, representation, overflow mode, optional constraints and precision controls. It shall inherit 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes and base wrapping semantics, including sound overflow behavior and variable/constraint admission. Reduction shall become unknown after either operation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Disjunction must retain all selected integral states and all admitted wrapped outcomes.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY); void wrap_assign(const Variables_Set&, Bounded_Integer_Type_Width, Bounded_Integer_Type_Representation, Bounded_Integer_Type_Overflow, const Constraint_System* = nullptr, unsigned=16, bool=true);
VERIFICATION_CRITERIA: Check fractional disjuncts, selected versus all coordinates and small-width modular/undefined/impossible overflow controls.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/gridprimaryoperations1.cc.
-
6. Pointset-powerset directional bound tests UID: PPL-SPEC-001404 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Directional bound tests shall reduce, then return true exactly when every remaining disjunct bounds the expression in that direction. Empty shall be bounded in either direction. For nonempty collections, the expression's ambient dimension shall be admitted by every disjunct; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A finite union has a finite directional bound exactly when every nonempty member has one.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check all-bounded, one-unbounded, empty and single-direction cases with fractional expressions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/bounds1.cc.
-
7. Pointset-powerset extrema and witnesses UID: PPL-SPEC-001405 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Maximization and minimization shall fail for empty or directionally unbounded unions, leaving all outputs unchanged on a false return. Otherwise they shall return the greatest disjunct supremum or least disjunct infimum as an exact rational with positive denominator. The attainment flag shall be true when at least one disjunct attaining the selected bound includes its optimum. A witness overload shall select an included point when the union attains the bound and otherwise a closure point of a contributing disjunct. The witness shall attain the returned bound in the corresponding union or its closure. Expression dimension admission and arithmetic shall follow the base extrema members; independently writable output objects shall be required.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Taking an extremum over a finite union requires selecting across all disjuncts, including attainment ties.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check separated bounds, rational ties with both attainment flags, witnesses, empty/unbounded failure sentinels and output independence.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/maxmin1.cc.
-
8. Pointset-powerset descriptor relations UID: PPL-SPEC-001406 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence relations shall combine disjunct relations: inclusion, disjointness and saturation shall each require that flag from every disjunct. Strict intersection shall be reported when a disjunct strictly intersects or when nonempty included and disjoint disjuncts occur. Empty disjuncts shall not supply a strict-intersection witness. Generator subsumption shall be reported when at least one disjunct subsumes it, using base generator semantics. Empty collections shall give the vacuous inclusion, disjointness and saturation flags and no generator subsumption. Invalid descriptor dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Relations over a union aggregate universal set properties and existential witnesses differently.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
Poly_Con_Relation relation_with(const Constraint&) const; Poly_Con_Relation relation_with(const Congruence&) const; Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check each relation flag, mixed included/disjoint disjuncts, redundant empties, points/directions and dimension rejection.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/relationwith1.cc.
-
3. Pointset-powerset construction from descriptor systems UID: PPL-SPEC-001394 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from constraints or congruences shall create the corresponding base-domain value as a singleton disjunct and inherit the system dimension. Source values shall remain unchanged. Admission, arithmetic, topology and exactness shall follow the base constructor; redundant or empty singleton storage may remain until reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The singleton construction must preserve base constructor semantics without introducing a hull over unrelated inputs.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
explicit Pointset_Powerset(const Constraint_System&); explicit Pointset_Powerset(const Congruence_System&);
VERIFICATION_CRITERIA: Check tautological, contradictory and dimensioned systems, strict boundaries and base rejection conditions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/fromcongruences1.cc; tests/Powerset/fromconstraints1.cc.
-
4. Pointset-powerset construction from a simple domain UID: PPL-SPEC-001395 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a simple domain shall preserve ambient dimension and contain its represented set. A nonempty source shall be converted using the base constructor with its applicable complexity contract and stored as a singleton. Known-empty sources may yield an empty collection. Conversion shall be exact when the destination base conversion is exact; unsupported discrete or relational information may be lost. External source values shall remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Converting a single pointset does not require disjunctive approximation beyond its base conversion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
explicit Pointset_Powerset(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Pointset_Powerset(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Pointset_Powerset(const Grid&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Pointset_Powerset(const BD_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Pointset_Powerset(const Octagonal_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit Pointset_Powerset(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check each source family, empty/universe, fractional/open boundaries, exact conversions and deliberate information loss.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/frombdshape1.cc; tests/Powerset/frombox1.cc; tests/Powerset/fromgrid1.cc; tests/Powerset/fromoctagonalshape1.cc; tests/Powerset/frompolyhedron1.cc.
-
5. Cross-base powerset conversion and assignment UID: PPL-SPEC-001396 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Cross-base construction shall convert each stored source disjunct with the destination base conversion and preserve ambient dimension. The resulting union shall contain the source union and be exact when every base conversion is exact. Assignment shall have the same conversion result and return its receiver. Destination reduction state shall be recomputed when conversion can make previously incomparable disjuncts comparable; a proven exact conversion may retain source reduction state. Neither source decomposition nor reduced cardinality shall be a geometric canonical form.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Approximate conversion can collapse distinctions that justified source nonredundancy.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH> explicit Pointset_Powerset(const Pointset_Powerset<QH>&, Complexity_Class=ANY_COMPLEXITY); template <typename QH> Pointset_Powerset& operator=(const Pointset_Powerset<QH>&);
VERIFICATION_CRITERIA: Check closed/NNC conversions in both directions, grid-to-polyhedron loss, exact shape conversions and reduction after comparable images.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/conversionreduction1.cc.
-
6. Pointset-powerset construction from a product UID: PPL-SPEC-001397 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a product shall convert both reduced component views to the destination base and intersect them, storing the resulting base value as a disjunct unless a known-empty shortcut applies. It shall preserve ambient dimension and overapproximate the product intersection. Exactness shall hold when both conversions and their base intersection are exact.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A product represents conjunction, so conversion must intersect rather than choose or join its components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename QH1, typename QH2, typename R> explicit Pointset_Powerset(const Partially_Reduced_Product<QH1,QH2,R>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use products whose components contribute independent restrictions and compare the converted intersection; include known empty.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Partially_Reduced_Product/fromproduct1.cc; tests/Powerset/contractvalues1.cc.
-
7. Insertion of pointset disjuncts UID: PPL-SPEC-001398 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_disjunct(p) shall add a value copy and represent union with p. It shall require exactly the receiver dimension and throw std::invalid_argument on a mismatch. Duplicates and empty disjuncts may remain stored until reduction; insertion shall mark reduction as unknown. Later mutation of the external source shall not alter the powerset.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Insertion is exact disjunction even when storage contains redundancies.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_disjunct(const PSET&);
VERIFICATION_CRITERIA: Check source independence, duplicate/empty insertion, arbitrary order and mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/disjunct1.cc.
-
5. Disjunctive insertion and exact powerset union UID: PPL-SPEC-001384 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_disjunct(d) shall append a value copy and denote union with d. least_upper_bound_assign and upper_bound_assign shall compute exact disjunctive union, with redundant elements removable. Self-union shall preserve the value. upper_bound_assign_if_exact shall perform that same operation and return true. No convexification shall be implicit in these union members.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: The finite collection already represents disjunction exactly, without joining base elements.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
void add_disjunct(const D&); void least_upper_bound_assign(const Powerset&); void upper_bound_assign(const Powerset&); bool upper_bound_assign_if_exact(const Powerset&);
VERIFICATION_CRITERIA: Check disjoint/overlapping union, bottom, top, duplicate input, independent source ownership and self-union.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3, Definition 5 (finite powerset join).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/disjunct1.cc; tests/Powerset/upperbound1.cc; tests/determinatehistories1.cc.
-
6. Pairwise lifting and generic powerset meet UID: PPL-SPEC-001385 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: pairwise_apply_assign(y,f) shall apply f to each ordered pair of reduced receiver and y elements, using an independent receiver copy for each pair, and collect the non-bottom results. meet_assign shall use the base meet in that lifting. If base meet represents intersection exactly, the result shall denote exact intersection of the input unions; otherwise its soundness and precision shall follow that base operation. Empty collections shall give empty and self-meet shall be supported.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersection distributes over finite unions, requiring all ordered pairs rather than matching positions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
template <typename Binary_Operator_Assign> void pairwise_apply_assign(const Powerset&, Binary_Operator_Assign); void meet_assign(const Powerset&);
VERIFICATION_CRITERIA: Independently enumerate cross-pair intersections, empty inputs, discarded bottoms and self-aliasing.
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/intersection1.cc; tests/Powerset/meet1.cc; tests/determinatehistories1.cc.
-
7. Explicit powerset collapse UID: PPL-SPEC-001386 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: collapse() shall replace a nonempty collection by an iterated base-domain upper bound, leaving at most one disjunct. Empty shall remain empty. collapse(k) shall require k > 0, reduce first, and leave at most k disjuncts by joining the suffix into the last retained element when necessary. The resulting union shall contain the input union; exactness shall hold only when the selected base joins are exact. No minimal decomposition or optimal choice of merged elements shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Cardinality control deliberately trades disjunctive precision for storage and computation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
void collapse(); void collapse(unsigned max_disjuncts);
VERIFICATION_CRITERIA: Check k equal to one, below/equal/above cardinality, empty input and a gap filled by convex collapse.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 5, Definition 10 (collapsors).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/collapse1.cc; tests/powersetlatticehistories1.cc.
-
1. Componentwise product image UID: PPL-SPEC-001452 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image shall apply the base transfer relation described in 🔗 1. Lifted powerset image to both components and mark reduction unknown. The resulting intersection shall soundly contain the image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
2. Componentwise product preimage UID: PPL-SPEC-001453 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage shall apply the base transfer relation described in 🔗 2. Lifted powerset preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
3. Componentwise product generalized image UID: PPL-SPEC-001454 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_image shall apply the base transfer relation described in 🔗 3. Lifted powerset generalized image to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
4. Componentwise product generalized preimage UID: PPL-SPEC-001455 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage shall apply the base transfer relation described in 🔗 4. Lifted powerset generalized preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
5. Componentwise product bounded image UID: PPL-SPEC-001456 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image shall apply the base transfer relation described in 🔗 5. Lifted powerset bounded image to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_image(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
6. Componentwise product bounded preimage UID: PPL-SPEC-001457 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage shall apply the base transfer relation described in 🔗 6. Lifted powerset bounded preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_preimage(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
7. Product expression-to-expression affine relations UID: PPL-SPEC-001458 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expression overloads shall apply the base generalized relation in 🔗 7. Lifted expression-to-expression affine relations to each component and mark reduction unknown. The resulting intersection shall soundly contain the corresponding image or preimage of the old product intersection, with no extra precision claim based only on component exactness. Overlapping expression supports, admissible relation symbols, dimensions and topology shall follow both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Independent component witnesses can lose correlations even for exact base relations.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(const Linear_Expression&, Relation_Symbol, const Linear_Expression&); void generalized_affine_preimage(const Linear_Expression&, Relation_Symbol, const Linear_Expression&);
VERIFICATION_CRITERIA: Check shared/disjoint variable supports, constants, componentwise equivalence and sound concrete relation samples.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
1. Product coordinate operations UID: PPL-SPEC-001459 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Existential coordinate operations can lose conjunction correlations when applied independently to components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void unconstrain(Variable); void unconstrain(const Variables_Set&); void add_space_dimensions_and_embed(dimension_type); void add_space_dimensions_and_project(dimension_type); void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); template <typename Partial_Function> void map_space_dimensions(const Partial_Function&); void expand_space_dimension(Variable, dimension_type); void fold_space_dimensions(const Variables_Set&, Variable);
VERIFICATION_CRITERIA: Check all members, coordinate order and dimensions, relational projection examples, empty values, invalid variables and growth bounds.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/spacedims1.cc.
-
2. Product concatenation UID: PPL-SPEC-001460 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Concatenation shall concatenate corresponding components in receiver- then-argument coordinate order. The resulting common dimension shall be the sum, subject to both structural limits. With exact component concatenation the intersection shall represent the exact Cartesian product of the input product sets, because the coordinate blocks are independent. Self-concatenation shall be supported. Lazy reduction state shall be retained only when both operands are already marked reduced; component limit errors may propagate without rollback.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Cartesian products on disjoint coordinate blocks commute with component conjunction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void concatenate_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check coordinate order, separate restrictions, empty and self inputs, reduction-state combinations and excessive extents.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/concatenate1.cc.
-
2. Product intersection UID: PPL-SPEC-001449 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Intersection shall intersect corresponding component pairs and mark reduction unknown. With exact component intersections, associativity of conjunction shall make the result the exact intersection of the represented products; approximate component intersections shall retain their soundness. Self-intersection shall be supported. Components shall have compatible ambient dimensions or throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Unlike general images, intersection can be regrouped componentwise without losing cross-component information.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void intersection_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Independently derive four-way intersections, including independent component restrictions and self-aliasing.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/intersection1.cc.
-
3. Product component joins and component exactness UID: PPL-SPEC-001450 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Upper bound shall reduce both products, join corresponding components and mark reduction unknown. The resulting intersection shall contain both input products. The conditional member shall return true only if both component joins certify exactness; on false, the represented receiver shall remain unchanged apart from permitted reduction/cache changes. Exactness of each component join shall not imply exact union of the represented products. Self-join shall preserve value; dimension mismatch shall follow component std::invalid_argument admission.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Intersection of two component unions can include cross-combinations absent from the union of the original products.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void upper_bound_assign(const Partially_Reduced_Product&); bool upper_bound_assign_if_exact(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check both exactness failure paths, source/receiver unchanged controls, lazy policy reapplication and cross-combination precision loss.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/upperbound1.cc.
-
4. Sound product set difference UID: PPL-SPEC-001451 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Difference shall reduce both operands and form sound approximations of (A1⧵B1)∩A2 and A1∩(A2⧵B2), then take an upper bound of the nonempty alternatives. Known-empty alternatives shall not contribute unrelated nonempty components to that join. The result shall contain the exact product difference; component subtraction and join may lose precision. Self-subtraction shall give empty. Subtracting empty shall preserve the minuend, and empty minuend shall remain empty. Dimension mismatch shall still reach the documented component exception. Mutated alternatives and joins shall be marked for lazy reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: De Morgan expansion makes difference a union of two product alternatives; subtracting both components simultaneously would lose valid states.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void difference_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Independently enumerate small product differences, both alternatives, empty/self inputs, no-reduction and sharing policies.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/difference1.cc; tests/Partially_Reduced_Product/directproduct3.cc.
-
5. Product closure and time elapse UID: PPL-SPEC-001461 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Closure shall apply each component's closure. Time elapse shall reduce both products, then time-elapse corresponding component pairs. The resulting intersection shall soundly contain the respective closure or time-elapse set of the original product. Component exactness shall not imply concrete product exactness, since closure or existential elapsed-time witnesses need not commute with intersection. Common ambient dimension and base arithmetic/admission conditions shall apply.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Independent elapsed-time or limiting witnesses can overapproximate a jointly constrained transition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void topological_closure_assign(); void time_elapse_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check open/closed component boundaries, velocities, different component precision, empty values and sound concrete samples.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/timeelapse1.cc; tests/Partially_Reduced_Product/topclosure1.cc.
-
6. Product integer-coordinate tightening UID: PPL-SPEC-001462 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Integer tightening shall reduce first, apply the corresponding base restriction to both components and mark reduction unknown. The result shall lie within the old product and retain every old point integral in all selected coordinates. The overload without a variable set shall select all coordinates. The complexity argument shall limit the base algorithms used; no optimal integer hull or complete integer-feasibility decision shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Each component can tighten safely without proving a complete integer abstraction of their intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check partial/all coordinate selection, fractional boundaries, preserved integral points and component-policy reapplication.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/dropsomenonintegerpoints1.cc.
-
1. Product constraint and congruence exports UID: PPL-SPEC-001443 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence exports shall reduce, combine the systems exported by both components and return owned systems. The systems shall soundly overapproximate the product; neither kind alone need express all information in the intersection. Minimized constraints shall minimize their combined polyhedron using NNC topology when strict rows occur; minimized congruences shall minimize the combined grid. Returned systems shall remain independent of later product mutation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Conjoining sound component exports preserves all product points, but can lose information unavailable in that descriptor language.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
Constraint_System constraints() const; Constraint_System minimized_constraints() const; Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Check distinct restrictions from both donors, duplicate/strict rows, independent returned values and modular information loss in constraints.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/congruences1.cc; tests/Partially_Reduced_Product/constraints1.cc.
-
5. Conversions to a product UID: PPL-SPEC-001437 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Simple-domain conversion shall construct both destination components from the source, preserve dimension and contain its represented set. The result shall be exact when the component intersection preserves all source information. Polyhedron conversions shall pass the supplied complexity class; Grid, Box, BD and octagon overloads shall use their component constructors' default complexity. Cross-product conversion shall convert both source component views into destination products and intersect those products, so restrictions contributed by either source component are retained to the precision of the destination. Source values shall remain unchanged apart from permitted cache/reduction changes.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Both source components can contribute restrictions that the other cannot express.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
explicit Partially_Reduced_Product(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const Grid&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit Partially_Reduced_Product(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const BD_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const Octagonal_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename E1, typename E2, typename S> explicit Partially_Reduced_Product(const Partially_Reduced_Product<E1,E2,S>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check every source family, both product component orders, separate restrictions and empty sources.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/frombdshape1.cc; tests/Partially_Reduced_Product/frombox1.cc; tests/Partially_Reduced_Product/fromgrid1.cc; tests/Partially_Reduced_Product/fromoctagonalshape1.cc; tests/Partially_Reduced_Product/frompolyhedron1.cc; tests/Partially_Reduced_Product/fromproduct1.cc.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001310 Congruence-limited extrapolations (Specified by)
- PPL-SPEC-001311 Grid convergence certificates (Specified by)
- PPL-SPEC-001427 BGP99 powerset extrapolation (Specified by)
- PPL-SPEC-001428 Certificate-based powerset widening (Specified by)
- PPL-SPEC-001371 H79 convergence certificate values and comparisons (Specified by)
- PPL-SPEC-001372 BHRZ03 convergence certificate values and comparisons (Specified by)
- PPL-SPEC-001386 Explicit powerset collapse (Specified by)
- PPL-SPEC-001463 Product component widening and convergence scope (Specified by)
PPL shall provide its supported powerset and product extrapolation facilities with a sound upper-bound relation under their arithmetic and iteration preconditions. A compound extrapolation shall be claimed as a widening only for combinations of base-domain operations, convergence certificates, reduction policies and iteration histories for which finite stabilization is established. Componentwise widening or sound enlargement alone shall not establish that compound convergence guarantee.
A powerset certificate must match its base widening, and information-sharing product reduction can restore constraints discarded by component widenings.
Verification covers compound extrapolation and widening operations, certificates, reduction and history preconditions. Related obligations: 🔗 4. Convergence of interval and box widening, 🔗 5. Polyhedral widening guarantees, 🔗 4. Bounded-difference widening guarantees, 🔗 5. Octagonal widening guarantees, 🔗 4. Intersection meaning of product domains, 🔗 5. Rational-grid widening facilities, 🔗 1. Meaning of successful exact and approximate results.
Review the convergence argument for each claimed compound widening and the applicability of its certificate, reduction policy and history. Check upper-bound inclusion during representative iterations, including disjunct collapse and finite delays. Include sharing-reduction examples that fail to stabilize and confirm they are classified as extrapolation rather than used as evidence for an unsupported widening claim.
BagnaraHZ06STTT | Whole work (background on powerset widening methodologies). BagnaraHZ06STTTerratum | Whole erratum (corrected figures for the journal article).
src/Pointset_Powerset_defs.hh: finite convergence certificate requirements and extrapolation. src/Partially_Reduced_Product_defs.hh: direct/smash convergence, information-sharing reduction limits and separate history. doc/definitions.dox: Certificate-Based Widenings.
-
4. Congruence-limited extrapolations UID: PPL-SPEC-001310 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000433 Rational-grid widening facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: limited_congruence_extrapolation_assign, limited_generator_extrapolation_assign and limited_extrapolation_assign shall require Y ⊆ X and apply their corresponding named or default widening, then intersect with the supplied limiter congruences satisfied by every entry point of X. Valid equalities already retained by widening need not be inserted redundantly. With an empty limiter they shall have exactly the corresponding widening's mathematical result and token effect. Finite-token behavior shall follow 🔗 1. Congruence widening and finite delay. The result shall contain the entry receiver, preserve ambient dimension and preserve external limiter/operand values. Unequal grid dimensions or excess limiter dimension shall throw std::invalid_argument before mutation. Convergence requires the usual widening iteration and a fixed finite limiter set; changing limiters provide only extrapolation guarantees.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Limiting restores established entry invariants, and an empty limiter must not silently switch the named widening strategy. The report gives the additional extrapolation details.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void limited_congruence_extrapolation_assign(const Grid& y, const Congruence_System& cgs, unsigned* tp = nullptr); void limited_generator_extrapolation_assign(const Grid& y, const Congruence_System& cgs, unsigned* tp = nullptr); void limited_extrapolation_assign(const Grid& y, const Congruence_System& cgs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Compare all three variants with their corresponding widenings for empty, satisfied, unsatisfied and mixed limiter rows; check generator-only caches, tokens, ascending chains, empty grids and invalid dimensions.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14). BagnaraDHMZ05TR | Section 6, Definitions 4–6, Proposition 11, finite convergence certificate and limited extrapolation (printed pages 19–22).
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/limitedextrapolation1.cc; tests/Grid/limitedextrapolation2.cc; tests/Grid/limitedextrapolation3.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
5. Grid convergence certificates UID: PPL-SPEC-001311 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000433 Rational-grid widening facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Grid_Certificate shall represent the lexicographic pair (e, p): the number of independent equalities and the number of proper congruence rows in a minimal description of a nonempty grid. In positive ambient dimension, p includes the normalization congruence and is one plus the number of independent discrete parameter directions. The grid-taking constructor and grid-taking comparison/stabilization queries require a nonempty grid. Default construction shall represent the zero-dimensional-universe certificate (0, 0); copying and assignment shall preserve the pair.
compare shall return minus one, zero or plus one for a smaller, equal or greater pair. is_stabilizing(gr) shall return exactly whether this pair is strictly greater than gr's pair. Compare shall order greater pairs first. OK() shall return true for certificates constructed through this interface. Computing a certificate may normalize grid caches but shall preserve its mathematical value. The two counts are the finite progress measure for compatible Grid widenings; they do not encode the grid's phase or coefficients.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Finite structural counts support powerset convergence without storing an entire represented grid. The report supplies the certificate construction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The compiler-supplied copy assignment preserves the certificate counts.
class Grid_Certificate { public: Grid_Certificate(); Grid_Certificate(const Grid& gr); Grid_Certificate(const Grid_Certificate& y); ~Grid_Certificate(); int compare(const Grid_Certificate& y) const; int compare(const Grid& gr) const; bool is_stabilizing(const Grid& gr) const; struct Compare { bool operator()(const Grid_Certificate& x, const Grid_Certificate& y) const; }; bool OK() const; };
VERIFICATION_CRITERIA: Compute equality and parameter ranks independently for empty-excluded product/coupled grids and every cache route. Check defaults, copies, assignment, comparison signs, equal-count distinct grids, reverse ordering and stabilization equivalence.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14). BagnaraDHMZ05TR | Section 6, Definitions 4–6, Proposition 11, finite convergence certificate and limited extrapolation (printed pages 19–22).
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/certificate1.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
2. BGP99 powerset extrapolation UID: PPL-SPEC-001427 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The receiver shall be the current iterate and y the previous iterate, with y.definitely_entails(*this) true in a common ambient space. The base function shall widen a containing first argument relative to its contained second argument and produce an upper bound. The method shall pairwise-reduce, optionally collapse when max_disjuncts != 0, then lift the base extrapolation over covered pairs while retaining uncovered current disjuncts. The result shall contain both input unions. Zero shall disable the collapse cap. The cap shall apply to the pre-extrapolation collection and shall not promise the same final count. This method alone shall not promise finite stabilization of arbitrary iteration sequences.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: A lifted base widening and a cardinality heuristic do not by themselves establish powerset convergence.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename Widening> void BGP99_extrapolation_assign(const Pointset_Powerset&, Widening, unsigned max_disjuncts);
VERIFICATION_CRITERIA: Check upper bounds, coverage preconditions, cap enabled/disabled and sequences where heuristic lifting is not a widening.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 4, Definition 7, Proposition 1 and Examples 2–3 (lifting heuristics and nonconvergence). BagnaraHZ06STTTerratum | whole erratum (corrected article figures).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/BD_Shape/bgp99extrapolation1.cc; tests/Box/bgp99extrapolation1.cc; tests/Polyhedron/bgp99extrapolation1.cc; tests/Polyhedron/bgp99extrapolation2.cc; tests/Powerset/powerset1.cc.
-
Incoming link from: 5. Threshold-aware CC76 box convergence certificates1
3. Certificate-based powerset widening UID: PPL-SPEC-001428 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The receiver shall contain the previous iterate y in powerset entailment order, in the same ambient dimension. widen_fun shall be a sound base widening with a compatible finite convergence certificate Cert. Certificate construction, comparison, predicate ordering, hulls, subtraction and exact pair merging shall satisfy the cited certificate-based widening hypotheses. Under these conditions, the method shall give an upper bound and finite stabilization for the prescribed ascending iteration history.
It shall prefer certified hull growth, then certified multiset decrease, then compatible lifted extrapolation and exact pair merging; if these cannot certify progress, it shall enlarge using base widening/subtraction or fall back to a singleton hull. An empty previous iterate shall leave the receiver unchanged. A certificate valid for one base widening or topology shall not qualify another combination without establishing those hypotheses.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Well-founded certificate progress supplies the convergence argument missing from heuristic pair lifting.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
template <typename Cert, typename Widening> void BHZ03_widening_assign(const Pointset_Powerset&, Widening);
VERIFICATION_CRITERIA: Check upper-bound inclusion and each selection/fallback path with compatible closed-polyhedron certificates; review certificate and history hypotheses separately from finite test runs.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 7, Definitions 14–16 and Theorem 3; Section 8, Definition 18 (certificate-based widening and merging). BagnaraHZ06STTTerratum | whole erratum (corrected article figures).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/BD_Shape/bhz03widening1.cc; tests/Box/bhz03widening1.cc; tests/Grid/bhz03widening1.cc; tests/Octagonal_Shape/bhz03widening1.cc; tests/Polyhedron/bhz03widening1.cc; tests/Powerset/powerset1.cc.
-
7. H79 convergence certificate values and comparisons UID: PPL-SPEC-001371 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty polyhedron, H79_Certificate shall record its affine dimension and number of nonredundant visible constraints, excluding internal positivity and epsilon bounds. The default certificate shall describe the zero-dimensional universe. Copying and assignment shall preserve the recorded value. Certificate comparison shall order the pair lexicographically, returning only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a containing nonempty same-dimensional polyhedron shall return 1 for increasing affine dimension, or at equal affine dimension for decreasing constraint count; -1 for increasing count and 0 for equal components. Zero shall not imply pointset equality. Generic non-polyhedron inputs shall be admitted only when their constraint descriptions can be converted to a closed polyhedron without strict inequalities. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 widening of P by Q , then H79_Certificate(P).compare(R) shall return 1. The NNC case shall reconcile epsilon representations before strong constraint minimization and saturation matching, as established in doc/definitions.dox (user-manual section NNC_Widening_Certificates). Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Certificate ordering and certified growth have different orientations; neither equality of components nor a negative growth result decides set inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of H79_Certificate.
H79_Certificate(); H79_Certificate(const Polyhedron&); template <typename PH, typename = void> requires (!std::is_convertible_v<const PH&, const Polyhedron&>) H79_Certificate(const PH&); H79_Certificate(const H79_Certificate&); H79_Certificate& operator=(const H79_Certificate&); ~H79_Certificate(); int compare(const H79_Certificate&) const; int compare(const Polyhedron&) const; template <typename PH> requires (!std::is_convertible_v<const PH&, const Polyhedron&>) int compare(const PH&) const; struct Compare { bool operator()(const H79_Certificate&, const H79_Certificate&) const; };
VERIFICATION_CRITERIA: Independently count ranks and facets, check default/copy/assignment, both comparison orientations, containing sets with equal components and generic closed conversion. Check NNC strip statistics across strict/closed endpoints, equivalent generator descriptions and alternating cache histories; these samples shall not be presented as a proof for NNC widening. Inspect doc/definitions.dox (user-manual section NNC_Widening_Certificates) and check tokenless widening progress on excluded faces and differing epsilon slopes.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Sections 3–5, limited-growth compatibility and component orderings.
SOURCE: src/H79_Certificate_defs.hh; src/H79_Certificate_inlines.hh; src/H79_Certificate.cc; tests/certificatelifecycles1.cc.
-
8. BHRZ03 convergence certificate values and comparisons UID: PPL-SPEC-001372 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000035 Polyhedral widening guarantees (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty polyhedron, BHRZ03_Certificate shall record affine dimension, lineality dimension, nonredundant visible constraint count, point or closure-point count, and for each possible number of zero coordinates the count of nonredundant rays with that many zero coordinates. Default shall describe zero-dimensional universe. Copying shall preserve the recorded value. Certificate comparison shall order these components lexicographically and return only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a same-dimensional nonempty containing polyhedron shall return 1 for growth certified stabilizing by the cited component ordering, 0 when the examined components agree and -1 otherwise. Increased affine/lineality dimension is stabilizing; at equal earlier dimensions a decrease of constraint, point or lexicographically examined ray counts is stabilizing. An increase in a later examined count may return -1 for a valid containing pair. Zero shall not establish set equality. is_stabilizing shall mean comparison is positive; OK shall test structural consistency of the stored component ranges. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 or BHRZ03 widening of P by Q , then BHRZ03_Certificate(P).compare(R) shall return 1. The NNC H79 selection path, including the BHRZ03 last resort, shall reconcile epsilon representations before strong constraint minimization and saturation matching. doc/definitions.dox (user-manual section NNC_Widening_Certificates) establishes this extension of the cited closed-polyhedron compatibility argument. Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Limited growth is a sufficient convergence argument, rather than a restatement of containment. Ray-coordinate counts distinguish later components without asserting geometric equality.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of BHRZ03_Certificate.
BHRZ03_Certificate(); BHRZ03_Certificate(const Polyhedron&); BHRZ03_Certificate(const BHRZ03_Certificate&); int compare(const BHRZ03_Certificate&) const; int compare(const Polyhedron&) const; bool is_stabilizing(const Polyhedron&) const; bool OK() const; struct Compare { bool operator()(const BHRZ03_Certificate&, const BHRZ03_Certificate&) const; };
VERIFICATION_CRITERIA: Count components independently for flats, simplices, pyramids/prisms and rays; check negative containing comparisons, default/copy, total-order consistency and stabilizing predicates. Check NNC point/closure-point counts and strict inclusions with equal tuples across equivalent representations and cache histories. Inspect the NNC compatibility argument and epsilon preparation separately; test tokenless widening progress across strict facets, excluded lower-dimensional faces and cache histories.
BIBLIOGRAPHY: BagnaraHRZ05SCP | Section 5, Definitions 10–11, Proposition 12 and Theorem 19.
SOURCE: src/BHRZ03_Certificate_defs.hh; src/BHRZ03_Certificate_inlines.hh; src/BHRZ03_Certificate.cc; tests/Polyhedron/bhrz03widening3.cc.
-
7. Explicit powerset collapse UID: PPL-SPEC-001386 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: collapse() shall replace a nonempty collection by an iterated base-domain upper bound, leaving at most one disjunct. Empty shall remain empty. collapse(k) shall require k > 0, reduce first, and leave at most k disjuncts by joining the suffix into the last retained element when necessary. The resulting union shall contain the input union; exactness shall hold only when the selected base joins are exact. No minimal decomposition or optimal choice of merged elements shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Cardinality control deliberately trades disjunctive precision for storage and computation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Powerset unless qualified otherwise.
void collapse(); void collapse(unsigned max_disjuncts);
VERIFICATION_CRITERIA: Check k equal to one, below/equal/above cardinality, empty input and a gap filled by convex collapse.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 5, Definition 10 (collapsors).
SOURCE: src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Powerset/collapse1.cc; tests/powersetlatticehistories1.cc.
-
1. Product component widening and convergence scope UID: PPL-SPEC-001463 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Specifies)
- PPL-LLR-000433 Rational-grid widening facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The set represented by y shall be contained in the set represented by the receiver. Default widening shall reduce both operands and mark the receiver's reduction unknown. If a reduced receiver component does not contain the corresponding reduced component of y, replace that receiver component with their upper bound before component widening. Both default component widenings shall receive the same optional token budget. The resulting intersection shall contain both input products.
widening_assign_with(y, widening1, widening2, tokens) shall perform the same input reductions and receiver reduction-state invalidation. The reduced component pairs shall already meet the selected preconditions. It shall invoke widening1 on the first pair of components before invoking widening2 on the second pair. Both shall receive the same optional token pointer. Callables shall be forwarded with their supplied value categories, without copying or storing them. They shall meet the selected component widening's preconditions and preserve its ambient dimension and upper-bound guarantees.
If a component callable throws, the exception shall propagate, subsequent callables shall not be invoked, and earlier component and token effects shall remain. The receiver shall be marked for lazy reduction. No whole-operation rollback shall be promised. The existing widening_assign member shall remain unambiguous when taking its address.
For direct and smash policies, the component convergence guarantees shall be preserved under their iteration and finite-delay conditions. For information- sharing policies, this operation shall be treated as componentwise extrapolation unless a separate combined convergence proof is supplied: reduction between iterations can restore discarded bounds. To use component convergence with sharing operations, a separate direct-product widening history shall remain free of sharing reduction, with reduced copies used for information exchange.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
RATIONALE: Restoring a discarded constraint through another component can prevent finite stabilization. Caller-selected component widenings expose the component domains' precision choices without changing the default operation or storing additional state in the product.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void widening_assign(const Partially_Reduced_Product&, unsigned* tokens=nullptr); template <typename Widening1, typename Widening2> void widening_assign_with(const Partially_Reduced_Product&, Widening1&&, Widening2&&, unsigned* tokens=nullptr);
VERIFICATION_CRITERIA: Check upper-bound inclusion, shared token changes, direct/smash stabilization, and default widening after a join that leaves incomparable reduced components; review history separation. Compare selected component algorithms with independent component calls using the same token budget. Check lvalue and rvalue noncopyable callables, component invocation order, exceptions in either callable, deferred reduction after exceptions, default member-address compatibility and self-aliasing.
SOURCE: src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/widening1.cc; tests/Partially_Reduced_Product/selectedwidenings1.cc.