Parma Polyhedra Library requirements
Finite disjunctions and domain combinations
1. Disjunctive meaning of finite powersets UID: PPL-LLR-000071 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

Explicit finite disjunction can retain distinctions that the hull of a base domain would lose.

COMMENT:

Verification covers finite pointset-powerset value types and disjunctive construction. Related obligations: 🔗 5. Lifted operations on finite pointset powersets.

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

Bagnara98SCP | whole work (background) BagnaraHZ06STTT | whole work (background) BagnaraHZ06STTTerratum | Whole erratum; corrected figures for the journal article.

SOURCE:

doc/definitions.dox: The Powerset Construction; The Powerset Domain; The Pointset Powerset Domain. src/Pointset_Powerset_defs.hh: pointset powerset meaning.

2. Meaning-preserving removal of redundant disjuncts UID: PPL-LLR-000072 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

The implementation may retain redundant storage, so mathematical identity must not depend on an immediate canonical representation.

COMMENT:

Verification covers powerset reduction and representation maintenance. Related obligations: 🔗 3. Preservation by representation-only changes.

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

Bagnara98SCP | whole work (background)

SOURCE:

doc/definitions.dox: The Powerset Domain and lazy Omega-reduction. src/Powerset_defs.hh: nonredundancy and reduction. src/Pointset_Powerset_defs.hh: reduction operations.

3. Meaning of geometric powerset comparisons UID: PPL-LLR-000073 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

The same set can have different finite decompositions, and structural entailment need not capture geometric coverage.

COMMENT:

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.

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

BagnaraHZ06STTT | whole work (background) BagnaraHZ06STTTerratum | Whole erratum; corrected figures for the journal article.

SOURCE:

src/Pointset_Powerset_defs.hh: geometric coverage and equality. doc/definitions.dox: Geometric Comparisons.

  • PPL-SPEC-001429
    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): 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.

  • PPL-SPEC-001430
    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): 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.

  • PPL-SPEC-001389
    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): 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.

  • PPL-SPEC-001399
    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): 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.

  • PPL-SPEC-001401
    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): 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.

  • PPL-SPEC-001402
    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): 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.

  • PPL-SPEC-001403
    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): 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.

  • PPL-SPEC-001381
    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): 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.

4. Intersection meaning of product domains UID: PPL-LLR-000074 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

Reduction improves available information without changing the product's concretization. Componentwise query success alone need not prove a fact about the entire intersection.

COMMENT:

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.

VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

CousotC79 | whole work (background)

SOURCE:

src/Partially_Reduced_Product_defs.hh: concretization, reduction policies and query limitations. src/Partially_Reduced_Product_templates.hh: reduction behavior.

5. Lifted operations on finite pointset powersets UID: PPL-LLR-000429 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

The union interpretation of stored disjuncts must be retained by operations, not only by construction and redundant-element removal.

COMMENT: VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

BagnaraHZ06STTT | Whole work (background on finite powerset operations). BagnaraHZ06STTTerratum | Whole erratum (corrected figures for the journal article).

SOURCE:

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.

  • PPL-SPEC-001429
    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): 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.

  • PPL-SPEC-001430
    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): 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.

  • PPL-SPEC-001390
    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): 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.

  • PPL-SPEC-001413
    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): 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.

  • PPL-SPEC-001414
    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): 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.

  • PPL-SPEC-001415
    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): 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.

  • PPL-SPEC-001416
    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): 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.

  • PPL-SPEC-001417
    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): 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.

  • PPL-SPEC-001418
    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): 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.

  • PPL-SPEC-001419
    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): 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.

  • PPL-SPEC-001426
    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): 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.

  • PPL-SPEC-001420
    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): 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.

  • PPL-SPEC-001421
    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): 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.

  • PPL-SPEC-001422
    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): 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.

  • PPL-SPEC-001423
    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): 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.

  • PPL-SPEC-001407
    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): 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.

  • PPL-SPEC-001408
    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): 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.

  • PPL-SPEC-001409
    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): 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.

  • PPL-SPEC-001410
    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): 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.

  • PPL-SPEC-001411
    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): 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.

  • PPL-SPEC-001412
    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): 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.

  • PPL-SPEC-001424
    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): 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.

  • PPL-SPEC-001425
    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): 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.

  • PPL-SPEC-001404
    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): 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.

  • PPL-SPEC-001405
    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): 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.

  • PPL-SPEC-001406
    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): 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.

  • PPL-SPEC-001394
    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): 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.

  • PPL-SPEC-001395
    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): 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.

  • PPL-SPEC-001396
    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): 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.

  • PPL-SPEC-001397
    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): 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.

  • PPL-SPEC-001398
    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): 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.

  • PPL-SPEC-001384
    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): 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.

  • PPL-SPEC-001385
    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): 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.

  • PPL-SPEC-001386
    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): 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.

  • PPL-SPEC-001452
    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): 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.

  • PPL-SPEC-001453
    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): 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.

  • PPL-SPEC-001454
    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): 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.

  • PPL-SPEC-001455
    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): 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.

  • PPL-SPEC-001456
    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): 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.

  • PPL-SPEC-001457
    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): 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.

  • PPL-SPEC-001458
    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): 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.

  • PPL-SPEC-001459
    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): 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.

  • PPL-SPEC-001460
    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): 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.

  • PPL-SPEC-001449
    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): 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.

  • PPL-SPEC-001450
    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): 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.

  • PPL-SPEC-001451
    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): 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.

  • PPL-SPEC-001461
    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): 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.

  • PPL-SPEC-001462
    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): 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.

  • PPL-SPEC-001443
    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): 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.

  • PPL-SPEC-001437
    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): 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.

6. Compound extrapolation and finite convergence UID: PPL-LLR-000430 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

A powerset certificate must match its base widening, and information-sharing product reduction can restore constraints discarded by component widenings.

COMMENT: VERIFICATION_CRITERIA:

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.

BIBLIOGRAPHY:

BagnaraHZ06STTT | Whole work (background on powerset widening methodologies). BagnaraHZ06STTTerratum | Whole erratum (corrected figures for the journal article).

SOURCE:

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.

  • PPL-SPEC-001310
    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): 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.

  • PPL-SPEC-001311
    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): 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.

  • PPL-SPEC-001427
    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): 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.

  • PPL-SPEC-001428
    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): 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.

  • PPL-SPEC-001371
    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): 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.

  • PPL-SPEC-001372
    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): 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.

  • PPL-SPEC-001386
    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): 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.

  • PPL-SPEC-001463
    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): 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.