Parma Polyhedra Library requirements
C++ pointset powerset convergence
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-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.