-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
1. Transition encoding and ranking interpretation PPL-SPEC-001506 A single transition input of dimension 2n shall place after-state coordinates x’ in indices 0, …, n − 1 and before-state coordinates x in indices n, …, 2n − 1. An odd dimension shall raise std::invalid_argument. Paired inputs shall have dimensions n and 2n; otherwise they shall raise std::invalid_argument before analysis. The first input shall restrict before states in its own indices 0, …, n − 1; the second shall use the single-input ordering. Their aligned conjunction shall define the analyzed relation. For paired inputs, emptiness of the conjunction shall be determined with strict rows intact before relaxation. If the exact conjunction is empty, the paired Boolean tests shall succeed and the paired witness operations shall return an admissible coefficient point of dimension n + 1.
The input type shall provide supported minimized linear constraints. Numerical guarantees shall concern the rational transition approximation defined by those constraints, with sound positive conclusions for every represented concrete transition. A coefficient point of dimension n + 1 shall encode f(x) = c + ∑iaixi with slopes in indices 0, …, n − 1 and constant c at index n. A ranking argument shall require a finite uniform lower bound and a uniform decrease δ > 0 over transitions. Strict positivity at individual transitions alone shall not replace uniform decrease. Input mathematical values shall remain unchanged. Separate outputs shall not alias one another or the inputs.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. MS termination test outcomes PPL-SPEC-001507 A completed true result shall certify an affine ranking for the analyzed transition approximation under 🔗 1. Transition encoding and ranking interpretation. False shall mean that this test is inconclusive about termination. It shall not mean that the loop has an infinite execution, even for an exact input relation. Single and paired forms shall use the same coordinate convention and preserve input values. Resource or arithmetic exceptions shall not constitute a true result.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. MS affine ranking witnesses PPL-SPEC-001508 On true, the output shall be assigned a point of dimension n + 1 encoding an affine function satisfying the MS nonnegative and unit-decrease ranking obligations over the analyzed approximation. No particular witness shall be selected. On false, no witness value shall be promised and termination shall remain inconclusive. The layout and dimension admission rules in 🔗 1. Transition encoding and ranking interpretation shall apply.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 5. MS affine quasi-ranking spaces1
4. Normalized MS affine ranking spaces PPL-SPEC-001509 The output shall replace its prior value with a closed polyhedron of dimension n + 1 containing exactly the affine coefficient tuples that satisfy f(x) ≥ 0 and f(x) − f(x’) ≥ 1 on every rational transition described by the input constraints. For an empty relation it shall be universe, including an empty conjunction of individually nonempty paired inputs. Strict constraints shall be preserved when establishing that emptiness; for nonempty relations these weak ranking obligations also hold on the closure. An empty output shall mean no normalized affine ranking exists and shall not establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. MS affine quasi-ranking spaces PPL-SPEC-001510 The two distinct outputs shall be closed polyhedra of dimension n + 1. The decreasing space shall contain exactly tuples satisfying f(x) − f(x’) ≥ 1 on every analyzed rational transition, with unrestricted additive constant. The bounded space shall contain exactly tuples satisfying f(x) ≥ 0 on every such before state. It shall use that nonnegative normalization rather than accept every arbitrary finite lower bound.
Their intersection shall equal the normalized MS ranking space. Empty relations shall yield universe in both outputs; the zero function shall always belong to the bounded space. Strict boundaries and paired conjunction emptiness shall be handled as in 🔗 4. Normalized MS affine ranking spaces. Neither an empty decreasing space nor an empty intersection shall establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. PR termination test outcomes PPL-SPEC-001511 A completed true result shall certify an affine ranking with a finite lower bound and uniformly positive decrease over the analyzed transition approximation. For the paired form both obligations apply to the aligned conjunction, including bounds implied by the transition description. False shall be inconclusive about termination. Unit decrease and nonnegative normalization shall not be required for the PR certificate. The coordinate and valid-use rules in 🔗 1. Transition encoding and ranking interpretation shall apply to both the single and paired forms.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. PR affine ranking witnesses PPL-SPEC-001512 On true, the output shall be assigned a point of dimension n + 1 encoding an affine function with a finite uniform lower bound and uniformly positive decrease over the analyzed approximation. Its constant coordinate shall follow 🔗 1. Transition encoding and ranking interpretation; no nonnegative normalization or particular witness shall be required. On false, no output value shall be promised and termination shall remain inconclusive.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
8. PR affine ranking spaces PPL-SPEC-001513 The output shall replace its prior value with an NNC polyhedron of dimension n + 1 describing the affine coefficient tuples with a finite lower bound and a uniform decrease δ > 0 over the rational relation defined by the input constraints. For the paired form both obligations apply to the same aligned conjunction. In particular, the lower bound may follow from the transition description. The additive constant shall be unrestricted. No unit-decrease or nonnegative normalization shall be imposed. For an empty relation the space shall be universe, including empty aligned conjunctions of individually nonempty paired inputs. Strict boundaries shall not be discarded before establishing such emptiness. An empty output shall exclude rankings of this form and shall not establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 3. Unreachable macro diagnostic selection1
1. Fatal unreachable and assertion diagnostics PPL-SPEC-001590 The default library definitions of ppl_unreachable, ppl_unreachable_msg and ppl_assertion_failed shall call abort and shall not return. With ordinary functioning diagnostic output, ppl_unreachable_msg shall first write to std::cerr the file, line, function and supplied latent-fault message; ppl_assertion_failed shall write the same location plus the supplied failed-assertion text. The message-free helper shall add no diagnostic output. Non-null live null-terminated text arguments shall be required. Diagnostic stream failures shall retain the stream's ordinary failure/exception behavior; output failure shall not be interpreted as successful continuation.
Where the build supports weak replacement of these definitions, a client replacement shall retain the declared nonreturning interface and own its replacement behavior. The default abort behavior shall apply when no such replacement is linked.
-
2. Enabled and disabled assertion evaluation PPL-SPEC-001591 With NDEBUG absent, PPL_ASSERT(cond) and PPL_EXPECT(cond) shall evaluate the condition once and invoke the assertion-failure diagnostic when false. An ordinary assertion shall preserve computational weight; the additional weight check enabled by PPL_DEBUG_PPL_ASSERT shall diagnose a weight-changing condition. PPL_ASSERT_HEAVY and PPL_EXPECT_HEAVY shall evaluate their condition once under the assertion weight guard, suppressing instrumentation weight additions according to 🔗 6. Assertion-scope instrumentation suppression. A true assertion shall continue normally. A thrown condition exception shall propagate, with the heavy guard's assertion-state restoration on scope exit. Direct mutations of the weight variable shall retain their ordinary effects; the guard shall not provide numerical rollback.
With NDEBUG defined, all four macros shall omit condition evaluation, including its side effects. Macro use shall provide a condition meaningful in an enabled build and satisfy the shared-weight synchronization conditions of the selected runtime profile.
-
3. Unreachable macro diagnostic selection PPL-SPEC-001592 PPL_UNREACHABLE_MSG(msg) shall invoke the message-bearing unreachable helper when NDEBUG is absent, supplying the macro invocation's file, line and function. With NDEBUG defined, it shall invoke the message-free helper and shall not evaluate the message expression. PPL_UNREACHABLE shall supply the literal message unreachable in an enabled build. Neither macro shall continue through the default helper. The helper and client-replacement conditions of 🔗 1. Fatal unreachable and assertion diagnostics shall apply.
-
4. Containment queries on independent value copies PPL-SPEC-001593 copy_contains(x,y) shall invoke contains on its by-value argument copies and return that query's Boolean result. The type shall provide value copies on which contains can operate without mutating either original or shared caller-owned storage. Under that precondition, the helper shall preserve the two original objects, including mutable representation caches. The type's copying and containment contracts shall otherwise apply. Copy or query exceptions may propagate; argument-copy resources shall be released during normal completion and unwinding. The template shall require valid copyable argument values and the corresponding contains operation, plus the type's initialization, numerical and synchronization prerequisites.
-
Incoming links from: 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image2
1. Rational affine image of one coordinate PPL-SPEC-001111 For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with a bounded-difference shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = xj + c , including self translation, shall give the exact image. Other affine expressions may require a conservative bounded-difference enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate PPL-SPEC-001112 With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
For xk : = xj + c , the post-state constraints shall be substituted using that expression. With exact rational boundary arithmetic, both self translation and distinct-coordinate copy plus translation shall give the exact bounded-difference preimage; in the distinct-coordinate case the pre-state xk shall be free. Rounded profiles shall preserve the corresponding outward substitutions and consistency checks. Other transformations shall give sound containing shapes; they need not compute the least bounded-difference enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
3. Single-coordinate generalized affine image PPL-SPEC-001113 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
4. Single-coordinate generalized affine preimage PPL-SPEC-001114 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast bounded-difference enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image PPL-SPEC-001115 Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound bounded-difference enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as a bounded-difference expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
6. Expression-left generalized affine preimage PPL-SPEC-001116 With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast bounded-difference enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image PPL-SPEC-001117 For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
8. Single-coordinate bounded affine preimage PPL-SPEC-001118 With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast bounded-difference enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
9. Native interval-affine image PPL-SPEC-001119 For a supported native floating-point boundary type T , a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B , affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted difference-bound language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
-
1. Threshold bounded-difference extrapolation and precision-sensitive tokens PPL-SPEC-001120 Let Y be the argument's entry set and X the receiver's entry set, with Y ⊆ X. The explicit-iterator CC76_extrapolation_assign shall produce a bounded-difference enclosure of X, preserving the ambient dimension. An empty argument shall leave the receiver's represented set unchanged. Empty and universe in zero dimensions shall retain their distinct meanings; self-aliasing shall preserve the represented set.
For nonempty operands under unbounded exact arithmetic, let bZ(v) = sup{v⋅p ∣ p ∈ Z} for each unary or coordinate-difference normal v. With no available delay token, a stable finite bound bX(v) = bY(v) shall be retained. An increasing bound bX(v) > bY(v) shall move to the least supplied threshold not below bX(v), or become unbounded when there is no such threshold. An already unbounded bound shall remain unbounded. The result shall be the conjunction of these closed upper inequalities. General closed bounded-difference iterations of this extrapolation shall not carry a finite-stabilization guarantee.
Other supported profiles shall apply this comparison-and-threshold rule to an outward closed bound representation preserving the entry sets under [LINK: PPL-SPEC-001056]. Assigning a selected threshold shall round outward in the selected profile. This shall not exclude any point of X; rounded closure shall not be required to supply exact support values.
The half-open threshold range shall use readable multipass forward iterators. Its values shall be finite, sorted in nondecreasing numerical order and stable throughout the call. Empty ranges and duplicate values shall be admitted. Comparison with the selected coefficient type and outward assignment to that type shall satisfy their numerical contracts. The range shall not borrow storage invalidated or modified by the call.
A null token pointer or a zero counter shall select the undelayed result. With a positive counter the receiver's represented set shall remain X; the counter shall decrease by exactly one if the corresponding undelayed result strictly enlarges X, and otherwise remain unchanged. The counter shall be a live, separately owned, externally synchronized writable unsigned object. The argument, range and any distinct source value shall remain unchanged.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 6. Limited threshold bounded-difference extrapolation1
2. Default bounded-difference stop points PPL-SPEC-001121 CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001120] with the ordered mathematical stop points − 2, − 1, 0, 1, 2, interpreted through the selected profile's outward bound operations. Stop points already exactly representable shall retain their values. A stop point below every admitted finite bound shall not create an extra restriction.
The mathematical operand order, compatible dimensions, source preservation, aliases, empty/zero-dimensional cases and precision-sensitive token rule shall be those of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens. A positive token counter shall retain the receiver's entry set and shall be decremented only for an undelayed strict enlargement. Sharing the default stop-point objects among calls shall not change represented results or token decisions.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 4. Limited semantic bounded-difference extrapolation1
3. Semantic bounded-difference widening PPL-SPEC-001122 With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall produce a bounded-difference set containing both. An empty argument, a singleton argument, or an increase of affine dimension from Y to X shall retain X.
For equal positive affine dimension under unbounded exact arithmetic, the undelayed result shall be the semantic standard widening: choose a nonredundant bounded-difference inequality description of Y, retain the inequalities satisfied by all points of X, and conjoin them. Equivalent descriptions, redundant bounds, closure/reduction histories and choices of an irredundant basis shall not change the represented result. This shall not require a least widening or strict precision loss at every call. Supported rounded arithmetic shall preserve inclusion and the stated semantic and convergence obligations under 🔗 1. Bounded-difference values, numerical profiles and valid use.
The token rule shall be the precision-sensitive rule of [LINK: PPL-SPEC-001120], using this operator's undelayed result. Self-aliasing shall retain the entry set and not consume a token.
For a fixed dimension and profile, an ascending iteration shall first enclose the preceding widened result and the next input, then apply this operator with that enclosure as receiver and the preceding result as argument. Under its inclusion and arithmetic prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve this guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
4. Limited semantic bounded-difference extrapolation PPL-SPEC-001123 For Y ⊆ X, limited_BHMZ05_extrapolation_assign shall combine the semantic widening of 🔗 3. Semantic bounded-difference widening with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be the delayed or undelayed base widening result, with its token decision made before applying L. The result shall denote W∩L; it shall contain X and be contained in W. Positive available tokens shall therefore retain X, while their consumption shall follow the undelayed base widening rather than the final limited result.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set without consuming a token. A distinct argument and the supplied system shall retain their represented values; self-aliasing shall be admitted.
A fixed finite limiting system, fixed dimension/profile, admitted exact comparisons and normalization, and a finite unreplenished token budget shall retain finite stabilization in the prescribed ascending recurrence. Arbitrarily replacing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
5. Bounded-difference narrowing and descending operand order PPL-SPEC-001124 Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall replace the receiver with a shape representing R, satisfying X ⊆ R ⊆ Y, preserving dimension and coordinate identities. An empty receiver shall stay empty, and zero-dimensional values and self-aliasing shall preserve their entry meanings.
For nonempty operands under unbounded exact arithmetic, use the primitive unary/difference support bounds bX(v) and bY(v) defined in 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite, and otherwise bX(v). Thus a finite previous bound shall be retained even if the current bound is tighter; an infinite previous bound shall allow recovery of the current bound.
Supported rounded profiles shall use their outward closed profile bounds while preserving both set inclusions. The result shall not be required to retain every improvement of the current iterate. For fixed dimension under unbounded exact arithmetic, descending iteration using each result as the next previous argument shall stabilize after finitely many strict changes: a strict narrowing step must introduce a previously absent finite primitive bound. Finite-carrier profiles shall retain stabilization under the same inclusion and arithmetic conditions.
The order of receiver and argument shall follow the descending inclusion above, rather than the ascending inclusion used by widening. A distinct previous argument shall retain its represented value.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
6. Limited threshold bounded-difference extrapolation PPL-SPEC-001125 For Y ⊆ X, limited_CC76_extrapolation_assign shall combine the default threshold extrapolation of 🔗 2. Default bounded-difference stop points with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be that default extrapolation, including its token decision before applying the limits. The result shall denote W∩L, containing X and contained in W. Positive tokens shall retain X and be consumed according to the undelayed base extrapolation, even if limiting would restore the lost information.
An empty argument, an empty receiver or zero-dimensional operands shall retain the entry receiver set and counter. The supplied system and distinct argument shall retain their values; self-aliasing shall be admitted. This operation remains a relational extrapolation without a general finite-stabilization guarantee for arbitrary closed-shape iterations.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 8. Polyhedral limited extrapolation of bounded-difference values1
7. Polyhedral standard widening of bounded-difference values PPL-SPEC-001126 For Y ⊆ X, H79_widening_assign shall compute the standard H79 widening of the closed polyhedra denoted by the entry operands and convert the result to the selected bounded-difference profile. The conversion shall follow 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. widening_assign shall have the same mathematical result and token behavior.
The result shall contain both entry sets. With exact representable arithmetic, the standard widening result for bounded-difference inputs shall retain its mathematical meaning. Supported rounded conversion shall be conservative under 🔗 1. Bounded-difference values, numerical profiles and valid use. On nonempty equal-affine-dimension operands, the standard polyhedral result shall be characterized by retaining from an irredundant inequality description of Y precisely the inequalities satisfied throughout X.
The precision-sensitive token policy of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens shall be applied to the intermediate polyhedral widening before conversion. A positive counter shall retain the receiver's entry set and decrease only for a strict undelayed widening enlargement. Empty previous arguments, self-aliasing and zero-dimensional values shall retain their usual upper-bound meanings.
For fixed dimension/profile and a finite unreplenished initial token budget, the prescribed ascending recurrence shall stabilize under its mathematical inclusion and arithmetic prerequisites. Convergence shall not depend on a redundant source description or on when closure/export queries were performed. No least-widening or strict-progress requirement shall be inferred.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
8. Polyhedral limited extrapolation of bounded-difference values PPL-SPEC-001127 For Y ⊆ X, limited_H79_extrapolation_assign shall first interpret the entry sets as closed polyhedra, compute polyhedral limited H79 extrapolation using the supplied constraint system, and convert that result under 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The system dimension shall not exceed the common operand dimension and shall contain no strict row; invalid dimensions or strictness shall throw std::invalid_argument before changing receiver or counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional inputs, every supplied non-strict constraint satisfied by the entry receiver shall be eligible for the intermediate polyhedral intersection. General linear forms shall be admitted; selection shall not be restricted to unary and coordinate-difference rows. The intermediate result shall be the base H79 widening intersected with the selected constraints. Its token decision shall precede that intersection and follow 🔗 7. Polyhedral standard widening of bounded-difference values.
The final bounded-difference result shall contain X. Facets outside the domain and outward scalar conversion may prevent that result from satisfying the original limiting constraints. For example, a selected two-variable sum can influence the intermediate polyhedron even though it is absent from the final template description.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set and counter. A distinct argument and the supplied system shall preserve their values, and self-aliasing shall be admitted. A fixed finite limiting system and finite unreplenished token budget shall preserve finite stabilization under the standard polyhedral widening's ascending recurrence and arithmetic prerequisites. Arbitrarily changing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
1. Closed bounded-difference support hull of geometric generators PPL-SPEC-001072 BD_Shape(gs) shall give the least target-profile bounded-difference enclosure of the convex set generated by gs. The constructor shall close finite excluded boundaries: points and closure points shall both contribute their actual rational coordinates to support extrema. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so when that scalar product is nonzero. A zero directional product shall not remove a finite bound.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Rational point and closure-point divisors, zero trailing coordinates and the distinction between rays and lines shall retain the meanings in 🔗 1. Generator kinds and numerical prerequisites and [LINK: PPL-SPEC-000182].
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
2. Complexity-sensitive bounded-difference conversion from polyhedra PPL-SPEC-001073 BD_Shape(ph,complexity) shall contain the source polyhedron for ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY; other complexity codes shall be outside the admitted interface.
ANY_COMPLEXITY shall give the least target-profile bounded-difference enclosure, including exact detection of an empty source. Strict source boundaries shall become included whenever they determine finite limiting bounds of the closed result.
SIMPLEX_COMPLEXITY shall give the same exact primitive suprema for a nonempty source, with target bounds converted outward according to the selected profile. It need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
POLYNOMIAL_COMPLEXITY may use conservative bounded-difference extraction and propagation from source constraints. It shall preserve containment, without a general best-enclosure, exact-emptiness or particular fixed-point iteration guarantee. Equivalent source cache and representation histories may produce different allowed conservative results. Every option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
Incoming link from: 12. Certified finite scalar embeddings1
3. Best bounded-difference enclosure of Cartesian boxes PPL-SPEC-001074 BD_Shape(box,complexity) shall give the least target-profile bounded-difference enclosure containing the Cartesian product represented by box. The result shall be closed: a finite open interval endpoint may determine an included limiting bound.
The exact supremum of a difference xi − xj shall combine the source upper endpoint of coordinate i and lower endpoint of coordinate j before target-profile rounding. An unbounded contributing endpoint shall leave that normal unrestricted. Empty factors shall give empty in the original ambient dimension. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
4. Best bounded-difference enclosure of rational grids PPL-SPEC-001075 BD_Shape(grid,complexity) shall give the least target-profile bounded-difference enclosure of the entire rational grid. It shall preserve every fixed unary or difference affine value, including values implied by the full congruence system. Equivalent source descriptions shall give mathematically equivalent results in the same target profile.
A supported normal shall have a finite bound exactly when it annihilates every real line, integer parameter and difference between source base points. In that case its value shall equal its value at any source base point, and both signed bounds shall be converted to the target profile. A nonzero response to an integer parameter shall make the normal unbounded in both directions; a periodic restriction shall not become a finite interval or an integer-only coordinate carrier. Empty grids shall remain empty. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
5. Best bounded-difference enclosure of octagonal shapes PPL-SPEC-001076 BD_Shape(os,complexity) shall give the least target-profile bounded-difference enclosure of the set represented by octagon. Unary and difference suprema shall include consequences of signed-sum constraints and their combinations. Nonempty source sets shall not lose an admitted supported relation through a change in source description or normalization history.
The constructor shall preserve empty and zero-dimensional meanings and shall convert finite bounds outward to the target profile. The source and target numerical profiles may differ. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
1. Unrestricted bounded-difference coordinate extension PPL-SPEC-001102 add_space_dimensions_and_embed(m) shall change an entry value X ⊆ ℝn into exactly X×ℝm in dimension n + m. Original coordinates shall keep their indices and relationships. The fresh coordinates shall have indices n, …, n + m − 1 and be unrestricted; no fresh-to-original or fresh-to-fresh equality shall be imposed. Empty input shall remain empty in the new ambient dimension. Zero-dimensional universe shall extend to universe. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include counts whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive extension into a successful smaller one.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
-
2. Zero-fixed bounded-difference coordinate extension PPL-SPEC-001103 add_space_dimensions_and_project(m) shall change an entry value X ⊆ ℝn into exactly X×{0}m in dimension n + m. Original coordinates shall keep their indices and relationships. Every fresh coordinate, with index n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the new dimension; zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include a mathematical sum outside dimension_type's range, without accepting its wrapped value.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
-
3. Ordered Cartesian concatenation of bounded-difference values PPL-SPEC-001104 concatenate_assign(other) shall replace an entry value X ⊆ ℝn with exactly X×Y ⊆ ℝn + m, where Y ⊆ ℝm is other's entry value. The first n coordinates shall belong to X, followed by Y's coordinates in their original order. Cross-block consequences shall follow from Cartesian independence, rather than identifying coordinates with equal indices in the two operands.
An empty operand shall give empty in dimension n + m. Zero-dimensional universe shall be an identity on either side; zero-dimensional empty shall be an annihilator while retaining the sum dimension. Self concatenation shall use two independent copies of the entry value. A requested sum dimension above max_space_dimension() shall throw std::length_error.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. A distinct other shall retain its represented entry value; logically const cache normalization may change its storage. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
Incoming link from: 5. Injective partial remapping of bounded-difference coordinates1
4. Existential bounded-difference coordinate removal PPL-SPEC-001105 remove_space_dimensions(vars) shall existentially remove exactly the entry coordinates in vars. Remaining coordinates shall be compacted in ascending original-index order. remove_higher_space_dimensions(k) shall existentially remove the suffix with indices k, …, n − 1, retaining the original prefix order. Removal shall retain all implied relations among survivors, including relations whose proof uses removed coordinates.
With exact computational arithmetic, both operations shall give the exact existential projection, which is bounded-difference representable. Rounded computational profiles shall give a sound projection with the closure precision admitted by 🔗 1. Bounded-difference values, numerical profiles and valid use. Removing no coordinates shall preserve the entry value; removing every coordinate shall give zero-dimensional universe exactly when the entry value is nonempty, otherwise zero-dimensional empty. Empty inputs shall retain emptiness in the reduced dimension.
An element of vars outside the entry dimension, or k greater than that dimension, shall throw std::invalid_argument. Empty selections and a suffix length of zero shall also apply to zero-dimensional values.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variables_Set shall retain its own valid-use contract and shall remain unchanged. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
5. Injective partial remapping of bounded-difference coordinates PPL-SPEC-001106 map_space_dimensions(mapping) shall existentially discard every entry coordinate outside the mapping domain and place each surviving coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from the entry indices 0, …, n − 1, with image exactly 0, …, m − 1 for some m ≤ n. The result shall have dimension m; an empty mapping shall project to the zero-dimensional value.
With exact computational arithmetic, the result shall equal the projected and relabeled entry set. Rounded profiles shall retain the projection precision of 🔗 4. Existential bounded-difference coordinate removal. Empty and universe values shall retain those meanings in the mapped dimension. An identity mapping shall preserve the value; a permutation shall retain all renamed relations.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. A zero-dimensional input shall remain unchanged and require no mapping query; mapping-value restrictions shall apply only to positive-dimensional receivers. Otherwise has_empty_codomain() shall be queried first; when true, neither remaining query shall be called. When false, the maximum shall be queried before mappings are consumed. Queries shall describe one stable mapping throughout the call. No specific number or order of individual maps queries shall be required. Violating injectivity, source bounds, contiguous image or query consistency shall be outside the admitted interface.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied mapping shall remain live and describe a stable partial function. Exceptions escaping its queries shall propagate. After a query exception, destruction shall release owned storage, and assigning a complete valid value to the destination shall be supported before further geometric use. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
6. Bounded-difference coordinate expansion by independent fibers PPL-SPEC-001107 For an existing coordinate v < n, expand_space_dimension(var,m) shall append m coordinates in positions n, …, n + m − 1 and retain original coordinate positions. Let X ⊆ ℝn be the entry set and let u[v ← a] denote replacing coordinate v of the old-coordinate prefix of u by a. The declared bounded-difference result shall be the independent-fiber relation
{u ∈ ℝn + m ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.Thus every replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Neither equality with the original selected coordinate nor equality among replicas shall be imposed unless implied by those restrictions. This result shall contain the generic common-replica coordinate-expansion relation of 🔗 2. Concatenation, coordinate expansion and folding. Each new coordinate shall have independently owned storage.
The relation above is itself bounded-difference representable. Exact copying of admitted entry bounds shall preserve it; any delegated computational rounding shall retain the supported numerical guarantees of [LINK: PPL-SPEC-001056]. Empty input shall remain empty. Adding zero replicas shall preserve the value after checking that var is an existing coordinate. An invalid coordinate shall throw std::invalid_argument even for zero replicas or empty input. A final dimension above max_space_dimension() shall throw std::length_error.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable shall retain its own valid-use contract. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
7. Alternative-coordinate folding of bounded-difference values PPL-SPEC-001108 fold_space_dimensions(vars,dest) shall combine the alternatives obtained by keeping the original destination value or replacing it by the value of any entry coordinate in vars, then remove every folded coordinate. Surviving indices, including the destination's new index, shall be compacted in ascending original order. Other surviving coordinates shall keep their entry meanings within each alternative.
With exact computational arithmetic, the result shall be the least bounded-difference enclosure of that union of alternatives. In particular, its unary and difference bounds shall be the corresponding suprema over all alternatives. Rounded profiles shall retain a sound enclosure and their admitted closure and numerical precision under 🔗 1. Bounded-difference values, numerical profiles and valid use. The union need not be convex or itself bounded-difference representable. Empty input shall remain empty in the reduced dimension. Empty vars shall preserve the value after validating the destination coordinate.
The destination and every folded coordinate shall be inside the entry space, and the destination shall not belong to vars. An invalid coordinate or selection containing the destination shall throw std::invalid_argument. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable and Variables_Set shall retain their own valid-use contracts. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
8. Extension of bounded-difference redundancy bitmaps PPL-SPEC-001655 Implementation::extend_bd_redundancy shall require a live valid square Bit_Matrix with n rows and new_rows representing N ≥ n in dimension_type. For an extent supported by the matrix row and bit-index types, it shall return true, set both dimensions to N, preserve each entry (i, j) with i, j < n, and set every other entry to one. A one bit denotes a redundant bound. No coefficient arithmetic shall be performed. An unsupported extent shall return false without changing the bitmap.
Allocation failures may propagate and leave a partially extended bitmap; owned resources shall remain safely destructible, without a rollback or valid-cache guarantee. The caller shall clear the reduction certificate before a potentially failing extension and restore it only on success. Initialization, lifetime and synchronized access shall follow the bitmap and bounded-difference value contracts.
-
1. Rectilinear distance of bounded-difference closed-bound tables PPL-SPEC-001142 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three rectilinear_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be ∑i ≠ jdij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 17. Rectilinear distance between bound-entry arrays.
-
Incoming link from: 4. Bounded-difference distance normalization, boundaries and workspaces1
2. Euclidean distance of bounded-difference closed-bound tables PPL-SPEC-001143 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three euclidean_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be √(∑i ≠ jd 2ij), with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 18. Euclidean distance between bound-entry arrays.
Rational square-root enclosure shall retain 🔗 2. Finite rational square root at the selected irrational precision and the calling precision of 🔗 3. Selection and ownership of irrational rational precision, which shall remain stable throughout the dependent call.
-
3. Maximum-coordinate distance of bounded-difference closed-bound tables PPL-SPEC-001144 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three l_infinity_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be maxi ≠ jdij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 19. Maximum-coordinate distance between bound-entry arrays.
-
4. Bounded-difference distance normalization, boundaries and workspaces PPL-SPEC-001145 For a nonempty shape of ambient dimension n, let z0 = 0 and zi = xi − 1 for 1 ≤ i ≤ n. Position (i, j) of its square bound table shall describe zj − zi ≤ bij. A positive-infinite bound shall impose no restriction. Distance tuples shall include every ordered off-diagonal position. Matching positive-infinite diagonal sentinels shall contribute zero.
The selected tables shall be those used after the call's required shortest-path normalization. When closure arithmetic is exact under its range prerequisites, finite entries shall be the primitive suprema of the represented set, with infinity for unbounded forms. Rounded or saturating closure shall retain 🔗 1. Bounded-difference values, numerical profiles and valid use; its tables need not be canonical, idempotent or invariant across alternative source descriptions. The distance shall be computed from the selected tables, as retained in compatible post-call records of 🔗 2. Reloadable bounded-difference record export, rather than being a point-set or Hausdorff distance. Normalization shall preserve each source's represented set and ambient dimension.
Different ambient dimensions shall return false before modifying the result or supplied workspaces. False shall assign no distance for that incompatible pair. Dimension-compatible two-empty shapes shall have distance zero; exactly one empty shape shall have positive-infinite distance. In dimension zero, two universe shapes shall also have distance zero. These rules shall apply to logically empty sources whose emptiness has not yet been classified. Equal dimensions shall return true on successful numerical completion, with the value specified by 🔗 1. Rectilinear distance of bounded-difference closed-bound tables, [LINK: PPL-SPEC-001143] or 🔗 3. Maximum-coordinate distance of bounded-difference closed-bound tables.
The overload without an explicit temporary type shall use three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar Temp argument shall instead use three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied-workspace overload shall use the actual type of its three references, which may be an admitted raw or checked numeric type. The supported operation, rounding, representation and overlap conditions of 🔗 20. Distance scratch storage, admissible overlaps and numeric conditions shall apply to the selected metric specializations, subject to the public source-storage condition below.
Calls evaluating finite entry differences shall use ROUND_DOWN or ROUND_UP, optionally combined with ROUND_STRICT_RELATION. They shall not require finite source conversions to be exact merely to establish the requested directed bound. Paths performing only exact zero or positive-infinity assignments shall admit directions valid for those selected scalar assignments. An output profile shall support positive infinity whenever that outcome is reachable. Every conversion, difference, sum, square, square root and final assignment shall satisfy its selected backend's arithmetic, range, numerical-failure, resource, initialization and nontrapping prerequisites. Native arithmetic shall retain configured support and the initialized caller-owned FPU conditions; the call shall preserve caller rounding. Rational square-root precision shall remain stable throughout a dependent call.
Sources shall be live valid objects under 🔗 1. Bounded-difference values, numerical profiles and valid use. The same shape may be supplied for both operands. The three mutable supplied workspaces shall be live, pairwise distinct, and disjoint from source-owned storage. Their entry values need not be initialized when overwritten before reading. The result shall have live assignable storage disjoint from source-owned storage, but may overlap any one supplied workspace or its compatible underlying raw storage. When the result overlaps a workspace, its mathematical value shall still use source values on entry. No workspace entry value shall be required when overwritten before reading. Callers shall preserve object/storage lifetimes and synchronize source access, including logically const cache updates.
Numerical and recoverable resource failures shall retain their selected propagation channels and permitted partial result/workspace states; no aggregate rollback guarantee shall be inferred. Discarded owned temporaries shall be released, while reusable numerical cache storage shall retain its own lifetime and cleanup contract. Ordinary dimension mismatch shall retain the stronger unchanged-output/workspace guarantee above. Otherwise valid calls shall require no additional library initialization beyond their selected representation, numerical and thread runtime prerequisites.
-
1. Bounded-difference time evolution by nonnegative rates PPL-SPEC-001128 Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least bounded-difference enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each unary or difference normal v shall retain the entry support supp ∈ Xv⋅p precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated bounded-difference abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
Incoming link from: 3. Selected-coordinate integer restriction of bounded-difference values1
2. Integer-point restriction on every bounded-difference coordinate PPL-SPEC-001129 For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce a bounded-difference set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. An exact rational description with integral unary and difference bounds already equals the convex hull of its integer points and shall therefore retain its represented set under these inclusions.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
3. Selected-coordinate integer restriction of bounded-difference values PPL-SPEC-001130 Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce a bounded-difference set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every bounded-difference coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
4. Bounded-integer wrapping and guarded evolution of difference shapes PPL-SPEC-001131 wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a bounded-difference abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed the selection dimension. Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
5. Topological closure identity for bounded-difference values PPL-SPEC-001132 topological_closure_assign shall preserve the represented set and ambient dimension of every valid bounded-difference value. These values are already topologically closed under 🔗 1. Bounded-difference values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall not be interpreted as a demand to run graph shortest-path closure or to change a graph-normalization cache.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
-
Incoming link from: 2. Generalized interval-linear-form comparisons1
1. Conservative interval-linear-form inequality refinement PPL-SPEC-001133 For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or coordinate-difference inequality. If the required constant endpoint subtraction and any normalization by 2 are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. This precision clause shall not apply to opposite-sign coefficients on distinct coordinates or to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
2. Generalized interval-linear-form comparisons PPL-SPEC-001134 For the form value sets and numerical admission of 🔗 1. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
3. Refinement of a floating interval abstract store PPL-SPEC-001135 For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 4. Box conversion from bounded-difference shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 4. Box conversion from bounded-difference shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 4. Box conversion from bounded-difference shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
-
4. Export of unary constraints through a destination protocol PPL-SPEC-001136 For a destination whose dimension is at least the source dimension, export_interval_constraints(dest) shall restrict the corresponding coordinates using the receiver's unary lower and upper consequences. The destination's remaining coordinates and ambient dimension shall be preserved. Source closure may expose implied unary constraints but shall preserve its represented set.
If D is the entry destination set and H(X) the Cartesian hull of the source's entry set, the completed destination shall contain D∩(H(X)×Rm − n) and be contained in D, where n and m are the source and destination dimensions. When source closure arithmetic and destination restrictions are exact, including exact unbounded rational bounds, the result shall equal that intersection. Rounded closure or destination arithmetic may lose precision; no best-unary-bound promise shall follow in those profiles.
An empty source shall call the destination's emptying operation. A zero-dimensional universe shall contribute no restrictions. Unbounded coordinate sides shall contribute no finite restriction. Each restriction callback shall return false exactly when its destination is empty; a false result shall terminate further restriction calls. No fixed callback count or coordinate order is promised. A destination of smaller dimension shall cause std::invalid_argument before any restrictive callback.
The destination protocol shall implement the indicated conjunctions and preserve coordinates not selected by a callback. Its callbacks shall not invalidate borrowed objects or modify the source being traversed. Callback exceptions may leave a partially restricted destination, with the states and ownership guaranteed by that destination's operations.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The destination and its callback environment shall remain live for the call. Discarded owned temporaries shall be released on reported failure.
-
1. Addition of admitted bounded-difference constraints PPL-SPEC-001090 add_constraint(c) shall conjoin the admitted closed constraint with the receiver. Admitted nonconstant forms shall be unary bounds or coordinate-difference bounds, including their equality forms with any common nonzero integral scale and sign. Constant tautologies shall have no effect and constant falsehoods shall make the result empty. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument; a constant strict tautology or falsehood shall retain its logical meaning.
For each primitive upper inequality, normalization shall divide by the positive coefficient magnitude and choose the least admitted target bound no smaller than the exact rational bound. Equality shall contribute both opposite inequalities with their respective outward bounds. The result shall denote the intersection of the entry set with these normalized target inequalities; for exact representable bounds this shall be the concrete conjunction. Applying outward normalization shall not exclude any entry point satisfying the original constraint.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted constraints in the system, with the same normalization and validation rules. Source dimensions at most the receiver dimension shall be admitted; omitted trailing coordinates shall have zero coefficients. A larger single-descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set. Rejection of an unsupported single descriptor shall also preserve the receiver's represented set. A system operation that encounters an unsupported descriptor need not roll back preceding additions.
The copying overloads shall preserve their source descriptors. After the recycling overload, the only required property of cs shall be safe destruction, including after an exception. Result storage shall not borrow the input system. These rules shall apply to empty receivers as well as nonempty receivers.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
-
2. Addition of bounded-difference congruences PPL-SPEC-001091 add_congruence(cg) shall admit congruence equalities whose linear form is a unary or coordinate-difference equality, together with constant tautologies and falsehoods. An admitted equality shall conjoin the two opposite outward-normalized inequalities described in 🔗 1. Addition of admitted bounded-difference constraints. A tautology shall have no effect; a falsehood shall make the result empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument. Periodic spacing shall not be silently removed by an adding operation. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these admission and conjunction rules to the whole system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set; smaller dimensions shall use zero trailing coefficients. Rejection of an unsupported single congruence shall preserve the entry set. A system operation need not undo earlier admitted additions if a later congruence is rejected.
The copying overloads shall preserve their source values. After a recycling call, the source system need only remain safely destructible, including after an exception. Result storage shall own its value independently of the source. Admission and dimension checks shall apply to empty receivers too.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
-
3. Conservative constraint refinement PPL-SPEC-001092 refine_with_constraint(c) and refine_with_constraints(cs) shall refine the receiver using supported unary and coordinate-difference constraints. Supported nonconstant strict inequalities shall first be relaxed to their non-strict counterparts. The resulting supported inequalities and equalities shall be normalized outward as in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant linear forms shall be ignored.
Constant descriptors shall retain their exact logical meaning: a false constant constraint, including a strict zero boundary, shall make the result empty; a tautology shall have no effect. Empty receivers shall remain empty. Relaxing a strict boundary shall not be interpreted as an exact test of the original conjunction's feasibility.
A completed result shall contain every entry point satisfying the input descriptors and shall equal the conjunction of the entry set with the supported, relaxed, outward-normalized descriptors. Copying refinement shall preserve the input descriptor or system. A larger descriptor or system dimension shall throw std::invalid_argument without changing the entry set; zero trailing coordinates shall be admitted for smaller source dimensions.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
4. Conservative congruence refinement PPL-SPEC-001093 refine_with_congruence(cg) and refine_with_congruences(cgs) shall conjoin supported unary or coordinate-difference equalities, with the outward scalar normalization in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant equalities shall be ignored.
An inconsistent proper congruence shall make the result empty. Every other proper congruence shall have no effect; in particular, periodic spacing shall not be interpreted as an equality. A constant equality shall retain its exact tautology or falsehood meaning. An empty receiver shall remain empty.
A completed result shall contain all entry points satisfying the supplied congruences, and shall denote precisely the entry set conjoined with the admitted outward-normalized equalities, unless a false constant descriptor makes it empty. The input descriptors shall preserve their values. Source dimensions at most the receiver dimension shall be admitted with zero trailing coordinates; larger dimensions shall throw std::invalid_argument without changing the receiver's represented set.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
5. Forgetting one coordinate without removing it PPL-SPEC-001094 var shall be a live valid Variable satisfying 🔗 2. Variable value identity and lifetime operations and 🔗 3. Variable construction, coordinate queries and bounds.
unconstrain(var) shall forget the value of the selected coordinate while preserving ambient dimension and every coordinate's identity. If the entry set is X ⊆ ℝn and var denotes coordinate i, the concrete cylindrification shall be
{z ∈ ℝn ∣ ∃x ∈ X : ∀j ≠ i, zj = xj}.With exact rational or integral arithmetic, the result shall denote this set exactly. A profile whose computations round may produce a containing bounded-difference enclosure. The operation shall retain the consequences among unselected coordinates that are required by its precision guarantee; merely deleting input rows mentioning var is insufficient.
Empty shall remain empty. A valid selected coordinate of a nonempty set shall become unrestricted rather than being assigned zero or removed. var shall be below space_dimension(); otherwise std::invalid_argument shall be thrown without changing the receiver's represented set.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
6. Forgetting a coordinate set simultaneously PPL-SPEC-001095 vars shall be a live coordinate-valid Variables_Set satisfying [LINK: PPL-SPEC-000021] and 🔗 4. Coordinate-set dimension and maximum dimension, and shall remain unmodified throughout the call.
unconstrain(vars) shall forget all selected values, preserving the ambient dimension and coordinate identities. For the selected index set I, its concrete result shall be
{z ∈ ℝn ∣ ∃x ∈ X : ∀j ∉ I, zj = xj}.The profile-specific exactness and containment guarantees of [LINK: PPL-SPEC-001094] shall apply to this simultaneous cylindrification. Input order or repeated insertion of an index into Variables_Set shall not change the result's meaning.
An empty selection shall preserve the represented set, including in zero dimensions. Selecting all coordinates of a nonempty shape shall give universe in the same dimension; an empty shape shall remain empty. Any selected index outside the receiver's dimension shall throw std::invalid_argument before changing its represented set. The selector set shall preserve its value and result storage shall not depend on its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
7. Exact intersection of compatible shapes PPL-SPEC-001096 intersection_assign(y) shall replace the receiver by the exact intersection of its entry set with the entry set of y. This set equality shall hold across the admitted numeric profiles under their arithmetic prerequisites; it shall not be reduced to a containment-only guarantee.
The two ambient dimensions shall be equal; otherwise the call shall throw std::invalid_argument without changing either represented set. Smaller-dimensional operands shall not be implicitly embedded. Empty, universe, zero-dimensional and lower-dimensional operands shall obey set intersection. Self-intersection shall preserve the entry set.
A distinct source y shall retain its represented value, and the result shall own its storage independently of that source. Logically const normalization may change representations while preserving represented sets.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
8. Conservative and exact-arithmetic upper bounds PPL-SPEC-001097 upper_bound_assign(y) shall replace the receiver by a bounded-difference set containing the union of both entry sets. When the computations use exact arithmetic, this shall be the least bounded-difference enclosure of the union. Rounded computations may produce a less precise containing set.
For the exact-arithmetic guarantee, every supported unary or difference normal shall have the greater of the two source suprema as its bound, with an unbounded source normal producing an unbounded result normal. Every finite result bound shall be closed.
Dimensions shall agree; an incompatible operand shall throw std::invalid_argument without changing either set. Empty shall be an identity, universe absorbing, and self-union an identity. Zero-dimensional values shall preserve the empty/universe distinction. A distinct y shall preserve its represented set and result storage shall be independent of its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
9. Certified set-theoretic union PPL-SPEC-001098 upper_bound_assign_if_exact(y) shall return true only when the receiver's completed represented set is exactly the set-theoretic union of the two entry sets. On false, the receiver shall preserve its entry represented set. A distinct y shall preserve its entry set on either outcome. Closure and reduction may change internal representations without changing these values.
For mpq_class and mpz_class boundary types, the operation shall return true if and only if the union is a bounded-difference shape. A bounded integer or native floating profile may return false when it cannot certify exactness, even if the union is representable. Such a false result shall not imply that the union is unrepresentable.
The dimensions shall be equal; mismatch shall throw std::invalid_argument before changing represented sets. Self-union, empty identities, universe and zero-dimensional cases shall satisfy the same exactness rules. A successful receiver shall own its resulting value independently of a distinct source.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
10. Certified integer-point union PPL-SPEC-001099 integer_upper_bound_assign_if_exact(y) shall be available for an integral boundary type T. Its exactness shall concern integer valuations: on true, every integer point in the resulting shape shall belong to at least one entry operand, and every integer point of either operand shall belong to the result. The result shall be the integer upper bound, namely the least rational bounded-difference enclosure containing those input integer points.
With mpz_class boundaries the decision shall be complete: true shall hold exactly when that integer upper bound introduces no additional integer point. A bounded integral profile may return false if it cannot certify exactness. A false result shall preserve the receiver's entry represented set; it shall not certify a missing integer point for an incomplete profile.
This guarantee shall not identify integer-point union with real set-theoretic union. For example, joining the real singletons at zero and one can be exact for integer points while including nonintegral points between them. Dimensions shall agree, with std::invalid_argument on mismatch before changing represented sets. A distinct source shall preserve its entry set, and self-union/empty/zero-dimensional inputs shall retain their mathematical meanings.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
11. Least closed bounded-difference abstraction of subtraction PPL-SPEC-001100 difference_assign(y) shall replace the receiver by the least target-profile bounded-difference enclosure of the set of entry points absent from y. In an unbounded exact rational profile this shall be the least closed bounded-difference hull of the concrete difference. A finite normal supremum shall use the least admitted outward target bound.
The result may retain removed boundary points or fill a gap between surviving components, as required by closure and convex template abstraction. Removing an equality or a boundary shall not be interpreted as removing its closed convex limit points. If the concrete difference is empty, the result shall be empty; self-subtraction shall therefore be empty.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Empty/universe and zero-dimensional operands shall obey the same subtraction-and-enclosure meaning. A distinct source shall preserve its represented set, and result ownership shall be independent of its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
12. Meet-preserving simplification in a context PPL-SPEC-001101 simplify_using_context_assign(y) shall return a bounded-difference simplification R of the entry receiver X using the entry context Y, satisfying
X ⊆ R, R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. Identity shall be an admitted result; a strict enlargement or decrease in constraints shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true result may be inconclusive about nonemptiness.
The context shall preserve its entry represented set when it is distinct from the receiver. Self-aliasing shall obey the same meet-preservation and enlargement clauses using the entry value for both operands. Empty receivers, empty contexts, universe, lower-dimensional and zero-dimensional sets shall be admitted.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Result storage shall remain independent of a distinct context's later lifetime or mutation. Representation-only normalization shall preserve the mathematical entry values.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
1. Human-readable bounded-difference presentation PPL-SPEC-001137 Stream insertion shall write true for a universe shape and false for an empty shape, including their zero-dimensional forms. Otherwise it shall list unary and coordinate-difference constraints in the upper triangular pair order of coordinates 0, …, n, with index 0 denoting the constant origin. Two opposite finite bounds that are additive inverses shall be displayed as one equality; other finite sides shall be displayed as non-strict inequalities. Positive-infinite sides shall not be displayed. Consecutive constraints shall be separated by ", " and no ambient-dimension header shall be inserted.
A unary equality shall use variable = value; an upper unary bound shall use variable <= value. A lower unary bound shall use variable >= value for signed or unbounded coefficients. For unsigned integer coefficients it shall use -variable <= value, retaining the stored nonnegative constant without numerical negation. Difference constraints shall use the orientation giving the selected nonnegative constant where available, retaining the corresponding relation and value. Variable names shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Bound values shall follow the admitted mathematical numeric stream output of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration.
Insertion shall return the supplied stream reference without adding a newline or explicitly flushing it. print() shall deliver the same presentation to the current std::cerr. Display shall preserve the represented set and dimension; its const classification may refresh representation caches. Stream and formatter failures shall retain their applicable state, exception-mask and partial-output behavior. Rendering callbacks shall not mutate or invalidate traversed source objects.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
-
2. Reloadable bounded-difference record export PPL-SPEC-001138 For a valid admitted source, ascii_dump(stream) shall write its status fields, a newline, its square difference-bound matrix record, a newline, and its redundancy-bit matrix record of 🔗 12. ASCII representation and loading. Status fields shall identify the stored ZE, EM, SPC and SPR conditions in that order, using + or - prefixes. The bound-matrix dimension shall be one greater than the ambient dimension, including zero-dimensional shapes. The export shall write the stored redundancy matrix when reduction is certified, and a zero-row, zero-column redundancy matrix otherwise.
The matrix payload and mathematical numeric formatting shall follow 🔗 11. Reloadable ASCII records for admitted bound values, including exact finite native decimal values and admitted positive infinities. Compatible status, matrix, numeric policy, locale and version conventions shall retain enough information for 🔗 3. Compatible bounded-difference record loading and failure state to restore the same mathematical set and ambient dimension. Neither native object bytes nor a floating zero sign is part of this mathematical round-trip guarantee.
Export shall preserve the source value and ownership without requiring an initial emptiness, closure or reduction query. ascii_dump() shall send the same record to the current std::cerr. Output failure shall follow the stream's selected state and exception behavior, retaining partial output and without certifying successful delivery.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 4. BD_Shape
internal status signed-keyword export . -
3. Compatible bounded-difference record loading and failure state PPL-SPEC-001139 For a complete valid record of 🔗 2. Reloadable bounded-difference record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any valid receiver by the recorded ambient dimension and mathematical set. The previous receiver's dimension, emptiness and cache flags shall not affect the result. All serialized status conditions shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.
Status-word rejection, a truncated or rejected bound matrix, or a truncated or rejected redundancy matrix shall return false when the component extractions return normally. An unsupported decoded bound-matrix row count shall return false before resizing or requesting storage for that extent, as specified by 🔗 12. Exact ASCII input, forbidden payloads and failure state. A zero-row bound matrix shall be rejected. When reduction certification is present, its matrix shall have the same row and column counts as the bound matrix. When reduction is uncertified, the loader shall consume the redundancy matrix without retaining its storage. That includes inactive matrices written by earlier compatible PPL versions. Inconsistent serialized status conditions shall be rejected. Numerical payload rejection shall retain 🔗 12. Exact ASCII input, forbidden payloads and failure state. Stream masks, numerical policy and recoverable resource exceptions shall retain their own propagation channels.
The successful restoration guarantee assumes a trusted, complete and dump-compatible record. The loaded matrix, status, and retained closure and reduction information shall satisfy 🔗 5. Bounded-difference representation invariant query. If these checks detect an inconsistency, the loader shall return false in every build. Semantic queries or further shape operations require a complete valid representation.
Rounded or bounded coefficient profiles may discard serialized reduction certification and recheck a serialized closed feasibility cache, preserving the stored matrix's exact represented set. This cache repair shall not alter the semantic meaning or ambient dimension of a compatible record.
A false return or exception may leave replaced status or partially loaded matrices. It shall not promise rollback or a complete mathematical value. The receiver shall retain safely destructible ownership and may be replaced by a complete valid assignment before semantic queries or operations requiring a valid shape. Consumed input shall not be restored, and the library shall not take ownership of the stream.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 5. BD_Shape
internal status signed-keyword loading and rejection . -
4. Owned bounded-difference memory accounting PPL-SPEC-001140 external_memory_in_bytes() shall report the owned external storage of the difference-bound matrix plus that of the redundancy-bit matrix, counting live selected coefficient payloads and retained capacities according to 🔗 14. Matrix container and coefficient memory accounting and 🔗 13. Invariant, ordering and allocated-memory queries. Logically empty or currently inactive cache content shall not make owned allocated storage disappear from the count. Independently owned runtime temporaries, other objects and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(BD_Shape<T>) plus the external count. Sizes shall be those of the selected build/profile and the sum shall fit memory_size_type. The selected live coefficient and bit-row memory hooks shall be well-formed. Both queries shall preserve the source set, dimension, caches, ownership and lifetimes.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Live owned storage shall remain unchanged during either query.
-
Incoming link from: 3. Compatible bounded-difference record loading and failure state1
5. Bounded-difference representation invariant query PPL-SPEC-001141 For a live, well-owned and safely indexable representation whose selected scalar operations are admitted, OK() shall check the matrix's storage and coefficient validity and the status-condition compatibility. Certified empty representations shall retain their inactive-geometric-data admission. A nonempty representation shall reject a stored negative-infinite bound or a diagonal entry other than positive infinity.
For exact unbounded coefficient profiles, certified closure shall be checked against recomputation and certified reduction against the corresponding canonical reduction mask, including rejection of an essential positive- infinite edge. Rounded or bounded profiles shall use the selected exact graph semantic invariant for a certified reduction, without requiring floating closure to be idempotent. A violation of a checked invariant shall return false; passing those checks shall return true. The query shall preserve the receiver's represented set, dimension and ownership.
The query may copy matrices, recompute derived data in temporary objects, and report resource or numerical exceptions through their selected channels. Debug builds may emit invariant-failure diagnostics to std::cerr; no fixed diagnostic wording is part of the result. A true result is not an emptiness, semantic equality or minimal-storage answer. The query shall not be a corruption scanner for arbitrary pointers, broken object lifetimes or non-indexable fabricated storage.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Discarded owned query temporaries shall be released on reported failure.
The internal status contract shall follow 🔗 3. BD_Shape
internal status consistency predicate . -
Incoming links from: 1. Rational affine image of one coordinate 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image 4. Single-coordinate generalized affine preimage 5. Expression-left generalized affine image 6. Expression-left generalized affine preimage 7. Single-coordinate bounded affine image 8. Single-coordinate bounded affine preimage 9. Native interval-affine image 1. Threshold bounded-difference extrapolation and precision-sensitive tokens 2. Default bounded-difference stop points 3. Semantic bounded-difference widening 3. Semantic bounded-difference widening 4. Limited semantic bounded-difference extrapolation 4. Limited semantic bounded-difference extrapolation 5. Bounded-difference narrowing and descending operand order 6. Limited threshold bounded-difference extrapolation 6. Limited threshold bounded-difference extrapolation 7. Polyhedral standard widening of bounded-difference values 7. Polyhedral standard widening of bounded-difference values 8. Polyhedral limited extrapolation of bounded-difference values 1. Closed bounded-difference support hull of geometric generators 2. Complexity-sensitive bounded-difference conversion from polyhedra 3. Best bounded-difference enclosure of Cartesian boxes 4. Best bounded-difference enclosure of rational grids 5. Best bounded-difference enclosure of octagonal shapes 1. Unrestricted bounded-difference coordinate extension 2. Zero-fixed bounded-difference coordinate extension 3. Ordered Cartesian concatenation of bounded-difference values 4. Existential bounded-difference coordinate removal 4. Existential bounded-difference coordinate removal 5. Injective partial remapping of bounded-difference coordinates 6. Bounded-difference coordinate expansion by independent fibers 7. Alternative-coordinate folding of bounded-difference values 7. Alternative-coordinate folding of bounded-difference values 4. Bounded-difference distance normalization, boundaries and workspaces 4. Bounded-difference distance normalization, boundaries and workspaces 1. Bounded-difference time evolution by nonnegative rates 2. Integer-point restriction on every bounded-difference coordinate 3. Selected-coordinate integer restriction of bounded-difference values 4. Bounded-integer wrapping and guarded evolution of difference shapes 5. Topological closure identity for bounded-difference values 1. Conservative interval-linear-form inequality refinement 2. Generalized interval-linear-form comparisons 3. Refinement of a floating interval abstract store 4. Export of unary constraints through a destination protocol 1. Addition of admitted bounded-difference constraints 2. Addition of bounded-difference congruences 3. Conservative constraint refinement 4. Conservative congruence refinement 5. Forgetting one coordinate without removing it 6. Forgetting a coordinate set simultaneously 7. Exact intersection of compatible shapes 8. Conservative and exact-arithmetic upper bounds 9. Certified set-theoretic union 10. Certified integer-point union 11. Least closed bounded-difference abstraction of subtraction 12. Meet-preserving simplification in a context 1. Human-readable bounded-difference presentation 2. Reloadable bounded-difference record export 3. Compatible bounded-difference record loading and failure state 4. Owned bounded-difference memory accounting 5. Bounded-difference representation invariant query 2. Dimensioned empty and universe bounded-difference construction 3. Owned bounded-difference copying, assignment and cleanup 4. Outward conversion between bounded-difference coefficient profiles 5. Whole bounded-difference value exchange 6. Bounded-difference construction from supported constraints 7. Bounded-difference construction from supported congruences 8. Ambient and affine dimension of bounded-difference values 9. Owned constraint and affine-equality exports of bounded-difference values 10. Ordinary classification of bounded-difference values 11. Bounded-difference set relations, equality and compatible hashes 12. Relations between bounded-difference values and linear constraints 13. Relations between bounded-difference values and linear congruences 14. Subsumption of geometric generators by bounded-difference values 15. Affine boundedness, extrema and witnesses on bounded-difference values 16. Constant affine values and zero frequency on bounded-difference sets 10. Native finite affine interval congruence classification79
1. Bounded-difference values, numerical profiles and valid use PPL-SPEC-001056 BD_Shape<T> shall represent a topologically closed subset of the real coordinate space Rn as a finite conjunction of unary inequalities ±xi ≤ c and difference inequalities xi − xj ≤ c, with distinct empty and universe values in every supported ambient dimension. A coordinate absent from all restrictions shall remain unrestricted. Rational bounds shall not change the coordinate carrier into a rational-only or integer-only set.
The coefficient base T shall select the supported bounded integer, supported native floating, GMP integer or GMP rational profile. The exposed coefficient_type_base shall be T; coefficient_type shall additionally represent positive infinity and provide the declared rounding-aware bound operations. A positive-infinite bound shall impose no inequality. Integer-bound profiles shall still describe real points, rather than only integer points. Finite bounds and all intermediate arithmetic shall obey the selected profile's range and rounding prerequisites; an outwardly rounded bound shall not exclude points satisfying the admitted source constraint.
Objects and supplied descriptors shall be live, well formed and externally synchronized. Coordinate identities and the reserved dimension indication shall follow 🔗 1. Coordinate type and reserved dimension index. Descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply where used. Native floating operations shall require their configured support and the initialized rounding environment prescribed by the numerical facilities. Mutation, destruction and operations that may update caches shall not race with another use of the same object.
For profiles whose arithmetic rounds or saturates, shortest-path closure shall preserve the represented set through outward derived bounds without promising canonical, idempotent or maximally precise closure. Guarantees stated for unbounded exact coefficient arithmetic shall remain distinct from allowed rounded approximations.
-
2. Dimensioned empty and universe bounded-difference construction PPL-SPEC-001057 BD_Shape(d,kind) shall construct the specified EMPTY or UNIVERSE value with ambient dimension d. Default construction shall give zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall return the selected profile's structural dimension limit. A requested dimension above that limit shall throw std::length_error before attempting the corresponding matrix storage, including when adding the internal zero coordinate would overflow the dimension type. A dimension within that limit shall remain subject to actual resource availability; the reported limit shall not promise allocation success.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
Incoming links from: 1. Closed bounded-difference support hull of geometric generators 2. Complexity-sensitive bounded-difference conversion from polyhedra 3. Best bounded-difference enclosure of Cartesian boxes 4. Best bounded-difference enclosure of rational grids 5. Best bounded-difference enclosure of octagonal shapes5
3. Owned bounded-difference copying, assignment and cleanup PPL-SPEC-001058 Ordinary copying shall create an independent shape with the source's represented set and ambient dimension. Copy assignment shall replace the target's value and dimension with the source's, including across different dimensions. Source mutation or destruction shall not change an independent copy; target mutation shall not change the source. Self-assignment shall preserve the value. The ordinary copy constructor's complexity argument shall be ignored for the three declared complexity values.
Destruction shall release resources owned by that shape exactly once. Assignment shall return a reference to the receiver. Failed construction shall release its acquired resources; failed assignment shall not imply a rollback guarantee.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
4. Outward conversion between bounded-difference coefficient profiles PPL-SPEC-001059 BD_Shape<T>(y) for another supported coefficient base shall inherit the source's ambient dimension and contain every source point. Each finite source bound shall be converted outward under the destination profile's declared operations; positive-infinite bounds shall remain unrestricted. Exact representable source bounds shall retain their values; inexact conversion may lose precision. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const closure before conversion; this shall preserve its represented set. The three declared complexity arguments shall not change the conversion. The new shape shall own independent storage. Exact representability of every stored input bound shall not by itself promise stronger subsequent rounded-closure guarantees.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
5. Whole bounded-difference value exchange PPL-SPEC-001060 m_swap and free swap shall exchange the two complete represented values and ambient dimensions, including empty/universe and different dimensions. A self-swap shall preserve the value. Exchanged ownership and all cache metadata shall remain associated with the corresponding value; neither operation shall require equal dimensions.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
6. Bounded-difference construction from supported constraints PPL-SPEC-001061 BD_Shape(cs) shall start from universe in the system's ambient dimension and conjoin every admitted constraint. Nontrivial admitted rows shall be nonstrict unary constraints or two-coordinate differences with equal-magnitude opposite coefficients; equalities shall impose both directions. Constant tautologies shall have no effect and constant falsehood shall produce empty. An empty system shall produce universe.
A nontrivial strict inequality, a row with more than two nonzero variable coefficients, or a two-variable row with unequal-magnitude or same-sign coefficients shall throw std::invalid_argument, including after an earlier contradiction. Supported unary/difference bounds not exactly representable in the selected profile shall be rounded outward to the best admitted bound; with unbounded exact rational arithmetic, the result shall equal the admitted conjunction. The source rows and represented conjunction shall remain unchanged. can_recycle_constraint_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
7. Bounded-difference construction from supported congruences PPL-SPEC-001062 BD_Shape(cgs) shall inherit the system's ambient dimension and conjoin its admitted equalities and constant truth values. Nontrivial equality rows shall be expressible as unary or equal-magnitude opposite-coefficient differences. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument, including after an earlier inconsistency. Constant proper congruences shall retain their tautological or inconsistent meaning. An empty system shall produce universe.
Exact rational coefficient arithmetic shall represent admitted equalities exactly. Other profiles shall retain the declared outward bound conversion on both equality directions. The const source shall retain its rows and value. can_recycle_congruence_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
8. Ambient and affine dimension of bounded-difference values PPL-SPEC-001063 space_dimension() shall return the ambient coordinate count independently of emptiness, boundedness or affine constraints. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented set. Both zero-dimensional values shall have affine dimension zero. Implicit unary/difference equalities and relationally redundant descriptions shall be included in this determination; stored rounded entries shall not be assumed to certify an equality unless the represented set satisfies it.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
9. Owned constraint and affine-equality exports of bounded-difference values PPL-SPEC-001064 constraints() shall return an owned, dimension-preserving constraint system whose conjunction denotes the receiver. minimized_constraints() shall additionally provide an irredundant defining conjunction: removing any emitted nontrivial row shall enlarge the represented set. No unique row order or unique equality basis shall be required. Exported finite bounds shall have their exact stored mathematical values; no integer-bound profile shall silently change real coordinates into integer coordinates.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, retaining the same ambient and affine dimensions. They shall not replace the represented inequalities or invent periodic restrictions. Their nonempty equality system shall be a basis of the affine restrictions; empty shall export inconsistency. Zero-dimensional universe shall export a tautological conjunction; zero-dimensional empty shall export an inconsistent one.
Exported descriptors shall remain usable and independent after source mutation or destruction. Source normalization shall preserve its represented value; canonical row order or a particular redundant basis shall not be inferred beyond the declared minimization result.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
10. Ordinary classification of bounded-difference values PPL-SPEC-001065 The ordinary classification calls shall report their named mathematical properties of the represented set: emptiness, universe, discreteness, topological closure, boundedness and existence of an integer point. Every bounded-difference value shall be topologically closed. A nonempty convex value shall be discrete exactly when it is a singleton; empty shall be discrete and bounded. Zero-dimensional universe shall be nonempty, universe, bounded, discrete and contain its integer empty tuple; zero-dimensional empty shall contain no integer point.
constrains(var) shall report whether the represented set imposes a restriction on that coordinate, including relational restrictions; empty shall constrain each valid coordinate. A variable outside the ambient dimension shall throw std::invalid_argument. These decisions shall not confuse stored integer bounds with an integer-only carrier.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
11. Bounded-difference set relations, equality and compatible hashes PPL-SPEC-001066 For dimension-compatible operands, contains, strictly_contains and is_disjoint_from shall report mathematical set containment, proper containment and empty intersection. Equal nonempty or empty sets shall not strictly contain each other; every nonempty value shall strictly contain empty. The zero-dimensional values shall obey the same set rules. Dimension-incompatible relation calls shall throw std::invalid_argument.
Equality shall require equal ambient dimensions and equal represented sets; inequality shall be its logical complement. Different redundant/closure descriptions of the same set shall compare equal. Equal values shall have equal hash codes; collisions between unequal values shall be permitted. hash_code shall not modify the represented set.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
12. Relations between bounded-difference values and linear constraints PPL-SPEC-001067 relation_with(c) shall return the Poly_Con_Relation flags describing the whole represented set relative to the constraint: inclusion, disjointness, saturation when its affine expression vanishes throughout the set and strict intersection as defined by 🔗 1. Constraint-relation assertion values and named factories. The supplied row need not have bounded-difference syntax. A constraint within the ambient dimension shall not alter the represented set. A descriptor dimension above the receiver's shall throw std::invalid_argument. Empty and constant-row cases shall retain their set-theoretic flag combinations.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
13. Relations between bounded-difference values and linear congruences PPL-SPEC-001068 relation_with(cg) shall classify the represented set relative to the congruence using the declared Poly_Con_Relation semantics. Modulus zero shall mean equality. For a proper modulus, inclusion shall require every source point to satisfy the residue condition; disjointness shall mean no source point does. For a nonempty receiver, saturation shall mean that the affine image consists of one value belonging to the eligible modulus lattice; the value need not be zero. These tests shall use the real convex source set rather than treating integer bounds as integer coordinates. Arbitrary admitted affine congruence syntax shall be queryable even when it is not representable by a bounded-difference value. Descriptor dimension above the receiver's shall throw std::invalid_argument.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
14. Subsumption of geometric generators by bounded-difference values PPL-SPEC-001069 relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the represented set subsumes the generator under 🔗 6. Generator-relation assertion values and named factories. An ordinary point or closure point shall use its rational coordinates; closure points shall obey the same membership test because this domain is closed. A ray shall satisfy every represented homogeneous direction inequality, and a line shall satisfy each corresponding homogeneous equality. Empty shall subsume no generator. A generator dimension above the receiver's shall throw std::invalid_argument; a lower-dimensional generator shall have zero additional coordinates.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
15. Affine boundedness, extrema and witnesses on bounded-difference values PPL-SPEC-001070 bounds_from_above and bounds_from_below shall decide whether the supplied affine form has a finite corresponding bound on the receiver, and shall return true in both directions for empty, including zero-dimensional empty. Zero-dimensional universe shall likewise bound every admitted constant form. The form's dimension shall not exceed the receiver's; otherwise these calls and extrema overloads shall throw std::invalid_argument.
For nonempty shapes and unbounded exact bound arithmetic, extrema calls shall return true exactly when the requested extremum is finite, and shall return its exact rational value with positive canonical denominator. Every finite extremum of this closed polyhedral set shall be attained. On false, supplied outputs shall retain their entry values.
For bound profiles whose closure arithmetic rounds or overflows, the overload without a witness may use an outward closure bound for bounded-difference objectives: its returned maximum value shall be an upper approximation of the true supremum and its returned minimum a lower approximation of the true infimum. Overflow may prevent detecting a finite bound. General affine objectives and witness overloads shall use the represented constraint set's exact optimization contract. The attainment flag shall concern the actual extremum, rather than certify attainment of an approximate numerical bound.
On successful witness calls, g shall identify an ordinary point in the represented set attaining the returned exact extremum. Constant affine forms and zero-dimensional values shall retain their exact meanings. Numerator/denominator output objects shall be distinct; the witness and scalar outputs shall obey their ordinary ownership and range prerequisites.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
16. Constant affine values and zero frequency on bounded-difference sets PPL-SPEC-001071 frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty receiver assigns one unique real value to the affine expression. On true, fn/fd shall be 0/1 and vn/vd shall be that exact constant with positive canonical denominator. Nonconstant and empty cases shall return false and leave all four outputs unchanged. Constant expressions and zero-dimensional universe shall follow the same rule. An expression dimension above the receiver's shall throw std::invalid_argument. The four scalar output objects shall be pairwise distinct.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
1. Binary floating-format fields and numerical metadata PPL-SPEC-001584 The binary representation descriptors shall expose unsigned storage fields and metadata for IEEE binary16, binary32, binary64 and binary128, and Intel 80-bit double-extended format. Their radix shall be two. Exponent-field width, fraction width and bias shall respectively be (5, 10, 15), (8, 23, 127), (11, 52, 1023), (15, 112, 16383) and (15, 63, 16383). The Intel format shall store its integer bit explicitly; the IEEE normal formats shall use an implicit leading one.
The metadata members shall be immutable constant expressions with inline definitions. Taking their addresses in independent translation units shall refer to the same objects.
EXPONENT_MAX shall equal the bias, EXPONENT_MIN shall be one minus the bias, and EXPONENT_MIN_DENORM shall be EXPONENT_MIN minus the fraction width. The smallest positive subnormal shall consequently be 2 EXPONENT_MIN_DENORM. The format enumeration shall identify the corresponding descriptor. Single-word descriptors shall expose word; multiword descriptors shall expose msp and lsp, with their layout selected by the configured word order. Intel sign and exponent shall occupy the low 16 bits of msp; padding shall not be a numerical field.
For the binary16 and binary32 single-word descriptors, SGN_MASK shall select only the sign bit and EXP_MASK shall select only the exponent field. Their respective mask pairs shall be (0x8000,0x7c00) and (0x80000000,0x7f800000). Masking shall exclude all fraction bits and exponent masking shall be independent of sign.
Raw descriptor operations shall use unsigned fields and GMP integer storage. They shall be usable independently of native hardware availability of that floating format and shall require no FPU rounding-state setup. Callers shall provide live objects and valid initialized fields before inspection, plus synchronization for overlapping access. These binary descriptor rules shall not extend to the hexadecimal descriptor types.
-
2. Classification of raw binary floating encodings PPL-SPEC-001585 For initialized IEEE descriptor fields, inf_sign shall return minus one for negative infinity, plus one for positive infinity and zero otherwise. zero_sign shall similarly distinguish negative zero and positive zero, returning zero for every other encoding. is_nan shall be true exactly when all exponent bits are one and at least one fraction bit is nonzero. Sign shall not affect NaN recognition. Every fraction bit, including bits in either stored word, shall distinguish a NaN from infinity.
The same results shall hold for canonical Intel encodings: infinity shall have an all-ones exponent and exactly the explicit integer bit in its significand; a canonical NaN shall have an all-ones exponent, the integer bit set and a nonzero fraction. Canonical finite normal encodings shall have the integer bit set, and subnormal/zero encodings an exponent and integer bit of zero. Other Intel encodings shall not be admitted by this classification contract. Padding bits of msp shall not affect Intel classification. Inputs shall remain unchanged and the conditions of 🔗 1. Binary floating-format fields and numerical metadata shall apply.
-
3. Raw floating sign inspection and negation PPL-SPEC-001586 sign_bit shall return the stored sign bit. negate shall toggle exactly that bit, preserving exponent, significand and other stored bits. Two negations shall restore every field, including zero, infinity and NaN payloads. Sign inspection shall preserve every field. The descriptor and lifetime conditions of 🔗 1. Binary floating-format fields and numerical metadata shall apply.
-
4. Adjacent binary floating magnitudes PPL-SPEC-001587 For canonical binary encodings, inc shall replace a finite magnitude with its immediately succeeding representable magnitude, retaining sign; dec shall replace a nonzero finite or infinite magnitude with its immediately preceding representable magnitude, retaining sign. Thus increment of either signed zero shall produce the same-sign smallest subnormal; decrement of the smallest subnormal shall produce the same-sign zero. The largest finite magnitude shall increment to infinity, whose decrement shall recover that finite magnitude. Calls shall exclude NaNs, decrement of zero and increment of infinity.
Carries and borrows shall cross stored-word boundaries. Intel transitions between the largest subnormal and least normal shall clear or set the explicit integer bit as required for a canonical encoding. The conditions of 🔗 1. Binary floating-format fields and numerical metadata shall apply. Numerical ordering of negative operands shall follow the preserved sign and changed magnitude.
-
5. Largest finite binary floating magnitude PPL-SPEC-001588 set_max(negative) shall overwrite the descriptor with the largest finite magnitude and the requested sign. IEEE encodings shall use the largest finite exponent field and all fraction bits one; Intel encoding shall also set its explicit integer bit. Prior field values shall not influence the result. The value shall classify as finite, nonzero and of the requested sign. The conditions of 🔗 1. Binary floating-format fields and numerical metadata shall apply.
-
6. Assembly of binary floating fields from an integer significand PPL-SPEC-001589 build(negative,mantissa,exponent) shall overwrite every numerical field with the requested sign, biased exponent and significand. For IEEE formats with fraction width f, the stored fraction shall be the remainder of m on division by 2f, where m is the integer mantissa on entry; its possible leading normal bit shall be implicit. Intel storage shall contain all 64 significand bits, including its explicit integer bit. The stored exponent shall be exponent + EXPONENT_BIAS. A zero mantissa and zero biased exponent shall produce the requested signed zero, independently of prior destination bits and host unsigned long width. The Intel builder shall clear nonnumerical high msp bits.
Callers shall provide a live GMP integer mantissa with 0 ≤ m < 2f + 1 for IEEE formats or 0 ≤ m < 264 for Intel, and an exponent whose biased value lies within the exponent field. Mantissa and destination storage shall be disjoint. This shall assemble fields without numerical rounding or normalization; callers needing a canonical finite or special encoding shall provide compatible fields. The mantissa shall be mutable workspace: its numerical value after the call need not equal its entry value, but it shall remain a valid GMP integer. The conditions of 🔗 1. Binary floating-format fields and numerical metadata shall apply.
-
Incoming links from: 4. Bounded-integer wrapping and guarded evolution of difference shapes 2. Interval abstraction of wrapped integer images with refinement 3. Box bounded-integer wrapping, overflow choices and guard refinement 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 8. Powerset integer restriction and wrapping5
1. Mathematical interpretation of bounded-integer wrapping attributes PPL-SPEC-001041 The modeled attributes identified by 🔗 1. Modeled bounded-integer type identity shall have the following mathematical meanings. A width w shall describe M = 2w. The unsigned value range shall be the integers in [0, M − 1]; the signed two's-complement range shall be the integers in [ − M ⁄ 2, M ⁄ 2 − 1].
For an unwrapped integer z, unsigned wrapping shall choose the unique integer r in the unsigned range congruent to z modulo M. Signed wrapping shall choose r when r < M ⁄ 2 and r − M otherwise. Negative unwrapped values shall use the same nonnegative unsigned residue, independently of a host language's signed remainder convention.
OVERFLOW_WRAPS shall use this modular interpretation. OVERFLOW_UNDEFINED shall permit arbitrary modeled result values after overflow, rather than choosing a particular residue; this arithmetic-result abstraction shall not model every other possible effect of language undefined behavior. OVERFLOW_IMPOSSIBLE shall retain only the transitions whose unwrapped result is within the selected value range.
A modeled width, including 128 bits, shall not assert the existence of a native scalar type or a configured coefficient type of that width. The numerical operations computing an abstraction shall retain their separate computational range and availability prerequisites. Attribute identity and factory/getter behavior shall remain as specified by 🔗 1. Modeled bounded-integer type identity.
-
2. Interval abstraction of wrapped integer images with refinement PPL-SPEC-001042 For the receiver's entry interval X, an admitted width and representation from 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes, and the entry interval J denoted by refinement, wrap_assign shall produce an interval containing every
{wrapw, r(z) ∣ z ∈ X∩ℤ}∩J.The completed interval shall be contained in the receiving profile's outward interval conversion of J; exact conversion shall imply containment in J itself. refinement may denote an arbitrary valid interval or singleton; it need not lie inside the modeled value range. A refinement inside that range shall therefore bound the completed result to that range. An empty receiver shall remain empty. A receiver unbounded in either direction may conservatively become the refinement itself, and noninteger input points need not all be eliminated. No universal least-hull or complete integer filtering guarantee shall be inferred. With exact arithmetic, closed integral endpoints and a closed integral refinement inside the modeled range, the result shall be the least interval hull of the retained wrapped integer images.
The receiver may be the refinement interval, and a singleton refinement may borrow either of its boundary objects. Those calls shall use both entry values. A refinement with distinct storage shall retain its value. Returned I_Result shape and definite status claims shall have the meanings of 🔗 1. Interval result possibilities and status-flag set operations for the whole operation, including its entry-to-result change claims.
The validity, policy, active-payload, lifetime and synchronization conditions of 🔗 1. Interval types, initial storage and independent value copies shall apply. The selected backend shall support any actually evaluated power-of-two subtraction and signed/unsigned residue at the supplied exponent, as specified by its scalar contracts. Exact precision claims shall require exact endpoint conversion, modular arithmetic and any intermediate unit adjustment. Computational range failures, resources, shared temporaries and caller-owned FPU state shall retain those scalar contracts. An admitted modeled width alone shall not establish these backend capabilities. Valid calls shall require no additional PPL initialization. Underlying failures may leave partly updated storage; there shall be no aggregate rollback guarantee.
-
3. Box bounded-integer wrapping, overflow choices and guard refinement PPL-SPEC-001043 wrap_assign shall interpret the selected coordinates as bounded integers using 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. It shall conservatively contain every selected concrete result obtained from the receiver's entry integer-valued selected coordinates under the requested overflow interpretation. The represented result shall remain a box, so modular disjunctions and relations may be approximated. Fractional points on selected coordinates may be discarded, and retained interior points need not all be integers.
Without a supplied guard, OVERFLOW_WRAPS shall use modular images; OVERFLOW_IMPOSSIBLE shall intersect each selected factor with the modeled value range. Under OVERFLOW_UNDEFINED, a factor already contained in the rational half-open interval from the modeled minimum through one past its maximum may be retained; a potentially overflowing factor may be forgotten and replaced by the modeled closed integer range. No-overflow factors shall not be discarded merely because another factor can overflow.
A nonnull cs_p shall denote a guard on the resulting coordinates. The completed box shall conservatively contain the guard-filtered selected integer results; it need not satisfy every guard row. In particular, relational rows and rows mentioning unselected coordinates may be ignored by this specialization. Interval rows for selected coordinates may refine their target ranges. A false constant row shall make the result empty. The guarded undefined-overflow path may forget a selected coordinate to universe when overflow is possible; no universal post-guard containment or least-result guarantee shall be inferred.
With an empty selection, no bounded-type limits or residues shall be required. A null guard shall preserve the receiver; a supplied guard shall perform conservative refinement under 🔗 3. Conservative box refinement by linear constraints, which may affect otherwise unselected coordinates. Empty, including a hidden empty factor, shall remain empty. Ambient dimension shall remain unchanged. For a nonempty selection, unselected factor meanings shall remain unchanged unless the entire product becomes empty. A distinct supplied guard and the selection set shall retain their mathematical values. complexity_threshold and wrap_individually shall not change this Box specialization's result.
An excess selected coordinate or guard ambient dimension shall throw std::invalid_argument before receiver modification, including for empty receivers. Guard dimension shall be checked even with an empty selection. Only the named width, representation and overflow attributes shall be admitted; no outcome shall be specified for invalid enum values.
The validity, numerical, lifetime and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Selected modular evaluation shall retain 🔗 2. Interval abstraction of wrapped integer images with refinement's backend prerequisites. Modeled limit construction shall use unbounded integer arithmetic independent of configured Coefficient range; conversion into an endpoint profile shall retain that profile's representability and outward-rounding conditions. A guard shall retain its descriptor context, coefficient-intermediate range and refinement prerequisites; dimension reporting shall retain the initialized context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Otherwise valid calls shall require no additional library initialization. Underlying resource/numerical failures may leave a partially updated box.
-
Incoming links from: 2. Single-coordinate affine box preimage 3. Generalized single-coordinate box image2
1. Single-coordinate affine box image PPL-SPEC-001021 For a valid coordinate k, dimension-compatible affine expression e and nonzero coefficient d, affine_image(k,e,d) shall enclose every vector obtained from an entry point x by replacing only coordinate k with e(x) ⁄ d. The receiving interval shall be the outward interval evaluation of that affine expression on the entry factors, including its inhomogeneous term and the sign of d. Every other coordinate interval shall retain its entry represented set.
With exact rational endpoint operations and supported openness, the result shall be the least box containing this image. Finite numerical profiles shall retain their delegated outward enclosures, without a general best- approximation claim when intermediate arithmetic is inexact. Dependencies between the replaced coordinate and unchanged coordinates may be lost. The source expression shall remain unchanged.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 4. Generalized single-coordinate box preimage1
2. Single-coordinate affine box preimage PPL-SPEC-001022 With coordinate, expression and denominator admitted by 🔗 1. Single-coordinate affine box image, affine_preimage(k,e,d) shall enclose every vector x whose image under x’k = e(x) ⁄ d, with all other coordinates unchanged, belongs to the entry box.
When the coefficient of xk in e is nonzero, the affine map is invertible. The result shall enclose the interval evaluation of its inverse on the entry box; with exact rational endpoint arithmetic and supported openness this shall be the least box preimage. When that coefficient is zero, the old value of xk is unconstrained by the assignment. The operation need not derive every additional restriction on other coordinates and need not compute the least box preimage, but shall retain every feasible predecessor. At coordinates other than the updated one, the result shall preserve the entry factor restrictions; feasibility filtering may tighten those factors. It may return empty only when no predecessor exists. The source expression shall remain unchanged.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 4. Generalized single-coordinate box preimage1
3. Generalized single-coordinate box image PPL-SPEC-001023 For a valid coordinate k, dimension-compatible affine expression e, nonzero coefficient d and admitted comparison ⋈ , the variable overload of generalized_affine_image shall enclose every z for which an entry point x satisfies zk ⋈ e(x) ⁄ d and zi = xi for i ≠ k. It shall retain every other coordinate's entry factor. Equality shall have the behavior in 🔗 1. Single-coordinate affine box image. A one-sided relation shall retain the required finite outer bound and remove the opposite finite bound, using outward approximation and supported endpoint openness. With exact rational endpoint operations and supported openness, the result shall be the least Cartesian box for the specified relation: the target factor shall use the exact required extremum and its attainment. This shall not promise the exact relational image or a least result under inexact arithmetic.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
4. Generalized single-coordinate box preimage PPL-SPEC-001024 For arguments and relation symbols admitted by 🔗 3. Generalized single-coordinate box image, the variable overload of generalized_affine_preimage shall enclose every predecessor x for which some entry-box point z satisfies zk ⋈ e(x) ⁄ d and zi = xi for i ≠ k. The result shall follow existential backward semantics, including reversal of a comparison when algebraically dividing by a negative coefficient. Equality shall retain 🔗 2. Single-coordinate affine box preimage. Noninvertible relations may forget predecessor information and shall not claim a least box result. Only infeasibility of the relation with the entry box shall permit an empty result. Every coordinate other than the updated one shall preserve its entry factor restriction; feasibility filtering may tighten that factor.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 6. Generalized multi-coordinate box preimage1
5. Generalized multi-coordinate box image PPL-SPEC-001025 For dimension-compatible affine expressions l, r and an admitted comparison ⋈ , the expression overload of generalized_affine_image shall enclose every z for which an entry point x satisfies l(z) ⋈ r(x). For each coordinate absent from the homogeneous part of l, zi = xi shall additionally hold. A zero coefficient shall therefore leave a coordinate unchanged, irrespective of its explicit ambient dimension. When the left expression contains a coordinate, factors outside its nonzero support shall retain their entry represented sets. When the left expression is constant, the result may refine these unchanged factors within the entry box to enforce the relation.
Coordinates occurring on the left are updated together. The same coordinate may also occur on the right, where it denotes its entry value. Exchanging the two expressions and reversing the comparison shall not be treated as an equivalent update. An enclosure may lose correlations or retain infeasible points; no least box result shall be promised.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
An expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
6. Generalized multi-coordinate box preimage PPL-SPEC-001026 For the expression relation and admitted arguments in 🔗 5. Generalized multi-coordinate box image, the expression overload of generalized_affine_preimage shall enclose every x for which an entry-box point z satisfies l(z) ⋈ r(x) and zi = xi at every coordinate whose coefficient in l is zero. It shall use the left expression for successor values and the right expression for predecessor values, even when their coordinate sets overlap. At coordinates outside the original left expression's nonzero support, the result shall retain the entry factor restrictions, permitting sound tightening.
The result may lose constraints during existential abstraction and need not be the least box preimage. It shall not exclude a feasible predecessor or make the result empty merely because a relational predecessor set cannot be represented exactly. Const descriptors shall remain unchanged.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
An expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 8. Bounded affine box preimage1
7. Bounded affine box image PPL-SPEC-001027 For a valid coordinate k, dimension-compatible affine lower and upper expressions l, u, and nonzero coefficient d, bounded_affine_image shall enclose all successor vectors z from entry points x satisfying l(x) ⁄ d ≤ zk ≤ u(x) ⁄ d and zi = xi for i ≠ k. A negative denominator shall keep these divided lower/upper meanings; it shall not silently exchange the supplied expressions.
The operation may refine feasibility of the lower/upper relation before updating the coordinate. Inconsistent divided bounds shall admit no successor, while partial feasibility shall retain all feasible successors. Conservative refinement and interval evaluation may lose precision; no least box enclosure shall be promised. The supplied expressions shall retain their values. Every coordinate other than the updated one shall preserve its entry factor restriction; feasibility filtering may tighten it.
With exact rational interval endpoints and two constant bound expressions, a nonempty input shall produce exactly the divided closed interval at the updated coordinate, retaining the other entry factors, when the divided lower bound does not exceed the divided upper bound. Reversed divided bounds shall produce empty. This special case shall not establish a general least-box guarantee for variable-dependent bounds.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
8. Bounded affine box preimage PPL-SPEC-001028 For the bounded affine relation and arguments in 🔗 7. Bounded affine box image, bounded_affine_preimage shall enclose all predecessors x for which an entry-box successor z satisfies l(x) ⁄ d ≤ zk ≤ u(x) ⁄ d and zi = xi for i ≠ k. Both inequalities shall constrain the same successor value. Negative denominators and coefficients shall retain the mathematically required comparison directions. The result may lose precision through existential abstraction and need not be the least box preimage. It shall retain every feasible predecessor; only an infeasible relation may yield empty. Coordinates other than the updated one shall preserve the entry factor restrictions, permitting sound tightening by feasibility filtering.
With exact rational interval endpoints and two constant bound expressions, the result for a nonempty entry box shall be empty exactly when the divided closed interval is empty or has no point in common with the entry target factor. Otherwise, the old target coordinate shall become unconstrained and every other factor shall equal its entry factor. The entry factor's open endpoints shall govern whether a contact point is a common witness. This special case shall not establish a general least-box guarantee.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
9. Interval-coefficient affine box image PPL-SPEC-001029 For a valid coordinate k and dimension-compatible Linear_Form<ITV> with nonempty bounded coefficient intervals, affine_form_image shall require a supported native floating boundary profile. It shall enclose every successor obtained from an entry point x by replacing coordinate k with a value of B + ∑iAixi, where the constant B and coefficients Ai are chosen from the supplied form's intervals. Every other coordinate shall retain its entry factor.
The range shall use outward interval arithmetic on the entry box, including the old value of the replaced coordinate wherever it occurs. Neither successive occurrences nor coordinate choices shall create an exactness claim beyond that interval enclosure. The form shall remain unchanged and an empty box shall remain empty. Dimension checks shall occur even for an empty receiver. An exact-arithmetic boundary profile shall not be an admitted instantiation of this floating-boundary interface.
An expression of greater ambient dimension or an invalid selected coordinate shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
-
1. Threshold box widening and finite stabilization PPL-SPEC-001034 For compatible boxes of one fixed interval profile, let Y be the argument's entry value and X the receiver's entry value, with Y ⊆ X. The iterator overload of CC76_widening_assign shall apply the threshold interval rule of 🔗 1. Threshold interval widening and finite stabilization independently to every coordinate. It shall contain both input sets. An empty argument shall leave the receiver's represented set unchanged. Empty and universe in zero dimensions shall retain their distinct meanings. Self-aliasing shall preserve the represented set.
For nonempty operands, a finite lower boundary moving numerically down from the previous factor shall move to the greatest threshold not above the current boundary, or become unbounded when no such threshold exists. A finite upper boundary moving numerically up shall move to the least threshold not below it, or become unbounded when no such threshold exists. Exact threshold hits, other finite boundaries and already unbounded boundaries shall retain the current factor's boundary. A finite threshold replacement shall retain the current endpoint's openness.
The range shall use readable, multipass bidirectional iterators. It shall be finite, sorted in nondecreasing numerical order and stable throughout the call, with finite thresholds exactly representable in the boundary type. Empty ranges and duplicate values shall be admitted. The range shall not alias storage modified by the call. The numerical and policy conditions of 🔗 1. Threshold interval widening and finite stabilization shall apply.
For a fixed dimension, interval policy and finite threshold range, the ascending recurrence shall first enclose the preceding widened result and the next input, then widen that enclosure against the preceding widened result. This recurrence shall stabilize after finitely many changes: each coordinate has only finitely many threshold/carrier boundaries to visit, and endpoint membership can weaken only finitely often. All comparisons and assignments shall satisfy the selected arithmetic profile's prerequisites.
Unequal box dimensions shall throw std::invalid_argument before receiver modification, including empty and zero-dimensional cases. Containment of the previous argument in the current receiver shall remain a caller precondition. The box validity, lifetime, synchronization and numerical prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. A distinct argument and the threshold range shall retain their values. The enabled overload shall require the exact same Box<ITV> type and an implicit conversion from const ITV& to const Interval_Base&. Resource or numerical failures shall retain their underlying operation's guarantees; whole-operation rollback shall not be promised.
-
2. Default box widening and precision-sensitive delay tokens PPL-SPEC-001035 CC76_widening_assign(y,tp) shall use the threshold rule of 🔗 1. Threshold box widening and finite stabilization with the fixed ordered values − 2, − 1, 0, 1, 2. The selected boundary type shall represent those values exactly. widening_assign(y,tp) shall have the same behavior. Receiver and argument shall have the same dimension, and the argument's entry set shall be contained in the receiver's entry set.
With a null token pointer or a zero counter, the receiver shall become the default threshold-widened value. With a positive counter, the receiver's represented set shall remain its entry set. The counter shall decrease by exactly one if the corresponding undelayed widening would strictly enlarge that set; otherwise it shall retain its value. Tokens shall not be consumed merely because the operation was called. The counter shall be a live, separately owned writable unsigned object, with access synchronized against other users.
A fixed finite initial token budget, without replenishment during the ascending recurrence, shall preserve the finite-stabilization guarantee of 🔗 1. Threshold box widening and finite stabilization. Each delayed precision loss can consume at most one available token; after exhaustion the ordinary widening shall apply. Calls whose undelayed result is exact shall not require a token.
Both entry sets, dimension checking, enabled interval type, source preservation, self-aliasing and exceptional-operation conditions shall follow 🔗 1. Threshold box widening and finite stabilization. Dimension mismatch shall be rejected before changing the receiver or counter. The result shall not depend on sharing default stop-point objects across callers. Underlying resource or numerical exceptions shall not imply a transaction over receiver and counter.
-
3. Box extrapolation with selected limiting constraints PPL-SPEC-001036 limited_CC76_extrapolation_assign(y,cs,tp) shall require the previous argument's entry set Y to be contained in the receiver's entry set X. The boxes shall have equal ambient dimensions, and the constraint system's dimension shall not exceed them. Dimension errors shall throw std::invalid_argument before receiver or token modification, including on empty or zero-dimensional operands. Strict inequalities in the limiting system shall be admitted under the selected interval policy; their endpoint representation shall retain the outward-conversion rules below.
For nonempty positive-dimensional inputs, limiting constraints shall be selected from the entry receiver. A nontrivial constraint concerning only one coordinate shall be selected exactly when every point of X satisfies it. Constant constraints and constraints involving multiple coordinates shall be ignored. Redundant or differently scaled rows shall not change the mathematical selection rule.
Let L be the least box of the selected profile enclosing the conjunction of the selected coordinate constraints. Let W be the result of the default delayed widening specified by 🔗 2. Default box widening and precision-sensitive delay tokens, computed from the entry operands and counter. The result shall denote W∩L, under the same-profile intersection contract of 🔗 4. Cartesian box intersection. It shall contain X and Y and be contained in W. Under exact rational endpoint arithmetic, the selected constraints shall hold exactly. Under outward endpoint conversion, their box representation shall follow 🔗 1. Addition of optimally supported box constraints; original bounds need not all remain exact after that conversion.
An empty previous argument, empty receiver or zero-dimensional receiver shall retain the current represented set and leave the counter unchanged. A distinct box argument and the supplied constraint system shall retain their values. Self-aliasing of the box operands shall be admitted.
With a fixed finite limiting system, fixed profile and dimension, exact admitted comparisons/conversions and a finite token budget without replenishment, the prescribed ascending recurrence shall stabilize. Selected bounds can only be lost as the receiver grows; each coordinate can visit only the finite threshold/limiting boundary set, including open/closed membership, and its unbounded extents. Arbitrarily changing limiting systems shall have no general finite-convergence guarantee.
The validity, lifetime, synchronization, numeric and enabled interval-type prerequisites of 🔗 2. Default box widening and precision-sensitive delay tokens shall apply. Constraint descriptors and diagnostic reporting shall retain the initialized-context prerequisites of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical and resource exceptions may propagate without whole-operation rollback.
-
4. Box narrowing with complete previous-boundary retention PPL-SPEC-001037 For equal-dimensional boxes, let X be the receiver's entry set and Y the previous argument's entry set, with X ⊆ Y. CC76_narrowing_assign(y) shall replace the receiver by a box Z with X ⊆ Z ⊆ Y.
For nonempty positive-dimensional inputs, each finite previous lower boundary shall be retained in the result, including its exact value and openness. A previous unbounded lower boundary shall leave the current lower boundary unchanged. The corresponding rule shall apply to upper boundaries. Where both current and previous boundaries are finite, the complete previous boundary shall be retained; endpoint membership shall not be copied from the current factor when it differs from that previous boundary.
An empty current set shall remain empty. If the previous set is empty, the containment precondition makes the current set empty as well. Zero-dimensional values shall retain their represented set. A distinct argument shall retain its set and dimension. Self-aliasing shall preserve the receiver's represented set.
For a fixed dimension and interval policy, a descending recurrence shall supply a current set contained in the preceding narrowed result and narrow it against that preceding result. This recurrence shall stabilize after finitely many changes: a previous finite boundary remains fixed, and a previous unbounded boundary can become finite at most once. Reaching the empty set shall terminate further set changes. The selected endpoint comparisons and assignments shall meet their numerical prerequisites.
Dimension mismatch shall throw std::invalid_argument before receiver modification, including empty and zero-dimensional cases. Nesting shall remain a caller precondition. The enabled overload shall require the exact same Box<ITV> type and an implicit conversion from const ITV& to const Interval_Base&. The validity, lifetime, synchronization and numerical conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Diagnostic reporting shall retain its initialized-context prerequisites. Numerical or resource exceptions shall follow the underlying operation's guarantees without a general rollback promise.
-
Incoming link from: 7. C generated convergence operations1
5. Threshold-aware CC76 box convergence certificates PPL-SPEC-001647 CC76_Certificate shall record a finite remaining level for a nonempty Box<ITV> whose boundary type represents the ordered default stopping points T = { − 2, − 1, 0, 1, 2}. An unbounded endpoint shall contribute zero. A closed endpoint at a finite carrier extent shall also contribute zero; an open endpoint there shall contribute one. Any other finite lower endpoint at b shall contribute 2 + 2#{t ∈ T : t < b} + o, where o is one for an open endpoint and zero for a closed endpoint. A finite upper endpoint shall instead count stopping points strictly greater than its value. The certificate level shall be the sum over both endpoints of every coordinate.
Default construction shall describe the zero-dimensional universe. Copying and assignment shall preserve the stored level. Comparison shall return 1, 0 or -1 according as the receiver's level is greater than, equal to or less than the argument's level. Compare shall order larger levels first. Comparison with a box shall compute its certificate and use the same ordering. Equal levels shall not imply equal sets. Inclusion alone shall not promise a nonincreasing level: an endpoint moving inside a threshold cell may also open.
For a fixed dimension and interval policy, consider a nonempty previous box and a containing candidate, widened by the tokenless default CC76 overload of 🔗 2. Default box widening and precision-sensitive delay tokens. Each endpoint level shall be nonincreasing over that widened step, and every strict set increase shall strictly decrease the sum. The sum shall be between zero and 26 times the dimension, proving finite stabilization for this base widening and supplying the finite certificate required by 🔗 3. Certificate-based powerset widening. This compatibility shall not extend to arbitrary iterator-supplied stopping points, delayed widening or limited extrapolation without a separate argument.
Empty box construction shall throw std::invalid_argument. Unrepresentable stopping points shall retain the boundary conversion's exception, or throw std::invalid_argument if the converted values are not strictly ordered. A dimension for which 26 times the dimension would overflow dimension_type shall throw std::length_error. The box lifetime, initialization and numerical prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Queries may normalize lazy caches without changing the represented set.
-
1. Box construction from supported constraints PPL-SPEC-001044 Box(cs) shall construct the coordinate enclosure obtained by conjoining the constraints in cs with a universe box of the same ambient dimension, using the admitted row forms and endpoint interpretation in 🔗 1. Addition of optimally supported box constraints. With exact rational endpoints and supported openness, the result shall equal the conjunction of admitted rows. Rounded profiles shall preserve the specified outward endpoint enclosure, without a general optimality claim for inexact arithmetic. An empty system shall produce universe. A constant false row shall produce empty. With exact rational operations, every inconsistent admitted conjunction shall produce empty. Under inexact endpoint conversion, successive row enclosures may lose enough information to leave an inconsistent conjunction undetected.
A non-interval row, or a nontrivial strict inequality when the selected interval policy cannot retain open boundaries, shall throw std::invalid_argument. Rejection shall still occur if an earlier admitted row already made the conjunction empty. Tautological and inconsistent constant rows shall retain their declared meanings.
Construction from an rvalue system shall have the same result and rejection behavior. Its const source shall not be consumed or have its rows removed.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
2. Box construction from supported congruences PPL-SPEC-001045 Box(cgs) shall construct the coordinate enclosure obtained by conjoining the congruences in cgs with a universe box, using the admitted forms in 🔗 2. Addition of optimally supported box congruences. Nontrivial unary equalities shall constrain the corresponding coordinate to their rational solution, with target endpoint conversion as declared. Tautological rows shall have no effect and inconsistent rows shall produce empty. An empty system shall produce universe. With exact rational interval endpoints, admitted equalities shall be represented exactly.
A non-interval equality or a nontrivial proper congruence shall throw std::invalid_argument, including after an earlier row has made the conjunction empty. A proper congruence whose meaning is tautological or inconsistent shall retain that meaning instead of being rejected merely because its modulus is nonzero.
Construction from an rvalue system shall have the same result and rejection behavior; its const source shall retain its rows and value.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
3. Cartesian enclosure of a polyhedral generator system PPL-SPEC-001046 Box(gs) shall contain the polyhedral set generated by gs with the point, closure-point, ray and line meanings in 🔗 1. Generator kinds and numerical prerequisites and 🔗 15. Generator-system hull meaning and construction. For exact rational endpoint operations and supported openness, the result shall be its least Cartesian box.
At a coordinate not made unbounded by directions, the finite extrema shall be those of the generator points and closure points. Such an extremum shall be included exactly when an ordinary point attains it; a closure point alone shall not include that endpoint. A ray with a nonzero component shall remove the bound in that component's sign direction. A line with a nonzero component shall remove both coordinate bounds. Zero components shall not change other factors. Inexact endpoint profiles shall provide outward enclosures of these coordinate ranges.
An empty generator system shall produce empty with the inherited dimension. A nonempty system with no ordinary point shall throw std::invalid_argument. A point in dimension zero shall generate the unique empty tuple. Construction from an rvalue system shall have the same result, rejection and source preservation as ordinary construction.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
4. Box conversion from bounded-difference shapes PPL-SPEC-001047 Box(bds,complexity) shall contain the set represented by the bounded-difference shape. Each coordinate shall use the lower and upper unary bounds implied by the source constraints. Nonempty finite extrema shall be included, since the source carrier is topologically closed. Unbounded coordinates shall retain the corresponding unbounded sides. Empty and zero-dimensional sources shall retain their set meanings.
When the source closure and target endpoint operations are exact, including the rational-bound profile, the result shall be the least Cartesian box containing the source. Inexact source closure arithmetic or target endpoint conversion shall retain outward containment without a general best-box guarantee. The selected Complexity_Class value shall not change this constructor's mathematical result or its polynomial closure algorithm; all three declared complexity values shall be admitted.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
5. Box conversion from octagonal shapes PPL-SPEC-001048 Box(oct,complexity) shall contain the set represented by the octagonal shape. Coordinate bounds shall use the implied unary signed constraints, including the division by two required for bounds on 2*x or -2*x. Nonempty finite extrema shall be included; unbounded sides, empty sources and zero-dimensional set meanings shall be retained.
When source closure arithmetic and target endpoint operations are exact, including the rational-bound profile, the result shall be the least Cartesian box containing the source. Inexact closure or endpoint arithmetic shall retain an outward enclosure without a general optimality promise. The three declared complexity values shall be admitted, and the complexity argument shall not change this constructor's mathematical result or its polynomial closure algorithm.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
6. Complexity-sensitive box conversion from polyhedra PPL-SPEC-001049 Box(ph,complexity) shall contain the source polyhedron under each of ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY. Other complexity codes shall be outside the admitted interface.
With ANY_COMPLEXITY, exact rational endpoint arithmetic and supported openness, the result shall be the least Cartesian box, including endpoint attainment for not necessarily closed polyhedra and exact preservation of emptiness. Inexact target profiles shall retain their declared outward enclosure.
With SIMPLEX_COMPLEXITY and exact rational operations, a nonempty source shall have exact coordinate infima and suprema, but a finite unattained bound may be included. A topologically closed source shall therefore have its least Cartesian box in the exact rational target profile. The operation need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
With POLYNOMIAL_COMPLEXITY, the constructor may use a bounded constraint-propagation computation whose pass budget grows linearly with the space dimension and which stops early when coordinates cease changing. The resulting box shall remain a containing approximation; no general least-box, fixed-point propagation, exact emptiness detection or implementation-specific iteration-count guarantee shall be inferred. Available equivalent source representations may yield different allowed approximations. Each complexity option shall retain the corresponding declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. On success and when construction throws, a source shall retain a valid representation of its unchanged value; logically const normalization may update its caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
7. Cartesian enclosure of a rational grid PPL-SPEC-001050 Box(gr,complexity) shall contain the rational grid. A coordinate whose value is fixed throughout a nonempty grid shall be constrained to that rational value, with target endpoint conversion as specified. If a line or an integer-parameter direction varies that coordinate, its projection shall be unbounded in both directions. Correlations and periodic gaps shall not become additional Cartesian restrictions.
With exact rational interval endpoints the result shall be the least Cartesian box of the grid. Finite inexact target profiles shall provide the outward coordinate enclosure. Empty grids and zero-dimensional empty/universe shall retain their set meanings. All three declared complexity values shall be admitted; the argument shall not change the mathematical result or the polynomial generator-based computation.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
8. Box conversion from partially reduced products PPL-SPEC-001051 Box(dp,complexity) shall convert each component domain of dp into the target box profile under the supplied admitted complexity value, then take their same-profile box intersection. The result shall contain every point in the product's represented component intersection. Each component conversion shall retain its own admission, numerical and complexity prerequisites.
Even when both component conversions are individually least, their box intersection need not be the least box of the product: constraints correlating coordinates across components may be lost. No additional reduction or global optimality guarantee shall be inferred. Empty component enclosures shall yield empty; an empty semantic product whose separate component boxes overlap may yield a nonempty approximation. The default complexity value shall be ANY_COMPLEXITY.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
-
1. Dimension-preserving box coordinate forgetting PPL-SPEC-000961 For a nonempty box, forgetting a selected coordinate shall replace its factor by the selected interval profile's universe, leaving every other factor and the ambient dimension unchanged. Forgetting a set of coordinates shall apply that meaning to all selected positions. The result shall exactly denote existential elimination of those values with the same positions restored as unrestricted coordinates. An empty source shall remain empty, including when emptiness is carried only by a factor being forgotten. Forgetting no coordinates shall preserve the value.
An out-of-dimension variable, or any member of a selected set outside the ambient dimension, shall throw std::invalid_argument. This validation shall apply also to empty boxes. Valid coordinate selections shall use the coordinate identity and lifetime rules for Variable and Variables_Set.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
2. Unrestricted and zero-fixed box coordinate extension PPL-SPEC-000962 Adding m coordinates shall preserve every old coordinate in its original position and append the new coordinates at the highest indices. add_space_dimensions_and_embed(m) shall append unrestricted factors. add_space_dimensions_and_project(m) shall append factors containing exactly zero. Each completed result shall exactly denote the corresponding Cartesian extension. Empty sources shall remain empty, including empty zero-dimensional sources; zero-dimensional universe shall extend to the corresponding unrestricted or zero-fixed product. Adding zero coordinates shall preserve the value.
If the resulting ambient dimension would exceed max_space_dimension(), the operation shall throw std::length_error before attempting coordinate allocation of that size. Successful dimensions shall remain subject to resource availability.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
3. Ordered Cartesian box concatenation PPL-SPEC-000963 concatenate_assign(y) shall replace the destination by the exact Cartesian product of its entry value and y's entry value, with destination coordinates preceding source coordinates. The ambient dimensions shall add. Either empty operand shall make the result empty. Zero-dimensional universe shall act as the identity on either side; zero-dimensional empty shall retain its empty-set meaning.
A distinct source shall remain unchanged. Self-concatenation shall be admitted and shall use the entry factors twice, with independently mutable factor storage after success. The two tuples in a self-product shall be chosen independently. Dimension overflow shall throw std::length_error; successful dimensions shall remain subject to allocation/resource availability.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
4. Selected-coordinate box projection and compaction PPL-SPEC-000964 remove_space_dimensions(vars) shall existentially project away exactly the selected coordinates. Surviving factors shall retain their relative order and shall receive contiguous indices starting at zero. The resulting dimension shall be the entry dimension minus the selected set's cardinality. For boxes this projection shall be exact. Empty sources shall remain empty, even if the only empty factor is removed. Removing every coordinate from a nonempty box shall give zero-dimensional universe; removing every coordinate from empty shall give zero-dimensional empty. Removing no coordinates shall preserve the value.
A selected coordinate outside the entry ambient dimension shall throw std::invalid_argument, including for empty inputs.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
5. Trailing-coordinate box projection PPL-SPEC-000965 remove_higher_space_dimensions(d) shall exactly project onto the first d entry coordinates. The ambient dimension shall become d and retained factors shall preserve order and values. An empty source shall remain empty regardless of which factors carried emptiness. Projection to dimension zero shall yield universe exactly for a nonempty source, and empty for an empty source. Requesting the current dimension shall preserve the value.
If d exceeds the entry ambient dimension, the operation shall throw std::invalid_argument. It shall not extend the box.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
6. Injective partial box coordinate remapping PPL-SPEC-000966 For entry ambient dimension n, the supplied mapping shall be a stable injective partial function on indices from zero through n-1, with image exactly the contiguous indices from zero through m-1 for some m no greater than n. The operation shall exactly project away unmapped coordinates and place each retained entry factor at its mapped index. The result shall have dimension m. Empty sources shall remain empty. An empty mapping shall give zero-dimensional universe for a nonempty source and zero-dimensional empty for an empty source. A zero-dimensional source shall retain its value.
The mapping object shall provide the protocol shown below. has_empty_codomain() shall report whether the map is nowhere defined; max_in_codomain() shall return the maximum image when nonempty; maps(i,j) shall report membership in the domain and, on true, assign the image to j. Whenever callbacks are used, the empty-codomain query shall precede the others, and a true result shall preclude maximum/image queries. No callback shall be required for a zero-dimensional source. Values and mapping callbacks shall meet their own resource, lifetime and synchronization prerequisites. A mapping violating the stated mathematical/protocol preconditions shall be outside the contract.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
7. Box coordinate expansion and replica precision PPL-SPEC-000967 For a valid existing coordinate var, expand_space_dimension(var,m) shall append m factors with the entry factor's value. Original coordinates shall retain their values and indices. Each new factor shall own independently mutable storage. The resulting box shall be the least Cartesian interval enclosure, in the selected factor profile, of the coordinate-expansion relation: the original selected value may be chosen independently of the replica value, while all replicas in a concrete expanded tuple use a common selected-factor value. The box enclosure may choose different values for different replicas. No original-to-replica equality shall be imposed. Empty sources shall remain empty. Adding no replicas shall preserve the value.
An out-of-dimension coordinate shall throw std::invalid_argument, including when m is zero or the box is empty. If the final dimension exceeds max_space_dimension(), the operation shall throw std::length_error. Successful dimensions shall remain subject to resource availability.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
8. Box coordinate folding and interval enclosure PPL-SPEC-000968 For a valid destination coordinate dest and selected set vars that excludes it, folding shall replace the destination factor by the least interval of the selected profile containing the union of its entry factor and all selected entry factors. It shall then remove the selected coordinates, compacting the remaining positions in their original order. Other retained factors shall preserve their entry values. This shall be the least box enclosure of the alternatives obtained by choosing either the original destination or one selected coordinate for the surviving destination value. Gaps between those alternatives may be included by the interval hull. Empty sources shall remain empty. An empty selected set shall preserve the value.
An out-of-dimension destination or selected coordinate, or inclusion of the destination in the selected set, shall throw std::invalid_argument. Destination validity shall be required even for an empty selected set and for an empty box.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
1. Rectilinear distance between Box endpoint tuples PPL-SPEC-001052 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, rectilinear_distance_assign shall compute the requested directed bound on
D1(X, Y) = ∑jdj.This shall be a distance of endpoint descriptions, not the minimum distance between a point of each box. Openness shall not affect it. With exact rational temporary arithmetic and an exactly representable output, the finite sum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
2. Euclidean distance between Box endpoint tuples PPL-SPEC-001053 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, euclidean_distance_assign shall compute the requested directed bound on
D2(X, Y) = √( ∑jd2j).Each squared contribution shall preserve the requested bound on this nonnegative endpoint distance, including when conversions into a temporary format are inexact. This endpoint-tuple norm shall not be identified with the minimum set distance or general Euclidean Hausdorff distance between the represented boxes. Openness shall not affect it. A rational temporary square root shall retain the enclosure and precision conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness of a rational perfect-square input or universal fixed error width shall be inferred beyond those contracts.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
3. Maximum-coordinate distance between Box endpoint tuples PPL-SPEC-001054 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, l_infinity_distance_assign shall compute the requested directed bound on
D∞(X, Y) = maxjdj,with value zero for an empty finite endpoint tuple. Openness shall not affect this endpoint comparison. With exact rational temporary arithmetic and an exactly representable output, the finite maximum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming links from: 1. Rectilinear distance between Box endpoint tuples 1. Rectilinear distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples6
4. Box endpoint-distance domain, workspaces and dispatch PPL-SPEC-001055 For equally dimensioned nonempty ordinary-real boxes, each finite lower or upper endpoint shall occupy its corresponding position in a tuple of 2n endpoints. A position finite in both boxes shall contribute dj = |ej(X) − ej(Y)|. A matching unbounded lower position or matching unbounded upper position shall contribute zero; a position unbounded in exactly one source shall make each supported distance positive infinity. Endpoint openness shall be ignored, so boxes differing only in endpoint inclusion may have distance zero.
Two empty boxes of equal ambient dimension shall have distance zero; exactly one empty box shall have positive-infinite distance. These conventions shall apply also in dimension zero, distinguishing zero-dimensional empty from universe. Unequal ambient dimensions shall return false before modifying the result or caller-supplied scratch objects. Equal dimensions shall return true on successful numerical completion, with the assigned distance specified by 🔗 1. Rectilinear distance between Box endpoint tuples, 🔗 2. Euclidean distance between Box endpoint tuples or 🔗 3. Maximum-coordinate distance between Box endpoint tuples. A Boolean success shall not imply exactness of a rounded value.
The default overload shall allocate three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar temporary type Temp shall instead allocate three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied workspace overload shall use the actual Work type of its three references, which may be an admitted raw or checked numerical type. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, numerical failure, resource, shared-temporary, nontrapping and caller-owned FPU conditions. Native floating conversions or computations shall retain their configured availability and hardware prerequisites. Rational square-root precision shall remain stable throughout a dependent call.
Calls evaluating a finite endpoint difference shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. They shall not require endpoint conversions to be exact solely to establish a directed bound. Paths assigning only the exact zero or positive-infinite exceptional value shall admit any otherwise valid direction request for that scalar assignment. Sources shall satisfy 🔗 1. Cartesian box values, coordinate identity and valid use; no NaN or included-infinity element shall be introduced into their ordinary-real carrier. An output profile shall support positive infinity whenever that outcome is reachable. Otherwise valid calls shall require no additional library initialization beyond the selected numerical/thread prerequisites.
The three supplied scratch objects shall be pairwise distinct and have storage disjoint from both source boxes. Their entry numerical values need not be initialized when the call overwrites them before reading. The result shall have live assignable storage disjoint from the source boxes; it may coincide with any one scratch object or its compatible raw storage. Result and scratch aliases shall use source values on entry. The same box may be supplied for both sources. Source factor views shall retain their read-only contract 🔗 7. Empty-aware borrowed coordinate interval access. Callers shall synchronize access, including cached emptiness updates, and preserve object/borrowed-storage lifetimes. Failures other than ordinary dimension mismatch shall retain the selected scalar policy's permitted partial output/scratch state, with no aggregate rollback guarantee.
The generic l_m_distance_assign helper shall apply these rules when instantiated with the library's rectilinear, Euclidean or maximum-coordinate specialization for that same workspace type. The sum, sum-of-squares/square-root and maximum accumulation shall use the shared numerical specializations of 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays and 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The source tuple here shall consist of Box endpoints, with the Box admission and overlap conditions stated above.
-
1. Exact topological closure of boxes PPL-SPEC-001038 topological_closure_assign() shall replace the receiver by its exact topological closure over the ordinary real carrier. It shall include each finite boundary point of a nonempty factor while preserving that boundary's value and retaining unbounded directions. Empty, including a product with an unclassified empty factor, shall remain empty. The ambient dimension shall remain unchanged. The operation shall be idempotent and shall preserve an already closed box. A closed-only interval profile shall not introduce a distinct value merely because no openness bits are stored.
Finite endpoint closure and policy admission shall follow 🔗 5. Interval closure and endpoint exclusion; closing factors shall not turn an empty product into a nonempty one.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Exceptions escaping a delegated interval operation may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
2. Least box enclosure of nonnegative real-time progression PPL-SPEC-001039 For the receiver's entry set X and the argument's entry set Y of the same ambient dimension, time_elapse_assign(y) shall replace the receiver by the least box of its admitted interval profile containing
{x + ty ∣ x ∈ X, y ∈ Y, t ∈ ℝ, t ≥ 0}.The progression parameter shall be one common nonnegative real number for all coordinates. The result shall be the Cartesian enclosure of this progression set; it need not preserve relationships induced by the common time. Where the interval profile can express the exact coordinate ranges, the enclosure shall be exact as a box. Zero time shall preserve every entry receiver point when the direction set is nonempty. If either entry set is empty, the result shall be empty, including in dimension zero. Finite extremal values retained from the receiver shall retain their inclusion or exclusion, and unbounded progression shall be represented as an unbounded coordinate direction.
The ambient dimension shall remain unchanged. A distinct y shall retain its set and dimension; self-aliasing shall use both entry sets. Unequal ambient dimensions shall throw std::invalid_argument before modifying the receiver, including when either operand is empty.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
3. Selected-coordinate integer-point normalization of boxes PPL-SPEC-001040 drop_some_non_integer_points(complexity) shall normalize every factor; drop_some_non_integer_points(vars,complexity) shall normalize exactly the selected coordinates. The result shall introduce no point outside the entry box and shall preserve every entry point integral on the selected coordinates. Unselected factors and the ambient dimension shall retain their meanings. An empty selection shall preserve the box; an empty receiver, including a product with a hidden empty factor, shall remain empty. Each admitted complexity argument shall have the same mathematical meaning for these Box operations.
For ordinary real factors satisfying the exact endpoint and unit-adjustment preconditions of 🔗 2. Interval endpoint normalization around integer points, each selected factor shall become the least interval hull of its integer points. A factor with no integer point shall make the product empty. A varying interval between distinct integer endpoints may retain noninteger interior points: the operation shall not change the underlying real carrier into an integer carrier. Selected unbounded directions shall retain their unbounded meaning. Normalization shall be idempotent. Closed factors with integral boundary storage shall already have the required endpoint meaning.
A selected variable outside the receiver dimension shall throw std::invalid_argument before modification, including for empty or closed-only boxes. The selected-coordinate set shall remain unchanged.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
1. Addition of optimally supported box constraints PPL-SPEC-001016 add_constraint(c) shall admit a dimension-compatible linear constraint with at most one nonzero homogeneous coefficient. A nonconstant strict inequality shall additionally require a profile supporting open endpoints. The successful result shall enclose the intersection of the entry box and the constraint and remain contained in the entry box. With exact admitted endpoints and openness, that intersection shall be represented exactly; otherwise the affected factor shall use its least supported outward interval enclosure. Constant truth or falsity shall leave the value unchanged or make it empty, including the zero-dimensional cases.
A constraint of greater ambient dimension, a non-interval constraint, or an unsupported nonconstant strict inequality shall throw std::invalid_argument. The support checks shall still apply to an empty receiver. add_constraints(cs) shall apply the same obligations to the conjunction of all supplied constraints; a support error may follow earlier successful additions, so the system form shall not promise rollback. System ambient dimension, including unused trailing coordinates, shall be checked before refinement. Const descriptors shall retain their values.
add_recycled_constraints(cs) shall have the same mathematical result and shall leave the supplied mutable system safely destructible on ordinary or exceptional return. can_recycle_constraint_systems() shall return false. No right to reuse a recycled system's prior contents shall be inferred from this capability value.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 2. Box construction from supported congruences1
2. Addition of optimally supported box congruences PPL-SPEC-001017 add_congruence(cg) shall admit a dimension-compatible equality congruence with at most one nonzero homogeneous coefficient, and constant tautological or inconsistent proper congruences. An equality shall have the same numerical enclosure as addition of its equivalent linear equality under 🔗 1. Addition of optimally supported box constraints. A tautology shall leave the receiver unchanged; an inconsistency shall make it empty. A nontrivial proper congruence or a relational equality shall throw std::invalid_argument, including when the receiver is already empty.
add_congruences(cgs) shall apply these obligations to the conjunction of its entries. The whole system's ambient dimension shall be checked before addition, even if its nonzero coefficients use fewer dimensions. Any input of greater ambient dimension shall throw std::invalid_argument. A bulk support error may follow earlier changes; no rollback shall be promised. Const congruences and systems shall retain their values.
add_recycled_congruences(cgs) shall give the same mathematical result and leave its supplied mutable system safely destructible on success or exception. can_recycle_congruence_systems() shall return false; the caller shall not rely on a recycled input retaining its prior contents.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
3. Conservative box refinement by linear constraints PPL-SPEC-001018 For a dimension-compatible constraint c, refine_with_constraint(c) shall produce a box X’ satisfying X∩{x : c(x)} ⊆ X’ ⊆ X, where X is the receiver's entry set. Unlike optimal addition, refinement shall admit relational constraints and strict constraints under closed-only profiles, using outward supported bounds where necessary. It shall not reject a constraint solely because its exact intersection is not a box.
A constant inconsistency shall make the box empty; a constant tautology shall preserve it. A separable constraint shall refine its affected factor; relational constraints shall propagate necessary coordinate bounds and need not yield the least box enclosure. Empty shall remain empty. refine_with_constraints(cs) shall perform at most one refinement step per constraint in one traversal, stopping early on detected emptiness. The result may depend on traversal order; no fixed-point or least-enclosure guarantee shall be inferred.
Dimension mismatch, including excess system ambient dimension, shall throw std::invalid_argument before replacement. The receiver's ambient dimension and the supplied const descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
4. Conservative box refinement by linear congruences PPL-SPEC-001019 For a dimension-compatible congruence g, refine_with_congruence(g) shall produce X’ with X∩{x : g(x)} ⊆ X’ ⊆ X. An equality congruence shall use the linear-constraint refinement in 🔗 3. Conservative box refinement by linear constraints. A constant inconsistent proper congruence shall make the receiver empty. Other proper congruences may leave its box unchanged, retaining soundness without claiming an explicit lattice representation or periodic endpoint tightening.
refine_with_congruences(cgs) shall refine the conjunction by applying the supported per-entry refinement and may stop when emptiness is detected. It shall not require a fixed point or least box enclosure. Empty shall remain empty and zero-dimensional constants shall retain their logical meaning. Input congruences and systems shall remain unchanged. An input or system ambient dimension larger than the box dimension shall throw std::invalid_argument before replacement; the receiver dimension shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
5. Controlled box constraint propagation PPL-SPEC-001020 For dimension-compatible linear constraints, propagation shall tighten coordinate bounds without deleting any entry point satisfying the supplied constraint or conjunction, and without enlarging the entry box. It shall accept equality and strict or nonstrict inequality constraints under the selected supported numerical profile, retaining required outward rounding and any openness the profile can represent. Constant contradictions shall make the box empty; tautologies and empty inputs shall retain their set meanings.
propagate_constraint(c) shall perform one propagation step for the constraint. propagate_constraints(cs, max_iterations) shall make at most max_iterations passes when that argument is positive, using each constraint at most once per pass unless emptiness is detected first. A pass leaving every interval unchanged shall terminate propagation early. A finite pass limit shall permit later calls to continue tightening the current box.
Zero, including the default argument, shall mean no pass limit and may lead to nontermination. Even reaching an unchanged pass shall not establish a least box enclosure of the conjunction. Traversal and intermediate rounding may affect the final precision. Greater constraint or system ambient dimension shall throw std::invalid_argument before replacement. The box dimension and const input descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
1. Exact extraction of individual box boundaries PPL-SPEC-001030 For a nonempty receiver and a variable var within its ambient dimension, has_lower_bound(var,n,d,closed) shall return true exactly when that factor has a finite lower boundary. On true, n ⁄ d shall be its exact infimum, with d > 0, coprime numerator and denominator, and denominator one when the numerator is zero. closed shall state whether that boundary belongs to the factor. has_upper_bound shall give the corresponding exact supremum and upper boundary inclusion. On false, all supplied output objects shall retain their values. Numerator and denominator outputs shall be distinct.
These calls shall require the stated nonempty and coordinate-validity preconditions; they shall not promise validation or a specified outcome outside them. The represented box and ambient dimension shall remain unchanged. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Finite endpoint conversion and coefficient assignment shall retain the selected numerical policy's range and exception conditions; an exception shall not imply rollback of outputs already assigned. Valid use shall impose no additional initialization requirement beyond the selected numerical facilities.
-
2. Constraint and congruence exports of box values PPL-SPEC-001031 constraints() shall return an owned, dimension-preserving constraint system whose conjunction denotes exactly the receiver. Finite coordinate boundaries shall retain their exact values and strictness; unconstrained coordinates shall not introduce restrictions. Empty, including an unclassified empty factor, shall export an inconsistent conjunction. Zero-dimensional universe shall export the tautological conjunction and zero-dimensional empty an inconsistent one.
minimized_constraints() shall return an equivalent system, using one equality for a singleton factor and the necessary finite endpoint constraints for a nonsingleton factor. The interface shall not require a particular row order or syntactic scaling.
congruences() and minimized_congruences() shall return owned, dimension-preserving congruence systems containing every receiver point. For a nonempty box, they shall express exactly the affine equalities fixing its singleton coordinates and shall impose no periodic restriction on varying factors. Empty shall export an inconsistent system. The two forms shall have the same mathematical meaning; no extra proper congruence precision shall be inferred from minimization.
The box's set and dimension shall remain unchanged and returned systems shall be independent values. The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Construction of output descriptors shall retain the initialized library and thread context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Coefficient representability, intermediate arithmetic and reported range failures shall follow the configured coefficient profile; resource or numerical exceptions shall not promise a returned partial system.
-
3. Affine boundedness, extrema and witnesses on boxes PPL-SPEC-001032 bounds_from_above(expr) and bounds_from_below(expr) shall decide exactly whether the affine expression's values over the receiver are bounded in the indicated direction. Empty shall be bounded in both directions. Zero coefficients shall not make an otherwise bounded objective unbounded because of unused coordinate factors.
maximize shall return true exactly when the receiver is nonempty and the objective is bounded above. On true, its numerator and positive denominator shall give the exact supremum as a reduced fraction, and maximum shall be true exactly when some receiver point attains it. minimize shall analogously report the exact infimum and attainment. A constant objective on any nonempty box shall be attained, including in zero dimensions. Ordinary false shall preserve every supplied output. Numerator and denominator outputs shall be distinct.
The generator overloads shall additionally return a point in the receiver when the extremum is attained, and a closure point in its topological closure when it is not attained. Its coordinates, including coordinates absent from the expression, shall satisfy the respective membership condition, and its objective value shall equal the reported extremum. Omitted generator coordinates shall have their declared zero-extension meaning. A witness shall not be accepted merely because it gives the correct objective value.
An expression's ambient dimension greater than the box dimension shall throw std::invalid_argument before changing outputs, including for an empty receiver or a constant expression with excess declared dimension. The represented box, its dimension and the supplied expression shall retain their values. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expressions and generators shall retain their descriptor prerequisites; creating output generators and reporting dimension errors shall retain the context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical intermediate and output representability shall follow the selected coefficient profile. Reported allocation or numerical exceptions may leave outputs partly assigned; ordinary false-result preservation shall not imply exception rollback.
-
4. Detection of constant affine values and zero frequency PPL-SPEC-001033 frequency(expr,fn,fd,vn,vd) shall return true exactly when the receiver is nonempty and the expression has one value throughout it. On true, fn and fd shall be zero and one, respectively, while vn/vd shall be that exact value as a reduced fraction with positive denominator. A coordinate with zero expression coefficient shall not prevent constancy even when its factor varies or is unbounded. For boxes this success shall express a unique value, not a nonzero periodic frequency. Empty shall return false. Zero-dimensional universe shall return the expression's constant term with zero frequency.
Ordinary false shall preserve all four supplied output values. Those outputs shall be distinct. Greater expression ambient dimension shall throw std::invalid_argument before output replacement, including when the receiver is empty. The expression and the represented box and its ambient dimension shall retain their values.
The profile, numerical, lifetime and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expression descriptors and dimension error reporting shall retain their initialized-context prerequisites. Coefficient intermediate and output representability and reported range failures shall follow the configured coefficient profile. Allocation or numerical exceptions may leave output values partly assigned; ordinary false-result preservation shall not imply exception rollback.
-
1. Box relations with linear constraints PPL-SPEC-000973 For a dimension-compatible constraint with affine expression e(x) and relation e(x) ⋈ 0, relation_with(c) shall report exactly the applicable assertions: is_disjoint() when no represented point satisfies the constraint; is_included() when every represented point satisfies it; strictly_intersects() when some but not all represented points satisfy it; and saturates() when every represented point has e(x) = 0. Saturation shall be independent of whether the inequality is strict.
An empty box shall therefore report disjoint, included and saturating, without strict intersection. A nonempty box lying on an excluded strict boundary shall report disjoint and saturating. The zero-dimensional universe shall use its unique empty tuple, and omitted coefficients shall be zero. A constraint of greater ambient dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
2. Box relations with linear congruences PPL-SPEC-000974 For a dimension-compatible congruence with affine expression e(x) and modulus m, relation_with(cg) shall interpret m = 0 as the equality e(x) = 0, and positive m as membership of e(x) in mℤ. It shall report disjointness, inclusion or strict intersection by the corresponding quantified assertions over the represented box. On a nonempty box, saturates() shall hold when its affine image is a single value satisfying the congruence. An empty box shall report disjoint, included and saturating. The unique zero-dimensional point shall be tested against the constant congruence.
Excluded finite endpoints shall not establish a congruence witness. The first eligible lattice value and all affine-range intermediates shall not be restricted to the configured coefficient range. A congruence whose ambient dimension exceeds the box dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
3. Box subsumption of geometric generators PPL-SPEC-000975 For a dimension-compatible geometric generator, relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the generator is subsumed, and nothing() otherwise. A point shall be subsumed exactly when its rational coordinates belong to the box. A closure point shall use membership in the topological closure of a nonempty box. Coordinates omitted from the generator shall be zero, including all trailing box coordinates.
A ray shall be subsumed exactly when translating any box point by every nonnegative multiple of its direction remains in the box; a line shall use every real multiple. Zero direction components shall impose no condition; a positive or negative ray component shall require the corresponding upper or lower absence of a finite bound, and a nonzero line component shall require an unconstrained factor. An empty box shall subsume no generator. The zero-dimensional universe shall subsume every admitted zero-dimensional generator. A generator with greater dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
Incoming link from: 3. Box extrapolation with selected limiting constraints1
4. Cartesian box intersection PPL-SPEC-000976 For same-profile boxes of equal ambient dimension, intersection_assign(y) shall replace the receiver by the exact set intersection of the two entry values, preserving their ambient dimension. Each nonempty result factor shall be the corresponding interval intersection. Empty and universe shall obey the ordinary set identities, including dimension zero. The operation shall admit self-intersection and shall preserve a distinct donor's represented value. Any empty factor shall make the result empty regardless of cached classification.
Dimension mismatch shall throw std::invalid_argument before replacing the receiver's represented value.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
5. Least same-profile box upper bound PPL-SPEC-000977 For same-profile boxes of equal ambient dimension, upper_bound_assign(y) shall replace the receiver by the least box of that profile containing both entry sets. For nonempty operands this shall use the coordinate-wise least interval hulls; endpoint inclusion shall retain every admitted input point. An empty operand shall be neutral, including a lazily empty operand, and the zero-dimensional cases shall retain empty/universe meaning.
The operation shall admit a donor identical to the receiver, preserve the represented value of a distinct donor and keep ambient dimension. Dimension mismatch shall throw std::invalid_argument before replacing the receiver's represented value. The result need not equal the union.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
6. Conditional exact union of boxes PPL-SPEC-000978 For same-profile boxes of equal dimension, upper_bound_assign_if_exact(y) shall return true exactly when their set-theoretic entry union is representable as a box of that profile. On true it shall replace the receiver by that union. On false the receiver's represented value shall remain unchanged; a partial coordinate hull shall not escape as a failed result. A distinct donor shall remain unchanged in either case.
Exactness shall account for gaps and excluded touching endpoints within a factor, and for incompatible alternatives in different coordinates. Mere intersection or exactness of every separate coordinate hull shall not establish exactness of the Cartesian union. Empty, equal, contained, zero-dimensional and self-aliased operands shall use their set meanings. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
7. Same-profile abstract box difference PPL-SPEC-000979 For same-profile boxes of equal ambient dimension, difference_assign(y) shall replace the receiver by the least box of that profile containing the set-theoretic difference of the two entry values. It may retain removed points when the difference is not itself representable as a box. With exact rational endpoints and supported openness this shall be the Cartesian interval hull of the exact difference.
Empty subtraction, subtraction from empty, self-subtraction, coverage and zero-dimensional cases shall follow their set meanings. Removal of a boundary shall preserve the remaining endpoint's required openness where representable. A difference split into separate pieces shall use their least same-profile enclosure. A distinct donor shall retain its represented value, self-aliasing shall be admitted and ambient dimension shall remain. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
8. Context-preserving box simplification PPL-SPEC-000980 For same-profile boxes of equal ambient dimension, let X and Y be the receiver and context entry sets. simplify_using_context_assign(y) shall produce a box X’ with X ⊆ X’ and X’∩Y = X∩Y, keeping ambient dimension. The operation may discard bounds made redundant by the context. It shall not promise a unique or maximally enlarged result.
A false return shall establish X∩Y = ⌀; a true return shall retain the intersection-preservation guarantee without an additional exact nonemptiness claim. Empty contexts and receivers and zero-dimensional values shall follow these set obligations. A distinct context's represented value shall remain unchanged. With the receiver also used as context, entry-value semantics shall still apply. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
1. Human-readable box presentation PPL-SPEC-000969 Insertion shall write false for an empty box and true for a universe box. Otherwise, it shall visit every ambient coordinate in increasing index order and write the active variable name, the literal separator " in ", and that coordinate's interval presentation. Consecutive coordinates shall be separated by ", ". Unrestricted factors of a non-universe product shall also be shown. Zero-dimensional empty and universe shall retain their respective words. Successful insertion shall return the supplied stream reference without adding a newline or explicitly flushing it.
Variable names shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Interval presentation shall follow 🔗 2. Readable interval presentation and output delivery, including stream formatting and locale. The display shall not encode a separate ambient-dimension header. print() shall deliver the same display to the current std::cerr without appending a newline.
The represented box value shall remain unchanged; logically const emptiness/universe queries may refresh status. Stream failures shall retain the supplied stream's state and exception-mask behavior. Exceptions escaping the selected formatter, endpoint or stream operations shall propagate with partial output retained; their internal stream handling shall follow the applicable exception mask. Rendering callbacks shall not invalidate or mutate the box or coordinate storage being visited.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
Incoming link from: 3. Compatible box record loading and failure state1
2. Reloadable box record export PPL-SPEC-000970 Under compatible machine-output formatting and endpoint serialization prerequisites, ascii_dump(s) shall emit the box status record, the label space_dim, the ambient dimension and a newline, followed by exactly one serialized interval record per coordinate in increasing index order. The status protocol shall follow 🔗 5. Status ASCII loading and partial rejection state; interval records shall follow 🔗 4. Reloadable interval metadata and endpoint export. The record shall retain enough information to reload the same ambient dimension and mathematical Cartesian value with 🔗 3. Compatible box record loading and failure state.
For a box whose status already certifies emptiness, endpoint storage may be inactive. Export shall emit a valid canonical universe interval for each such coordinate without interpreting inactive endpoint payloads. The certified empty status shall preserve the empty Cartesian meaning independently of those replacement records. For other valid status states, coordinate export shall retain the interval serialization's metadata and inactive-payload rules. Export shall preserve the source mathematical value and shall not require first querying its emptiness.
ascii_dump() shall deliver the same record to the current std::cerr. Output shall require sufficient stream resources, compatible numeric formatting/locale and the selected endpoint codec's prerequisites. Stream/endpoint/resource failures shall retain their own state and exception behavior, with no output rollback. The record shall not imply cross-version or different-policy format compatibility.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
Incoming link from: 2. Reloadable box record export1
3. Compatible box record loading and failure state PPL-SPEC-000971 For a complete valid record produced under 🔗 2. Reloadable box record export with compatible status, interval policy, endpoint arithmetic, dimension limits, numeric formatting and locale, ascii_load(s) shall return true and replace the destination by the recorded ambient dimension and mathematical Cartesian value. It shall consume one box record, permitting a following record or suffix to remain in the stream. A previously different destination dimension or value shall not affect a successful result.
Status-field parsing and its outcomes shall follow 🔗 5. Status ASCII loading and partial rejection state. A missing or incorrect space_dim label, an absent, negative-signed or unsupported dimension, or a rejected or truncated coordinate interval record shall return false when stream extraction returns normally. Coordinate loading shall follow 🔗 5. Compatible interval record loading and partial failure state. A completed record that fails the box invariant check shall return false in every build. Stream exception masks and selected endpoint/resource exceptions shall retain their own propagation rules. A complete admissible dimension shall fit the selected box profile and available resources. Use trusted compatible dumps.
Failure may have replaced status and some coordinate records or discarded the previous coordinate sequence. A false return or exception shall not promise rollback or a complete valid mathematical box value. The object shall retain safely destructible owned resources and may be replaced by assignment from a valid box; callers shall establish a valid replacement before mathematical queries or other operations requiring a valid box. Input already consumed shall not be restored. Successful loading shall not transfer ownership of the input stream.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
4. Owned box memory accounting PPL-SPEC-000972 external_memory_in_bytes() shall report the sum of the owned coordinate sequence's allocated slot storage and the external memory reported by every live interval element. If K coordinate slots are allocated and n elements are live, slot storage shall contribute K * sizeof(ITV); each live element's external storage shall be counted once, including elements in a logically empty box. Inactive logical factors shall not cause owned allocated storage to disappear from the accounting.
total_memory_in_bytes() shall report sizeof(Box<ITV>) plus that external count. Object/slot sizes shall be those of the selected build and interval profile. The result shall exclude allocator bookkeeping and independently owned library temporaries or other objects. Successful calls shall require each selected interval's memory query to be well-formed and the sum to fit memory_size_type. The queries shall preserve the represented value, ambient dimension and owned storage.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
5. Box representation invariant query PPL-SPEC-001220 For a live, well-owned and safely indexable box whose selected interval operations are admitted, OK() shall check the following representation conditions. If a current nonempty cache claim is present, the coordinate product shall have no empty factor. Unless the box is certified empty, every coordinate factor shall pass its selected interval OK() query. A violation of a checked condition shall return false; passing these checks shall return true. Zero-dimensional empty and universe shall both pass. Certified empty boxes may retain inactive coordinate storage; its interval validity shall not be a condition of this query.
The receiver's mathematical value, dimension, owned coordinate storage and cached claims shall remain unchanged. The query may copy the box and query interval emptiness on that temporary. Allocation or interval-operation exceptions may propagate; discarded query temporaries shall release their owned storage. Debug builds may emit a diagnostic for an inconsistent nonempty claim; exact diagnostic wording shall not be part of the result.
The interval admission and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply to the operations used by the query. Diagnostic use may inspect safely owned but inconsistent cache claims or safely queryable invalid factors. It shall not inspect arbitrary damaged pointers, broken lifetimes or non-indexable fabricated storage. A true result shall not certify arbitrary client preconditions, minimum storage, or that the box is nonempty.
-
Incoming links from: 3. Refinement of a floating interval abstract store 3. Box bounded-integer wrapping, overflow choices and guard refinement 1. Single-coordinate affine box image 2. Single-coordinate affine box preimage 3. Generalized single-coordinate box image 4. Generalized single-coordinate box preimage 5. Generalized multi-coordinate box image 6. Generalized multi-coordinate box preimage 7. Bounded affine box image 8. Bounded affine box preimage 9. Interval-coefficient affine box image 1. Threshold box widening and finite stabilization 4. Box narrowing with complete previous-boundary retention 5. Threshold-aware CC76 box convergence certificates 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 1. Dimension-preserving box coordinate forgetting 2. Unrestricted and zero-fixed box coordinate extension 3. Ordered Cartesian box concatenation 4. Selected-coordinate box projection and compaction 5. Trailing-coordinate box projection 6. Injective partial box coordinate remapping 7. Box coordinate expansion and replica precision 8. Box coordinate folding and interval enclosure 4. Box endpoint-distance domain, workspaces and dispatch 1. Exact topological closure of boxes 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 1. Addition of optimally supported box constraints 2. Addition of optimally supported box congruences 3. Conservative box refinement by linear constraints 4. Conservative box refinement by linear congruences 5. Controlled box constraint propagation 1. Exact extraction of individual box boundaries 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 4. Detection of constant affine values and zero frequency 1. Box relations with linear constraints 2. Box relations with linear congruences 3. Box subsumption of geometric generators 4. Cartesian box intersection 5. Least same-profile box upper bound 6. Conditional exact union of boxes 7. Same-profile abstract box difference 8. Context-preserving box simplification 1. Human-readable box presentation 2. Reloadable box record export 3. Compatible box record loading and failure state 4. Owned box memory accounting 5. Box representation invariant query 2. Dimensioned empty and universe box construction 3. Owned box copying, assignment and cleanup 4. Upward box conversion between interval profiles 5. Whole box exchange across different dimensions 6. Ambient and affine box dimension queries 7. Empty-aware borrowed coordinate interval access 8. Explicit coordinate factor replacement 9. Exact ordinary box classification 10. Box set relations, dimension-sensitive equality and compatible hashes 4. Refinement of a floating interval abstract store66
1. Cartesian box values, coordinate identity and valid use PPL-SPEC-000951 Box<ITV> shall represent a Cartesian product of its coordinate intervals over the ordinary real carrier. A point shall belong exactly when each coordinate belongs to its corresponding factor; distinct coordinates shall impose no additional relationships. An empty factor shall make the product empty. The ambient dimension shall remain part of the value even for an empty box. In dimension zero, universe shall contain the unique empty tuple and shall differ from empty. interval_type shall name ITV; Rational_Box shall select Rational_Interval factors.
Selected interval operations shall be well-formed and their information policy shall admit the required empty, universe and endpoint values. Active numerical payloads shall be initialized and rational payloads canonical. Clients shall retain the selected endpoint operation's finite-range, resource, shared-temporary and caller-owned FPU prerequisites. Basic construction, copying, exchange and valid-coordinate factor access shall require no additional PPL initialization. Reporting dimension-incompatible coordinate arguments shall retain an initialized library/thread context under 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization, including the live coefficient constants used by that reporting path. Other APIs using separately initialized descriptors or facilities shall retain their own prerequisites.
Boxes and borrowed arguments shall remain live throughout a call. Access shall be synchronized against mutation; logically const queries may update cached information and shall be synchronized where those updates could overlap. Cached status shall not change the represented product. Empty boxes may retain inactive coordinate storage; clients shall use the public empty-aware coordinate access contract rather than infer meaningful factors from internal empty storage.
-
2. Dimensioned empty and universe box construction PPL-SPEC-000952 Box(d,kind) shall construct a box of ambient dimension d: empty for EMPTY and the complete declared Cartesian carrier for UNIVERSE. Default construction shall give zero-dimensional universe. Each active universe factor shall have the selected interval's universe meaning; custom interval/information constructors shall retain their per-element state rather than be required to share copied identity.
max_space_dimension() shall return the dimension limit of this box profile. Construction above that limit shall throw std::length_error before attempting coordinate storage of that size. Dimensions within the limit shall remain subject to actual allocation/resource availability; the reported limit shall not promise successful allocation. Construction shall not require interpreting inactive interval payloads of an empty box.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
Incoming links from: 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products8
3. Owned box copying, assignment and cleanup PPL-SPEC-000953 Same-profile copying shall preserve ambient dimension and represented set while independently owning all mutable coordinate/metadata storage. The copy constructor's complexity argument shall not change that result. Assignment shall replace the receiving value even when dimensions differ and shall return the receiving object; self-assignment shall preserve its value. Destruction shall release owned resources without modifying other live values.
On successful return, subsequent mutation or destruction of either owner shall not change the other owner's represented value. Empty and lazy cached states shall retain correct mathematical meaning after copying/assignment.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
Incoming links from: 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products8
4. Upward box conversion between interval profiles PPL-SPEC-000954 Construction from Box<Other_ITV> shall preserve ambient dimension and enclose every source point under the receiving interval policies. An established empty source shall give empty. For other sources the conversion shall use receiving coordinate enclosures rather than trust cached facts whose validity can change through endpoint conversion. With exactly representable endpoints and supported membership, it shall preserve the represented set exactly. Otherwise endpoint conversion or relaxed openness may enlarge the product. The complexity argument shall not change this profile-conversion result. The separate source shall remain unchanged and the receiving value shall own independent coordinate storage.
Selected source/destination interval assignments shall be well-formed and satisfy their own admitted conversion prerequisites.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
5. Whole box exchange across different dimensions PPL-SPEC-000955 m_swap(y) and free swap(x,y) shall exchange complete box values, including dimensions, coordinate ownership and cached status. Different dimensions and empty/nonempty states shall be permitted. Self-exchange shall preserve the value. References into exchanged coordinate storage shall follow that storage's owner; callers shall not assume a reference continues to identify the original logical coordinate value. Exchange of the standard owned coordinate sequence/status shall not perform per-endpoint numerical conversions or require coefficient range operations.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
6. Ambient and affine box dimension queries PPL-SPEC-000956 space_dimension() shall return the ambient coordinate count, including for empty boxes. affine_dimension() shall return zero for empty boxes; otherwise it shall equal the number of nonsingleton coordinate factors over the ordinary real carrier. Both empty and universe in ambient dimension zero shall therefore have affine dimension zero. These queries shall not change the represented set or ambient dimension.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
Incoming links from: 4. Box endpoint-distance domain, workspaces and dispatch 11. Explicit empty box assignment2
7. Empty-aware borrowed coordinate interval access PPL-SPEC-000957 get_interval(v) shall return a const interval reference for an existing coordinate. For a nonempty box it shall denote that coordinate's factor. For an empty box it shall denote an empty interval, independently of any inactive internal coordinate payload. Different empty queries may share an internal interval; clients shall not infer distinct ownership or identity from those references.
An out-of-dimension variable shall throw std::invalid_argument before returning a reference, including on an empty box. A reference into an active factor shall require its owning coordinate storage to remain live and free of invalidating owner operations. A shared empty reference shall require its owning library/thread context to remain live. Clients shall not mutate through these const views.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
8. Explicit coordinate factor replacement PPL-SPEC-000958 For a nonempty box, set_interval(v,i) shall replace only the selected factor with the supplied interval's entry value, retaining ambient dimension and the other factors. A resulting empty factor shall make the box empty. The source interval shall remain unchanged; borrowing the same or another active factor as the source shall be permitted without changing its entry value during replacement.
For a one-dimensional empty box, replacing its sole factor shall establish that supplied one-dimensional interval, which may make the box nonempty. For an already empty box of dimension at least two, replacing one factor shall retain the empty box. An out-of-dimension variable shall throw std::invalid_argument without replacing factors. The operation shall update emptiness knowledge as needed so later queries reflect the resulting product.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
Incoming link from: 11. Explicit empty box assignment1
9. Exact ordinary box classification PPL-SPEC-000959 The following Boolean queries shall report exact properties of the represented ordinary real Cartesian set. is_empty() shall decide emptiness and is_universe() equality with the ambient universe. is_topologically_closed() shall decide topological closure; is_bounded() shall decide boundedness; is_discrete() shall be true exactly for empty boxes or products of singleton factors. contains_integer_point() shall be true exactly when the product contains an integer-coordinate point. In dimension zero the universe shall be nonempty, closed, bounded, discrete and contain the empty integer tuple; empty shall be closed, bounded, discrete and contain no integer point.
constrains(v) shall be true for empty boxes and, for a nonempty box, exactly when that coordinate's factor differs from universe. A variable outside the ambient dimension shall throw std::invalid_argument. Queries may establish cached facts without changing the mathematical set.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
10. Box set relations, dimension-sensitive equality and compatible hashes PPL-SPEC-000960 For equal ambient dimensions, contains(y) shall decide Y ⊆ X, strictly_contains(y) proper inclusion and is_disjoint_from(y) empty intersection. Empty sets and zero-dimensional sets shall follow their ordinary set meanings. These methods shall throw std::invalid_argument when ambient dimensions differ, including for empty operands.
Free equality shall be true exactly for boxes with equal dimensions and equal represented sets; different dimensions shall compare unequal without a dimension exception. Free inequality shall negate equality. Equal boxes shall have equal hash_code() values; collisions between unequal boxes shall be permitted. Relations and hashing shall leave mathematical values unchanged and shall not depend on distinct cached evaluation histories.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
-
11. Explicit empty box assignment PPL-SPEC-001221 set_empty() shall replace the receiver's entry set X ⊆ Rn by ⌀ ⊆ Rn. It shall preserve the ambient dimension and shall be idempotent, including in dimension zero. Subsequent empty-aware queries and coordinate access shall observe the empty value under 🔗 7. Empty-aware borrowed coordinate interval access and 🔗 9. Exact ordinary box classification.
The operation shall retain the owned coordinate storage and the stored interval objects. Those factors shall become inactive; it shall not need to assign an empty value to each factor or query their numerical payloads. Borrowed references to retained factors shall retain their storage lifetime, but shall not independently denote the current box's factors while the box is empty. Independent copies shall remain unchanged.
The receiver shall have safely owned coordinate storage and externally synchronized access. The operation shall require no numerical arithmetic, no additional PPL initialization, no allocation and no interval-profile callback, and shall not change hardware rounding state.
-
Incoming links from: 2. Same-policy checked binary arithmetic values 2. Same-policy checked binary arithmetic values 3. Mixed operand conversion before checked arithmetic 3. Mixed operand conversion before checked arithmetic 3. Mixed operand conversion before checked arithmetic 3. Mixed operand conversion before checked arithmetic 4. Checked unary signs and prefix increment or decrement 4. Checked unary signs and prefix increment or decrement 5. Checked postfix increment and decrement entry snapshots 6. Remainder with a policy-admitted infinite divisor10
1. Same-storage checked compound arithmetic PPL-SPEC-000903 Let N be Checked_Number<T, Policy>, where T is one of the eleven native integer types, mpz_class, mpq_class or a configured supported native floating format. The entry destination and right operand shall be finite admitted values, except for the infinite-divisor remainder case of 🔗 6. Remainder with a policy-admitted infinite divisor. For a raw T right operand or a Checked_Number<T, Other_Policy> right operand, the compound operators +=, -=, *=, /= and %= shall apply, respectively, add_assign_r, sub_assign_r, mul_assign_r, div_assign_r and rem_assign_r to the destination and the right operand's entry values.
The supplied direction shall be Policy::ROUND_DEFAULT_OPERATOR. The resulting numerical Result shall be delivered exactly once to Policy::handle_result, after the numerical operation. These same-storage forms shall require no constructor default and shall perform no numerical conversion of the right operand. A distinct checked source's policy handler and defaults shall not be consulted. If the destination handler returns, each operator shall return a reference to the destination.
Numerical values, result classes/relations, range outcomes and the corresponding domain, resource, alias and rounding prerequisites shall follow the underlying scalar operations:
- Native integers: 🔗 1. Exact same-storage native integer arithmetic, 🔗 2. Directed native integer division and delegated truncation, 🔗 3. Exact native truncated quotient and remainder and 🔗 4. Checked native arithmetic range outcomes.
- Unbounded integers: 🔗 1. Exact named arithmetic on unbounded integer storage, 🔗 3. Directed unbounded integer division and explicit delegated convention and 🔗 4. Exact truncated unbounded integer quotient and remainder.
- Canonical rationals: 🔗 3. Exact finite rational addition, subtraction, multiplication and division and 🔗 5. Truncated rational quotient and signed rational remainder.
- Native floating values: 🔗 1. Finite native floating-point addition and subtraction, 🔗 2. Finite native floating-point multiplication, 🔗 3. Finite native floating-point division by a nonzero value, 🔗 4. Rounding, result classes and state for finite native binary arithmetic and 🔗 2. Exact truncating remainder of finite native floating values.
In particular, division/remainder shall require a nonzero divisor; unchecked bounded use and exactness requests shall meet their stated representability conditions. The direction selected by the policy shall be admitted for the operation. Native floating directed/strict arithmetic shall satisfy its upward hardware-direction/backend-setup prerequisite. Shared rational remainder temporaries shall satisfy their synchronization condition. No coefficient-constant initialization shall be required by the wrapper.
The right operand may share destination storage, including through its raw reference, and each mathematical occurrence shall use its entry value. A distinct source shall remain unchanged. A handler exception shall propagate, leaving the destination live and reusable; its old payload need not be retained. Handler acceptance of an unsupported numerical outcome shall not promise a represented answer; an unspecified payload shall not be inspected before valid reuse. Object lifetime and access overlapping mutation shall follow 🔗 1. Finite checked scalar storage and copying. Hardware direction and exception-status effects shall follow the underlying numerical operation.
-
Incoming link from: 4. Checked unary signs and prefix increment or decrement1
2. Same-policy checked binary arithmetic values PPL-SPEC-000904 For two finite N = Checked_Number<T, Policy> operands admitted by 🔗 1. Same-storage checked compound arithmetic, binary +, -, *, / and % shall produce a new N with the result of their corresponding numerical operation on the two entry values, in the written operand order. Both operands may be the same object and shall remain unchanged. The result shall own storage independent of both operands.
The arithmetic direction shall be Policy::ROUND_DEFAULT_OPERATOR and its numerical Result shall be delivered exactly once to Policy::handle_result. No constructor rounding default or conversion handler call shall be required merely to form or return the result. Elision or copying on return shall not change the numerical-handler count. If the handler throws, its exception shall propagate and no result object shall be delivered; the source operands shall remain unchanged.
Numerical outcome meanings, admissibility, hardware/resource prerequisites and accepted unsupported-result reuse shall follow 🔗 1. Same-storage checked compound arithmetic. Available resources shall suffice for the result object and underlying operation. The returned object shall be live, assignable and destructible.
-
3. Mixed operand conversion before checked arithmetic PPL-SPEC-000905 For a checked N = Checked_Number<T, Policy> operand, a raw native operand of scalar type S shall first be converted into an N using Policy::ROUND_DEFAULT_CONSTRUCTOR. The native families here shall be the PPL Is_Native scalar families in 🔗 1. Same-storage checked compound arithmetic, with configured availability for floating formats. Binary +, -, *, / and % shall then apply their numerical operation using Policy::ROUND_DEFAULT_OPERATOR, preserving the written operand order. The result type shall be N. This conversion shall occur even when S and T are the same type.
A compound operator on N with a raw or checked right operand of a different underlying scalar type S shall likewise first construct an N temporary from the right operand using the constructor default, then operate on the destination's entry value and that converted value using the operator default. The returned reference shall identify the destination. Same-storage direct compound forms shall retain 🔗 1. Same-storage checked compound arithmetic.
The constructor-conversion Result shall be delivered first to Policy::handle_result. If the handler returns, the arithmetic Result shall then be delivered once to that handler. Each completed stage shall contribute one call, in that order. The conversion and arithmetic may use different directions and classifications. Neither stage shall dispatch a checked source's own policy handler. The source and conversion prerequisites of 🔗 2. Finite checked scalar converting construction and assignment shall apply. If the conversion handler returns, its converted value shall be finite and meet the chosen arithmetic's operand preconditions; unsupported conversion payloads shall not be admitted as further numerical operands.
A conversion-handler exception shall stop before arithmetic. A compound destination shall then retain its entry value. An arithmetic-handler exception may follow destination mutation, with the live/reusable guarantee of 🔗 1. Same-storage checked compound arithmetic. Free binary operators shall preserve their original source operands in either case. Numerical answers shall describe the converted operand, rather than presume exact preservation of an inexactly converted source. Underlying result semantics, lifetime, resources, rounding/backend setup and synchronization prerequisites shall follow 🔗 1. Same-storage checked compound arithmetic.
-
Incoming link from: 5. Checked postfix increment and decrement entry snapshots1
4. Checked unary signs and prefix increment or decrement PPL-SPEC-000906 For finite N = Checked_Number<T, Policy> values admitted by 🔗 1. Same-storage checked compound arithmetic, unary + shall return an independent copy with the same value, including a native floating zero's sign. It shall consult no rounding default and invoke no policy handler.
Unary - shall return a new N whose value and numerical outcome follow neg_assign_r with Policy::ROUND_DEFAULT_OPERATOR. Its source shall remain unchanged. Native integer, unbounded integer, rational and native floating meanings shall follow 🔗 2. Native integer negation and absolute value, 🔗 1. Exact named arithmetic on unbounded integer storage, 🔗 4. Rational sign assignments and integral-valued rounding operations and 🔗 2. Exact finite native floating-point negation and absolute value, respectively.
Prefix ++ and -- shall apply add_assign_r or sub_assign_r to the destination's entry value and mathematical one, using the operator default. After handler acceptance they shall return a reference to the modified destination. Unary minus and each prefix operation shall deliver its numerical Result exactly once to Policy::handle_result and shall require no constructor default or extra conversion-handler call.
Domain/range, admitted directions, synchronization, resources and numerical backend/rounding prerequisites shall follow the corresponding operation and 🔗 1. Same-storage checked compound arithmetic. A handler exception shall propagate; prefix destinations shall remain live and reusable without a rollback promise. Unary result ownership and throwing-handler source preservation shall follow 🔗 2. Same-policy checked binary arithmetic values.
-
5. Checked postfix increment and decrement entry snapshots PPL-SPEC-001195 For a finite admitted entry value of N = Checked_Number<T, Policy>, postfix ++ and -- shall first obtain an independently owned same-type snapshot of that entry value. The snapshot shall preserve the finite value, including a native floating zero's sign, with the copying meaning of 🔗 1. Finite checked scalar storage and copying.
The numerical update shall apply add_assign_r or sub_assign_r, respectively, to the entry receiver and mathematical one, using Policy::ROUND_DEFAULT_OPERATOR. The operation shall deliver its numerical Result exactly once to Policy::handle_result. If the handler returns and construction of the returned value completes, the operator shall return the owned entry snapshot. Subsequent modification or destruction of either object shall not change or invalidate the other. Obtaining and returning the snapshot shall require no constructor rounding default and shall invoke no policy conversion handler.
The scalar families, policy capabilities, admitted directions, arithmetic and range meanings, resource and synchronization conditions, and numerical backend/FPU prerequisites shall follow 🔗 1. Same-storage checked compound arithmetic and the corresponding prefix update in 🔗 4. Checked unary signs and prefix increment or decrement. Canonical rational entry storage shall have a positive denominator. Handler acceptance of an unsupported numerical outcome shall not promise a represented receiver answer; an unspecified receiver payload shall not be inspected before valid reuse.
If construction of the entry snapshot fails, the receiver's entry value shall be preserved. An arithmetic or handler exception shall propagate, leaving the receiver live and reusable; its entry value need not be preserved. A failure while constructing the returned value after the numerical update shall not require receiver rollback. Hardware direction and exception-status effects shall follow the underlying arithmetic operation; the snapshot itself shall require no additional FPU setup or library initialization.
-
6. Remainder with a policy-admitted infinite divisor PPL-SPEC-001654 For a supported same-storage remainder backend, the dividend shall denote a finite value a under its own source policy and the divisor shall represent either signed infinity admitted by its own source policy. The value a shall be representable as finite under the destination policy. Storage shall be a supported native integer, mpz_class, mpq_class or configured native floating type; an infinity unavailable for the selected storage/policy shall not be supplied.
rem_assign_r(to, x, y, dir) shall store the exact entry value a and return V_EQ for either infinity sign and every admitted rounding request, including ROUND_NOT_NEEDED and ROUND_STRICT_RELATION. Each source shall be classified using its own policy. Distinct source objects not sharing destination storage shall remain unchanged. The output may alias either source through an admitted same-storage interface; the operation shall use the mathematical entry values under the source policies. The named call shall not invoke a result handler or require a rounding default.
The corresponding same-storage operator%= shall retain the operator rounding default, destination-reference result and single destination-handler dispatch of 🔗 1. Same-storage checked compound arithmetic. It shall require no source-policy handler or implicit source conversion. Finite-divisor behavior shall retain the selected scalar backend's contract.
Objects and special representations shall be live and admitted by their policies. Finite rational operands shall be canonical with positive denominator; an admitted PPL infinite representation shall follow 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage or 🔗 4. Typed special-value assignment to native floating-point storage. The scalar backend's resource, synchronization, initialization and hardware prerequisites shall apply. Calls shall preserve hardware direction. No behavior for an infinite dividend or NaN operand shall be inferred from this contract.
-
Incoming link from: 3. Finite Bezout domain and nonfinite operand rejection1
1. Extended greatest common divisor and least common multiple PPL-SPEC-001660 For admitted argument types, gcd_assign_r and lcm_assign_r shall interpret each source's specials according to that source's own policy. A source-policy NaN shall take precedence over infinity and shall request NaN assignment through the destination policy.
For non-NaN inputs, magnitudes shall use the nonnegative-integer divisibility order with one additional greatest element ∞, above zero as well as positive integers. The signs of infinities shall not affect these divisor operations. With either source infinite, the gcd shall be the other source's magnitude; two infinities shall give positive infinity. With either source infinite, the lcm shall be positive infinity, including when the other source is zero.
These mathematical values shall be independent of destination representability. Computing the selected absolute value or special-value assignment shall retain that operation's destination-policy range checks, rounding and result code. An unsupported NaN shall return a NaN-class result with V_UNREPRESENTABLE and no destination-value promise. An unsupported positive infinity shall retain the selected special-assignment outcome, including any directed finite bound. Finite-input gcd/lcm shall retain 🔗 2. Native integer greatest common divisor and least common multiple for native integers and 🔗 1. Exact unbounded integer greatest common divisor and least common multiple for unbounded integers; floating storage shall require finite integral operands and representable Euclidean intermediates.
All arguments shall have the same admitted raw storage type: a standard native integer, mpz_class, or a supported native floating-point type. Each argument may be raw or use an admitted Checked_Number policy. The destination may alias either source, and the sources may be the same object. Every source value shall mean its entry value; distinct sources shall retain their values. Live storage, supported numerical operations, sufficient resources and synchronization shall be required. Calls shall use an admitted rounding request and shall invoke no result handler. ROUND_NOT_NEEDED shall require an exact representable result and admitted intermediates. No coefficient-profile limit shall replace the selected scalar storage's own range and resource conditions.
-
2. Floating storage for exact integral Bezout computation PPL-SPEC-001661 For supported native floating storage F and finite integral source entry values x, y, gcdext_assign_r shall assign a nonnegative gcd g and integral coefficients s, t satisfying xs + yt = g. Two zero sources shall give zero. No particular coefficient pair shall be required.
Sources, their absolute values, conversions, mathematical Euclidean integer quotients, remainders, and every evaluated coefficient product, difference and sign restoration shall be finite and exactly representable in the selected storage. A noninteger rounded division temporary may be used to derive the exact integer quotient. The requested result shall be V_EQ for admitted ordinary and strict requests, including ROUND_NOT_NEEDED.
All five arguments shall have the same raw type F, either raw or wrapped in admitted checked policies; the finite inputs shall be admitted by their source policies. The three outputs shall be live, independent and distinct from both sources. Sources may share an object and shall retain their values. The configured floating-rounding protocol and nontrapping arithmetic environment shall be in force, available resources shall suffice, and objects shall be synchronized. The hardware rounding direction shall be preserved. No rounding default or result handler shall be required or invoked.
-
3. Finite Bezout domain and nonfinite operand rejection PPL-SPEC-001662 For admitted same-raw-storage argument combinations, gcdext_assign_r shall recognize each source's NaN and infinities using that source's own policy before updating the coefficient outputs. With any such nonfinite operand, it shall request NaN assignment to g through the gcd output's policy and leave s and t unchanged. This shall include either infinity sign, two infinite operands and NaN/infinity combinations. No generalized Bezout identity shall be asserted for infinite operands.
A destination policy admitting NaN shall produce its NaN representation and return V_NAN. Otherwise the result shall be V_NAN | V_UNREPRESENTABLE with no value promise for g. Rejection shall apply to supported ordinary rounding requests and their strict-relation forms; ROUND_NOT_NEEDED shall require admitted finite input and an exact representable computation.
Finite inputs shall retain 🔗 1. Bounded native integer Bezout assignment for native integers and 🔗 2. Exact unbounded integer Bezout coefficients for unbounded integers. Supported floating storage shall require finite integral source values and exact representable conversions and Euclidean coefficient intermediates. A successful result shall have nonnegative g and coefficients satisfying xs + yt = g, without requiring a particular coefficient pair. The extended gcd/lcm convention in 🔗 1. Extended greatest common divisor and least common multiple shall not expand this finite Bezout domain.
The raw storage shall be a supported native integer, mpz_class or native floating-point type, shared by all five arguments. Arguments may be raw or use admitted checked policies. All three outputs shall be live, pairwise distinct and separate from both sources. Sources may be the same object and shall retain their entry values. Objects shall be synchronized and resources sufficient. The operation shall require no rounding default or result handler and shall invoke no handler; named assignment shall retain the single-handler protocol in 🔗 3. Checked integral divisor functions and Bezout outputs. Surviving outputs shall remain live and reassignable after rejection, without a rollback promise for g.
-
1. Conversion of policy-admitted scalar special values PPL-SPEC-001710 assign_r and value construction from a scalar source shall classify an admitted source NaN or signed infinity under that source's policy and request the corresponding destination special assignment. Infinity shall retain its sign and the requested direction; NaN shall use ROUND_IGNORE. Finite sources shall retain their ordinary conversion contracts, including finite source endpoint values that another policy would reserve as special.
For native floating-to-floating NaN assignment, this guarantee shall require the destination's check_fpu_nan_result capability. For a cross-policy checked constructor or assignment, conversion and handler dispatch shall follow 🔗 1. Operation-specific numerical policy capabilities and 🔗 2. Finite checked scalar converting construction and assignment; accepting a result in a handler shall not make an unsupported payload representable. Same-type copies shall retain 🔗 1. Same-type checked copying of admitted special values. Placement construction shall complete exactly one underlying object, retaining the ownership and failure rules of 🔗 7. Raw scalar placement construction and exact assignment.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
2. Unary and binary-scale transformations of scalar special values PPL-SPEC-001711 For non-native scalar encodings, floor_assign_r, ceil_assign_r and trunc_assign_r shall propagate an admitted signed infinity unchanged. neg_assign_r shall reverse its sign and abs_assign_r shall select positive infinity. Each shall propagate an admitted source NaN through NaN assignment. The four power-of-two transformations add_2exp_assign_r, sub_2exp_assign_r, mul_2exp_assign_r and div_2exp_assign_r shall preserve either infinity sign and propagate NaN. These special branches shall not evaluate a finite power or finite arithmetic intermediate.
For a supported native floating type, the same mathematical special values shall be retained by its unary and power-of-two operations. NaN diagnosis as V_NAN shall require check_fpu_nan_result; no NaN payload or sign shall be prescribed. Successful native infinity transformations may retain lazy result classification; classification of the stored value shall still identify the correct infinity. Native exponent admission and FPU state shall retain the corresponding finite operation's prerequisites.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
3. Extended scalar binary arithmetic and enabled fault diagnosis PPL-SPEC-001712 For non-native special encodings, an admitted source NaN shall request NaN assignment before binary arithmetic. Addition or subtraction with an infinite operand shall select the extended-real sign, except that opposite infinities added with check_inf_add_inf enabled shall diagnose V_INF_ADD_INF and equal infinities subtracted with check_inf_sub_inf enabled shall diagnose V_INF_SUB_INF. An infinite product with a nonzero partner shall use the product of the operand signs. Infinity times zero shall require check_inf_mul_zero and diagnose V_INF_MUL_ZERO.
For div_assign_r and idiv_assign_r, finite input divided by either admitted infinity shall give exact zero. Infinity divided by a finite nonzero value shall give the signed infinity. With the corresponding check enabled, infinity divided by infinity shall diagnose V_INF_DIV_INF and a zero divisor shall diagnose V_DIV_ZERO. Finite nonzero division and truncated quotient conventions shall remain separate contracts.
Supported native floating arithmetic shall obey the same defined extended mathematical values and enabled operation-specific causes. When check_fpu_nan_result is enabled, a resulting NaN not already diagnosed by an enabled cause check shall return V_NAN. Native result codes may retain lazy infinity classification. With several simultaneous invalid conditions, no common diagnostic priority across scalar backends shall be required; the result shall be NaN-class. For nontrapping IEEE native floating storage with check_div_zero disabled, an integral quotient of a finite nonzero numerator by signed zero shall be the infinity whose sign is the exclusive-or of the source signs. No native integer division by zero shall be inferred from this floating convention. A transparent IEEE native integral quotient with NaN operands, infinity/infinity or zero/zero shall propagate a NaN payload without promising an ordered result relation.
An operation-specific diagnosed cause shall be passed through destination NaN assignment, preserving the cause and any V_UNREPRESENTABLE flag.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
4. Nonfinite remainder operands and enabled modulus faults PPL-SPEC-001713 For non-native encodings, rem_assign_r shall propagate a source-policy NaN from either operand before modulus checks. With check_inf_mod enabled, an infinite dividend shall diagnose V_INF_MOD. With check_div_zero enabled, finite remainder by zero shall diagnose V_MOD_ZERO. A finite dividend and admitted infinite divisor shall retain 🔗 6. Remainder with a policy-admitted infinite divisor.
smod_2exp_assign_r and umod_2exp_assign_r shall propagate a source-policy NaN; an infinite source with check_inf_mod enabled shall diagnose V_INF_MOD. Finite signed/unsigned residue conventions and exponent admission shall retain their scalar contracts.
The native floating implementations shall diagnose the same enabled infinity and zero-divisor causes. With check_fpu_nan_result enabled, an otherwise undiagnosed NaN result shall be V_NAN. A NaN combined with another fault need not have the same diagnostic priority as a non-native encoding. Cause results shall use destination NaN assignment and retain any V_UNREPRESENTABLE flag.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
5. Extended accumulated products and enabled fault diagnosis PPL-SPEC-001714 add_mul_assign_r and sub_mul_assign_r shall use the accumulator's entry value and both factor entry values. With non-native special encodings, a NaN admitted by any of their own policies shall request NaN assignment. Otherwise determine the product sign from the factors, reverse that contribution for subtraction and combine it with the entry accumulator. A determined infinity shall be assigned through the destination policy. Entirely finite operands shall retain their scalar accumulation contract.
Infinity times zero shall require check_inf_mul_zero and diagnose V_INF_MUL_ZERO. Adding opposing accumulator/product infinities with check_inf_add_inf shall diagnose V_INF_ADD_INF; subtracting equal accumulator/product infinities with check_inf_sub_inf shall diagnose V_INF_SUB_INF. A native floating implementation shall retain these enabled causes and, with check_fpu_nan_result, diagnose an otherwise undetected NaN result as V_NAN. Multiple simultaneous faults shall not require one diagnostic priority across backends. Cause results shall use destination NaN assignment and retain any V_UNREPRESENTABLE flag.
These special cases shall not change the fused/nonfused finite precision choice specified by 🔗 3. Configured native accumulation precision and truthful result relations. The accumulator shall be interpreted under its own policy, not a factor's policy.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
6. Square-root special values and enabled negative-input diagnosis PPL-SPEC-001715 For a non-native admitted special encoding, sqrt_assign_r shall propagate a source NaN, assign positive infinity for positive infinity and diagnose negative infinity as V_SQRT_NEG through destination NaN assignment. A finite negative operand with check_sqrt_neg enabled shall diagnose V_SQRT_NEG. Disabling that finite-domain check shall retain the selected finite kernel's precondition.
A supported native floating implementation with check_fpu_nan_result shall propagate source NaN as V_NAN; with check_sqrt_neg it shall diagnose negative values, including negative infinity, as V_SQRT_NEG. Positive infinity shall remain positive infinity; its result relation may retain the native kernel's lazy information. NaN payload/sign shall not be prescribed. Finite nonnegative roots, signed zero, directed result relations and rational irrational-precision ownership shall retain their separate contracts.
Arguments shall use a supported raw scalar type or an admitted Checked_Number instantiation, with well-formed selected operations and live storage. A source's own policy shall interpret its reserved encodings; an encoding reserved only by another policy shall retain its source-policy meaning. Finite rational operands shall be canonical. Resources, synchronization, shared temporaries and caller-owned FPU state shall satisfy the corresponding finite scalar contract. Native floating exceptions shall be nontrapping. Signalling NaNs shall be outside this contract.
Special assignment shall retain the destination-policy outcomes of 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 4. Typed special-value assignment to native floating-point storage, including directed finite saturation or V_UNREPRESENTABLE when the requested class is unsupported. An unrepresentable or NaN-class result shall not license inspecting an unspecified payload; a supported NaN shall remain queryable through the PPL classification interface. The destination shall remain reusable. No strong rollback guarantee shall be implied.
The named result-returning interfaces shall invoke no result handler. Their admitted convenience wrappers shall use the defaults and handlers specified by 🔗 1. Operation-specific numerical policy capabilities. Supported output aliases shall use entry values; distinct sources shall remain unchanged. ROUND_NOT_NEEDED shall require an admitted exact result and shall not be used for NaN or an invalid operation. Disabling a diagnostic check shall not expand a native integer or GMP operation's admitted domain. Finite arithmetic and range outcomes shall retain their separate contracts.
-
Incoming links from: 2. Checked named remainder and exact quotient 2. Checked named remainder and exact quotient 4. Checked named product accumulation 4. Checked named product accumulation 5. Checked named scaling by powers of two 5. Checked named scaling by powers of two 6. Checked named nonnegative square root 6. Checked named nonnegative square root8
1. Checked named unary functions and function policy PPL-SPEC-000907 Let N be Checked_Number<T, Policy> for a native integer type, mpz_class, mpq_class or a configured supported native floating format. For finite admitted entry values, floor_assign, ceil_assign, trunc_assign, neg_assign and abs_assign shall apply their corresponding _r numerical operation with Policy::ROUND_DEFAULT_FUNCTION. The one-argument form shall use the destination's own entry value; the two-argument form shall use the source's entry value and may have identical source and destination storage.
Each completed numerical operation shall deliver its Result exactly once to Policy::handle_result. The functions shall return void. No constructor or operator rounding default, implicit scalar conversion or extra conversion-handler decision shall be required. A handler exception shall propagate; the destination shall remain live and reusable, without requiring preservation of its previous payload. A distinct source shall remain unchanged.
Numerical values, result relations/classes, finite-range outcomes and operation-specific admitted directions shall follow 🔗 1. Native integer floor, ceiling and truncation identity, 🔗 2. Native integer negation and absolute value, 🔗 1. Exact named arithmetic on unbounded integer storage, 🔗 4. Rational sign assignments and integral-valued rounding operations, 🔗 1. Finite native floating-point floor, ceiling and truncation and 🔗 2. Exact finite native floating-point negation and absolute value, for their respective scalar families and operations. In particular, a floor/ceiling/truncation status shall describe the specified transformed result rather than assert that the original nonintegral source was unchanged.
Lifetimes, synchronization, resources, admitted numerical policies and required backend/hardware setup shall follow the underlying operation. No coefficient-constant initialization shall be required by these wrappers. An unsupported accepted result shall not promise a represented numerical payload; such storage shall be validly reassigned before numerical use.
-
2. Checked named remainder and exact quotient PPL-SPEC-000908 For the finite same-type, same-policy N scalar families in 🔗 1. Checked named unary functions and function policy, rem_assign(x, y, z) shall apply rem_assign_r(x, y, z, Policy::ROUND_DEFAULT_FUNCTION). exact_div_assign(x, y, z) shall apply division with ROUND_NOT_NEEDED independently of all policy rounding defaults. Each function shall return void and deliver the numerical Result exactly once to the destination policy's handler, after the operation. Exact division shall require a handler but no function, constructor or operator rounding default.
Division/remainder shall require a nonzero divisor. Remainder shall use the truncated-quotient convention and numerical outcome contract in 🔗 3. Exact native truncated quotient and remainder, 🔗 4. Exact truncated unbounded integer quotient and remainder, 🔗 5. Truncated rational quotient and signed rational remainder or 🔗 2. Exact truncating remainder of finite native floating values. Exact quotient admissibility and results shall follow the exactness request for 🔗 2. Directed native integer division and delegated truncation, 🔗 3. Directed unbounded integer division and explicit delegated convention, 🔗 3. Exact finite rational addition, subtraction, multiplication and division or 🔗 3. Finite native floating-point division by a nonzero value, respectively. For native-integer or mpz_class storage, exact division shall require mathematical divisibility. Bounded checked range outcomes shall retain 🔗 3. Coefficient remainder assignment and exact division and 🔗 4. Checked native arithmetic range outcomes; a handler-returning unsupported outcome shall not permit use of an unspecified payload.
The destination may be either source; every mathematical occurrence shall use its entry value. Distinct sources shall remain unchanged. The handler exception, surviving destination, object, resource, synchronization and backend/hardware conditions of 🔗 1. Checked named unary functions and function policy shall apply, including serialization of any shared rational remainder temporaries.
-
Incoming link from: 3. Finite Bezout domain and nonfinite operand rejection1
3. Checked integral divisor functions and Bezout outputs PPL-SPEC-000909 For N = Checked_Number<T, Policy> with native integer or mpz_class storage, gcd_assign, lcm_assign and gcdext_assign shall invoke their corresponding _r operation using Policy::ROUND_DEFAULT_FUNCTION. The result shall be delivered exactly once to that policy's handler, after all numerical output updates, and the wrapper shall return void. No constructor or operator default, implicit conversion or separate output-policy handler call shall be required.
Native gcd/lcm and their checked finite-range outcomes shall follow 🔗 2. Native integer greatest common divisor and least common multiple; native Bezout output/intermediate representability and output/source separation shall follow 🔗 1. Bounded native integer Bezout assignment. Unbounded divisor and Bezout meanings shall follow 🔗 1. Exact unbounded integer greatest common divisor and least common multiple and 🔗 2. Exact unbounded integer Bezout coefficients. All outputs shall be live same-type, same-policy objects. In particular, Bezout outputs shall obey their pairwise separation and source-alias conditions, and no unique coefficient pair beyond the prescribed identity shall be required. Gcd/lcm aliases shall use source entry values.
A distinct source shall remain unchanged. Handler exceptions shall propagate, leaving surviving output objects live and reusable without a rollback promise. Numerical policies, admitted directions, resources, synchronization and initialization independence shall follow the named underlying operation.
-
4. Checked named product accumulation PPL-SPEC-000910 For the finite same-type, same-policy N scalar families in 🔗 1. Checked named unary functions and function policy, add_mul_assign(x, y, z) and sub_mul_assign(x, y, z) shall call their corresponding product- accumulation _r operation using Policy::ROUND_DEFAULT_FUNCTION. The complete returned numerical Result shall be delivered exactly once to the policy handler; the wrapper shall return void. There shall be no extra handler decision for a product intermediate, constructor default or operator default.
The mathematical entry-destination value, all source/destination alias patterns and numerical outcomes shall follow 🔗 1. Native integer accumulated products and intermediate overflow, 🔗 2. Exact unbounded integer product accumulation, 🔗 7. Exact rational product accumulation and subtraction or 🔗 1. Finite native floating addition of an accumulated product, 🔗 2. Finite native floating subtraction of an accumulated product and 🔗 3. Configured native accumulation precision and truthful result relations, for the selected scalar family. In particular, native integral intermediate failure and native floating fused/nonfused precision shall retain their stated contracts; these wrappers shall not promise a stronger single-step numerical algorithm.
Distinct sources shall remain unchanged. Handler exceptions and surviving destinations, lifetimes, supported directions, resources, synchronization and required native floating setup shall follow 🔗 1. Checked named unary functions and function policy and the numerical operation.
-
5. Checked named scaling by powers of two PPL-SPEC-000911 For the finite same-type, same-policy N scalar families in 🔗 1. Checked named unary functions and function policy, mul_2exp_assign(x, y, exp) and div_2exp_assign(x, y, exp) shall call the corresponding _r operation with Policy::ROUND_DEFAULT_FUNCTION and the supplied unsigned int exponent. The numerical Result shall be delivered exactly once to the handler after the operation; the wrapper shall return void and require no constructor or operator rounding default.
Exponent admission, exact multiplication and directed division meanings, range outcomes and represented precision shall follow 🔗 1. Native integer arithmetic with exact powers of two, 🔗 2. Directed native integer division by powers of two, 🔗 5. Unbounded integer arithmetic with powers of two, 🔗 6. Exact rational operations with powers of two and 🔗 2. Finite native multiplication and division by a power of two, for the respective scalar family. The exponent shall not be narrowed or interpreted as a signed exponent.
The destination may be the source, using its entry value. A distinct source shall remain unchanged. Handler exceptions, surviving destination reuse and the object/resource/synchronization/rounding/backend conditions of 🔗 1. Checked named unary functions and function policy and the underlying operation shall apply.
-
6. Checked named nonnegative square root PPL-SPEC-000912 For the finite same-type, same-policy N scalar families in 🔗 1. Checked named unary functions and function policy, with a nonnegative source, sqrt_assign(x, y) shall call sqrt_assign_r using Policy::ROUND_DEFAULT_FUNCTION. It shall deliver the numerical Result exactly once to the handler and return void. No constructor or operator rounding default shall be required.
Native integral, unbounded integral, canonical rational and supported native floating roots shall follow 🔗 1. Directed native integer square-root assignment, 🔗 3. Directed unbounded integer square roots, 🔗 2. Finite rational square root at the selected irrational precision and 🔗 1. Directed and delegated square root of a finite native value, respectively. In particular, rational roots shall use the calling precision and its ownership/synchronization conditions in 🔗 3. Selection and ownership of irrational rational precision; the wrapper shall not select a different precision. Admitted exactness requests shall retain their underlying root prerequisites.
The destination may be the source, using its entry value. A distinct source shall remain unchanged. Handler exceptions, live destination reuse, object/resource/synchronization conditions and required backend/hardware setup shall follow 🔗 1. Checked named unary functions and function policy and the numerical root operation.
-
Incoming links from: 1. Same-storage checked compound arithmetic 5. Checked postfix increment and decrement entry snapshots 2. Finite checked scalar converting construction and assignment 3. Checked scalar storage references and value conversion 5. Checked scalar memory-size inspection 1. Same-type checked copying of admitted special values 1. Checked special-marker construction and policy assignment 12. Certified finite scalar embeddings 1. Finite same-type minimum and maximum assignment9
1. Finite checked scalar storage and copying PPL-SPEC-000556 For T drawn from the eleven standard native integer types, mpz_class, mpq_class or a configured supported native floating format, Checked_Number<T, Policy> shall own one scalar value. Its policy shall admit that scalar's representation and the operations used below. Finite rational storage shall be canonical, with positive denominator.
Native_Number<T> shall have the truth value of Is_Native<T>::value. The default classification shall include the scalar families above and shall exclude bool, wide character types, checked wrappers and cv-qualified or reference types; it shall not strip qualifiers. Existing trait specializations shall continue to determine admission. This numeric classification shall not require Boolean equality or alter symbolic Variable comparisons. Native_Or_Checked_Number<T> shall have the truth value of Is_Native_Or_Checked<T>::value and classify raw scalars or checked wrappers. Its default classification shall exclude marker types and retain the same qualifier and trait-specialization rules. Numeric function templates shall use these classifications as constraints without requiring regular Boolean equality for unrelated symbolic types.
Default construction shall produce finite mathematical zero. Native floating zero shall initially have positive sign. Same-type copy construction and copy assignment shall preserve the source value, including a finite native floating zero's sign. The copied object's storage shall be independent of the source: changing or destroying one shall not change or invalidate the other. Same-object copy assignment shall preserve the value and return a reference to that object. Distinct-object copy assignment shall return a reference to the destination and preserve the source. Copying shall not invoke a policy conversion handler or require a rounding default.
A default-constructed or copied object shall be live, assignable and destructible. Copying shall require sufficient resources for the underlying scalar copy. Sources and existing assignment destinations shall be live; callers shall synchronize access overlapping modification of either object. No library initialization, coefficient constants or FPU rounding setup shall be required.
-
2. Finite checked scalar converting construction and assignment PPL-SPEC-000557 Finite value-converting Checked_Number<T, Policy> constructors shall convert their admitted native, unbounded integer, rational or checked scalar source with the numerical meaning and preconditions of the corresponding assign_r operation. An explicit direction shall select that conversion; a constructor without a direction shall use Policy::ROUND_DEFAULT_CONSTRUCTOR. A C-string constructor shall use the numeric input meaning of 🔗 1. Exact finite numeric token syntax through 🔗 4. Numeric text input into supported native floating destinations, with that explicit or default constructor direction. The string shall point to an accessible null-terminated token.
After conversion returns a Result, construction shall pass it once to Policy::handle_result. On normal handler return, the new object's stored value and any destination-value limitations shall be those of the conversion result. Handler exceptions shall propagate; a constructor that throws shall not produce a usable object. Numerical source objects shall remain unchanged.
Assignment from an admitted source of a different checked type or from a native, unbounded integer or rational source shall use assign_r with Policy::ROUND_DEFAULT_OPERATOR. It shall pass the result once to the handler and, on normal handler return, return a reference to the destination. Same-type copy assignment shall instead follow 🔗 1. Finite checked scalar storage and copying. A handler that throws shall not imply rollback of an assignment; guarantees for the surviving destination shall follow the numerical operation involved.
Required policy members shall follow 🔗 1. Operation-specific numerical policy capabilities. A finite source shall be admissible to its policy and the destination conversion; ROUND_NOT_NEEDED shall retain its exactness and intermediate-operation preconditions. Source lifetimes, resources, synchronization, shared-temporary serialization and any FPU prerequisites shall be those of the corresponding conversion or input contract. No additional library initialization shall be required by the wrapper.
-
3. Checked scalar storage references and value conversion PPL-SPEC-000558 For a live finite Checked_Number<T, Policy> admitted by 🔗 1. Finite checked scalar storage and copying, mutable raw_value() and the corresponding free raw_value shall return references to the same owned T object. Their const overloads shall return const references to that object without copying or changing its value. A reference shall remain associated with the same storage object until its owner is destroyed; changing the owned value shall not rebind it. Callers that modify raw storage shall maintain its representation and policy prerequisites, including canonical rational form.
The conversion shall participate only when Policy::convertible is a constant expression with a true Boolean value. A missing, false or nonconstant flag shall leave default construction and raw access available without advertising this conversion. Policy access granted to the checked class shall remain usable for this decision.
Where conversion is enabled, conversion to T shall return an independent value copy, preserving the finite value and native floating zero sign. Altering that copy shall not alter the checked object. Raw access and this value conversion shall not invoke a result handler or numerical rounding. The policy restrictions of 🔗 1. Operation-specific numerical policy capabilities shall apply to underlying value conversion. No initialization or FPU rounding setup shall be required; callers shall synchronize access overlapping modification of the owner.
-
4. Checked scalar value swap PPL-SPEC-000559 For live Checked_Number<T, Policy> objects with the same scalar type and policy and admitted finite or special values, swap(x, y) shall exchange their stored values, including native floating zero signs and admitted infinity signs. An admitted NaN shall remain NaN; ordered equality shall not be required to compare it with its former value. Policies shall remain the template policies of their respective objects. Same-object swap shall preserve the value. Existing raw references shall continue to refer to their original owned storage objects and shall observe the exchanged values.
Swap shall not perform numerical conversion, consult a rounding default or invoke a result handler. It shall require the scalar's swap resources and representation prerequisites, and shall preserve both objects' assignability and destructibility on successful return. Callers shall synchronize access overlapping modification of either object. No initialized library state or FPU rounding setup shall be required.
-
Incoming link from: 3. Raw scalar memory accounting1
5. Checked scalar memory-size inspection PPL-SPEC-000560 For a live finite checked scalar admitted by 🔗 1. Finite checked scalar storage and copying, external_memory_in_bytes(x) shall report the same memory-size metric as that query applied to the owned scalar x.raw_value(). total_memory_in_bytes(x) shall likewise report the corresponding owned scalar's total-size metric. For native integer and supported native floating storage, external size shall be zero and total size shall be sizeof(T). For GMP integer and rational storage, the metric shall include the owned scalar's allocated limb storage according to the underlying memory queries. It shall describe allocated storage, rather than only significant digits.
Both queries shall preserve the object and any retained raw references and shall neither invoke policy handlers nor perform numerical rounding. Results shall fit memory_size_type. Callers shall synchronize inspection with modification of the inspected object. No library initialization or FPU rounding setup shall be required.
-
6. Complete checked-wrapper placement construction without a handler PPL-SPEC-001197 For an admitted call to the result-returning free construct function with To = Checked_Number<T, Policy>, the destination shall denote suitably aligned storage sufficient for that complete wrapper, with no live complete wrapper occupying it. T shall be an admitted native integer, configured native floating format, mpz_class or mpq_class. A numerical source shall be live and initialized; a typed special marker shall have its existing marker meaning. Source storage shall not overlap the unconstructed destination. The selected source/destination policies, scalar conversion and rounding request shall satisfy their existing numerical, representation, resource, initialization, FPU and synchronization prerequisites.
On normal return, a complete destination wrapper and its owned scalar shall have begun their lifetimes. The wrapper shall admit destruction and subsequent supported assignment. The represented result and returned Result shall have the selected checked conversion or typed-special assignment meaning. A failure or unrepresentable result shall not promise a numerical payload that its result and policy do not otherwise define. The source shall be preserved. The free function shall apply its existing exactness-request translation and result check once, without invoking a policy result handler or requiring a constructor rounding default. Both deduced calls and calls that explicitly specify To and From shall have this meaning.
If conversion throws after an owned class scalar has been initialized, ordinary constructor unwinding shall destroy that scalar. No complete destination wrapper is returned from the failed construction. This rule shall not imply an allocation rollback guarantee for the containing row or a live wrapper that the caller must destroy after a failed constructor. Raw native/GMP construction routes and ordinary public wrapper constructors shall retain their existing contracts; in particular, this no-handler function shall not replace the result handling of an ordinary converting constructor.
-
1. Same-type checked copying of admitted special values PPL-SPEC-000850 For Checked_Number<T, Policy> with an underlying native integer, mpz_class, mpq_class or configured supported native floating type, a source shall contain an infinity or quiet NaN admitted by its policy. Same-type copy construction and copy assignment shall preserve that special value's class and an infinity's sign. They shall require no rounding default, numerical conversion or policy result handler and shall not invoke a handler. Same-object copy assignment shall preserve the value. Both same-object and distinct-object assignment shall return a reference to the destination; a distinct source shall remain unchanged.
Each copied object shall own independently mutable storage. Replacing or destroying the source shall not change or invalidate a copy, and replacing one copy shall not change any other object. A live assignment destination may initially hold a finite or admitted special value. Construction and assignment shall retain normal C++ member/resource cleanup. Available resources shall suffice for underlying scalar copying. Finite copying shall retain 🔗 1. Finite checked scalar storage and copying.
The valid special representations and finite-reuse prerequisites shall follow 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage or 🔗 4. Typed special-value assignment to native floating-point storage according to storage. Ordinary GMP numerical operations shall not be applied to copied PPL special representations. Native floating NaN payload/sign selection shall not be prescribed, and a signaling NaN shall not be admitted. Source/destination access overlapping mutation shall be synchronized. Calls shall require no library initialization, coefficient-constant stage or FPU setup and shall preserve hardware direction. Native floating exception/status conditions shall follow 🔗 4. Typed special-value assignment to native floating-point storage; unavailable formats shall not be instantiated.
-
1. Checked typed special-value factory results PPL-SPEC-000916 Let N be an admitted Checked_Number<T, Policy> marker-construction instantiation from 🔗 1. Checked special-marker construction and policy assignment. plus_infinity<N>(), minus_infinity<N>() and not_a_number<N>() shall construct and return an independently owned N from, respectively, PLUS_INFINITY, MINUS_INFINITY and NOT_A_NUMBER. The return type shall be exactly N. Admission shall require that the corresponding typed marker can implicitly construct N; these factory instantiations shall have the same scalar availability and policy capability conditions as that constructor.
Each call shall use Policy::ROUND_DEFAULT_CONSTRUCTOR and deliver the marker-construction Result exactly once to Policy::handle_result. No operator/function rounding default, additional conversion or return-copy handler decision shall be required. Copy elision shall not affect this count. Special payloads, finite fallback endpoints, unsupported-result meaning and valid reuse shall follow 🔗 1. Checked special-marker construction and policy assignment and its underlying marker contracts. A returned object after handler acceptance shall remain live, assignable and destructible; acceptance alone shall not promise a represented answer for an unsupported construction.
A handler exception shall propagate, and no result object shall be delivered. Normal cleanup shall preserve the owned-storage guarantees in 🔗 1. Same-type checked copying of admitted special values. Exception classification supplied by Extended_Number_Policy::handle_result shall retain 🔗 8. Exception classification of numerical result codes; an available NaN representation shall not prevent a policy from rejecting its construction result.
No existing numeric object shall be modified. The typed marker objects shall remain unchanged. Resource, scalar/policy, synchronization and backend conditions shall follow the corresponding marker constructor. No extra library initialization or coefficient-constant stage shall be required.
-
1. Checked special-marker construction and policy assignment PPL-SPEC-000848 For Checked_Number<T, Policy>, the underlying type T shall be an admitted native integer, mpz_class, mpq_class or configured supported native floating-point type. Native floating-point policies shall admit the format's infinities and quiet NaN. Marker types shall be Minus_Infinity, Plus_Infinity and Not_A_Number.
The explicit-direction marker constructor shall assign the special marker using the supplied direction and deliver that numerical Result exactly once to Policy::handle_result. It shall require that handler but no policy default direction. The default-direction marker constructor shall instead use Policy::ROUND_DEFAULT_CONSTRUCTOR and deliver the result exactly once to that same handler. Assignment from a marker shall use Policy::ROUND_DEFAULT_OPERATOR, deliver its result exactly once to the handler and return a reference to the destination if the handler returns. An assignment default shall not be required merely to construct an object, nor a constructor default merely to assign to a live object.
Numerical payloads, supported/unsupported classes, representability flags and admitted directions shall follow 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage or 🔗 4. Typed special-value assignment to native floating-point storage according to storage. In particular, supported NaN representation shall not produce a false unrepresentability flag. A NaN marker shall retain an empty ordered relation and shall not admit ROUND_NOT_NEEDED. Handler acceptance shall not turn an unsupported numerical result into a represented number: such an accepted object shall remain reusable as a destination, without inspecting its unspecified payload.
A handler exception shall propagate. Failed construction shall not leave a completed destination object; already constructed members shall have normal C++ cleanup. If assignment's handler throws, the destination shall remain live and reusable but need not retain its old payload. No strong assignment rollback shall be required. Marker sources shall remain unchanged. Underlying object ownership and cleanup shall follow 🔗 1. Finite checked scalar storage and copying.
Object access overlapping mutation shall be synchronized, and resources shall suffice for underlying objects. Calls shall require no library initialization, coefficient-constant stage or FPU setup and shall preserve hardware direction. Unavailable floating-point formats shall not be instantiated. Native floating-point exception/status conditions shall follow 🔗 4. Typed special-value assignment to native floating-point storage.
-
Incoming links from: 6. Coefficient zero and one constant access 8. Reduction of an integral coefficient pair2
1. Configured integral coefficient type and return trait PPL-SPEC-000041 The public Coefficient alias shall designate the configured integral coefficient type. The mpz profile shall select mpz_class (also named GMP_Integer). For each supported width n ∈ {8, 16, 32, 64}, checked-intN shall select Checked_Number<intN_t, Bounded_Integer_Coefficient_Policy> and native-intN shall select Checked_Number<intN_t, Checked_Number_Transparent_Policy<intN_t>>. Here N in a profile or type name denotes that selected width.
The bounded profiles shall represent the mathematical integers from − 2n − 1 through 2n − 1 − 1, inclusive. The mpz profile shall have no fixed-width integer range limit; available resources still limit computations. A native profile shall not promise overflow checking. The selection shall not introduce a global 128-bit coefficient type or change the meaning of coordinate indices.
Coefficient_traits shall be Coefficient_traits_template<Coefficient>. Its const_reference shall be const Coefficient& for mpz and both 64-bit bounded profiles, and Coefficient for the 8-, 16- and 32-bit bounded profiles. This trait shall determine whether a constant accessor returns a borrowed reference or a value, as specified by 🔗 6. Coefficient zero and one constant access.
-
Incoming links from: 3. Exact ordinary integral coefficient arithmetic 8. Coefficient scaling and truncated division by powers of two 1. Integral coefficient representation access and sign comparison 2. Coefficient negation and absolute-value assignment 3. Coefficient remainder assignment and exact division 4. Coefficient greatest common divisor and least common multiple 5. Extended integral greatest common divisor 6. Integral product accumulation and subtraction 7. Nonnegative integer square-root assignment 8. Reduction of an integral coefficient pair 9. Integral parity, additive inverses and extremum assignment11
2. Finite coefficient construction, copying and comparison PPL-SPEC-000042 A default-constructed Coefficient shall have value zero. Construction from a representable native integral input and copying from a live coefficient shall preserve the source integer value. The common native input forms covered here are char, signed char, unsigned char, short, unsigned short, int, unsigned int, long and unsigned long. Copy assignment shall replace the target value with the source's entry value, return a reference to the target and preserve a distinct source. Self-copy assignment shall preserve the value. Later mutation of a value shall not change a distinct copy. Destruction of one value shall not invalidate another value or a separately owned copy of a constant.
For live finite coefficient values, equality and ordering comparisons shall agree with equality and ordering of their mathematical integers and shall preserve the operands. These obligations shall hold independently of object identity and the current floating-point rounding direction.
Construction and use shall satisfy the applicable initialized-thread protocol in 🔗 3. Thread initialization, default state and finalization. Callers shall prevent concurrent access to an object while another operation changes it. This contract's integral-input guarantee requires the input value to be representable in the selected profile.
-
3. Exact ordinary integral coefficient arithmetic PPL-SPEC-000043 For live finite coefficients with mathematical entry values a and b, successfully materialized addition, subtraction and multiplication shall produce a + b, a − b and ab, respectively. Unary plus shall preserve the value and unary minus shall produce − a.
Compound addition, subtraction and multiplication shall replace the target by the corresponding result computed from the operands' entry values and return a reference to the target. This shall include an operand that is the target itself. Prefix increment and decrement shall change the value by one and return a reference to the changed target. Postfix forms shall make the same change and return an independent value equal to the target's entry value.
The mathematical result of every evaluated arithmetic step shall be representable in the selected bounded profile. Operand values shall remain unchanged unless they designate the assigned target. Results formed by the GMP expression-template provider shall be evaluated while their referenced operands remain alive. The initialized-thread and synchronization prerequisites of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Checked overflow reporting is specified by 🔗 5. Checked coefficient overflow and result-policy dispatch; native overflow is outside the successful-result preconditions.
-
4. Coefficient quotient and remainder with truncation toward zero PPL-SPEC-000044 For live finite coefficients with entry values a and nonzero b, a successfully materialized quotient shall be q = trunc(a ⁄ b). A materialized remainder shall be r = a − bq, with |r| < |b|; a nonzero remainder shall have the sign of a. Quotient calculation shall require q to be representable. In a bounded profile, dividing the least representable integer by -1 shall therefore be outside this successful-quotient precondition.
Remainder calculation shall admit every representable dividend and nonzero representable divisor, including that least-integer/-1 pair, and shall return zero for that pair. The mathematical definition of r shall not require the caller to compute an unrepresentable bounded quotient or intermediate product.
Compound division and remainder shall compute the corresponding result from entry values, replace the target and return a reference to it. The divisor may designate that target when its entry value is nonzero. Distinct operands shall remain unchanged. No zero-divisor rejection guarantee shall be inferred from these valid-input contracts. Materialization, thread initialization and synchronization shall follow 🔗 3. Exact ordinary integral coefficient arithmetic.
-
Incoming links from: 3. Exact ordinary integral coefficient arithmetic 8. Coefficient scaling and truncated division by powers of two 2. Coefficient negation and absolute-value assignment 3. Coefficient remainder assignment and exact division 4. Coefficient greatest common divisor and least common multiple 5. Extended integral greatest common divisor 6. Integral product accumulation and subtraction 8. Reduction of an integral coefficient pair 5. Bounded integer coefficient policy configuration 8. Rational canonical-form inspection and coefficient component extraction 1. Exact scalar numerator and denominator extraction11
5. Checked coefficient overflow and result-policy dispatch PPL-SPEC-000045 For a checked bounded coefficient profile, an ordinary coefficient arithmetic operation in 🔗 3. Exact ordinary integral coefficient arithmetic, or quotient calculation in 🔗 4. Coefficient quotient and remainder with truncation toward zero, whose exact integer result is outside the selected range shall throw std::overflow_error instead of returning a successful wrapped result. This includes negation of the least representable integer, endpoint-crossing increment or decrement, and dividing the least representable integer by -1. Operand prerequisites other than representability shall still apply.
After a supported arithmetic overflow exception, a surviving coefficient object shall remain destructible and assignable to a new representable value. Its previous value shall not be promised to remain unchanged. A constructor that throws shall not produce a usable object. Exception-message text shall not be prescribed. These promises shall not extend overflow checking to a native coefficient profile or promise rejection of a zero divisor.
For checked profiles, Bounded_Integer_Coefficient_Policy::handle_result(r) shall return normally exactly when result_overflow(r) is zero and result_class(r) differs from VC_NAN. Otherwise it shall dispatch to throw_result_exception(r). Supported positive/negative overflow codes, including unknown intermediate overflow, shall produce std::overflow_error. V_NAN and V_CVT_STR_UNK shall produce std::domain_error. A normally returned inexact result classification shall not be reclassified as exact.
-
6. Coefficient zero and one constant access PPL-SPEC-000046 Within the calling thread's active initialization lifetime, Coefficient_zero() and Coefficient_one() shall return coefficients with values zero and one, respectively, through Coefficient_traits::const_reference as defined by 🔗 1. Configured integral coefficient type and return trait. Repeated access shall preserve those values.
When the trait is a reference, repeated calls on the same thread within that lifetime shall refer to the same corresponding constant object. The caller shall not mutate that borrowed object or retain its use beyond the applicable initialized-thread lifetime. When the trait returns a value, the returned coefficient shall be an independent value. Making and modifying a value copy of either constant shall leave the constant unchanged.
Initialization and finalization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. In a thread-safe configuration, reference-returning constant storage shall belong to the calling thread and access by an initialized worker shall preserve another initialized thread's constants. Reinitialization shall not revive borrowed references from a preceding lifetime.
-
8. Coefficient scaling and truncated division by powers of two PPL-SPEC-000048 For a live finite coefficient with entry value a and an unsigned exponent e, successful mul_2exp_assign(x, y, e) shall assign a2e to x, where a is y's entry value. Successful div_2exp_assign(x, y, e) shall assign trunc(a ⁄ 2e) to x. Truncation shall be toward zero for either sign. The exponent zero shall preserve the input value.
The destination may be the source itself. A distinct source shall remain unchanged. A successful bounded multiplication result shall be representable. For native bounded multiplication, the exponent shall additionally be less than the selected width. These conditions shall include multiplying -1 by the power whose exponent is one less than that width, producing the least representable integer without undefined intermediate signed overflow.
Bounded division shall admit every unsigned int exponent; an exponent at least as large as the coefficient width shall produce zero. Checked bounded multiplication shall also admit every such exponent: a zero source shall produce zero, while a nonzero source with an exponent at least as large as the width shall report overflow. The mpz profile shall admit the unsigned int exponent range subject to available computational resources.
Checked bounded multiplication whose result is outside the coefficient range, with other input prerequisites satisfied, shall report std::overflow_error and retain the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. Native bounded operations shall not promise overflow detection. The initialized-thread and synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply.
-
1. Exact linear polyhedron partitioning PPL-SPEC-001429 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.
-
2. Finite and approximate grid partitioning PPL-SPEC-001430 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.
-
1. Reloadable pointset-powerset representations PPL-SPEC-001431 ascii_dump shall write the stored collection size, ambient dimension and each base representation, preserving enough information to reload the value with the matching coefficient/base configuration. ascii_load shall return true only for a complete admitted representation with matching disjunct dimensions and valid components; malformed, truncated or structurally invalid input shall return false. A successful round trip shall preserve union and dimension, without requiring canonical text or reduced decomposition. Stream and resource exceptions may propagate. A false return shall not promise rollback or further queries; surviving ownership shall remain destructible. Human-readable print shall remain distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Pointset-powerset diagnostics, display and hash PPL-SPEC-001432 OK shall check disjunct dimensions and generic powerset invariants. Memory queries shall give lower bounds; total shall add sizeof(*this) to external bytes. Hash shall depend on ambient dimension, so equal values shall have equal hashes without promising collision resistance. Stream insertion shall use the inherited powerset display and return the supplied stream; printing may normalize redundant storage without changing the value.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Reloadable product representations PPL-SPEC-001464 Dumping shall write the product label, reduction marker and both base representations. Loading shall accept a complete representation only when both base loads succeed, component dimensions agree and component invariants hold. Malformed, truncated or structurally inconsistent input shall return false. A successful round trip shall preserve the component pair's intersection and common dimension. A loaded reduction marker shall not bypass the requirement that a pair be admitted by its selected policy. False shall not promise rollback or further queries; surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Human display shall be distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Product diagnostics, display, memory and hash PPL-SPEC-001465 OK shall require matching component dimensions and both component invariants, without certifying policy application or a reduction fixed point. External memory shall sum component external estimates; total shall add sizeof(*this). Hash shall depend on ambient dimension and agree for equal products without promising collision resistance. Stream insertion shall label and display both components and return the supplied stream.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming links from: 1. Exact linear polyhedron partitioning 2. Finite and approximate grid partitioning 1. Reloadable pointset-powerset representations 2. Pointset-powerset diagnostics, display and hash 3. Reloadable product representations 4. Product diagnostics, display, memory and hash 1. Determinate values and copy-on-write ownership 2. Determinate order and distinguished values 3. Determinate operations and binary lifting 4. Determinate display, invariants and memory 1. Lifted powerset image 2. Lifted powerset preimage 3. Lifted powerset generalized image 4. Lifted powerset generalized preimage 5. Lifted powerset bounded image 6. Lifted powerset bounded preimage 7. Lifted expression-to-expression affine relations 1. Exact pairwise powerset reduction 2. BGP99 powerset extrapolation 3. Certificate-based powerset widening 1. Pointset-powerset coordinate growth 2. Pointset-powerset projection and coordinate mapping 3. Pointset-powerset dimension expansion and folding 4. Pointset-powerset concatenation 1. Lifted constraint addition and refinement 2. Lifted congruence addition and refinement 3. Lifted cylindrification 4. Lifted pointset-powerset intersection 5. Pointset-powerset set difference 6. Meet-preserving powerset context simplification 7. Powerset topological closure and time elapse 8. Powerset integer restriction and wrapping 1. Pointset-powerset empty and universe queries 2. Affine dimension of a pointset powerset 3. Pointset-powerset structural shape queries 4. Pointset-powerset structural set relations 5. Geometric powerset coverage and equality 6. Pointset-powerset directional bound tests 7. Pointset-powerset extrema and witnesses 8. Pointset-powerset descriptor relations 1. Dimensioned pointset-powerset construction 2. Pointset-powerset copying, assignment and exchange 3. Pointset-powerset construction from descriptor systems 4. Pointset-powerset construction from a simple domain 5. Cross-base powerset conversion and assignment 6. Pointset-powerset construction from a product 7. Insertion of pointset disjuncts 1. Generic powerset construction and ownership 2. Generic powerset entailment and equality 3. Generic powerset traversal and erasure 4. Omega reduction of generic powersets 5. Disjunctive insertion and exact powerset union 6. Pairwise lifting and generic powerset meet 7. Explicit powerset collapse 8. Generic powerset diagnostics and memory accounting 1. Componentwise product image 2. Componentwise product preimage 3. Componentwise product generalized image 4. Componentwise product generalized preimage 5. Componentwise product bounded image 6. Componentwise product bounded preimage 7. Product expression-to-expression affine relations 1. Product component widening and convergence scope 1. Product coordinate operations 2. Product concatenation 1. Product descriptor addition, refinement and recycling 2. Product intersection 3. Product component joins and component exactness 4. Sound product set difference 5. Product closure and time elapse 6. Product integer-coordinate tightening 1. Product constraint and congruence exports 2. Component-based product property tests 3. Component-based product descriptor relations 4. Component-selected product bounds and witnesses 5. Product component order and equality 1. Direct and smash reduction policies 2. Constraint-sharing product reduction 3. Congruence-sharing product reduction 4. Shape-preserving product reduction 5. Lazy product reduction and component views 1. Partially reduced product values and policy aliases 2. Dimensioned product construction and extent 3. Product copying, assignment and exchange 4. Product construction from descriptor systems 5. Conversions to a product86
1. Compound-domain values and valid use PPL-SPEC-001379 Pointset_Powerset<PSET> shall denote ⋃iγ(pi). An empty collection shall denote empty. Partially_Reduced_Product<D1,D2,R> shall denote γ1(d1)∩γ2(d2) in a common real ambient space. Powerset<D> shall implement the finite powerset construction on a base domain with bottom, top, entailment, equality, upper bound and meet. Determinate<PSET> shall adapt a supported pointset domain to that base interface without changing its represented set.
A component type shall supply the operations used by an instantiated member, with their stated soundness, precision, dimension and arithmetic conditions. Every intermediate arithmetic operation shall meet its coefficient profile's range and resource conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; indices and dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, function objects and streams shall remain live and valid throughout their uses. Independently written outputs shall not alias each other or input storage, except where explicitly permitted. The denominator-taking affine wrappers shall admit a scalar borrowed from the receiver at entry as specified below.
Value copies shall permit independent subsequent mutations. Accesses that can change shared representations or caches shall be externally synchronized. Numerical, allocation and resource exceptions may propagate. Failed construction shall release acquired resources. For existing objects no general rollback or further-query guarantee shall be assumed after an exception; surviving owned resources shall remain destructible.
-
1. Modeled bounded-integer type identity PPL-SPEC-000981 Concrete_Expression_Type::bounded_integer() shall create a value identifying the supplied modeled width, representation and overflow interpretation. The admitted widths shall be BITS_8, BITS_16, BITS_32, BITS_64 and BITS_128; representations shall be UNSIGNED and SIGNED_2_COMPLEMENT; overflow interpretations shall be OVERFLOW_WRAPS, OVERFLOW_UNDEFINED and OVERFLOW_IMPOSSIBLE. The result shall classify as bounded integer and not floating point, and its matching-kind getters shall return those attributes exactly.
These shall describe analyzed arithmetic, independently of native host integer types and of the configured coefficient storage. Modeling 128 bits shall not require a native 128-bit type. The factory and accessors shall require no PPL initialization, arithmetic evaluation or FPU setup.
-
Incoming link from: 3. Finite floating-format value inclusion1
2. Modeled floating-point format identity PPL-SPEC-000982 Concrete_Expression_Type::floating_point() shall create a value identifying the supplied modeled format. The admitted formats shall be IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD, INTEL_DOUBLE_EXTENDED, IBM_SINGLE and IBM_DOUBLE. The value shall classify as floating point and not bounded integer; its matching-kind format getter shall return the supplied format exactly.
A modeled format shall remain available as metadata when host arithmetic in that format is unavailable. This factory shall not construct a host floating-point value or imply that every numerical algorithm supports every modeled format. It shall require no PPL initialization or FPU setup.
-
3. Type-descriptor copying and validity diagnostics PPL-SPEC-000983 Implicit copying and assignment of Concrete_Expression_Type shall preserve its discriminator and complete matching-kind attributes as independent values. Assigning the other category shall replace the previous category and attributes. Getter calls shall require the matching category; querying inactive-category fields shall not be a supported way to convert a descriptor.
OK() shall accept descriptors constructed from the named admitted attributes and reject stored invalid attribute combinations. Factories shall not be required to throw for unnamed enumeration values. Values used solely for validity diagnostics shall still lie within the enumeration's C++ value range; a rejected descriptor shall not be used as an admitted expression type. Copying, assignment and diagnostics shall require no PPL initialization or FPU setup.
-
Incoming link from: 1. Target-adapted floating expression evaluation1
4. Target-specific concrete-expression adapter protocol PPL-SPEC-000984 A target used with the concrete-expression analysis templates shall provide specializations for the expression base and the supported binary, unary, cast, integer-constant, floating-constant and approximable-reference node adapters. Each node kind shall have a distinct KIND matching the base expression's kind() result. type() shall return the node's modeled numeric type. The base adapter shall derive unambiguously and nonvirtually from Concrete_Expression_Common<Target>; a kind-specific adapter shall have the corresponding concrete base lineage required for its downcast.
Binary adapters shall expose distinct ADD, SUB, MUL, DIV, REM, BAND, BOR, BXOR, LSHIFT and RSHIFT operator identities and borrowed left/right expression pointers. Unary adapters shall expose UPLUS, UMINUS and BNOT and a borrowed argument pointer. Cast adapters shall expose their borrowed argument pointer. A target used with the general linearize() template shall provide all adapters and operator names needed to instantiate its dispatch, even if a particular input uses fewer kinds.
Nodes, children and target-specific payloads shall remain live, type-correct and unchanged throughout analysis. Argument pointers for an admitted operation shall be nonnull; the analyzed graph shall have no recursion cycle. The PPL common adapters shall not take ownership of target nodes or supply a runtime polymorphic deletion protocol. Target-owned storage and callbacks shall retain their own lifetime and synchronization prerequisites.
-
5. Checked-kind concrete adapter access PPL-SPEC-000985 For a live well-formed target expression, is<Derived>() shall return true exactly when the target's current kind equals Derived<Target>::KIND. It shall not change the expression or acquire its ownership. The mutable and const as<Derived>() operations shall return pointers to the same actual derived node with the respective qualification. Their caller shall first establish a matching kind and correct actual inheritance/dynamic node type. A mismatched cast shall be outside the admitted interface; this shall not be a checked RTTI or allocating conversion.
-
Incoming link from: 1. Target-adapted floating expression evaluation1
6. Oracle interval and expression-value queries PPL-SPEC-000986 FP_Oracle<Target, C> shall define an abstract client-supplied query interface for a coordinate interval, a floating-point constant value and an integer expression value. A true return shall mean that the output is an initialized valid interval enclosing all relevant values under the client's current modeled state. A false return shall mean that the query supplies no usable complete enclosure; callers shall not infer an unchanged output value. An admitted oracle shall report refusal rather than certify an unsound enclosure.
The oracle and target inputs shall remain live and semantically consistent with the analyzed expression and any affine store throughout one analysis. Callbacks may propagate their documented exceptions. C shall provide the selected valid interval operations; rational interval queries shall not require host floating-point arithmetic merely because the interface is named FP_Oracle. Construction/destruction of the concrete oracle shall remain with its client; the protected nonvirtual base destructor shall not support deleting an owned oracle through a base pointer.
-
7. Oracle reference-to-coordinate associations PPL-SPEC-000987 get_associated_dimensions() shall provide the possible coordinate identities denoted by an approximable reference. On true return, its output set shall contain every possible associated coordinate and shall not contain not_a_dimension(). An empty successful set shall remain distinguishable from a single identity and multiple possible identities; it shall not by itself authorize a numerical enclosure. On false return the set shall not establish a usable association. Returned coordinate identities shall remain consistent with coordinate-value queries and the affine store during the analysis call. The oracle shall not transfer ownership of the target reference or create a new coordinate merely by reporting its identity.
-
Incoming links from: 3. Congruence creation from affine operand differences 4. Equality-constraint conversion and explicit modulus construction 8. Explicit modulus replacement and multiplicative modulus syntax 9. Scaling expression and modulus together 10. Sign, constant-residue and common-factor normalization 11. Congruence semantic equivalence 12. Rational affine substitution preimage of a congruence 16. Congruence-system meaning and construction 17. Owned congruence systems, storage conversion and descriptor equality 21. Common-modulus normalization of congruence systems 6. Java mathematical representations and operation options11
1. Affine congruence meaning and valid numerical use PPL-SPEC-000141 For dimension d, integer coefficient expression E(x) = b + ∑d − 1i = 0aixi and nonnegative modulus m, a Congruence shall denote the rational valuations satisfying E(x) = 0 when m = 0, and E(x) ⁄ m ∈ ℤ when m > 0. Coordinates themselves need not be integral. is_equality() and is_proper_congruence() shall distinguish these cases exactly. is_tautological() shall report whether all rational valuations satisfy the relation; is_inconsistent() shall report whether none do. With a nonzero homogeneous coefficient neither predicate shall hold. For a constant expression, the first shall equal its equality/divisibility truth and the second its negation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization; the caller shall synchronize access overlapping modification of an object. Both dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, arithmetic, normalization, comparison and transformation guarantees shall require every evaluated coefficient step and result to be representable in the selected numerical profile. Unchecked completion shall not prove this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release its owned resources; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without a universal rollback guarantee.
-
2. Default congruence and shared zero-dimensional values PPL-SPEC-000142 Default construction shall produce a dimension-zero equality with expression zero and use the requested representation. zero_dim_false() shall return a borrowed dimension-zero inconsistent equality. zero_dim_integrality() shall return a borrowed dimension-zero tautological proper congruence with modulus one. Shared constants shall remain usable until their initialized owning thread is finalized; owned copies shall be independent values.
-
3. Congruence creation from affine operand differences PPL-SPEC-000143 create and operator%= shall construct modulus-one congruences relating their operand expressions. The satisfying condition shall be E(x) − F(x) ∈ ℤ; a scalar operand shall denote a constant. The result dimension shall be the maximum operand dimension, including trailing zero coordinates. Sources shall be preserved. create shall use the requested representation; operator%= shall use default_representation. Reversing operands shall preserve the satisfying set, without requiring the same coefficient signs. The recycle-input constructor shall transfer an expression's coefficient value and representation, use its nonnegative modulus argument's entry value, and leave the transferred expression valid and independently destructible. A modulus borrowed from that expression shall be admitted. Numerical prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
4. Equality-constraint conversion and explicit modulus construction PPL-SPEC-000144 Construction from an equality Constraint shall produce a modulus-zero congruence with the same satisfying valuations and dimension, using requested storage. A dimensioned overload shall apply coefficient truncation or zero extension as specified by 🔗 6. Congruence dimensions and coefficient-coordinate transformations. Inequality constraints shall be rejected with std::invalid_argument.
operator/(c,m) for an equality constraint and nonnegative modulus m shall construct the congruence formed from that equality expression with modulus m. In particular a positive supplied modulus shall produce a proper congruence, while zero shall preserve equality. It shall preserve its source and use the default representation. Numerical prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
5. Owned congruence values and representation conversion PPL-SPEC-000145 Copy construction shall preserve expression, modulus, dimension and source representation; the explicit-storage overload shall select its requested storage. Assignment shall copy the source's entry value and representation, return the target reference, preserve a distinct source and support self-assignment. Rvalue inputs shall admit those copy forms and preserve source value without requiring a distinct move operation. Distinct copies shall survive later source mutation or destruction.
m_swap and PPL swap shall exchange complete values, dimensions and storage; self-swap shall preserve the value. representation() shall report current storage. Successful set_representation(r) shall change only storage, preserving exact exposed coefficients, modulus and dimension. Destruction shall release owned storage. Copy assignment or representation conversion failing while constructing a replacement shall preserve the target.
-
6. Congruence dimensions and coefficient-coordinate transformations PPL-SPEC-000146 max_space_dimension() shall return the expression dimension limit and space_dimension() the public ambient dimension. Dimension arguments and results shall lie within the limit. Dimensioned copies and set_space_dimension(n) shall retain the constant and lower-index coefficients, zero-extend new coordinates or discard removed trailing coefficients, while preserving modulus. Copies without explicit storage shall retain source storage.
swap_space_dimensions shall exchange two in-dimension coefficients. permute_space_dimensions shall require distinct in-dimension variables and move each cycle coefficient to the following coordinate, wrapping the last to the first. Empty/singleton cycles shall preserve the value. shift_space_dimensions(v,n) shall require v.id() <= space_dimension(), insert n zero coefficients before that position and increase dimension by n. These transformations shall retain modulus, constant term and representation. Discarding coefficients shall not mean existential projection of the original solution set.
-
7. Borrowed congruence coefficients, modulus and expression view PPL-SPEC-000147 Borrowed coefficient and expression accessors shall require an lvalue receiver, with corresponding const && overloads deleted in every coefficient profile. Copying a borrowed expression view shall not extend the owning descriptor's lifetime.
coefficient(v) shall return the indicated homogeneous coefficient when v.id() < space_dimension() and otherwise throw std::invalid_argument. inhomogeneous_term() and modulus() shall return the current constant and modulus. Configured reference returns shall borrow their owner until modification or destruction.
expression() shall return a read-only borrowed adapter exposing the public affine expression with the same dimension, coefficients and constant. Uses covered here shall require the owner to remain alive and unchanged. Materializing the view as a Linear_Expression shall make an independent value. Queries shall preserve the congruence.
-
8. Explicit modulus replacement and multiplicative modulus syntax PPL-SPEC-000148 For nonnegative m, set_modulus(m) shall replace only the modulus with its input entry value, admitting a borrowed coefficient from the same congruence. Zero shall select equality. It shall preserve dimension and representation.
For coefficient factor k, operator/=(k) shall multiply the entry modulus by |k|, preserving all affine coefficients and return the target reference. The factor may reference the modulus or a coefficient in the same object; its entry value shall be used. Nonmutating operator/ shall apply that operation to an independent copy, preserving the source. Multiplication by zero shall yield modulus zero; an existing zero modulus shall remain zero for any factor. These operations shall not divide the coefficients. Every computed absolute value/product shall satisfy 🔗 1. Affine congruence meaning and valid numerical use's arithmetic prerequisites.
-
9. Scaling expression and modulus together PPL-SPEC-000149 For a nonnegative factor k, scale(k) shall multiply every homogeneous coefficient, the constant and modulus by the factor's entry value. Positive factors shall preserve the satisfying set. A zero factor shall produce the tautological equality with the same dimension. Dimension and representation shall be preserved.
The factor shall not borrow a coefficient of the affine expression being modified. Borrowing the modulus shall be admitted and shall use its entry value consistently for expression and modulus. Arithmetic prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
10. Sign, constant-residue and common-factor normalization PPL-SPEC-000150 sign_normalize() shall negate the affine expression exactly when its first nonzero homogeneous coefficient is negative, preserving modulus. An expression without nonzero homogeneous coefficients shall retain its sign. normalize() shall apply that sign rule, then, for positive modulus m, replace the constant with its unique residue in [0, m). Zero-modulus normalization shall not reduce the constant by a modulus.
strong_normalize() shall additionally divide the expression and modulus by their nonnegative common greatest divisor when that divisor exceeds one. The zero expression with positive modulus shall reduce to modulus one. Each operation shall preserve the satisfying set, dimension and representation and shall be idempotent. They may change the affine expression value while preserving the modular relation. Arithmetic prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
11. Congruence semantic equivalence PPL-SPEC-000151 Congruence operator== shall report whether equal-dimension operands admit the same rational valuations, independently of storage and equivalent common scales, signs or constant residues. Different public dimensions shall compare unequal. Tautologies of the same dimension shall compare equivalent, including zero-modulus and positive-modulus forms. The same shall hold for inconsistent congruences even when their moduli differ. operator!= shall negate that result. Both shall preserve operands. Arithmetic prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
12. Rational affine substitution preimage of a congruence PPL-SPEC-000152 For an in-dimension variable v, an independent affine expression e of dimension at most the target dimension, and positive denominator q, affine_preimage(v,e,q) shall replace the congruence by the condition obtained by substituting xv = e(x) ⁄ q into its entry relation. The result shall retain the original public dimension and representation. If the entry coefficient of v is zero the congruence shall be unchanged. Otherwise its new modulus shall be qm; the new affine expression shall be q(E(x) − avvx) + ave(x). A bounded profile shall retain this storage formula whenever its completed values fit. If they do not fit, it may store an equivalent primitive row using a proper constant residue and positive common-factor cancellation, admitting only completed reduced values. The source expression shall be preserved. The denominator shall not borrow from the target's affine expression; borrowing its modulus shall be admitted using entry values. Arithmetic prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
13. Reloadable congruence representation PPL-SPEC-000153 ascii_dump(s) shall write the full affine coefficient expression followed by the token m and its nonnegative modulus; ascii_dump() shall use std::cerr. Export shall preserve its source. For a complete compatible export with representable coefficients, ascii_load(s) shall return true and replace the target with those coefficients, dimension and modulus, retaining destination storage.
Malformed or truncated expressions, missing/invalid modulus tokens, negative moduli and structurally invalid coefficient counts shall return false. If expression loading fails, ascii_load(s) shall return false without reading the modulus marker or value. Trailing input shall remain available. A failed load may modify the target; it shall remain destructible and admit complete valid replacement. No rollback or cross-version wire-format stability is promised. Allocation and configured numerical exceptions may propagate.
-
14. Readable congruence and system output PPL-SPEC-000154 Congruence output shall print homogeneous terms in increasing variable order, using the active formatter in 🔗 7. Active Variable formatter and initialized thread state, followed by " = " and the negated constant. A zero homogeneous part shall print 0. A proper congruence shall append " (mod ", its positive modulus and ")"; an equality shall omit that suffix. Coefficient signs, unit magnitudes and * separators shall follow the affine output conventions in 🔗 14. Human-readable affine output and formatter dispatch.
System output shall print its publicly iterated nontrivial rows after strong normalization of copies, separated by ", ", or true for an empty range. Operators shall return the supplied stream, add no newline and preserve their objects. print() shall use that output on std::cerr. Evaluated coefficient negations shall be representable in the selected profile.
-
15. Congruence and system invariant and memory queries PPL-SPEC-000155 OK() shall report the checked representation invariants of its congruence or system. Values produced by successful operations under the stated valid input and arithmetic conditions shall satisfy those invariants. For each type, total_memory_in_bytes() shall equal sizeof that type plus external_memory_in_bytes(). Queries shall preserve dimensions, coefficients, moduli and representation. Counts shall not promise allocator overhead, process memory consumption or a dense/sparse size ordering.
-
16. Congruence-system meaning and construction PPL-SPEC-000156 A Congruence_System shall denote the conjunction of its retained congruences over rational coordinates. An empty conjunction shall be true. Default construction shall have dimension zero and no rows; the dimensioned empty constructor shall retain its supplied admitted dimension. A singleton constructor from a congruence shall copy that relation and its dimension. Construction from an equality constraint shall make its modulus-zero singleton; inequalities shall throw std::invalid_argument. Construction from a constraint system shall extract its equality rows and retain its ambient dimension, omitting inequalities.
All constructors shall use requested storage, with default_representation equal to SPARSE. zero_dim_empty() shall borrow a dimension-zero inconsistent singleton, not an empty conjunction, until owning-thread finalization. Initialization, synchronization and numerical/failure preconditions shall follow 🔗 1. Affine congruence meaning and valid numerical use.
-
17. Owned congruence systems, storage conversion and descriptor equality PPL-SPEC-000157 Copy construction and assignment shall preserve the system's row sequence, conjunction and declared dimension; ordinary copies and assignment shall retain source representation, while an explicit-storage copy shall use its argument. Assignment shall return the target, preserve a distinct source, support self-assignment and retain the source when using rvalue copy forms. Copies shall remain independent after source modification or destruction. Swaps shall exchange complete values, dimensions and storage, including self-swap. Successful representation conversion shall select requested dense or sparse storage for all rows without changing their conjunction or dimension. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Affine congruence meaning and valid numerical use.
is_equal_to and system operator== shall test equal declared dimensions and matching retained row counts/order, comparing corresponding congruences semantically. They shall not decide whether differently ordered or redundant systems denote the same conjunction. Storage choice shall not change this comparison. Destruction shall release owned rows.
-
18. System insertion, ownership transfer and coordinate changes PPL-SPEC-000158 Const-reference insertion of a congruence, equality constraint or congruence system shall conjoin copies, preserving sources and target representation. Inequality constraints shall throw std::invalid_argument. Single congruence and constraint insertion shall strongly normalize the inserted copy. Result dimension shall be the maximum input dimension, zero-extending shorter rows. Ordinary self-system insertion and insertion of a borrowed row from the target shall be admitted using entry values.
Rvalue insertion shall conjoin transferred relations, requiring a source distinct from the target system and not borrowing one of its rows. Transferred inputs shall remain destructible. Successful recycled-system insertion shall clear the source to a dimension-zero empty system. clear() shall likewise remove all rows and reset dimension zero while retaining storage.
space_dimension() shall report ambient dimension, and max_space_dimension() the congruence limit. Successful set_space_dimension(n) shall resize all row coefficients by truncation or zero extension and retain moduli. Swapping/permuting system coordinates shall apply 🔗 6. Congruence dimensions and coefficient-coordinate transformations to every row. Dimension and variable arguments shall satisfy that contract's bounds. These are coefficient transformations rather than existential projection.
Const row sources, including const rvalues, shall use preserving insertion. Const system sources shall likewise use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
19. Filtered system iteration, emptiness and retained row counts PPL-SPEC-000159 begin() and end() shall delimit retained nontautological rows. empty() shall report that this range is empty and shall not decide satisfiability of a nonempty conjunction. Exposed rows shall share the system's declared dimension. has_linear_equalities(), num_equalities() and num_proper_congruences() shall inspect/count retained stored rows, including tautologies omitted by public iteration.
The forward iterator shall borrow its system, expose row references/pointers, and support copied or assigned independent positions. Prefix increment shall return the advanced iterator; postfix shall return its entry-position copy. Comparison shall require positions in the same unchanged system. Default iterators shall admit copying, assignment and destruction before being assigned a valid position. Mutation/destruction shall invalidate iterators and borrowed rows.
-
20. Reloadable congruence-system representation PPL-SPEC-000160 ascii_dump(s) shall export stored row count, public dimension, representation choice and every full congruence row; ascii_dump() shall write that representation on std::cerr. Export shall preserve the source. A complete compatible export with representable coefficients shall load with true, replacing the target conjunction, dimension, stored rows and encoded representation choice.
Malformed/truncated headers or rows, invalid modulus or coefficient structure, and inconsistent encoded row dimensions shall return false rather than be accepted as a valid system. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded row count shall be nonnegative and fit the row container. The decoded header dimension shall be nonnegative and shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
21. Common-modulus normalization of congruence systems PPL-SPEC-001656 For a valid congruence system with positive moduli m1, …, mk, normalize_moduli() shall set every proper row's modulus to L = lcm(m1, …, mk) and multiply its affine expression by L ⁄ mi. It shall preserve row order, row count, ambient dimension, storage representation and the relation denoted by every row. Modulus-zero equalities shall remain unchanged. Empty and equality-only systems shall remain unchanged.
Every evaluated LCM, ratio and coefficient-scaling intermediate shall be representable in the configured coefficient profile. Initialization, lifetime, synchronization and failure guarantees shall follow 🔗 1. Affine congruence meaning and valid numerical use.
-
Incoming links from: 4. Bounded-integer wrapping and guarded evolution of difference shapes 2. Relational construction from affine operands 6. Constraint dimensions and explicit coordinate transformations 7. Constraint kind, coefficients and borrowed expression access 9. Semantic equivalence and exact descriptor identity 10. Conversion of equality congruences to constraints 14. Constraint-system conjunction, construction and shared contradiction 15. Constraint-system owned values and representation conversion 20. Extracting equality constraints from a congruence system 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 6. Java mathematical representations and operation options11
1. Constraint relation meaning and numerical prerequisites PPL-SPEC-000101 A Constraint of dimension d shall describe one relation on rational valuations x ∈ ℚd. With its exposed expression E(x) = b + ∑d − 1i = 0aixi, its three types shall mean E(x) = 0, E(x) ≥ 0 and E(x) > 0, respectively. A coefficient belonging to an internal strictness representation shall not be exposed as a coordinate of this relation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize any access overlapping modification of the same object. Both DENSE and SPARSE storage shall be supported and default_representation shall be SPARSE. Computed construction, conversion, normalization, dimension transformation and comparison guarantees shall require representability of every evaluated coefficient arithmetic step in the selected coefficient profile. Unchecked completion shall not establish this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete constraint. Distinct, unchanged sources shall survive a reported failure; otherwise a modified destination shall remain destructible, without a universal unchanged-state guarantee.
-
2. Relational construction from affine operands PPL-SPEC-000102 The relational operators ==, >=, <=, > and < applied to affine operands shall construct constraints denoting those mathematical relations. They shall accept two expressions, two variables, or an expression and a coefficient in either order. Variables shall denote coordinate functions and coefficients shall denote constants. The result dimension shall be the maximum operand dimension, including unused trailing coordinates. Equality shall have type EQUALITY; the ordered operators shall select the corresponding strict or nonstrict inequality type. Operands shall be preserved. Results shall use Constraint::default_representation.
Coefficient normalization may rescale the relation without changing its truth. For equalities and closed nonstrict inequalities produced directly by these operators, coefficients and the constant term shall have common divisor one unless all are zero. Equality's first nonzero homogeneous coefficient shall be positive; inequality orientation shall be preserved. These conventions shall not imply that every later strict constraint has a primitive exposed coefficient vector. The prerequisites of 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
3. Default and shared zero-dimensional constraints PPL-SPEC-000103 Default construction with optional representation shall yield a dimension-zero nonstrict tautology with expression zero. The requested representation shall be used. zero_dim_false() shall return a borrowed dimension-zero inconsistent equality; zero_dim_positivity() shall return a borrowed dimension-zero nonstrict tautology with a positive constant term. Shared objects shall remain usable until their owning initialized thread is finalized. Copying a shared object shall create an independently owned value.
-
4. Owned constraint copying, assignment and swapping PPL-SPEC-000104 Ordinary copy construction shall preserve relation type, exposed coefficients, constant term, dimension and representation. Explicit-representation copying shall use the requested representation. Copy assignment shall replace the target with the source's entry value and representation, preserve a distinct source and return the target reference. Self-assignment shall preserve the constraint. Rvalue arguments shall admit these copy forms without requiring a distinct move operation; the source shall retain its value.
Distinct copies shall remain independent of later mutation and destruction. m_swap and the PPL swap overload shall exchange complete constraint values, including dimensions and representation. Self-swap shall preserve the value. Destruction shall release owned storage. Failure while constructing a replacement for copy assignment shall leave the target unchanged.
-
5. Constraint representation conversion PPL-SPEC-000105 representation() shall report the current coefficient storage. For r equal to DENSE or SPARSE, successful set_representation(r) shall preserve relation type, every exposed coefficient, constant term and dimension, and select r. Repeating the current choice shall preserve the object. A failed replacement allocation shall leave the original representation and value unchanged.
-
Incoming link from: 16. System insertion, dimension adjustment and clearing1
6. Constraint dimensions and explicit coordinate transformations PPL-SPEC-000106 max_space_dimension() shall report the expression dimension limit and space_dimension() shall report the constraint's public ambient dimension. Dimension arguments and resulting dimensions shall not exceed that limit; all referenced existing coordinates shall lie within the current dimension.
Dimensioned copy construction and set_space_dimension(n) shall retain coordinates below the lesser dimension and the constant term, insert zero coefficients on extension, and discard removed trailing coefficients on shrinking. Normalization may rescale retained coefficients without changing the transformed relation. Dimensioned copies without an explicit storage choice shall retain source representation. remove_space_dimensions(vars) shall discard selected coefficients, compact surviving coordinates in their original order, and return true. Removing none or all shall be admitted.
swap_space_dimensions shall exchange the designated coefficients; permute_space_dimensions shall require a cycle of distinct coordinates and move each listed coefficient to the next listed coordinate, wrapping the last to the first. Cycles of fewer than two entries shall preserve the value. shift_space_dimensions(v,n) shall insert n zero coordinate coefficients before v.id(), where v.id() <= space_dimension(), shifting the suffix and increasing the public dimension by n. A zero shift shall preserve value. These operations shall preserve relation type and representation. They shall describe coefficient transformation rather than existential projection of satisfying points. Arithmetic prerequisites in 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
7. Constraint kind, coefficients and borrowed expression access PPL-SPEC-000107 Borrowed coefficient and expression accessors shall require an lvalue receiver, with corresponding const && overloads deleted in every coefficient profile. Copying a borrowed expression view shall not extend the owning descriptor's lifetime.
type() and the four kind predicates shall identify equality, either inequality, nonstrict inequality and strict inequality exactly. coefficient(v) shall return the corresponding homogeneous coefficient when v.id() < space_dimension() and otherwise throw std::invalid_argument. inhomogeneous_term() shall return the public constant term. A configured reference return shall remain borrowed until modification or destruction of its owning constraint.
expression() shall return a read-only borrowed adapter exposing precisely the affine expression in 🔗 1. Constraint relation meaning and numerical prerequisites, with the same public dimension, homogeneous coefficients and constant term and without a hidden strictness coordinate. The view shall require its owning constraint to remain alive and unchanged for the uses covered here. Materializing it as a Linear_Expression shall produce an independent value. Queries shall preserve their source.
-
8. Exact tautology and inconsistency classification PPL-SPEC-000108 is_tautological() shall hold exactly when every rational valuation in the declared ambient dimension satisfies the constraint. is_inconsistent() shall hold exactly when none does. An expression with a nonzero public homogeneous coefficient shall satisfy neither predicate. For constant b, equality shall be tautological exactly at b = 0 and inconsistent otherwise; nonstrict inequality shall be tautological at b ≥ 0 and inconsistent at b < 0; strict inequality shall be tautological at b > 0 and inconsistent at b ≤ 0. These queries shall preserve the object.
-
9. Semantic equivalence and exact descriptor identity PPL-SPEC-000109 is_equivalent_to(y) and constraint operator== shall report equality of the satisfying sets when the public dimensions agree, independently of storage and internal strictness topology. Different public dimensions shall compare nonequivalent. Tautologies of the same dimension shall be equivalent even if their types or constant forms differ; the same shall hold for inconsistent constraints. Nontrivial equivalence shall respect relation type, positive rescaling of inequalities, and arbitrary nonzero rescaling of equalities. Inequality expressions shall negate semantic equivalence.
is_equal_to(y) shall report complete identity of the stored normalized descriptor, including internal topology, relation kind, coefficient sequence and dimension, independently of dense/sparse storage. A positive identity result shall imply semantic equivalence; a negative result shall not establish nonequivalence. Queries shall preserve operands. Numerical prerequisites in 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
Incoming link from: 20. Extracting equality constraints from a congruence system1
10. Conversion of equality congruences to constraints PPL-SPEC-000110 Construction from a zero-modulus Congruence shall yield an equality constraint with the same public dimension and satisfying valuations, using the requested representation. Normalization may rescale its coefficients. The source shall remain unchanged. A proper congruence with nonzero modulus shall be rejected with std::invalid_argument and shall not yield a constraint. Numerical prerequisites in 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
11. Reloadable constraint representation PPL-SPEC-000111 ascii_dump(s) shall export all fields needed to reload the constraint: its full stored coefficient expression, relation token and topology token. ascii_dump() shall use std::cerr. Export shall preserve its source. For compatible complete exported data with representable coefficients, ascii_load(s) shall return true and replace the destination's stored relation, dimension and coefficients, retaining the destination storage choice. It shall preserve the source relation's satisfying set and public kind.
Malformed expression, relation or topology tokens, missing coefficient slots, truncated input, violations of the checked row invariants and inconsistent encoded relation/type combinations shall return false. The expression slot count shall include the constant and any required internal strictness slot; invalid counts shall not be accepted as valid relations. If expression loading fails, ascii_load(s) shall return false without reading the relation or topology suffix. Trailing input shall remain available to the caller. A failed load may change the destination; it shall remain destructible and admit replacement by a subsequent complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate.
-
12. Readable constraint and system output PPL-SPEC-000112 Constraint output shall print nonzero homogeneous terms in increasing coordinate order, followed by " = ", " >= " or " > " according to public type, and the negated inhomogeneous term. A zero homogeneous part shall print 0. Unit coefficient magnitudes shall omit the numeral and *; other magnitudes shall use *. Signs shall use a leading minus or the separators " + " and " - ". Coordinates shall use the active formatter in 🔗 7. Active Variable formatter and initialized thread state. Type output shall print EQUALITY, NONSTRICT_INEQUALITY or STRICT_INEQUALITY for the corresponding Constraint::Type value.
System output shall print its publicly iterated constraints separated by ", ", or true when that range is empty. Output operators shall return the supplied stream, add no newline and preserve their objects. Each type's print() shall use that output on std::cerr. Formatting arithmetic shall require representability of all evaluated coefficient negations.
-
13. Constraint and system invariants and memory accounting PPL-SPEC-000113 OK() on a constraint or system shall report the checked representation invariants. Values produced by successful operations under their preconditions shall satisfy those invariants. For each type, total_memory_in_bytes() shall equal sizeof that object's type plus external_memory_in_bytes(). Memory queries shall preserve relation meaning, dimensions and representation. Their counts shall not promise allocator overhead, process resident memory or a fixed ordering between sparse and dense storage.
-
14. Constraint-system conjunction, construction and shared contradiction PPL-SPEC-000114 A Constraint_System shall denote the conjunction of its constraints over its declared rational coordinate space. An empty conjunction shall be true. An empty public range shall not mean an inconsistent set. Conversely, zero_dim_empty() shall return a borrowed, dimension-zero system containing an inconsistent equality and denoting the empty set of valuations. That shared system shall remain alive until its owning initialized thread is finalized.
Default construction shall create a dimension-zero system with no constraints. Construction from one constraint shall create its singleton conjunction and use that constraint's public dimension. Both shall use the requested representation; default_representation shall be SPARSE. Construction shall own its stored values independently of the source. Use shall satisfy 🔗 1. Constraint relation meaning and numerical prerequisites's initialization, synchronization, arithmetic and failure prerequisites.
-
15. Constraint-system owned values and representation conversion PPL-SPEC-000115 System copy construction shall preserve the conjunction, dimension and representation; the explicit-representation overload shall use its requested storage. Copy assignment shall replace the target with an independent copy of the source's entry value and representation, preserve a distinct source and return the target reference. Self-assignment shall preserve the system. Rvalue arguments shall admit the copy forms without requiring a distinct move operation, retaining source value. Copies shall survive later source modification or destruction.
m_swap and the PPL swap overload shall exchange entire system values, dimensions and representations. Self-swap shall preserve the system. representation() shall report current storage. Successful set_representation(r) for DENSE or SPARSE shall select that storage for the system and its rows while preserving conjunction and dimension. Destruction shall release owned storage. Copy-assignment replacement failure shall preserve the target. Other failure guarantees shall follow 🔗 1. Constraint relation meaning and numerical prerequisites.
-
16. System insertion, dimension adjustment and clearing PPL-SPEC-000116 insert(const Constraint&) shall conjoin a copy of its source with the system's existing meaning, preserve the source constraint and retain system representation. The resulting dimension shall be the maximum of old system and inserted constraint dimensions. Rows with fewer coordinates shall be extended with zero coefficients. Inserting duplicates or tautologies shall preserve the corresponding conjunction; insertion of an inconsistent constraint shall make it unsatisfiable. Retrievable rows need only describe an equivalent conjunction and need not preserve insertion order or duplicate multiplicity.
Rvalue insertion shall have the same mathematical, coordinate and topology semantics while permitting reuse of source storage. The source shall not borrow a row of the receiving system and shall remain destructible and assignable, with no unchanged-value guarantee. Const sources, including const rvalues, shall use preserving insertion.
max_space_dimension() shall return the constraint dimension limit. space_dimension() shall return the declared system dimension. set_space_dimension(n) shall require an admitted result dimension and apply the constraint coordinate-resizing semantics in 🔗 6. Constraint dimensions and explicit coordinate transformations to its rows; an empty system may retain a positive dimension. clear() shall remove all constraints and reset dimension zero, retaining representation. These are descriptor transformations and do not promise existential projection when nonzero coefficients are discarded. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
17. System emptiness and retained constraint-kind queries PPL-SPEC-000117 empty() shall return whether the public iterator range has no nontrivial constraints. Tautological stored rows shall be omitted from that range, so a system containing only tautologies shall be empty under this query. The query shall not determine whether a nonempty conjunction is satisfiable.
has_equalities() shall report whether a retained stored row is an equality, including a tautological equality omitted by public iteration. has_strict_inequalities() shall report whether a retained row is a nontautological strict inequality; tautological strict rows and internal strictness bounds shall not make it true. These properties shall concern the retained descriptor representation and shall not claim a minimal equivalent system. Queries shall preserve conjunction and dimensions.
-
18. Read-only forward iteration over nontrivial constraints PPL-SPEC-000118 begin() and end() shall delimit the system's retained, non-tautological constraints. Each exposed row shall have the system's declared public dimension. Iteration order shall not be a semantic ordering guarantee. Dereference and member selection at a non-end position shall borrow its constraint. Prefix increment shall advance and return the iterator; postfix increment shall return an independent copy of its entry position.
Iterator copy construction and assignment shall preserve the borrowed system and position while allowing subsequent navigation of independent copies. Iterators shall be compared only within the same unchanged system. Default iterators shall admit copying, assignment and destruction; they shall not be dereferenced or advanced until assigned a valid position. Modification or destruction of the system shall invalidate its iterators and borrowed row references.
-
19. Reloadable constraint-system representation PPL-SPEC-000119 ascii_dump(s) shall export the system's complete stored coefficient rows, public dimension, topology, representation choice and row-state fields needed for compatible reloading. ascii_dump() shall use std::cerr. Export shall preserve the source.
Loading a complete compatible export with representable coefficients shall return true and replace the destination with the encoded system, retaining its conjunction, public dimension and encoded representation choice. Malformed or truncated headers, row data, relation/topology fields and inconsistent encoded dimensions or row-state fields shall be reported by false rather than accepted as a valid system. Trailing input after the representation shall remain available. Failure may change the destination; it shall remain destructible and admit complete valid replacement. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
20. Extracting equality constraints from a congruence system PPL-SPEC-000120 Construction from a Congruence_System shall produce the conjunction of its zero-modulus equality rows converted according to 🔗 10. Conversion of equality congruences to constraints. Proper congruences shall be omitted rather than converted to equalities or used as periodic constraints. The result shall retain the congruence system's declared public dimension even when no equality survives, use the requested representation, and preserve its source. Arithmetic prerequisites in 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
1. Determinate values and copy-on-write ownership PPL-SPEC-001388 Construction from a pointset, constraint system or congruence system shall embed the corresponding base-domain value. Copying may share its representation, but subsequent mutation through either adapter shall preserve the other value. In a thread-safe build each copy shall own its own representation so that const queries on different threads can update the embedded values' caches independently. Assignment shall support self-assignment and return its receiver. Exchange shall swap the embedded values. pointset() const shall return a borrowed const view. Both pointset() overloads shall require an lvalue wrapper; mutable and const temporary wrappers shall be rejected. Mutable pointset() and mutate() shall first detach shared storage. A retained mutable reference shall not be used across subsequent copying or other operations that can share or replace its representation. Destruction shall release the representation when its last owner is destroyed.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Determinate order and distinguished values PPL-SPEC-001389 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.
-
3. Determinate operations and binary lifting PPL-SPEC-001390 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.
-
4. Determinate display, invariants and memory PPL-SPEC-001391 OK shall return the embedded pointset's invariant result. External memory shall include the representation object and its base external storage; total memory shall add sizeof(*this). Shared storage may be counted for each adapter. Stream insertion shall display the embedded pointset and return the supplied stream.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Descriptor collection identity and affine comparison PPL-SPEC-001645 For live valid constraint systems or generator systems, free equality shall compare their retained internal row sequences under 🔗 22. Internal sequence equality and bookkeeping scope: ambient dimension, row count, pending boundary and corresponding row values shall agree. Storage representation, capacity and sorted certificates shall not affect the result. Inequality shall negate equality. These predicates shall preserve their operands. Equality shall not minimize, reorder, remove duplicate rows or decide geometric equivalence of the represented conjunctions or hulls. Row-empty systems shall follow the underlying dimension/boundary rule without an additional topology comparison.
The free compare(x,y) for linear expressions shall forward the zero-extended affine ordering of 🔗 5. Backend equality, comparison and common-variable queries. It shall return -2 or 2 at the first differing homogeneous coefficient, -1 or 1 for a constant-only difference, and zero when all zero-extended coefficients agree. Equal affine values with different declared dimensions may therefore compare as zero. Initialization, coefficient arithmetic, lifetimes and synchronized access shall follow the selected descriptor or expression query.
-
2. Exact comparison of revised PIP tableau columns PPL-SPEC-001646 The file-local column_lower helper shall compare two scaled columns of an admitted revised PIP tableau. The equally sized mapping and basis sequences shall enumerate each nonbasic tableau row and each basic variable column once in variable order. Reconstruct column Cj at position k as the matrix entry at mapping[k],j for a nonbasic entry, and as one or zero according as a basic entry maps to j or another column. Compared columns shall be lexicographically positive. Both pivot rows shall be actual rows of that tableau, with strictly positive selected entries pa, pb.
The result shall be true exactly when − caCja ⁄ pa < lex − cbCjb ⁄ pb, comparing reconstructed components in the stated variable order. The two column indices and pivot rows may coincide; zero and either sign of the costs shall be admitted. No input shall change. Comparisons shall evaluate complete two- and three-factor products exactly without requiring comparison-only products to fit the stored coefficient profile. The normal initialized coefficient/temporary- resource prerequisites shall apply.
Omitting the final reconstructed component shall be permitted when the admitted tableau invariants prove it cannot be the first unequal component. For distinct columns and two nonzero costs, one of their distinct basic unit entries distinguishes them before the final position. With exactly one nonzero cost, its positive pivot entry also appears among the mapped rows, so its basic unit entry and that row cannot both occupy the final position. Two zero costs yield equal vectors. Same-column comparisons shall use the positive-column ratio ordering.
-
Incoming link from: 2. Expression-view coefficients, iterators and independent row export1
1. Borrowed expression-view construction and one-level access PPL-SPEC-001566 Expression_Adapter<T> shall borrow a const reference to its raw_type. Construction from a temporary raw owner shall be rejected by deleted rvalue overloads, including the transparent and hiding adapters. Copies and temporary adapter values may query their still-live lvalue raw owner. The raw expression shall outlive the adapter and every borrowed iterator or coefficient reference. Copying an adapter shall retain that binding; destroying it shall not destroy or modify the raw expression. Changes to the live raw expression shall be visible on subsequent queries; previously obtained references and iterators retain the raw type's invalidation rules.
inner() shall return the one-level T::const_reference view of the same raw expression. representation() shall report the raw representation. Expression_Adapter_Transparent<T> shall add no transformation to T's view. Construction and copying shall not copy coefficient storage.
-
2. Expression-view coefficients, iterators and independent row export PPL-SPEC-001567 For a view with visible dimension d and visible coefficient vector a = (a0, …, ad), inhomogeneous_term() and get(0) shall return a0; get(i) for 1 ≤ i ≤ d shall return ai. coefficient(Variable(k)) and get(Variable(k)) shall return ak + 1 for 0 ≤ k < d. These are borrowed const accesses. The transformations defining a and d are specified in 🔗 4. Expression view with a hidden inhomogeneous coefficient and 🔗 5. Expression view with an optional hidden final coordinate; a transparent view shall retain its inner view's coefficients and dimension.
begin()/end() shall delimit the nonzero homogeneous coefficients in increasing variable order, excluding the constant and every hidden last coordinate. lower_bound(v) shall select the first such variable at least v, or end(); a one-past-visible-dimension variable is admitted. Mutations shall follow 🔗 1. Borrowed expression-view construction and one-level access.
Each get_row(r) shall replace the dense or sparse output with an independent copy of all d + 1 visible coefficients, including zero slots. Altering that output shall not alter the raw expression, and later raw mutations shall not alter the output copy.
-
3. Expression-view predicates, coefficient ranges and support filtering PPL-SPEC-001568 With the vector and dimension in 🔗 2. Expression-view coefficients, iterators and independent row export, is_zero() shall hold exactly when every visible coefficient is zero; all_homogeneous_terms_are_zero() shall ignore a0. For 0 ≤ s ≤ e ≤ d + 1, range queries shall use the half-open raw-slot range [s, e): all_zeroes shall test every slot; num_zeroes shall count zero slots; gcd shall return their nonnegative greatest common divisor, with zero for an empty or all-zero range. first_nonzero(s,e) and last_nonzero(s,e) shall return the least/greatest nonzero slot or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero if no such slot exists.
all_zeroes(vars) shall test only the selected variable coefficients; all_zeroes_except(vars,s,e) shall test the range after excluding those variables, with slot zero never excluded by a variable set. has_a_free_dimension_helper(indices) shall remove precisely the selected raw slots whose visible coefficients are nonzero, inserting no new indices. Variable sets and raw indices shall be within the visible dimension.
Full is_equal_to(y) shall require equal dimensions and equal visible coefficients. Range equality shall compare the selected slots; scaled equality shall test c1ai = c2bi for every selected slot. Both operands shall admit the selected range; an operand passed to an overload requiring conversion to raw_type shall support that conversion. Scaled products shall satisfy the configured coefficient arithmetic's representability preconditions. The coefficient prerequisites in 🔗 1. Affine value, numerical prerequisites and shared zero shall apply, including representability of the nonnegative gcd and of each scaled product when required by the configured arithmetic. Underlying numerical exceptions shall propagate without modifying the borrowed expression. Empty-range equality shall hold. have_a_common_variable(y,first,last) shall hold exactly when some variable in the valid half-open variable range has nonzero coefficients in both operands; constants shall be irrelevant.
-
Incoming link from: 2. Expression-view coefficients, iterators and independent row export1
4. Expression view with a hidden inhomogeneous coefficient PPL-SPEC-001569 Expression_Hide_Inhomo<T> shall preserve its inner view's dimension and homogeneous coefficients and expose zero as the inhomogeneous coefficient, even when the raw constant is nonzero. All queries and row exports in 🔗 2. Expression-view coefficients, iterators and independent row export and 🔗 3. Expression-view predicates, coefficient ranges and support filtering shall use this transformed vector. Hiding the constant shall neither alter it in the raw expression nor hide any homogeneous coefficient. In a composition, the transformation shall apply to the one-level inner view, retaining the same borrowed raw object.
-
Incoming link from: 2. Expression-view coefficients, iterators and independent row export1
5. Expression view with an optional hidden final coordinate PPL-SPEC-001570 Expression_Hide_Last<T>(raw,false) shall preserve its inner view. With hide_last == true, the inner dimension shall remain positive for every operation, and the view shall expose dimension one less, omitting exactly the inner view's final homogeneous coefficient. The constant and preceding coefficients shall remain unchanged. All queries and row exports in 🔗 2. Expression-view coefficients, iterators and independent row export and 🔗 3. Expression-view predicates, coefficient ranges and support filtering shall use this prefix. The stored hiding choice shall remain fixed; the currently hidden coordinate shall follow the inner view's current dimension after a valid raw resize.
compare(x,y) for two matching hidden-last adapter types shall compare their homogeneous coefficient sequences lexicographically in increasing variable order, treating missing trailing coefficients as zero. It shall return − 2, zero or 2 according to the first unequal coefficient. Constants, hidden coefficients and trailing zero dimensions shall not affect this comparison. It shall neither mutate its operands nor compare affine constants.
-
Incoming links from: 2. Independent backend construction, copying and affine arithmetic 3. Raw coefficient access, zero ranges, gcd and support filtering 4. Range scaling and exact affine elimination 5. Backend equality, comparison and common-variable queries 6. Owned raw iterator handles and borrowed coefficient positions 7. Backend row export, serialization, diagnostics and accounting6
1. Internal affine value, coefficient storage and dispatch prerequisites PPL-SPEC-001622 For Row equal to Dense_Row or Sparse_Row, a live Linear_Expression_Impl<Row> of dimension d shall own d + 1 coefficient slots. Slot zero shall contain the constant; slot i + 1 shall contain the coefficient of Variable(i). Dense storage shall retain zero slots; valid sparse expression storage shall contain no explicit zero entries. Trailing zero coordinates shall retain the ambient dimension. representation() shall return DENSE or SPARSE accordingly, and max_space_dimension() shall equal Row::max_size()-1.
Calls shall satisfy the initialization, synchronization, coefficient-range and resource conditions of 🔗 1. Affine value, numerical prerequisites and shared zero. Raw slot indices shall be in [0, d + 1) and half-open windows shall satisfy 0 ≤ s ≤ e ≤ d + 1. A new dimension shall fit the selected backend's maximum; its increment for the constant slot shall be representable. Internal coordinate transformations shall receive in-dimension variables, valid distinct permutation cycles, and growth within that maximum.
An argument dispatched through Linear_Expression_Interface shall have one of these two concrete backend types. Dispatch shall preserve the operation's meaning for every dense/sparse pairing. Setters and dimension transformations shall implement the coefficient effects of 🔗 5. Ambient dimension queries and trailing-coordinate resizing, 🔗 6. Coefficient access, replacement and zero predicates and 🔗 12. Explicit coefficient-coordinate transformations on these admitted inputs. A const access shall borrow its coefficient according to the selected traits; reads beyond the homogeneous dimension through coefficient(v) shall return zero. Mutations shall invalidate borrowed positions according to their storage.
The internal row_data() accessor shall borrow the complete read-only row only from a live lvalue expression. Mutable and const temporary expression owners shall be rejected. A row borrow shall not outlive its owner or a mutation that invalidates the underlying coefficient storage.
coefficient_is_owned(n) shall identify a reference to a stored coefficient in assertion builds when coefficient arguments use reference traits, without changing the expression. With value traits or assertions disabled it shall return false. Internal scalar-independence preconditions shall apply in every build mode; that diagnostic predicate shall not replace them.
-
2. Independent backend construction, copying and affine arithmetic PPL-SPEC-001623 Default construction shall create the zero expression of dimension zero; coefficient and variable construction shall implement 🔗 2. Zero, constant, variable and dimensioned construction. The sizing constructor's Boolean argument shall distinguish its overload and shall not alter its meaning: it shall create the zero expression of the admitted requested dimension. Ordinary, cross-storage and interface-based copy construction shall produce independent coefficients. A dimensioned copy shall retain the selected prefix and zero-extend as necessary. Private construct helpers shall establish those same copied values. Destruction shall release the owned row without changing a distinct source.
Backend affine additions, subtractions, multiplication, truncating division, negation, normalization and coordinate updates shall implement the value rules of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization. Expression addition and subtraction shall admit self operands. Whole-expression combinations and scaled accumulations shall receive a distinct source; their scalar arguments shall be independent of modified target coefficients. Multiplication and division factors shall likewise be independent of the target. Division shall receive a nonzero divisor. Scaled variable accumulation shall retain the variable's dimension even for a zero factor; zero-factor scaled expression accumulation shall preserve the target's current dimension and value.
The prerequisites of 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites shall apply. Each operation that returns a backend reference shall return its target. Distinct sources shall retain their values and dimensions.
-
3. Raw coefficient access, zero ranges, gcd and support filtering PPL-SPEC-001624 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get(i) shall return the raw coefficient ai; set(i,n) shall replace it by the entry value of n, removing a sparse entry when zero. is_zero() shall test every slot; all_homogeneous_terms_are_zero() shall exclude slot zero.
For an admitted window [s, e), all_zeroes shall test every slot, num_zeroes shall count zero slots, and gcd shall return the nonnegative greatest common divisor of those coefficients. An empty or all-zero window shall have gcd zero. The positive gcd shall be representable in the selected coefficient type. first_nonzero(s,e) and last_nonzero(s,e) shall return the least and greatest nonzero slot, respectively, or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero for the all-zero vector.
all_zeroes(vars) shall test precisely the selected homogeneous coefficients. all_zeroes_except(vars,s,e) shall test the window after excluding the selected variable coefficients; slot zero shall never be excluded by a variable set. Empty windows shall satisfy both universal predicates. has_a_free_dimension_helper(indices) shall retain exactly those input raw indices whose coefficients are zero, inserting no new indices. Variable sets and raw indices shall be within the respective admitted extent. All queries shall preserve the expression.
-
4. Range scaling and exact affine elimination PPL-SPEC-001625 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, mul_assign(c,s,e) shall multiply exactly the raw slots in [s, e) by c; zero shall clear that window. exact_div_assign(c,s,e) shall divide those slots exactly by a nonzero c that divides every selected coefficient. negate(s,e) shall negate precisely those slots. Every operation shall retain dimension and all coefficients outside its window.
For distinct target x and source y, range linear_combine shall assign xi : = c1xi + c2yi from entry values for s ≤ i < e, with nonzero scalars. linear_combine_lax shall admit zero scalars as well. Both windows shall fit their respective expressions. Whole-expression forms shall use the maximum input dimension and zero-extend absent coordinates. Scalar arguments shall be live and independent of modified target coefficients. The source shall retain its value and dimension. Empty windows shall preserve the target; valid sparse results shall contain no explicit zeros.
The raw-index elimination overload shall require equal dimensions, a distinct source and nonzero pivot coefficients xk, yk. With g = gcd(|xk|, |yk|) > 0, it shall replace every target coefficient by (yk ⁄ g)xi − (xk ⁄ g)yi. The selected pivot shall become zero. The variable overload shall use raw index v.space_dimension(). All evaluated coefficient arithmetic, including normalization factors, shall meet the selected profile's representability conditions.
-
Incoming link from: 1. Descriptor collection identity and affine comparison1
5. Backend equality, comparison and common-variable queries PPL-SPEC-001626 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, full is_equal_to(y) shall require equal dimensions and equal raw coefficient vectors. Range equality shall compare only the admitted common window. Scaled range equality shall test c1xi = c2yi at every selected slot, including when either scalar is zero. Each evaluated scaled product shall be representable. Empty-window equality shall hold.
compare(y) shall compare homogeneous coefficients in increasing variable order, treating absent trailing coefficients as zero, and compare the constant only if all homogeneous coefficients agree. It shall return -2 or 2 for the first homogeneous difference, -1 or 1 for a constant-only difference, and zero for equal zero-extended affine values. Consequently, different declared dimensions containing only additional zero coefficients may compare as zero while failing full dimension-sensitive equality.
have_a_common_variable(y,first,last) shall hold exactly when some variable in the admitted half-open variable range has nonzero coefficients in both operands. Constants shall be irrelevant. All queries shall preserve their operands and shall have the same meaning through typed and interface dispatch.
-
6. Owned raw iterator handles and borrowed coefficient positions PPL-SPEC-001627 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, begin() and end() shall allocate independent polymorphic iterator handles delimiting the nonzero homogeneous coefficients in increasing variable order. lower_bound(v) shall allocate a handle at the first such variable at least v, or at end. The search variable shall be within the dimension or its one-past position. The caller shall delete each allocated handle through its virtual interface. The handles shall borrow the live expression's row without owning it.
Direct nested-iterator construction shall require a row of at least one slot and a starting raw index 1 ≤ i ≤ row.size(). It shall borrow that row at the first nonzero slot at or after i, or at end. The row shall outlive every such handle.
clone() shall allocate an independent handle at the same borrowed position. Advancing or destroying one handle shall preserve another handle's position and the coefficients. Dereference, variable() and index() shall require a live non-end position; index shall be variable().id()+1. Increment shall move to the next nonzero homogeneous coefficient, admitting arrival at end. Decrement shall require a preceding nonzero homogeneous coefficient and shall move to it, including from end. Constant slot zero shall be excluded.
Equality shall compare positions in the same row and concrete iterator type. Expression mutation shall invalidate borrowed positions as declared for the row; the caller shall obtain new handles afterward. Allocation failures shall propagate without changing the expression or existing handles. The internal zero-skipping helpers shall implement this traversal without changing values.
-
Incoming link from: 6. Sparse equality and line pivot selection1
7. Backend row export, serialization, diagnostics and accounting PPL-SPEC-001628 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get_row(r) shall replace a dense or sparse output with an independent copy of the complete raw coefficient vector. The copy shall include its logical extent, all constant and trailing zero slots, and shall not borrow the backend's coefficient storage.
ascii_dump(stream) shall emit size, the raw slot count, and every coefficient in slot order, using the producer grammar of 🔗 13. Reloadable ASCII export and replacement loading. ascii_load(stream) shall implement that raw grammar: require its exact size keyword and a nonzero raw count, replace the row and read exactly that many coefficients. Normal malformed or truncated extraction shall return false; resource and stream exceptions shall propagate. A rejected or throwing load may leave a partially replaced row; only destruction shall be required until the caller restores a valid value. A following token shall remain available after a complete record. The selected coefficient input grammar, stream formatting and exception masks shall retain their ordinary behavior.
print(stream) and the free stream insertion shall implement the affine format and variable formatter dispatch of 🔗 14. Human-readable affine output and formatter dispatch; insertion shall return its stream. Source values shall be preserved by export and print. OK() shall return false for a row of size zero, and sparse OK() shall also reject any explicit stored zero, with its documented diagnostic to std::cerr. This local check shall not inspect unrelated domain state. external_memory_in_bytes() shall report the owned row's external storage; total_memory_in_bytes() shall add sizeof(*this).
-
Incoming links from: 2. Floating constant linearization 3. Unary and unsupported operator dispatch 4. Rounding-aware addition linearization 5. Rounding-aware subtraction linearization 6. Interval-scalar multiplication linearization 7. Nonzero interval-divisor linearization 8. Floating and integer cast linearization 9. Reference association and symbolic-store lookup8
1. Target-adapted floating expression evaluation PPL-SPEC-000991 For a well-formed floating-point expression and sound composite abstract store, linearize() shall return true only with a linear form enclosing every modeled expression value consistent with the entry inputs, including the analyzed operations' rounding error. Target nodes and the oracle shall meet 🔗 4. Target-specific concrete-expression adapter protocol, 🔗 6. Oracle interval and expression-value queries and 🔗 7. Oracle reference-to-coordinate associations. Each stored affine binding shall already enclose the corresponding coordinate in that same modeled state. Correlations shall use consistent coordinate identities.
C shall have a supported native floating-point boundary type and sound interval operations under its initialized arithmetic/FPU prerequisites. Modeled metadata shall not itself establish numerical format support. The selected relative/absolute-error helpers shall support every format for which the operation needs an error bound. Allocation, callback and selected arithmetic operations shall satisfy their documented preconditions.
On false return, the output shall not establish a complete enclosure; no preservation of its prior value shall be promised. Documented callback, resource and unsupported-operation exceptions may propagate. Output owners shall remain safely destructible and reusable after such failure. Analysis shall use input entry values even when result designates a store binding; only the designated output may then change, and other input bindings and target nodes shall remain unchanged. No node or oracle ownership shall be acquired.
-
2. Floating constant linearization PPL-SPEC-000992 For a floating-constant node, linearize() shall query the oracle for that constant. Refusal shall return false. Success shall replace result with a dimension-zero form whose constant is the returned interval and whose homogeneous coefficients are zero. This leaf shall add no operation-rounding error beyond the oracle's enclosure. A valid unbounded oracle interval shall remain an admitted constant result; true at this leaf shall not by itself certify finite coefficients. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.
-
3. Unary and unsupported operator dispatch PPL-SPEC-000993 For unary UPLUS, linearize() shall return the operand's linearization without an additional rounding term. For UMINUS, it shall propagate operand refusal; on success it shall negate every coefficient interval, preserving the operand form's dimension. Unary BNOT shall report unsupported evaluation by throwing std::runtime_error.
Binary REM, BAND, BOR, BXOR, LSHIFT and RSHIFT shall return false without claiming a result. ADD, SUB, MUL and DIV shall dispatch to their matching helper contracts. Unknown kind/operator codes inconsistent with the target protocol shall be outside the admitted interface. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.
-
4. Rounding-aware addition linearization PPL-SPEC-000994 add_linearize() shall require an ADD node and linearize both operands in the same entry store. When either operand refuses, it shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Let L1, L2 be their forms, Rf the selected format's relative-error form from 🔗 21. Format-specific relative-error linear form, and Af the interval returned by compute_absolute_error<C>(f). The output shall soundly enclose the coefficient-wise combination L1 + L2 + Rf(L1) + Rf(L2) + Af, retaining symbolic coordinate terms. It shall return false if the resulting coefficients are unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern runtime, entry-value, exception and ownership semantics.
-
5. Rounding-aware subtraction linearization PPL-SPEC-000995 sub_linearize() shall require a SUB node and linearize both operands in the same entry store. Operand refusal shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Using L1, L2, Rf, Af as in 🔗 4. Rounding-aware addition linearization, the output shall soundly enclose L1 − L2 + Rf(L1) + Rf(L2) + Af, using coefficient-wise interval operations and preserving the operands' coordinate identities. It shall return false if any resulting coefficient is unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern common prerequisites and failure effects.
-
6. Interval-scalar multiplication linearization PPL-SPEC-000996 mul_linearize() shall require a MUL node, obtain both operand forms and intervalize both through the oracle. Failure of any required linearization or coordinate query shall return false. It shall select a bounded intervalized operand for scalar multiplication; if neither operand has a bounded interval enclosure it shall return false. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a dimension-zero form containing the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Width estimates may choose either bounded operand and shall not promise optimal precision.
For a bounded retained form, if I1 is selected, the result shall soundly enclose I1L2 + I1Rf(L2) + Af; if I2 is selected it shall soundly enclose I2L1 + I2Rf(L1) + Af. Scalar multiplication shall preserve the other operand's symbolic coordinates. It shall return false for an unbounded result coefficient, and true otherwise. Common notation and prerequisites shall follow 🔗 4. Rounding-aware addition linearization and 🔗 1. Target-adapted floating expression evaluation.
-
7. Nonzero interval-divisor linearization PPL-SPEC-000997 div_linearize() shall require a DIV node and first obtain the denominator's linear form and oracle-based interval enclosure. Required query refusal shall return false. If the closed hull of the denominator interval reaches zero it shall return false, including a zero endpoint excluded by openness. Thus a successful division shall not rely on an unproved nonzero denominator. A one-sided unbounded denominator whose closed hull excludes zero shall remain admitted when the selected interval arithmetic supports it.
It shall then linearize the numerator, propagating refusal. An unbounded numerator coefficient shall cause refusal before its relative-error form is constructed. For numerator form L1 and denominator enclosure I2, it shall soundly enclose L1 ⁄ I2 + Rf(L1) ⁄ I2 + Af, retaining numerator coordinates. An unbounded result coefficient shall return false; a bounded result shall return true. Common prerequisites and notation shall follow 🔗 1. Target-adapted floating expression evaluation and 🔗 4. Rounding-aware addition linearization.
-
8. Floating and integer cast linearization PPL-SPEC-000998 cast_linearize() shall require a floating-result cast node. For a floating argument it shall linearize that argument, propagating refusal. When the destination format contains every finite value representable by the source format, it shall retain the resulting form without added cast error. A constant enclosure certified by 🔗 11. Constant affine enclosures closed under destination rounding shall also require no added cast error.
For an integer argument it shall obtain a sound interval through get_integer_expr_value(), returning false on refusal. If the destination contains every finite value of the analyzer boundary format, it shall close any excluded finite endpoints of that interval and retain the resulting constant form without a further error term. Equality of formats shall satisfy this inclusion condition. Other integer enclosures certified by 🔗 11. Constant affine enclosures closed under destination rounding shall remain unchanged without an error term.
Value-set inclusion shall use is_less_precise_than(): the destination contains the analyzer exactly when !is_less_precise_than(destination, analyzer). The converse difference predicate shall not establish inclusion for incomparable formats.
In the remaining cases it shall add destination-format relative and absolute error enclosures. An unbounded input coefficient shall cause refusal before relative error is constructed. Unbounded resulting coefficients shall return false and bounded coefficients true. Error-free casts may retain admitted unbounded enclosures; success alone shall not certify finite coefficients. Common numerical and entry-value rules shall follow 🔗 1. Target-adapted floating expression evaluation; unsupported selected error helpers may report their documented exceptions.
-
9. Reference association and symbolic-store lookup PPL-SPEC-000999 For an approximable reference, linearize() shall obtain its possible coordinate identities from the oracle. Refusal or an empty association set shall return false. For a single associated coordinate, an existing store binding shall be copied into the result; an unbounded copied form shall return false. If that key is absent, the result shall be the exact unit variable form for that coordinate, with dimension equal to its index plus one. This symbolic fallback shall not require a numerical coordinate query.
For multiple possible coordinates it shall query every required coordinate interval and return false on refusal. Otherwise it shall form their interval hull as a dimension-zero constant form, returning true exactly when its coefficient is bounded. It shall not arbitrarily select one possible identity or combine alternatives as a conjunction. Coordinate validity, entry-value copying and common lifetime/numerical rules shall follow 🔗 7. Oracle reference-to-coordinate associations and 🔗 1. Target-adapted floating expression evaluation.
-
1. Dependency invalidation PPL-SPEC-000988 For a well-formed affine store, discard_occurrences(store, var) shall erase exactly those bindings whose linear form has a coefficient for var unequal to the singleton zero interval. It shall preserve every other key and associated value. An absent coordinate beyond a form's stored dimension shall have zero coefficient as specified by 🔗 6. Dimensions and borrowed coefficient access. An uncertain coefficient containing zero and other values shall count as a dependency. The operation shall accept empty stores and shall not create a binding.
Store keys and referenced coordinates shall be valid dimension indices; each form shall meet the interval-coefficient and lifetime prerequisites of 🔗 1. Interval-linear-form meaning and numerical prerequisites. No PPL initialization or native floating-point arithmetic shall be required when the selected exact interval operations require neither. Erasing a binding shall invalidate references to that binding; references to retained bindings shall remain valid.
-
2. Affine assignment and dependency invalidation PPL-SPEC-000989 affine_form_image(store, var, form) shall first assign a copy of the entry value of form to the key var.id(), inserting or replacing the binding. It shall then perform the dependency invalidation specified by 🔗 1. Dependency invalidation for var across the resulting store. Consequently, a newly assigned form depending on var shall also be discarded. The input may be a form borrowed from the same store, including the target binding; copying shall use its entry value before any removal can destroy that donor. An independent donor shall remain unchanged.
Valid keys, interval operations and lifetimes shall meet 🔗 1. Dependency invalidation. Allocation or coefficient-operation exceptions may propagate; no rollback of the entire store shall be promised, but existing owners shall remain safely destructible. After normal return, every retained binding shall be independent of the assigned coordinate.
-
3. Common-binding affine-store join PPL-SPEC-000990 upper_bound_assign(left, right) shall retain exactly the bindings of left whose keys also occur in right and whose associated linear forms are equal according to 🔗 14. Coefficient equality with implicit trailing zeros. Every other left binding shall be erased. No right-only binding shall be inserted. The retained forms and the right operand shall remain unchanged. Explicit trailing zero coefficients shall not cause mathematically equal forms to be discarded. Joining a store with itself shall preserve all bindings.
Both stores shall meet 🔗 1. Dependency invalidation and describe consistent coordinate identities. Coefficient comparison shall be supported for their selected interval type. Empty operands shall be admitted; an empty right operand shall remove every left binding. Exceptions from selected coefficient comparisons may propagate without a whole-store rollback promise; surviving owners shall remain safely destructible.
-
1. Addition and subtraction of intervals admitting infinity points PPL-SPEC-001716 For extended-real entry sets X and Y, add_assign(x,y) and sub_assign(x,y) shall enclose the hull of all their defined extended-real sums and differences. Opposite infinities shall have no sum and equal infinities no difference; these undefined pairs shall contribute no value. With exact endpoint operations and supported membership the enclosure shall be exact. If there is no defined pair, the result shall be empty.
A finite nonempty interval combined with an included infinity singleton shall give the corresponding signed infinity, reversing the right infinity for subtraction. Equal-sign infinity singleton sums and opposite-sign singleton differences shall retain the defined infinity. For rays, a finite extremum shall be attained exactly when its required source extrema are attained; a same-sign infinite sum shall be included if either operand can attain that infinity. Opposite outward rays shall retain every defined finite sum, independently of whether their infinite endpoints are included.
Intervals shall be initialized and valid over a common extended-real carrier whose numerical and information policies admit both actual infinity points and their exclusion. An excluded infinite endpoint shall denote an unbounded finite extent, not an included point. NaN shall not be an interval element. The receiving policy shall admit empty results and the required endpoint membership. Scalar kernels and every finite intermediate shall meet their range, policy, resource, canonical-rational, synchronization, temporary-storage and caller-owned FPU prerequisites. An inexact endpoint operation or an unsupported membership distinction may enlarge an image but shall not exclude defined results.
The receiver may alias either interval operand, using both entry sets; distinct operands shall remain unchanged. Failures shall retain the scalar operation's guarantees without a universal rollback promise. Returned I_Result claims shall retain 🔗 1. Interval result possibilities and status-flag set operations. Ordinary-real intervals shall retain 🔗 2. Ordinary interval addition and subtraction, 🔗 3. Ordinary interval multiplication and 🔗 4. Ordinary interval division and zero-divisor abstraction.
-
Incoming link from: 3. Degenerate and singular extended interval products and quotients1
2. Sign-stable extended interval products and quotients PPL-SPEC-001717 For two nonempty extended-real intervals each wholly strictly positive or wholly strictly negative, mul_assign(x,y) and div_assign(x,y) shall enclose the interval hull of all defined extended-real products or quotients. A zero endpoint may be approached but shall not be included under this sign-stable contract. Infinity divided by infinity shall be undefined and contribute no value; finite values divided by an included infinity shall contribute zero. With exact admitted endpoint operations and supported membership, the resulting enclosure shall be exact for these sign-stable operands.
The signs shall select the mathematical orientation of the result. An infinite product shall be included when an applicable infinite factor is included and a nonzero partner exists. A quotient's zero endpoint shall be included when a finite numerator can be divided by an included infinity; an infinite quotient shall be included when an included infinite numerator has a finite nonzero denominator. Endpoint limits alone shall not establish attainment. These rules shall allow zero and infinity inclusion to vary independently in a ray quotient.
Intervals shall be initialized and valid over a common extended-real carrier whose numerical and information policies admit both actual infinity points and their exclusion. An excluded infinite endpoint shall denote an unbounded finite extent, not an included point. NaN shall not be an interval element. The receiving policy shall admit empty results and the required endpoint membership. Scalar kernels and every finite intermediate shall meet their range, policy, resource, canonical-rational, synchronization, temporary-storage and caller-owned FPU prerequisites. An inexact endpoint operation or an unsupported membership distinction may enlarge an image but shall not exclude defined results.
The receiver may alias either interval operand, using both entry sets; distinct operands shall remain unchanged. Failures shall retain the scalar operation's guarantees without a universal rollback promise. Returned I_Result claims shall retain 🔗 1. Interval result possibilities and status-flag set operations. Ordinary-real intervals shall retain 🔗 2. Ordinary interval addition and subtraction, 🔗 3. Ordinary interval multiplication and 🔗 4. Ordinary interval division and zero-divisor abstraction.
-
3. Degenerate and singular extended interval products and quotients PPL-SPEC-001718 For initialized, valid intervals over a common extended-real carrier, mul_assign(x,y) and div_assign(x,y) shall enclose every defined extended-real product or quotient of their entry sets. NaN shall not be an interval element. Zero times infinity, infinity divided by infinity and division by zero shall be undefined and shall contribute no value. An empty operand shall yield an empty result.
With exact admitted endpoint operations and supported membership, an infinity singleton multiplied by a finite interval shall yield empty if that interval contains only zero, the appropriately signed infinity if its nonzero elements have one sign, and the interval hull of both infinity points if both signs occur. An included zero shall contribute no extra product. Products of infinity singletons shall retain the product sign. An infinity singleton divided by a finite interval shall have the analogous sign-dependent image of its nonzero denominator elements. Dividing an infinity singleton by another infinity singleton or by a zero singleton shall yield empty. Dividing a nonempty finite interval by an included infinity singleton shall yield the zero singleton.
For a finite strictly positive or strictly negative numerator interval and a one-sided finite denominator interval approaching zero, division shall enclose the correspondingly signed unbounded ray. An infinite bound that arises only as a limit shall be excluded when the receiving policy can express that distinction. For a denominator with both negative and positive finite elements, a conservative universe result shall be permitted, including when the exact quotient has disconnected pieces. When a nonempty finite numerator is divided by a denominator containing zero and values of both signs, the returned I_Result shall include I_SINGULARITIES under 🔗 1. Interval result possibilities and status-flag set operations. A singularity indication shall not assert that an undefined pair has a value.
The source and receiving policies shall admit the required actual infinity points, empty results and finite scalar operations. An excluded infinite endpoint shall denote an unbounded finite extent. Numerical intermediates, resources, canonical-rational values, synchronization, shared temporaries and caller-owned FPU state shall meet the scalar kernels' prerequisites. Inexact arithmetic or an unsupported membership distinction may enlarge the result but shall not exclude defined values. Receiver aliases shall use both entry sets; distinct operands shall remain unchanged. Scalar failures shall retain their own guarantees without a universal rollback promise. Sign-stable cases shall retain 🔗 2. Sign-stable extended interval products and quotients, and ordinary-real interval division shall retain 🔗 4. Ordinary interval division and zero-divisor abstraction.
-
1. Infinity ordering and unordered scalar predicates PPL-SPEC-000920 The named Boolean comparisons in 🔗 1. Exact scalar sign and ordering and 🔗 2. Mixed finite floating and exact scalar ordering shall admit the supported infinity and quiet-NaN representations of their operand types and policies. Minus infinity shall be less than every finite value, which shall be less than plus infinity. Equal-sign infinities shall compare equal; opposite-sign infinities shall compare unequal. Finite values shall retain those existing exact comparison contracts, including mixed storage and signedness.
Whenever either operand is NaN, equal, less_than, less_or_equal, greater_than and greater_or_equal shall return false; not_equal shall return true, including a NaN compared with itself. The corresponding six PPL operators shall have the same meanings when at least one operand is checked. This shall not redefine built-in operators between two raw native values.
For operands that are finite or infinite, cmp shall return a negative, zero or positive int according to that extended ordering. sgn shall return -1 for minus infinity and 1 for plus infinity; finite results shall retain their existing contract. Neither ordered cmp nor sgn shall admit a NaN operand under this contract. No result-handler dispatch or constructor/operator/function rounding default shall be required.
Special representations shall be admitted only under their configured native-format or checked-policy capabilities, following 🔗 1. Native floating-point NaN and infinity predicates, 🔗 1. Typed special-marker assignment to native integer storage, 🔗 2. Typed special-marker assignment to GMP integer and rational storage and 🔗 1. Checked special-marker construction and policy assignment. A reserved bit pattern shall retain its finite meaning in another policy that does not reserve it. Native floating sources shall require the corresponding configured support; NaN sources shall be quiet. Finite rational payloads shall remain canonical; admitted rational special payloads shall retain their separate representation contract. Objects may alias the same operand and shall remain live and unchanged throughout the query.
Resource and synchronization prerequisites for finite comparisons shall retain 🔗 1. Exact scalar sign and ordering and 🔗 2. Mixed finite floating and exact scalar ordering. No library/thread initialization, coefficient-constant stage or FPU rounding setup shall be required. Queries shall preserve the hardware rounding direction; floating exception flags shall follow the selected native comparison operations.
-
1. Finite native floating addition of an accumulated product PPL-SPEC-000521 The accumulator and both sources shall be live admitted same-format native or Checked_Number<F, Check_Overflow_Policy<F>> objects as in 🔗 4. Rounding, result classes and state for finite native binary arithmetic, with finite entry values z, a and b. add_mul_assign_r shall accumulate z + ab using the configured native multiply/add precision in 🔗 3. Configured native accumulation precision and truthful result relations. Its rounding request, result class/relation and hardware prerequisites shall follow 🔗 3. Configured native accumulation precision and truthful result relations. A directed result shall bound the exact real expression z + ab in the requested direction.
The accumulator may alias either source and both sources may alias each other, including all three arguments sharing one object. The expression shall use entry values for every occurrence. Distinct source objects shall remain unchanged. No configured coefficient range or rational irrational-precision setting shall restrict the calculation. Object, resource, synchronization and initialization conditions shall follow 🔗 3. Configured native accumulation precision and truthful result relations.
-
Incoming link from: 4. Checked named product accumulation1
2. Finite native floating subtraction of an accumulated product PPL-SPEC-000522 For finite accumulator and source entry values z, a and b and the types/preconditions in 🔗 1. Finite native floating addition of an accumulated product, sub_mul_assign_r shall accumulate z − ab using the configured native multiply/add precision and rounding protocol in 🔗 3. Configured native accumulation precision and truthful result relations. A directed result shall bound that exact real expression in the requested direction. Operand and accumulator aliases shall use their entry values, including all-three aliasing. Distinct sources shall remain unchanged; other prerequisites and preservation conditions shall follow 🔗 1. Finite native floating addition of an accumulated product.
-
Incoming links from: 5. Extended accumulated products and enabled fault diagnosis 4. Checked named product accumulation 1. Finite native floating addition of an accumulated product 1. Finite native floating addition of an accumulated product 1. Finite native floating addition of an accumulated product 2. Finite native floating subtraction of an accumulated product6
3. Configured native accumulation precision and truthful result relations PPL-SPEC-000523 For each supported native format, when the matching fast-FMA path is enabled by the configured PPL_HAVE_DECL_FMA* capability, native FP_FAST_FMA* macro and platform support, a product accumulation shall use one final rounding of the exact complete expression. Otherwise, evaluation may use either a single contracted operation rounded in the destination format F, or separate product and addition operations in the configured native evaluation format E. E shall contain the values of F and shall be established from the supported compiler/backend settings and floating-point control state. It may equal F. For an x87 evaluation path with a 64-bit significand precision control, E is the binary extended format with 64 significand bits and the x87 exponent range. An intermediate product may be narrowed to F for storage and then reloaded exactly into E. The final result shall be narrowed to F.
Let rdT denote rounding to format T in direction d. For exact finite entry values z, a and b, a separate addition-of-product path shall therefore produce one of
rdF(rdE(z + rdE(ab))) or rdF(rdE(z + rdF(rdE(ab)))).
Only paths enabled by the configured compiler/backend and control state shall be admitted. Subtraction shall replace ab by − ab before any product rounding. For directed requests, every arithmetic step and narrowing store shall preserve the requested bound: downward for ROUND_DOWN and upward for ROUND_UP. An implementation may equivalently negate an upward bound to obtain a downward bound, provided that rounding occurs before the final negation. Consequently, separate evaluation need not produce the closest F bound on the complete expression. No other conservative value shall be admitted solely because it bounds that expression.
ROUND_IGNORE shall use the caller's hardware direction at each step. ROUND_NOT_NEEDED shall require every rounded step of the selected precision path to be exact and finite, and shall preserve the exact complete expression. ROUND_STRICT_RELATION shall not change value selection. Directed, strict or exactness requests shall require an upward native hardware direction; unflagged ROUND_IGNORE shall admit every supported hardware direction. Backend setup, floating-point exception and resource conditions, hardware preservation, live-object/synchronization requirements and initialization independence shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic.
For a finite result, unflagged downward/upward/delegated requests may return V_GE/V_LE/V_LGE respectively. With strict relation requested and sufficient inexact information, a directed request shall distinguish equality from the corresponding strict inequality. A strict delegated result shall contain the actual comparison between the exact complete expression and the stored value; intermediate rounding flags shall not by themselves justify excluding equality. When the available information cannot establish a strict comparison, the returned weak relation shall retain every possible actual comparison. Exactness requests shall use the exactness result rules in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. Computed infinities shall carry their actual result class and relation, including an infinite directed bound caused by an intermediate overflow in a nonfused evaluation.
Signed zeros shall follow the selected precision path. A zero product shall use the exclusive-or of the factor signs, inverted for subtraction. At a final addition, two zero summands of the same sign shall retain that sign; opposite signs or exact cancellation of nonzero summands shall produce negative zero only for downward evaluation. A nonzero exact value of a rounded step that underflows to zero shall retain its sign. In a separate evaluation, these addition rules shall use the evaluated and, if stored, narrowed product, including its zero sign, rather than the exact complete-expression sign.
-
1. Finite native floating-point addition and subtraction PPL-SPEC-000481 For admitted source/destination types and rounding requests in 🔗 4. Rounding, result classes and state for finite native binary arithmetic, add_assign_r(to, x, y, dir) shall compute the exact-real expression a + b and sub_assign_r the expression a − b, where a and b are the finite represented entry values of the two sources. The destination shall hold the rounded value and the returned Result shall describe it as specified there. Overflow into an infinite bound shall not introduce a bounded coefficient intermediate.
For an exact zero sum, equal-sign zero operands shall retain their common sign. All other exact-zero sums, including cancellation of nonzero values, shall produce negative zero under downward evaluation and positive zero under upward, toward-zero or nearest-even evaluation. For subtraction this rule shall apply to the signs of x and the negation of y. A nonzero exact result rounded to zero shall retain that real result's sign.
Source aliases, object validity, preservation, synchronization, backend setup, initialization independence and floating-point state prerequisites shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic.
-
2. Finite native floating-point multiplication PPL-SPEC-000482 For admitted source/destination types and rounding requests in 🔗 4. Rounding, result classes and state for finite native binary arithmetic, mul_assign_r(to, x, y, dir) shall compute the exact-real product ab of the finite represented source entry values. It shall assign the rounded product and return the Result specified there. A zero product, including one produced by underflow, shall have the exclusive-or of the source sign bits. This shall include both signs of zero, ordinary values, finite extrema and subnormals.
No bounded coefficient intermediate shall limit the native format's range. Source aliases, object validity, preservation, synchronization, backend setup, initialization independence and floating-point state prerequisites shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic.
-
3. Finite native floating-point division by a nonzero value PPL-SPEC-000483 For admitted source/destination types and rounding requests in 🔗 4. Rounding, result classes and state for finite native binary arithmetic, div_assign_r(to, x, y, dir) shall require a nonzero finite divisor and a finite numerator. It shall compute the exact-real quotient a ⁄ b from their represented entry values, assign its rounded value and return the Result specified there. A zero quotient, including one produced by underflow, shall have the exclusive-or of the source sign bits.
The quotient may be nondyadic and shall not be described as exact merely because the division completed. No bounded coefficient intermediate shall limit the native format's range. Source aliases, object validity, preservation, synchronization, backend setup, initialization independence and floating-point state prerequisites shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic.
-
Incoming links from: 1. Same-storage checked compound arithmetic 1. Finite native floating addition of an accumulated product 3. Configured native accumulation precision and truthful result relations 3. Configured native accumulation precision and truthful result relations 1. Finite native floating-point addition and subtraction 1. Finite native floating-point addition and subtraction 2. Finite native floating-point multiplication 2. Finite native floating-point multiplication 3. Finite native floating-point division by a nonzero value 3. Finite native floating-point division by a nonzero value 1. Finite native addition and subtraction of a power of two 1. Finite native addition and subtraction of a power of two 1. Finite native addition and subtraction of a power of two 2. Finite native multiplication and division by a power of two 2. Finite native multiplication and division by a power of two 1. Truncated native floating quotient before storage rounding 1. Truncated native floating quotient before storage rounding 3. Exact centered native residue modulo a power of two 4. Rounded nonnegative native residue modulo a power of two 4. Rounded nonnegative native residue modulo a power of two 1. Directed and delegated square root of a finite native value 1. Directed and delegated square root of a finite native value 1. Directed and delegated square root of a finite native value23
4. Rounding, result classes and state for finite native binary arithmetic PPL-SPEC-000484 The native storage format F shall be configured and supported as in 🔗 1. Supported exact integer and rational conversion to native floating storage. Each destination and source shall be F or Checked_Number<F, Check_Overflow_Policy<F>>, with the same format for all operands. Sources shall be finite and shall meet the particular operation's mathematical preconditions in 🔗 1. Finite native floating-point addition and subtraction, 🔗 2. Finite native floating-point multiplication or 🔗 3. Finite native floating-point division by a nonzero value. Let q be that operation's exact-real result.
ROUND_DOWN shall assign the greatest native representable bound no greater than q, and ROUND_UP the least bound no less than it, including subnormal and infinite bounds. Without a strict flag it shall return the downward weak relation V_GE or upward V_LE. With ROUND_STRICT_RELATION and definite native inexact information, an exact result shall have relation VR_EQ, an inexact downward result VR_GT and an inexact upward result VR_LT. If native inexact information is unavailable, the corresponding weak relation shall be returned.
ROUND_IGNORE shall evaluate using the current hardware direction, including nearest-even midpoint selection. An unflagged request shall have lazy relation VR_LGE. A strict delegated request with definite inexact information shall have VR_EQ for exactness and VR_NE for inexactness; unavailable information shall give VR_LGE. ROUND_NOT_NEEDED shall require q to be exactly representable as a finite value. It shall assign that exact value, return V_EQ in an assertion-enabled build and may return lazy V_LGE in a build defining NDEBUG. A strict no-rounding-needed request shall retain that precondition and return V_EQ.
The returned class shall be VC_NORMAL for a finite computed value, VC_PLUS_INFINITY for positive infinity and VC_MINUS_INFINITY for negative infinity, combined with the corresponding relation. These native values shall be representable without V_UNREPRESENTABLE. For an exact real magnitude exceeding the finite maximum, inward directed evaluation shall return the signed finite endpoint and outward evaluation the corresponding infinity. Delegated range behavior shall follow the native hardware mode and nearest-overflow threshold in 🔗 6. Range limits in conversion of finite native scalars to floating point. A finite inward endpoint shall not promise an integer-overflow annotation.
Directed, strict and no-rounding-needed requests shall require upward hardware rounding. An unflagged delegated request shall require no particular current direction. Calls shall preserve that direction; accrued exception flags shall be unspecified and floating-point exceptions shall be nontrapping. Native FPU backend setup shall follow 🔗 1. Directed native integral conversion to native floating-point storage. No library/thread initialization object shall be required on backends requiring no setup, and no coefficient-constant stage or shared numerical temporary pool shall be required.
The destination shall be live and assignable. It may be either source; the sources may designate the same object; and storage may be shared through a checked object's raw-value reference. Results shall use both source entry values. Sources with storage distinct from the destination shall remain unchanged. Callers shall synchronize access against concurrent mutation. The _r interfaces shall return their results without policy-handler dispatch.
-
Incoming links from: 1. Infinity ordering and unordered scalar predicates 2. Selective classification of native floating-point checked values 2. Selective classification of native floating-point checked values 3. Native floating-point extended integrality and quiet-NaN rejection 3. Native floating-point extended integrality and quiet-NaN rejection 4. Typed special-value assignment to native floating-point storage 4. Typed special-value assignment to native floating-point storage 1. Finite native floating-point floor, ceiling and truncation 1. Finite native floating-point floor, ceiling and truncation 3. Sign of a finite native floating-point value 3. Sign of a finite native floating-point value 4. Ordered comparison of finite native floating-point values 4. Ordered comparison of finite native floating-point values 2. GMP integer and rational special-value classification14
1. Native floating-point NaN and infinity predicates PPL-SPEC-000321 The admitted storage type F shall be a configured supported native float, double or long double as in 🔗 1. Supported exact integer and rational conversion to native floating storage. T shall be F itself or Checked_Number<F, P>, where P is Check_Overflow_Policy<F>, Checked_Number_Transparent_Policy<F> or Extended_Number_Policy. A source shall contain a finite value, either infinity or a quiet NaN of that native format.
is_not_a_number(x) shall be true exactly for a NaN. is_minus_infinity(x) shall be true exactly for negative infinity, and is_plus_infinity(x) exactly for positive infinity. infinity_sign(x) shall return − 1 for negative infinity, 1 for positive infinity and zero otherwise, including for a NaN and either signed zero. These queries shall not interpret a finite endpoint or a subnormal as an infinity.
The source shall be live and shall remain unchanged, including its zero sign. Concurrent access shall be prevented while another operation modifies it. No library initialization object, thread initialization or coefficient constant stage shall be required. Floating-point exceptions shall be nontrapping. Calls shall require no particular hardware rounding direction and shall preserve that direction. Floating-point exception-status flags shall be unspecified. Unavailable native source formats shall not be instantiated.
-
Incoming link from: 2. GMP integer and rational special-value classification1
2. Selective classification of native floating-point checked values PPL-SPEC-000322 For Checked_Number<F, P> with the storage types, policies and source values in 🔗 1. Native floating-point NaN and infinity predicates, classify(nan, inf, sign) shall return the following Result, applying these rules in order:
- For a NaN, if nan or sign is true, it shall return V_NAN.
- If inf is true, a negative infinity shall return V_EQ_MINUS_INFINITY and a positive infinity V_EQ_PLUS_INFINITY.
- If sign is true, a negative value shall return V_LT, a positive value V_GT and either signed zero V_EQ. This rule shall include infinities whose infinity classification was not requested.
- Otherwise it shall return lazy V_LGE. This shall include a NaN when neither NaN nor sign classification was requested.
The same requested-field rules shall apply to a custom policy providing the selected classification capabilities. A source shall not contain NaN when its policy has has_nan == false, nor infinity when it has has_infinity == false. Finite-only custom policies shall therefore admit every request mask on their valid finite sources.
Omitting arguments shall request all three classifications. A normal V_LT or V_GT shall characterize the value's sign relative to zero; it shall not describe an arithmetic rounding error. The class and relation fields shall have the meanings in 🔗 1. Numerical result classes and relation meanings. Source validity, availability, synchronization, initialization independence and floating-point state conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates.
-
3. Native floating-point extended integrality and quiet-NaN rejection PPL-SPEC-000323 For an admitted raw or checked source type in 🔗 1. Native floating-point NaN and infinity predicates, is_integer(x) shall return true exactly when the source's represented binary value is a finite integer or an admitted signed infinity. It shall return false for a quiet NaN. Either signed zero shall be integral. This is membership in the extended integral domain ℤ∪{ − ∞, + ∞}; infinity shall not thereby be identified with a member of ℤ. A caller requiring ordinary integer membership shall additionally exclude both infinities. Every finite representable value with zero fractional part shall be integral even when its magnitude exceeds every configured bounded coefficient range.
The result shall not depend on the current hardware rounding direction. Source validity, availability, preservation, synchronization, initialization independence and floating-point state conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates.
-
Incoming links from: 6. Remainder with a policy-admitted infinite divisor 1. Conversion of policy-admitted scalar special values 2. Unary and binary-scale transformations of scalar special values 3. Extended scalar binary arithmetic and enabled fault diagnosis 4. Nonfinite remainder operands and enabled modulus faults 5. Extended accumulated products and enabled fault diagnosis 6. Square-root special values and enabled negative-input diagnosis 1. Same-type checked copying of admitted special values 1. Same-type checked copying of admitted special values 1. Checked special-marker construction and policy assignment 1. Checked special-marker construction and policy assignment 1. Typed special construction in native scalar storage 1. Typed special construction in native scalar storage 2. Typed special-marker assignment to GMP integer and rational storage14
4. Typed special-value assignment to native floating-point storage PPL-SPEC-000324 For a live assignable destination of an admitted raw or checked type in 🔗 1. Native floating-point NaN and infinity predicates, assign_r from Minus_Infinity shall store negative infinity and return V_EQ_MINUS_INFINITY. Assignment from Plus_Infinity shall store positive infinity and return V_EQ_PLUS_INFINITY. Assignment from Not_A_Number shall store a quiet NaN and return V_NAN. These results shall be representable and shall not carry V_UNREPRESENTABLE. The supplied marker shall remain unchanged.
Infinity markers shall admit all four base directions in 🔗 4. Rounding-direction intent, composition and inspection, with or without ROUND_STRICT_RELATION. A NaN marker shall admit ROUND_DOWN, ROUND_UP and ROUND_IGNORE, with or without the strict flag. It shall not require an ordered NaN relation: V_NAN shall retain its empty relation. The _r interface shall return the result without policy-handler dispatch.
Callers shall prevent concurrent destination access while another operation modifies it. Configured-format availability, initialization independence and floating-point state conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates. The value supplied on entry in the destination shall impose no numerical precondition on the replacement. The stored NaN's payload and sign shall be unspecified.
-
Incoming links from: 1. Exact coefficient ratio followed by upward scalar conversion 4. Rounding, result classes and state for finite native binary arithmetic 1. Native floating-point NaN and infinity predicates 2. Directed conversion to adjacent finite normal floating-point bounds 2. Directed conversion to adjacent finite normal floating-point bounds 3. Directed conversion in the subnormal and underflow range 4. Delegated and exactness requests for floating-point conversion 5. Floating conversion overflow thresholds and computed-value classes 5. Floating conversion overflow thresholds and computed-value classes 1. Directed native integral conversion to native floating-point storage 4. Numeric text input into supported native floating destinations11
1. Supported exact integer and rational conversion to native floating storage PPL-SPEC-000201 For each of float, double and long double whose corresponding PPL_SUPPORTED_FLOAT, PPL_SUPPORTED_DOUBLE or PPL_SUPPORTED_LONG_DOUBLE is nonzero, assign_r shall admit finite mpz_class and canonical finite mpq_class sources. The configured native binary format shall determine precision and finite range; it shall not inherit a bounded global-coefficient limit. Rational canonical form shall follow 🔗 1. Exact rational assignment from rational and integral sources.
When the source value is exactly representable as a finite destination value, the conversion shall assign that value and return V_EQ. This shall hold for all four base directions in 🔗 4. Rounding-direction intent, composition and inspection, with or without ROUND_STRICT_RELATION. Rational or integer zero shall produce a native zero; no distinct rational negative-zero value shall be implied.
The native destination adapter shall use Check_Overflow_Policy<T>. The _r conversion shall return its Result without invoking a policy handler or automatically throwing a numeric overflow exception. Computed infinities shall be representable in these supported native formats, and the outcomes in 🔗 5. Floating conversion overflow thresholds and computed-value classes shall not carry V_UNREPRESENTABLE.
The destination shall be a live assignable native object and the source shall remain unchanged. Callers shall prevent concurrent access to either object while another operation modifies it. No library initialization object, thread initialization or coefficient-constant stage shall be required. Configured native-format availability shall remain a prerequisite; a configuration disabling those supported types shall not promise these instantiations. For an available instantiation, conversion shall require no particular current FPU rounding direction and shall preserve that direction. Available resources shall limit temporary unbounded-integer computations.
-
2. Directed conversion to adjacent finite normal floating-point bounds PPL-SPEC-000202 For source value a within the destination finite range, with |a| at least the smallest positive normal value and not exactly representable, base direction ROUND_DOWN shall assign the greatest representable destination value less than a; base direction ROUND_UP shall assign the least representable value greater than a. The destination types, sources and object prerequisites shall follow 🔗 1. Supported exact integer and rational conversion to native floating storage.
The downward call shall return V_GT and the upward call shall return V_LT. These shall be definite exact-to-computed relations as defined by 🔗 1. Numerical result classes and relation meanings, whether or not the request carries ROUND_STRICT_RELATION. Both bounds shall be finite and adjacent in the native value set. A source halfway between adjacent values shall follow the specified bound direction; no nearest-even tie rule shall replace it. Exact representable values shall instead follow 🔗 1. Supported exact integer and rational conversion to native floating storage.
-
3. Directed conversion in the subnormal and underflow range PPL-SPEC-000203 Let δ be the smallest positive representable native subnormal value and let N be the smallest positive normal value. For a finite rational source with 0 < |a| < N, ROUND_DOWN shall assign the greatest native value not exceeding a, and ROUND_UP the least native value not less than a. Zero and every supported subnormal value shall be included when selecting these bounds. Source, destination and lifetime prerequisites shall follow 🔗 1. Supported exact integer and rational conversion to native floating storage.
An exactly representable subnormal shall return V_EQ. Otherwise the downward result shall return V_GT and the upward result V_LT, with or without a strict-relation flag. In particular, 0 < a < δ shall yield zero downward and δ upward; − δ < a < 0 shall yield − δ downward and zero upward. No sign-bit value shall be prescribed for a computed zero. The results shall be normal-class numerical bounds with no unrepresentable-storage flag.
-
4. Delegated and exactness requests for floating-point conversion PPL-SPEC-000204 For a finite source within the destination finite range, ROUND_IGNORE shall select the representable value obtained by rounding toward zero. An exact representable source shall return V_EQ. A positive inexact source shall return V_GT and a negative inexact source shall return V_LT. Adding ROUND_STRICT_RELATION shall preserve these definite relations. Destination types, source validity and object prerequisites shall follow 🔗 1. Supported exact integer and rational conversion to native floating storage.
ROUND_NOT_NEEDED shall require an exact source value representable as a finite destination value. With or without the strict flag, it shall assign that value and return V_EQ in assertion and nonassertion builds. Delegated requests outside the finite range shall follow 🔗 5. Floating conversion overflow thresholds and computed-value classes. These software conversions shall not infer their result from the hardware inexact flag or modify the current hardware rounding direction.
-
Incoming links from: 1. Exact coefficient ratio followed by upward scalar conversion 1. Supported exact integer and rational conversion to native floating storage 4. Delegated and exactness requests for floating-point conversion 1. Truncated native floating quotient before storage rounding 1. Truncated native floating quotient before storage rounding 4. Numeric text input into supported native floating destinations6
5. Floating conversion overflow thresholds and computed-value classes PPL-SPEC-000205 For a supported destination type in 🔗 1. Supported exact integer and rational conversion to native floating storage, let p be its binary precision, emax its max_exponent, H = 2emax and M = (2p − 1)2emax − p, its largest finite value. Each source shall be a finite integer or canonical rational and satisfy the object prerequisites of 🔗 1. Supported exact integer and rational conversion to native floating storage. An optional strict-relation flag shall not change the following outcomes.
For M < a < H, ROUND_DOWN and ROUND_IGNORE shall assign M and return V_GT. ROUND_UP shall assign positive infinity and return V_LT_PLUS_INFINITY. For − H < a < − M, ROUND_UP and ROUND_IGNORE shall assign − M and return V_LT; ROUND_DOWN shall assign negative infinity and return V_GT_MINUS_INFINITY. Computed infinity shall carry its corresponding infinity class, including when obtained by stepping past a finite endpoint.
For a ≥ H, ROUND_DOWN shall assign M and return V_GT_SUP; ROUND_UP and ROUND_IGNORE shall assign positive infinity and return V_LT_PLUS_INFINITY. For a ≤ − H, ROUND_UP shall assign − M and return V_LT_INF; ROUND_DOWN and ROUND_IGNORE shall assign negative infinity and return V_GT_MINUS_INFINITY.
These numeric range outcomes shall be returned directly, without policy exception dispatch, and shall leave the destination usable. The native infinities shall be representable, so V_UNREPRESENTABLE shall be absent. ROUND_NOT_NEEDED shall exclude these out-of-range sources.
-
1. Finite native addition and subtraction of a power of two PPL-SPEC-000504 The source and destination shall have the admitted same-format native or Checked_Number<F, Check_Overflow_Policy<F>> types in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The source shall be finite with represented value a. The exponent e shall be less than CHAR_BIT * sizeof(unsigned long long), and 2e shall be exactly representable and finite in F.
add_2exp_assign_r shall compute a + 2e and sub_2exp_assign_r shall compute a − 2e. They shall assign the corresponding rounded value and return the result class/relation in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The power-of-two operand shall introduce no intermediate conversion error. Zero-result signs shall follow the addition/subtraction rules in 🔗 1. Finite native floating-point addition and subtraction with a positive second operand 2e.
Source/destination aliases, source preservation, object validity, synchronization, direction and exactness prerequisites, native backend setup, initialization independence and floating-point exception conditions shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic. Neither the source value nor the exponent shall be converted through the configured coefficient type.
-
Incoming link from: 5. Checked named scaling by powers of two1
2. Finite native multiplication and division by a power of two PPL-SPEC-000505 For the source/destination types, finite source value a and exponent preconditions in 🔗 1. Finite native addition and subtraction of a power of two, mul_2exp_assign_r shall compute a2e and div_2exp_assign_r shall compute a ⁄ 2e. They shall assign the rounded value and return the result class/relation in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The positive power-of-two operand shall be exact and nonzero. A zero result, including one caused by underflow, shall retain the source sign.
A power-of-two scale shall not promise exactness when exponent-range or subnormal precision limits require approximation. Exponent zero shall preserve the represented source value; its status precision shall still follow the native binary arithmetic protocol. Source aliases, source preservation, object validity, synchronization, direction and exactness prerequisites, native backend setup, initialization independence and floating-point exception conditions shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic. No bounded coefficient intermediate shall limit the native format's value range.
-
1. Descriptor absolute-error interval PPL-SPEC-001012 The public static absolute_error field shall initially contain an interval enclosing [ − ω, ω], where the radius is the larger of the analyzed absolute error and the analyzer boundary type's smallest positive subnormal. Built-in IEEE binary descriptors shall use their smallest positive subnormal; normalized IBM short and long hexadecimal descriptors shall use 16 − 65, including underflow to zero with the exponent-underflow interruption disabled. Custom three-field descriptors shall use BASE1 − EXPONENT_BIAS − MANTISSA_BITS. The descriptor shall meet the radix, precision and exponent-range prerequisites of 🔗 1. Owned floating-expression protocol and lifetime. The stored radius shall enclose the mathematical value even when it is not exactly representable in the analyzer.
The field shall be owned by its I, Format specialization and by its thread when PPL thread support selects thread-local storage. It shall remain publicly mutable; callers changing it shall preserve a sound nonempty error interval for their analysis. Subsequent rounded-node evaluation shall use the current field. Selected arithmetic and runtime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
Incoming link from: 1. IBM hexadecimal format metadata for expression analysis1
2. Enumeration-based cached absolute error PPL-SPEC-001013 compute_absolute_error<I>() shall return a stable const reference to the cached absolute-error interval for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD, INTEL_DOUBLE_EXTENDED or IBM_SINGLE. Its radius shall enclose the corresponding analyzed absolute error and the analyzer's smallest positive subnormal, with binary and IBM meanings from 🔗 1. Descriptor absolute-error interval. Distinct supported formats shall retain their own cached values. Repeated calls shall not change a previously returned interval. Unsupported format selections, including IBM_DOUBLE, shall throw std::invalid_argument.
References shall belong to the selected template specialization and thread when configured thread-local, and shall not be deleted or modified by the caller. Native boundary arithmetic and runtime prerequisites shall be met; metadata support alone shall not establish this helper's support.
-
3. Finite floating-format value inclusion PPL-SPEC-001014 For the seven named floating-format identifiers, is_less_precise_than(first, second) shall return false exactly when every finite mathematical value representable in second is also representable in first. It shall compare modeled value sets, including precision and exponent/subnormal range, independently of the analyzer's native formats. Equal formats shall return false. Incomparable value sets shall return true in both directions; the predicate shall not establish a total ranking. Distinctions between signed zeros or special NaN/infinity encodings shall not alter this finite mathematical-value relation.
The query shall require no PPL initialization, FPU setup or native floating-point availability. Arguments shall be the seven named identifiers specified by 🔗 2. Modeled floating-point format identity.
-
1. Truncated native floating quotient before storage rounding PPL-SPEC-000506 The source and destination types shall be the admitted same-format native or Checked_Number<F, Check_Overflow_Policy<F>> types in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. Both sources shall be finite, with represented values a and b, and b ≠ 0. Let n = trunc(a ⁄ b), where truncation is toward zero in exact real arithmetic. idiv_assign_r shall round and store n in F; it shall not substitute truncation of an already rounded real quotient.
ROUND_DOWN shall select the greatest representable value not exceeding n; ROUND_UP shall select the least representable value not less than n, with admitted infinite endpoints as in 🔗 5. Floating conversion overflow thresholds and computed-value classes. For n in the finite native range, ROUND_IGNORE shall round n toward zero, independently of the caller's hardware direction. Outside that range, it shall follow the explicit delegated overflow value-selection rules in 🔗 5. Floating conversion overflow thresholds and computed-value classes, including their signed infinite endpoints. ROUND_NOT_NEEDED shall require n to be finite and exactly representable in F. Adding ROUND_STRICT_RELATION shall retain the same value-selection rules. For a finite result, the returned relation shall be V_EQ, V_GT or V_LT according as n is equal to, greater than or less than the stored value. Infinite endpoints shall carry their actual result class and relation: positive infinity shall return V_LT_PLUS_INFINITY and negative infinity shall return V_GT_MINUS_INFINITY, also for nonstrict requests. A zero result shall have the exclusive-or of the source signs.
The native hardware direction shall be upward, except that an exactly representable integral real quotient a ⁄ b shall require no particular hardware direction. The operation shall preserve the hardware direction. Native backend setup, live-object and source/destination alias rules, exception conditions and initialization independence shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The operands may alias each other. Distinct source objects shall remain unchanged. Resources for exact integer/rational temporaries shall be available, and their temporary pools shall be serialized in a build without thread-safe support. Neither the configured coefficient range nor irrational-precision settings shall restrict the quotient.
-
Incoming links from: 1. Same-storage checked compound arithmetic 2. Checked named remainder and exact quotient2
2. Exact truncating remainder of finite native floating values PPL-SPEC-000507 For the finite same-format source/destination types and nonzero divisor in 🔗 1. Truncated native floating quotient before storage rounding, rem_assign_r shall assign exactly r = a − trunc(a ⁄ b)b. It shall satisfy |r| < |b|; a nonzero remainder shall have the sign of a and a zero remainder shall retain the first source's sign. The reconstruction identity shall use the mathematical truncated quotient, even when that integer is not exactly representable in F.
All four valid rounding directions, with or without ROUND_STRICT_RELATION, shall return V_EQ and the same exact value. No particular hardware direction or inexact-flag support shall be required; the hardware direction shall remain unchanged. Native backend availability, object validity, source/destination and source/source aliases, source preservation, initialization independence and exception conditions shall follow 🔗 1. Truncated native floating quotient before storage rounding, without its upward-direction or exact-temporary resource prerequisites. No irrational-precision setting or coefficient range shall affect the remainder.
-
3. Exact centered native residue modulo a power of two PPL-SPEC-000508 The source/destination types shall be as in 🔗 1. Finite native addition and subtraction of a power of two, with finite source value a and an admitted exponent e; let m = 2e. smod_2exp_assign_r shall assign the unique value s ∈ [ − m ⁄ 2, m ⁄ 2) congruent to a modulo an integer multiple of m. This residue shall be exactly representable in F. If it is zero, its native sign shall equal the source's sign. In particular the positive half-modulus shall map to the negative half-modulus.
The result shall be V_EQ for every valid rounding request, including ordinary, strict and exactness requests. This exact relation shall not depend on native inexact-information availability or preexisting exception flags. The truncating remainder is exact, and either centering correction subtracts two representable magnitudes within a factor of two. Thus cancellation is exact and no rounded arithmetic protocol or inexact-status query is needed.
No particular hardware direction shall be required for these exact calculations. The operation shall preserve the hardware direction. Native backend setup, object validity, synchronization, destination/source aliases, source preservation, initialization independence and floating-point exception conditions shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic. No bounded coefficient intermediate or irrational-precision setting shall limit the result.
-
4. Rounded nonnegative native residue modulo a power of two PPL-SPEC-000509 For the source/destination types, finite source value a and admitted power-of-two modulus m in 🔗 3. Exact centered native residue modulo a power of two, umod_2exp_assign_r shall compute the unique mathematical residue u ∈ [0, m) congruent to a modulo an integer multiple of m. Let r = a − trunc(a ⁄ m)m.
When r ≥ 0, the operation shall store r exactly and return V_EQ for every valid request, without a hardware-direction prerequisite. When r < 0, it shall round and store r + m using the value, relation-precision, hardware-direction and exactness rules for native addition in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The returned relation shall compare the exact mathematical u with the stored value. A directed upward or delegated bound may equal m when u is not representable; the rounded value shall not be reduced again. ROUND_NOT_NEEDED shall require u to be exactly representable. If the mathematical residue is zero, the stored zero shall retain the source sign.
The operation shall preserve the hardware direction. Backend setup, live objects, synchronization, aliases, source preservation, initialization independence and floating-point exception conditions shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic. No coefficient-range limit or irrational-precision setting shall restrict the calculation.
-
Incoming links from: 2. Directed finite floating-to-integral rounding within range 2. Directed finite floating-to-integral rounding within range 2. Directed finite floating-to-integral rounding within range 3. Delegated floating-to-integral truncation and exactness requests 3. Delegated floating-to-integral truncation and exactness requests 4. Floating-to-integral range detection and reusable destinations6
1. Supported finite native floating-to-integral scalar conversion PPL-SPEC-000241 The source shall be a finite float, double or long double whose corresponding configured PPL_SUPPORTED_FLOAT, PPL_SUPPORTED_DOUBLE or PPL_SUPPORTED_LONG_DOUBLE is nonzero. Its mathematical value shall be the exact represented binary value, without a decimal approximation. A destination shall be one of the eleven native integral types or Checked_Number<T, Check_Overflow_Policy<T>> types in 🔗 1. Exact conversion between native and checked integral scalars. Native destinations shall use that overflow policy through their _r adapter and shall reserve no payload for infinity or NaN.
For an integral source value representable in the destination, assign_r shall assign that exact integer. Either sign of native floating-point zero shall produce integer zero. Directed ROUND_DOWN and ROUND_UP requests, with or without a strict flag, shall return V_EQ for these exact inputs. Delegated and no-rounding-needed classifications shall follow 🔗 3. Delegated floating-to-integral truncation and exactness requests.
The destination shall be a live assignable object and a distinct source shall remain unchanged. Callers shall prevent concurrent access to an object while another operation modifies it. No library initialization object, thread initialization or coefficient-constant stage shall be required. A directed request on a nonintegral source shall require the hardware rounding mode to be upward, as established by the rounding protocol in 🔗 4. Rounding-state exchange during an initialized thread lifetime; exact integral inputs shall not require a particular mode. Every call shall preserve the current hardware rounding direction. The _r interface shall return Result without policy-handler dispatch or automatic numeric overflow exceptions. Unavailable source types shall not be instantiated.
-
2. Directed finite floating-to-integral rounding within range PPL-SPEC-000242 For a finite source value a and admitted source/destination types from 🔗 1. Supported finite native floating-to-integral scalar conversion, ROUND_DOWN shall assign ⌊a⌋ and ROUND_UP shall assign ⌈a⌉ whenever that requested integer is representable. A nonintegral source shall require the upward hardware rounding mode in 🔗 1. Supported finite native floating-to-integral scalar conversion. An optional ROUND_STRICT_RELATION flag shall not change the mathematical result.
A nonintegral downward result shall return V_GT and a nonintegral upward result shall return V_LT, with exact-to-computed orientation from 🔗 1. Numerical result classes and relation meanings. An integral source shall return V_EQ. A source just outside the destination's integer endpoints whose requested rounded integer is an endpoint shall produce that ordinary definite relation, without an integer-range-overflow annotation. This shall include upward rounding of a negative proper fraction to unsigned zero.
Out-of-range rounded integers shall follow 🔗 4. Floating-to-integral range detection and reusable destinations. Source, object-synchronization, lifetime and hardware-mode preservation shall follow 🔗 1. Supported finite native floating-to-integral scalar conversion.
-
3. Delegated floating-to-integral truncation and exactness requests PPL-SPEC-000243 For admitted source and destination types in 🔗 1. Supported finite native floating-to-integral scalar conversion, ROUND_IGNORE shall assign trunc(a) toward zero when that integer is representable. With no strict flag, the successful conversion shall return V_LGE for integral and nonintegral source values. No particular current hardware direction shall be required for this truncating request.
ROUND_NOT_NEEDED shall require an exact integral source value representable in the destination. For that valid request, the integer value shall be preserved under any current hardware rounding direction. Without a strict flag, its result shall be V_EQ in an assertion-enabled build and may be lazy V_LGE in a build defining NDEBUG, following the internal request translation in 🔗 7. Internal no-rounding-needed request and result checking.
With ROUND_STRICT_RELATION, a delegated request shall determine the definite relation: V_GT for a positive inexact source truncated toward zero, V_LT for a negative inexact source, and V_EQ for an integral source. A strict no-rounding-needed request shall retain its exact integral precondition and return V_EQ. Range failures under delegated requests shall follow 🔗 4. Floating-to-integral range detection and reusable destinations. Object validity, source preservation and hardware-direction preservation shall follow 🔗 1. Supported finite native floating-to-integral scalar conversion.
-
4. Floating-to-integral range detection and reusable destinations PPL-SPEC-000244 For the admitted types and valid hardware prerequisites in 🔗 1. Supported finite native floating-to-integral scalar conversion, let q be the requested floor, ceiling or truncated integer defined by 🔗 2. Directed finite floating-to-integral rounding within range and 🔗 3. Delegated floating-to-integral truncation and exactness requests. If q lies below the destination minimum, ROUND_UP shall store that minimum and return V_LT_INF; ROUND_DOWN or ROUND_IGNORE shall return V_GT_MINUS_INFINITY | V_UNREPRESENTABLE. If q lies above the maximum, ROUND_DOWN shall store that maximum and return V_GT_SUP; ROUND_UP or ROUND_IGNORE shall return V_LT_PLUS_INFINITY | V_UNREPRESENTABLE. An optional strict flag shall not change these range outcomes.
A requested integer within range shall follow the ordinary classifications of 🔗 2. Directed finite floating-to-integral rounding within range and 🔗 3. Delegated floating-to-integral truncation and exactness requests. Checking range shall not itself require an undefined native floating-to-integer cast, including when a floating source format cannot represent the destination's maximum integer exactly. A failed range request shall not report a wrapped integer as successful. An unrepresentable result shall leave the destination assignable and destructible without a payload-value guarantee. ROUND_NOT_NEEDED shall exclude out-of-range inputs. These result codes shall be returned directly without automatic policy exception dispatch.
-
1. Finite native floating-point floor, ceiling and truncation PPL-SPEC-000325 The source and destination shall have admitted raw or checked types in 🔗 1. Native floating-point NaN and infinity predicates with the same native storage format F. The source shall be finite, with exact represented value a. floor_assign_r shall assign ⌊a⌋; ceil_assign_r shall assign ⌈a⌉; and trunc_assign_r shall assign trunc(a) toward zero. Each result shall be exactly representable in F and shall return V_EQ for all four base directions in 🔗 4. Rounding-direction intent, composition and inspection, with or without the strict-relation flag. This exact relation shall describe the specified integer-valued function, even when its value differs from the source. When a result is zero, it shall have the source's sign.
A nonintegral source shall require the current hardware rounding direction to be upward. An integral source shall require no particular current hardware direction. Calls shall preserve that direction. A source may be the destination itself or designate its raw storage; the result shall be computed from the source's entry value. Source and destination may also share storage through a checked object's raw-value reference. A source with distinct storage shall remain unchanged. The destination shall be live and assignable. Object synchronization, availability, initialization independence and nontrapping floating-point conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates. The _r interfaces shall return the result without policy-handler dispatch.
-
2. Exact finite native floating-point negation and absolute value PPL-SPEC-000326 For the same-format admitted raw or checked source/destination types in 🔗 1. Finite native floating-point floor, ceiling and truncation and a finite source with represented value a, neg_assign_r shall assign − a and abs_assign_r shall assign |a|. Both shall return V_EQ under all four base directions, with or without ROUND_STRICT_RELATION. Negation shall reverse a zero's sign. Absolute value shall produce positive zero for either signed zero. All finite extrema and subnormals shall retain their exact magnitudes, independent of the configured global coefficient range.
No particular current hardware rounding direction shall be required, and calls shall preserve that direction. Destination validity, source aliases, source preservation, synchronization, availability, initialization independence and floating-point exception conditions shall follow 🔗 1. Finite native floating-point floor, ceiling and truncation. The _r interfaces shall return their result without policy-handler dispatch.
-
3. Sign of a finite native floating-point value PPL-SPEC-000327 For an admitted raw or checked source type in 🔗 1. Native floating-point NaN and infinity predicates whose represented value a is finite, sgn(x) shall return − 1 when a < 0, zero when a = 0 and 1 when a > 0. Both signed zeros shall return zero. A negative subnormal shall remain negative and a positive subnormal positive.
Source validity, preservation, synchronization, availability, initialization independence and floating-point state conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates. The result shall require no arithmetic in the configured coefficient type and shall be independent of hardware direction.
-
4. Ordered comparison of finite native floating-point values PPL-SPEC-000328 For admitted raw or checked operand types in 🔗 1. Native floating-point NaN and infinity predicates with the same native storage format and finite represented values a and b, cmp(x, y) shall return a negative integer exactly when a < b, zero exactly when a = b and a positive integer exactly when a > b.
equal, not_equal, less_than, less_or_equal, greater_than and greater_or_equal shall return the truth values of a = b, a ≠ b, a < b, a ≤ b, a > b and a ≥ b, respectively. The corresponding PPL operators ==, !=, <, <=, > and >= shall return those same truth values when at least one operand is checked. Oppositely signed zeros shall compare equal. The operands may designate the same object or raw storage.
Both operand objects shall remain unchanged. Source validity, synchronization, availability, initialization independence and floating-point state conditions shall follow 🔗 1. Native floating-point NaN and infinity predicates. Comparison shall require no bounded coefficient intermediate and no particular hardware rounding direction, and shall preserve that direction.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
1. Rectilinear distance between generator points PPL-SPEC-001579 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, rectilinear_distance_assign shall assign the requested directed bound on
D1(x, y) = n − 1∑i = 0|xi − yi|.With exact rational temporary arithmetic and an exactly representable output, the sum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
2. Euclidean distance between generator points PPL-SPEC-001580 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, euclidean_distance_assign shall assign the requested directed bound on
D2(x, y) = √(n − 1∑i = 0(xi − yi)2).Every squared contribution shall preserve the directed bound even when a coordinate difference is inexact in the workspace type. Rational square roots shall retain the precision and enclosure conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness or fixed error width shall be inferred beyond those contracts.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
3. Maximum-coordinate distance between generator points PPL-SPEC-001581 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, l_infinity_distance_assign shall assign the requested directed bound on
D∞(x, y) = max0 ≤ i < n|xi − yi|.The maximum over the empty coordinate tuple shall be zero. With exact rational temporary arithmetic and an exactly representable output, the maximum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming links from: 1. Rectilinear distance between generator points 1. Rectilinear distance between generator points 2. Euclidean distance between generator points 2. Euclidean distance between generator points 3. Maximum-coordinate distance between generator points 3. Maximum-coordinate distance between generator points 6. Admitted generator-distance evaluation kernel 6. Admitted generator-distance evaluation kernel8
4. Generator-distance admission, workspaces and dispatch PPL-SPEC-001582 Distances shall be admitted exactly when both generators are points or closure points and have the same ambient dimension. A line, a ray or a dimension mismatch shall return false before assigning the output or any supplied scratch object. Equal-dimensional point/closure-point pairs shall return true on successful numerical completion. A zero-dimensional pair shall assign exact zero. A closure point shall contribute its rational coordinates without asserting inclusion in any polyhedron. For each source, xi = ai ⁄ d shall use its own positive divisor. Neither coefficient vectors alone nor homogeneous-coordinate distances shall replace these coordinates. Boolean success shall not imply exactness of a rounded result.
The default overload shall use three Checked_Number<To,Extended_Number_Policy> workspaces. An explicit scalar temporary type Temp shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. Supplied references shall use their actual admitted raw or checked numerical type Work. Their accumulation shall use 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays or 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The generic helper instantiated with the corresponding specialization shall use the same admission, coordinate and numerical rules.
Source validity and coefficient conditions of 🔗 1. Generator kinds and numerical prerequisites shall apply. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, failure, resource, shared-temporary, nontrapping and FPU prerequisites. Native floating types shall retain their configured availability and hardware conditions. Rational square-root precision shall remain stable throughout a dependent call. Calls evaluating coordinate differences shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. Inexact coordinate conversion shall not by itself invalidate a directed bound. The zero-dimensional exact assignment shall admit any otherwise valid direction for that scalar assignment.
Supplied scratch objects shall be pairwise distinct and disjoint from both source generators. Their entry values need not be initialized where they are overwritten before reading. The output shall have live assignable storage disjoint from the sources; it may coincide with any one scratch object or its compatible raw storage. The same generator may be passed as both sources. Callers shall preserve object and borrowed-storage lifetimes and provide synchronization required by the selected numerical profile. Numerical or allocation failures may propagate through their declared channels, shall not establish a successful directed bound, and may leave partial output/scratch values according to the selected scalar policies; no aggregate rollback guarantee shall be inferred.
-
5. Stored ordering of polyhedral generators PPL-SPEC-001583 compare(x,y) shall order valid generator rows of the same topology without changing either source. Callers shall provide this common-topology precondition, as in rows of one generator system. Its result shall be negative, zero or positive according to the stored ordering, with magnitude at most two. Lines shall precede all other kinds, returning magnitude two when this rule decides the order.
For two necessarily-closed rows, comparison shall use their stored expressions: homogeneous coefficients in increasing variable order followed by the divisor field, with absent trailing coefficients treated as zero. A homogeneous coefficient difference shall return magnitude two and a divisor-field difference magnitude one, using the sign of the first difference.
For NNC rows, comparison shall first use the public homogeneous coefficients in the same order with zero padding. A difference shall return magnitude two. With equal homogeneous coefficients, two lines shall compare equal; otherwise a ray shall precede a point or closure point with magnitude one, and two rays shall compare equal. Remaining point or closure-point rows shall compare divisors and then stored epsilon coefficients, returning their signed comparison with magnitude one when unequal.
The ordering shall be of stored row descriptions, not lexicographic order of rational point coordinates and not generator equivalence. Source validity, coefficient representability and synchronization prerequisites of 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
6. Admitted generator-distance evaluation kernel PPL-SPEC-001653 l_m_distance_assign_impl shall evaluate a valid point or closure-point pair of equal strictly positive dimension. Callers shall meet the source, workspace, output-alias, rounding, initialization, synchronization and backend conditions of 🔗 4. Generator-distance admission, workspaces and dispatch before entering this kernel; it shall not perform the public admission checks.
With Skip_Common_Zero_Runs equal to false, the kernel shall process every coordinate in decreasing index order, using each source's own positive divisor. It shall initialize tmp0 to zero, form the directed nonnegative coordinate differences, call Specialization::combine once for each coordinate, call Specialization::finalize once after accumulation, and assign the result from tmp0. The applicable numerical obligations of 🔗 1. Rectilinear distance between generator points, 🔗 2. Euclidean distance between generator points or 🔗 3. Maximum-coordinate distance between generator points shall apply for their corresponding standard specialization.
With Skip_Common_Zero_Runs equal to true, both sources shall have sparse representation and Specialization shall be the standard rectilinear, Euclidean or infinity-distance specialization for Work. The kernel may replace a maximal run of coordinates zero in both sources by one ordinary zero-coordinate step. Successful completion shall preserve the full traversal's result, final scratch values, directed rounding and floating-point zero signs and status effects. Contributions at nonzero coordinates shall retain their decreasing-index order. The skipping path shall not allocate coefficient vectors or polymorphic expression iterators.
Successful numerical completion shall return true. Numerical or allocation failures shall retain the failure channels and partial-state conditions of 🔗 4. Generator-distance admission, workspaces and dispatch. The public dispatcher shall retain ordinary traversal for other specialization types; callbacks of those types shall not lose coordinate invocations.
-
Incoming links from: 1. Closed bounded-difference support hull of geometric generators 3. Cartesian enclosure of a polyhedral generator system 4. Generator-distance admission, workspaces and dispatch 5. Stored ordering of polyhedral generators 2. Construction of nonzero lines and rays 3. Construction of rational points and closure points 11. Geometric equivalence and stored generator identity 15. Generator-system hull meaning and construction 16. Owned generator systems and storage conversion 17. Generator insertion and coefficient ownership transfer 1. Closed octagonal support hull of geometric generators 6. Java mathematical representations and operation options12
1. Generator kinds and numerical prerequisites PPL-SPEC-000181 A Generator shall describe one of four geometric objects in a declared ambient dimension: an included rational point, a rational closure point, a ray direction or a line direction. For homogeneous integer coefficients ai and positive divisor d, point and closure-point coordinates shall be ai ⁄ d. A line shall admit arbitrary real multiples of its nonzero direction; a ray shall admit nonnegative real multiples. Closure points shall retain their distinct kind and shall not assert boundary inclusion. Internal divisor/strictness fields shall not become public coordinates.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization and require caller synchronization for overlapping modification of an object. Dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, normalization, transformation and comparison guarantees shall require representability of every evaluated coefficient step/result in the selected profile. Unchecked completion shall not prove those preconditions. Allocation and numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete generator; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without universal rollback.
-
Incoming link from: 1. Closed octagonal support hull of geometric generators1
2. Construction of nonzero lines and rays PPL-SPEC-000182 line(e) and ray(e) shall use the expression's homogeneous coefficients as their respective direction, ignore its constant term and retain its declared dimension. They shall use requested storage. A zero homogeneous direction, including a nonzero constant expression, shall throw std::invalid_argument. Results shall have primitive homogeneous coefficients; lines shall orient their first nonzero coefficient positively, while rays shall preserve orientation. Source expressions shall remain unchanged. Numerical prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
3. Construction of rational points and closure points PPL-SPEC-000183 point(e,d) and closure_point(e,d) shall respectively construct an included or closure point whose coordinates are the homogeneous coefficients of e divided by the entry value of nonzero d. They shall ignore the expression constant, retain its dimension and use requested storage. A negative divisor shall be accepted by reversing all coordinate numerators and making the stored divisor positive, preserving rational coordinates. The stored numerator/divisor tuple shall be primitive. Zero divisor shall throw std::invalid_argument and preserve sources.
Omitted expressions shall denote the dimension-zero origin; omitted divisors shall be one. Representation-only overloads shall make that origin, and expression/representation overloads shall use divisor one. A divisor borrowed from the unchanged input expression shall be admitted using its entry value. The numerical prerequisites of 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
4. Default generator and shared zero-dimensional origins PPL-SPEC-000184 Default construction shall create the dimension-zero included origin using requested storage. zero_dim_point() and zero_dim_closure_point() shall return borrowed dimension-zero origins of their respective distinct types, with positive divisor. Shared values shall remain alive until owning-thread finalization. Owned copies shall retain their values independently.
-
5. Owned generator copying, assignment and swapping PPL-SPEC-000185 Ordinary copying shall preserve kind, dimension, exposed coefficients, divisor when applicable and source representation. Explicit-storage copying shall use requested storage. Assignment shall copy the complete entry value and source storage, return the target reference, preserve a distinct source and support self-assignment. Rvalue arguments shall admit the copy forms, retaining source value without requiring a distinct move operation. Copies shall survive later source mutation or destruction.
Both swap forms shall exchange full values, dimension and storage; self-swap shall preserve the generator. Destruction shall release owned storage. Failure while constructing copy assignment's replacement shall leave the target unchanged.
-
6. Generator representation conversion PPL-SPEC-000186 representation() shall report current coefficient storage. Successful set_representation(r) for dense or sparse storage shall preserve kind, public dimension, exposed coefficients and applicable divisor while selecting r. Repeating current storage shall preserve the object. Failed replacement allocation shall leave its value and representation unchanged.
-
7. Generator dimensions and dimensioned copying PPL-SPEC-000187 space_dimension() shall report public ambient dimension and max_space_dimension() the expression dimension limit. Requested/result sizes shall not exceed that limit. Dimensioned copies and set_space_dimension(n) shall retain lower-index coordinates, zero-extend new coordinates or discard removed trailing coordinates. Normalization may rescale an equivalent direction or numerator/divisor tuple. Kind and storage shall remain unchanged. Resizing a line or ray shall require a nonzero retained direction; removal that can collapse a direction shall instead follow 🔗 9. Removing generator coordinates and collapsed directions. Dimensioned copies without explicit storage shall retain source storage.
-
8. Generator coordinate permutation and zero insertion PPL-SPEC-000188 Swapping two in-dimension coordinates shall exchange their coefficients. A cycle of distinct in-dimension variables shall move each coefficient to the following listed coordinate, wrapping last to first; empty/singleton cycles shall preserve the generator. shift_space_dimensions(v,n) shall require v.id() <= space_dimension() and an admitted result dimension; it shall insert n zero coordinate slots before that position and increase dimension by n. A zero shift shall preserve value.
These operations shall preserve kind and storage, and preserve applicable rational point coordinates or direction values according to their stated coordinate correspondence. Equivalent normalization may change stored scales. Divisor and internal strictness fields shall not become coordinates.
-
Incoming link from: 7. Generator dimensions and dimensioned copying1
9. Removing generator coordinates and collapsed directions PPL-SPEC-000189 remove_space_dimensions(vars) shall require selected indices within the public dimension, discard those coefficients and compact surviving coordinates in their original order. Points and closure points shall retain their kind and rational remaining coordinates and return true. A line or ray whose retained direction is nonzero shall retain its geometric direction kind and return true. If its entire direction is removed, it shall become the included origin in the remaining coordinate space and return false. Removing no coordinates shall be admitted. Storage shall be retained and normalization may rescale equivalent tuples.
-
10. Generator type, coefficients, divisor and borrowed expression PPL-SPEC-000190 Borrowed coefficient and expression accessors shall require an lvalue receiver, with corresponding const && overloads deleted in every coefficient profile. Copying a borrowed expression view shall not extend the owning descriptor's lifetime.
The kind predicates and type() shall identify the four public kinds exactly; is_line_or_ray() shall identify the two directional kinds. coefficient(v) shall expose a homogeneous numerator/direction coefficient for an in-dimension variable and otherwise throw std::invalid_argument. divisor() shall return a positive divisor for a point or closure point and otherwise throw std::invalid_argument.
expression() shall borrow a read-only affine adapter with the public dimension and homogeneous coefficients, constant term zero, and no hidden strictness coordinate. It shall not encode the point divisor as a constant. The owner shall remain alive and unchanged for uses covered here. Copying that view to a Linear_Expression shall make an independent value. Configured coefficient references shall borrow their owner until mutation or destruction. Queries shall preserve source value.
-
11. Geometric equivalence and stored generator identity PPL-SPEC-000191 is_equivalent_to and generator equality shall compare equal-dimension, equal-kind geometric objects independently of storage and internal topology. Point and closure-point comparisons shall use exact rational coordinates and keep their kinds distinct. Ray directions shall compare equivalent exactly for positive proportionality; line directions shall admit either nonzero proportionality sign. Different dimensions or kinds shall compare unequal. Inequality expressions shall negate equivalence.
is_equal_to shall compare the complete stored normalized descriptor, including topology and fields, independently of dense/sparse storage. Positive identity shall imply equivalence; negative identity shall not imply geometric inequality. Queries shall preserve operands. Arithmetic prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
12. Reloadable generator representation PPL-SPEC-000192 ascii_dump(s) shall export the full stored coefficient expression, public kind token and topology token; ascii_dump() shall use std::cerr. Export shall preserve the source. A complete compatible representation with representable coefficients shall load with true, replacing kind, coefficients, divisor and public dimension while retaining destination storage.
Malformed/truncated expression, kind or topology fields, missing required coefficient slots, invalid directional zero vectors, nonpositive point divisors, violations of the checked row invariants and inconsistent kind/topology combinations shall return false rather than be accepted as valid generators. If expression loading fails, ascii_load(s) shall return false without reading the kind or topology suffix. Trailing input shall remain available. Failure may modify the target but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised; allocation and numerical exceptions may propagate.
-
13. Readable generator, type and system output PPL-SPEC-000193 Generator output shall use l(...), r(...), p(...) and c(...) for its respective kind. Inside, it shall print the homogeneous numerator or direction using active variable formatting and the coefficient sign/unit conventions of 🔗 14. Human-readable affine output and formatter dispatch. A zero tuple shall print 0. For point/closure divisor other than one it shall append / and that divisor, putting parentheses around a nonzero numerator expression. Type output shall print LINE, RAY, POINT or CLOSURE_POINT exactly.
System output shall print its public iterator range separated by ", ", or false when there are no generators. Operators shall return the supplied stream, add no newline and preserve source values. Each type's print() shall use that output on std::cerr. Formatting coefficient negations shall satisfy the selected arithmetic profile's preconditions.
-
14. Generator and system invariants and memory accounting PPL-SPEC-000194 OK() shall report the checked representation invariants of its generator or system. Values produced by successful operations under their valid-input and arithmetic preconditions shall satisfy them. Each type's total memory count shall equal its sizeof plus its external memory count. Queries shall preserve geometric fields, kind, dimension and storage. Counts shall not promise allocator overhead, process resident memory or dense/sparse size ordering.
-
Incoming link from: 3. Cartesian enclosure of a polyhedral generator system1
15. Generator-system hull meaning and construction PPL-SPEC-000195 A Generator_System with lines L, rays R, included points P and closure points C shall generate exactly the real vectors
∑p ∈ Pλpp + ∑c ∈ Cγcc + ∑r ∈ Rρrr + ∑l ∈ Lτll,where λp, γc, ρr ≥ 0, τl ∈ ℝ, ∑pλp + ∑cγc = 1 and ∑pλp > 0. Thus a system without an included supporting point shall generate the empty set, even when directions or closure points are stored. Its meaning shall be a generated hull, not a conjunction of point membership conditions.
Default construction shall have dimension zero and no rows. Singleton construction shall own a copy of its generator and adopt its dimension. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton included origin generating the universe of the zero-dimensional space until owning-thread finalization. Use/failure prerequisites shall follow 🔗 1. Generator kinds and numerical prerequisites.
-
16. Owned generator systems and storage conversion PPL-SPEC-000196 Copy construction shall preserve generated hull, public dimension and source storage; an explicit-storage overload shall use its argument. Assignment shall copy the source entry value and representation, return the target reference, preserve a distinct source and support self-assignment. Rvalue copy forms shall retain source value without requiring a distinct move operation. Copies shall remain independent of later source modification/destruction.
Swaps shall exchange complete system values, dimension and storage, including self-swap. Successful representation conversion shall select dense or sparse storage for all rows while preserving the generated hull and dimension. Destruction shall release owned rows. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Generator kinds and numerical prerequisites.
-
17. Generator insertion and coefficient ownership transfer PPL-SPEC-000197 Const-reference insertion shall add a copy of the generator to the system's geometric generator collection, preserving the source and target storage. Result dimension shall be the maximum input dimension; shorter tuples shall be zero-extended. Inserting a closure point shall retain its topological role; any necessary internal conversion shall preserve the public coordinates and kind of existing generators. Duplicates or redundant generators may be reordered/removed provided the generated hull is preserved. Publicly retrieved rows need not reproduce insertion order or multiplicity.
Rvalue insertion shall transfer a generator not borrowed from the target, producing the same generated hull as copying it. The source shall remain destructible; no unchanged-value guarantee shall apply to it. Ordinary insertion of a borrowed row from the same target shall use its entry value. Numerical/failure prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.
Const row sources, including const rvalues, shall use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
18. System dimensions, coordinate truncation and container emptiness PPL-SPEC-000198 max_space_dimension() shall report the generator limit and space_dimension() the declared ambient dimension. For admitted dimension n, resizing shall zero-extend new coordinates or discard removed trailing coordinates in every generator. Points/closure points shall retain the corresponding remaining rational coordinates; lines/rays whose directions collapse to zero shall be removed. The resulting generated hull shall have the corresponding coordinate image, including when no supporting point was present. Representation shall be retained.
empty() shall report absence of stored generators, not geometric emptiness of a direction-only or closure-only generated hull. clear() shall remove all generators and reset dimension zero while retaining storage. An empty system may be resized to positive ambient dimension.
-
19. Read-only forward iteration over public generators PPL-SPEC-000199 begin() and end() shall delimit a generator collection with the system's public dimension and the same generated hull. It may suppress a closure point immediately followed by an included point at the same rational coordinates. No public iteration order or duplicate multiplicity shall be promised. Dereference/member access shall borrow a retained generator.
Iterator copy/assignment shall preserve borrowed system and position with independent later navigation. Prefix increment shall return the advanced iterator; postfix shall return its entry-position copy. Comparison shall require iterators into the same unchanged system. Defaults shall admit copying, assignment and destruction before valid-position assignment. Modification/destruction shall invalidate iterators and borrowed rows.
-
20. Reloadable generator-system representation PPL-SPEC-000200 ascii_dump(s) shall export full stored rows, dimension, topology, representation and required row-state fields; ascii_dump() shall use std::cerr. Export shall preserve source value. A complete compatible export with representable coefficients shall load with true, replacing the target with the encoded generated hull, public dimension and encoded storage choice.
Malformed/truncated headers or rows, invalid generator fields and inconsistent encoded dimensions or row-state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback/cross-version format stability is promised; allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
1. Exact rational affine image PPL-SPEC-001287 affine_image(var, expr, denominator) shall assign the exact image under x’v = e(x) ⁄ d, with all other coordinates unchanged. denominator defaults to one. The entry denominator value shall be used even when borrowed from a receiver-owned congruence or generator. External expression and scalar values shall be preserved. Zero denominator, an invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
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.
-
2. Exact rational affine preimage PPL-SPEC-001288 affine_preimage(var, expr, denominator) shall assign exactly the set of x whose image under x’v = e(x) ⁄ d, with other coordinates unchanged, belongs to the entry receiver. denominator defaults to one. It shall use the entry denominator value even when borrowed from receiver-owned descriptions, and preserve external inputs. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
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.
-
3. Generalized variable affine image PPL-SPEC-001289 For EQUAL, generalized_affine_image(var, relsym, expr, denominator, modulus) shall assign the exact relational image under x’v = e(x) ⁄ d + mk, k ∈ Z, with other coordinates unchanged. Zero modulus shall mean ordinary affine image; either sign of a nonzero modulus shall denote the same period. Defaults are denominator one and modulus zero. Borrowed scalars shall use their entry values. For an ordered inequality and zero modulus, it shall conservatively cylindrify the target. NOT_EQUAL and ordered relations with nonzero modulus are unsupported and shall throw std::invalid_argument before mutation, including on empty receivers. Zero denominator and dimension errors shall likewise be rejected before mutation.
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.
-
4. Generalized variable affine preimage PPL-SPEC-001290 generalized_affine_preimage(var, relsym, expr, denominator, modulus) shall assign the exact inverse relational image for the EQUAL relation in [LINK: PPL-SPEC-001289]. Defaults, modulus sign, borrowed entry values and rejection scope shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify the target coordinate of the entry receiver.
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.
-
5. Generalized expression affine image PPL-SPEC-001291 For EQUAL, generalized_affine_image(lhs, relsym, rhs, modulus) shall assign the exact image of the relation lhs(x’) − rhs(x) ∈ mZ, where the coordinates with nonzero coefficients in lhs may change simultaneously and all other coordinates are unchanged. Zero modulus means equality and is the default; modulus sign is immaterial. Constant lhs shall constrain the old state without assigning a coordinate. The modulus shall use its entry value even if borrowed. Ordered inequalities with zero modulus shall conservatively cylindrify the assigned coordinates. NOT_EQUAL or an ordered relation with nonzero modulus shall throw std::invalid_argument before mutation, including on empty receivers. Excess expression dimensions shall likewise be rejected before mutation.
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.
-
6. Generalized expression affine preimage PPL-SPEC-001292 generalized_affine_preimage(lhs, relsym, rhs, modulus) shall assign the exact inverse relational image of EQUAL as defined in [LINK: PPL-SPEC-001291]. Assigned coordinates are those occurring in lhs; all others are shared between old and new states. Default modulus, sign, borrowed entry-value and rejection rules shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify those coordinates of the entry receiver.
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.
-
Incoming link from: 8. Bounded affine preimage abstraction1
7. Bounded affine image abstraction PPL-SPEC-001293 bounded_affine_image(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var, preserving ambient dimension and its projection on all other coordinates. This is a conservative abstraction of the bounded affine image; it need not detect infeasible bounds or retain equal bounds. The denominator defaults to one. Zero denominator, invalid target or excess dimension of either bound shall throw std::invalid_argument before mutation, including empty.
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.
-
8. Bounded affine preimage abstraction PPL-SPEC-001294 bounded_affine_preimage(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var. It shall preserve dimension and all restrictions among other coordinates, and conservatively contain the concrete bounded-relation preimage. It need not detect infeasible bounds. Default and rejection rules shall be as in 🔗 7. Bounded affine image abstraction.
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.
-
1. Congruence widening and finite delay PPL-SPEC-001307 congruence_widening_assign(y,tp) requires Y ⊆ X and shall return a grid containing X, preserving dimension and the operand value. Empty previous, empty current and zero dimensions shall preserve the receiver. After normalization, if the current grid has fewer independent equalities than the previous one, it shall retain the current grid. Otherwise it shall retain all current equalities and the current proper congruences whose corresponding normalized pivot coefficients agree with the previous description, discarding other proper rows. A sequence with fixed coordinate order and finite delay shall stabilize.
With tp null or pointing to zero, the computed widening shall be assigned. With a positive token count, the entry grid shall be retained and one token consumed exactly when the computed widening strictly enlarges it. The token object shall be separate writable storage. Unequal dimensions shall throw std::invalid_argument before mutation. Failure guarantees shall not imply rollback of tokens.
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.
-
2. Generator widening and finite delay PPL-SPEC-001308 generator_widening_assign(y,tp) shall obey the inclusion, dimensions, empty cases and finite-token rules in 🔗 1. Congruence widening and finite delay. It shall normalize generator descriptions. If the current grid has more generators or real lines than the previous grid, it shall retain the current grid. Otherwise it shall retain the supporting point and real lines, retain parameters with unchanged corresponding normalized pivots, and replace changed parameter directions by real lines. With fixed coordinate order and finite delay, increasing iterations shall stabilize.
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.
-
3. Representation-selected default grid widening PPL-SPEC-001309 widening_assign(y,tp) shall select congruence widening when both congruence descriptions are current, otherwise generator widening when both generator descriptions are current. For mixed histories it may choose either strategy and normalize the required descriptions. It shall obey the common inclusion, dimension, empty and finite-token rules in 🔗 1. Congruence widening and finite delay. The selected strategy may affect precision; identical output across different cache histories is not required. With fixed coordinate order and finite delay, increasing iterations shall stabilize, including when available descriptions change the selected strategy between calls.
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.
-
4. Congruence-limited extrapolations PPL-SPEC-001310 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.
-
5. Grid convergence certificates PPL-SPEC-001311 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.
-
1. Grid construction from boxes PPL-SPEC-001312 Grid(box,complexity) shall preserve the box's ambient dimension and construct its exact real affine hull as a grid. Empty shall yield empty. Each singleton interval shall fix its coordinate; every non-singleton coordinate shall be free. Open bounds do not add excluded endpoints to a singleton. All complexity choices shall have this meaning, under the source interval's arithmetic conditions and 🔗 1. Rational-grid values, coefficient profile and valid use. The source value shall be preserved. Excess ambient dimension shall throw std::length_error before representation allocation.
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.
-
2. Grid construction from bounded-difference shapes PPL-SPEC-001313 Grid(bd,complexity) shall preserve ambient dimension and construct the exact real affine hull of the bounded-difference shape, including empty. It shall retain all implied affine equalities under the source shape's arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use, for every complexity choice. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
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.
-
3. Grid construction from octagonal shapes PPL-SPEC-001314 Grid(os,complexity) shall preserve ambient dimension and construct the exact real affine hull of the octagonal shape, including empty, under its arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use. Every complexity choice shall retain the implied affine equalities. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
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.
-
4. Grid construction from polyhedra PPL-SPEC-001315 Grid(ph,complexity) shall preserve ambient dimension and contain the polyhedron's real affine hull. With ANY_COMPLEXITY it shall equal that affine hull, including for NNC polyhedra and empty. Restricted complexity may retain only explicit available equalities and may fail to detect latent emptiness, giving a coarser grid. If generators are used, supporting points, closure points, rays and lines shall contribute their real affine span. Marked empty and zero-dimensional empty shall yield empty in every complexity class. The source value shall be preserved, though caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
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.
For a bounded coefficient profile, directions joining rational points shall be computed from complete cross-products of their numerators and divisors, then reduced by a common positive factor before their coefficients are admitted. Constants and NNC epsilon coordinates shall not contribute to these line directions. This projective normalization shall not rescale a lattice parameter.
-
1. Free-coordinate extension PPL-SPEC-001295 add_space_dimensions_and_embed(m) shall assign G×Rm, placing the new free coordinates after the old ones. Zero additions shall preserve the value and dimension; empty remains empty in the enlarged space. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
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.
-
2. Zero-coordinate extension PPL-SPEC-001296 add_space_dimensions_and_project(m) shall assign G×{0}m, appending the new zero coordinates. A nonempty zero-dimensional grid shall become the origin, and empty shall remain empty. Zero additions are identity. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
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.
-
3. Ordered Cartesian concatenation PPL-SPEC-001297 concatenate_assign(y) shall assign the ordered Cartesian product X×Y in dimension nX + nY. Either empty operand shall make the result empty. Self concatenation shall use the entry value twice. The distinct operand shall retain its mathematical value. A dimension sum beyond max_space_dimension() shall throw std::length_error before mutation.
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.
-
4. Selected-coordinate existential projection PPL-SPEC-001298 remove_space_dimensions(vars) shall assign exact existential projection onto the unselected coordinates, preserving their relative order and renumbering them consecutively. Its dimension shall decrease by the selection size. Empty selection is identity; removing every coordinate yields zero-dimensional universe exactly for nonempty input. Any out-of-range index shall throw std::invalid_argument before mutation, including empty.
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.
-
5. Prefix-coordinate existential projection PPL-SPEC-001299 remove_higher_space_dimensions(new_dimension) shall assign the exact projection onto the prefix of that many coordinates. Equal dimension is identity; zero produces zero-dimensional universe exactly when the entry grid is nonempty. A requested dimension greater than the current dimension shall throw std::invalid_argument before mutation.
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.
-
6. Injective coordinate remapping PPL-SPEC-001300 map_space_dimensions(pfunc) shall project away unmapped old coordinates and move each retained coordinate to its supplied destination, exactly. The mapping shall be an injection from a subset of old indices onto a dense destination set {0, …, m − 1}, with m ≤ n. An invalid mapping violates the interface precondition; runtime rejection is not guaranteed. Empty image gives zero-dimensional projection. The mapping object shall provide has_empty_codomain(), max_in_codomain() and maps(i,j) with the meanings in 🔗 1. Public partial coordinate-map type and valid use; queries shall preserve the mapping. For positive old dimension the empty-image query precedes other queries; if empty, no maximum or lookup is required. Otherwise the maximum is queried at most once and lookups at most once per old coordinate. Zero old dimension may return without queries.
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.
-
7. Conditional coordinate replication PPL-SPEC-001301 expand_space_dimension(var,m) shall append m independent replicas of the selected coordinate conditioned on the unchanged other coordinates. Every replica, separately substituted for var, shall satisfy the original grid together with those other coordinates; replicas shall not be required to equal one another. Original coordinates retain their meaning. Empty remains empty and zero replicas are identity. An invalid source index shall throw std::invalid_argument; dimension overflow shall throw std::length_error, before mutation.
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.
-
8. Least-grid folding of coordinate alternatives PPL-SPEC-001302 fold_space_dimensions(vars,dest) shall form the least grid containing the entry grid and every alternative obtained by assigning dest the old value of one selected source, then existentially project away the selected sources. Remaining coordinates retain their order. The destination shall be a valid unselected coordinate. Invalid destination, invalid source or destination included in the selection shall throw std::invalid_argument before mutation. Empty selection is identity after destination validation; empty remains empty in the reduced space.
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.
-
1. Integer-time-elapse grid abstraction PPL-SPEC-001303 time_elapse_assign(y) shall assign the least grid containing {p + μq ∣ p ∈ X, q ∈ Y, μ ∈ Z}. The multiplier is integer time, including negative integers. Either empty operand shall yield empty. The distinct operand value and receiver dimension shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
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.
-
2. Exact integer-coordinate restriction PPL-SPEC-001304 drop_some_non_integer_points(complexity) shall intersect exactly with Zn. The overload with vars shall instead require integrality exactly on those coordinates. Unselected coordinates need not be integral; an empty selection is identity. Every complexity value shall give this exact result. Out-of-range selected indices shall throw std::invalid_argument before mutation, including empty.
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.
-
3. Bounded-integer wrapping abstraction PPL-SPEC-001305 wrap_assign(vars,w,r,o,cs_p,complexity_threshold,wrap_individually) shall conservatively abstract bounded-integer conversion on the selected coordinates, with modulus M = 2w and the signed or unsigned range selected by r. Coordinates supplied as bounded integers are assumed integral. Unselected coordinates and their projection shall be preserved. Empty selections are identity. Any out-of-range selected index, or an optional constraint system of excess dimension, shall throw std::invalid_argument before mutation. The optional constraints and the two precision controls need not improve the result.
For OVERFLOW_WRAPS, a constant integer shall map to its unique in-range residue. A discrete coordinate shall retain its entry period together with period M, except that a period divisible by M shall collapse to the unique in-range residue. Rational periods shall first determine their possible integer residues; no possible integer shall yield empty. A constant noninteger shall yield empty. Real line directions may be retained conservatively. For OVERFLOW_IMPOSSIBLE, no in-range possible integer shall yield empty, one shall fix the coordinate, and multiple values may retain the original periodic abstraction. For OVERFLOW_UNDEFINED, overflow may forget the coordinate's value while retaining integrality; an already representable constant may be retained. No global optimality for correlated coordinates is required.
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.
-
4. Grid topological closure PPL-SPEC-001306 topological_closure_assign() shall preserve the receiver's mathematical value and ambient dimension. Every represented rational grid, including empty, is closed in its ambient real topology.
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.
-
Incoming link from: 2. Recycling bulk insertion of rational-grid generators1
1. Copying bulk insertion of rational-grid generators PPL-SPEC-001271 add_grid_generators(input) shall add the input points, parameters and lines to a generator description of the receiver, with the meaning in 🔗 1. Rational-grid values, coefficient profile and valid use. For nonempty G = p + H, input points ri, parameters qj and lines lk shall produce p + H + ∑iZ(ri − p) + ∑jZqj + ∑kRlk. In particular, adding points shall form a grid hull, not a finite union.
A system with no stored rows shall be a no-op. If the receiver is empty and the nonempty input has no point, the operation shall throw std::invalid_argument. Otherwise an empty receiver shall acquire exactly the grid generated by the input. A zero-dimensional point shall turn zero-dimensional empty into universe; zero-dimensional universe shall be preserved. Zero parameters omitted by the generator-system contract shall not constitute stored rows.
The input's value, dimension and storage shall be preserved, including when an exception propagates. A current generator-system view borrowed from the receiver may be supplied: its pre-call generators shall be used as the input, and normal receiver-view invalidation shall apply during mutation.
The receiver's ambient dimension shall be preserved. Missing coordinates in lower-dimensional input generators shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including empty inputs and empty receivers. The result shall be independent of input order, redundant rows, storage choice and current-description caches. Previously undetected inconsistency shall have the same meaning as empty.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Input and receiver objects shall remain live for their specified uses. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. Borrowed receiver views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Recycling bulk insertion of rational-grid generators PPL-SPEC-001272 add_grid_generators(std::move(input)) and add_recycled_grid_generators(input) shall produce the same mathematical receiver value, ambient dimension and ordinary input-rejection outcomes as 🔗 1. Copying bulk insertion of rational-grid generators. These operations may transfer ownership from the supplied system. The input shall be a separate writable object; it shall not alias receiver-owned storage. After successful or exceptional return the input shall retain ownership sufficient for destruction. Its rows, dimension, storage and suitability for subsequent queries shall not be assumed.
A receiver discovered empty while converting its congruences shall use the same insertion rules as an already marked empty receiver. Nonempty input without a supporting point shall therefore be rejected; input with a point shall establish the generated grid. Conversion shall not leave subsequent normalization dependent on a nonexistent old supporting point.
The receiver's ambient dimension shall be preserved. Missing coordinates in lower-dimensional input generators shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including empty inputs and empty receivers. The result shall be independent of input order, redundant rows, storage choice and current-description caches. Previously undetected inconsistency shall have the same meaning as empty.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Input and receiver objects shall remain live for their specified uses. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. Borrowed receiver views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Copying insertion of a single rational-grid generator PPL-SPEC-001273 add_grid_generator(g) shall add the pre-call generator value to a generator description of the receiver, preserving its ambient dimension. For nonempty G = p + H, adding a point r shall produce p + H + Z(r − p); adding a parameter q shall produce p + H + Zq; adding a line l shall produce p + H + Rl. Insertion of an already supplied generator shall be mathematically idempotent. A zero parameter shall preserve a nonempty grid.
An empty receiver shall accept a point and become that singleton. A parameter or line supplied to empty shall throw std::invalid_argument, including a zero parameter. Previously undetected inconsistency shall have the same meaning as already marked empty. In zero dimensions a point shall establish universe; a parameter shall preserve universe and be rejected by empty.
Missing coordinates shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including an empty receiver or a zero parameter. Input type and value shall be captured safely when the argument is borrowed from the receiver's generator view. Receiver mutation may invalidate that view according to 🔗 10. Borrowed congruence and generator views of grid values; the external input case shall preserve its source. The result shall not depend on storage, redundant rows or cache history.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. External input descriptors shall retain their value.
-
Incoming links from: 2. Construction of nonzero grid-line directions 3. Exact rational parameter construction including zero steps 11. Value-preserving scaling to a common positive divisor 12. Grid-generator equivalence and stored identity 15. Grid-generator-system integer-affine span and construction 16. Owned grid-generator systems and representation comparison 17. Grid-generator insertion, zero steps and ownership transfer 6. Java mathematical representations and operation options8
1. Grid-generator values and integer versus continuous displacement PPL-SPEC-000221 A Grid_Generator shall describe a rational included point, a rational parameter displacement vector, or a continuous line direction, in its public ambient dimension. For a point or parameter with numerators ai and positive divisor d, coordinates shall be ai ⁄ d. Parameters shall retain their exact rational step, including sign and magnitude; integer multiples of that step shall contribute to a generated grid. Lines shall contribute arbitrary real multiples of their direction. Hidden divisor fields shall not be public coordinates.
Both storage representations shall be supported; default_representation shall be SPARSE. Initialization and synchronization shall follow 🔗 3. Thread initialization, default state and finalization. Computed construction, transformation, scaling and comparison guarantees shall require all evaluated coefficient steps/results to be representable in the selected profile; unchecked completion shall not prove that condition. Allocation/numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete grid generator; distinct unchanged sources shall survive failures, while modified targets shall remain destructible without universal rollback.
-
2. Construction of nonzero grid-line directions PPL-SPEC-000222 grid_line(e,r) shall construct a line from homogeneous coefficients, ignore the constant, retain declared dimension and use requested storage. It shall produce a primitive direction with first nonzero coefficient positive. A zero homogeneous direction, including a nonzero constant expression, shall throw std::invalid_argument without modifying its source. Static and free forms shall agree geometrically. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
3. Exact rational parameter construction including zero steps PPL-SPEC-000223 parameter(e,d,r) shall create the rational displacement with coordinates ai ⁄ d from the homogeneous input coefficients, ignoring the constant, retaining dimension and using requested storage. Nonzero negative divisors shall be accepted by reversing numerator/divisor signs to make stored divisor positive while preserving the exact signed step. The parameter's magnitude shall not be normalized as a line direction. Zero displacement shall be admitted and retain its dimension. Zero divisor shall throw std::invalid_argument and preserve sources.
Defaults shall use dimension-zero zero expression, divisor one and default storage. Representation-only and expression/representation forms shall use divisor one. A divisor borrowed from the unchanged input expression shall be admitted using its entry value. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
4. Rational grid-point construction, defaults and shared origin PPL-SPEC-000224 grid_point(e,d,r) shall construct the rational point with coordinates ai ⁄ d, ignoring the expression constant, retaining dimension and using requested storage. A negative nonzero divisor shall reverse numerator signs and become positive; common factors may be removed while preserving rational coordinates. Zero divisor shall throw std::invalid_argument. A divisor borrowed from the unchanged input expression shall use its entry value.
Omitted expression/divisor arguments shall denote the dimension-zero origin and divisor one. Representation-only and expression/representation forms shall use divisor one. Default construction shall produce that origin using requested storage. zero_dim_point() shall borrow the zero-dimensional origin until owning-thread finalization; owned copies shall be independent.
-
5. Owned grid-generator copying, assignment and swaps PPL-SPEC-000225 Copy construction shall preserve exact fields, kind, dimension and source representation; explicit-storage copies shall select their argument. Assignment shall copy complete entry value/storage, preserve distinct sources, return the target and admit self-assignment. Rvalue inputs shall admit copy forms retaining source value without requiring a distinct move operation. Copies shall remain independent of source mutation/destruction. Swaps shall exchange complete values, dimension and storage; self-swap shall preserve them. Destruction shall release owned storage. Failure during copy assignment's replacement construction shall preserve the target.
-
6. Grid-generator storage conversion PPL-SPEC-000226 representation() shall report storage. Successful conversion to dense or sparse representation shall select requested storage and preserve exact coefficients, divisor when applicable, kind and dimension. Repeating the current choice shall preserve the object. Failed replacement allocation shall leave its original value and storage unchanged.
-
7. Grid-generator dimensions and coordinate removal PPL-SPEC-000227 max_space_dimension() shall equal the linear-expression limit minus one, reserving the internal divisor coordinate. space_dimension() shall report public dimension. Dimensioned copies and resizing shall require admitted result dimensions, retain lower-index coordinates and zero-extend or discard trailing coordinates. Explicit-storage copies shall use their argument; other copies shall retain source storage.
remove_space_dimensions(vars) shall require in-dimension selected indices, discard those coordinate coefficients, compact retained coordinates in their original order and return true. Removing none/all shall be admitted. Kind, storage and applicable rational remaining coordinates shall be retained. A transformed zero parameter or zero line direction shall contribute no displacement, without supplying a supporting point.
-
8. Grid-generator coordinate permutation and zero insertion PPL-SPEC-000228 Swapping in-dimension variables shall exchange their coordinate coefficients. A cycle shall require distinct in-dimension variables and move each listed coefficient to the following listed position, wrapping last to first. Empty and singleton cycles shall preserve the object. Inserting zero coordinates before v.id() <= space_dimension() shall shift the suffix and increase dimension by the requested admitted amount; a zero shift shall preserve value. Kinds, storage and applicable rational point/parameter values shall follow that coordinate correspondence. A line may be reoriented by equivalent sign normalization; a parameter's sign and exact step shall be preserved.
-
9. Grid-generator kind, coefficient, divisor and expression queries PPL-SPEC-000229 Borrowed coefficient and expression accessors shall require an lvalue receiver, with corresponding const && overloads deleted in every coefficient profile. Copying a borrowed expression view shall not extend the owning descriptor's lifetime.
Kind predicates and type() shall identify line, parameter and point; is_line_or_parameter() and is_parameter_or_point() shall identify their named unions. coefficient(v) shall expose a public coordinate numerator or direction coefficient, rejecting v.id() >= space_dimension() with std::invalid_argument. divisor() shall return a positive divisor for parameters/points and reject lines with std::invalid_argument. all_homogeneous_terms_are_zero() shall inspect only public homogeneous coordinates, excluding divisor fields.
expression() shall borrow a read-only view of the public homogeneous coefficients, with public dimension and constant zero, hiding divisor fields. The owner shall remain alive and unchanged for covered view uses. Materializing the view shall yield an independent Linear_Expression. Configured returned references shall borrow until owner mutation/destruction. Queries shall preserve source values.
-
10. Explicit replacement of a rational generator divisor PPL-SPEC-000230 For a point or parameter and positive input d, set_divisor(d) shall replace only its divisor using the input entry value, preserving coordinate numerators, dimension, kind and storage. It shall therefore change the rational vector when the divisor changes. A divisor borrowed from the same object shall be admitted. Calling it on a line shall throw std::invalid_argument without changing that line.
-
11. Value-preserving scaling to a common positive divisor PPL-SPEC-000231 For a point or parameter, scale_to_divisor(d) shall require a positive d that is an exact multiple of the current positive divisor. It shall set the divisor to d and multiply all public numerators by the same positive ratio, preserving exact rational vector, kind, dimension and storage. Reusing the current divisor shall preserve exact fields. Borrowed inputs from the same object shall use their entry values. For a line and any admitted positive d it shall do nothing. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
12. Grid-generator equivalence and stored identity PPL-SPEC-000232 is_equivalent_to and equality shall compare equal-kind, equal-dimension generators independently of storage. Points and parameters shall compare their exact rational vectors, including parameter sign and magnitude. Opposite parameter vectors may generate the same integer span but shall remain distinct parameter values. Lines shall compare their real direction spans, admitting opposite nonzero scales. Different dimensions/kinds shall compare unequal. Inequality shall negate equivalence.
is_equal_to shall compare complete stored fields and kind independently of storage. Positive identity shall imply equivalence; a negative identity shall not prove different geometric values. Queries shall preserve sources. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
13. Reloadable grid-generator representation PPL-SPEC-000233 ascii_dump(s) shall export all stored coefficient/divisor fields and the public kind token; the no-argument form shall use std::cerr. Export shall preserve the source. Compatible complete exported data with representable coefficients shall load with true, replacing the generator's fields and public dimension while retaining destination storage.
Malformed/truncated expression or kind fields, missing internal divisor slots, nonpositive point/parameter divisors and encoded kind/field mismatches shall return false rather than be accepted as valid generators. Trailing input shall remain available. A failed target shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation and numerical exceptions may propagate.
-
14. Readable grid-generator, kind and system output PPL-SPEC-000234 Grid-generator output shall use l(...), q(...) or p(...) for line, parameter or point, printing public homogeneous coefficients with the active formatter and sign/unit conventions of 🔗 14. Human-readable affine output and formatter dispatch. Zero tuples shall print 0. A nonunit point/parameter divisor shall be printed after /, with parentheses around a nonzero numerator expression. Kind output shall print LINE, PARAMETER or POINT.
System output shall print its public generators separated by ", ", or false for an empty range. Output shall return the supplied stream, add no newline and preserve source values. Each type's print() shall use that output on std::cerr. Evaluated coefficient negations shall be representable.
-
15. Grid-generator-system integer-affine span and construction PPL-SPEC-000235 For lines L, parameters Q and included points P, a Grid_Generator_System shall generate the real vectors
∑l ∈ Lτll + ∑q ∈ Qkqq + ∑p ∈ Pzpp, τl ∈ ℝ, kq, zp ∈ ℤ, ∑p ∈ Pzp = 1.Without a point the generated grid shall be empty, even with stored nonzero lines/parameters. Integer affine combinations of multiple points shall not be replaced by convex combinations. Default construction shall make a zero-dimensional system with no rows; an explicit dimension constructor shall retain its supplied admitted dimension. Singleton construction shall copy its generator and dimension, including a zero parameter. Ordinary insertion shall separately follow 🔗 17. Grid-generator insertion, zero steps and ownership transfer. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton zero-dimensional origin until owning-thread finalization. Numerical/use/failure prerequisites shall follow 🔗 1. Grid-generator values and integer versus continuous displacement.
-
16. Owned grid-generator systems and representation comparison PPL-SPEC-000236 Copies/assignment shall preserve generated grid, declared dimension and retained row sequence. Ordinary copies and assignment shall retain source storage, while explicit-storage copies shall use their argument. Assignment shall return the target, preserve distinct sources, admit self-assignment and retain source value under rvalue copy forms. Copies shall survive source mutation/destruction. Swaps shall exchange full values, dimensions and storage, including self-swap. Successful representation conversion shall select dense or sparse row storage and preserve the generated grid and dimension. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Grid-generator values and integer versus continuous displacement.
is_equal_to and system equality shall compare declared dimensions and retained row sequence using equivalent corresponding generators, not decide equality of arbitrarily reordered or redundant generated grids. Comparison shall ignore dense/sparse choice. Destruction shall release owned storage.
-
Incoming link from: 15. Grid-generator-system integer-affine span and construction1
17. Grid-generator insertion, zero steps and ownership transfer PPL-SPEC-000237 Const-reference insertion shall add a copy of a grid generator to the generating collection, preserve its source and retain target storage. Result dimension shall be the maximum input dimension, zero-extending shorter rows. A zero parameter shall add no row but shall still extend ambient dimension as needed; it shall not supply a supporting point. Copy insertion of a borrowed target row shall use its entry value. Duplicates/redundant generators may be removed or reordered while preserving the generated grid.
Rvalue row insertion shall transfer a source not borrowed from the target, with the same generated-grid effect as copying; the source shall remain destructible. Consuming-system insertion shall require distinct systems, combine their generating collections in aligned dimensions, and clear the source to a dimension-zero empty system on success. No unchanged-value guarantee shall apply to transferred inputs. Numerical/failure prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
Const row sources, including const rvalues, shall use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
18. System dimensions, row-kind counts and read-only iteration PPL-SPEC-000238 max_space_dimension() shall return Grid_Generator::max_space_dimension() - 1 and space_dimension() the public ambient dimension. empty() shall mean no stored rows, independently of whether the generated grid lacks a supporting point. num_rows(), num_parameters() and num_lines() shall count retained stored generators of their named scope; has_points() shall report a retained point. clear() shall remove all rows and reset dimension zero while retaining storage.
begin()/end() shall expose retained generators sharing system dimension, without promising geometric sorted order or duplicate multiplicity. Forward iterators shall borrow rows, support independent copied/assigned positions, return the advanced iterator from prefix increment and entry-position copy from postfix increment. Comparison shall require one unchanged system. Defaults shall admit copying/assignment/destruction before valid-position assignment. System mutation/destruction shall invalidate iterators and rows.
-
19. Grid-generator and system invariants and memory queries PPL-SPEC-000239 OK() shall report checked storage invariants, without promising canonical normalization of every valid parameter representation. Successful operations under their preconditions shall produce values satisfying those invariants. Each type's total memory count shall equal its sizeof plus external memory count. Queries shall preserve geometric fields, kind, dimension and storage. Counts shall not promise allocator overhead, process memory or a dense/sparse size ordering.
-
20. Reloadable grid-generator-system representation PPL-SPEC-000240 ascii_dump(s) shall export stored rows, public dimension, storage and required system-state fields; the no-argument form shall use std::cerr. Export shall preserve source value. Compatible complete exports with representable coefficients shall load with true, replacing the target's generated grid, dimension, retained rows and encoded storage.
Malformed/truncated headers/rows, invalid divisor or kind structure, and inconsistent encoded dimensions/state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failed targets shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation/numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
Incoming link from: 2. Copying congruence-system addition and refinement1
1. Single congruence addition and refinement PPL-SPEC-001274 add_congruence(cg) and refine_with_congruence(cg) shall replace the receiver G by G∩{x ∣ cg(x)}. Equalities and proper congruences shall have their meanings in 🔗 1. Rational-grid values, coefficient profile and valid use. Tautologies shall preserve the grid and contradictions shall produce empty. Lower-dimensional rows shall be zero extended; excess declared row dimension shall throw std::invalid_argument before mutation, including for an empty receiver. The external row value shall be preserved.
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.
-
Incoming link from: 3. Recycling congruence-system addition1
2. Copying congruence-system addition and refinement PPL-SPEC-001275 add_congruences(cgs) and refine_with_congruences(cgs) shall intersect the receiver with the conjunction of all input rows, exactly as repeated 🔗 1. Single congruence addition and refinement. An empty system shall preserve the grid. An independently supplied input shall retain its value, declared dimension and storage, including on exceptional return. The receiver's current congruence view may be supplied; its entry value shall be used before invalidation. Excess declared input dimension shall throw std::invalid_argument before mutation, even for no rows or an empty receiver.
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.
-
3. Recycling congruence-system addition PPL-SPEC-001276 add_congruences(std::move(cgs)) and add_recycled_congruences(cgs) shall produce the same mathematical grid and dimension-rejection behavior as 🔗 2. Copying congruence-system addition and refinement. The source shall be a separate writable system without receiver-owned storage. Its storage may be transferred; after successful or exceptional return it shall retain ownership sufficient for destruction, without a guarantee about its rows or suitability for queries.
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.
-
Incoming link from: 5. Copying and recycling strict constraint-system addition1
4. Strict addition of a single linear constraint PPL-SPEC-001277 add_constraint(c) shall intersect the receiver exactly with an equality or constant constraint. A constant true inequality shall preserve the grid; a constant false inequality shall produce empty. A nonconstant inequality shall throw std::invalid_argument when processed. An already marked empty receiver may return without processing a dimension-compatible row. Excess declared constraint dimension shall throw std::invalid_argument before mutation, even for empty.
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.
-
5. Copying and recycling strict constraint-system addition PPL-SPEC-001278 add_constraints(cs) and add_recycled_constraints(cs) shall process the conjunction using the supported-constraint rules in 🔗 4. Strict addition of a single linear constraint. Excess declared system dimension shall throw std::invalid_argument before mutation, even for no rows or empty. Copying shall preserve the source value, dimension and storage. Recycling requires a separate writable source and guarantees its destruction after return; it need not actually transfer its storage. When an unsupported inequality is reached, earlier accepted rows may already have changed the receiver; rollback shall not be assumed.
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.
-
6. Conservative refinement by linear constraints PPL-SPEC-001279 refine_with_constraint(c) and refine_with_constraints(cs) shall intersect with every equality and produce empty for an inconsistent constant constraint. Other inequalities shall be ignored. Thus the result shall contain the concrete constrained set and shall never introduce points outside the entry grid. Input values shall be preserved. Excess declared input dimension shall throw std::invalid_argument before mutation, including an empty receiver or system.
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.
-
7. Equality-constraint extraction and minimization PPL-SPEC-001280 constraints() shall return an independently owned equality-constraint system defining the real affine hull of the receiver. Empty shall yield an inconsistent system, including when emptiness follows from incompatible proper congruences not previously normalized. minimized_constraints() shall return a minimal equality description of the same affine hull. Both shall preserve ambient dimension, receiver value and ownership, while normalization caches may change. The result shall be independent of storage, redundant rows and description history.
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.
-
Incoming link from: 2. Equality-compatible grid hashing1
1. Exact grid equality and inequality PPL-SPEC-001251 operator== shall return true exactly when both ambient dimensions and represented sets agree. Different dimensions shall compare unequal, including empty grids in different dimensions. Inequality expressions shall be the logical negation of equality. Equal-dimensional empty grids shall compare equal, including when inconsistency has not previously been detected. Self comparison shall have the ordinary reflexive result for every admitted value.
The result shall be independent of constructor choice, generator order, redundant descriptors and the current dual-description caches.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
2. Equality-compatible grid hashing PPL-SPEC-001252 hash_code() shall return a value of type int32_t. Equal grid values under 🔗 1. Exact grid equality and inequality shall have equal hashes. Normalization, query history and equivalent descriptions shall not change the hash of an unchanged grid. Hash collisions shall be permitted, including between unequal values of the same dimension. The numerical hash shall not be a persistent identifier or promise a value stable across library versions or configurations.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
3. Exact grid containment PPL-SPEC-001253 For equal-dimensional grids, left.contains(right) shall return true exactly when γ(right) ⊆ γ(left). Every grid shall contain the empty grid; empty shall contain no nonempty grid; universe shall contain every equal-dimensional grid. Self containment shall hold. Different ambient dimensions shall throw std::invalid_argument before empty, universe or identity shortcuts. Previously undetected inconsistency shall retain the same set meaning.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
4. Exact strict grid containment PPL-SPEC-001254 For equal-dimensional grids, left.strictly_contains(right) shall return true exactly when γ(right) ⊊ γ(left). It shall be false for self comparison and equal sets; a nonempty grid shall strictly contain empty. Different ambient dimensions shall throw std::invalid_argument even when either operand is empty.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
5. Exact grid disjointness PPL-SPEC-001255 For equal-dimensional grids, left.is_disjoint_from(right) shall return true exactly when γ(left)∩γ(right) = ⌀. The result shall be symmetric. Empty shall be disjoint from every grid, including itself; no nonempty grid shall be disjoint from itself. Different ambient dimensions shall throw std::invalid_argument before shortcuts. Success shall preserve both operands even when detecting inconsistent input or incompatible periodic residues.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
Incoming link from: 7. Exact grid relation with a linear constraint1
6. Exact grid relation with a congruence PPL-SPEC-001256 relation_with(cg) shall classify the grid relative to the solution set of cg. For nonempty grids it shall report exactly one of is_included(), is_disjoint() and strictly_intersects(): respectively all points satisfy cg, no point does, or both satisfying and nonsatisfying points exist. Empty shall report is_included() && is_disjoint() && saturates(). An equality congruence shall additionally report saturates() exactly when the grid is included in its equality hyperplane. For a nonempty positive-dimensional grid and a proper congruence, the returned relation shall consist of the inclusion/disjointness/intersection assertion alone. Zero-dimensional universe shall report is_included() && saturates() for a true constant congruence and is_disjoint() for a false one.
For a nonempty generator description, let S = {a⋅x − b : x ∈ γ(G)}. If a real line has nonzero scalar image, S = R. Otherwise S = s + dZ, where s = a⋅p − b and d ≥ 0 generates the rational subgroup of parameter images and supporting-point differences. This scalar image shall determine equality and periodic intersection without depending on generator order or rational divisor representation.
A congruence dimension greater than the grid dimension shall throw std::invalid_argument before distinguished-value shortcuts. Smaller descriptors shall have zero coefficients in the remaining coordinates.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
7. Exact grid relation with a linear constraint PPL-SPEC-001257 relation_with(c) shall classify all points, no points or a proper nonempty subset of grid points satisfying c using is_included(), is_disjoint() or strictly_intersects(). Empty shall report is_included() && is_disjoint() && saturates(). In every case, saturates() shall be present exactly when every grid point lies on the equality hyperplane obtained from c by replacing its relation with equality. Thus a grid on the boundary of a strict inequality shall report is_disjoint() && saturates().
For nonempty grids, a nonconstant scalar image along any line, parameter or supporting-point displacement shall take values on both sides of every finite halfspace threshold. Otherwise the scalar image shall be constant and its sign shall determine strict/nonstrict satisfaction and saturation. Equality constraints shall use the exact equality-congruence meaning in 🔗 6. Exact grid relation with a congruence.
A constraint dimension greater than the grid dimension shall throw std::invalid_argument before shortcuts; omitted coefficients shall be zero. Strict boundary behavior shall apply also to constant constraints and zero dimensions.
Strict constraints extracted from NNC polyhedra shall retain their mathematical relation when queried against a larger-dimensional grid.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
8. Exact grid subsumption of grid generators PPL-SPEC-001258 relation_with(g) for a Grid_Generator shall return Poly_Gen_Relation::subsumes() exactly under the following conditions:
- a point denotes a member of the grid;
- for a parameter q, the grid is nonempty and every integer translate x + zq, for x ∈ γ(G) and z ∈ Z, remains in the grid;
- for a line ℓ, the grid is nonempty and every real translate x + tℓ, for t ∈ R, remains in the grid.
In all other cases it shall return Poly_Gen_Relation::nothing(). In particular, empty shall subsume no generator, including a zero parameter; this shall hold before any earlier query has detected the emptiness. Parameter steps shall use their rational divisors and shall not be confused with arbitrary real line displacements. Zero-dimensional universe shall subsume every admitted zero-dimensional grid generator. A descriptor dimension greater than the grid dimension shall throw std::invalid_argument before empty/universe shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
9. Exact grid subsumption of polyhedral generators PPL-SPEC-001259 relation_with(g) for a polyhedral Generator shall return Poly_Gen_Relation::subsumes() exactly when the grid is nonempty and the following corresponding condition holds. Points and closure points shall be tested as rational point members, with the same result for identical coordinates. Lines shall be tested as arbitrary real displacements. A ray shall be subsumed exactly when its direction is an admitted real line direction of the grid; an integer parameter in that direction alone shall not suffice.
It shall return Poly_Gen_Relation::nothing() otherwise, including every empty grid before or after inconsistency detection. Zero-dimensional universe shall subsume every admitted zero-dimensional polyhedral generator. Descriptors of greater dimension than the grid shall throw std::invalid_argument before shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
1. Exact directional boundedness of affine expressions on grids PPL-SPEC-001265 bounds_from_above(expr) and bounds_from_below(expr) shall return true exactly when the expression is bounded in the indicated direction over the grid. Empty shall be bounded in both directions. On a nonempty grid, either both queries shall be true and the expression shall have one constant value, or both shall be false and the expression shall be unbounded in both directions.
For a generator description p + ∑iℤqi + ∑jℝlj and e(x) = a⋅x + b, boundedness shall be equivalent to a⋅qi = 0 and a⋅lj = 0 for every direction, including point differences when the description has more than one generating point. Zero coefficients shall not introduce dependence on unused directions.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
Incoming link from: 4. Point witnesses for rational-grid maximization1
2. Exact rational-grid supremum and attainment PPL-SPEC-001266 maximize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded above. On true, n/d shall be its exact supremum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
Incoming link from: 5. Point witnesses for rational-grid minimization1
3. Exact rational-grid infimum and attainment PPL-SPEC-001267 minimize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded below. On true, n/d shall be its exact infimum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
4. Point witnesses for rational-grid maximization PPL-SPEC-001268 The maximize overload with a Generator output shall obey 🔗 2. Exact rational-grid supremum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned supremum. Its type shall be POINT, not a closure point or a direction. All coordinates, including those absent from the objective, shall satisfy the grid's equalities and periodic restrictions. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness as well as all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
5. Point witnesses for rational-grid minimization PPL-SPEC-001269 The minimize overload with a Generator output shall obey 🔗 3. Exact rational-grid infimum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned infimum. Its type shall be POINT, not a closure point or a direction. Every coordinate shall satisfy the grid's equalities and periodic restrictions, including coordinates unused by the objective. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness and all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
6. Exact affine-image frequency and closest value on rational grids PPL-SPEC-001270 For the affine image S = {e(x) ∣ x ∈ G}, frequency(expr,fn,fd,vn,vd) shall return false when S is empty or equals ℝ, preserving all four supplied outputs. Otherwise it shall return true and positive denominators, with both fractions reduced. If S = {c}, fn/fd shall be zero over one and vn/vd shall be c. Otherwise S shall be the coset v + dℤ where d = fn ⁄ fd > 0 is its unique positive period generating all differences and v = vn ⁄ vd ∈ S has minimum absolute value. Either sign shall be permitted when two values tie.
A line with nonzero homogeneous objective image shall make the frequency undefined. Otherwise the positive period shall be the rational greatest common divisor of the parameter images and generating-point differences; a zero period shall mean the objective is constant. The objective's constant term shall translate the coset without changing its period. Zero-dimensional universe shall report zero frequency and the constant expression value.
For a bounded coefficient profile, generator scalar products, translated point values, parameter gcds and closest-residue selection shall use exact working integers until both output fractions are reduced. Only the final reduced numerators and denominators shall require coefficient admission. A machine-carrier overflow shall promote the working arithmetic without truncation. Stored grid descriptions remain subject to their profile limits.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
1. Exact rational-grid intersection PPL-SPEC-001281 intersection_assign(y) shall replace X by X∩Y exactly. Empty shall be absorbing, universe neutral and self intersection idempotent. The operand shall retain its mathematical value. Unequal ambient dimensions shall throw std::invalid_argument before receiver mutation, including empty operands.
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.
-
2. Least containing rational grid PPL-SPEC-001282 upper_bound_assign(y) shall replace X by the least rational grid containing X∪Y. Empty shall be neutral and self hull idempotent. For nonempty X = p + HX and Y = q + HY, the result shall be p + HX + HY + Z(q − p). It need not equal the finite union. The operand value shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
A self join shall preserve the stored descriptions. If the operands have the same ordered generator rows in current generator systems or the same ordered congruence rows in current congruence systems, the join shall keep the existing caches without appending rows or materializing another system.
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.
-
3. Conditional exact rational-grid union PPL-SPEC-001283 upper_bound_assign_if_exact(y) shall return true exactly when X∪Y is a rational grid. On true it shall assign that exact union. On false it shall preserve the receiver's mathematical value; its caches may change. Empty and contained operands shall succeed. The operand value shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
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.
-
4. Least-grid abstraction of set difference PPL-SPEC-001284 difference_assign(y) shall assign the least rational grid containing X⧵Y. Removing a superset shall yield empty; removing disjoint or empty shall preserve X. When the difference is the other coset of an index-two subgroup, that coset shall be retained exactly. In other cases the least grid may be the whole entry receiver. The operand shall retain its value. Unequal dimensions shall throw std::invalid_argument before mutation.
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.
-
5. Context-preserving grid simplification PPL-SPEC-001285 simplify_using_context_assign(y) shall produce X’ satisfying X’∩Y = X∩Y. A false return shall imply X∩Y = ⌀; true need not prove nonemptiness. Simplification may enlarge the receiver and need not be maximal or preserve it outside the context. The operand's mathematical value shall be preserved unless it is the receiver itself. Unequal dimensions shall throw std::invalid_argument before mutation.
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.
-
6. Coordinate cylindrification PPL-SPEC-001286 unconstrain(var) and unconstrain(vars) shall existentially project the selected coordinates and reintroduce them as unconstrained real coordinates at their original indices. They shall preserve ambient dimension and all correlations among unselected coordinates. Empty remains empty; an empty selection is identity. Any selected index outside the ambient dimension shall throw std::invalid_argument before mutation, including empty receivers.
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.
-
1. Human-readable rational-grid presentation PPL-SPEC-001260 IO_Operators::operator<<(s, grid) shall write false for empty, true for universe, and a readable congruence description otherwise. Nontrivial output shall denote the same set and coordinate identities as the grid, using the installed variable formatter and descriptor output conventions. It shall return s by reference. Representation normalization shall be permitted, preserving set and ambient dimension. This display shall not promise an ascii_load input format or a fixed order of equivalent rows. Stream failure shall follow the stream's configured state/exception behavior. print() shall send the same readable presentation to std::cerr without adding a newline; it shall have the same source and arithmetic prerequisites.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
-
2. Reloadable rational-grid record export PPL-SPEC-001261 ascii_dump(s) shall export a complete record of ambient dimension, distinguished-value/status information, stored congruence and generator systems with their current-description indicators, and dimension-kind data required by the encoded reduced descriptions. The no-argument overload shall write the same record to std::cerr. Export shall preserve the source value, dimension, stored descriptions, status and ownership.
A compatible complete record shall support the loading contract in 🔗 3. Compatible rational-grid record loading and failure state. The scope shall be the corresponding supported producer/consumer format and representable selected coefficient profile; cross-version compatibility, fixed bytes across equivalent cache histories and compatibility with human-readable presentation shall not be implied. Stream failures and enabled stream exceptions shall propagate through the standard stream mechanism; incomplete output shall not be a complete record.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
The internal status contract shall follow 🔗 4. Grid internal status signed-keyword export.
-
3. Compatible rational-grid record loading and failure state PPL-SPEC-001262 ascii_load(s) shall return true on a trusted, compatible complete record produced by 🔗 2. Reloadable rational-grid record export, replacing the receiver's set and ambient dimension. Encoded storage shall be retained for the loaded descriptor systems. Cached normal forms may be invalidated and rebuilt under the current reduction rules; cache reconstruction shall preserve mathematical meaning. Trailing input shall remain available after the complete record.
Malformed or truncated fields, unsupported ambient dimensions, invalid status/descriptor structures, incompatible current-description dimensions and nonempty-state generator descriptions lacking a point shall return false, with and without enabled assertions. For a successful load of a trusted record written by 🔗 2. Reloadable rational-grid record export, the receiver shall meet 🔗 5. Rational-grid representation invariant query. Its current descriptions shall define the same set, and an empty grid shall retain empty congruence and generator views. Structural checks can accept altered records whose descriptions contradict one another or disagree with the status. Further operations require a valid representation.
Stream, allocation and selected numerical exceptions may propagate. After false or an exception, the receiver shall retain ownership sufficient for destruction; rollback and subsequent queries shall not be assumed.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
Storage for serialized dimension kinds shall grow with the accepted entries rather than the declared dimension alone.
The internal status contract shall follow 🔗 5. Grid internal status signed-keyword loading and rejection.
-
4. Owned rational-grid memory accounting PPL-SPEC-001263 external_memory_in_bytes() shall report the owned external storage of the congruence system, generator system and dimension-kind vector. Descriptor system counts shall follow their component contracts; the vector count shall include its retained allocated capacity rather than only its live entries. Inactive or logically empty cached data shall remain counted while owned. Other objects, runtime scratch pools and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(Grid) plus that external count. The sums shall fit memory_size_type and use the selected build's sizes. Both queries shall preserve set, ambient dimension, caches, capacity, ownership and lifetimes; the observed storage shall remain unchanged during the query.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
-
Incoming link from: 3. Compatible rational-grid record loading and failure state1
5. Rational-grid representation invariant query PPL-SPEC-001264 OK(false) shall return true for an admitted grid whose distinguished state, ambient dimension, status and current descriptions satisfy the representation invariants. OK(true) shall additionally require the grid to be nonempty. The ambient dimension shall be supported and every current system shall be structurally valid and have that dimension.
An empty grid shall have empty generator views and a contradictory congruence view. Zero-dimensional universe shall have no defining congruences and one zero-dimensional point. A nonempty-state current generator system shall contain a point. If both descriptions are current, they shall define the same set, including affine restrictions and discrete periods. A congruence-only description may be inconsistent without already having the empty flag; in that case OK(false) shall be true and OK(true) false.
The query shall preserve the receiver and may use independent temporary normalization to check consistency. It may allocate and propagate supported resource or numerical failures. On an invalid state it may emit diagnostic text; diagnostic wording shall not be a stable interface. The query shall operate only on live, destructible owned structures, not arbitrary invalid addresses or corrupted object representations.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
The internal status contract shall follow 🔗 3. Grid internal status consistency predicate.
-
Incoming links from: 1. Exact rational affine image 2. Exact rational affine preimage 3. Generalized variable affine image 4. Generalized variable affine preimage 5. Generalized expression affine image 6. Generalized expression affine preimage 7. Bounded affine image abstraction 8. Bounded affine preimage abstraction 1. Congruence widening and finite delay 2. Generator widening and finite delay 3. Representation-selected default grid widening 4. Congruence-limited extrapolations 5. Grid convergence certificates 1. Grid construction from boxes 1. Grid construction from boxes 2. Grid construction from bounded-difference shapes 2. Grid construction from bounded-difference shapes 3. Grid construction from octagonal shapes 3. Grid construction from octagonal shapes 4. Grid construction from polyhedra 1. Free-coordinate extension 2. Zero-coordinate extension 3. Ordered Cartesian concatenation 4. Selected-coordinate existential projection 5. Prefix-coordinate existential projection 6. Injective coordinate remapping 7. Conditional coordinate replication 8. Least-grid folding of coordinate alternatives 1. Integer-time-elapse grid abstraction 2. Exact integer-coordinate restriction 3. Bounded-integer wrapping abstraction 4. Grid topological closure 1. Copying bulk insertion of rational-grid generators 1. Copying bulk insertion of rational-grid generators 2. Recycling bulk insertion of rational-grid generators 3. Copying insertion of a single rational-grid generator 1. Single congruence addition and refinement 1. Single congruence addition and refinement 2. Copying congruence-system addition and refinement 3. Recycling congruence-system addition 4. Strict addition of a single linear constraint 5. Copying and recycling strict constraint-system addition 6. Conservative refinement by linear constraints 7. Equality-constraint extraction and minimization 1. Exact grid equality and inequality 2. Equality-compatible grid hashing 3. Exact grid containment 4. Exact strict grid containment 5. Exact grid disjointness 6. Exact grid relation with a congruence 7. Exact grid relation with a linear constraint 8. Exact grid subsumption of grid generators 9. Exact grid subsumption of polyhedral generators 1. Exact directional boundedness of affine expressions on grids 2. Exact rational-grid supremum and attainment 3. Exact rational-grid infimum and attainment 4. Point witnesses for rational-grid maximization 5. Point witnesses for rational-grid minimization 6. Exact affine-image frequency and closest value on rational grids 1. Exact rational-grid intersection 2. Least containing rational grid 3. Conditional exact rational-grid union 4. Least-grid abstraction of set difference 5. Context-preserving grid simplification 6. Coordinate cylindrification 1. Human-readable rational-grid presentation 2. Reloadable rational-grid record export 3. Compatible rational-grid record loading and failure state 4. Owned rational-grid memory accounting 5. Rational-grid representation invariant query 2. Dimensioned empty and universe grid construction 3. Owned grid copying, assignment and destruction 4. Whole grid value exchange 5. Exact grid construction from congruence systems 6. Exact grid construction from generator systems 6. Exact grid construction from generator systems 7. Grid construction from equality constraint systems 8. Ambient and affine grid dimensions 9. Exact foundational grid classification 10. Borrowed congruence and generator views of grid values80
1. Rational-grid values, coefficient profile and valid use PPL-SPEC-001241 Grid shall represent the solutions in Rn of a finite system of rational linear congruences. For integer coefficients after common denominator scaling, a row a⋅x ≡ mb shall mean a⋅x − b ∈ mZ when m > 0, and a⋅x = b when m = 0. Empty and universe shall be distinct in every supported ambient dimension. Coordinates absent from all restrictions shall remain free. The coordinate carrier shall remain real, including when all stored coefficients are integral.
A nonempty rational generator description shall denote p + ∑iziiq + ∑jtjℓj, with rational supporting point p, rational parameter directions qi, rational line directions ℓj, zi ∈ Z and tj ∈ R. Additional supporting points shall contribute their displacements from p as integer parameter directions. Generator insertion order shall not affect this mathematical meaning.
coefficient_type shall be the configured Coefficient. Objects and supplied descriptors shall be live and valid. Coordinate identities and reserved dimension indications shall follow 🔗 1. Coordinate type and reserved dimension index. Library and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply. Every coefficient operation, including intermediate calculations, shall meet the selected arithmetic profile's range and resource prerequisites. Exact guarantees shall apply when these preconditions hold; bounded coefficient storage shall not silently turn the grid into an integer-coordinate domain.
When eliminating an equality from a proper congruence, an unrepresentable inhomogeneous difference shall be replaced by an equivalent exact residue modulo the positive row modulus. Range requirements shall continue to apply to modulus scaling and homogeneous coefficients; real coordinates shall not permit reducing homogeneous coefficients modulo that modulus.
Diagonal LCMs used in either description-conversion direction shall be exact even when the working value exceeds the configured coefficient range. Each quotient stored in a destination row shall still fit that range. Cancelling a positive factor shared by proper congruence rows shall include their moduli and stored integrality row, while preserving zero-modulus equalities.
Elimination of a nonzero column between two proper congruences, or between points and parameters, shall store its known zero and positive GCD without requiring cancelling products in that column to fit the coefficient range. Assertion checks of the corresponding Bezout identity shall not add a bounded intermediate-product prerequisite. Non-pivot two-product linear combinations shall be evaluated exactly before applying stored-result range requirements, including when native carrier products overflow. An unrepresentable proper-congruence constant shall use an exact equivalent residue modulo its positive row modulus. Homogeneous coefficients and generator coordinates shall still fit their selected storage; homogeneous terms shall not be reduced modulo a congruence modulus.
Independent objects shall own independent values. Mutation, destruction and operations that may update caches shall be externally synchronized against other uses of the same object. Failed construction shall release the resources acquired by the incomplete object. Failure of an operation on an existing object shall preserve ownership sufficient for safe destruction; rollback or permission for further queries shall require a stronger operation-specific guarantee.
-
2. Dimensioned empty and universe grid construction PPL-SPEC-001242 Grid(n,kind) shall construct the selected EMPTY or UNIVERSE value in ambient dimension n. Default construction shall produce the zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall report the structural limit for Grid in the selected configuration. Requests above that limit, including the reserved dimension indication, shall throw std::length_error before allocating storage for the requested dimension. The limit shall not promise that actual resources suffice for every smaller request. Failed construction shall release resources acquired by the incomplete object.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
3. Owned grid copying, assignment and destruction PPL-SPEC-001243 Copy construction shall produce an independent grid with the source's represented set and ambient dimension. The three declared complexity values shall not alter ordinary copying. Assignment shall replace the receiver's represented set and dimension with the source's, return a reference to the receiver, and support different dimensions and self-assignment. Mutation or destruction of either independent value shall not change the other value.
Destruction shall release owned resources exactly once. Failed copy construction shall release resources acquired by the incomplete object. Failed assignment shall preserve ownership needed for safe destruction; rollback to the receiver's entry value shall not be required.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
4. Whole grid value exchange PPL-SPEC-001244 x.m_swap(y) and swap(x,y) shall exchange the represented grids, ambient dimensions and owned representation state. They shall support self exchange and grids of different dimensions. Subsequent independent mutation shall affect only its selected object. Exchange shall not require grid normalization, coefficient arithmetic or new allocation.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
5. Exact grid construction from congruence systems PPL-SPEC-001245 Construction from a valid Congruence_System shall inherit its ambient dimension and denote exactly the simultaneous solutions of its rows. Equalities, proper congruences, redundant rows, tautologies and inconsistent systems shall retain their congruence meanings. A system without restrictions shall describe universe in its ambient dimension. Zero-dimensional systems shall give universe or empty according to their constant conditions.
can_recycle_congruence_systems() shall return true.
The const-reference form shall preserve its source. The non-const rvalue form may consume source storage; after successful or exceptional return the source shall require no operation other than destruction. Both forms shall reject a source dimension above max_space_dimension() with std::length_error before dimension-dependent storage allocation.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
6. Exact grid construction from generator systems PPL-SPEC-001246 Construction from a valid Grid_Generator_System shall inherit its ambient dimension and denote its point, integer-parameter and real-line combinations in 🔗 1. Rational-grid values, coefficient profile and valid use. An empty system shall construct an empty grid. A nonempty system without a supporting point shall throw std::invalid_argument. A supporting point in zero dimensions shall construct zero-dimensional universe. Generator insertion order, redundant points and equivalent simultaneous rescaling of generator numerators and divisors shall not change the represented set.
The const-reference form shall preserve its source. The non-const rvalue form may consume source storage; after successful or exceptional return the source shall require no operation other than destruction. A source dimension above max_space_dimension() shall throw std::length_error before allocating dimension-dependent grid storage.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
7. Grid construction from equality constraint systems PPL-SPEC-001247 For positive ambient dimension, construction from a Constraint_System shall accept equality rows and denote exactly their common affine subspace. An empty system shall describe universe in its ambient dimension. An inequality row shall throw std::invalid_argument in positive dimension.
In zero dimensions, constant conditions shall instead be evaluated directly: a system whose rows are all satisfied shall construct universe, and any inconsistent row shall construct empty, including an inconsistent constant inequality. Both forms shall inherit the source's ambient dimension.
can_recycle_constraint_systems() shall return true.
The const-reference form shall preserve its source. The non-const rvalue form shall permit source consumption; after successful or exceptional return the source shall require no operation other than destruction. Oversized source dimensions shall throw std::length_error before dimension-dependent grid storage.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
8. Ambient and affine grid dimensions PPL-SPEC-001248 space_dimension() shall report the ambient dimension without changing the represented grid. affine_dimension() shall return zero for empty and zero-dimensional grids; otherwise it shall return the dimension of the least affine subspace containing the grid. For a nonempty generator description this shall equal the rational rank of its line directions, parameter directions and supporting-point differences.
The answer shall be independent of the current dual representation, redundant input rows, generator order and prior normalization.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
9. Exact foundational grid classification PPL-SPEC-001249 The following queries shall make exact decisions on admitted grid values:
- is_empty() shall return true exactly for the empty represented set.
- is_universe() shall return true exactly for all of the ambient real coordinate space.
- is_bounded() shall return true exactly for empty or singleton grids.
- is_discrete() shall return true exactly when every represented point is isolated; empty shall be discrete. In a nonempty rational generator description this is equivalent to the absence of nonzero line directions.
- is_topologically_closed() shall return true for every rational grid.
- contains_integer_point() shall return true exactly when the grid intersects Zn; zero-dimensional universe shall contain the integer empty tuple and zero-dimensional empty shall contain none.
- constrains(v) shall return true exactly when independently varying coordinate v can leave the grid. Empty shall constrain every in-range coordinate. An out-of-range coordinate shall throw std::invalid_argument before an empty/universe shortcut.
Answers shall not depend on generator insertion order or whether the current congruence/generator descriptions have been normalized. A periodic restriction shall not be mistaken for an interval bound or a continuous free coordinate.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
Incoming links from: 1. Exact rational affine image 2. Exact rational affine preimage 3. Generalized variable affine image 4. Generalized variable affine preimage 5. Generalized expression affine image 6. Generalized expression affine preimage 7. Bounded affine image abstraction 8. Bounded affine preimage abstraction 1. Congruence widening and finite delay 2. Generator widening and finite delay 3. Representation-selected default grid widening 4. Congruence-limited extrapolations 5. Grid convergence certificates 1. Grid construction from boxes 2. Grid construction from bounded-difference shapes 3. Grid construction from octagonal shapes 4. Grid construction from polyhedra 1. Free-coordinate extension 2. Zero-coordinate extension 3. Ordered Cartesian concatenation 4. Selected-coordinate existential projection 5. Prefix-coordinate existential projection 6. Injective coordinate remapping 7. Conditional coordinate replication 8. Least-grid folding of coordinate alternatives 1. Integer-time-elapse grid abstraction 2. Exact integer-coordinate restriction 3. Bounded-integer wrapping abstraction 4. Grid topological closure 1. Copying bulk insertion of rational-grid generators 2. Recycling bulk insertion of rational-grid generators 3. Copying insertion of a single rational-grid generator 1. Single congruence addition and refinement 2. Copying congruence-system addition and refinement 3. Recycling congruence-system addition 4. Strict addition of a single linear constraint 5. Copying and recycling strict constraint-system addition 6. Conservative refinement by linear constraints 7. Equality-constraint extraction and minimization 1. Exact grid equality and inequality 2. Equality-compatible grid hashing 3. Exact grid containment 4. Exact strict grid containment 5. Exact grid disjointness 6. Exact grid relation with a congruence 7. Exact grid relation with a linear constraint 8. Exact grid subsumption of grid generators 9. Exact grid subsumption of polyhedral generators 1. Exact directional boundedness of affine expressions on grids 2. Exact rational-grid supremum and attainment 3. Exact rational-grid infimum and attainment 4. Point witnesses for rational-grid maximization 5. Point witnesses for rational-grid minimization 6. Exact affine-image frequency and closest value on rational grids 1. Exact rational-grid intersection 2. Least containing rational grid 3. Conditional exact rational-grid union 4. Least-grid abstraction of set difference 5. Context-preserving grid simplification 6. Coordinate cylindrification60
10. Borrowed congruence and generator views of grid values PPL-SPEC-001250 Borrowed congruence and grid-generator accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned references shall not extend the receiver's lifetime. Constraint extraction returns an independent value and shall remain available on temporary grids.
congruences() and grid_generators() shall return valid descriptions of the receiver's exact represented grid in the same ambient dimension. If the required description is stale, it shall be computed without changing the grid's mathematical meaning.
minimized_congruences() and minimized_grid_generators() shall additionally supply the corresponding minimized triangular representations. Required administrative integrality rows may remain in congruence storage. These interfaces shall not promise a unique physical row order or byte-identical records across equivalent descriptions.
Returned references shall borrow receiver-owned storage. Their use shall require the receiver to remain live and no intervening operation capable of replacing or normalizing the borrowed representation. Iterators and row references shall obey the same condition. An independently copied returned system shall remain independent of later receiver mutation or destruction. Empty and zero-dimensional values shall retain their exact distinguished meanings in both descriptions.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
Before aligning proper-congruence moduli in a bounded profile, simplification shall remove each row's redundant sign, constant-residue and common-factor scaling. A tautological constant row shall retain a nonzero integrality representative. Alignment shall preserve the same rational satisfying set.
For a bounded discrete generator system, elimination may temporarily cancel the common positive factor of every coupled point/parameter coordinate and divisor, restoring that physical scale after reduction. The resulting strong form shall retain its previous storage scale. Lines shall not be rescaled by this operation, and integer-parameter periods shall not change. Centered coordinate reduction shall also accept a positive pivot at the profile's largest admissible coefficient without overflowing the half-pivot calculation. For a least signed pivot input, Bezout computation shall own its working magnitudes and admit only the completed positive gcd and signed coefficients; an unrepresentable input magnitude alone shall not cause arithmetic failure.
During triangular conversion, the selected coordinate's scaling and exact division shall be fused; an unrepresentable product immediately cancelled by that division shall not be stored. Other coupled point/parameter or proper- congruence rows shall receive the required common scale. Independent line or equality scales shall remain independent. Complete column differences shall be evaluated exactly. If an inverse-column working value exceeds the coefficient range, conversion shall replay the complete triangular inverse using independently owned unbounded integers. Later exact divisions shall precede admission of destination coefficients. Final unrepresentable entries shall still raise the configured range exception, including in native coefficient profiles. Replay shall preserve the source rows, their dimension kinds and the distinct coupled or independent row scales.
-
1. IBM hexadecimal format metadata for expression analysis PPL-SPEC-001594 float_ibm_single and float_ibm_double shall provide compile-time numerical metadata for the short and long IBM hexadecimal formats used by floating-expression analysis. Both shall expose radix BASE == 16, characteristic width EXPONENT_BITS == 7 and excess-64 bias EXPONENT_BIAS == 64. MANTISSA_BITS shall count stored fraction bits: 24 for the short format and 56 for the long format, corresponding to six and fourteen hexadecimal digits. The short descriptor shall also expose floating_point_format == IBM_SINGLE.
Reading these constants shall require no library initialization, floating hardware support or FPU rounding-state setup. Their use in rounded analysis shall retain the numerical and initialization prerequisites of the selected consumer, including 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval. The cached enumeration-based query shall retain its supported-format domain in 🔗 2. Enumeration-based cached absolute error.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 6. Coefficient zero and one constant access 1. Compound-domain values and valid use 1. Rational-grid values, coefficient profile and valid use 2. Explicit whole-library initialization and finalization 2. Explicit whole-library initialization and finalization 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 1. Polyhedral values, coefficient profile and valid use 1. Optimization and ranking valid use 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state27
1. Initialization owners and automatic C++ initialization PPL-SPEC-000031 The public C++ header shall establish an initialization owner in each participating translation unit unless PPL_NO_AUTOMATIC_INITIALIZATION is defined before that translation unit first includes <ppl.hh>. The first successfully constructed Init owner shall establish shared library facilities and initialize its calling thread. Additional owners shall retain that initialized lifetime without reinitializing its existing thread state. Destruction of an owner while another owner remains shall preserve the shared facilities. Destruction of the last owner shall finalize the owning thread and release shared initialization facilities.
The first-owner construction and last-owner destruction shall be serialized by the caller and shall occur on the same thread. All other participating threads shall complete their PPL use and thread finalization before last-owner destruction. Every PPL object or borrowed view whose validity depends on the initialized facilities shall cease to be used, and every required owned-object cleanup shall finish, before those facilities are finalized. A later initialized lifetime shall not revive objects or views from an earlier lifetime.
The owner counter, saved-rounding storage, automatic-owner pointers and irrational-precision storage shall be statically zero-initialized. The optional rounding-verifier function pointers shall be statically initialized to their designated probes. Their definitions shall enforce constant initialization with constinit. Runtime owner and thread setup shall establish the numerical state specified by this protocol.
Explicit Init guards shall be used only within this ownership protocol. The number of simultaneously live owners shall remain representable by unsigned int. Callers shall not copy, move or assign Init or Thread_Init guards. Automatic initialization shall not by itself initialize worker threads. Thread entry and exit shall follow 🔗 3. Thread initialization, default state and finalization.
If first-owner construction reports a supported recoverable exception, it shall release resources acquired for the failed construction, restore the preceding variable formatter, irrational precision and rounding state, and leave no initialization owner contributed by the failed construction. If setup replaced a signal handler, failure shall restore its preceding action without discarding the caller's pending notifications or changing the caller's timer.
-
2. Explicit whole-library initialization and finalization PPL-SPEC-000032 When automatic initialization is disabled by PPL_NO_AUTOMATIC_INITIALIZATION before public-header inclusion, initialize() shall acquire one library initialization owner on its first successful call without an existing explicit owner. Repeated calls while that owner exists shall preserve it and its active thread state, rather than acquire additional owners or reset the formatter, numerical constants or precision. finalize() shall release that explicit owner. A call to finalize() shall require an existing explicit owner; a sequence of repeated initialize() calls shall require only one matching finalize().
The explicit owner shall obey the first/last-owner, dependent-object cleanup and same-thread conditions of 🔗 1. Initialization owners and automatic C++ initialization. After successful finalize(), a later initialize() shall establish a fresh initialized lifetime. Supported recoverable failure in initialize() shall release resources acquired for the failed owner and shall permit a later call to attempt initialization afresh.
When the header provides automatic initialization, initialize(), finalize(), thread_initialize() and thread_finalize() shall be no-ops; the automatic owner and explicit Thread_Init guards shall govern those lifetimes instead.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 1. Ordered coefficient-map values and valid tree use 2. Finite coefficient construction, copying and comparison 6. Coefficient zero and one constant access 7. Coefficient constant-stage acquisition and release 1. Compound-domain values and valid use 1. Affine congruence meaning and valid numerical use 1. Constraint relation meaning and numerical prerequisites 20. Distance scratch storage, admissible overlaps and numeric conditions 1. Extended-number row meaning and construction states 1. Generator kinds and numerical prerequisites 1. Grid-generator values and integer versus continuous displacement 1. Rational-grid values, coefficient profile and valid use 1. Initialization owners and automatic C++ initialization 5. Interruptible thread registration and request lifetime 1. Affine value, numerical prerequisites and shared zero 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 9. Distance workspace protocol and admissible overlaps 8. Coordinate-map diagnostic printing and output failures 1. Polyhedral values, coefficient profile and valid use 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 1. Optimization and ranking valid use 3. Selection and ownership of irrational rational precision 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state42
3. Thread initialization, default state and finalization PPL-SPEC-000033 While a library initialization owner remains alive, each additional thread using PPL thread-specific facilities shall establish exactly one active thread initialization lifetime before those facilities are used. A directly constructed Thread_Init guard shall establish that lifetime and shall finalize it when the guard is destroyed on the same thread. A direct guard shall not overlap an already active PPL thread-initialization lifetime on that thread and shall not be copied, moved or assigned.
In a client compiled with automatic initialization disabled, thread_initialize() shall establish a thread lifetime if none is owned by that entry protocol. Repeated calls while that protocol owns an active lifetime shall preserve its constants, precision and formatter. thread_finalize() shall require and end that protocol-owned active lifetime. Direct guards and these entry points shall not be mixed for the same active lifetime. The thread initialized by the first library owner shall have an active protocol-owned thread lifetime when last-owner destruction begins.
Successful thread initialization shall establish the numerical constants used by expressions, constraints, congruences, generators, their systems and polyhedra, set irrational_precision() to 128, and select Variable::default_output_function as the active variable formatter, as specified by 🔗 7. Active Variable formatter and initialized thread state. When configured rounding control is available, it shall save and replace the calling thread's rounding direction as specified by 🔗 4. Rounding-state exchange during an initialized thread lifetime. In a thread-safe configuration these states shall belong to the calling thread and shall be isolated from the corresponding state of other initialized threads. In a configuration without thread support, clients shall use one initialized thread and shall not create overlapping thread-initialization lifetimes.
Before finalization, all PPL use and required owned-object cleanup depending on that thread's initialized state shall finish. Finalization shall release the thread-owned initialization resources and restore its saved rounding direction when rounding control is configured. Reentry after completed finalization shall establish fresh default state; it shall not revive earlier objects or views. If thread construction reports a supported recoverable exception, resources acquired for the incomplete lifetime shall be released, and the preceding variable formatter, irrational precision and rounding state shall be restored.
-
4. Rounding-state exchange during an initialized thread lifetime PPL-SPEC-000034 On a configured platform with floating-point rounding control, successful thread initialization shall save the calling thread's preceding rounding direction and establish upward rounding, the direction used for ROUND_DIRECT computations. During that active thread lifetime, restore_pre_PPL_rounding() shall restore the direction saved at thread initialization, and set_rounding_for_PPL() shall reestablish upward rounding. Repeated calls shall not replace the saved preceding direction. Normal thread finalization shall restore that saved direction.
Each exchange shall affect only the calling thread's rounding direction in a thread-safe configuration. The caller shall invoke these functions within a valid initialized thread lifetime and shall call set_rounding_for_PPL() before resuming PPL computations that require its rounding state after the preceding state has been restored or the client has otherwise changed rounding. The exchange shall not promise preservation or restoration of unrelated floating-point status flags, trap masks or other environment state.
When the selected configuration has no floating-point rounding control, set_rounding_for_PPL() and restore_pre_PPL_rounding() shall perform no rounding-state operation. Their presence shall not make an unsupported floating-point computation supported.
-
Incoming links from: 1. Supported finite native floating-to-integral scalar conversion 2. Exact conversion from an unbounded integer to integral storage 3. Directed rational-to-integral conversion within range 4. Truncated rational-to-integral conversion and lazy relation requests 5. Integral scalar conversion range outcomes 6. Rational conversion at and beyond integral endpoints 1. Directed native integral conversion to native floating-point storage 1. Exact native integral and unbounded integer assignment to mpz storage8
1. Exact conversion between native and checked integral scalars PPL-SPEC-000161 The native integral types covered here shall be char , signed char , unsigned char , short , unsigned short , int , unsigned int , long , unsigned long , long long and unsigned long long . An integral source or destination may instead be Checked_Number<T, Check_Overflow_Policy<T>> for one of those native types T . For these integral types, the policy shall reserve no integer payload for infinity or NaN. The scalar wrapper range shall be the full native range, independent of the selected global coefficient profile.
For a source value representable in the destination, assign_r shall assign that exact integer and return V_EQ . This shall hold for the four base directions in 🔗 4. Rounding-direction intent, composition and inspection , with or without the strict flag. The source may be the destination when its type admits both roles; the entry value shall be preserved. Native destinations shall use that same overflow policy through their _r adapter. Out-of-range outcomes shall follow 🔗 5. Integral scalar conversion range outcomes .
The returned Result shall report the conversion directly; the _r operation shall not invoke the destination policy's handle_result . The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage.
-
2. Exact conversion from an unbounded integer to integral storage PPL-SPEC-000162 For a finite mpz_class source whose integer value is representable in a native or checked integral destination admitted by 🔗 1. Exact conversion between native and checked integral scalars , assign_r shall assign that exact integer and return V_EQ . It shall admit both signed and unsigned destination ranges, including the least signed integer and the maximum unsigned integer.
The four base directions in 🔗 4. Rounding-direction intent, composition and inspection , with or without the strict flag, shall not change the exact value or classification. Out-of-range outcomes shall follow 🔗 5. Integral scalar conversion range outcomes . The _r conversion shall return its result directly without policy-handler dispatch. The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage.
-
3. Directed rational-to-integral conversion within range PPL-SPEC-000163 For a finite canonical rational source with value a , assign_r with base direction ROUND_DOWN shall assign ⌊a⌋ ; with base direction ROUND_UP it shall assign ⌈a⌉ . The destination shall be one of the native or checked integral types in 🔗 1. Exact conversion between native and checked integral scalars . Canonical rational representation shall follow 🔗 1. Exact rational assignment from rational and integral sources .
For a directed integer result representable in the destination, an integral source value shall produce V_EQ . A nonintegral value rounded downward shall produce V_GT and a nonintegral value rounded upward shall produce V_LT , with exact-to-computed relation orientation as in 🔗 1. Numerical result classes and relation meanings . Adding ROUND_STRICT_RELATION shall preserve these values and definite classifications.
Out-of-range outcomes for either destination form shall follow 🔗 6. Rational conversion at and beyond integral endpoints . This conversion shall return Result without policy-handler dispatch. The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage. Rational-source conversions shall use thread-local temporary storage in a thread-safe build; callers shall serialize those conversions across threads in a non-thread-safe build.
-
4. Truncated rational-to-integral conversion and lazy relation requests PPL-SPEC-000164 For a finite canonical rational source with value a , base direction ROUND_IGNORE shall assign trunc(a) , toward zero, when that integer is representable in a destination from 🔗 1. Exact conversion between native and checked integral scalars . With no strict-relation flag, successful conversion shall return V_LGE ; it shall not claim exactness from an unchanged integer payload alone.
ROUND_NOT_NEEDED shall require a to be an integer representable in the destination. For that valid use, the assigned integer shall be exact. With no strict-relation flag, the returned classification may be lazy V_LGE in a build defining NDEBUG ; the assertion-enabled request translation in 🔗 7. Internal no-rounding-needed request and result checking shall instead establish V_EQ .
When ROUND_STRICT_RELATION is supplied with either base direction, the conversion shall report the definite relation requested by 🔗 4. Rounding-direction intent, composition and inspection . A nonintegral positive value truncated toward zero shall produce V_GT ; a nonintegral negative value shall produce V_LT ; an integral value shall produce V_EQ . The exactness and representability preconditions of ROUND_NOT_NEEDED shall still apply when it carries that flag.
Truncation range failures under ROUND_IGNORE shall follow 🔗 6. Rational conversion at and beyond integral endpoints . The returned result shall not cause automatic policy-handler dispatch. The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage. Rational-source conversions shall use thread-local temporary storage in a thread-safe build; callers shall serialize those conversions across threads in a non-thread-safe build.
-
5. Integral scalar conversion range outcomes PPL-SPEC-000165 For a native integral, checked integral or mpz_class source, a native integral or Checked_Number<T, Check_Overflow_Policy<T>> destination shall detect a source integer outside its full native T range. The native source and destination types shall be those in 🔗 1. Exact conversion between native and checked integral scalars . This shall be a Result -returning conversion; an arithmetic range failure shall not invoke handle_result or throw an overflow exception automatically.
If the source is below the destination minimum, ROUND_UP shall store that minimum and return V_LT_INF . ROUND_DOWN or ROUND_IGNORE shall return V_GT_MINUS_INFINITY | V_UNREPRESENTABLE . If the source is above the destination maximum, ROUND_DOWN shall store that maximum and return V_GT_SUP . ROUND_UP or ROUND_IGNORE shall return V_LT_PLUS_INFINITY | V_UNREPRESENTABLE . An optional strict-relation flag shall not change these range outcomes.
An unrepresentable result shall not promise a meaningful destination payload; the destination shall remain assignable and destructible. ROUND_NOT_NEEDED shall require an exact representable result and shall therefore exclude these out-of-range requests, with or without a strict flag. These guarantees shall not extend to a Checked_Number destination whose policy disables overflow checking. The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage.
-
6. Rational conversion at and beyond integral endpoints PPL-SPEC-000166 For a finite canonical rational source and a native or checked integral destination from 🔗 1. Exact conversion between native and checked integral scalars , assign_r shall distinguish a representable directed or truncated integer from range failure without policy-handler dispatch. Canonical representation shall follow 🔗 1. Exact rational assignment from rational and integral sources .
If truncating the rational toward zero already lies below or above the destination range, the conversion shall return the corresponding range outcome specified in 🔗 5. Integral scalar conversion range outcomes for the requested base direction. If that truncation lies within range but subsequent upward rounding would increase the maximum, it shall return V_LT_PLUS_INFINITY | V_UNREPRESENTABLE . If subsequent downward rounding would decrease the minimum, it shall return V_GT_MINUS_INFINITY | V_UNREPRESENTABLE . These shall not be reported as successful wrapped integers.
Representable rounded values shall follow 🔗 3. Directed rational-to-integral conversion within range or 🔗 4. Truncated rational-to-integral conversion and lazy relation requests , including a rational just beyond an endpoint whose requested integer rounds inward to that endpoint. An unrepresentable outcome shall preserve destination assignability and destructibility without a payload value promise. ROUND_NOT_NEEDED shall admit only exact representable integer results. A Checked_Number destination whose policy disables overflow checking shall remain outside this range-detection guarantee. The destination shall be live and assignable. A distinct source shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit temporary integer storage. Rational-source conversions shall use thread-local temporary storage in a thread-safe build; callers shall serialize those conversions across threads in a non-thread-safe build.
-
Incoming link from: 1. Exact scalar sign and ordering1
1. Integral coefficient representation access and sign comparison PPL-SPEC-000051 For a live finite Coefficient, raw_value(x) shall return a reference to its underlying stored integer. The mutable overload shall refer to mutable storage and the const overload shall refer to const storage. In the mpz profile, that object shall be x itself and the referenced type shall be mpz_class. In bounded profiles it shall be the configured signed native integer member; both member x.raw_value() and free raw_value(x) shall refer to that same member. A returned reference shall remain valid only while its owning coefficient remains alive. A caller changing the raw value shall supply a finite value representable by that storage and satisfy its policy invariants; raw mutation shall not perform an arithmetic overflow check.
sgn(x) shall return -1, 0 or 1 exactly when the entry integer value is negative, zero or positive. cmp(x, y) shall return an int whose sign agrees with the ordering of the entry integer values. The magnitude of a nonzero comparison result shall not be prescribed. Neither query shall change either coefficient. These queries shall admit the entire selected integer range, including the bounded minimum.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
2. Coefficient negation and absolute-value assignment PPL-SPEC-000052 For live finite coefficients with source entry value a, neg_assign(x, y) shall assign − a and abs_assign(x, y) shall assign |a|, where y supplies a. The one-argument forms shall apply the same operation to the destination's own entry value. The two-argument destination may be the source itself.
A successful bounded result shall be representable. In checked profiles, negating or taking the absolute value of the least representable integer shall report std::overflow_error and retain the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. A native bounded caller shall satisfy the representability precondition.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
Incoming link from: 2. Checked named remainder and exact quotient1
3. Coefficient remainder assignment and exact division PPL-SPEC-000053 For source entry values a and nonzero b, rem_assign(x, y, z) shall assign r = a − btrunc(a ⁄ b), where y supplies a and z supplies b. A nonzero remainder shall have the dividend's sign and satisfy |r| < |b|. This shall admit the bounded minimum divided by -1 and assign zero without requiring a representable quotient.
exact_div_assign(x, y, z) shall require nonzero b and exact divisibility of a by b. On success it shall assign a ⁄ b. The quotient shall be representable for successful bounded use. A checked quotient outside that range shall report std::overflow_error with the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. No invalid divisor or nondivisibility rejection shall be promised.
For either operation the destination may be either source, including when both sources denote the same nonzero object; calculations shall use entry values.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
4. Coefficient greatest common divisor and least common multiple PPL-SPEC-000054 For live finite source entry values a and b, gcd_assign(x, y, z) shall assign the nonnegative greatest common divisor g. It shall assign zero for two zero sources and |a| when the other source is zero. lcm_assign(x, y, z) shall assign zero if either source is zero; otherwise it shall assign the positive least common multiple |a ⁄ g| |b|.
The destination may be either source, and the two sources may be the same object. Each calculation shall use their entry values. A successful bounded result shall be representable. For native bounded least-common-multiple calculation with two nonzero sources, both source absolute values shall additionally be representable. Native intermediate arithmetic shall be representable; in particular, no overflow shall be required to form a representable result.
In checked profiles, an unrepresentable nonnegative divisor or multiple, or an unrepresentable intermediate absolute value, shall report std::overflow_error with the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. The zero-multiple case shall not require taking the absolute value of a nonzero source.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
Incoming link from: 1. Bounded native integer Bezout assignment1
5. Extended integral greatest common divisor PPL-SPEC-000055 For live finite source entry values a and b, successful gcdext_assign(g, s, t, a, b) shall assign the nonnegative greatest common divisor to g and integer coefficients to s and t satisfying as + bt = g. For two zero inputs, g shall be zero; no particular Bezout coefficients shall be required. Other cases shall also not prescribe a unique pair of Bezout coefficients.
The three output objects shall be pairwise distinct and shall be distinct from both source objects. The source objects may be the same object. This contract shall not admit other aliasing. All bounded output values and each evaluated Euclidean coefficient, quotient, product and difference shall be representable for successful bounded use. When the second source is nonzero, the absolute values of both bounded sources shall additionally be representable. When the second source is zero, the first absolute value shall be representable.
Checked unrepresentable source absolute-value acquisition shall report std::overflow_error with the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. This shall not promise that the unchecked native intermediate expressions within the extended Euclidean algorithm report overflow; the stated intermediate preconditions remain applicable in every bounded profile.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
Incoming link from: 1. Native integer accumulated products and intermediate overflow1
6. Integral product accumulation and subtraction PPL-SPEC-000056 For destination and source entry values d, a and b, successful add_mul_assign(x, y, z) shall assign d + ab and successful sub_mul_assign(x, y, z) shall assign d − ab. The destination may be either or both sources, and the two sources may be the same object; each operand shall be interpreted at entry.
Successful bounded use shall require both the product ab and the final sum or difference to be representable. These shall be two arithmetic steps, with no promise of a wider fused accumulator. A checked overflow in either step shall report std::overflow_error with the surviving-output guarantee of 🔗 5. Checked coefficient overflow and result-policy dispatch. This shall include an unrepresentable product whose addition to or subtraction from the destination could have cancelled into range: the operation may fail at that intermediate step. Native bounded callers shall satisfy both representability conditions.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
7. Nonnegative integer square-root assignment PPL-SPEC-000057 For a live finite source with nonnegative entry value a, sqrt_assign(x, y) shall assign q = ⌊√(a)⌋. Equivalently q ≥ 0 and q2 ≤ a < (q + 1)2. The destination may be the source itself and shall use its entry value. Every nonnegative input representable in the selected profile shall be admitted; verifying the mathematical inequalities shall not require the caller to form their possibly unrepresentable bounded squares. No negative input rejection guarantee shall be inferred from this contract.
The initialized-thread and object-synchronization conditions of 🔗 2. Finite coefficient construction, copying and comparison shall apply. Distinct source objects shall remain unchanged. The mpz profile shall be subject to available computational resources.
-
1. Ordinary interval additive inversion PPL-SPEC-000729 neg_assign(x) shall replace the receiver by an outward interval enclosure of { − a ∣ a ∈ X}, where X is the source entry set. Empty shall give empty. With exact admitted endpoint operations and supported endpoint membership, the result shall be exact: source upper/lower endpoints shall become negated lower/upper endpoints, with their respective membership interchanged. Unbounded lower/upper extents shall exchange sign and side. An inexact conversion or unsupported openness shall enlarge the result without excluding source images.
Operands shall be initialized and valid intervals or admitted finite scalar singletons over the ordinary real carrier. The receiving policy shall admit the result, including empty and unbounded sets where required. Active rational payloads shall be canonical. The selected source/destination numerical combinations shall have well-formed underlying endpoint operations; the generic signatures shall not promise every possible cross-family instantiation. Each selected operation and all its intermediates shall satisfy the boundary type's range, resource, policy, shared-temporary and caller-owned FPU prerequisites. Separate operands shall remain unchanged. The receiver may alias an interval operand or both interval operands; scalar references shall not borrow numerical storage overwritten during the operation. Access shall be synchronized against mutation. No additional library initialization shall be required. Underlying failure shall retain the underlying numerical/allocation guarantees; a general rollback guarantee shall not be implied. Returned I_Result values shall obey the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
2. Ordinary interval addition and subtraction PPL-SPEC-000730 add_assign(x,y) shall enclose {a + b ∣ a ∈ X, b ∈ Y}; sub_assign(x,y) shall enclose {a − b ∣ a ∈ X, b ∈ Y}. An empty operand shall give empty. With exact admitted endpoint operations and supported endpoint membership, these interval images shall be exact. For finite nonempty operands, addition shall use the sums of lower endpoints and upper endpoints. Subtraction shall use the first lower minus second upper endpoint, and first upper minus second lower endpoint. An extremum shall be attained exactly when both required source extrema are attained. Ordinary unbounded extents shall propagate according to these set images. Inexact conversion or unsupported openness may enlarge the result.
Operands shall be initialized and valid intervals or admitted finite scalar singletons over the ordinary real carrier. The receiving policy shall admit the result, including empty and unbounded sets where required. Active rational payloads shall be canonical. The selected source/destination numerical combinations shall have well-formed underlying endpoint operations; the generic signatures shall not promise every possible cross-family instantiation. Each selected operation and all its intermediates shall satisfy the boundary type's range, resource, policy, shared-temporary and caller-owned FPU prerequisites. Separate operands shall remain unchanged. The receiver may alias an interval operand or both interval operands; scalar references shall not borrow numerical storage overwritten during the operation. Access shall be synchronized against mutation. No additional library initialization shall be required. Underlying failure shall retain the underlying numerical/allocation guarantees; a general rollback guarantee shall not be implied. Returned I_Result values shall obey the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
3. Ordinary interval multiplication PPL-SPEC-000731 mul_assign(x,y) shall enclose {ab ∣ a ∈ X, b ∈ Y}. An empty operand shall give empty. With exact admitted endpoint operations and supported endpoint membership, the result shall be the exact interval image. For finite nonempty operands its extrema shall be the least and greatest of the four endpoint products. Endpoint membership shall account for every tied extremizer and for an attained zero in either operand; it shall not infer that zero is excluded merely because one nonzero factor approaches an excluded endpoint. Ordinary unbounded endpoints shall retain their limiting meaning, including a singleton zero multiplied by an unbounded interval. Inexact conversion or unsupported openness may enlarge the result.
Operands shall be initialized and valid intervals or admitted finite scalar singletons over the ordinary real carrier. The receiving policy shall admit the result, including empty and unbounded sets where required. Active rational payloads shall be canonical. The selected source/destination numerical combinations shall have well-formed underlying endpoint operations; the generic signatures shall not promise every possible cross-family instantiation. Each selected operation and all its intermediates shall satisfy the boundary type's range, resource, policy, shared-temporary and caller-owned FPU prerequisites. Separate operands shall remain unchanged. The receiver may alias an interval operand or both interval operands; scalar references shall not borrow numerical storage overwritten during the operation. Access shall be synchronized against mutation. No additional library initialization shall be required. Underlying failure shall retain the underlying numerical/allocation guarantees; a general rollback guarantee shall not be implied. Returned I_Result values shall obey the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
Incoming links from: 1. Addition and subtraction of intervals admitting infinity points 2. Sign-stable extended interval products and quotients 3. Degenerate and singular extended interval products and quotients 5. Ordinary interval arithmetic value operators 3. Outward endpoint quotients and zero-limit candidates5
4. Ordinary interval division and zero-divisor abstraction PPL-SPEC-000732 div_assign(x,y) shall enclose {a ⁄ b ∣ a ∈ X, b ∈ Y, b ≠ 0}. An empty operand or a divisor consisting only of zero shall give empty. A divisor with negative and positive values shall give universe as the specified conservative interval abstraction, including when a tighter interval image could be representable. A divisor with only one nonzero sign, possibly with zero as an endpoint, shall retain every defined quotient; zero-denominator pairs shall not become mathematical results. The negative-and-positive divisor branch shall return I_UNIVERSE | I_SINGULARITIES. It shall not infer exactness of the quotient image from exact assignment of the universe representation.
For finite nonempty operands whose divisor has finite endpoints strictly on one side of zero, exact admitted endpoint operations and supported membership shall give the exact interval image. Its extrema shall be the least/greatest of the four endpoint quotients; attainment shall account for all ties and an attained zero numerator. A one-sided divisor approaching zero may require an unbounded endpoint. Inexact conversion or unsupported openness may enlarge the result.
Operands shall be initialized and valid intervals or admitted finite scalar singletons over the ordinary real carrier. The receiving policy shall admit the result, including empty and unbounded sets where required. Active rational payloads shall be canonical. The selected source/destination numerical combinations shall have well-formed underlying endpoint operations; the generic signatures shall not promise every possible cross-family instantiation. Each selected operation and all its intermediates shall satisfy the boundary type's range, resource, policy, shared-temporary and caller-owned FPU prerequisites. Separate operands shall remain unchanged. The receiver may alias an interval operand or both interval operands; scalar references shall not borrow numerical storage overwritten during the operation. Access shall be synchronized against mutation. No additional library initialization shall be required. Underlying failure shall retain the underlying numerical/allocation guarantees; a general rollback guarantee shall not be implied. Returned I_Result values shall obey the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
5. Ordinary interval arithmetic value operators PPL-SPEC-000733 The free binary +, -, * and / operators shall return an independent interval value of the interval operand's boundary/information type, with the corresponding semantics of 🔗 2. Ordinary interval addition and subtraction, 🔗 3. Ordinary interval multiplication and 🔗 4. Ordinary interval division and zero-divisor abstraction. They shall support two intervals of that type, an interval followed by an admitted scalar singleton, and a scalar followed by an interval. Operand order shall be preserved for subtraction and division. Separate returned values shall not share mutable owned endpoint storage with their operands.
Operands shall satisfy the corresponding assignment operation's numerical, policy and runtime prerequisites. Operand values shall remain unchanged on successful return. Access shall be synchronized with mutation. Allocation or numerical exceptions shall propagate with the corresponding operation's guarantees. No additional library initialization shall be required.
-
1. Interval construction from ordinary real constraints PPL-SPEC-000718 Interval_Constraint_Source<T> shall have the truth value of std::is_convertible_v<const T&, const I_Constraint_Base&>. Constraint members shall use that classification, retaining implicit conversions and excluding inaccessible, ambiguous and explicit-only conversions.
build() shall initialize the receiver as its universe. build(c) shall replace it with an outward interval enclosure of the values satisfying the supplied ordinary real constraint. Under exact boundary conversion and supported openness, an ordinary equality or ordered inequality shall give the exact interval predicate. Disequality shall give the interval hull of its punctured carrier, which may be universe. Unsupported endpoint strictness or inexact conversion may enlarge that enclosure.
For this ordinary real carrier, V_LGE, V_GT_MINUS_INFINITY and V_LT_PLUS_INFINITY shall build universe without inspecting a cutoff; V_EMPTY and V_NAN shall build empty without inspecting a cutoff. Their unused cutoff storage need not be initialized or bound. The ordinary finite relations shall be V_LT, V_LE, V_GT, V_GE, V_EQ and V_NE. An included-infinity carrier shall not be inferred from these ordinary-real special-relation rules.
build(c1,c2) shall intersect the single-constraint interval enclosures. With exact endpoint conversion, supported openness and interval-valued individual predicates, the result shall denote their exact conjunction. Otherwise it shall enclose the conjunction; taking a hull of a disequality before intersection may retain its removed point. A V_LGE constraint shall be neutral, and either V_NAN constraint shall give empty without reading its cutoff. Separate constraint objects and cutoff values shall remain unchanged.
Arguments shall be live and valid constraints under 🔗 4. Interval constraints retain relation and cutoff ownership; borrowed cutoffs shall remain live and retain stable values throughout the operation. Active finite rational cutoffs shall be canonical. Receiving boundary/information policies shall admit the result, including empty values where possible. Numerical conversion, policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites shall follow the selected endpoint operations. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees. Returned I_Result values shall have the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
2. Constraint refinement through interval abstraction PPL-SPEC-000719 add_constraint(c) shall replace receiving entry set A by an outward interval enclosure of its intersection with the interval abstraction of c described by 🔗 1. Interval construction from ordinary real constraints. The represented result shall retain every input value satisfying c and shall introduce no value outside A.
With exact conversion, supported openness and an interval-valued constraint, the result shall be the exact set intersection. A disequality shall first be replaced by its interval hull; this refinement shall not promise removal of the excluded point when that hull fills the puncture. An unconstrained constraint shall preserve A; a false constraint shall give empty. The receiver shall be initialized and valid, and the ordinary-real carrier and admitted relation set shall follow 🔗 1. Interval construction from ordinary real constraints. Separate constraint/cutoff objects shall remain unchanged.
Arguments shall be live and valid constraints under 🔗 4. Interval constraints retain relation and cutoff ownership; borrowed cutoffs shall remain live and retain stable values throughout the operation. Active finite rational cutoffs shall be canonical. Receiving boundary/information policies shall admit the result, including empty values where possible. Numerical conversion, policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites shall follow the selected endpoint operations. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees. Returned I_Result values shall have the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
3. Independent outward endpoint extension PPL-SPEC-000720 For a nonempty initialized valid receiver, lower_extend() shall replace its lower endpoint by the lower extent of the receiving carrier, and upper_extend() shall analogously replace its upper endpoint by the upper extent. The other endpoint shall remain unchanged. The result shall contain the entry interval and remain valid under its information policy.
lower_extend(c) shall admit finite relations V_GT, V_GE and V_EQ. It shall replace the lower endpoint by the lesser of its entry endpoint and the cutoff, taking an open cutoff for V_GT and a closed cutoff otherwise. upper_extend(c) shall analogously admit V_LT, V_LE and V_EQ and take the greater endpoint, with an open cutoff for V_LT and a closed cutoff otherwise. Equal limits shall be included when either alternative includes them. Conversion shall be outward when the selected scalar cannot store a cutoff exactly.
For either constrained overload, V_LGE shall perform the corresponding unconstrained extension without reading a cutoff; V_NAN shall preserve the receiver without reading a cutoff. Those unused cutoff values need not be initialized or bound. The ignored V_NAN overload shall also admit an empty valid receiver and preserve it. It shall return I_ANY | I_EXACT | I_UNCHANGED without certifying nonemptiness. The other admitted constrained operations shall require a nonempty receiver. Other relations shall lie outside these endpoint-extension overloads' admitted protocol. Separate cutoff sources shall remain unchanged. Endpoint metadata shall preserve unbounded extent meaning independently of an inactive payload.
Arguments shall be live and valid constraints under 🔗 4. Interval constraints retain relation and cutoff ownership; borrowed cutoffs shall remain live and retain stable values throughout the operation. Active finite rational cutoffs shall be canonical. Receiving boundary/information policies shall admit the result, including empty values where possible. Numerical conversion, policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites shall follow the selected endpoint operations. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees. Returned I_Result values shall have the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
1. Threshold interval widening and finite stabilization PPL-SPEC-000721 For nonempty intervals with the previous set Y contained in the receiving current set X, CC76_widening_assign(y,first,last) shall replace the receiver by an interval containing X and Y. This interface shall use the same boundary/information type for both operands. The range shall use readable, multipass bidirectional iterators. It shall be finite, sorted in nondecreasing numerical order and stable throughout the call; its finite threshold values shall be exactly representable by the boundary type. Duplicate thresholds and an empty range shall be permitted. The range shall not alias endpoint storage changed by the operation.
A finite upper endpoint that has increased numerically from Y to X shall be replaced by the least threshold not below that endpoint, or by the upper carrier extent when no such threshold exists. A finite lower endpoint that has decreased numerically shall be replaced by the greatest threshold not above it, or by the lower carrier extent when no such threshold exists. A threshold equal to the current endpoint shall be retained. Other finite endpoints shall remain unchanged; an existing unbounded endpoint shall remain unbounded. Finite endpoint openness shall be retained when moving to a threshold. Extending to a carrier extent shall use that policy's unbounded-endpoint representation. Self-aliasing shall preserve the represented set.
For a fixed finite threshold range and an ascending input sequence, the recurrence shall first enclose the previous widened result and the next input, then widen that enclosure against the previous widened result. Starting from a nonempty interval, this recurrence shall stabilize after finitely many changes: each endpoint can pass only through the finite threshold set and its carrier extent; endpoint membership can weaken only finitely often. This guarantee shall require exact admitted comparisons, assignments and a fixed policy/range throughout the recurrence.
Operands shall be live, initialized and valid intervals over the declared ordinary real carrier. Active rational payloads shall be canonical. The selected numerical operations shall satisfy their range, resource, policy, shared-temporary and caller-owned FPU prerequisites. The result shall be admitted by the receiving boundary/information policy. Access shall be synchronized with modification. Separate interval sources shall remain unchanged. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees; no general rollback guarantee shall be implied.
-
2. Meet-preserving interval context simplification PPL-SPEC-000722 simplify_using_context_assign(y) shall replace entry interval A by a valid interval S satisfying A ⊆ S and S∩C = A∩C, where C is the entry context. It shall return true exactly when that intersection is nonempty. An empty receiver or context shall return false without changing the receiver.
For disjoint nonempty intervals, a receiver lying below its context shall retain its separating upper bound and remove its lower bound; a receiver lying above shall retain its separating lower bound and remove its upper bound. For intersecting intervals, each finite receiver bound made redundant by a finite context bound shall be removed. The operation shall not promise a unique or globally minimal representation. Endpoint membership shall be respected when deciding separation and redundancy. Self-aliasing shall be permitted and shall retain the entry-context intersection.
Operands shall be live, initialized and valid intervals over the declared ordinary real carrier. Active rational payloads shall be canonical. The selected numerical operations shall satisfy their range, resource, policy, shared-temporary and caller-owned FPU prerequisites. The result shall be admitted by the receiving boundary/information policy. Access shall be synchronized with modification. Separate interval sources shall remain unchanged. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees; no general rollback guarantee shall be implied.
-
3. Interval construction disjoint from a supplied context PPL-SPEC-000723 empty_intersection_assign(y) shall replace the receiver by a valid interval disjoint from the supplied entry context C. An empty context shall give universe. Otherwise it shall prefer a representable nonempty component on the lower side of C, then one on the upper side; if neither can be represented, it shall give empty. The policy shall admit an empty result. The original receiver contents shall not restrict the result, and the context may alias the receiver.
Under exact open rational boundaries over the ordinary real carrier, a finite lower context endpoint shall give its entire lower complement component, with complementary endpoint membership; otherwise a finite upper endpoint shall give its entire upper complement component. An ordinary real universe shall give empty. More generally, conversion of a complement cutoff shall round inward to avoid context values. Where a closed-only discrete boundary type must exclude an exact cutoff, the adjacent representable boundary shall be used when available. For dense closed-only rational boundaries at a closed context endpoint, no inclusion-maximal cutoff exists; the deterministic interior cutoff shall differ by one toward the selected component's interior. Included infinities shall be considered only under policies that admit and represent them; a lone infinity may itself form a representable complement component. An unrepresentable component shall not be reported as nonempty.
Operands shall be live, initialized and valid intervals over the declared declared carrier. Active rational payloads shall be canonical. The selected numerical operations shall satisfy their range, resource, policy, shared-temporary and caller-owned FPU prerequisites. The result shall be admitted by the receiving boundary/information policy. Access shall be synchronized with modification. Separate interval sources shall remain unchanged. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees; no general rollback guarantee shall be implied.
-
Incoming links from: 2. Interval abstraction of wrapped integer images with refinement 1. Addition and subtraction of intervals admitting infinity points 2. Sign-stable extended interval products and quotients 3. Degenerate and singular extended interval products and quotients 1. Ordinary interval additive inversion 2. Ordinary interval addition and subtraction 3. Ordinary interval multiplication 4. Ordinary interval division and zero-divisor abstraction 1. Interval construction from ordinary real constraints 2. Constraint refinement through interval abstraction 3. Independent outward endpoint extension 1. Existential interval relation refinement 2. Universal interval relation refinement 1. Interval assignment and directed enclosure 2. Interval hull assignment 5. Interval enclosure of set difference 8. Interpreting logical interval emptiness flags17
1. Interval result possibilities and status-flag set operations PPL-SPEC-000681 I_Result shall encode possible result shapes using independent bits: I_EMPTY = 1, I_SINGLETON = 2, I_SOME = 4 for a nonsingleton non-universe result, and I_UNIVERSE = 8. I_NOT_EMPTY shall be their three nonempty alternatives, I_ANY all four alternatives, I_NOT_UNIVERSE the first three and I_NOT_DEGENERATE the singleton and nonsingleton non-universe alternatives. A set shape bit shall mean that shape remains possible, not that every named possibility is established.
Independent status bits shall be I_EXACT = 16, I_INEXACT = 32, I_CHANGED = 64, I_UNCHANGED = 128 and I_SINGULARITIES = 256. They shall mean definite exactness, definite inexactness, definite set change, definite absence of set change, and undefined combinations of operand values, respectively. Their absence shall not establish the corresponding opposite claim. The operation producing a result shall determine which claims it establishes.
For bit sets A, B within these nine positions, a | b shall encode A∪B, a & b shall encode A∩B, and a - b shall encode A⧵B. These operators shall not reconcile logically conflicting claims or mutate their operands. They shall require no numerical or library initialization.
combine(lower, upper) shall accept numerical endpoint Result values and return I_ANY with no definite status claim. Numerical endpoint outcomes alone shall not establish interval shape, set-operation exactness or entry-to-result change. In particular, numerical V_EQ outcomes shall not be reinterpreted as logical I_EMPTY or I_CHANGED bits.
-
Incoming link from: 4. Interval constraints retain relation and cutoff ownership1
3. Interval-constraint relation adapter preserves supported relation codes PPL-SPEC-000683 I_Constraint_Rel constructed from a supported Relation_Symbol shall preserve its numerical relation encoding: equality, strict/nonstrict less, strict/nonstrict greater and disequality shall correspond to V_EQ, V_LT, V_LE, V_GT, V_GE and V_NE. Construction from Result shall require a defined result code satisfying result_relation_class(result) == result; it shall retain that code unchanged. Codes with unrelated status fields shall not meet that precondition.
Its public rel member and conversion to Result shall return the stored code; ordinary copying and assignment shall retain it independently. No cutoff value or numerical initialization shall be required. Interpreting that relation with a cutoff shall follow the selected constraint operation's supported relation/class prerequisites.
-
1. Exact interval integer-point existence PPL-SPEC-000709 For an initialized valid interval with represented set I, contains_integer_point() shall return true exactly when I∩ℤ ≠ ⌀. Empty intervals shall return false; ordinary real-unbounded nonempty intervals shall return true. A singleton at positive or negative infinity shall return false: an admitted extended infinite value shall not be classified as an integer.
For finite bounds l, u, the least admitted integer shall be ⌈l⌉ for a closed lower endpoint and ⌊l⌋ + 1 for an open lower endpoint. The greatest admitted integer shall be ⌊u⌋ for a closed upper endpoint and ⌈u⌉ − 1 for an open upper endpoint. The query shall report whether that least integer exceeds the greatest integer, returning false exactly in that case. It shall preserve boundary values and metadata.
The finite ceil/floor values and unit adjustments used to establish this exact decision shall be representable exactly by the boundary scalar, and their numerical operations shall satisfy the scalar's policy, resource, shared-temporary and caller-owned FPU prerequisites. Rational values shall be canonical. Inspection shall be synchronized with modification of the interval. The query shall require no additional library initialization.
-
Incoming link from: 3. Selected-coordinate integer-point normalization of boxes1
2. Interval endpoint normalization around integer points PPL-SPEC-000710 drop_some_non_integer_points() shall preserve every integer point of the receiving interval while replacing effective finite endpoints by closed integral endpoints. Empty intervals shall remain unchanged. A finite closed lower bound l shall become ⌈l⌉; a finite open lower bound shall become ⌊l⌋ + 1. A finite closed upper bound u shall become ⌊u⌋; a finite open upper bound shall become ⌈u⌉ − 1.
For an ordinary real interval, these replacements shall yield the interval hull of its integer points, becoming empty when no integer point remains. Unbounded endpoints shall retain their unbounded meaning without requiring evaluation of an inactive numerical payload. Normalization shall be idempotent and may retain noninteger interior values between distinct integer endpoints. For a policy admitting infinity as an element, the operation shall preserve the extended endpoint values; it shall not establish that every retained element is an integer or that its result is the least interval hull of the finite integer points.
The interval shall be initialized and valid, and its policy shall admit any resulting empty value. Active finite numerical payloads shall be initialized. The relevant rounded integers and unit adjustments shall be representable exactly for the stated exact endpoint guarantee. Numerical policy, resources, shared-temporary serialization and caller-owned FPU state shall satisfy the scalar floor/ceiling and unit-arithmetic contracts. Callers shall synchronize modification. The operation shall require no additional library initialization; underlying numerical failure shall retain the scalar operation's guarantees.
-
1. Existential interval relation refinement PPL-SPEC-000716 For receiving entry set A, witness set B and relation R, refine_existential(rel, x) shall produce an outward interval enclosure of
{a ∈ A ∣ ∃b ∈ B : a R b}.With exact endpoint conversion and supported membership distinctions, the result shall be the least receiving-profile interval containing that set. An empty witness shall produce empty. Equality shall reduce to intersection. Disequality with a nonsingleton witness shall preserve A; disequality with a singleton shall remove that point before taking the interval hull. For finite ordered witnesses, strict inequalities shall use the opposite extreme regardless of its attainment: strict less-than uses the supremum and strict greater-than the infimum, excluding that limit. For a nonstrict inequality, that limit shall be retained exactly when the witness attains it. Unbounded finite ranges shall remain distinct from included infinite values under an extended carrier.
The admitted relations shall be LESS_THAN, LESS_OR_EQUAL, GREATER_THAN, GREATER_OR_EQUAL, EQUAL and NOT_EQUAL. Unsupported openness or inexact boundary conversion may enlarge the exact filtered hull, but shall not exclude any value that satisfies the stated quantified predicate.
The receiver and any interval operand shall be initialized and valid, with compatible ordered carriers. The receiving policy shall admit empty results where possible. Scalar witnesses shall denote admitted singleton values. Active payloads shall be initialized and rational payloads canonical. Boundary conversions and comparisons shall satisfy the numerical policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall retain their meaning without requiring numerical evaluation of their payloads. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical failure shall propagate with the scalar operation's guarantees, without a universal rollback promise.
The receiver may alias the witness interval. The result shall use both operands' entry sets; a distinct witness shall remain unchanged. The returned I_Result shall obey the logical shape and status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
2. Universal interval relation refinement PPL-SPEC-000717 For receiving entry set A, witness set B and relation R, refine_universal(rel, x) shall produce an outward interval enclosure of
{a ∈ A ∣ ∀b ∈ B : a R b}.With exact endpoint conversion and supported membership distinctions, the result shall be the least receiving-profile interval containing that set. An empty witness shall preserve A by vacuity. A nonempty witness shall leave an empty receiver empty. Equality shall yield empty for a nonsingleton witness and intersection for a singleton. Disequality shall produce an enclosure of the interval hull of A⧵B. For ordinary finite ordered witnesses, strict less-than shall use the infimum and admit that limit exactly when the witness does not attain it; strict greater-than shall analogously use the supremum. Nonstrict less-than and greater-than shall admit the corresponding limiting value. Infinite extrema shall be interpreted through their endpoint membership and carrier; a metadata-encoded unbounded endpoint shall not be treated as a finite stored payload.
The admitted relations shall be LESS_THAN, LESS_OR_EQUAL, GREATER_THAN, GREATER_OR_EQUAL, EQUAL and NOT_EQUAL. Unsupported openness or inexact boundary conversion may enlarge the exact filtered hull, but shall not exclude any value that satisfies the stated quantified predicate.
The receiver and any interval operand shall be initialized and valid, with compatible ordered carriers. The receiving policy shall admit empty results where possible. Scalar witnesses shall denote admitted singleton values. Active payloads shall be initialized and rational payloads canonical. Boundary conversions and comparisons shall satisfy the numerical policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall retain their meaning without requiring numerical evaluation of their payloads. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical failure shall propagate with the scalar operation's guarantees, without a universal rollback promise.
The receiver may alias the witness interval. The result shall use both operands' entry sets; a distinct witness shall remain unchanged. The returned I_Result shall obey the logical shape and status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
-
1. Interval assignment and directed enclosure PPL-SPEC-000711 assign(x) shall replace the receiving interval by an outward enclosure of the source singleton or interval, using the receiving boundary and information policies. An empty source shall produce an empty interval. When both endpoints and their membership distinctions are representable exactly, assignment shall preserve the represented set. Otherwise its converted lower endpoint shall not exclude source values below it and its converted upper endpoint shall not exclude source values above it; unsupported strictness may be relaxed. Source infinity membership shall remain distinct from an unbounded finite range under policies that admit that distinction. Self-assignment shall preserve the represented set. A separate source shall remain unchanged.
assign(EMPTY) shall establish empty denotation; assign(UNIVERSE) shall establish the entire declared carrier. Assignment from admitted MINUS_INFINITY or PLUS_INFINITY shall establish the corresponding singleton. set_infinities() shall establish the interval from included negative infinity to included positive infinity; these operations shall require a policy that admits those included values. The templated assignment operator shall perform the corresponding assignment and return the receiving object. Constructors delegating to these assignments shall establish the same set.
Returned I_Result values shall obey the logical shape and status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
The receiving interval shall have a policy that admits the result, including empty values where possible. Operands shall be initialized and valid; scalar operands shall denote admitted singleton values. Active numerical payloads shall be initialized and rational payloads canonical. The selected scalar operations shall meet their finite-range, policy, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall not require evaluation as numerical values. Access shall be synchronized with modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall propagate with the underlying operation's guarantees; there shall be no universal rollback guarantee.
-
2. Interval hull assignment PPL-SPEC-000712 For entry sets X, Y, join_assign(x,y) shall produce an outward enclosure of their interval hull hull(X∪Y). join_assign(x) shall use the receiving interval's entry set as X and the argument's set as Y. Empty operands shall be neutral. Under exact endpoint conversion with supported membership conditions, the result shall be the least interval of the receiving profile that contains both input sets. Equal limiting endpoints shall be included when either input includes that endpoint. A gap between the sets may be filled by the hull.
The receiver may alias either or both interval arguments. Results shall use their entry values, and distinct sources shall remain unchanged. Returned I_Result claims shall have the meanings of 🔗 1. Interval result possibilities and status-flag set operations; a conversion result shall not falsely establish exactness or a particular shape.
The receiving interval shall have a policy that admits the result, including empty values where possible. Operands shall be initialized and valid; scalar operands shall denote admitted singleton values. Active numerical payloads shall be initialized and rational payloads canonical. The selected scalar operations shall meet their finite-range, policy, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall not require evaluation as numerical values. Access shall be synchronized with modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall propagate with the underlying operation's guarantees; there shall be no universal rollback guarantee.
-
3. Geometric interval union gap decision PPL-SPEC-000713 can_be_exactly_joined_to(x) shall return true exactly when the union of the receiving interval and the argument is itself an interval: there shall be no omitted point or gap between their represented sets. Touching finite limits shall join without a gap when at least one touching endpoint is included. Two open limits at that same finite value shall leave a gap. Neither operand shall be changed.
Both operands shall be nonempty, and neither shall be a singleton at an included infinity. They shall have compatible ordered carriers for their comparison operations. The decision shall concern their geometric union; it shall not certify that an endpoint of a different scalar or information policy can be represented exactly by the receiving interval's policy.
The receiving interval shall have a policy that admits the result, including empty values where possible. Operands shall be initialized and valid; scalar operands shall denote admitted singleton values. Active numerical payloads shall be initialized and rational payloads canonical. The selected scalar operations shall meet their finite-range, policy, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall not require evaluation as numerical values. Access shall be synchronized with modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall propagate with the underlying operation's guarantees; there shall be no universal rollback guarantee.
-
4. Interval intersection assignment PPL-SPEC-000714 For entry sets X, Y, intersect_assign(x,y) shall produce an outward enclosure of X∩Y under destination endpoint conversion. intersect_assign(x) shall use the receiving interval's entry set as X. For exactly representable endpoints and supported membership conditions, the result shall denote the exact intersection. Equal limiting endpoints shall be included only when both operands include them. Disjoint sets and any empty operand shall produce an empty interval when that result is admitted.
The receiver may alias either or both interval arguments; the result shall use their entry values and preserve distinct sources. On success the return shall be I_EMPTY exactly when the represented result is empty and I_NOT_EMPTY otherwise. This shape indication shall not assert that a cross-policy rounded enclosure equals the mathematical intersection.
The receiving interval shall have a policy that admits the result, including empty values where possible. Operands shall be initialized and valid; scalar operands shall denote admitted singleton values. Active numerical payloads shall be initialized and rational payloads canonical. The selected scalar operations shall meet their finite-range, policy, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall not require evaluation as numerical values. Access shall be synchronized with modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall propagate with the underlying operation's guarantees; there shall be no universal rollback guarantee.
-
5. Interval enclosure of set difference PPL-SPEC-000715 For entry sets X, Y, difference_assign(x,y) shall produce an outward enclosure of hull(X⧵Y). difference_assign(y) shall use the receiving interval's entry set as X. For exact endpoints with supported complementary openness, the result shall be the least interval containing the literal set difference. Removing all of X shall yield empty; removing nothing shall preserve X. Removing an interior interval while leaving nonempty portions on both sides shall preserve the hull across the removed interior. A removed included endpoint shall become excluded, and a removed open limit shall remain included when it belongs to X. Endpoint conversion or unsupported openness may enlarge that exact hull under the receiving policy; it shall not exclude a surviving value.
The receiver may alias either or both interval arguments. Results shall use entry values and distinct sources shall remain unchanged. Returned I_Result claims shall have the meanings of 🔗 1. Interval result possibilities and status-flag set operations; no shape or exactness claim shall be inferred from unestablished endpoint conversion information.
The receiving interval shall have a policy that admits the result, including empty values where possible. Operands shall be initialized and valid; scalar operands shall denote admitted singleton values. Active numerical payloads shall be initialized and rational payloads canonical. The selected scalar operations shall meet their finite-range, policy, resource, shared-temporary and caller-owned FPU prerequisites. Inactive metadata-encoded endpoints shall not require evaluation as numerical values. Access shall be synchronized with modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall propagate with the underlying operation's guarantees; there shall be no universal rollback guarantee.
-
1. Interval construction from a scalar numeric literal PPL-SPEC-000724 Interval(s) shall enclose the scalar denoted by the numeric string s, parsing under the selected boundary type's numeric syntax and rounding the lower endpoint downward and the upper endpoint upward. An exactly representable finite scalar shall give its singleton when the policy admits it. Inexact endpoint conversion shall give an outward enclosure, with supported endpoint strictness reflecting strict conversion. Under policies that admit and represent an exact signed infinity as a point, an exact infinity literal shall give that signed singleton. Infinity used only as an unbounded endpoint shall retain the receiving carrier's meaning. Unknown numeric syntax and a rejected NaN literal shall throw std::invalid_argument. This constructor shall parse a scalar numeric literal rather than bracketed interval text; the scalar syntax and conversion rules shall follow 🔗 1. Exact finite numeric token syntax through 🔗 4. Numeric text input into supported native floating destinations. The source bytes shall remain unchanged.
Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.
-
Incoming link from: 1. Human-readable box presentation1
2. Readable interval presentation and output delivery PPL-SPEC-000725 Insertion with operator<< shall return the supplied stream and leave the interval's mathematical value unchanged. It shall print an empty interval as []. A singleton shall be printed through its scalar lower endpoint without interval brackets. Otherwise it shall print a lower bracket, the lower endpoint, , ``, the upper endpoint and an upper bracket; open endpoints shall use parentheses and closed endpoints square brackets. Metadata-encoded lower/upper infinities shall print as ``-inf and +inf without reading their inactive numerical payloads. Other endpoints shall use the numeric output rules of 🔗 5. Mathematical numeric output and stream delivery status.
The interval shall be initialized and valid. Formatting and delivery failure shall follow the supplied stream and selected scalar output operations. The returned stream state shall report delivery failure under ordinary stream rules; no independent Boolean status or machine-reload guarantee shall be implied. In particular, singleton presentation shall not be a bracketed input record under 🔗 3. Bracketed interval stream parsing and rejection.
Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.
-
Incoming link from: 2. Readable interval presentation and output delivery1
3. Bracketed interval stream parsing and rejection PPL-SPEC-000726 Extraction with operator>> shall consume a bracketed interval record and return the supplied stream. It shall recognize leading whitespace, [] for empty, or a lower [/(, numeric lower endpoint, comma, numeric upper endpoint and closing ]/). Whitespace may surround numeric tokens and delimiters. It shall leave subsequent records or suffix text available. Scalar singleton text without brackets shall not satisfy this grammar.
Valid finite records shall be enclosed using downward lower conversion and upward upper conversion, respecting supported requested openness and strict conversion. Reversed finite endpoints, or coincident exact finite endpoints with either endpoint excluded, shall denote empty when the policy admits empty. An exact coincident signed-infinity pair shall denote its singleton only when both endpoints are closed and the boundary/information policy admits and represents that point; excluding either endpoint shall give empty under those policies. Unbounded finite ranges and included infinity points shall remain distinct according to the receiving carrier.
Malformed syntax, missing delimiters/endpoints and rejected NaN endpoints shall set failbit and return the supplied stream, or throw according to its exception mask. The destination shall remain unchanged for a syntactic failure before a complete accepted record has been parsed. Successful parsing shall establish the record's interval independently of the preceding destination value; a default-constructed destination shall be admissible. Underlying numerical or allocation exceptions shall retain their own state guarantees. No general rewind of consumed input shall be promised.
Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.
-
Incoming links from: 2. Reloadable box record export 5. Compatible interval record loading and partial failure state2
4. Reloadable interval metadata and endpoint export PPL-SPEC-000727 ascii_dump(s) shall export one interval record as the labels info, lower and upper in that order, separated from their metadata/payload values by spaces, followed by a newline. Metadata shall use 🔗 8. Metadata ASCII representation and stream failure states, and active endpoints shall use their scalar ASCII representation under 🔗 1. Exact scalar ASCII persistence through 🔗 4. Scalar ASCII stream delivery and failure handling. A metadata-encoded SPECIAL endpoint shall instead have canonical zero payload, without inspecting its inactive numerical storage. The represented set and all active endpoint values shall remain unchanged; inactive payload bytes need not be preserved.
The source shall be initialized and valid. The record shall be reloadable with the corresponding interval type, compatible metadata/number formats and compatible stream formatting under 🔗 5. Compatible interval record loading and partial failure state. Stream failure shall be observable through its state or configured exception mask; output shall not report a separate success value.
Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.
-
5. Compatible interval record loading and partial failure state PPL-SPEC-000728 ascii_load(s) shall read info, its metadata representation, lower, its scalar payload, upper and its scalar payload in order. It shall return true after the complete compatible record is loaded, leaving subsequent records or suffix tokens available. Loading a complete record exported by 🔗 4. Reloadable interval metadata and endpoint export under compatible formatting shall preserve its mathematical set, endpoint membership and metadata meaning. Canonical inactive zero payloads shall not replace the infinity meaning carried by SPECIAL flags.
The stream shall carry a representation compatible with the receiving boundary/information types, including an admitted metadata/payload combination whenever loading succeeds. This low-level record interface shall not promise validation of arbitrary metadata claims or cross-type, cross-version or cross-platform format compatibility. An existing initialized destination or a default-constructed destination with live storage shall be admissible for a complete compatible replacement.
An absent or wrong label, failed component extraction, or failed check of 🔗 3. Interval shape and endpoint classification shall return false. Input may have been consumed and the destination may contain partially loaded components. A rollback or usable mathematical interval shall not be assumed. Before subsequent mathematical use, the caller shall establish a valid complete value, for example by a successful compatible replacement. Stream exceptions shall propagate according to the configured mask, with partial state permitted. Metadata/scalar parsing shall retain their own formatting and failure guarantees.
Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.
-
1. Interval types, initial storage and independent value copies PPL-SPEC-000701 Interval<Boundary, Info> shall own two boundary objects and one metadata object, expose their types as boundary_type and info_type, and use Info to select endpoint openness, special boundary representations and admitted empty/extended values. A metadata-based special-boundary encoding shall not be combined with a boundary type whose numerical limits already provide infinity. Rational_Interval shall use canonical mpq_class boundaries with open endpoints available. Integer_Interval shall use mpz_class boundaries with closed endpoints. Both presets shall admit empty intervals and represent unbounded endpoints through metadata; their concrete intervals shall exclude infinity as an element.
Default construction shall default-construct the owned boundary and metadata objects. It shall not establish a common empty or universe value across all boundary types. Callers shall initialize an interval with a supported construction, assignment or build operation before using its numerical value. Construction from a supported scalar, interval or degenerate element shall have the value meaning of the corresponding assignment operation.
Interval_Singleton<T> and Interval_Like<T> shall have the truth values of Is_Singleton<T>::value and Is_Interval<T>::value. Interval_Source<T> shall classify their union, preserving existing trait specializations and qualifier rules. The default interval classification shall retain implicit const-reference conversions to Interval_Base and exclude inaccessible, ambiguous and explicit-only conversions. These classifications shall not impose Boolean regularity on symbolic types. The forwarding constructor shall participate when overload resolution makes the receiver's existing assign(source) operation available. Sources without an admitted assignment overload shall be excluded. This admission check shall not instantiate the assignment body or extend the underlying endpoint operations' supported combinations. The separate scalar-text constructor shall remain available.
Copy construction and same-type copy assignment of initialized valid intervals shall preserve the represented interval, active boundary values and metadata. Their owned storage shall be independent; changing or destroying one object shall not change the other's value. Same-object assignment shall preserve the value and return that object's reference. Distinct-object copy assignment shall return the destination reference. Destruction shall release the owned boundary and metadata objects. Copying shall require the resources and failure guarantees of their ordinary scalar/metadata copies; no strong rollback guarantee shall be inferred when an underlying copy throws.
Boundary values and metadata shall satisfy their numerical and representation contracts. Source/destination objects shall be live and initialized for any operation that reads their values. Callers shall synchronize overlapping modifications and respect the scalar operations' shared-temporary and FPU prerequisites. Storage construction and same-type copying shall add no library-initialization or numerical-rounding prerequisite.
-
Incoming link from: 4. Interval and scalar view adapters1
2. Interval endpoint and metadata references PPL-SPEC-000702 For a live interval, mutable lower(), upper() and info() shall return references to its owned lower boundary, upper boundary and metadata objects. Their const overloads shall return const references to those same objects, without copying or changing them. The references shall retain their owner storage identities across value assignments and swaps and shall remain valid until the owner is destroyed.
Callers that read an endpoint shall ensure that its payload is initialized and meaningful for the current representation. A metadata-encoded unbounded endpoint shall not imply a readable numerical payload. Callers that mutate an endpoint or metadata directly shall establish a valid complete representation, including canonical rational values and consistent openness and special-boundary flags, before another interval operation reads it. Direct mutation shall not automatically perform numerical conversion, normalize the interval or repair other fields.
Access itself shall require no library initialization or FPU setup. Reads shall be synchronized with overlapping owner modification; numerical writes shall obey the written scalar's prerequisites.
-
Incoming link from: 5. Compatible interval record loading and partial failure state1
3. Interval shape and endpoint classification PPL-SPEC-000703 For an initialized valid interval, is_empty() shall report whether its lower/upper endpoint predicates admit no common value; is_singleton() shall report a single admitted value. Openness at equal finite endpoints shall distinguish an empty interval from a closed singleton.
lower_is_open() and upper_is_open() shall report whether the respective endpoint value is excluded under the boundary/metadata policy. The boundary-infinity queries shall identify outward unbounded endpoints. The domain-infimum/supremum queries shall identify the selected numerical domain's least/greatest extent, which may be a finite native limit in a bounded domain. is_bounded() shall return true exactly when neither endpoint is an outward boundary infinity. is_universe() shall return true exactly when the represented interval contains every value of the configured number carrier. Its endpoints shall reach the domain's infimum and supremum, and shall include those extent values whenever they belong to the carrier. Opening a finite domain-limit endpoint, or excluding an infinite endpoint admitted as an element of an extended carrier, shall therefore prevent the universe classification. A bounded numerical domain can have a bounded universe representation.
For policies admitting actual extended infinity values, infinity_sign() shall return 1 when the lower endpoint is reverse positive infinity, -1 when the upper endpoint is reverse negative infinity, and 0 otherwise, checking the lower case first. Ordinary finite intervals and the real-unbounded universe shall return zero.
These queries shall preserve endpoint and metadata values. They shall require initialized valid representations, sufficient comparison resources, synchronization against modification, and the comparisons' scalar/FPU and shared-temporary prerequisites. They shall add no initialization requirement.
-
4. Exact interval set comparisons PPL-SPEC-000704 For initialized valid intervals and admitted scalar singleton operands, contains(y) shall report set inclusion of the argument in the receiving interval. strictly_contains(y) shall report inclusion with unequal represented sets. is_disjoint_from(y) shall report that the two sets have empty intersection. The interval comparison operators == and != shall report represented-set equality and its complement. These operators shall apply when at least one operand is an interval; they shall not change the raw scalar operators' contracts.
Every interval shall contain the empty interval. The empty interval shall strictly contain no interval; a nonempty interval shall strictly contain the empty interval. Empty operands shall be disjoint from all operands. Equal closed endpoints shall have the same singleton meaning regardless of the admitted endpoint storage type. Open/closed contact shall determine whether touching intervals intersect. An interval with integer endpoints shall not thereby discard noninteger interior points.
Mixed representations shall compare their endpoint meanings without changing the operands or narrowing an exact value merely to the other's storage width. Source values shall be canonical and admissible to their policies; comparison resources, shared-temporary serialization, synchronization and any required caller-owned FPU state shall follow the scalar comparison contracts. No additional library initialization shall be required.
-
Incoming link from: 1. Exact topological closure of boxes1
5. Interval closure and endpoint exclusion PPL-SPEC-000705 is_always_topologically_closed() shall return true exactly when the metadata policy cannot store open endpoints. is_topologically_closed() shall return true for that policy, for an empty interval, or when every finite endpoint is closed. An outward infinite endpoint shall not prevent this real-topology closure classification.
topological_closure_assign() shall retain empty intervals and clear openness at each finite endpoint of a nonempty interval when openness is supported. It shall preserve numerical endpoints and outward unbounded endpoints. For ordinary real intervals excluding infinity as an element, the represented result shall be their real topological closure under the admitted endpoint policy. Closure shall be idempotent.
For a nonempty interval with openness support, remove_inf() shall mark its lower endpoint open and remove_sup() its upper endpoint open. These operations shall exclude a currently included finite infimum/supremum; they shall not move the numerical endpoints. Opening an endpoint of a singleton may make it empty. For a policy without openness support both calls shall leave the interval unchanged.
Objects shall be live, initialized and valid, and permit any resulting empty value. Callers shall synchronize modification. The flag operations shall perform no scalar arithmetic or result-handler dispatch; queries shall retain their underlying endpoint-comparison prerequisites.
-
6. Interval swap and owned boundary memory PPL-SPEC-000706 For two initialized valid intervals of the same type, member m_swap and related swap shall exchange both owned boundary values and the metadata as one successful interval value exchange. Same-object swap shall preserve the represented interval. Retained endpoint and metadata references shall remain attached to their original owner storage and observe the exchanged contents. Swap shall require the underlying scalar and metadata swap resources; it shall not promise rollback if one of those operations throws.
For PPL's nonallocating interval metadata policies, external_memory_in_bytes() shall equal the sum of the owned lower and upper scalar external-memory metrics. total_memory_in_bytes() shall equal sizeof(*this) plus that external size. GMP endpoint metrics shall include retained allocated limbs according to their scalar memory contracts; native scalar endpoints shall add no external allocation. These queries shall preserve numerical values, metadata and borrowed storage identities. Their sums shall fit memory_size_type. A user-defined metadata extension that owns additional external allocation shall require its own accounting contract.
Objects shall be live and represent initialized valid intervals. Swap shall support valid metadata-encoded unbounded endpoints without reading an indeterminate inactive native payload as a numerical value. Callers shall synchronize mutation and inspection. Swaps and memory queries shall add no numerical-rounding or library-initialization requirement.
-
7. Interval endpoint constraint views PPL-SPEC-000707 For a nonempty initialized valid interval, lower_constraint() shall return an interval-constraint object with the lower endpoint's relation and cutoff; upper_constraint() shall do the corresponding upper endpoint. A finite open lower endpoint shall use V_GT and a closed lower endpoint V_GE; finite open/closed upper endpoints shall use V_LT/V_LE. A metadata-encoded special unbounded endpoint shall produce an unconstrained V_LGE constraint with no initialized cutoff required.
For an effective numerical cutoff, the returned object shall use the default storage criterion of 🔗 4. Interval constraints retain relation and cutoff ownership. A borrowed cutoff shall refer to that same owned boundary and reflect its later valid numerical changes; an owned cutoff shall retain an independent snapshot. In both cases the returned relation shall be a snapshot of the relation at construction and shall not change when the interval's metadata changes later. Borrowed constraints shall not outlive their interval owner.
These queries shall preserve the interval. The interval shall be nonempty, and callers shall not read an unconstrained returned object's unbound cutoff. Lifetimes, canonical numerical representation, sufficient copy resources, synchronization and comparison prerequisites shall follow 🔗 4. Interval constraints retain relation and cutoff ownership and the interval classification contracts.
-
8. Interpreting logical interval emptiness flags PPL-SPEC-000708 check_empty(result) shall interpret the logical shape possibilities of 🔗 1. Interval result possibilities and status-flag set operations. An explicit I_EMPTY shape field shall return true without needing an endpoint emptiness calculation. An explicit I_NOT_EMPTY shape field shall return false. For every other shape field, the query shall report the receiving interval's actual endpoint emptiness. Other status bits shall not change this interpretation.
The input shall use the logical I_Result bit protocol. It shall not be an unrelated scalar Result or an unconverted packing of endpoint result codes. Explicit shape claims shall be supplied consistently with the operation whose result they describe when the caller uses this return value to decide that operation's actual emptiness. This helper shall not validate those claims against the interval's geometry.
The receiving object shall have an initialized valid representation whenever an endpoint calculation is required. The query shall preserve it and retain the scalar comparison, synchronization and resource prerequisites of is_empty(). It shall require no additional initialization.
-
Incoming links from: 3. Expression-view predicates, coefficient ranges and support filtering 1. Internal affine value, coefficient storage and dispatch prerequisites 7. Affine addition, subtraction and negation 8. Integral scalar multiplication and coefficient-wise division 9. Explicit scaled accumulation, combination and elimination 10. Coefficient normalization and sign normalization 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 6. Java mathematical representations and operation options9
1. Affine value, numerical prerequisites and shared zero PPL-SPEC-000071 A live Linear_Expression of space dimension d, with homogeneous coefficients ai and inhomogeneous term b, shall denote the function E(x) = b + ∑d − 1i = 0aixi on rational valuations. The constant term shall not occupy a coordinate. Trailing zero coefficients shall remain part of the declared ambient dimension.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize access to an object while another operation modifies it. The valid representations shall be DENSE and SPARSE; default_representation shall be SPARSE. zero() shall return a borrowed, constant expression of dimension zero and value zero. The returned object shall remain alive until its owning initialized thread is finalized.
The computed arithmetic guarantees of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization shall require every evaluated coefficient arithmetic step and result to be representable in the selected coefficient profile. Checked arithmetic may report overflow; unchecked completion shall not prove that this precondition held. Allocation failures may propagate. Failed construction shall release resources owned by the incomplete expression. Distinct, unchanged operands shall remain valid after a reported failure. Other modified objects shall be destructible; no universal rollback is promised.
-
Incoming link from: 2. Independent backend construction, copying and affine arithmetic1
2. Zero, constant, variable and dimensioned construction PPL-SPEC-000072 Expression_Adapter_Source<T> shall have the truth value of std::is_convertible_v<const T&, const Expression_Adapter_Base&>. The four adapter-copy constructors shall use this predicate as their type constraint, including implicit base-reference conversions and excluding inaccessible or ambiguous base conversions. Their optional trailing void* parameter shall retain its default null value and shall be ignored.
Construction with only an optional representation shall produce dimension zero and value zero. Construction from a coefficient shall produce dimension zero and that constant value. Construction from Variable v shall produce dimension v.space_dimension(), coefficient one at v.id(), and zero elsewhere, including the constant term.
A variable whose dimension exceeds max_space_dimension() shall cause std::length_error. A requested representation shall be used. The ordinary copy constructor shall copy all coefficients and the declared dimension and retain the source representation. The overload accepting a representation shall use that representation. The overloads accepting space_dim shall copy the retained coefficients, discard coefficients of removed trailing coordinates when shrinking, and insert zero coefficients when extending. Their caller shall supply space_dim <= max_space_dimension(). All copies shall own independent values.
The four corresponding copy forms shall also accept a supported, live expression adapter, including the borrowed expression views exposed by constraints and congruences. They shall copy the adapter's visible coefficients, constant and declared dimension. Copying a view shall not introduce a descriptor's hidden representation columns. Omitting the representation shall retain the adapter's representation; an explicit representation shall select that representation. Dimensioned copies shall apply the same truncation and zero-extension rules as ordinary copies.
-
3. Independent assignment, destruction and swapping PPL-SPEC-000073 Copy assignment shall replace the target coefficients, dimension and representation with those of the source at entry, return a reference to the target, and preserve a distinct source. Self-assignment shall preserve the value, dimension and representation. Construction or assignment from an rvalue shall admit the copy forms and retain the source value; no distinct move operation is required. A separately owned copy shall remain usable after mutation or destruction of the original.
m_swap and the PPL swap overload shall exchange complete values, dimensions and representations; swapping an object with itself shall preserve it. Destruction shall release the object's owned representation. Assignment shall leave the target unchanged if creating its replacement copy fails.
-
4. Value-preserving representation selection and conversion PPL-SPEC-000074 representation() shall report the expression's current storage choice. For r equal to DENSE or SPARSE, successful set_representation(r) shall select r while preserving every coefficient, the constant term and declared space dimension. Repeating the current choice shall preserve the expression. Explicit-representation copy construction shall make the same coefficient-preservation guarantee for a distinct result. If creating a converted representation fails, set_representation shall leave the original unchanged.
-
Incoming link from: 1. Internal affine value, coefficient storage and dispatch prerequisites1
5. Ambient dimension queries and trailing-coordinate resizing PPL-SPEC-000075 max_space_dimension() shall return the common maximum supported expression dimension. space_dimension() shall return the declared ambient dimension, including unused trailing coordinates. For n <= max_space_dimension(), successful set_space_dimension(n) shall retain the constant term and coefficients with indices below the lesser of the old and new dimensions. Extension shall give all new coordinates zero coefficients. Shrinking shall discard removed coefficients. Resizing to the current dimension shall preserve all coefficients. These operations shall retain the representation.
-
Incoming link from: 1. Internal affine value, coefficient storage and dispatch prerequisites1
6. Coefficient access, replacement and zero predicates PPL-SPEC-000076 Coefficient accessors shall require an lvalue receiver, with the corresponding const && overloads deleted in every coefficient profile. References shall not outlive their owning expression.
coefficient(v) shall return the stored homogeneous coefficient when v.id() is within the declared dimension, and zero otherwise. inhomogeneous_term() shall return the constant term. Returned references, where the configured trait returns references, shall be borrowed until the expression is modified or destroyed.
For a variable within the declared dimension, set_coefficient(v,n) shall replace only that coefficient. set_inhomogeneous_term(n) shall replace only the constant term. Both shall preserve dimension and representation. Scalar inputs may be borrowed from the expression being modified; their entry values shall be used.
is_zero() shall hold exactly when every homogeneous coefficient and the constant term are zero. all_homogeneous_terms_are_zero() shall disregard the constant term. For a Variables_Set whose indices are within the expression dimension, all_zeroes(vars) shall hold exactly when every selected homogeneous coefficient is zero. An empty selection shall satisfy that predicate. is_equal_to(other) shall hold exactly when the declared space dimensions, constant terms and all homogeneous coefficients are equal, independently of representation. It shall not test equality of zero sets; expressions differing by a nonunit scale shall generally compare unequal.
-
7. Affine addition, subtraction and negation PPL-SPEC-000077 For operands denoting E and F, expression addition and subtraction shall produce E + F and E − F, using zero coefficients for missing trailing coordinates and the maximum input dimension. Mixed variable forms shall treat a variable as its coordinate function. Mixed coefficient forms shall treat a coefficient as a dimension-zero constant. Unary plus shall return an independent copy; unary minus and neg_assign shall negate every coefficient, including the constant, without changing dimension.
Compound addition and subtraction shall update the target from entry values, return a reference to it, retain its representation, and permit the target as the expression source. Distinct sources shall remain unchanged. Zero cancellation shall retain the computed maximum dimension. An operation adding or subtracting a variable beyond the supported expression dimension shall throw std::length_error before modifying the target. The numerical prerequisites of 🔗 1. Affine value, numerical prerequisites and shared zero shall apply.
-
8. Integral scalar multiplication and coefficient-wise division PPL-SPEC-000078 Multiplication by a coefficient c shall multiply every stored coefficient and the constant term by c, producing the affine function cE. Multiplication by zero shall retain the expression's dimension. operator*= shall update and return the target and retain its representation. Both scalar operand orders shall be available for a new result.
For nonzero divisor c, operator/= shall replace each homogeneous coefficient and the constant term separately by its integral quotient rounded towards zero. It shall retain dimension and representation and return the target. This shall denote affine division E ⁄ c when all coefficients are divisible by c; otherwise it shall denote the expression formed from those truncated coefficients. No rational-coefficient result is implied. The scalar passed to a mutating operation shall not reference a coefficient owned by that target. The numerical prerequisites of 🔗 1. Affine value, numerical prerequisites and shared zero shall apply.
-
9. Explicit scaled accumulation, combination and elimination PPL-SPEC-000079 Variable accumulation shall add or subtract cxv to the target, extending its dimension when needed. Expression accumulation shall add or subtract cF and use the maximum input dimension. linear_combine(y,c1,c2) shall assign c1E + c2F and require both multipliers nonzero. linear_combine_lax shall have that same meaning while admitting zero multipliers. Both shall retain the maximum input dimension, even when its coefficient cancels, and retain the target representation.
For equal-dimension distinct expressions with nonzero coefficients a and b at v, linear_combine(y,v) shall assign (b ⁄ g)E − (a ⁄ g)F, where g = gcd(|a|, |b|). The chosen coordinate coefficient shall therefore be zero. The variable shall lie in that dimension.
Expression sources shall be distinct from the target. Scalar multipliers shall not reference a coefficient owned by the target. Distinct sources shall be preserved. Numerical prerequisites in 🔗 1. Affine value, numerical prerequisites and shared zero shall apply.
-
10. Coefficient normalization and sign normalization PPL-SPEC-000080 normalize() shall divide all homogeneous coefficients and the constant term by their common nonnegative greatest common divisor when it is nonzero. The all-zero expression shall remain zero. sign_normalize() shall negate all coefficients and the constant term exactly when the first nonzero homogeneous coefficient, in increasing variable order, is negative. An expression having no nonzero homogeneous coefficient shall be unchanged by sign normalization, including a negative constant.
Both operations shall retain dimension and representation and be idempotent. Normalization can scale the affine value; sign normalization can negate it. Neither operation shall promise affine-value preservation merely because its result has the same zero set. The numerical prerequisites of 🔗 1. Affine value, numerical prerequisites and shared zero shall apply.
-
11. Ordered iteration of nonzero homogeneous coefficients PPL-SPEC-000081 The owning expression's iterator-position accessors shall require an lvalue receiver, with the corresponding const && overloads deleted. Iterators shall not extend the owning expression's lifetime.
begin() and end() shall delimit homogeneous nonzero coefficients in increasing coordinate order; the constant term and zero coefficients shall not occur. end() shall be the past-the-end position. lower_bound(v) shall return the first such coefficient whose variable identifier is at least v.id(), or end() when none exists; callers shall supply v.id() <= space_dimension(), including the past-the-end coordinate.
Dereferencing a valid non-end iterator shall return its coefficient; variable() shall return its coordinate and index() shall return that coordinate's identifier plus one. Prefix increment/decrement shall navigate the sequence and return the changed iterator. Decrement shall require a preceding element; decrementing a nonempty sequence's end shall yield its last element. Iterator copies and assignment shall own independent positions, while borrowing the same expression. Iterators shall be compared only within the same unchanged expression. Mutating or destroying the expression shall invalidate them. A default iterator shall admit destruction or replacement; copying, dereferencing or navigating it is not required.
visit_nonzero_coefficients(visitor) const & shall invoke the callback exactly once with a concrete borrowed, bidirectional range of the same ordered nonzero homogeneous terms. The callback shall accept dense and sparse ranges and return the same type for both. Representation shall be selected once; constructing, traversing and copying range iterators shall not allocate. Range begin and end access shall take constant time; locating their positions may be performed when constructing the view. The callback result and exceptions shall propagate unchanged. Owner rvalues shall be rejected. A range or iterator returned by the callback shall borrow the expression and shall obey the same invalidation rules. Adapter visitors shall honor the visible dimension and omit hidden descriptor coordinates.
-
Incoming link from: 1. Internal affine value, coefficient storage and dispatch prerequisites1
12. Explicit coefficient-coordinate transformations PPL-SPEC-000082 For variables within the expression dimension, swap_space_dimensions shall exchange exactly their coefficients and retain the constant term. permute_space_dimensions(cycle) shall require distinct, in-dimension variables. It shall move each listed coordinate coefficient to the following listed coordinate, and the last to the first. Empty and singleton cycles shall preserve the expression.
remove_space_dimensions(vars) shall require in-dimension indices, discard their coefficients, and compact retained coordinates in their original order. Removing none shall preserve the expression; removing all shall retain only the constant term. shift_space_dimensions(v,n) shall require v.id() <= space_dimension() and a resulting dimension not exceeding max_space_dimension(). It shall insert n zero coefficients immediately before v, shift subsequent coefficients by n, and increase the dimension accordingly. Insertion at the old dimension shall append zeros. A zero shift shall preserve the expression.
These transformations shall preserve the inhomogeneous term and representation. They shall implement the stated coefficient rearrangement, with no claim that discarding a nonzero coefficient preserves the original affine value.
-
13. Reloadable ASCII export and replacement loading PPL-SPEC-000083 ascii_dump(s) shall write a reloadable representation consisting of the word size, the number of coefficient slots d + 1, and then the constant term followed by all homogeneous coefficients in increasing variable order. Whitespace shall separate tokens. ascii_dump() shall write the same representation to std::cerr. Export shall preserve the expression.
Given a compatible complete representation with representable coefficient values and a positive slot count not exceeding the supported storage limit, ascii_load(s) shall return true and replace the expression with the encoded coefficients and dimension, retaining its destination representation. The slot count shall include the constant slot, so zero shall be rejected with false before resizing, preserving the destination expression. A missing or incorrect size token, missing count, malformed coefficient or truncated coefficient sequence shall yield false. Trailing input after the indicated coefficient count shall remain available to the caller. The contract shall not promise a stable cross-version wire format.
Other reported load failures may change the destination. It shall remain destructible and may be replaced by a subsequent complete valid load; no rollback is promised. Allocation and configured numerical failures may propagate through their documented exception channels.
-
14. Human-readable affine output and formatter dispatch PPL-SPEC-000084 The output operator shall display the nonzero homogeneous terms in increasing variable order, followed by a nonzero constant term. It shall use the active Variable formatter specified by 🔗 7. Active Variable formatter and initialized thread state. For coefficient magnitudes other than one it shall put * between the coefficient and variable; a magnitude of one shall be omitted. Later positive and negative terms shall be separated by " + " and " - " respectively, with a minus sign also preceding a negative first term. A zero expression shall display 0. No newline shall be added. The supplied stream shall be returned. print() shall use the same display on std::cerr.
Output shall preserve coefficients, dimension and representation. Its formatting arithmetic shall satisfy the selected coefficient profile's preconditions, including representability of any negated coefficient. The human-readable display shall not substitute for the reloadable representation in 🔗 13. Reloadable ASCII export and replacement loading.
-
15. Invariant query and memory accounting PPL-SPEC-000085 OK() shall report whether the expression's owned representation satisfies its checked storage invariants. Expressions produced by successful operations under their stated preconditions shall satisfy those invariants. external_memory_in_bytes() shall report the memory accounted for by its owned representation, including that representation object. total_memory_in_bytes() shall equal sizeof(Linear_Expression) plus external_memory_in_bytes(). These queries shall preserve the expression's coefficients, dimension and representation. Memory counts shall not promise allocator overhead, a fixed dense-to-sparse ordering or exact process memory consumption.
-
Incoming links from: 9. Native interval-affine image 9. Native interval-affine image 1. Conservative interval-linear-form inequality refinement 2. Generalized interval-linear-form comparisons 1. Dependency invalidation 1. Native interval-affine image 1. Native interval-affine image 2. Conservative interval-linear-form inequality refinement 3. Generalized interval-linear-form comparisons9
1. Interval-linear-form meaning and numerical prerequisites PPL-SPEC-000921 For a selected interval type C, a live Linear_Form<C> of dimension d, with coefficient intervals Ai and constant interval B, shall represent the interval-affine expression B + ∑d − 1i = 0Aixi. At each real valuation x, it shall denote the set of sums obtained by choosing each coefficient and the constant independently from their intervals. Repeated use of an interval object shall not establish correlations between those choices. The constant shall occupy no variable coordinate. The declared dimension shall retain trailing zero coefficients.
C shall provide the interval construction, copying, predicates and arithmetic required by the selected operation. Stored values shall satisfy its initialization, canonical-value and metadata prerequisites. Each successful arithmetic operation shall retain the interval operations' enclosure guarantees and selected numerical-profile conditions; no common optimality or finite-bound guarantee shall be inferred. Native floating-point arithmetic shall require the selected supported boundary format and its rounding-state prerequisites. Storage access shall add no numerical rounding requirement. Shared-facility initialization shall be required where the selected coefficient operation, expression conversion or output formatter requires it; unrelated storage shall add no initialization owner.
Callers shall synchronize access against overlapping modification and obey shared-temporary restrictions in the selected configuration. Allocation and coefficient exceptions may propagate. Failed construction shall release resources owned by the incomplete form. Unchanged operands shall remain unchanged; modified destinations shall remain destructible, with no universal rollback guarantee.
-
2. Zero and interval-constant construction PPL-SPEC-000922 Default construction shall produce dimension zero and the singleton-zero constant. Construction from an initialized interval n shall produce dimension zero and an independent copy of that interval as the constant. Both forms shall report zero coefficients at every valid queried variable. The constant constructor shall preserve empty, bounded, open, singleton and unbounded values admitted by C.
-
3. Variable and variable-difference construction PPL-SPEC-000923 Construction from Variable v shall produce dimension v.space_dimension(), singleton coefficient one at v.id(), singleton zero at every other coordinate and a singleton-zero constant. The explicitly selected interval-type overload for v-w shall produce dimension max(v.space_dimension(), w.space_dimension()). Distinct variables shall have singleton coefficients one and minus one, respectively; equal variables shall produce all singleton-zero coefficients while retaining that dimension. The selected interval representation shall enclose the signed unit values even when its boundary type is unsigned.
A variable dimension exceeding max_space_dimension() shall cause std::length_error before a coefficient vector of that dimension is constructed.
-
4. Conversion from integral affine expressions PPL-SPEC-000924 Construction from Linear_Expression e shall preserve its declared dimension and enclose each integer coefficient and constant in the corresponding interval of C. Exactly representable integer values shall be singleton intervals; other supported conversions shall retain their coefficient-conversion enclosure guarantees. Source representation shall not alter the mathematical result, and the source shall remain unchanged. A source dimension greater than max_space_dimension() shall cause std::length_error. Reading e shall retain its configured coefficient profile and initialization prerequisites.
-
5. Independent copying, assignment and owned lifetimes PPL-SPEC-000925 Copy construction and copy assignment shall preserve the dimension and all coefficient intervals, including their admitted endpoint metadata. Copies shall own independent coefficient storage. Subsequent mutation or destruction of one form shall not change the other. Assignment shall return the destination reference, including same-object assignment, which shall preserve its value and dimension. Destruction shall release the form's owned vector and constructed coefficient objects. Copying shall not promise to preserve allocation capacity or introduce a move interface beyond the declared C++ operations.
-
Incoming links from: 1. Dependency invalidation 1. Owned floating-expression protocol and lifetime2
6. Dimensions and borrowed coefficient access PPL-SPEC-000926 Coefficient accessors shall require an lvalue receiver, with the corresponding const && overloads deleted. References shall not outlive the owning form.
max_space_dimension() shall report the maximum ambient dimension admitted by the form's coefficient-vector representation. This limit shall not promise that allocating every admitted dimension will succeed. space_dimension() shall return the declared ambient dimension. inhomogeneous_term() shall return a const reference to the owned constant. For a valid variable inside that dimension, coefficient(v) shall return a const reference to its owned coefficient. A valid variable outside the declared dimension shall return a const reference to a singleton zero, without extending the form or allocating a coefficient for that variable.
Owned coefficient references shall be usable until destruction or an operation that may replace/reallocate or transfer the owning vector. The shared zero shall remain usable during its owning type/context lifetime; callers shall not destroy or modify it through a cast.
-
7. Unary copying and coefficient-wise negation PPL-SPEC-000927 Unary plus shall return an independent value copy with the same dimension. Unary minus shall return an independent form whose coefficient intervals, including the constant, enclose their entry-value negations. negate() shall apply the same interval negation to the current form and preserve its dimension. Negation shall exchange lower/upper roles and endpoint openness according to C. It shall not cancel an uncertain interval to zero.
-
8. Addition of interval linear forms PPL-SPEC-000928 For a+b and a+=b, the result dimension shall be the maximum of the entry dimensions. Each common coefficient interval and the constant shall enclose the sum of the corresponding entry intervals. Coefficients belonging only to the larger form shall be preserved. Compound assignment shall return a by reference; noncompound addition shall return an independent form and preserve both operands. Same-object addition shall use the entry coefficient intervals and their independent-choice interval meaning.
-
9. Subtraction of interval linear forms PPL-SPEC-000929 For a-b and a-=b, the result dimension shall be the maximum of the entry dimensions. Each coefficient interval and constant shall enclose the corresponding entry interval difference. A coordinate present only in a shall be preserved; one present only in b shall be negated. Compound assignment shall return a by reference; the independent result shall preserve both operands. Same-object subtraction shall retain independent interval-choice semantics: subtracting an uncertain interval from itself shall not imply a singleton-zero coefficient.
-
10. Variable addition, subtraction and dimension extension PPL-SPEC-000930 Adding or subtracting a valid variable shall add or subtract singleton one at its coordinate, preserve every other entry coefficient and constant, and set dimension to the maximum of the form's entry dimension and the variable dimension. The reflected v-f shall negate every coefficient of f then add singleton one at v.id(). Compound operations shall return the modified form by reference. Returning operations shall preserve their operands. Exact cancellation shall not shrink the declared dimension. A variable dimension above max_space_dimension() shall cause std::length_error and leave the existing form unchanged.
-
11. Interval scalar translation and reflected subtraction PPL-SPEC-000931 Adding or subtracting an interval scalar shall change only the constant interval, by the corresponding interval sum or difference, and retain the form's dimension and homogeneous coefficients. n-f shall negate the homogeneous coefficients and produce the interval difference of entry scalar n and the entry constant. Returning operations shall preserve all inputs. Compound operations shall return the destination reference and use the scalar's entry value when it is borrowed from that form, including its constant.
-
12. Interval scalar multiplication PPL-SPEC-000932 Multiplying a form by interval scalar n shall preserve its declared dimension and produce coefficient intervals, including the constant, that enclose every product of the corresponding entry coefficient and the entry scalar. Both returning orders shall preserve their operands and return an independent form. Compound multiplication shall return the modified form reference. A scalar borrowed from the destination shall denote its entry interval for every coefficient update; changing an earlier coefficient shall not change that scalar's meaning for later updates.
-
13. Division by an admitted nonzero interval scalar PPL-SPEC-000933 For a supported interval divisor that excludes zero, compound division shall preserve the dimension and enclose, at every coefficient and constant, all quotients of the entry coefficient interval by the entry divisor interval. It shall return the destination reference. The divisor's entry interval shall apply to every coefficient even when borrowed from the destination. Callers shall satisfy the selected interval division's domain, representability and rounding prerequisites; this interface shall not imply that division by zero is admitted.
-
Incoming link from: 3. Common-binding affine-store join1
14. Coefficient equality with implicit trailing zeros PPL-SPEC-000934 Equality shall return true exactly when the constants compare equal under C and every homogeneous coefficient compares equal after padding the shorter form with singleton-zero intervals. Different declared dimensions alone shall not imply inequality. Inequality shall be the logical complement of equality. Neither operation shall modify its inputs or dimensions. This comparison shall compare interval coefficients; it shall not assert relational equivalence after correlating uncertain coefficient choices.
-
15. Ownership-preserving swap PPL-SPEC-000935 Member and free swap shall exchange the complete owned coefficient values and declared dimensions of two forms without numerical conversion. Future mutation of either form shall affect its received value independently. Same-object swap shall preserve its value and dimension. Swap shall not require copying or re-evaluating every interval coefficient.
-
16. Coefficient integrity and finite-bound classification PPL-SPEC-000936 OK() shall return true when every owned interval coefficient satisfies its interval invariant predicate, and false when any such predicate returns false. overflows() shall return false exactly when the constant and every stored homogeneous coefficient satisfy C::is_bounded(); otherwise it shall return true. The latter shall classify the current coefficient bounds, not certify past arithmetic exactness or the absence of modeled floating-point rounding error. Both queries shall preserve the form and its dimension.
-
17. Reloadable interval-coefficient ASCII representation PPL-SPEC-000937 ascii_dump() shall write the dimension followed by the constant and homogeneous intervals in coordinate order, each in C's reloadable ascii_dump() format. Successful loading shall replace the complete form with that declared dimension and those intervals, including endpoint metadata and inactive payloads required by C's format. A dump shall round-trip under a compatible coefficient representation. The overload without a stream argument shall write that same frame on standard error. Dumping shall preserve the source and may propagate stream exceptions.
ascii_load() shall return false when no valid dimension can be read, when it exceeds max_space_dimension(), or when a required interval record cannot be loaded. Success shall return true after consuming the required record; trailing input shall remain available. A failed load shall leave the form destructible and reusable by complete assignment/loading, with no unchanged-state guarantee. Earlier display-based coefficient encodings shall not be accepted as equivalent machine records.
-
18. Human-readable affine composition PPL-SPEC-000938 Stream insertion shall return the supplied stream and preserve the form. It shall display nonzero homogeneous coefficients in increasing variable index order using the current variable formatter. A first singleton-minus-one coefficient shall display a leading minus; singleton-one factors shall omit the coefficient/product marker. A later minus-one coefficient shall use the separator " - "; every other later nonzero coefficient shall use " + ", displaying its interval and "*" when it is not singleton one. The nonzero constant shall follow existing variable terms with " + " and use C's display. If all coefficients are zero, the zero interval shall be displayed. A negative nonunit coefficient or constant shall retain its coefficient display rather than being rewritten into a subtraction. Coefficient display shall use the stream locale/format settings and retain the variable formatter's prerequisites. It shall not serve as the reloadable machine format. print() shall display the same form on standard error without adding a newline.
-
19. Owned vector and interval memory accounting PPL-SPEC-000939 external_memory_in_bytes() shall count allocated vector capacity in bytes and the external memory reported by every constructed coefficient interval. It shall not charge the form for shared zero storage borrowed by out-of-dimension queries. total_memory_in_bytes() shall equal the external count plus sizeof(*this). Counts shall retain the selected coefficient memory-reporting contracts and require representable aggregate byte counts; allocator bookkeeping outside those reports shall not be inferred.
-
20. Oracle-based interval enclosure and explicit refusal PPL-SPEC-000940 For a live form with supported initialized interval coefficients, intervalize() shall ask the oracle for intervals of its declared variable coordinates. When the oracle supplies valid enclosures for every requested coordinate, a true result shall set result to an interval enclosing all entry-form affine values at independently admitted coefficient and coordinate choices. A dimension-zero form shall need no coordinate query and shall return its constant interval. The form shall remain unchanged.
If a required oracle query returns false, the method shall return false and shall not claim that result establishes a complete enclosure; no prior result-value preservation shall be promised. Exceptions from the oracle or coefficient operations may propagate. The oracle shall supply initialized intervals and remain valid for the call; overlapping mutation shall follow the operation's numerical/runtime prerequisites. Rational coefficient intervals shall not require native floating-point availability.
-
Incoming link from: 4. Rounding-aware addition linearization1
21. Format-specific relative-error linear form PPL-SPEC-000941 For a form with nonempty bounded supported floating-point intervals, relative_error(format, result) shall preserve the entry dimension and replace result by a form whose coefficient at each coordinate and constant encloses the corresponding magnitude bound multiplied by [ − u, u]. The magnitude bound shall be the maximum absolute value of that entry interval's endpoints. The relative-error unit u shall be 2 − 10, 2 − 23, 2 − 52, 2 − 112 and 2 − 63 for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD and INTEL_DOUBLE_EXTENDED, respectively. It shall be 2 − 20 for IBM_SINGLE and 2 − 52 for IBM_DOUBLE.
The source shall remain unchanged unless it is also result; in that case the complete result shall still use the source's entry intervals and dimension. This operation shall construct the relative-error component; it shall not alone establish a complete floating-point linearization or supply a separate absolute error term for underflow. All evaluated boundary and interval operations shall satisfy their supported-format, rounding and representability prerequisites.
-
1. Exact strict mixed-integer feasibility witnesses PPL-SPEC-001680 A successfully completed three-argument is_mixed_integer_satisfiable shall report the exact feasibility defined by 🔗 1. Exact strict mixed-integer feasibility, preserving both inputs. True shall assign a POINT of the original ambient dimension that satisfies every original row and designated integrality restriction. False shall preserve the supplied witness. The output shall own its representation independently of the local solver.
Index validation, dimension capacity, exact normalization of integer-supported strict rows and the positive shared-slack criterion shall be those of 🔗 1. Exact strict mixed-integer feasibility. Closed systems and systems whose strict rows all have integral support shall require no auxiliary slack coordinate. With remaining strict rows, a positive optimum shall supply the maximizing point, projected off that slack coordinate; optimum zero or infeasibility shall return false. Empty systems, zero dimensions and constant rows shall retain their ordinary mathematical meanings.
The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply. The false-result preservation guarantee shall not strengthen those common guarantees for exceptions during solving, copying or output assignment.
-
1. Mixed integer constraint and dimension additions PPL-SPEC-001472 Constraint additions shall conjoin canonical admitted copies of the supplied constraints under 🔗 1. Integer-supported strict MIP admission. Unsupported continuous-support strict rows and dimension-incompatible descriptors shall raise std::invalid_argument. Dimension growth shall append unrestricted real coordinates, preserve old coordinates and reject m > max - dimension with std::length_error before adding extents. Subsequent completed queries shall refer to the modified problem; earlier results may be reused only when still valid for it.
If allocation fails during add_constraints, an already appended prefix may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall describe exactly the retained constraints, objective and integer subset. Cached non-infeasibility results invalidated by retained rows shall be recomputed; known infeasibility shall remain valid. Input descriptors shall be preserved. Rollback to the entry constraint sequence is not required.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.
-
2. Mixed integer integrality additions PPL-SPEC-001473 Adding i_vars shall union those indices into the existing integer coordinate subset. An incompatible index shall raise std::invalid_argument. Repeated addition and an empty subset shall preserve the mathematical problem. Any cached feasible or optimal point invalidated by a newly required integral coordinate shall be recomputed before a subsequent successful result is returned.
If allocation of integer-set nodes fails, indices already inserted may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall use exactly the retained integer subset; invalidated cached feasibility, optima and witnesses shall be recomputed. Known infeasibility shall remain valid. If no new index was inserted, the mathematical problem shall be preserved. The supplied index set shall be preserved. Rollback to the entry subset is not required.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.
-
3. Mixed integer objective and mode updates PPL-SPEC-001474 Setting an objective shall copy its affine expression and reject an expression dimension greater than the ambient dimension with std::invalid_argument. Setting mode shall select a valid MINIMIZATION or MAXIMIZATION value. Changes shall preserve the feasible region and invalidate optimality conclusions for a different objective or direction. Subsequent completed queries shall optimize the current objective and mode.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Reloadable mixed integer solver representations PPL-SPEC-001481 Dumping shall write the problem and incremental solver representation. Loading a complete admitted representation produced by a matching coefficient and format configuration shall replace the destination problem and preserve its constraints, integer coordinates, objective, direction and subsequent query meaning. A valid prefix may be followed by unrelated stream content. These records are trusted solver snapshots. Malformed tokens, incompatible dimensions, invalid counts or indices and structural inconsistencies between the status, extents and basis shall return false without relying on debug assertions. The loader reads the recorded tableau. An altered record can pass those checks with a tableau that fails to represent its processed constraints. The loader shall check declared tableau extents against known solver bounds before loading rows and allocate constraint storage as records are read. False shall not promise rollback or further queries. Surviving resources shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Mixed integer diagnostics, display and storage PPL-SPEC-001482 OK shall check the implemented structural and cached-feasibility invariants without proving global optimality. Display shall show constraints, objective, direction and integer coordinates, return its stream, and remain distinct from reloadable serialization. External memory shall estimate managed storage, including owned constraints and solver arrays; total memory shall add sizeof(*this). Shared or pooled storage accounting shall remain an estimate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Mixed integer satisfiability PPL-SPEC-001475 A completed is_satisfiable shall return true exactly when a point satisfies every stored constraint and designated integer restriction. True shall include feasible problems with unbounded objective. The query may update solver caches without changing the problem. If an exception interrupts a solver query, the cache shall be discarded without allocation and the original exception shall propagate. A subsequent query shall solve from the stored model. A real-relaxation witness alone shall not establish mixed integer feasibility.
Before solving the real relaxation for a pending result, check each stored equality whose nonzero variable coefficients all belong to declared integer coordinates. If the greatest common divisor of those coefficients fails to divide the constant, report infeasibility. The check shall preserve stored constraints and use exact working integers. Equalities with a nonzero coefficient on a continuous coordinate are outside this check. Use the current constraints and integer selection after model changes.
An integer search over an unbounded real relaxation may run indefinitely. Configured deterministic weight limits and supported cancellation are observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.
When the initial auxiliary objective is zero, the feasibility phase shall recognize that its upper bound is attained without pricing. Before removing basic artificial variables, it shall discard this completed objective. Cleanup pivots shall prefer a non-artificial column occurring in the fewest current tableau rows, retaining the lowest column index on a tie. Redundant rows shall be removed. These steps shall preserve the feasible point; subsequent optimization shall use the stored client objective.
When pending nonnegativity constraints permit merging split variables, the implementation shall stably remove the negative-part columns and renumber all retained basis and variable mappings. Rows losing a basic negative part shall be reported in descending original-variable order. Any such loss shall invalidate cached-point satisfaction hints for pending inequalities. Larger merge batches shall compact row indices together; small batches may retain individual removals.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
2. Mixed integer optimization outcomes PPL-SPEC-001476 A completed solve shall return UNFEASIBLE_MIP_PROBLEM exactly for an empty mixed integer feasible region, UNBOUNDED_MIP_PROBLEM for a nonempty region whose objective is unbounded in the requested direction, and OPTIMIZED_MIP_PROBLEM when a finite optimum is attained. The categories shall be mutually exclusive. Repeated queries and admissible pricing choices shall preserve the mathematical outcome; search effort or arithmetic failure shall not be reported as one of these successful conclusions. The equality divisibility check and the search and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
For a bounded coefficient profile, simplex row elimination shall evaluate complete two-product combinations and cancel the resulting row's positive common factor before coefficient admission when direct arithmetic has not been proved representable. Magnitude bounds may be reused only while their source rows remain unchanged, or updated conservatively after each combination. Such scratch shall belong to one active simplex invocation, with fresh bounds on a later invocation; it shall not become persistent problem state. After this proof, native updates may omit redundant arithmetic checks while retaining the existing row support merge and cancellation rules. When no proof is available, exact complete-row evaluation shall remain mandatory. This projective row normalization shall include constant and objective coordinates. An unrepresentable primitive row may raise the selected profile's arithmetic exception.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply. The exceptional cache-reset guarantee in 🔗 1. Mixed integer satisfiability shall apply.
-
3. Mixed integer objective evaluation PPL-SPEC-001477 Objective evaluation shall assign rational outputs numer and denom whose ratio equals the stored objective evaluated at the supplied point, including its constant term. The denominator shall be positive. The point need not be feasible or integral. A non-point generator or one with coordinate dimension greater than the problem shall raise std::invalid_argument. Missing trailing point coordinates shall mean zero. The numerator and denominator shall be coprime.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
4. Mixed integer feasible witness access PPL-SPEC-001478 feasible_point shall establish feasibility as needed and return a borrowed point satisfying every constraint and selected integrality condition. It shall be available for feasible unbounded as well as bounded problems. An infeasible problem shall raise std::domain_error. The returned point need not optimize the objective, and no particular feasible point shall be selected by this contract. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed point.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
5. Mixed integer optimal witnesses and values PPL-SPEC-001479 optimizing_point shall solve as needed and return a borrowed feasible point attaining the current optimum. optimal_value shall assign rational outputs with positive denominator whose ratio is that objective value. Both operations shall raise std::domain_error for infeasible or unbounded problems. No particular optimizing point or reduced fraction shall be promised when several representations are possible. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed optimizing point.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. Mixed integer pricing controls PPL-SPEC-001480 get_control_parameter(PRICING) shall return the current pricing choice. Setting one of PRICING_STEEPEST_EDGE_FLOAT, PRICING_STEEPEST_EDGE_EXACT or PRICING_TEXTBOOK shall select that search heuristic without changing constraints, integrality or objective. The default shall be floating steepest-edge pricing. Names and values passed to these accessors shall belong to their documented enumerations. A floating heuristic shall not weaken the exact meaning of a completed mathematical result.
Exact steepest-edge pricing shall compare the squared reduced costs divided by 1 + sum_i (tableau[i][j] / tableau[i][base[i]])^2. Equal scores shall retain the candidate with the highest column index. Candidate pruning shall exclude a column only when integer bounds prove its score strictly smaller than another candidate's; overlapping bounds shall retain exact comparison.
Floating steepest-edge pricing shall approximate the same cost-to-edge ratio. Coefficient magnitudes and normalized edge lengths outside the direct range of double shall remain comparable without infinities or NaNs in the scores. Ties in the computed floating scores shall retain the candidate with the highest column index.
When there are no eligible entering columns, both steepest-edge rules shall return zero without pricing arithmetic. When there is exactly one, they shall return its index without computing basis LCMs or edge norms, including when those intermediate calculations would exceed the coefficient range.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. Point-coordinate integrality predicate PPL-SPEC-001651 For live finite coefficients numerator and divisor, with a strictly positive divisor, coordinate_is_integral shall return true exactly when numerator ⁄ divisor ∈ ℤ. It shall preserve both arguments. Zero and negative numerators, including the minimum value of a bounded signed coefficient type, shall be admitted. The predicate shall not require the quotient or the absolute numerator to be representable as a coefficient. It shall not construct quotient or GCD coefficient objects, own scratch containers, or introduce floating-point arithmetic. first_fractional_coordinate(point,variables) shall require a valid point with a positive divisor and selected indices within its dimension. It shall preserve its inputs and return the least selected index having a nonintegral coordinate, or not_a_dimension() when all selected coordinates are integral. An empty selection and divisor one shall yield that sentinel. The scan shall check early selected coordinates before sparsity admission, skip only zero coordinates, and retain an ordinary scan for dense suffixes. It shall allocate no scratch containers and shall be used by optimization, heuristic-disabled feasibility, and the cached integer-witness invariant check.
Coefficient objects and their backend allocation/lifetime facilities shall satisfy the applicable conditions of 🔗 1. Optimization and ranking valid use.
-
8. Fractional branching-variable selection PPL-SPEC-001652 choose_branching_variable shall inspect the cached rational point of mip and the variable indices in i_vars without changing either. The cached point shall be valid, have mip.space_dimension() coordinates, and satisfy the input constraints. The helper shall be called at a solver state where this cached point and these input rows are meaningful; it shall not require the tableau to determine this selection. Every index in i_vars shall belong to the ambient dimension. Scalar arithmetic and synchronization shall satisfy 🔗 1. Optimization and ranking valid use.
Let C be the indices in i_vars whose cached coordinates are not integers. If C = ⌀, the helper shall return true and preserve branching_index. Otherwise it shall return false and assign a member of C. When |C| = 1, that member shall be selected without evaluating constraint-appearance scores.
For more than one candidate, an active input row shall be an equality or an inequality saturated by the cached point. A candidate's score shall be the number of active input rows having a nonzero coefficient at that candidate. Rows shall contribute individually, including repeated rows. Coefficients beyond a row's dimension and constant terms shall not contribute. The helper shall select a maximum-score candidate, choosing the greatest variable index when scores tie, including when all scores are zero. Dense and sparse row representations shall have the same selection semantics.
-
1. Integer-supported strict MIP admission PPL-SPEC-001668 A strict row ax + b > 0 shall be admitted by MIP_Problem construction and insertion exactly when every coordinate with nonzero coefficient in a is in the declared integer subset. Unused continuous coordinates shall not prevent admission. Constructors without an integer subset shall therefore admit only strict constant rows. Dimension validation shall precede normalization. Unsupported support shall raise std::invalid_argument.
Under the arithmetic preconditions, the admitted row shall be stored as an integer-equivalent closed row. For positive homogeneous GCD g, its meaning shall be (a ⁄ g)x ≥ ⌊ − b ⁄ g⌋ + 1; constant rows shall retain their truth value. Constraint views and reloadable storage shall expose these canonical closed rows in admitted input order. Integer declarations shall restrict the selected coordinates to integers. Optimization results and witnesses shall satisfy 🔗 2. Mixed integer optimization outcomes, 🔗 4. Mixed integer feasible witness access and 🔗 5. Mixed integer optimal witnesses and values.
Single-row validation/conversion failure shall not append a row. Bulk strict support validation and conversion shall complete before any row is appended. A later allocation failure may leave an appended prefix with provisional solution state; known infeasibility shall remain valid. Input descriptors shall be preserved.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
1. Exact strict mixed-integer feasibility PPL-SPEC-001669 A successfully completed is_mixed_integer_satisfiable(cs, integer_dimensions) shall return true exactly when {x ∈ Rn ∣ cs(x), xi ∈ Z for selected i} is nonempty, where n is the system's ambient dimension. Other coordinates shall remain real, and every strict boundary shall retain its membership meaning. The inputs shall be preserved.
A selected index outside that dimension shall raise std::invalid_argument. The ordinary MIP dimension limit shall apply. If a strict row depends on a continuous coordinate, one additional continuous coordinate shall be required; insufficient dimension capacity shall raise std::length_error. Integer-supported strict rows shall use exact closed normalization without requiring that extra coordinate. Empty selections, empty systems, zero dimensions and constant rows shall retain their mathematical meanings.
For remaining strict rows aix + bi > 0, feasibility shall be decided by a shared continuous slack s, with aix + bi ≥ s, 0 ≤ s ≤ 1, and exact maximization of s. Integer indices shall remain unchanged and shall exclude s. Infeasibility or optimum zero shall yield false; a positive exact optimum shall yield true. This interface shall not optimize an arbitrary user objective over an open feasible set.
The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
1. Strict-row support and admission kernels PPL-SPEC-001671 mip_strict_support_is_integral shall return true exactly when all nonzero visible variable coefficients of the supplied row of any relation refer to indices in the supplied integer subset. It shall ignore the constant, hidden NNC epsilon coordinate and zero coefficients, without changing either input.
For an integer-supported strict row, mip_closed_integral_strict shall produce the closed equivalent defined in 🔗 1. Integer-supported strict MIP admission, handling constant truth values separately. Its GCD, quotient and adjustment operations shall satisfy the selected exact arithmetic profile's intermediate-value preconditions. Inputs shall retain their value.
add_integral_strict_constraint requires dimension compatibility and a strict input. It shall validate support, convert, append and invalidate any cached non-infeasibility conclusion. Validation, conversion or pre-append allocation failure shall preserve the model.
add_integral_strict_constraints requires dimension compatibility and a system containing strict rows. It shall validate and convert all strict rows before appending any source row. Conversion failure shall preserve the model; subsequent append failure may leave a prefix with provisional solution state. Both helpers shall preserve known infeasibility.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
Incoming link from: 2. Exact general strict mixed-integer optimization1
1. Uniform strict-margin denominator PPL-SPEC-001681 strict_margin_denominator(cs, integers, continuous) shall require valid input rows, in-range integer indices and a sorted complete list of the other coordinates. At least one strict row shall depend on a continuous coordinate. Missing trailing row coordinates shall have coefficient zero.
Let k count continuously supported strict rows and let Sj = max(1, ∑ia2ij) for each listed continuous column. The result shall be D = ⌈√((k + 2)∏jSj)⌉. The norm sums, product, square root and ceiling shall use exact GMP integers. For each nonempty fiber obtained by fixing the designated integer coordinates, a strict witness shall exist with every continuously supported strict row ei ≥ 1 ⁄ D while satisfying all other rows.
GMP coefficients shall admit the exact result without a fixed integer bound. For bounded signed coefficients, a positive result beyond the configured maximum shall raise std::overflow_error before narrowing it, including in native configurations. Inputs shall be preserved. Resource and other common failure conditions shall be those of 🔗 1. Optimization and ranking valid use.
-
2. Exact general strict mixed-integer optimization PPL-SPEC-001682 optimize_mixed_integer shall interpret the input constraints, integer subset, affine objective and valid minimization/maximization mode over the original strict feasible set. The scalar output objects shall be distinct. An integer index or objective dimension outside the system's ambient dimension shall raise std::invalid_argument. The inputs shall be preserved.
A successfully completed query shall report a Mixed_Integer_Optimization_Status that distinguishes: INFEASIBLE (no original feasible point), UNBOUNDED (feasible and unbounded in the requested direction), ATTAINED (finite attained optimum), and UNATTAINED (finite supremum/infimum that is not attained). Both finite results shall assign the exact value as numerator/denominator with positive denominator and a generator of the original ambient dimension. An attained result shall return a POINT satisfying every original row and integer restriction at that value. An unattained result shall return a CLOSURE_POINT at that value, satisfying the weakened rows and belonging to the closure of a nonempty original fiber at the returned integer coordinates. Infeasible and unbounded results shall preserve all three outputs. The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.
A constant objective shall use 🔗 1. Exact strict mixed-integer feasibility witnesses and shall be attained exactly when the original set is nonempty. Without continuously supported strict rows, the ordinary MIP model and exact integral-strict normalization shall provide the result without a witness-coordinate copy or margin bound.
Otherwise let r be the number of continuous coordinates. Insufficient MIP capacity for n + r coordinates shall raise std::length_error before allocating the coordinate map. Use D from 🔗 1. Uniform strict-margin denominator to construct a closed model with original coordinates for a limit and copied continuous coordinates for a strict witness, sharing exactly the original integer coordinates. Insert integer-supported rows once, normalizing their strict forms. On the limit coordinates weaken the remaining strict rows. On witness coordinates replace each strict row by Dei ≥ 1, preserving weak rows and equalities. Optimize the original objective on the limit coordinates. For a finite bound p ⁄ q, test the original strict system with the equality qf = p using 🔗 1. Exact strict mixed-integer feasibility witnesses. Success shall supply the optimizing point; failure shall supply the projected limit as a closure point.
The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply to all intermediate computations and output assignments. Arithmetic/range and resource exceptions shall not be mathematical statuses. Terminal-status output preservation shall not imply rollback after such exceptions.
-
1. Mixed integer problem values PPL-SPEC-001467 A problem of dimension n shall denote the points in Rn satisfying its stored equalities and non-strict inequalities, with coordinates in integer_space_dimensions() restricted to integers. Other coordinates shall remain unrestricted real coordinates. The objective shall be an affine linear expression, including its constant term. The mode shall select minimization or maximization. Stored constraints shall retain their mathematical meaning independently of subsequent source mutations.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Trivial mixed integer construction and dimensions PPL-SPEC-001468 Construction from dim shall create a problem with no explicit constraints or integer coordinates, zero objective and maximization mode. The default dimension shall be zero. Dimension queries shall report its ambient extent and the supported maximum. An extent greater than the maximum, including the reserved non-dimension value, shall raise std::length_error.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
3. Mixed integer construction from constraints PPL-SPEC-001469 System construction shall copy its canonical admitted constraints, objective and mode. Range construction shall copy the constraints in the valid half-open input range; the overload with int_vars shall additionally select those integer coordinates. Omitted objectives and modes shall mean zero and maximization.
The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. It shall additionally provide operator-> for constraint metadata. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.
An excessive ambient dimension shall raise std::length_error. Strict rows shall follow 🔗 1. Integer-supported strict MIP admission. Unsupported strict support or constraint, objective or integer-coordinate dimensions greater than dim shall raise std::invalid_argument. Failed construction shall release every constraint copy already acquired.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Mixed integer copying, exchange and reset PPL-SPEC-001470 Copying and assignment shall preserve the mathematical problem and permit independent later mutation and solving. Assignment shall return the receiver and support self-assignment. Exchange shall swap the complete problem and solver state; self-exchange shall preserve the value. clear shall reset to the zero-dimensional trivial problem. Destruction shall release owned constraints and solver storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Mixed integer descriptor views and iterators PPL-SPEC-001471 Descriptor accessors shall expose the stored objective, optimization mode and integer-coordinate subset. Constraint iterators shall expose const canonical admitted constraints in insertion order, as defined by 🔗 1. Integer-supported strict MIP admission, and support random-access movement, difference, dereference and comparison within the same live sequence. The end position shall not be dereferenced. Iterator arithmetic shall stay within that sequence and its end. Mutations that reallocate, clear, exchange or replace storage may invalidate borrowed views and iterators.
Default-constructed constraint iterators shall be singular and compare equal to one another. They shall support copying, assignment and destruction; dereference and movement require assignment from a valid iterator first. The constraint iterator shall satisfy the C++20 bidirectional-iterator and sized-sentinel concepts, permitting standard range adapters and algorithms.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming links from: 4. Rounding, result classes and state for finite native binary arithmetic 2. Delegated and exactness native integral conversion to native floating point 2. Delegated and exactness native integral conversion to native floating point 2. Delegated and exactness native integral conversion to native floating point 2. Delegated and exactness native integral conversion to native floating point 3. Exact native floating-point assignment to the same or a wider native format 4. Directed narrowing between finite native floating-point formats 6. Range limits in conversion of finite native scalars to floating point 2. Mixed finite floating and exact scalar ordering9
1. Directed native integral conversion to native floating-point storage PPL-SPEC-000341 The destination shall be a configured supported native floating-point type F in 🔗 1. Supported exact integer and rational conversion to native floating storage, or Checked_Number<F, Check_Overflow_Policy<F>>. The source shall be one of the eleven native integral types in 🔗 1. Exact conversion between native and checked integral scalars, or its Checked_Number<I, Check_Overflow_Policy<I>> wrapper, with integer value a. It shall be independent of the configured Coefficient alias.
Within the destination finite range, ROUND_DOWN shall assign the greatest representable value no greater than a; ROUND_UP shall assign the least representable value no less than a. Exactly representable integers shall preserve their values. Source-range crossings shall follow 🔗 6. Range limits in conversion of finite native scalars to floating point. Zero shall produce positive zero.
Let p be std::numeric_limits<F>::digits and w the native source type's object width CHAR_BIT * sizeof(I). When p > w, conversion shall return V_EQ under every directed/strict request and shall require no particular hardware rounding direction. Otherwise, downward conversion shall return V_GE and upward conversion V_LE without the strict flag. With that flag and available definite native inexact information, an exact result shall return V_EQ and an inexact result V_GT downward or V_LT upward. If definite inexact information is unavailable, the corresponding weak relation shall be returned. These potentially inexact directed conversions shall require upward hardware rounding and shall preserve that direction.
The destination shall be live and assignable, and a distinct source shall remain unchanged. Callers shall synchronize access against concurrent object mutation. Floating-point exceptions shall be nontrapping; accrued flags shall be unspecified. Native conversions using FPU control or inexact queries shall require an available backend. On IA-32 backends using SSE, runtime SSE detection shall have completed before those facilities are used, through 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization or fpu_initialize_control_functions(). C99-fenv and SPARC backends shall require no library or thread initialization object. No coefficient-constant stage or shared numerical temporary pool shall be required. The _r interface shall return the conversion result without policy-handler dispatch.
-
2. Delegated and exactness native integral conversion to native floating point PPL-SPEC-000342 For the integral source/destination types in 🔗 1. Directed native integral conversion to native floating-point storage, ROUND_IGNORE shall use the current hardware rounding direction to convert a. Within finite range it shall use the nearest allowed destination value in that direction; nearest-even hardware mode shall resolve exact midpoints toward an even significand. Range behavior shall follow 🔗 6. Range limits in conversion of finite native scalars to floating point. ROUND_NOT_NEEDED shall require the source integer to be exactly representable as a finite destination value and shall assign that value.
When p > w as defined in 🔗 1. Directed native integral conversion to native floating-point storage, all these requests shall return V_EQ. Otherwise, an unflagged delegated request shall return V_LGE. A strict delegated request with definite native inexact information shall return V_EQ for an exact result and V_NE for an inexact result; if that information is unavailable it shall return V_LGE. An unflagged no-rounding-needed request shall return V_EQ in an assertion-enabled build and may return lazy V_LGE in a build defining NDEBUG. A strict no-rounding-needed request shall retain its exact-representability precondition and return V_EQ.
Unflagged delegated and no-rounding-needed requests shall require no particular current hardware direction and shall preserve it. A strict delegated request that uses inexact queries shall require upward hardware direction and preserve it. Source/destination validity, synchronization, backend setup, initialization independence, exception conditions and result-returning behavior shall follow 🔗 1. Directed native integral conversion to native floating-point storage.
-
Incoming link from: 4. Directed narrowing between finite native floating-point formats1
3. Exact native floating-point assignment to the same or a wider native format PPL-SPEC-000343 The source and destination shall be raw or Checked_Number<T, Check_Overflow_Policy<T>> instances of configured supported native floating-point types. The source shall be finite. When sizeof(From_native) <= sizeof(To_native) and the configured destination format contains every finite source value exactly, assign_r shall preserve the represented value and return V_EQ for every base direction, with or without ROUND_STRICT_RELATION. Either signed zero shall retain its sign. This shall include same-format assignments and native double/long double formats having equal precision and storage size.
Source and destination may be the same object or share storage through a checked object's raw-value reference when their native types agree. The conversion shall use the source entry value. A source with distinct storage shall remain unchanged, and later destination mutation shall not affect it. No particular hardware rounding direction, native inexact query, library or thread initialization object, coefficient-constant stage or shared numerical temporary pool shall be required. Calls shall preserve hardware direction. Destination validity, object synchronization, availability, exception conditions and result-returning behavior shall follow 🔗 1. Directed native integral conversion to native floating-point storage.
-
4. Directed narrowing between finite native floating-point formats PPL-SPEC-000344 For configured native source/destination formats and raw or checked types in 🔗 3. Exact native floating-point assignment to the same or a wider native format with sizeof(From_native) > sizeof(To_native), the source shall be finite with exact represented value a. When a lies within destination finite range, ROUND_DOWN shall assign the greatest representable value no greater than a; ROUND_UP shall assign the least representable value no less than a. This shall include transitions between normal, subnormal and signed-zero values. A zero result shall retain the source's sign. Source-range crossings shall follow 🔗 6. Range limits in conversion of finite native scalars to floating point.
Without ROUND_STRICT_RELATION, downward conversion shall return V_GE and upward conversion V_LE, even for an exactly representable source. With the flag and definite native inexact information, it shall return V_EQ for exactness, V_GT for an inexact downward result and V_LT for an inexact upward result. When definite inexact information is unavailable, it shall return the corresponding weak relation.
These directed conversions shall require upward hardware rounding and shall preserve that direction. The source shall remain unchanged and the destination shall be live and assignable. Object synchronization, backend setup, availability, initialization independence, exception conditions and result-returning behavior shall follow 🔗 1. Directed native integral conversion to native floating-point storage.
-
5. Delegated and exactness native floating-point narrowing PPL-SPEC-000345 For the narrowing source/destination types in 🔗 4. Directed narrowing between finite native floating-point formats, ROUND_IGNORE shall convert the source's finite represented value using the current hardware direction. The nearest-even mode shall resolve exact midpoints toward an even significand. A zero result shall retain the source's sign. Source-range crossings shall follow 🔗 6. Range limits in conversion of finite native scalars to floating point. ROUND_NOT_NEEDED shall require a source value exactly representable as a finite destination value and shall preserve that value and zero sign.
An unflagged delegated request shall return V_LGE. With the strict flag and definite native inexact information, it shall return V_EQ for an exact result and V_NE for an inexact result; unavailable inexact information shall give V_LGE. An unflagged no-rounding-needed request shall return V_EQ in an assertion-enabled build and may return lazy V_LGE in a build defining NDEBUG. A strict no-rounding-needed request shall retain its exact-representability precondition and return V_EQ.
Unflagged delegated and no-rounding-needed requests shall admit every current hardware direction and preserve it. A strict delegated request using native inexact queries shall require upward hardware direction and preserve it. Source/destination validity, source preservation, synchronization, backend setup, availability, initialization independence, exception conditions and result-returning behavior shall follow 🔗 4. Directed narrowing between finite native floating-point formats.
-
Incoming links from: 4. Rounding, result classes and state for finite native binary arithmetic 1. Directed native integral conversion to native floating-point storage 2. Delegated and exactness native integral conversion to native floating point 4. Directed narrowing between finite native floating-point formats 5. Delegated and exactness native floating-point narrowing5
6. Range limits in conversion of finite native scalars to floating point PPL-SPEC-000346 For the native scalar conversions in 🔗 1. Directed native integral conversion to native floating-point storage and 🔗 4. Directed narrowing between finite native floating-point formats, let M be the destination's maximum finite value and let a be a finite source outside [ − M, M]. For a > M, downward conversion shall assign M and upward conversion positive infinity. For a < − M, upward conversion shall assign − M and downward conversion negative infinity.
Delegated conversion shall use the current hardware direction. Toward-zero mode shall choose the finite endpoint; directed modes shall choose the corresponding endpoint or infinity above. In nearest-even mode, let u = 2emax − p be the last finite binade's spacing, where std::numeric_limits<F>::max_exponent is emax and destination precision is p. A magnitude below M + u ⁄ 2 shall choose the finite endpoint; a magnitude at or above that threshold shall choose the corresponding infinity.
Every finite computed endpoint shall have class VC_NORMAL and shall use the weak/strict relation of its conversion request. Every computed positive infinity shall have class VC_PLUS_INFINITY and every computed negative infinity VC_MINUS_INFINITY, with the corresponding conversion relation. These native infinities shall be representable, without V_UNREPRESENTABLE. The conversion shall not promise an integer-overflow annotation for a finite directed endpoint. No-rounding-needed requests shall retain their finite exact-representability precondition and shall not admit these source values. Object, state, availability and backend prerequisites shall follow the applicable conversion above.
-
Incoming link from: 4. Checked named product accumulation1
1. Native integer accumulated products and intermediate overflow PPL-SPEC-000842 For the eleven native integer storage types and same-storage raw/checked forms in 🔗 1. Exact same-storage native integer arithmetic, entry values d, a and b shall denote the destination and two sources. When the product p = ab and complete expression are within the destination policy's finite interval, add_mul_assign_r shall assign d + p and sub_mul_assign_r shall assign d − p. They shall return V_EQ for each valid rounding request, including a strict relation flag.
When overflow checking is enabled and p is finite and representable, an unrepresentable final sum or difference shall have the range outcome of 🔗 4. Checked native arithmetic range outcomes. An unrepresentable product may cause an intermediate-overflow failure even if cancellation would bring the complete expression into range. V_UNKNOWN_NEG_OVERFLOW and V_UNKNOWN_POS_OVERFLOW shall identify the sign of that intermediate product overflow and promise no numeric answer. If the destination policy admits NaN, such a diagnostic shall leave its NaN representation; otherwise its payload shall be unspecified and reusable. No exactness, infinity or finite-result meaning shall be inferred from that payload.
An intermediate overflow may instead yield the range outcome of 🔗 4. Checked native arithmetic range outcomes when the complete expression is outside the finite interval. Every reported relation shall describe the complete expression's ordering relative to its reported computed value; an intermediate overflow shall not justify a false final-result relation. A successful finite answer shall equal the complete expression, including if an implementation recovers it after an intermediate range limit. No wider or fused accumulator shall be required.
With overflow checking disabled, both product and final expression shall be finite and representable. ROUND_NOT_NEEDED shall require those same two representability conditions. Entry values shall be finite for their own policies and lie in the destination policy's finite interval. The finite interval and raw destination policy shall follow 🔗 1. Exact same-storage native integer arithmetic.
The destination may be either source, the sources may share an object, and all arguments may be the same object. Each occurrence shall use its entry value, including the initial destination. Distinct sources shall remain unchanged. Calls shall require no rounding default or result handler and shall not invoke a handler. Live-object, synchronization, initialization and hardware-direction prerequisites shall follow 🔗 1. Exact same-storage native integer arithmetic. Configured coefficient convenience operations shall retain 🔗 6. Integral product accumulation and subtraction.
-
Incoming links from: 1. Same-storage checked compound arithmetic 1. Native integer accumulated products and intermediate overflow 1. Native integer accumulated products and intermediate overflow 1. Native integer accumulated products and intermediate overflow 2. Directed native integer division and delegated truncation 2. Directed native integer division and delegated truncation 3. Exact native truncated quotient and remainder 3. Exact native truncated quotient and remainder 4. Checked native arithmetic range outcomes 4. Checked native arithmetic range outcomes 1. Bounded native integer Bezout assignment 1. Bounded native integer Bezout assignment 1. Native integer arithmetic with exact powers of two 1. Native integer arithmetic with exact powers of two 2. Directed native integer division by powers of two 2. Directed native integer division by powers of two 3. Centered and nonnegative native integer dyadic residues 3. Centered and nonnegative native integer dyadic residues 1. Directed native integer square-root assignment 1. Directed native integer square-root assignment 2. Native integer greatest common divisor and least common multiple 2. Native integer greatest common divisor and least common multiple 1. Native integer floor, ceiling and truncation identity 1. Native integer floor, ceiling and truncation identity 2. Native integer negation and absolute value 2. Native integer negation and absolute value 11. Native integer overflow primitives 1. Policy-dependent native integer classification 1. Typed special-marker assignment to native integer storage 1. Typed special-marker assignment to native integer storage30
1. Exact same-storage native integer arithmetic PPL-SPEC-000831 For each of the eleven standard native integer storage types I, add_assign_r, sub_assign_r and mul_assign_r shall assign the exact mathematical sum, difference and product of their entry operands when the result is within the destination's finite range. They shall return V_EQ for each valid rounding direction, with or without ROUND_STRICT_RELATION. A rounding request shall not introduce a fractional approximation to an integer sum, difference or product.
Each argument shall have underlying storage type I, either as a raw integer or an admitted Checked_Number<I, Policy>. Entry operands shall be finite for their own source policies and lie in the destination policy's finite interval. That interval shall account for reserved representations as specified by 🔗 1. Bounded checked integer limits and reserved endpoints. A raw destination shall use the full native integer interval and overflow checking; a checked destination shall use its selected policy. If checking is disabled, the exact operation result shall be within that finite interval. Enabled range checking shall have the additional outcomes of 🔗 4. Checked native arithmetic range outcomes.
The output may alias either input, the two read-only inputs may alias each other, and all three arguments may be the same object. Every occurrence in the mathematical expression shall use its entry value. Distinct source objects shall remain unchanged. Named calls shall require no rounding default or result handler and shall not dispatch a handler. Objects shall be live and access overlapping mutation shall be synchronized. Calls shall require no library initialization, coefficient-constant stage or FPU setup and preserve hardware direction. Configured coefficient operators shall retain 🔗 3. Exact ordinary integral coefficient arithmetic; unbounded integer arithmetic shall retain 🔗 1. Exact named arithmetic on unbounded integer storage.
-
2. Directed native integer division and delegated truncation PPL-SPEC-000832 For argument types, entry-operand finite ranges and lifetime/alias prerequisites from 🔗 1. Exact same-storage native integer arithmetic, let the divisor b be nonzero and let q = a ⁄ b be the exact rational quotient. div_assign_r with ROUND_DOWN shall assign ⌊q⌋; with ROUND_UP it shall assign ⌈q⌉. A successful result shall give a relation containing the exact ordering of q relative to the stored integer. With ROUND_STRICT_RELATION, it shall identify precisely equality, strict greater-than or strict less-than through V_EQ, V_GT or V_LT.
ROUND_IGNORE shall store the quotient truncated toward zero and may return a relation containing equality and either strict order. A strict request shall identify the exact relation between q and that stored integer. ROUND_NOT_NEEDED shall require an exact representable quotient; it shall store that quotient and return a relation admitting equality. A strict exactness request shall return V_EQ. An out-of-range quotient shall follow 🔗 4. Checked native arithmetic range outcomes when checking is enabled, and shall be outside the unchecked successful-result precondition otherwise.
Quotient rounding and relation classification shall use entry operands even if the destination aliases the dividend or divisor. Sources not sharing the destination shall remain unchanged. Calls shall retain the handler, initialization, synchronization and hardware-direction conditions of 🔗 1. Exact same-storage native integer arithmetic.
-
3. Exact native truncated quotient and remainder PPL-SPEC-000833 For the same-storage finite operands and prerequisites of 🔗 1. Exact same-storage native integer arithmetic and a nonzero divisor b, idiv_assign_r shall assign the exact integer t = trunc(a ⁄ b) and rem_assign_r shall assign r = a − tb. For representable results, both shall return V_EQ for every valid rounding request, with or without ROUND_STRICT_RELATION. The named integer quotient shall not change to a floor or ceiling when the direction changes.
The identity a = tb + r shall hold mathematically. A nonzero remainder shall have the dividend's sign and satisfy |r| < |b|. Unsigned remainders shall be nonnegative. In particular, a signed minimum integer's remainder modulo -1 shall be exactly zero even when the corresponding positive quotient is outside storage range. The quotient's checked range outcome shall follow 🔗 4. Checked native arithmetic range outcomes; the remainder shall not require that quotient to be representable as an intermediate native integer.
Each operation shall permit every alias described by 🔗 1. Exact same-storage native integer arithmetic, using entry operands and preserving distinct sources. Its handler, initialization, synchronization and hardware-direction conditions shall follow that contract. ROUND_NOT_NEEDED shall require the selected operation's own integer result to be representable; it shall not require a ⁄ b itself to be integral when requesting the truncated quotient or remainder.
-
Incoming links from: 1. Same-storage checked compound arithmetic 2. Checked named remainder and exact quotient 1. Native integer accumulated products and intermediate overflow 1. Native integer accumulated products and intermediate overflow 1. Exact same-storage native integer arithmetic 2. Directed native integer division and delegated truncation 3. Exact native truncated quotient and remainder 1. Native integer arithmetic with exact powers of two 3. Centered and nonnegative native integer dyadic residues 3. Centered and nonnegative native integer dyadic residues 2. Native integer greatest common divisor and least common multiple 2. Native integer greatest common divisor and least common multiple 2. Native integer negation and absolute value 2. Native integer negation and absolute value 11. Native integer overflow primitives15
4. Checked native arithmetic range outcomes PPL-SPEC-000834 For native integer operations in 🔗 1. Exact same-storage native integer arithmetic, 🔗 2. Directed native integer division and delegated truncation and 🔗 3. Exact native truncated quotient and remainder, an overflow-checking destination shall detect an exact requested integer outside its finite interval rather than report a wrapped integer as successful exact arithmetic. For directed division the requested integer shall be its floor or ceiling; for delegated division it shall be its truncated quotient. Inputs shall satisfy the same-storage and finite entry-range conditions of those contracts. ROUND_NOT_NEEDED shall require exact representability and therefore exclude a range failure, with or without a strict flag.
For an exact integer below the finite lower endpoint, ROUND_UP shall store that endpoint and return V_LT_INF. ROUND_DOWN or ROUND_IGNORE shall return V_GT_MINUS_INFINITY, storing negative infinity if the destination policy admits it; otherwise the result shall add V_UNREPRESENTABLE. For an exact integer above the upper endpoint, ROUND_DOWN shall store that endpoint and return V_GT_SUP. ROUND_UP or ROUND_IGNORE shall return V_LT_PLUS_INFINITY, storing positive infinity if admitted; otherwise the result shall add V_UNREPRESENTABLE. A strict-relation flag shall not change these range outcomes. These codes shall describe the mathematical operation result relative to the endpoint or extended stored value.
When unrepresentability is reported, no numerical payload or rollback shall be promised, but the destination shall remain assignable and destructible. A range outcome shall not invoke a policy handler or automatically throw an overflow exception. Distinct source objects shall remain unchanged, and the aliasing, initialization, synchronization and hardware-direction conditions of 🔗 1. Exact same-storage native integer arithmetic shall continue to apply. A checked policy with overflow checking disabled shall not receive these detection guarantees.
-
1. Bounded native integer Bezout assignment PPL-SPEC-000843 For finite native integer source entry values a and b, gcdext_assign_r shall assign a nonnegative greatest common divisor g and integer coefficients s, t satisfying as + bt = g. For two zero sources, g shall be zero. No unique coefficient pair shall be required, including for zero, equal or opposite sources. The operation shall return V_EQ for each valid rounding request, including strict and exactness requests.
All arguments shall have the same one of the eleven native integer storage types I. The three outputs shall either all be raw I or all have the same admitted Checked_Number<I, Policy> type; either source may be raw I or that checked type. Source values shall be finite for their own policies and in the output policy's finite interval. The output interval and raw destination policy shall follow 🔗 1. Exact same-storage native integer arithmetic.
Both source absolute values, each evaluated Euclidean quotient, coefficient, product and difference, and the final outputs shall be finite and representable in the selected output interval. These conditions shall apply even when overflow checking is enabled: native intermediate expressions shall not promise a checked-overflow result. Unsigned storage shall admit only computations whose coefficients and evaluated intermediates remain nonnegative and representable. Existence of some mathematical Bezout pair alone shall not imply these bounded computation prerequisites. Configured coefficient convenience operations shall retain 🔗 5. Extended integral greatest common divisor; unbounded integer forms shall retain 🔗 2. Exact unbounded integer Bezout coefficients.
The three outputs shall be pairwise distinct and distinct from both sources. The sources may be the same object and shall remain unchanged. No other aliasing shall be admitted. Calls shall require no rounding default or result handler and shall not invoke a handler. Live-object, synchronization, initialization and hardware-direction prerequisites shall follow 🔗 1. Exact same-storage native integer arithmetic.
-
Incoming link from: 5. Checked named scaling by powers of two1
1. Native integer arithmetic with exact powers of two PPL-SPEC-000837 For the eleven standard native integer storage types and same-storage raw/checked forms in 🔗 1. Exact same-storage native integer arithmetic, let m = 2e for an unsigned int exponent e. add_2exp_assign_r, sub_2exp_assign_r and mul_2exp_assign_r shall assign the exact mathematical integers x + m, x − m and xm when those results lie in the destination policy's finite interval. Each shall return V_EQ for every valid rounding request, including a strict flag.
With overflow checking enabled, all unsigned exponent values shall be admitted. A checked result outside the finite interval shall have the endpoint, extended-value or unrepresentability outcome of 🔗 4. Checked native arithmetic range outcomes. In particular, zero multiplied by any such power shall remain exact zero, without requiring the power to fit native storage. ROUND_NOT_NEEDED shall require a representable result.
For unchecked add/subtract, both the power and the exact result shall be representable in native I and the result shall be finite for the selected policy. For unchecked multiplication, the exponent shall be less than the native storage width in bits and the exact result shall be finite and representable. These preconditions shall apply even to a zero source when an unchecked implementation forms a native shift.
The source and destination may be the same object. Calculations shall use entry source values and preserve distinct sources. No rounding default or handler shall be required or invoked. Object lifetime, synchronization, initialization and hardware-direction conditions shall follow 🔗 1. Exact same-storage native integer arithmetic. The mathematical definition shall not impose an intermediate native limit on a checked operation's power of two.
-
Incoming link from: 5. Checked named scaling by powers of two1
2. Directed native integer division by powers of two PPL-SPEC-000838 For the same-storage finite entry values and prerequisites in 🔗 1. Exact same-storage native integer arithmetic, div_2exp_assign_r shall divide the exact integer source by 2e, for every unsigned int exponent e. ROUND_DOWN shall store its floor, ROUND_UP its ceiling and ROUND_IGNORE its truncation toward zero. Every stored result shall be finite and representable. No exponent shall cause an invalid native shift, including one equal to or greater than the storage width.
A successful result shall report a relation containing the exact rational quotient's ordering relative to the stored integer. With ROUND_STRICT_RELATION it shall return precisely V_EQ, V_GT or V_LT for equality, an exact quotient greater than the stored result, or one smaller than it. ROUND_NOT_NEEDED shall require exact divisibility by 2e; it shall store the exact quotient and return a relation admitting equality. Its strict form shall return V_EQ.
An exponent of zero shall preserve the integer value. For exponents greater than the storage width, a nonzero positive source shall have floor zero and ceiling one; a negative source shall have floor minus one and ceiling zero. Delegated truncation shall give zero in both cases. Zero shall remain zero for every exponent. Source aliases, preservation, handler independence, initialization, synchronization and hardware-direction conditions shall follow 🔗 1. Exact same-storage native integer arithmetic.
-
Incoming link from: 4. Outward endpoint residues modulo powers of two1
3. Centered and nonnegative native integer dyadic residues PPL-SPEC-000839 For the same-storage finite entry operands and prerequisites in 🔗 1. Exact same-storage native integer arithmetic, let m = 2e, where e is any unsigned int exponent. umod_2exp_assign_r shall assign the unique integer u with 0 ≤ u < m and x − u divisible by m. smod_2exp_assign_r shall assign s = u when 2u < m, and s = u − m otherwise. The centered interval shall therefore be [ − m ⁄ 2, m ⁄ 2); an exact half-modulus tie shall select its negative representative. Exponent zero shall give zero for both operations.
A representable finite residue shall return V_EQ for every valid rounding request, including strict requests. The rounding direction shall not choose a different residue convention. When checking is enabled, a residue outside the policy's finite interval shall instead have the range outcome of 🔗 4. Checked native arithmetic range outcomes, using that residue as the exact requested integer. Reserved infinity/NaN representations shall not be reported as successful finite residues. This shall include negative centered residues in unsigned storage and nonnegative signed-storage residues crossing a policy-reserved upper endpoint.
Unchecked calls shall require the selected residue to be finite and representable. ROUND_NOT_NEEDED shall require representability, with or without a strict flag. No exponent shall cause an invalid native shift. The source and destination may alias, and a distinct source shall remain unchanged. Handler independence, output reusability after an unrepresentable range outcome, initialization, lifetime, synchronization and preserved hardware direction shall follow 🔗 1. Exact same-storage native integer arithmetic and 🔗 4. Checked native arithmetic range outcomes.
-
Incoming link from: 6. Checked named nonnegative square root1
1. Directed native integer square-root assignment PPL-SPEC-000840 For the eleven standard native integer storage types and same-storage raw/checked forms in 🔗 1. Exact same-storage native integer arithmetic, a finite nonnegative source x shall be admitted by sqrt_assign_r. ROUND_DOWN shall store ⌊√(x)⌋; ROUND_UP shall store ⌈√(x)⌉. ROUND_IGNORE shall use the floor convention. The result shall be finite and representable, including when forming its mathematical square or its successor's square would exceed native storage.
The returned relation shall contain the exact nonnegative real square root's ordering relative to the stored integer. With ROUND_STRICT_RELATION it shall identify exactly equality, strict greater-than or strict less-than through V_EQ, V_GT or V_LT. ROUND_NOT_NEEDED shall require a perfect-square source, store its exact integer root and return a relation admitting equality; its strict form shall return V_EQ. Zero and one shall have their exact roots. No negative-input rejection guarantee shall be inferred from the nonnegative domain.
The source and destination may be the same object; distinct sources shall remain unchanged. Calls shall require no rounding default, policy handler, floating-point conversion, FPU setup, irrational-precision setting or library initialization. They shall not invoke a result handler and shall preserve hardware direction. Live-object and synchronization prerequisites shall follow 🔗 1. Exact same-storage native integer arithmetic.
-
2. Native integer greatest common divisor and least common multiple PPL-SPEC-000841 For the same-storage finite entry operands and prerequisites in 🔗 1. Exact same-storage native integer arithmetic, gcd_assign_r shall assign the nonnegative integer g = gcd(a, b). Two zero sources shall give zero; one zero source shall give the other source's absolute value. lcm_assign_r shall give zero when either source is zero, without requiring a representable absolute value of the other source. Otherwise it shall assign the positive integer |a ⁄ g| |b|.
For a finite representable result, each operation shall return V_EQ for every valid rounding request, including a strict flag. With overflow checking enabled, a nonnegative exact result outside the selected policy's finite interval shall have the positive-range outcome of 🔗 4. Checked native arithmetic range outcomes. Checked acquisition of a nonrepresentable source absolute value during a nonzero least-common-multiple calculation shall have that same positive-range outcome; no wrapped magnitude shall be a successful finite answer. If checking is disabled, the result and each needed source absolute value or native arithmetic intermediate shall be finite and representable. ROUND_NOT_NEEDED shall require representability of the selected operation and its necessary intermediates.
The destination may alias either source, the sources may share an object, and all three arguments may be the same object. Every mathematical operand shall mean its entry value. Distinct sources shall remain unchanged. Calls shall require no rounding defaults or result handlers and shall invoke no handler, including on a range outcome. Object lifetime, synchronization, initialization, hardware-direction preservation and output reusability after an unrepresentable result shall follow 🔗 1. Exact same-storage native integer arithmetic and 🔗 4. Checked native arithmetic range outcomes.
-
Incoming link from: 1. Checked named unary functions and function policy1
1. Native integer floor, ceiling and truncation identity PPL-SPEC-000835 For the eleven standard native integer storage types and same-storage raw/checked argument forms in 🔗 1. Exact same-storage native integer arithmetic, floor_assign_r, ceil_assign_r and trunc_assign_r shall assign the source integer unchanged and return V_EQ. Every valid rounding request, with or without ROUND_STRICT_RELATION, shall have this identity behavior.
The entry source shall be finite under its policy and within the selected destination policy's finite interval. The source and output may be the same object; distinct sources shall remain unchanged. Named calls shall require no rounding default or policy result handler and invoke no handler. The lifetime, synchronization, initialization and hardware-direction conditions of 🔗 1. Exact same-storage native integer arithmetic shall apply.
-
2. Native integer negation and absolute value PPL-SPEC-000836 For the same-storage native integer argument forms and entry-value preconditions in 🔗 1. Exact same-storage native integer arithmetic, neg_assign_r shall assign − x and abs_assign_r shall assign |x| whenever that mathematical integer is within the selected destination's finite interval. Each successful operation shall return V_EQ for every valid rounding request, with or without ROUND_STRICT_RELATION. Zero shall remain zero; unsigned absolute value shall preserve its source value.
When the selected destination enables overflow checking, an exact result outside its finite interval shall have the inward endpoint, admitted outward infinity or unrepresentability outcome of 🔗 4. Checked native arithmetic range outcomes. In particular, negating a nonzero unsigned integer shall not report a wrapped unsigned value as successful exact negation. A signed minimum's positive negation or absolute value shall be range-checked when it is outside the destination interval. If checking is disabled, the result shall be representable as a precondition. ROUND_NOT_NEEDED shall require representability, including when a strict flag is present.
The source and output may be the same object; every calculation shall use the entry source value. Distinct sources shall remain unchanged. Calls shall require no rounding default or policy result handler and shall not invoke a handler, including when a range outcome is returned. Output reusability after unrepresentability, object lifetime, synchronization, initialization and hardware-direction conditions shall follow 🔗 1. Exact same-storage native integer arithmetic and 🔗 4. Checked native arithmetic range outcomes.
-
Incoming link from: 7. Raw scalar placement construction and exact assignment1
1. Typed special construction in native scalar storage PPL-SPEC-000849 For a writable native scalar type T, construct(to, marker, dir) shall begin a T object lifetime in the destination storage and assign the requested special marker. T shall be one of the eleven standard native integer types or a configured supported native floating-point type. The storage shall be suitably aligned, writable and large enough for one T. It may contain no live object, or a live trivially destructible T whose lifetime may be replaced. The caller shall own the storage and prevent overlapping access during lifetime replacement.
The special marker types shall be those of 🔗 1. Typed special-marker assignment to native integer storage. The new scalar's numerical value, exact Result code, representability flags and admitted rounding requests shall follow the corresponding raw integer destination in 🔗 1. Typed special-marker assignment to native integer storage or raw floating destination in 🔗 4. Typed special-value assignment to native floating-point storage. Supported special values shall be represented without a false unrepresentability flag; a NaN shall have an empty ordered relation. Unsupported results shall promise no payload. A live scalar object shall exist after normal return, including after an unsupported numerical result, and it shall be reusable as a destination without inspecting an unspecified payload. The marker shall remain unchanged.
These calls shall require no policy rounding default or result handler and shall not invoke a handler. They shall require no library initialization, coefficient-constant stage or FPU setup, and shall preserve hardware direction. Native floating-point exception/status conditions shall follow 🔗 4. Typed special-value assignment to native floating-point storage; unavailable formats shall not be instantiated. Normal C++ lifetime rules shall govern subsequent access, reuse and ending the new scalar's lifetime.
-
1. Floating-related traits and conditional inexact state access PPL-SPEC-000917 FPU_Related<T>::value shall be a compile-time Boolean constant that is true for exactly the unqualified native types float, double and long double, and false for other primary-template types. A supported Checked_Number<T, Policy> specialization shall forward the underlying FPU_Related<T>::value independently of the policy. Native type classification shall not depend on whether PPL rounded floating operations were enabled in the build. In particular, cv-qualified raw floating types shall retain the primary-template result.
When FPU_Related<T>::value is false, maybe_reset_fpu_inexact<T>() shall do nothing and maybe_check_fpu_inexact<T>() shall return zero. Neither call shall access the native FPU backend or alter rounding direction, exception flags or other numerical state, even if an unrelated floating operation has set an inexact flag.
When that value is true, the reset helper shall call fpu_reset_inexact() and the query helper shall return exactly the result of fpu_check_inexact(). A supported flag query shall report zero when clear and one when set, without clearing it; a backend without inexact-flag observation shall retain its negative unavailable result. Exception flags and rounding-control effects shall be those of the corresponding native backend functions. These related-type calls shall satisfy the backend setup and state-ownership conditions of 🔗 4. Rounding-state exchange during an initialized thread lifetime, including the default upward entry direction required by an IA32 reset backend. If the configured backend cannot control the FPU, a related-type call shall propagate its std::logic_error rather than treat the type as unrelated.
No scalar instance, checked rounding default or policy handler shall be required or consulted. Type constants and unrelated-type calls shall require no library initialization, coefficient-constant stage or FPU setup. Related-type calls shall add no setup obligation beyond the selected native backend.
-
1. Bounded checked integer limits and reserved endpoints PPL-SPEC-000577 C_Integer_Type<I> shall have the truth value of C_Integer<I>::value. The default family shall contain the eleven native integer types below, excluding bool, wide character types and cv-qualified or reference types. GMP and native floating types shall not belong to this integer family.
For each of the eleven standard native integer types I and an admitted policy Policy, std::numeric_limits<Checked_Number<I, Policy>> shall describe the underlying integer format and its policy-reserved values. is_specialized, is_signed, is_integer, is_exact, is_bounded, radix, digits, digits10, max_digits10 and the four exponent fields shall equal their std::numeric_limits<I> counterparts. has_signaling_NaN shall equal the native field and shall be false for these integer types. These format fields shall describe storage; they shall not enlarge the finite interval after reserving special representations. has_infinity and has_quiet_NaN shall equal the policy's has_infinity and has_nan traits.
Let L and U be the native minimum and maximum. Let h be one when infinity is enabled and zero otherwise, and n be one when NaN is enabled and zero otherwise. For signed storage, the finite interval shall be [L + h + n, U − h]. For unsigned storage it shall be [0, U − 2h − n]. min() and lowest() shall return the lower finite endpoint; max() shall return the upper finite endpoint. The endpoint arithmetic here shall have its mathematical integer meaning. epsilon(), round_error() and denorm_min() shall return checked zero objects as placeholders for inapplicable floating-format quantities. signaling_NaN() shall have no admitted signaling-NaN result when has_signaling_NaN is false.
Each of these six finite factories shall return the checked scalar type, without requiring an implicit scalar conversion, a rounding default or a result handler. When infinity is enabled, infinity() shall return a checked positive infinity. When NaN is enabled, quiet_NaN() shall return a checked NaN. Those special factories shall likewise return the checked type and invoke no policy handler. Calls to a disabled special factory shall be outside this guarantee. Policy traits shall be coherent with the selected integer backend. These limits queries and factories shall require no library initialization or FPU setup and preserve hardware direction. Returned objects shall own their storage independently.
-
2. Checked native floating format limits and factories PPL-SPEC-000578 For a configured supported native floating type F and an admitted policy, std::numeric_limits<Checked_Number<F, Policy>> shall expose the underlying floating format's is_specialized, is_signed, is_integer, is_exact, is_bounded, radix, digits, digits10, max_digits10, four exponent fields, has_denorm and has_denorm_loss. Each shall equal its native F counterpart. For policies admitting the format's infinity and NaN, has_infinity, has_quiet_NaN and has_signaling_NaN shall equal their native fields.
min(), max(), lowest(), epsilon(), round_error() and denorm_min() shall return checked objects containing exactly the corresponding native factory values, with their signs preserved. In particular, min() shall denote the smallest positive normal value, lowest() the most negative finite value and max() the largest finite value. If the format and policy admit infinity or quiet NaN, infinity() or quiet_NaN() respectively shall return a checked object of that class. If has_signaling_NaN is true and the policy admits NaN, signaling_NaN() shall return a checked signaling NaN of the native format. A false signaling capability shall admit no such result. Signaling NaN shall retain the native format's invalid-operation signaling behavior on arithmetic use; this shall not invoke a PPL policy handler merely by obtaining its representation. No NaN payload or NaN sign shall be prescribed.
Each named factory shall return the checked type, independently of implicit conversion permission, rounding defaults and policy handlers. No handler shall be invoked. The underlying floating type shall have its configured format enabled; the policy shall admit each requested special value. Calls shall require no library initialization or FPU rounding setup, preserve hardware direction and produce independently owned storage.
-
3. Checked unbounded scalar limits and special factories PPL-SPEC-000579 For T equal to mpz_class or mpq_class, std::numeric_limits<Checked_Number<T, Policy>> shall report is_specialized, is_signed and is_exact as true, is_bounded as false and radix as two. is_integer shall be true for unbounded integers and false for rationals. digits, digits10, max_digits10 and all four exponent fields shall be zero; those zeros shall indicate that no finite format limit is supplied. has_infinity and has_quiet_NaN shall equal the policy's has_infinity and has_nan traits. has_signaling_NaN shall be false; signaling_NaN() shall have no admitted signaling-NaN result.
min(), max(), lowest(), epsilon(), round_error() and denorm_min() shall return checked zero objects as placeholders for inapplicable bounded-format quantities. These zeros shall not denote finite range bounds or nonzero spacing between rational values. Each named factory shall return the checked type, without requiring an implicit conversion, rounding default or policy handler. No handler shall be invoked.
When the policy enables infinity, infinity() shall return checked positive infinity; when it enables NaN, quiet_NaN() shall return checked NaN. These factories shall return checked objects and invoke no handler. Disabled special factories shall be outside this guarantee. Extended GMP storage shall be interpreted through PPL's special-value queries rather than ordinary GMP arithmetic on nonfinite representations.
The policy shall provide the backend's relevant representation traits. Available resources shall suffice for object construction and ownership. These metadata queries and factories shall require no library initialization, coefficient constants or FPU rounding setup, and preserve hardware direction. Returned values and their copies shall own independent storage.
-
Incoming links from: 1. Conversion of policy-admitted scalar special values 1. Conversion of policy-admitted scalar special values 2. Unary and binary-scale transformations of scalar special values 3. Extended scalar binary arithmetic and enabled fault diagnosis 4. Nonfinite remainder operands and enabled modulus faults 5. Extended accumulated products and enabled fault diagnosis 6. Square-root special values and enabled negative-input diagnosis 2. Finite checked scalar converting construction and assignment 3. Checked scalar storage references and value conversion 3. Result-returning overflow-checking policy10
1. Operation-specific numerical policy capabilities PPL-SPEC-000551 Checked_Number<T, Policy> shall obtain numerical checks, special-value capabilities, rounding defaults and result handling from the members of Policy required by the selected operation. Availability of one operation shall not require policy members used only by another operation. Checking and capability flags required by a selected operation shall be constant expressions.
Default construction, same-type copying and raw storage access shall not require a rounding default or handle_result. A named result-returning operation with an explicit Rounding_Dir shall return its Result without invoking a policy handler; its scalar backend's relevant checking and special-value traits shall still be required. Named rational input shall admit the two-trait policy specified by 🔗 2. Canonical rational input and stream failure outcomes.
A value-converting constructor with an explicit direction shall invoke the destination policy's handle_result for the conversion result without requiring a rounding default. The corresponding constructor without a direction shall use ROUND_DEFAULT_CONSTRUCTOR and that handler. Overloaded arithmetic operators shall use ROUND_DEFAULT_OPERATOR; named assignment functions that omit a direction, such as div_2exp_assign, shall use ROUND_DEFAULT_FUNCTION. Each shall pass the numerical result to handle_result after its numerical operation. Handler exceptions shall propagate. Same-type copy assignment shall copy storage without invoking a conversion handler.
Checked stream operators shall have the capability and dispatch rules of 🔗 6. Checked numeric stream policy integration: input uses ROUND_DEFAULT_INPUT and a handler; output uses ROUND_IGNORE and a handler. Neither shall require ROUND_DEFAULT_OUTPUT. Availability of the underlying implicit conversion to T shall require a policy that provides true convertible. Operation-specific numerical, aliasing, resource and synchronization preconditions shall continue to apply. Policy constants and direct policy handlers shall require no library initialization or FPU rounding setup.
-
Incoming link from: 5. Bounded integer coefficient policy configuration1
2. Transparent numerical policy PPL-SPEC-000552 For supported scalar T, Checked_Number_Transparent_Policy<T> shall provide the following constant boolean traits:
- check_overflow, check_inf_add_inf, check_inf_sub_inf, check_inf_mul_zero, check_div_zero, check_inf_div_inf, check_inf_mod and check_sqrt_neg shall be false.
- has_nan shall equal std::numeric_limits<T>::has_quiet_NaN; has_infinity shall equal std::numeric_limits<T>::has_infinity.
- convertible shall be true; check_fpu_inexact and check_fpu_nan_result shall be false.
Its ROUND_DEFAULT_CONSTRUCTOR, ROUND_DEFAULT_OPERATOR, ROUND_DEFAULT_FUNCTION, ROUND_DEFAULT_INPUT and ROUND_DEFAULT_OUTPUT shall each equal ROUND_NATIVE. handle_result(r) shall return without throwing or changing observable state for every admitted Result code, including diagnostics and unrepresentability flags. It shall not convert a diagnostic into a successful numerical outcome. Numerical operations shall retain their own valid-input, representability and rounding preconditions; disabled checks shall not promise defined native arithmetic outside those preconditions.
-
Incoming link from: 4. Extended numerical policy and NaN-class handler1
3. Result-returning overflow-checking policy PPL-SPEC-000553 For supported scalar T, Check_Overflow_Policy<T> shall provide true check_overflow, convertible, check_fpu_inexact and check_fpu_nan_result. Its check_inf_add_inf, check_inf_sub_inf, check_inf_mul_zero, check_div_zero, check_inf_div_inf, check_inf_mod and check_sqrt_neg shall be false. has_nan shall equal std::numeric_limits<T>::has_quiet_NaN and has_infinity shall equal std::numeric_limits<T>::has_infinity.
The policy shall provide no ROUND_DEFAULT_CONSTRUCTOR, ROUND_DEFAULT_OPERATOR, ROUND_DEFAULT_FUNCTION, ROUND_DEFAULT_INPUT, ROUND_DEFAULT_OUTPUT or handle_result. Checked storage using this policy shall support default construction, raw access and applicable explicit-direction result-returning calls under 🔗 1. Operation-specific numerical policy capabilities. Those calls shall expose overflow and other outcomes through Result according to their individual contracts. Automatic handler dispatch shall require a policy that additionally provides a handler; convenience interfaces using defaults shall additionally require those defaults. Enabling overflow checks shall not enable the seven separate invalid-operation checks listed above.
-
4. Extended numerical policy and NaN-class handler PPL-SPEC-000554 Extended_Number_Policy shall provide true check_overflow, has_nan, has_infinity, check_fpu_inexact and check_fpu_nan_result. Its check_inf_add_inf, check_inf_sub_inf, check_inf_mul_zero, check_div_zero, check_inf_div_inf, check_inf_mod and check_sqrt_neg shall be false. It shall provide no convertible member and none of the five rounding defaults listed in 🔗 3. Result-returning overflow-checking policy. In particular, supplying this policy shall not enable an implicit conversion to the underlying scalar type.
For admitted Result codes, handle_result(r) shall invoke throw_result_exception(r) exactly when result_class(r) == VC_NAN, with the exception categories specified by 🔗 8. Exception classification of numerical result codes. For every other class it shall return without throwing, including infinity, bounded-overflow and unrepresentability flags. Those other outcomes shall retain their original numerical meanings; normal return from this handler shall not imply successful exact arithmetic or representability.
The special-value capability traits shall enable supported extended representations in the selected scalar backend; they shall not promise that every native storage type can physically encode all such representations. The disabled invalid-operation checks shall retain the underlying operation's preconditions.
-
5. Bounded integer coefficient policy configuration PPL-SPEC-000555 In bounded integer coefficient configurations, Bounded_Integer_Coefficient_Policy shall provide true check_overflow, convertible and check_fpu_nan_result. Its has_nan, has_infinity and check_fpu_inexact shall be false, as shall check_inf_add_inf, check_inf_sub_inf, check_inf_mul_zero, check_div_zero, check_inf_div_inf, check_inf_mod and check_sqrt_neg. Each of the five rounding defaults listed in 🔗 2. Transparent numerical policy shall equal ROUND_NATIVE.
In checked bounded coefficient configurations, handle_result(r) shall invoke throw_result_exception(r) exactly when result_overflow(r) is true or result_class(r) == VC_NAN, with the categories of 🔗 8. Exception classification of numerical result codes. Otherwise it shall return without throwing. The overflow query shall have the code-sensitive meaning specified by 🔗 3. Overflow-sign and storage-representability result queries, including its treatment of annotated normal-class codes and class-based infinity signs. Checked coefficient operations shall retain the failure guarantees of 🔗 5. Checked coefficient overflow and result-policy dispatch. In unchecked native coefficient configurations, the policy's declaration shall not confer checked arithmetic behavior on the configured native Coefficient type or promise a linkable handler implementation.
-
Incoming links from: 2. Selective classification of native floating-point checked values 2. Directed conversion to adjacent finite normal floating-point bounds 2. Directed finite floating-to-integral rounding within range 3. Directed rational-to-integral conversion within range 1. Policy-dependent native integer classification 2. GMP integer and rational special-value classification 2. Typed special-marker assignment to GMP integer and rational storage 2. Directed canonical rational conversion to an unbounded integer8
1. Numerical result classes and relation meanings PPL-SPEC-000121 Result shall encode a computed-value class, a relation between an exact result and its computed value where comparable, and applicable outcome flags or diagnostic detail. VC_NORMAL, VC_MINUS_INFINITY, VC_PLUS_INFINITY and VC_NAN shall denote the normal-number, negative-infinity, positive-infinity and not-a-number classes.
For an arithmetic or conversion result, VR_EQ shall mean that exact and computed values are equal; VR_LT shall mean that the exact value is less than the computed value, and VR_GT shall mean that it is greater. VR_LE, VR_GE and VR_NE shall admit the union of their named relations. VR_LGE shall admit all three ordering relations and VR_EMPTY shall admit none. A relation containing equality and a strict relation shall not promise exactness. The class shall be interpreted together with the relation and any diagnostic; a normal class alone shall not promise an exact successful operation.
The corresponding V_EQ, V_LT, V_GT, V_LE, V_GE, V_NE, V_LGE and V_EMPTY shall have those normal-class relation encodings. V_EQ_MINUS_INFINITY and V_EQ_PLUS_INFINITY shall encode exact infinities. V_GT_MINUS_INFINITY and V_LT_PLUS_INFINITY shall encode their named strict relations with an infinite computed value. V_LT_INF and V_GT_SUP shall encode negative and positive bounded range overflow with a normal computed-value class and the indicated relation. V_NAN and each named invalid-operation diagnostic shall have NaN class. V_UNKNOWN_NEG_OVERFLOW and V_UNKNOWN_POS_OVERFLOW shall denote an unknown result following the named sign of intermediate overflow; they shall not describe an exact or ordinary inexact success.
The V_UNREPRESENTABLE flag shall indicate that the computed value cannot be represented in the selected destination storage. Absence of that flag shall not by itself promise finite value, exactness or success. These enum values shall be available without library initialization and shall not depend on a coefficient profile.
-
2. Numerical result composition and field extraction PPL-SPEC-000122 For Result values, operator& shall return the bitwise intersection, operator| the bitwise union, and operator- the left operand with all bits present in the right operand cleared. Subtraction shall be flag removal, not arithmetic subtraction of the underlying enum values. Operands shall remain unchanged.
result_class(r) shall retain exactly the VC_MASK bits and return Result_Class. result_relation(r) shall retain exactly the VR_MASK bits and return Result_Relation. result_relation_class(r) shall retain exactly the union of those masks and return Result. In particular, these field extractors shall discard unrepresentability, bounded-overflow and diagnostic-payload bits. They shall preserve a contained class or relation when other fields are added or removed. Extracting fields or composing bits shall not turn an otherwise unsupported code combination into a supported arithmetic result. These pure operations shall require no initialized library state.
For constant-evaluable inputs, these operations shall support constant evaluation under the same stated preconditions.
-
3. Overflow-sign and storage-representability result queries PPL-SPEC-000123 result_overflow(r) shall return -1 when the computed-value class is VC_MINUS_INFINITY and 1 when it is VC_PLUS_INFINITY. For normal-class results it shall return -1 for V_LT_INF and 1 for V_GT_SUP. It shall return zero for other normal-class codes and for NaN-class codes, including the unknown-intermediate-overflow diagnostics. Its zero result shall not promise that a NaN diagnostic is a successful operation; 🔗 8. Exception classification of numerical result codes shall classify exceptions separately. Class-based infinity classification shall retain its sign when V_UNREPRESENTABLE is present.
result_representable(r) shall return true exactly when the V_UNREPRESENTABLE flag is absent. This shall test the storage annotation, without promising a normal class, exactness or the absence of an arithmetic failure. Both queries shall preserve the supplied code and require no initialized library state.
For constant-evaluable inputs, these operations shall support constant evaluation under the same stated preconditions.
-
Incoming links from: 4. Typed special-value assignment to native floating-point storage 1. Supported exact integer and rational conversion to native floating storage 1. Finite native floating-point floor, ceiling and truncation 1. Exact conversion between native and checked integral scalars 2. Exact conversion from an unbounded integer to integral storage 4. Truncated rational-to-integral conversion and lazy relation requests 1. Exact native integral and unbounded integer assignment to mpz storage7
4. Rounding-direction intent, composition and inspection PPL-SPEC-000124 ROUND_DOWN and ROUND_UP shall request bounds toward negative and positive infinity, respectively. ROUND_IGNORE shall delegate rounding and permit lazily evaluated relation information; ROUND_NATIVE shall be its alias. ROUND_NOT_NEEDED shall require the caller to ensure that the requested operation's result is exact and representable in its destination. ROUND_STRICT_RELATION shall request determination of the exact ordering relation rather than a weaker relation containing it. ROUND_DIRECT and ROUND_INVERSE shall alias ROUND_UP and ROUND_DOWN, respectively.
A supported direction shall contain one of the four base directions with an optional strict-relation flag. Bitwise operator& and operator| shall intersect and unite direction bits. round_dir shall retain exactly the ROUND_DIR_MASK bits. Each named direction predicate shall return true exactly when that base direction is selected, independently of the strict flag. round_not_requested shall return true exactly for ROUND_IGNORE or ROUND_NOT_NEEDED. round_strict_relation shall return true exactly when the strict-relation bit is present. These operations shall preserve the arguments, require no initialized library state and leave the hardware rounding state unchanged.
For constant-evaluable inputs, these operations shall support constant evaluation under the same stated preconditions.
-
5. Inversion of a supported rounding bound direction PPL-SPEC-000125 For ROUND_UP or ROUND_DOWN, optionally combined with ROUND_STRICT_RELATION, inverse(dir) shall exchange upward and downward rounding and preserve the strict flag. ROUND_IGNORE, with or without that flag, shall be its own inverse. Applying inverse twice shall restore the supplied supported direction.
The base ROUND_NOT_NEEDED shall not be an admitted input to this operation. The function shall preserve its argument and shall not inspect or change hardware rounding state. It shall require no initialized library state.
For constant-evaluable inputs, these operations shall support constant evaluation under the same stated preconditions.
-
6. Mapping a bound direction to the platform FPU encoding PPL-SPEC-000126 When PPL_CAN_CONTROL_FPU is nonzero, round_fpu_dir(dir) shall map ROUND_UP and ROUND_DOWN to the configured platform encodings for upward and downward FPU rounding, respectively. An optional ROUND_STRICT_RELATION flag shall not change that encoding. Only those two base directions shall be admitted. The mapping shall not set, inspect or otherwise change FPU state and shall require no initialized library state.
No callable definition shall be promised when PPL_CAN_CONTROL_FPU is zero. In that configuration, callers shall not invoke this mapping.
For constant-evaluable inputs, these operations shall support constant evaluation under the same stated preconditions.
-
8. Exception classification of numerical result codes PPL-SPEC-000128 throw_result_exception(r) shall always throw a standard exception and shall not return normally. It shall first ignore V_UNREPRESENTABLE for exception classification. V_EMPTY and the invalid-operation diagnostics V_NAN, V_CVT_STR_UNK, V_DIV_ZERO, V_INF_ADD_INF, V_INF_DIV_INF, V_INF_MOD, V_INF_MUL_ZERO, V_INF_SUB_INF, V_MOD_ZERO and V_SQRT_NEG shall produce std::domain_error.
V_EQ_MINUS_INFINITY, V_GT_MINUS_INFINITY, V_LT_INF, V_EQ_PLUS_INFINITY, V_LT_PLUS_INFINITY, V_GT_SUP, V_UNKNOWN_NEG_OVERFLOW and V_UNKNOWN_POS_OVERFLOW shall produce std::overflow_error. The ordinary nonempty relation results V_EQ, V_LT, V_LE, V_GT, V_GE, V_NE and V_LGE shall produce std::logic_error. An otherwise unrecognized result encoding shall also produce std::logic_error. Exception-message text shall not be prescribed.
This function shall classify the supplied code; it shall not reexecute an arithmetic operation or require initialized library state. Calling it on an ordinary relation code shall still throw, even when that code describes a successful numerical result.
-
1. Exact finite numeric token syntax PPL-SPEC-000525 For supported numeric destinations and a checked policy providing any required scalar traits, input shall interpret finite tokens according to their exact rational values. A number part shall consist of an optional sign immediately followed by a nonempty mantissa, optionally followed by an exponent. A mantissa shall contain digits, optionally a single point with digits on at least one side. Unprefixed digits shall be decimal; leading zeros shall not select octal. 0x shall select radix 16, and a decimal radix followed by ^^ shall select any radix from 2 through 36. Letters shall denote digits 10 through 35 without case distinction; every mantissa digit shall be smaller than the selected radix.
For radix B, a mantissa with integer digit value M and k fractional digits shall denote MB − k before its sign and exponent. The exponent markers e and *^ shall multiply this value by BE; the hexadecimal-only marker p shall instead multiply by 2E. Exponent signs shall be optional and their digits shall always be decimal. A letter that is a valid mantissa digit shall take precedence over interpretation as an exponent marker; thus e shall be a digit at radix 15 or greater. The explicit marker *^ shall remain available in every radix. An explicit exponent magnitude shall not exceed LONG_MAX; excess magnitude shall be rejected without native overflow.
A slash immediately after a complete numerator part shall introduce a second signed part as denominator; the finite value shall be their exact ratio when that denominator is nonzero. Leading whitespace shall be accepted before either part, including after the slash, but not between a sign and its mantissa. A terminator outside the recognized part shall remain available to the stream after successful finite parsing. Type suffixes shall not be part of the numeric token. Resources and lexical arithmetic counters shall suffice for the requested token and exact value; no configured Coefficient width shall limit its mantissa. When exact expansion is needed after cancelling radix factors, the expansion budget shall be 2^26 bits plus twice the combined budget of the literal numerator and denominator mantissa digits. Each digit contributes the ceiling of the binary logarithm of its radix, including explicitly written zero digits. A conservative upper bound on the bits contributed by the remaining powers shall be checked separately on the numerator and denominator before materializing those powers. The budget applies to native destinations when magnitude classification needs exact expansion.
Radix powers contributed by the numerator and denominator and their common factors with the opposite mantissa shall be canceled before expanding the remaining powers. Native conversions may use proved magnitude bounds when the outcome is the same as conversion of the exact value.
-
2. Canonical rational input and stream failure outcomes PPL-SPEC-000526 The destination shall be live mpq_class storage, either raw or owned by Checked_Number<mpq_class, Policy>. The policy shall provide constant boolean has_nan and has_infinity traits for that wrapper's input and lifetime operations; no rounding default or result handler shall be required by named rational input. For an initially readable stream and a complete finite token in 🔗 1. Exact finite numeric token syntax, input shall assign its exact rational value in canonical form with positive denominator and coprime numerator/denominator. It shall return V_EQ for every valid rounding request, including strict and exactness requests. Lexical negative zero shall become rational zero. Reusing a destination shall not retain any previous numerator, denominator, sign or exponent component.
Successful parsing shall consume the recognized token and its leading whitespace, preserve any looked-ahead terminator by stream putback, and clear a speculative failbit caused only by successful end-of-token recognition at EOF. It shall retain eofbit and shall not clear a genuine stream failure. The stream buffer shall support the required character putback for successful delimiter retention. If that operation fails, input shall report failure through stream state rather than claim a complete finite value. Syntax rejection, an exponent expansion beyond the bound above or a conservative expansion bound exceeding the supported backend storage limits shall set failbit and return V_CVT_STR_UNK when the stream exception mask allows return. Enabled stream exceptions shall propagate. A consumed prefix shall not be rolled back after failure; no universal unchanged-destination promise shall apply. The surviving destination shall remain reassignable and destructible.
Case-insensitive inf with optional sign and unsigned nan shall be recognized as nonfinite tokens; a zero-valued denominator shall not be a successful finite value. Their nonfinite/undefined or unrepresentable outcome shall remain distinct from V_EQ finite input. This shall not promise a nonfinite representation in ordinary canonical mpq_class storage.
Objects and streams shall be synchronized against concurrent mutation and resources shall suffice for parsing and exact canonicalization. No library initialization owner, coefficient-constant stage, FPU setup/direction, inexact-flag support or irrational-precision setting shall be required.
-
3. Numeric text input into integral destinations PPL-SPEC-000527 For a successfully parsed finite token of exact value q in 🔗 1. Exact finite numeric token syntax, input into each native integer or Checked_Number<I, Check_Overflow_Policy<I>> type admitted in 🔗 3. Directed rational-to-integral conversion within range shall apply the canonical rational conversion rules in 🔗 3. Directed rational-to-integral conversion within range, 🔗 4. Truncated rational-to-integral conversion and lazy relation requests and 🔗 6. Rational conversion at and beyond integral endpoints, with the same destination value, range outcome, result relation and exactness precondition. Input into mpz_class shall use 🔗 2. Directed canonical rational conversion to an unbounded integer and 🔗 3. Delegated and exactness rational conversion to an unbounded integer. In particular, directed requests shall use floor/ceiling and delegated integer conversion shall truncate toward zero; ROUND_NOT_NEEDED shall require an integral finite token value representable in the selected destination.
Token precision shall not first be restricted to the configured coefficient range or to a native floating type. Named input shall return the numeric conversion result without automatically dispatching a policy error handler. The token shall remain consumed if subsequent numeric conversion reports an unrepresentable result. Stream behavior, source synchronization and resources shall follow 🔗 2. Canonical rational input and stream failure outcomes. Shared rational temporary pools shall be serialized in a build without thread-safe support; thread-safe builds shall use calling-thread pools. Destination and initialization prerequisites shall follow the corresponding conversion contracts, without requiring an FPU merely to parse or round a rational into integral storage.
-
4. Numeric text input into supported native floating destinations PPL-SPEC-000528 For a successfully parsed finite token of exact rational value q, input into raw or Checked_Number<F, Check_Overflow_Policy<F>> storage shall apply the value, direction, exactness and range rules in 🔗 1. Supported exact integer and rational conversion to native floating storage, 🔗 2. Directed conversion to adjacent finite normal floating-point bounds, 🔗 3. Directed conversion in the subnormal and underflow range, 🔗 4. Delegated and exactness requests for floating-point conversion and 🔗 5. Floating conversion overflow thresholds and computed-value classes for the corresponding configured supported native format. The returned relation shall compare q with the stored native value. Strict requests shall retain the precision of that rational conversion; native token parsing shall not round through a narrower intermediate format or the configured coefficient type.
A lexical negative-zero token shall parse as rational zero and therefore store positive native zero. Nonzero negative underflow shall retain the negative sign required by the rational conversion. Named input shall return its numeric outcome directly, without policy handler dispatch. Stream consumption/failure and temporary-pool prerequisites shall follow 🔗 3. Numeric text input into integral destinations. No library initialization owner, coefficient-constant stage or irrational-precision setting shall be needed, and hardware direction shall not change. Native format availability and any arithmetic conditions shall follow the cited rational conversion contracts.
-
Incoming links from: 1. Human-readable bounded-difference presentation 11. Reloadable ASCII records for admitted bound values 2. Readable interval presentation and output delivery 6. Checked numeric stream policy integration 1. Human-readable octagonal presentation 1. Reloadable octagonal record export 1. Pseudo-triangular mathematical-value records7
5. Mathematical numeric output and stream delivery status PPL-SPEC-000529 output shall preserve a live source number and write its mathematical text using the supplied stream. With ordinary decimal formatting, native integer, mpz_class and canonical finite mpq_class sources shall use their exact ordinary integer/rational representation; character-sized integer sources shall be printed numerically rather than as glyphs. A native finite floating source shall be written as an exact finite decimal representation of its represented binary rational value, without rounding to the stream precision or changing hardware direction. Both zero signs shall be written as 0. Admitted native infinities and quiet NaNs shall be written as -inf, +inf and nan respectively.
Exact integer/rational output shall follow its ordinary stream formatting flags. Native floating mathematical output shall insert the exact decimal string instead of using the stream's native floating formatting. Pending width/fill/alignment shall act through the corresponding ordinary insertion; no newline shall be added. Live Numeric_Format instances shall select the same formatting rules. Every valid rounding request shall return V_EQ when insertion returns, indicating no numeric approximation; it shall not by itself certify successful stream delivery. Stream error state and enabled exceptions shall follow ordinary insertion semantics, without a partial-output rollback promise or policy handler dispatch by named output.
Resources shall suffice for exact decimal expansion and insertion; source, format and stream access shall be synchronized against mutation. Supported native formats shall satisfy their availability conditions. No library initialization owner, coefficient-constant stage, FPU rounding setup, inexact-flag support or irrational-precision setting shall be required. Ordinary decimal output read by compatible numeric input shall preserve the mathematical finite value, without promising to preserve a floating zero's sign or machine object representation.
-
Incoming links from: 1. Human-readable bounded-difference presentation 11. Reloadable ASCII records for admitted bound values 1. Operation-specific numerical policy capabilities 1. Human-readable octagonal presentation 1. Reloadable octagonal record export 1. Pseudo-triangular mathematical-value records 1. Exact scalar ASCII persistence 1. Exact scalar ASCII persistence 2. Finite floating scalar ASCII byte records 3. Finite floating scalar ASCII reload and framing 4. Scalar ASCII stream delivery and failure handling11
6. Checked numeric stream policy integration PPL-SPEC-000530 For a Checked_Number<T, Policy> instantiation whose policy provides ROUND_DEFAULT_INPUT and handle_result(Result), input stream extraction shall call numeric input with that default direction and return the same stream reference. On a returned V_CVT_STR_UNK, it shall set failbit and shall not dispatch that syntax result to the policy handler. For another returned numeric result, it shall invoke the handler once. Stream exceptions and exceptions raised by the handler shall propagate. No successful destination value shall be inferred after a failed parse or a handler rejection; reuse shall meet the destination's declared post-failure prerequisites.
Output stream insertion shall require the policy handler, without requiring an input-default direction. It shall call numeric output with a default Numeric_Format and ROUND_IGNORE, dispatch a returned result to the policy handler once, and return the same output-stream reference. A stream exception shall propagate before a returned numeric result can be dispatched. The source shall remain unchanged by library formatting. Input/output mathematical values and stream semantics shall follow 🔗 2. Canonical rational input and stream failure outcomes, 🔗 3. Numeric text input into integral destinations, 🔗 4. Numeric text input into supported native floating destinations and 🔗 5. Mathematical numeric output and stream delivery status for admitted underlying types. Check_Overflow_Policy alone shall not be assumed to provide these stream-operator policy members; the named result-returning interfaces shall remain governed by their own contracts.
-
1. Native unsigned bit positions PPL-SPEC-001630 For a nonzero value of unsigned int, unsigned long or unsigned long long with w value bits, clz shall return w − 1 − ⌊log2x⌋; ctz shall return the greatest k such that 2k divides x. Zero shall be outside their admitted input domain. msb_position(x) shall return the zero-based position ⌊log2x⌋ of a nonzero unsigned long long. The Implementation::first_one and Implementation::last_one overloads for the same three unsigned types shall return the least and greatest set-bit indices, respectively. All functions shall preserve their input and require no library initialization.
-
2. Dimension arithmetic, capacity and common access helpers PPL-SPEC-001631 hash_code_from_dimension(d) shall return d − 231⌊d ⁄ 231⌋ as int32_t. least_significant_one_mask(d) shall return zero for zero, and otherwise the single-bit mask of the least significant one in d.
For 0 ≤ n ≤ m, compute_capacity(n,m) shall return 2(n + 1) when n < ⌊m ⁄ 2⌋, and m otherwise. Its result shall be representable and lie in [n, m].
For a live random-access container, nth_iter(c,n) shall return c.begin()+n with the corresponding mutable or const iterator type. The offset shall be representable in the container's difference_type and shall designate an element or the past-the-end position. No element shall change. is_space(c) shall apply the active C locale's whitespace classification to static_cast<unsigned char>(c); every char value shall be admitted, including negative values on signed-char targets. These helpers shall require no library initialization.
-
3. Raw scalar memory accounting PPL-SPEC-001632 For a live native scalar T, external_memory_in_bytes shall return zero and total_memory_in_bytes shall return sizeof(T). For a live mpz_class, external memory shall equal its allocated limb count multiplied by PPL_SIZEOF_MP_LIMB_T. For a live mpq_class, it shall equal the sum of its numerator's and denominator's external memory. Total GMP scalar memory shall add the corresponding scalar object's sizeof. These functions shall preserve values and allocations. The reported sum and products shall be representable in memory_size_type. They shall account for the scalar's owned storage, without measuring allocator bookkeeping or shared library state. The checked-wrapper forwarding rule shall remain 🔗 5. Checked scalar memory-size inspection.
-
4. Assignment, swap and invariant dispatch PPL-SPEC-001633 For live admitted T objects, assign_or_swap(to,from) shall select exactly one strategy at compile time. If Has_Assign_Or_Swap<T>::value is true, it shall call to.assign_or_swap(from) once. Otherwise, if Slow_Copy<T>::value is false, it shall perform to=from once. Otherwise it shall perform one unqualified swap(to,from) with std::swap available. The selected operation shall determine the values, source modification, alias admissibility and exception guarantees; its exceptions shall propagate. GMP integer and rational swap adapters shall exchange the owned values, preserving independent valid storage. A slow-copy type used with the generic PPL swap shall require an applicable specialization; the unspecialized generic form shall fail to instantiate.
For T with a detected bool OK() const member, f_OK(t) shall return t.OK(). Its native scalar and GMP scalar overloads shall return true. Calling f_OK shall retain the selected object's invariant-query prerequisites and exception behavior.
-
5. Representation-selector ASCII records PPL-SPEC-001634 For an admitted Representation equal to DENSE or SPARSE, ascii_dump shall insert exactly DENSE or SPARSE, respectively. ascii_load shall extract one whitespace-delimited string and accept exactly either of those case-sensitive tokens, assigning the corresponding selector and returning true. A normally failed extraction or any other token shall return false and preserve the destination selector. A complete accepted record shall leave following tokens available. Stream exceptions shall propagate according to the stream's exception mask; output shall preserve the selector. Neither function shall require library initialization.
-
6. Exact comparison of short sums through directed filters PPL-SPEC-001635 The internal Implementation short-sum helpers shall operate on two or three addends per list. Each pointer shall designate a live admitted scalar. Original left addends shall be finite; right addends may additionally be positive infinity. NaN and negative infinity shall be outside the admitted domain. The scalar policy and arithmetic shall supply sound upward/downward bounds, valid overflow outcomes, and exact rational conversion of each finite original addend. Required rounding setup, resources and synchronization shall follow those scalar operations.
checked_sum_assign<Count> shall evaluate the first two addends and then, for three terms, add the third, using the requested direction. It shall return true exactly when every addition reports V_EQ; false shall not by itself assert that the final mathematical sum is inexact. Its output shall be independent of all input addend storage.
checked_sum_has_infinite_right shall return true exactly when an original right addend is positive infinity. checked_sum_less shall return exactly ∑iLi < ∑jRj, including finite sums outside the bounded scalar range. A positive-infinite original right operand shall make this predicate true before sum arithmetic is attempted. A finite rounded overflow shall not be mistaken for an original infinite operand.
The cached-left overload shall receive the same upward left sum and exactness flag produced by checked_sum_assign for those original left addends. checked_finite_sum_less shall additionally require all right addends finite. Directed bounds may decide the comparison only when they establish its truth or falsity. An unresolved comparison shall use exact rational arithmetic on the original finite addends. No input addend shall change.
-
Incoming link from: 1. Conversion of policy-admitted scalar special values1
7. Raw scalar placement construction and exact assignment PPL-SPEC-001636 The internal Checked::construct dispatch shall receive suitably aligned storage for one complete destination scalar object, with no live object requiring destruction there. For finite same-type, same-policy input, it shall copy-construct an independent scalar and return V_EQ. The generic different-type path shall first default-construct the destination, then apply the corresponding checked assignment with the requested rounding direction, returning that assignment's Result without invoking a policy handler. Admitted native/GMP exact constructor specializations shall directly construct the exact value and return V_EQ. The floating-to-GMP-integer constructor shall retain 🔗 6. Finite native floating-point placement construction of an unbounded integer; supported floating-to-rational construction shall preserve the exact finite floating value. Special-value routing shall follow 🔗 1. Typed special construction in native scalar storage and the destination policy's capabilities.
The internal assign_exact adapter shall assign the admitted exactly representable source to a live destination and return V_EQ without a handler. It shall not perform rounding. Source values shall be preserved and owned GMP values shall be independent.
Underlying constructor, assignment and resource exceptions shall propagate. A destination whose construction itself throws shall not be used or destroyed as a completed object; if assignment throws after default construction, that underlying scalar shall remain live with the assignment's failure guarantees. These raw construction paths shall not be required by the ordinary converting Checked_Number constructors of 🔗 2. Finite checked scalar converting construction and assignment.
-
8. Native floating storage, neighbors and precision barriers PPL-SPEC-001637 For a configured supported native floating type T, Float<T>(v) shall retain the native value and expose its corresponding binary descriptor; value() shall return that stored native value. Representation access shall use standard-defined object-representation copies, without reading an inactive union member. Native padding shall not be interpreted as an integer field; x87 conversions shall preserve the 64-bit significand and 16-bit sign/exponent, ignoring native padding and the descriptor's high padding bits. The binary descriptor shall remain the active union member, including after default construction. Default construction shall leave the raw storage unspecified until the caller establishes a valid value or complete binary encoding. Reads shall require such initialization and an admitted encoding of the configured native format.
Checked::pred_float(v) shall replace an admitted finite value or positive infinity with its immediate predecessor in that native format. succ_float(v) shall replace a finite value or negative infinity with its immediate successor. NaN and the opposite unbounded endpoint shall be outside the corresponding admitted input domain. Predecessor of either zero shall be the smallest negative subnormal; successor of either zero shall be the smallest positive subnormal. Approaching zero from the positive or negative side shall retain the corresponding zero sign. No rounding mode change shall be required.
For supported native floating Raw, materialize_native_value shall return a value materialized at that native format under the active rounding direction when the configured evaluation format has excess precision or range; otherwise it shall return the input value. limit_precision for float and double shall apply PPL_CC_FLUSH: on GNU-compatible compilers this shall force a memory observation of the argument; on the portable fallback it shall merely mark the argument used. The long double overload shall do nothing. None of these helpers shall change the rounding direction. round_to_integer shall return the integral native floating value selected by the active hardware rounding direction. Its input shall be finite, and hardware setup and floating exceptions shall follow that native operation.
-
9. Configured FPU backend control and status PPL-SPEC-001638 On an available configured backend, fpu_initialize_control_functions shall establish that its control operations are usable. The C99 backend shall probe downward and upward selection and restore its original direction on successful return; a failed selection shall throw std::logic_error. Initialization shall not promise restoration after a failed probe.
fpu_get_rounding_direction shall report the selected hardware direction; fpu_set_rounding_direction shall select an admitted platform encoding. fpu_save_rounding_direction shall select its argument and return a token accepted by fpu_restore_rounding_direction. On C99 and SPARC backends, restoration shall recover the preceding direction. The optimized IA32 pair shall require the default upward entry state and shall restore that default; its token shall not encode an arbitrary preceding environment. No backend shall promise to restore the entire floating environment through this pair.
fpu_check_inexact shall return zero for a definitely clear flag, one for a definitely set flag, or minus one when flag observation is unavailable, without clearing an observed flag. fpu_reset_inexact shall clear the observable inexact state. The IA32 reset shall require default upward rounding and may clear other arithmetic exception flags. C99/SPARC reset shall preserve other flags and the selected direction.
Where the IA32 raw-register helpers are available, control/status reads shall return the corresponding x87 control or status word, control writes shall load the admitted x87 word, fpu_clear_status(bits) shall clear selected status bits, and fpu_clear_exceptions shall clear the x87 exception state. SSE control reads/writes shall access MXCSR when that unit is available. Inputs shall be valid hardware control words and callers shall own access to the current thread's environment; trap enables and encodings shall be valid for every operation attempted. These raw operations shall not affect another thread's state. The no-control backend's control/status functions shall throw std::logic_error rather than report successful control.
-
10. Native finite affine interval congruence classification PPL-SPEC-001650 native_interval_relation<Halve>() shall require finite native bounds, a positive magnitude a, a positive modulus m and exact unbounded native arithmetic. With h = 2 when Halve is true and h = 1 otherwise, its admitted affine interval shall be nonempty: L = c − a neg_lower ⁄ h ≤ U = c + a upper ⁄ h, where c is expr.inhomogeneous_term(). The selected halving operation shall be exact.
The result shall be disjoint exactly when [L, U]∩mℤ is empty. It shall be included and saturating exactly when L = U ∈ mℤ. Otherwise it shall strictly intersect. Expression, magnitude, modulus and supplied bounds shall be preserved. Supported numerical and allocation failures may propagate; temporaries shall release their owned resources. Numerical initialization, lifetime and synchronization prerequisites shall follow 🔗 1. Bounded-difference values, numerical profiles and valid use and 🔗 1. Octagonal values, numerical profiles and valid use for the calling domain.
-
14. Configured native gradual-underflow environment probe PPL-SPEC-001725 For each native floating type admitted by the configured PPL support flags, the probe shall check gradual underflow when numeric_limits reports a binary format with subnormals. Exact halving and restoration of the least positive normal shall preserve positive and negative subnormal values. Dividing the least positive/negative subnormal by the positive least subnormal shall yield positive/negative one, thereby checking that subnormal inputs are not flushed. Volatile loads and stores shall force the intended native runtime operations. Other formats and unselected types shall be skipped without claiming that the probe ran for them. Failure shall identify the type and failed condition. The C entry point shall return the C++ probe's success as 0, or failure as 1. This is a check of the calling process's numerical environment, not a promise to configure FPU rounding, exception masks or universal subnormal support.
-
1. Rational affine image of one coordinate PPL-SPEC-001206 For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with an octagonal shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = sxj + c with s ∈ { − 1, 1} , including signed self translation, shall give the exact image. Other affine expressions may require a conservative octagonal enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate PPL-SPEC-001207 With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
With exact rational boundary arithmetic, a signed self translation xk : = sxk + c with s ∈ { − 1, 1} shall give the exact preimage. Other transformations shall give sound containing octagons; they need not compute the least octagonal enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. In particular, constant and distinct-coordinate assignments need not retain every representable predecessor constraint. Rounded profiles shall retain the selected outward arithmetic guarantees. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
3. Single-coordinate generalized affine image PPL-SPEC-001208 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
4. Single-coordinate generalized affine preimage PPL-SPEC-001209 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast octagonal enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image PPL-SPEC-001210 Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound octagonal enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as an octagonal expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
6. Expression-left generalized affine preimage PPL-SPEC-001211 With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast octagonal enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image PPL-SPEC-001212 For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
8. Single-coordinate bounded affine preimage PPL-SPEC-001213 With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast octagonal enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Limited threshold octagonal extrapolation1
1. Default octagonal stop points PPL-SPEC-001214 CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001215] with the finite ordered stop points − 2, − 1, 0, 1, 2. These are bounds on the signed forms in that contract: a stop s on a unary form 2xi means xi ≤ s ⁄ 2, while a stop on xi + xj means xi + xj ≤ s. Already representable stop values shall be retained exactly.
The ascending operand order Y ⊆ X, empty and zero-dimensional cases, source preservation and precision-sensitive token rule shall be those of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. Sharing the default stop-point values between calls shall not affect mathematical results. This convenience overload shall not add a convergence guarantee to CC76 extrapolation.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
2. Threshold octagonal extrapolation and precision-sensitive tokens PPL-SPEC-001215 Let X be the receiver's entry set and Y the argument's entry set, with Y ⊆ X. The explicit-iterator CC76 operator shall produce an octagonal enclosure of X, preserving dimension. An empty argument and zero-dimensional operands shall preserve the receiver's entry set.
For nonempty operands and exact rational support computations, define bZ(v) = sup{v⋅p ∣ p ∈ Z} for the signed forms v ∈ {±2ei, ±ei±ej (i < j)}. With no delay token, a finite stable bound bX(v) = bY(v) shall be retained. A bound that increased strictly shall be replaced by the least supplied stop point not below bX(v), or removed if no such stop exists. An unbounded form shall remain unbounded. The result shall denote the conjunction of these closed upper bounds. This characterization concerns real-coordinate sets, including when the stored coefficient type is integral.
Other supported profiles shall compare outward closed profile bounds and assign chosen stops outward, preserving every point of X under 🔗 1. Octagonal values, numerical profiles and valid use. Rounded closure shall not be assumed canonical or required to compute exact real supports. General relational CC76 iterations shall carry no finite-stabilization guarantee.
The half-open stop-point range shall use readable multipass forward iterators and finite values sorted in nondecreasing numerical order. Empty ranges and duplicates shall be admitted. Values and iterators shall remain live and stable throughout the call, shall not borrow storage invalidated by the call, and shall support the selected profile's comparisons and outward assignment.
A null token pointer or zero counter shall select the undelayed result. With a positive counter, the receiver shall retain X; exactly one token shall be consumed when the corresponding undelayed result strictly enlarges X, and otherwise none shall be consumed. The counter shall be a live, separately owned, externally synchronized writable unsigned object. Neither the argument's represented value nor the supplied stop-point values shall be changed.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
Incoming link from: 4. Limited semantic octagonal extrapolation1
3. Semantic octagonal widening and default widening alias PPL-SPEC-001216 With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall return an octagonal set containing both, with the same ambient dimension. An empty or singleton argument, or an increase in affine dimension from Y to X, shall retain X. widening_assign shall have the same behavior as BHMZ05_widening_assign with the same argument and token pointer.
For equal positive affine dimension and exact rational support computations, the undelayed result shall implement the semantic standard widening: obtain a nonredundant octagonal inequality description of Y, retain its inequalities satisfied by every point of X, and conjoin the retained inequalities. The affine-dimension guard and strong reduction shall make this result independent of equivalent input descriptions, redundant bounds, representation-only cache changes and choices of a strongly reduced octagonal description. This shall not require a least possible widening.
Supported rounded profiles shall preserve inclusion under the numerical prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use; the exact-support characterization shall apply when the relevant support and reduction calculations are exact. A smaller resulting set shall not be promised than is established by the selected widening and arithmetic profile.
The precision-sensitive token rule in 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens shall apply to this operator's undelayed result. Equal entry sets and self-aliasing shall preserve their set and shall not consume a token.
In a fixed dimension and profile, form an ascending iteration by first constructing an enclosure of the preceding widened result and the next input, then invoking this operator on that enclosure with the preceding result as argument. Under its inclusion and numerical prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve the convergence guarantee.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
4. Limited semantic octagonal extrapolation PPL-SPEC-001217 With Y ⊆ X in the ascending operand order, limited_BHMZ05_extrapolation_assign shall improve the semantic widening of 🔗 3. Semantic octagonal widening and default widening alias using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
With a fixed finite limiting system, fixed dimension/profile, the admitted normalization and widening prerequisites, and a finite unreplenished token budget, the prescribed ascending recurrence shall retain finite stabilization. Arbitrarily changing the limiting system shall carry no such general guarantee.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
5. Octagonal narrowing and descending operand order PPL-SPEC-001218 Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall produce R with X ⊆ R ⊆ Y, preserving ambient dimension. An empty receiver, zero-dimensional operands and self-aliasing shall preserve the receiver's entry set.
For nonempty operands and exact rational support computations, use the signed forms and supports of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite and bX(v) otherwise. Thus it may restore a finite previous bound even when the current one is tighter; it shall recover a current bound in a direction where the previous set is unbounded. It shall not simply retain every improvement in the receiver.
Supported rounded profiles shall use their outward closed profile bounds while preserving both inclusions. Keep every finite previous bound even when the corresponding current bound remains infinite in rounded closure. The exact-support characterization shall apply when the corresponding support computations are exact. Under exact support arithmetic in a fixed dimension, descending iteration that passes each result as the next previous argument shall stabilize after finitely many strict changes: a strict step must make a previously unbounded primitive form finite. Finite-carrier profiles shall stabilize under the same descending inclusion and arithmetic conditions. No stabilization guarantee shall be inferred for other operator/profile/iteration combinations without its own justification.
The receiver/argument order shall be the descending order stated above, rather than the ascending order used by widening. A distinct previous argument shall retain its represented value.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
6. Limited threshold octagonal extrapolation PPL-SPEC-001219 With Y ⊆ X in the ascending operand order, limited_CC76_extrapolation_assign shall improve the default threshold extrapolation of 🔗 1. Default octagonal stop points using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
This limited operator shall not add a general finite-stabilization guarantee to relational CC76 extrapolation, even with a fixed finite limiting system.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
1. Closed octagonal support hull of geometric generators PPL-SPEC-001162 Octagonal_Shape(gs) shall construct the least target-profile octagonal enclosure of the convex set generated by gs. Its closed boundaries shall include finite limiting points supplied only as closure points. Ordinary points and closure points shall contribute their actual rational coordinates to support extrema, with the generator meanings in 🔗 1. Generator kinds and numerical prerequisites and 🔗 2. Construction of nonzero lines and rays. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so exactly when that scalar product is nonzero. A zero directional product shall retain any finite bound on that normal.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Divisors, zero trailing coordinates and ambient dimension shall retain their generator-system meanings.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
Incoming link from: 1. Octagonal time evolution by nonnegative rates1
2. Complexity-sensitive octagonal conversion from polyhedra PPL-SPEC-001163 Octagonal_Shape(ph,complexity) shall construct an octagonal set containing the source closed or not necessarily closed polyhedron. The default ANY_COMPLEXITY and the explicit SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY values shall be admitted.
ANY_COMPLEXITY shall produce the least target-profile octagonal enclosure and shall detect an empty source exactly. For a nonempty source, strict finite boundaries shall contribute their limiting suprema to the closed result. Primitive bounds shall use the exact signed supports and target normalization in 🔗 1. Closed octagonal support hull of geometric generators, including doubling a unary support before rounding. This guarantee shall not depend on an equivalent source constraint/generator representation or cache history.
SIMPLEX_COMPLEXITY shall give the same primitive support bounds for every nonempty source. It may use the closed relaxation obtained by replacing each strict source row by its weak counterpart. Therefore an empty not necessarily closed source whose closed relaxation is nonempty need not be detected as empty. An already available valid generator representation may give the stronger exact-empty result without exceeding the selected complexity class.
POLYNOMIAL_COMPLEXITY shall preserve containment while respecting its polynomial complexity bound. It may conservatively extract and propagate supported information without a universal least-enclosure, exact-emptiness, mandatory-progress or particular iteration fixed-point guarantee. Equivalent source representation/cache histories may yield different permitted conservative enclosures. Each complexity option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction, subject to the stated complexity-dependent emptiness guarantees.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
3. Best octagonal enclosure of Cartesian boxes PPL-SPEC-001164 Octagonal_Shape(box,complexity) shall construct the least target-profile octagonal enclosure of the real Cartesian product represented by box. The source interval endpoint policy shall retain its open/closed meanings. For a nonempty product, an excluded finite endpoint may determine an included limiting bound in the closed result. Any empty factor shall make the result empty in the source ambient dimension; closing endpoints individually shall not turn an empty product into a nonempty one.
For a signed binary normal, its exact support shall combine the two relevant source endpoint contributions before target conversion. The unary support shall be doubled before conversion to its stored target bound. Unbounded contributing endpoints shall leave the corresponding support unrestricted.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
4. Best octagonal enclosure of rational grids PPL-SPEC-001165 Octagonal_Shape(grid,complexity) shall construct the least target-profile octagonal enclosure of the entire rational grid. The constructed octagonal set shall have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use and shall enclose every source grid point under its line and integer-parameter semantics. Integral target bound storage shall not change that result carrier.
For a nonempty grid, a signed primitive normal shall have a finite supremum exactly when it annihilates every line direction, every integer-parameter direction and every difference between its generating base points. In that case the normal shall be constant with its value at any base point. Otherwise its support shall be unbounded in both signs. Implied signed equalities shall be retained whether or not they appear as individual rows of a chosen congruence basis. Periodic restrictions that do not imply such an equality shall impose no finite bound.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
An empty grid shall give empty in its original ambient dimension. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
5. Best octagonal enclosure of bounded-difference shapes PPL-SPEC-001166 Octagonal_Shape(bd,complexity) shall construct the least target-profile octagonal enclosure of the real set represented by bd at entry. Signed sum and difference supports shall include all consequences of the source bounded-difference conjunction, including signed sums obtained by combining source unary restrictions. Source and target numerical profiles may differ; integer source bounds shall still describe real coordinates.
The constructor shall preserve empty and zero-dimensional source meanings. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee. Equivalent source descriptions and normalization histories shall not discard a supported relation.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
Incoming link from: 2. Zero-fixed octagonal coordinate extension1
1. Unrestricted octagonal coordinate extension PPL-SPEC-001198 For entry set X ⊆ ℝn, add_space_dimensions_and_embed(m) shall produce exactly X×ℝm in dimension n + m. Original coordinates shall retain their indices and relationships. New coordinates, in positions n, …, n + m − 1, shall be unrestricted. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the universe. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation. The check shall reject a count whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive request into a smaller successful extension. Rejected dimension requests shall preserve the entry set and dimension.
The ordered product with an independently represented second set is specified by 🔗 7. Ordered Cartesian concatenation of octagonal values.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
2. Zero-fixed octagonal coordinate extension PPL-SPEC-001199 For entry set X ⊆ ℝn, add_space_dimensions_and_project(m) shall produce exactly X×{0}m in dimension n + m. Original coordinates shall retain their indices and relationships. Every new coordinate, in positions n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation, including a mathematical sum outside the range of dimension_type. Rejected dimension requests shall preserve the entry set and dimension. Unrestricted extension is specified separately by 🔗 1. Unrestricted octagonal coordinate extension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
3. Existential removal of selected octagonal coordinates PPL-SPEC-001200 For entry set X ⊆ ℝn and selected entry indices S, remove_space_dimensions(vars) shall existentially eliminate those coordinates. If i0 < ⋯ < im − 1 are the indices outside S, the concrete result shall be
{(xi0, …, xim − 1) ∣ x ∈ X} ⊆ ℝm.Survivors shall be compacted in that ascending order. Removing no coordinates shall preserve the value. Removing a constrained coordinate shall retain relationships implied between surviving coordinates, subject to the stated numerical precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
Every selected index shall be inside the entry space. An out-of-space selection shall throw std::invalid_argument before changing the represented set or dimension, including for empty input. The Variables_Set argument shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
4. Existential removal of trailing octagonal coordinates PPL-SPEC-001201 For entry set X ⊆ ℝn, remove_higher_space_dimensions(k) shall remove indices k, …, n − 1 and retain the prefix in its original order. Its concrete result shall be {(x0, …, xk − 1) ∣ x ∈ X} ⊆ ℝk. Calling it with k = n shall preserve the value.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
The requested prefix length shall satisfy k ≤ n. A larger value shall throw std::invalid_argument before changing the represented set or dimension, including for empty or zero-dimensional input. Selected-coordinate removal is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
5. Injective partial remapping of octagonal coordinates PPL-SPEC-001202 map_space_dimensions(mapping) shall existentially discard entry coordinates outside the mapping domain and place each retained coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from {0, …, n − 1} with image exactly {0, …, m − 1} for some m ≤ n. The concrete result shall be
{(xf − 1(0), …, xf − 1(m − 1)) ∣ x ∈ X}.The result shall have dimension m. An empty mapping shall project to the zero-dimensional value. A permutation shall retain all renamed relationships; an identity mapping shall preserve the value. The exactness, rounded enclosure and empty-set guarantees of 🔗 3. Existential removal of selected octagonal coordinates shall apply to the projection part.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. Queries shall describe one stable mapping throughout the call. A zero-dimensional receiver shall remain unchanged without querying the mapping. Otherwise has_empty_codomain() shall be queried first; when it returns true, neither remaining query shall be called. For a nonempty image the maximum query shall precede individual mapping queries. No fixed count or order of maps queries shall be required. The mapping's value shall remain unchanged apart from effects explicitly permitted by its query contract.
Violating injectivity, source bounds, the contiguous-image condition or query consistency shall be outside admitted use. In particular, output-index holes shall not denote newly introduced free coordinates. Exceptions from mapping queries shall propagate; no rollback of the receiver shall be inferred after such an exception.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
6. Octagonal coordinate expansion by independent fibers PPL-SPEC-001203 For an existing entry coordinate v < n, expand_space_dimension(var,m) shall append coordinates in positions n, …, n + m − 1, retaining the original coordinate positions. Let X ⊆ ℝn be the entry set and let u[v ← a] denote replacing coordinate v of the old-coordinate prefix of u by a. The declared octagonal result shall be the independent-fiber relation
{u ∈ ℝn + m ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.Each replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Equality with the original coordinate or between replicas shall hold only when implied by those restrictions. The result shall contain the generic common-replica expansion relation in [LINK: PPL-LLR-000444]. The displayed relation is itself octagonal. Exact copying of admitted entry bounds shall preserve it; delegated computational rounding shall retain the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use.
Empty input shall remain empty. Zero replicas shall preserve the value after validating var. An out-of-space variable shall throw std::invalid_argument, including for empty input or zero replicas. A final dimension above max_space_dimension() shall throw std::length_error, including a count whose mathematical sum with the current dimension would exceed dimension_type. These rejected requests shall preserve the entry set and dimension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
7. Alternative-coordinate folding of octagonal values PPL-SPEC-001204 fold_space_dimensions(vars,dest) shall combine the alternatives obtained by retaining the entry destination value or choosing the value of any entry coordinate in vars for that destination, then existentially remove every folded coordinate. Surviving indices, including the destination's resulting index, shall be compacted in ascending original order. Other surviving coordinates shall retain their entry meanings within each alternative.
With exact computational arithmetic, including exact halving where needed, the result shall be the least closed octagonal enclosure of the union of those alternatives: each signed unary or binary bound shall be its supremum over that union. The union may be nonconvex. Rounded profiles shall produce a sound enclosure with the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use; they need not produce the least octagonal enclosure. Empty input shall remain empty in the reduced ambient dimension. Empty vars shall preserve the value after checking the destination.
The destination and every folded coordinate shall belong to the entry space, and the destination shall not be in vars. An invalid coordinate or a selection containing the destination shall throw std::invalid_argument before changing the entry set or dimension. This validation shall also apply to empty input. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
8. Dimension-preserving forgetting of octagonal coordinates PPL-SPEC-001205 For entry set X ⊆ ℝn and selected indices S, unconstrain(vars) shall retain ambient dimension n and have concrete result
{y ∈ ℝn ∣ ∃x ∈ X ∀i ∉ S : yi = xi}.unconstrain(var) shall have the same meaning for the singleton selection containing var. Retained coordinates shall keep their original indices; selected coordinates shall be free. Relationships implied between retained coordinates shall be preserved with the declared projection precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal this cylindrification. Rounded profiles shall contain it and may be less precise through closure and bound rounding. Empty input shall remain empty; forgetting every coordinate of a nonempty input shall produce the universe in the same ambient dimension. Forgetting no coordinates shall preserve the value, including in zero dimensions. Integer storage shall still describe real points, including half-integral points.
Every selected coordinate shall belong to the entry space. An out-of-space variable or selection shall throw std::invalid_argument before changing the represented set or ambient dimension, including for empty input. The Variables_Set argument shall remain unchanged. Coordinate removal, which also changes dimension, is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
1. Human-readable octagonal presentation PPL-SPEC-001234 Stream insertion shall write false for a shape whose emptiness is already certified, and true for a universe shape, including their zero-dimensional forms. Otherwise it shall write a conjunction of the stored finite unary and signed binary bounds. A logically empty shape whose emptiness has not been classified may be displayed as a contradictory conjunction. Presentation shall not require computing strong closure or provide a canonical constraint list.
Unary constraints shall precede binary constraints and shall be ordered by increasing coordinate identity. Each unary equality shall be displayed once; otherwise a finite lower side shall precede a finite upper side. For a stored unary bound on twice a coordinate, exact representable halving shall permit the form variable relation value. If such halving is not exact and representable in the selected bound profile, the doubled coefficient shall remain explicit. A sign may be moved to the coefficient side, including -2*variable <= bound, when this denotes the same halfspace. Printed relations, signs and constants shall retain the exact mathematical meaning of the stored bound.
Binary constraints shall be ordered by increasing larger coordinate identity, then increasing smaller coordinate identity. Difference constraints for each pair shall precede sum constraints. Two opposite finite bounds that are additive inverses shall be displayed as one equality; other finite sides shall be displayed as non-strict inequalities. Difference forms may reverse the coordinate order and relation to display a nonnegative constant. Sum forms shall keep the smaller-index coordinate first. Positive-infinite sides shall not be displayed. Consecutive constraints shall be separated by ", "; no ambient-dimension header shall be inserted.
Variable occurrences shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Bound values shall follow the admitted mathematical numeric stream output of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration. Interpreted with their coordinate identities, the printed conjunction shall denote the source's represented real set.
Insertion shall return the supplied stream reference without adding a newline or explicitly flushing it. print() shall send the same presentation to the current std::cerr. Both operations shall preserve the source set, ambient dimension, stored status, matrix and ownership. Stream and formatter failures shall retain their applicable state, exception-mask and partial-output behavior. Rendering callbacks shall not mutate or invalidate traversed source objects.
The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
-
2. Owned octagonal memory accounting PPL-SPEC-001235 external_memory_in_bytes() shall report the owned external storage of the pseudo-triangular bound matrix under 🔗 4. Owned backing storage and live-payload memory accounting, including its backing-row allocation, retained capacity, owned row metadata and external payload of every physically live selected coefficient. Logically empty shapes, inactive geometric content or reduced ambient dimensions shall not remove still-owned allocated capacity from the count. Borrowed views, independently owned runtime temporaries, other objects and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(Octagonal_Shape<T>) plus the external count. Sizes shall be those of the selected build/profile, and the sum shall fit memory_size_type. The selected live coefficient memory hooks shall be well-formed. Both queries shall preserve the source set, ambient dimension, stored status, matrix, ownership and lifetimes. They shall not classify emptiness or recompute strong closure.
The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Live owned storage shall remain unchanged during either query.
-
Incoming links from: 2. Rectilinear distance of octagonal closed-bound tables 2. Rectilinear distance of octagonal closed-bound tables 3. Euclidean distance of octagonal closed-bound tables 3. Euclidean distance of octagonal closed-bound tables 4. Maximum-coordinate distance of octagonal closed-bound tables 4. Maximum-coordinate distance of octagonal closed-bound tables6
1. Octagonal distance normalization, boundaries and workspaces PPL-SPEC-001230 For a nonempty shape of ambient dimension n, let z2k = xk and z2k + 1 = − xk for 0 ≤ k < n. The stored position (i, j) shall describe zj − zi ≤ bij. Let pi be zero for even i and one for odd i. The distance tuple shall contain exactly
Dn = {(i, j) ∣ 0 ≤ i < 2n, 0 ≤ j < i + 2 − pi}.This is the physical pseudo-triangular domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates, with 2n(n + 1) positions. Its 2n diagonal positive-infinity sentinels shall each contribute zero. Its 2n2 other positions shall count each signed octagonal normal once: ±2xk for unary bounds and ±xk±xl for k < l. Unary bounds shall remain doubled in the tuple; the coherently equivalent matrix position shall not be counted again. A positive-infinite bound shall impose no restriction.
The selected tables shall be those used after the call's required strong closure. With exact rational closure, finite entries shall be the primitive suprema of the represented set, with infinity for unbounded forms. Rounded or saturating closure, including integer halving, shall retain 🔗 1. Octagonal values, numerical profiles and valid use; selected tables need not be canonical, idempotent or invariant across alternative source descriptions. The distance shall use these selected tables, as retained in compatible post-call records of 🔗 1. Reloadable octagonal record export. It shall not denote minimum point separation or a Hausdorff distance. Normalization shall preserve each source's represented set and ambient dimension.
Different ambient dimensions shall return false before modifying the result or supplied workspaces. False shall assign no distance for that pair. Dimension-compatible two-empty shapes shall have distance zero; exactly one empty shape shall have positive-infinite distance. In dimension zero, two universe shapes shall also have distance zero. These rules shall apply to logically empty sources whose emptiness has not yet been classified. Equal dimensions shall return true on successful numerical completion, with the value specified by 🔗 2. Rectilinear distance of octagonal closed-bound tables, 🔗 3. Euclidean distance of octagonal closed-bound tables or 🔗 4. Maximum-coordinate distance of octagonal closed-bound tables.
The overload without an explicit temporary type shall use three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar Temp argument shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied-workspace overload shall use the actual type of its three references, which may be an admitted raw or checked numeric type. The supported operation, rounding, representation and overlap conditions of 🔗 20. Distance scratch storage, admissible overlaps and numeric conditions and 🔗 9. Distance workspace protocol and admissible overlaps shall apply to the selected metric specialization, subject to the public source-storage condition below.
Calls evaluating finite entry differences shall use ROUND_DOWN or ROUND_UP, optionally combined with ROUND_STRICT_RELATION. Finite source conversions shall not have to be exact merely to establish the requested directed bound. Paths performing only exact zero or positive- infinity assignments shall admit directions valid for those selected scalar assignments. An output profile shall support positive infinity whenever that outcome is reachable. Every conversion, difference, sum, square, square root and final assignment shall satisfy its selected backend's arithmetic, range, numerical-failure, resource, initialization and nontrapping prerequisites. Native arithmetic shall retain configured support and initialized caller-owned FPU conditions; the call shall preserve caller rounding. Rational square-root precision shall remain stable throughout a dependent call.
Sources shall be live valid objects under 🔗 1. Octagonal values, numerical profiles and valid use. The same shape may be supplied for both operands. The three mutable supplied workspaces shall be live, pairwise distinct and disjoint from source-owned storage. Their entry values need not have mathematical significance when overwritten before reading. The result shall have live assignable storage disjoint from source-owned storage, but may overlap one supplied workspace or its compatible underlying raw storage. When the result overlaps a workspace, the distance shall still use source values on entry. Callers shall preserve object/storage lifetimes and synchronize source access, including logically const cache updates.
Numerical and recoverable resource failures shall retain their selected propagation channels and permitted partial result/workspace states; no aggregate rollback guarantee shall be inferred. Discarded owned temporaries shall be released, while reusable numerical cache storage shall retain its own lifetime and cleanup contract. Ordinary dimension mismatch shall retain the stronger unchanged-result/workspace guarantee above. Otherwise valid calls shall require no additional library initialization beyond their selected representation, numerical and thread runtime prerequisites.
-
2. Rectilinear distance of octagonal closed-bound tables PPL-SPEC-001231 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three rectilinear_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be ∑(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 6. Rectilinear distance of physical octagonal entry arrays.
-
3. Euclidean distance of octagonal closed-bound tables PPL-SPEC-001232 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three euclidean_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be √(∑(i, j) ∈ Dnd 2ij), with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 7. Euclidean distance of physical octagonal entry arrays.
Rational square-root enclosure shall retain 🔗 2. Finite rational square root at the selected irrational precision and the calling precision of 🔗 3. Selection and ownership of irrational rational precision, which shall remain stable throughout the dependent call.
-
4. Maximum-coordinate distance of octagonal closed-bound tables PPL-SPEC-001233 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three l_infinity_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be max(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 8. Maximum-coordinate distance of physical octagonal entry arrays.
-
1. Octagonal time evolution by nonnegative rates PPL-SPEC-001222 Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least octagonal enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive octagonal conversion from polyhedra for ANY_COMPLEXITY. Primitive bounds shall follow the signed supports and unary doubling of 🔗 1. Closed octagonal support hull of geometric generators. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each signed normal v ∈ {±2ei, ±ei±ej (i < j)} with finite entry support supp ∈ Xv⋅p shall retain that bound precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated octagonal abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
Incoming link from: 3. Selected-coordinate integer restriction of octagonal values1
2. Integer-point restriction on every octagonal coordinate PPL-SPEC-001223 For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce an octagonal set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. Integral octagonal bounds shall not imply an integral polyhedron: doubled unary bounds and signed binary relations may retain half-integral points. An identity result shall be admitted even for an integral-bound profile whose entry set has no integer points; tight integer closure shall not be required by this interface.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
3. Selected-coordinate integer restriction of octagonal values PPL-SPEC-001224 Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce an octagonal set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every octagonal coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
4. Bounded-integer wrapping and guarded evolution of octagonal shapes PPL-SPEC-001225 wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a octagonal abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed vars.space_dimension(). Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
5. Topological closure identity for octagonal values PPL-SPEC-001226 topological_closure_assign shall preserve the represented set and ambient dimension of every valid octagonal value. These values are already topologically closed under 🔗 1. Octagonal values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall preserve the owned representation and cache state. It shall not run strong closure, tight integer closure, allocation or numerical arithmetic, nor invoke cooperative-abandonment callbacks.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
-
1. Export of octagonal unary constraints through a destination protocol PPL-SPEC-001240 For a destination of dimension m at least the source dimension n, export_interval_constraints(dest) shall restrict only the corresponding first n coordinates using outward unary consequences of the source. The destination's ambient dimension and coordinate identities shall be retained, and no pre-existing restriction shall be weakened. Source strong closure may update its stored bounds and cache while preserving its represented real set X and ambient dimension.
Let D be the entry destination set and H(X) the Cartesian hull of the source set. A successfully completed export shall produce a destination set D’ satisfying
D∩(H(X)×Rm − n) ⊆ D’ ⊆ D.With unbounded exact rational source closure and exact destination restrictions, the result shall equal that intersection. Other numerical profiles may lose unary information; no best-hull or canonical-bound claim shall follow for them. Existing destination correlations may propagate a restriction to other coordinates; the exporter shall select no coordinate outside the source's ambient space.
A finite stored weight of 2xi shall yield an upper callback bound obtained by halving outward toward positive infinity. A finite stored weight li of − 2xi shall yield a lower callback bound obtained from − li ⁄ 2, outward toward negative infinity when it has the indicated native representation. Callback values shall be supplied as finite native T values, after the outward computation in the shape's extended coefficient type. A positive-infinite stored side shall impose no finite restriction.
For bounded unsigned integer storage, a positive finite li denotes a negative lower endpoint that no finite native T value can express. That lower side shall be omitted. The zero lower side shall still export zero. Upper sides and other coefficient profiles shall retain their stated outward restrictions. A reserved extended-number encoding shall not be passed as an ordinary finite callback bound.
An empty source shall invoke dest.set_empty(). A zero-dimensional universe shall contribute no restriction. A destination of smaller ambient dimension shall cause std::invalid_argument before source normalization or any restrictive callback, including for empty sources. Each restriction callback shall return false exactly when its destination is empty; such a result shall stop further restriction callbacks. No fixed callback count or coordinate order shall be required.
The destination protocol shall perform the indicated conjunctions, preserving its existing restrictions and all coordinate identities. If its own arithmetic is approximate, a successful restriction shall contain the intersection of its entry set with the supplied halfspace and remain within its entry set. The destination, its callback environment and any borrowed storage shall remain live throughout the call. Callbacks shall not mutate or invalidate the source being traversed.
The selected representation, numerical runtime, initialized facilities, arithmetic-range and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Configured native-format admission and caller-owned FPU prerequisites shall apply when the selected T uses native floating arithmetic; nonfloating instances shall need no FPU environment. Recoverable numerical, resource or callback exceptions may propagate. A callback failure may leave the destination partially restricted, with the states and ownership guaranteed by that destination's operations; no aggregate rollback shall be inferred. Source cache updates shall retain their applicable failure guarantees, and discarded owned temporaries shall be released.
-
1. Native interval-affine image PPL-SPEC-001236 For a supported native floating-point boundary type T, a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B, affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted octagonal language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
-
Incoming link from: 3. Generalized interval-linear-form comparisons1
2. Conservative interval-linear-form inequality refinement PPL-SPEC-001237 For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or signed binary octagonal inequality. If the required constant endpoint subtraction and doubled-unary encoding are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. All four sign combinations on distinct coordinates shall be covered. This precision clause shall not apply to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
3. Generalized interval-linear-form comparisons PPL-SPEC-001238 For the form value sets and numerical admission of 🔗 2. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
4. Refinement of a floating interval abstract store PPL-SPEC-001239 For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 5. Box conversion from octagonal shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 5. Box conversion from octagonal shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 5. Box conversion from octagonal shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
-
1. Addition of supported octagonal constraints PPL-SPEC-001167 add_constraint(c) shall conjoin the receiver with the target-profile normalization of the admitted constraint c. The nonconstant supported forms shall be unary bounds and signed two-coordinate bounds with equal nonzero coefficient magnitudes, including equalities. Constant tautologies shall have no effect; constant falsehoods shall make the receiver empty. Constant strict conditions shall retain their truth value. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument without changing the receiver's represented set.
For a unary normalized inequality sxi ≤ b, its stored primitive bound shall be the least admitted target bound at least 2b in the doubled-unary encoding. For a binary normalized inequality sixi + sjxj ≤ b, the bound shall be the least admitted target bound at least b. Signs shall belong to { − 1, 1}. Each side of an equality shall have its own outward bound. The result shall be exactly the intersection of the entry set with these normalized target inequalities; when the normalized bounds are exact, this shall be the concrete conjunction. Every entry point satisfying c shall be retained.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted system rows with the same normalization and validation rules. A descriptor or system dimension at most the receiver dimension shall be accepted, with zero coefficients in omitted trailing coordinates. A larger dimension shall throw std::invalid_argument before changing the receiver's represented set. An empty receiver shall still undergo these validation rules.
An ordinary copying call shall preserve its source descriptor or system. The result shall not borrow source storage. After a recycled-system call, including exceptional return, the only required property of cs shall be safe destruction. A rejected system need not undo earlier accepted rows; no particular row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
-
2. Addition of supported octagonal congruences PPL-SPEC-001168 add_congruence(cg) shall accept congruence equalities whose expression is an admitted unary or equal-magnitude signed two-coordinate equality, together with constant tautologies and falsehoods. An accepted equality shall conjoin the two outward-normalized inequalities defined in 🔗 1. Addition of supported octagonal constraints. A tautology shall have no effect; a falsehood shall make the receiver empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument without changing the receiver's represented set. An adding call shall not silently discard a nontrivial periodic restriction. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these rules to the system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set, including on an empty receiver. Smaller dimensions shall have zero trailing coefficients. Ordinary copying forms shall preserve their source values and shall not borrow their storage. A recycled system shall be required only to remain safely destructible after normal or exceptional return. If a later system row is rejected, preceding accepted rows need not be rolled back; no row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
-
3. Conservative refinement by linear constraints PPL-SPEC-001169 refine_with_constraint(c) shall refine the receiver by an admitted linear constraint without rejecting a row merely because its nonconstant form is not octagonal. A supported closed unary or equal-magnitude signed binary row shall have the outward-normalized conjunction in 🔗 1. Addition of supported octagonal constraints. A supported nonconstant strict inequality shall first be relaxed to its non-strict counterpart and then normalized. An unsupported nonconstant linear form shall have no effect.
Constant true rows shall have no effect and constant false rows shall make the receiver empty, including the strict false condition 0 > 0. An empty receiver shall remain empty. refine_with_constraints(cs) shall apply these rules to the entire conjunction. For entry set X, exact condition set C and result R, X∩C ⊆ R ⊆ X shall hold. For a system, the represented result shall be the intersection with all the retained, relaxed and outward-normalized rows; ignored rows shall impose no restriction.
Source dimensions at most the receiver dimension shall be admitted with zero trailing coefficients. A larger descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set, including when the receiver is empty. Copying calls shall preserve source descriptors and own any resulting bounds independently. Exceptions during a system call need not roll back previously applied refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
4. Conservative refinement by congruences PPL-SPEC-001170 refine_with_congruence(cg) shall conjoin an octagonal congruence equality using the outward-normalized opposite inequalities in 🔗 1. Addition of supported octagonal constraints. An unsupported nonconstant equality shall have no effect. A proper constant false congruence shall make the receiver empty; other proper congruences shall have no effect. A tautology shall have no effect. The real carrier in 🔗 1. Octagonal values, numerical profiles and valid use shall remain unchanged; ignored periodic information shall not turn this call into an integer-valued state restriction.
refine_with_congruences(cgs) shall apply those rules to the conjunction. For entry set X, supplied congruence set C and result R, X∩C ⊆ R ⊆ X shall hold. The result shall equal the intersection with all accepted normalized equality rows, unless a false row makes it empty. Empty receivers shall remain empty.
Larger descriptor or system dimensions shall throw std::invalid_argument before changing the receiver's represented set, including on empty receivers. Smaller dimensions shall use zero trailing coefficients. Copying calls shall preserve their source values; result bounds shall not borrow source storage. A system call that throws need not roll back preceding accepted refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
1. Exact intersection of compatible octagonal values PPL-SPEC-001171 For entry receiver X and source Y, intersection_assign(y) shall replace the receiver by the exact real set X∩Y. This equality shall hold for every admitted numeric profile under its numerical prerequisites, including integral bound storage with half-integral real points.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
2. Conservative and exact-arithmetic octagonal upper bounds PPL-SPEC-001172 For entry receiver X and source Y, upper_bound_assign(y) shall produce an octagonal value R satisfying X∪Y ⊆ R.
When the arithmetic used for normalization and rational strong closure is exact, including unbounded rational-bound profiles, R shall be the least octagonal enclosure of X∪Y. For each admitted octagonal normal a, its finite support shall then be max(supx ∈ Xa⋅x, supy ∈ Ya⋅y), with the doubled unary encoding and unbounded supports interpreted as in 🔗 1. Octagonal values, numerical profiles and valid use. When arithmetic rounds, a less precise containing octagon shall be permitted. An integer boundary type alone shall not imply exact rational strong closure, because half-sums can be inexact.
Self-union and union with an empty operand shall retain their mathematical identity meanings; union with universe shall give universe. These cases shall preserve the real carrier even for integral bound storage.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
3. Certified real set-theoretic union of octagonal values PPL-SPEC-001173 upper_bound_assign_if_exact(y) shall return true only when it replaces the receiver by the exact real union X∪Y of the entry sets. On false, the receiver's represented set shall remain X; internal normalization of either argument may still occur.
With mpq_class boundaries, the decision shall be complete: it shall return true if and only if X∪Y is an octagonal set. Other supported profiles may return false when rounded computation cannot certify exactness, even when the union is octagonal. This includes rational half-sum rounding with mpz_class boundaries. Such an inconclusive false shall not assert that a non-octagonal union has been found.
Successful union shall retain every real point of either input, rather than only its integer points. No success result may fill a missing real point.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
4. Exact integer-point unions of octagonal values PPL-SPEC-001174 integer_upper_bound_assign_if_exact(y) shall be available when T is a supported integral boundary type. Let I = (X∪Y)∩Zn for the entry real sets X, Y, and let H(I) be their integer upper bound: the smallest rational octagonal set containing I. The call shall return true if and only if H(I)∩Zn = I; on true it shall replace the receiver by that integer upper bound. On false it shall preserve the receiver's entry represented set. Cache normalization shall not count as a set change.
Exactness shall concern integer valuations. The result may include nonintegral points absent from both operands and may remove fractional portions of the entry real sets. For example, the integer union of real singletons at zero and one shall have integer upper bound [0, 1]. A nonempty half-integral real input may contain no integer point; if neither operand has an integer point, the integer upper bound shall be empty and the decision shall be true. Integer storage shall continue to have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
5. Least closed octagonal abstraction of subtraction PPL-SPEC-001175 difference_assign(y) shall replace the receiver by the least closed target-profile octagonal enclosure of the concrete real difference X⧵Y of the entry sets. It shall retain every point of X absent from Y. Its precision shall concern the whole relational sets.
For each encoded octagonal normal, the result shall impose the strongest bound expressible in the target profile that is valid on the concrete difference. Finite support suprema shall be computed with their exact boundary meaning before outward target rounding, including doubled unary bounds. Closing a strict complement may retain boundary points removed by subtraction, and a convex enclosure may fill a gap between surviving pieces. For example, removing x0 + x1 = 0 from 0 ≤ x0 + x1 ≤ 2 shall leave the same closed octagonal enclosure. The result shall not be required to be disjoint from Y.
Self-subtraction and subtraction of universe shall give empty. Subtraction of empty shall preserve the entry set. An empty receiver shall remain empty.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
6. Meet-preserving octagonal simplification in a context PPL-SPEC-001176 simplify_using_context_assign(y) shall replace entry receiver X by an octagonal simplification R using entry context Y, satisfying
R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. An unchanged receiver shall be an admitted result; strict progress shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true return need not certify nonemptiness.
For self-aliasing, the context shall mean the entry receiver, so the meet-preservation equation shall be R∩X = X. A distinct context shall preserve its entry denotation. Empty/disjoint contexts, empty receivers and zero-dimensional values shall be admitted.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
Incoming link from: 1. Unrestricted octagonal coordinate extension1
7. Ordered Cartesian concatenation of octagonal values PPL-SPEC-001181 concatenate_assign(other) shall replace an entry value X ⊆ ℝn with exactly X×Y ⊆ ℝn + m, where Y ⊆ ℝm is other's entry value. The first n coordinates shall belong to X, followed by Y's coordinates in their original order. Cross-block consequences shall follow from Cartesian independence, rather than identifying coordinates with equal indices in the two operands.
An empty operand shall give empty in dimension n + m. Zero-dimensional universe shall be an identity on either side; zero-dimensional empty shall be an annihilator while retaining the sum dimension. Self concatenation shall use two independent copies of the entry value. A requested sum dimension above max_space_dimension() shall throw std::length_error.
The supported profiles, real carrier, runtime initialization, numerical range and rounding, FPU, resource and synchronization prerequisites of [LINK: PPL-SPEC-001146] shall apply. A distinct other shall retain its represented entry value; logically const cache normalization may change its storage. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
1. Reloadable octagonal record export PPL-SPEC-001227 For a valid admitted source of ambient dimension n, ascii_dump(stream) shall write the literal "space_dim ", the ambient dimension and a newline. It shall then write the three stored status fields in ZE, EM, SC order, with each keyword prefixed by + or -. One space shall separate the first two fields, two spaces shall separate the last two fields, and one space and a newline shall follow the last field.
The following payload shall be the pseudo-triangular matrix record of 🔗 1. Pseudo-triangular mathematical-value records, with matrix space dimension n. It shall contain its dimension line followed by its physical rows in their stored order, including diagonal positive-infinity sentinels. A zero-dimensional matrix shall have no coefficient rows. The status fields shall retain the stored zero-dimension, emptiness and strong-closure conventions; export shall not require first classifying emptiness or computing strong closure.
Coefficient output shall retain the selected mathematical-value formatting of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration, including exact finite native values independently of caller precision. Under compatible record, numeric-profile, locale and version conventions, the complete record shall retain enough information for 🔗 2. Compatible octagonal record loading and failure state to restore the same mathematical set and ambient dimension. Native object bytes and a floating zero sign shall not be part of this mathematical round-trip guarantee.
Export shall preserve the source set, dimension, stored status, matrix and ownership. The no-argument ascii_dump() shall send the same record to the current std::cerr. Output failure shall follow the stream's selected state and exception behavior, retaining partial output without certifying successful delivery.
The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 4. Octagonal_Shape
internal status signed-keyword export . -
2. Compatible octagonal record loading and failure state PPL-SPEC-001228 For a complete valid record of 🔗 1. Reloadable octagonal record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any live valid receiver by the recorded ambient dimension and mathematical set. Previous receiver dimensions, emptiness and strong-closure status shall not affect successful restoration. The recorded status fields shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.
The decoded ambient dimension shall not exceed max_space_dimension(), including for empty records. A greater value shall return false before the matrix payload is processed.
A missing or incorrect space_dim keyword, rejected ambient dimension, missing or malformed required status word, or truncated or rejected matrix payload shall return false when the component extractions return normally. Each status word shall have its expected keyword and a + or - prefix. The loaded matrix space dimension shall equal the recorded ambient dimension; a mismatch shall return false even for empty or zero-dimensional records. Independently of the ambient dimension, an unsupported nested matrix dimension shall return false before matrix resizing or storage-size arithmetic, as specified by 🔗 2. Exact value-record loading and rejection states. Exact scalar acceptance and numerical-payload rejection shall retain that contract. Stream masks, numerical policies and recoverable resource failures shall retain their own exception channels.
Successful restoration assumes a trusted, complete and dump-compatible record. After repair of any legacy rounded cache, the loaded representation shall satisfy the shape invariant. A detected inconsistency shall return false in every build. Semantic queries or further shape operations require a complete valid representation.
For rounded or bounded coefficient profiles, a loaded nonempty status that certifies strong closure may have its feasibility rechecked against the stored bounds. An inconsistent bound system may then be classified empty; otherwise its closure certification may be restored. This compatibility repair shall preserve the stored matrix's exact represented set and ambient dimension; it shall not promise canonical or maximally precise rounded closure.
A false return or exception may leave replaced dimension or status fields and a partially loaded matrix. It shall not promise rollback or a complete mathematical value. The receiver shall retain safely destructible ownership and may be replaced by a complete valid assignment before semantic queries or operations requiring a valid shape. Consumed input shall not be restored, and the library shall not take ownership of the stream.
The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Discarded owned temporaries shall be released on reported failure.
The internal status contract shall follow 🔗 5. Octagonal_Shape
internal status signed-keyword loading and rejection . -
3. Octagonal representation invariant query PPL-SPEC-001229 For a live, well-owned and safely indexable representation whose selected scalar operations are admitted, OK() shall check the pseudo-triangular matrix's storage and coefficient validity and the status-condition compatibility. The matrix space dimension shall equal the ambient dimension, including empty and zero-dimensional values. A violation of these checked conditions shall return false.
Once those conditions hold, certified empty representations shall retain their inactive-geometric-data admission, and zero-dimensional representations shall require no coefficient-geometry checks. A positive-dimensional nonempty representation shall reject a stored negative-infinite bound or a diagonal entry other than positive infinity.
For an unbounded coefficient base whose numeric traits declare exact arithmetic, certified strong closure shall be checked against matrix recomputation. For every exact coefficient base, including bounded integer storage, certified strong closure shall satisfy the native strong-coherence inequalities. The selected extended arithmetic, including its rounding and saturation, shall retain the prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use. Bounded saturating closure shall not be required to pass an exact fixed-point test. Floating coefficient bases shall not be required to pass an exact fixed-point or exact strong-coherence test merely because their rounded closure is certified. Passing the applicable checks shall return true.
The query shall preserve the receiver's represented set, ambient dimension, stored status, matrix and ownership. It may copy matrices and recompute derived data in temporary objects; resource and numerical exceptions may propagate through their selected channels. Debug builds may emit invariant-failure diagnostics to std::cerr without a fixed wording. Discarded owned temporaries shall be released.
A true result shall not be an emptiness, semantic equality or minimal-storage answer. This query shall not be a corruption scanner for arbitrary pointers, broken object lifetimes or non-indexable fabricated storage. The numerical runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
The internal status contract shall follow 🔗 3. Octagonal_Shape
internal status consistency predicate . -
Incoming links from: 10. Native finite affine interval congruence classification 1. Rational affine image of one coordinate 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image 4. Single-coordinate generalized affine preimage 5. Expression-left generalized affine image 6. Expression-left generalized affine preimage 7. Single-coordinate bounded affine image 8. Single-coordinate bounded affine preimage 1. Default octagonal stop points 2. Threshold octagonal extrapolation and precision-sensitive tokens 2. Threshold octagonal extrapolation and precision-sensitive tokens 3. Semantic octagonal widening and default widening alias 3. Semantic octagonal widening and default widening alias 4. Limited semantic octagonal extrapolation 5. Octagonal narrowing and descending operand order 6. Limited threshold octagonal extrapolation 1. Closed octagonal support hull of geometric generators 1. Closed octagonal support hull of geometric generators 2. Complexity-sensitive octagonal conversion from polyhedra 3. Best octagonal enclosure of Cartesian boxes 3. Best octagonal enclosure of Cartesian boxes 4. Best octagonal enclosure of rational grids 4. Best octagonal enclosure of rational grids 4. Best octagonal enclosure of rational grids 5. Best octagonal enclosure of bounded-difference shapes 5. Best octagonal enclosure of bounded-difference shapes 1. Unrestricted octagonal coordinate extension 2. Zero-fixed octagonal coordinate extension 3. Existential removal of selected octagonal coordinates 4. Existential removal of trailing octagonal coordinates 5. Injective partial remapping of octagonal coordinates 6. Octagonal coordinate expansion by independent fibers 6. Octagonal coordinate expansion by independent fibers 7. Alternative-coordinate folding of octagonal values 7. Alternative-coordinate folding of octagonal values 8. Dimension-preserving forgetting of octagonal coordinates 1. Human-readable octagonal presentation 2. Owned octagonal memory accounting 1. Octagonal distance normalization, boundaries and workspaces 1. Octagonal distance normalization, boundaries and workspaces 1. Octagonal time evolution by nonnegative rates 2. Integer-point restriction on every octagonal coordinate 3. Selected-coordinate integer restriction of octagonal values 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 5. Topological closure identity for octagonal values 1. Export of octagonal unary constraints through a destination protocol 1. Native interval-affine image 2. Conservative interval-linear-form inequality refinement 3. Generalized interval-linear-form comparisons 4. Refinement of a floating interval abstract store 1. Addition of supported octagonal constraints 2. Addition of supported octagonal congruences 3. Conservative refinement by linear constraints 4. Conservative refinement by congruences 4. Conservative refinement by congruences 1. Exact intersection of compatible octagonal values 2. Conservative and exact-arithmetic octagonal upper bounds 2. Conservative and exact-arithmetic octagonal upper bounds 3. Certified real set-theoretic union of octagonal values 4. Exact integer-point unions of octagonal values 4. Exact integer-point unions of octagonal values 5. Least closed octagonal abstraction of subtraction 6. Meet-preserving octagonal simplification in a context 1. Reloadable octagonal record export 2. Compatible octagonal record loading and failure state 3. Octagonal representation invariant query 3. Octagonal representation invariant query 2. Dimensioned empty and universe octagonal construction 3. Owned octagonal copying, assignment and cleanup 4. Outward conversion between octagonal coefficient profiles 5. Whole octagonal value exchange 6. Octagonal construction from supported constraints 7. Octagonal construction from supported congruences 8. Ambient and affine dimension of octagonal values 9. Owned constraint and affine-equality exports of octagonal values 10. Ordinary classification of octagonal values 11. Octagonal set relations, equality and compatible hashes 12. Relations between octagonal values and linear constraints 13. Relations between octagonal values and linear congruences 14. Subsumption of geometric generators by octagonal values 15. Affine boundedness, extrema and witnesses on octagonal values 16. Constant affine values and zero frequency on octagonal sets83
1. Octagonal values, numerical profiles and valid use PPL-SPEC-001146 Octagonal_Shape<T> shall represent a topologically closed subset of Rn by a finite conjunction of unary inequalities ±xi ≤ c and binary inequalities sixi + sjxj ≤ c, where i ≠ j and si, sj ∈ { − 1, 1}. Empty and universe shall be distinct in every supported ambient dimension. Coordinates absent from all restrictions shall remain free.
coefficient_type_base shall be T. Supported native integer, supported native floating, GMP integer and GMP rational bases shall supply the declared extended coefficient_type, including positive infinity and rounding-aware bound arithmetic. A positive-infinite bound shall impose no restriction. Every profile shall retain a real coordinate carrier. Integer bound storage shall allow fractional points, including a unary restriction 2xi ≤ 1 and a singleton xi = 1 ⁄ 2.
Strong closure and reduction shall preserve the represented real set. With unbounded exact rational arithmetic, strong closure shall expose all implied octagonal bounds. Rounded or saturating sums and divisions, including halving an odd integer during strong closure, shall not imply exact canonical, idempotent or maximally precise closure. Unbounded integer storage shall not by itself qualify as exact rational strong-closure arithmetic. An outward finite approximation shall not exclude source points satisfying the admitted constraint.
Objects and supplied descriptors shall be live, valid and externally synchronized. Coordinate identities and reserved dimension indications shall follow 🔗 1. Coordinate type and reserved dimension index. Descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply where used. Native floating operations shall require configured support and their declared initialized rounding environment. Finite operands, intermediate arithmetic and output descriptor coefficients shall meet the selected numerical facilities' range, rounding and resource prerequisites. A public operation shall not create an intermediate that violates the numerical preconditions it selects for admitted input. Uses that may update an object's caches shall not race with another use of that object.
-
2. Dimensioned empty and universe octagonal construction PPL-SPEC-001147 Octagonal_Shape(d,kind) shall construct EMPTY or UNIVERSE in ambient dimension d as selected by kind. Default construction shall produce zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall report the selected profile's structural coordinate limit. A requested dimension above that limit shall throw std::length_error before allocating the corresponding matrix storage, including requests whose doubled signed-node count would overflow the dimension type. The reported limit shall not promise that actual resources exist for every dimension below it. Failed construction shall release the resources acquired by the incomplete object.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
3. Owned octagonal copying, assignment and cleanup PPL-SPEC-001148 Ordinary copying shall construct an independent shape with the source's represented set and ambient dimension. Assignment shall replace the receiver's set and dimension with the source's, including different dimensions, and return a reference to the receiver. Self-assignment shall preserve the represented value. Independent source or target mutation and source destruction shall not alter the other owned value.
The three declared complexity values shall not change ordinary copying. Destruction shall release owned resources exactly once. Failed construction shall release resources acquired by the incomplete object. Failed assignment shall preserve the ownership required for safe destruction; rollback of the entry value shall not be required.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
4. Outward conversion between octagonal coefficient profiles PPL-SPEC-001149 Construction from Octagonal_Shape<U> with another supported coefficient base shall preserve the source dimension and produce an independently owned set containing every source point. Finite signed-node bounds selected for conversion shall be converted outward; exactly representable values shall retain their values and positive infinity shall remain unrestricted. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const strong closure while preserving its represented set. Each declared complexity value shall give the same numerical conversion. Exact representability of the converted entries shall not imply that later sums or half-sums are exact in the destination profile. Source and destination mutation/destruction shall retain independent ownership. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
5. Whole octagonal value exchange PPL-SPEC-001150 m_swap and free swap shall exchange complete represented values and ambient dimensions, including different dimensions and empty/universe values. Owned matrix storage and cache metadata shall remain associated with the exchanged value. A self-swap shall preserve the value. Neither operation shall require coordinate compatibility, numerical reapproximation or a copy of the represented constraints.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
Incoming link from: 7. Octagonal construction from supported congruences1
6. Octagonal construction from supported constraints PPL-SPEC-001151 Construction from Constraint_System shall inherit its ambient dimension and describe the conjunction of its supported constraints, rounded outward where required by the coefficient profile. Supported nonconstant rows shall be weak inequalities or equalities with one nonzero coordinate coefficient, or two nonzero coordinate coefficients of equal absolute magnitude.
Normalization shall preserve the signs of both coordinates. For distinct coordinates, a(sixi + sjxj) ≤ b, with a > 0, shall use an outward approximation of b ⁄ a. Unary storage shall account for its doubled-coordinate encoding, so axi ≤ b shall use an outward approximation of 2b ⁄ a before interpreting the unary bound. Equality shall impose both corresponding weak inequalities. Exact representable normalized bounds shall retain their values. This shall give the optimal supported primitive bound in the selected profile; it shall not imply exact rational closure in a rounded profile.
Tautological rows shall impose no restriction; inconsistent rows shall make the represented conjunction empty. These constant-row meanings shall also apply to strict constant rows. A nontrivial strict row or non-octagonal row shall throw std::invalid_argument rather than silently being accepted as an exact supported descriptor. An empty constraint system shall give universe in the system's ambient dimension. The supplied system shall be preserved. can_recycle_constraint_systems() shall return false. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
7. Octagonal construction from supported congruences PPL-SPEC-001152 Construction from Congruence_System shall inherit its ambient dimension. A modulus-zero row shall be treated as its equality and shall use the supported signed unary/binary syntax and outward normalization in 🔗 6. Octagonal construction from supported constraints. Tautological congruences shall impose no restriction; inconsistent ones shall make the result empty. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument. Periodic solutions shall not be replaced by an integer-coordinate interpretation of the convex real carrier.
An empty congruence system shall produce universe in its ambient dimension. The source system shall be preserved. can_recycle_congruence_systems() shall return false. Failed construction shall release acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
8. Ambient and affine dimension of octagonal values PPL-SPEC-001153 space_dimension() shall return the ambient coordinate count independently of emptiness and affine restrictions. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented real set. Both zero-dimensional values shall have affine dimension zero.
Implied unary equalities, signed-sum and signed-difference equalities and redundant equality chains shall contribute according to their independent rank. Rounded graph bounds shall not certify an equality that the represented set does not satisfy. Fractional fixed coordinates shall count as fixed even under integer storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
9. Owned constraint and affine-equality exports of octagonal values PPL-SPEC-001154 constraints() shall return an owned constraint system of the same ambient dimension whose conjunction equals the represented real set. minimized_constraints() shall additionally give an irredundant defining conjunction: removing any returned nontrivial row shall enlarge that set. A particular row order, equality orientation or unique minimal cardinality shall not be required. Stored unary halves and all finite signed bounds shall retain their exact mathematical values in the exported descriptors.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, with the same ambient and affine dimensions. Their nonempty equality system shall form an independent basis of its affine restrictions. They shall not replace inequalities by periodic conditions. Empty shall export inconsistency; zero-dimensional universe shall export a tautological conjunction.
All returned systems shall remain usable after source mutation or destruction. Source normalization shall preserve its represented set, including for rounded and integer half-sum profiles. Export coefficients shall meet the configured Coefficient output range prerequisites.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
10. Ordinary classification of octagonal values PPL-SPEC-001155 The ordinary classification calls shall decide their named mathematical properties of the represented real set: emptiness, universe, discreteness, boundedness, topological closure and existence of an integer point. Every octagonal shape shall be topologically closed. A nonempty convex shape shall be discrete exactly when it is a singleton. Empty shall be discrete and bounded and shall contain no integer point. Zero-dimensional universe shall be nonempty, universe, bounded and discrete and contain its integer empty tuple.
contains_integer_point() shall decide intersection with Zn, independently of the stored coefficient type. A nonempty half-integral singleton shall therefore have no integer point, including when its doubled unary bounds are stored as integers.
constrains(var) shall report whether that coordinate is restricted, including by a binary relation: the set is unrestricted in that coordinate exactly when it is invariant under every translation along the coordinate axis. Empty shall constrain every valid coordinate. A variable beyond the ambient dimension shall throw std::invalid_argument.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
11. Octagonal set relations, equality and compatible hashes PPL-SPEC-001156 For compatible dimensions, contains(y) shall be true exactly when every point of y belongs to the receiver, strictly_contains(y) exactly for proper set containment, and is_disjoint_from(y) exactly when their intersection is empty. These calls shall throw std::invalid_argument when the ambient dimensions differ. A nonempty set shall strictly contain empty, including in zero dimensions; equal sets shall never strictly contain one another.
Free equality shall compare ambient dimension and the represented set, and inequality shall be its logical negation. Different dimensions shall compare unequal without throwing. Equal values shall have equal hash_code() results; unequal values may collide. Mathematical equality shall not depend on row insertion order or the existence of one canonical rounded matrix.
A stored bound of the inner octagon that is at least as tight as the corresponding outer bound certifies that inequality. If rounded or saturated closure leaves a weaker bound, decide the inequality using the exact support of the stored inner octagon, including the strong-coherence half-sum.
Both operands' values and dimensions shall be preserved. The same owned shape may be supplied on both sides; containment/equality shall then be true and proper containment false, while self-disjointness shall mean emptiness.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
12. Relations between octagonal values and linear constraints PPL-SPEC-001157 relation_with(c) shall return the exact Poly_Con_Relation flags of the represented set relative to c under 🔗 1. Constraint-relation assertion values and named factories. Inclusion shall mean every source point satisfies the row, disjointness that none does, and saturation that its affine expression is zero throughout the source. Strict intersection shall retain its declared logical meaning. Empty and constant-row cases shall retain the simultaneous flags implied by those meanings.
The supplied linear row need not have octagonal syntax and may be weak, strict or an equality. Its dimension shall not exceed the receiver's; otherwise the call shall throw std::invalid_argument. The descriptor and source value shall be preserved. Rounded outer extrema alone shall not justify a relation flag that is false of the represented set.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
13. Relations between octagonal values and linear congruences PPL-SPEC-001158 relation_with(cg) shall classify the represented real set using Poly_Con_Relation. Modulus zero shall have equality meaning. For a proper modulus, inclusion shall mean every source point satisfies the periodic condition; disjointness shall mean none does. For a nonempty source, saturation shall mean that its affine image is one value in the eligible modulus lattice, including a nonzero lattice value. Other overlapping cases shall use the declared strict-intersection flag. Empty shall retain its set-theoretic simultaneous flags.
General admitted affine congruences shall be queryable even when their solution sets cannot be represented by an octagonal shape. The call shall throw std::invalid_argument when the descriptor dimension exceeds the source's. The descriptor and represented set shall be preserved. The decision shall use real convex points rather than an integer-only reinterpretation of integer bound storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
14. Subsumption of geometric generators by octagonal values PPL-SPEC-001159 relation_with(g) shall report Poly_Gen_Relation::subsumes() exactly when the represented set subsumes g under 🔗 6. Generator-relation assertion values and named factories, and nothing() otherwise. Points and closure points shall use their exact rational coordinates; their membership tests shall agree because the domain is topologically closed. A ray direction r shall satisfy a⋅r ≤ 0 for every defining inequality a⋅x ≤ b; a line direction shall satisfy the corresponding equalities a⋅r = 0.
Empty shall subsume no generator. A lower-dimensional generator shall have zero trailing coordinates. A generator exceeding the source dimension shall throw std::invalid_argument. The descriptor and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
15. Affine boundedness, extrema and witnesses on octagonal values PPL-SPEC-001160 bounds_from_above and bounds_from_below shall decide whether the supplied affine expression has a finite corresponding bound on the represented set. Empty shall bound every admitted expression in both directions; zero-dimensional universe shall bound every admitted constant. An expression dimension exceeding the receiver's shall cause these calls and all extrema overloads to throw std::invalid_argument.
For a nonempty source with exact unbounded rational strong-closure arithmetic, maximization/minimization shall succeed exactly when the requested extremum is finite and return its exact rational value. Every finite extremum of a closed polyhedral octagonal set shall be attained.
When strong-closure arithmetic rounds, saturates or overflows, the overload without a witness may use an outward closed-table bound for an octagonal affine objective: a returned upper value shall be at least the actual supremum and a lower value at most the actual infimum. Halving odd integer bounds shall count as rounded arithmetic. For a no-witness extremum call, overflow may cause false when a finite closed-table bound cannot be obtained. Non-octagonal affine objectives shall use exact optimization of the represented constraints rather than treating a rounded outer estimate as an exact extremum.
On successful witness overloads, the returned rational value shall be the exact extremum of the represented source, and g shall be an ordinary point in that set attaining it. All coordinates of the witness shall satisfy the source constraints. The attainment Boolean shall concern the actual extremum, not certify that an approximate numerical bound is attained. An ordinary successful call on these closed sets shall set it to true. On false, all supplied scalar outputs, the Boolean and any supplied witness shall retain their entry values. Constant expressions and zero-dimensional cases shall retain their exact meanings.
Numerator and denominator output objects shall be distinct and satisfy the configured Coefficient range prerequisites. A successful rational output shall have a positive denominator. The supplied expression and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
16. Constant affine values and zero frequency on octagonal sets PPL-SPEC-001161 frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty represented set assigns one unique real value to expr. On success, fn/fd shall be 0/1 and vn/vd shall equal that exact constant, with a positive denominator. A nonconstant or empty source shall return false and leave all four scalar outputs unchanged. Constant expressions and zero-dimensional universe shall obey the same rule.
Signed equality substitution and fractional fixed coordinates shall retain their mathematical values. Inexact closure bounds shall not establish a constant expression unless it truly is constant on the represented set. The call shall throw std::invalid_argument if the expression dimension exceeds the source dimension. The four scalar output objects shall be pairwise distinct and satisfy their configured Coefficient range prerequisites. The expression and represented set shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
Incoming links from: 1. Descriptor absolute-error interval 1. Descriptor absolute-error interval 2. Owned constant construction and evaluation 3. Owned variable lookup and symbolic fallback 4. Owned exact opposite 5. Owned rounding cast 6. Owned floating sum 7. Owned floating difference 8. Owned floating multiplication 9. Owned floating division 10. Owned expression exchange 11. Descriptor-based relative rounding error 12. Box-based affine intervalization13
1. Owned floating-expression protocol and lifetime PPL-SPEC-001000 Floating_Point_Expression<I, Format> shall provide polymorphic numerical linearization and virtual destruction. FP_Linear_Form shall denote Linear_Form<I>, FP_Interval_Abstract_Store shall denote Box<I> and FP_Linear_Form_Abstract_Store shall denote the map from valid coordinate indices to such forms. I shall have a supported native floating-point boundary type and well-formed interval operations under the selected arithmetic/FPU initialization prerequisites. Format shall provide BASE, MANTISSA_BITS and EXPONENT_BIAS describing the analyzed arithmetic; a format-enumeration member shall not be required. The radix shall be an integer at least two, precision shall be positive, and bias/exponent calculations shall stay within their representable descriptor ranges. Custom decimal radices shall remain admitted. Its modeled rounding and underflow behavior shall meet the selected error bounds in 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval.
All expression coordinates and coefficients used in intervalization shall have corresponding intervals in the entry box. The box and every symbolic binding shall soundly describe the same modeled state. A successful linearize() shall enclose all corresponding modeled expression values, including operation rounding. Input entry values shall determine the result, including when the output is a symbolic-store binding. Other input bindings shall remain unchanged. A false result shall not certify an enclosure or promise preservation of the previous output. Allocation, coefficient and custom-node callback exceptions may propagate; live owners and outputs shall remain safely destructible and reusable without whole-operation rollback.
Pointer-taking concrete nodes shall acquire exclusive ownership of their nonnull child trees after successful construction. Children shall be independently owned, with no shared ownership or cycles. Deleting through the base pointer shall destroy every owned child exactly once. Concrete nodes shall provide neither public copying nor implicit move ownership. Borrowed access to a child shall not transfer its ownership.
Each of the six unary and binary operator nodes shall expose operand_ptr as std::unique_ptr<Floating_Point_Expression<I, Format>> and accept default-deleter unique_ptr rvalues whose child pointers convert to the base pointer, in addition to its raw-pointer adoption constructor. These arguments shall be nonnull and independently owned. The owning overloads shall not throw and shall consume their arguments' ownership. A pre-existing child owner shall retain its subtree until the parent constructor begins. If evaluating another argument throws, temporary owning arguments already created shall destroy their subtrees during unwinding. Binary nodes shall destroy the first operand before the second operand; unary nodes shall destroy their sole operand. Neither ownership form shall add a child allocation.
overflows() shall return true exactly when the constant or a homogeneous coefficient interval is unbounded. It shall inspect every declared coordinate, treating absent coefficients as zero under 🔗 6. Dimensions and borrowed coefficient access, without changing the form.
-
2. Owned constant construction and evaluation PPL-SPEC-001001 The two-bound constructor shall store the closed interval between its ordered boundary values. The string constructor shall store the selected interval parser's enclosure of a valid constant expression; it shall not retain the caller's character storage. linearize() shall replace the output by a dimension-zero form containing exactly that stored interval, return true and add no operation-rounding term. A valid unbounded constant interval shall remain an admitted leaf result; true at that leaf shall not imply a finite coefficient. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
3. Owned variable lookup and symbolic fallback PPL-SPEC-001002 For a valid coordinate index, variable construction shall retain that identity. If the symbolic store has a binding at that index, linearize() shall copy its entry form to the output and return true exactly when the copied coefficients are bounded. Without such a binding, it shall return the unit coordinate form, with dimension one greater than the index and all other coefficients zero. It shall not mutate the store or borrow its coefficient storage as output ownership. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
4. Owned exact opposite PPL-SPEC-001003 The opposite node shall own its child. It shall propagate child refusal; on success, it shall negate all coefficient intervals of the child's form, preserving its dimension, and return true without an additional rounding term. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
5. Owned rounding cast PPL-SPEC-001004 The cast node shall own its child and model rounding to its Format. It shall propagate child refusal and refuse a child form with an unbounded coefficient before constructing relative error. After these checks, it shall add the relative error of the child's form and the selected absolute-error interval, then return true exactly when all resulting coefficients are bounded. This explicit rounding node shall apply those terms even for zero or a representable child constant; it shall not infer a different source format or a widening conversion from the tree's common format parameter. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
6. Owned floating sum PPL-SPEC-001005 The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 + L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
7. Owned floating difference PPL-SPEC-001006 The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 − L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
8. Owned floating multiplication PPL-SPEC-001007 The product node shall own both ordered children, linearize them in order and intervalize both forms in the supplied box. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a same-dimension zero form plus the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Child refusal or the absence of a bounded scalar selection shall return false. With a bounded selected operand interval J and a bounded retained form L, a successful result shall enclose J * (L + R(L)) + A, retaining the other form's symbolic coordinates. The bounded-width selection shall admit either orientation and one unbounded operand when the other provides a bounded scalar. It shall not promise an optimal multiplication strategy. Final unbounded coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
9. Owned floating division PPL-SPEC-001008 The quotient node shall own its numerator and denominator children. It shall linearize and intervalize the denominator first. Denominator refusal or a closed endpoint hull containing zero shall return false before linearizing the numerator; an open zero endpoint shall not evade that conservative rejection. Sign-separated positive or negative unbounded intervals shall be admitted when the selected interval division supports them. After successful numerator linearization, an unbounded numerator coefficient shall cause refusal before relative error is constructed. For accepted numerator form L and divisor enclosure J, the output shall enclose L/J + R(L)/J + A. Numerator refusal or unbounded final coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
10. Owned expression exchange PPL-SPEC-001009 For two live nodes of the same concrete class and template arguments, m_swap() and the matching free swap() shall exchange their complete values. Constants shall exchange their stored intervals, variables their indices, unary nodes their owned children, and binary nodes both ordered owned children. The resulting nodes shall linearize as the corresponding pre-exchange nodes and preserve exclusive ownership. Self-exchange shall preserve value and ownership. No child shall be copied, destroyed or linearized merely to exchange an owned pointer. Selected constant-interval exchange operations shall meet their documented prerequisites. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
11. Descriptor-based relative rounding error PPL-SPEC-001010 For a bounded well-formed linear form, static relative_error() shall replace the output with a form of the same dimension. For every coefficient interval [a,b], including the constant, its error coefficient shall enclose [ − mu, mu], where m = max(|a|, |b|). For built-in binary descriptors, u = 2 − p with p excluding the leading significand bit. For normalized IBM hexadecimal short/long arithmetic, u = 161 − p with p equal to six/fourteen fraction digits. A custom three-field descriptor shall use u = BASE − MANTISSA_BITS.
The source entry value shall determine every coefficient, including when the output aliases it. Independent sources shall remain unchanged. Coefficients shall use sound outward interval arithmetic rather than an inward approximation of the selected error radius. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
12. Box-based affine intervalization PPL-SPEC-001011 Static intervalize() shall enclose the sum of the constant interval and every homogeneous coefficient interval multiplied by the corresponding box interval, using the source form's entry values. The box shall have at least the form's dimension and valid factor intervals for every declared coordinate, including zero coefficients. Its result shall not preserve cross-coordinate correlations beyond those factors. Independent form and box inputs shall remain unchanged. The result shall be a separate interval owner from input form coefficients and box factors. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
13. Owned-variable symbolic assignment PPL-SPEC-001015 linear_form_assign() shall assign a copy of the supplied form's entry value to the node's coordinate in the symbolic store, replacing an existing binding or inserting one. Every other pre-existing binding with a non-singleton-zero coefficient for that coordinate shall be discarded; independent bindings, including explicit zero dependencies and coordinates beyond a form's dimension, shall be retained. A newly assigned form shall be retained, including when it contains the target coordinate; callers shall ensure its interpretation remains valid for their modeled state.
A form borrowed from the same store shall use its entry value even if invalidation removes the donor. Independent inputs shall remain unchanged. Valid coordinate, coefficient and lifetime prerequisites of 🔗 1. Dependency invalidation shall apply. Allocation and coefficient exceptions may propagate without whole-store rollback; live owners shall remain safely destructible.
-
Incoming links from: 6. Injective coordinate remapping 2. Empty partial-map construction 3. Injective insertion and failure atomicity 4. Exact partial-map lookup and unchanged absent output 5. Exact empty-codomain query 6. Largest image and defined empty-map failure 7. Independent copies, assignment and owned-storage cleanup 8. Coordinate-map diagnostic printing and output failures 9. Move construction and empty source 10. Move assignment and empty source 2. Pointset-powerset projection and coordinate mapping11
1. Public partial coordinate-map type and valid use PPL-SPEC-000001 The public C++ interface shall expose Partial_Function as a value type representing a finite injective partial map M from dimension indices to dimension indices. Each mapped source shall have exactly one image, and distinct mapped sources shall have distinct images. Neither a stored source nor a stored image shall equal the reserved value not_a_dimension(), the maximum value of dimension_type. An unmapped index shall have no image.
The map shall impose no implicit ambient dimension, contiguity of mapped indices, or requirement that its images cover a contiguous range. Limits on achievable storage shall remain distinct from the index type's value range and from the coordinate limits of numerical objects consuming a map. In particular, the insertion range shall not be narrowed to the smaller range accepted by Variable formatting.
Operations on existing objects shall require live, valid maps. Successful moves between distinct objects shall leave the source as a valid empty map, as defined by 🔗 9. Move construction and empty source and 🔗 10. Move assignment and empty source. Within the library's supported thread-use contexts, callers shall prevent unsynchronized mutation of an instance while another call observes, copies or prints it, and shall serialize mutations of that instance. No additional concurrent-use regime shall be inferred from the type being a value type.
-
2. Empty partial-map construction PPL-SPEC-000002 Successful default construction shall create a valid Partial_Function whose domain and image are empty, with the meaning and use conditions of 🔗 1. Public partial coordinate-map type and valid use. No index shall initially be mapped. If construction fails through a supported C++ exception, resources acquired for the incomplete object shall be released and no constructed map shall be returned.
-
Incoming link from: 8. Coordinate-map diagnostic printing and output failures1
3. Injective insertion and failure atomicity PPL-SPEC-000003 For a valid map as defined by 🔗 1. Public partial coordinate-map type and valid use, insertion shall require both indices to differ from not_a_dimension(), the source index to be absent from the current domain, and the proposed image to be absent from the current image set. A successfully completed insertion of i and j shall add exactly the pair M(i) = j, preserve every existing pair and leave every other absent source unmapped. Gaps introduced by storage growth shall not become mappings. The operation shall permit image zero and noncontiguous source and image sets.
Storage-capacity or allocation failure shall be reported through the corresponding C++ exception, including std::length_error or std::bad_alloc where applicable. Such a failed insertion shall leave the represented map unchanged and valid for subsequent queries, insertion, assignment and destruction.
Violation of the insertion preconditions shall be outside the supported contract. Assertion diagnostics shall not be required in every configuration, and no defined success or failure outcome shall be promised for such a call.
-
4. Exact partial-map lookup and unchanged absent output PPL-SPEC-000004 For a valid map under 🔗 1. Public partial coordinate-map type and valid use, lookup of i shall return true exactly when i ∈ dom(M). On true, it shall assign M(i) to j. On false, it shall leave j unchanged. The represented map shall remain unchanged. Every dimension_type value shall be admissible as a lookup index; in particular, lookup of not_a_dimension() shall return false without changing j. The same caller variable may supply the index value and receive the image; the index used for lookup shall be its value on entry to the call.
-
5. Exact empty-codomain query PPL-SPEC-000005 For a valid map under 🔗 1. Public partial coordinate-map type and valid use, has_empty_codomain shall return true exactly when the represented partial map has no pairs, and shall leave the map unchanged. A nonempty map whose largest image is zero shall return false. Stored capacity or unused source positions shall not determine the mathematical answer.
-
6. Largest image and defined empty-map failure PPL-SPEC-000006 For a nonempty valid map under 🔗 1. Public partial coordinate-map type and valid use, max_in_codomain shall return the largest image value, independently of insertion order and of the largest source index. If the valid map is empty, the call shall throw std::runtime_error rather than return a maximum value. The map shall remain unchanged on either outcome. The empty call shall be a defined failure case, not an excluded precondition. Exact exception-message text is not prescribed; ordinary C++ runtime/resource conditions for reporting the exception apply.
-
7. Independent copies, assignment and owned-storage cleanup PPL-SPEC-000007 Copy construction shall require a live, valid source map under 🔗 1. Public partial coordinate-map type and valid use. Successful copy construction shall create a distinct value with exactly the source's mapping. Copy assignment shall require live, valid source and target maps and, on success, shall replace the target's old map with exactly the source's mapping. Subsequent valid insertion into either distinct value shall not change the other's mapping. Successful self-copy-assignment shall preserve the map. Successful copy assignment shall return a reference to its target, including self-copy-assignment.
Failed copy construction shall release resources acquired for the incomplete target and shall leave the source unchanged. Failed copy assignment shall leave both source and target unchanged and valid for subsequent use. Destruction of a live map shall release its owned storage without releasing another map's storage. The caller shall not access an object after its lifetime ends.
-
8. Coordinate-map diagnostic printing and output failures PPL-SPEC-000008 Printing shall observe a valid map under 🔗 1. Public partial coordinate-map type and valid use without changing its represented mapping. Calls shall require the library and calling thread's applicable initialization protocol to have established a valid active Variable output function under 🔗 7. Active Variable formatter and initialized thread state and 🔗 3. Thread initialization, default state and finalization. Callers shall obey the supported thread regime and synchronize changes to the active formatter and access to a shared stream; the formatter shall not mutate the printed map during the call.
When the map is empty and output succeeds, print shall write the literal text "empty", a newline and a flush. For a nonempty map whose source and image indices are all constructible as Variable objects, successful output shall process pairs in increasing source order. For each pair it shall write the source Variable using the Variable formatter active for that write, the literal separator " --> ", the image Variable using the formatter active for its write, and a trailing newline. Each Variable write shall use the formatter then active in the calling thread where formatting state is thread-specific; names shall not be fixed independently of it. A callback's permitted change to that formatting state may therefore affect subsequent Variable writes. Text insertions shall honor the stream's current formatting state. Specified literals identify the inserted character sequences, not a canonical byte layout independent of that state. Printing shall not promise restoration of formatting state changed by a formatter.
A map index outside Variable's accepted identifier range shall be permitted to cause std::length_error during printing, without changing the map. Stream, formatter and resource failures may also propagate their C++ exceptions. Stream failure without an enabled exception shall be observable through the stream state; a normal void return shall not alone establish complete output. After any such failure the output may be partial, but the map shall remain valid and unchanged. Exact diagnostic messages are not prescribed.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
9. Move construction and empty source PPL-SPEC-000009 Move construction from a valid map under 🔗 1. Public partial coordinate-map type and valid use shall create a distinct valid map with exactly the source's mapping on entry and shall leave the source as a valid empty map. The source shall support the same queries, insertions, assignments and destruction as any other empty map. Subsequent valid changes to either object shall not change the other's map.
If construction of the destination's empty storage fails, resources acquired for the incomplete destination shall be released and the source shall remain unchanged and valid. After the empty storage has been constructed, transferring the represented map shall not allocate storage or throw.
The move constructor's exception specification shall be nonthrowing exactly when default construction of its configured storage containers is nonthrowing, as expressed by the declaration below. The debug codomain container shall contribute to that condition only when present.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
10. Move assignment and empty source PPL-SPEC-000010 Move assignment between distinct valid maps under 🔗 1. Public partial coordinate-map type and valid use shall replace the target's mapping with exactly the source's mapping on entry and leave the source as a valid empty map. Both maps shall support subsequent queries, insertions, assignments and destruction. Subsequent changes to either map shall not change the other's represented value.
Self-move-assignment shall leave the map unchanged. Move assignment shall return a reference to its target, including self-move-assignment. It shall not allocate storage or throw. Storage retained by an empty map shall remain owned by that map and shall not imply the presence of any mapped pair.
-
1. Parametric integer coordinate growth PPL-SPEC-001486 Growth shall append m_vars new decision variables followed by m_params new parameter coordinates, preserving the indices and meaning of all old coordinates. New coordinates shall initially have only implicit nonnegativity restrictions. Zero/zero growth shall preserve the current state. The sum shall be checked against the remaining supported extent without arithmetic wraparound; overflow shall raise std::length_error before changing dimensions. Subsequent solution queries shall describe the expanded problem with artificial parameter indices adjusted to follow original coordinates.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric coordinate selection and descriptor views PPL-SPEC-001487 Parameter addition shall select the supplied indices as parameters and preserve already selected parameters. Incompatible indices shall raise std::invalid_argument. A decision coordinate already processed by the solver shall not be reinterpreted as a parameter; such conversion shall raise std::invalid_argument. Already selected processed parameters may be supplied again. Descriptor access shall expose the parameter subset and const constraints in insertion order; borrowed iterators and views may be invalidated by storage changes or replacement.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric constraint refinement PPL-SPEC-001488 Constraint additions shall conjoin value copies with the current problem. A descriptor dimension greater than the ambient dimension shall raise std::invalid_argument, including an empty system with an incompatible declared extent. Strict inequalities shall be interpreted over nonnegative integers. Subsequent completed queries shall include all added variable and parameter-only constraints; obsolete feasible branches or cached solutions shall not be returned as current. After one or more rows are appended to a problem with a retained feasible solution tree, the next query that needs a solution shall rebuild the result from the complete updated model and its parameter context.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric solution display PPL-SPEC-001493 Human-readable problem output shall show constraints, parameters and big-parameter selection and return its stream. print_solution shall display the already computed tree or infeasibility with the requested nonnegative indentation. A pending unsolved problem shall raise std::logic_error rather than be silently solved by this display member. Human display shall be distinct from reloadable serialization.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Reloadable parametric solver representations PPL-SPEC-001494 Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.
These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric diagnostics and storage accounting PPL-SPEC-001495 OK shall check the implemented problem, context, control and tree invariants, including that every owned tree node refers to this problem. It shall not establish a new mathematical solution. External memory shall estimate managed constraint, parameter, context and solution-tree storage; total memory shall add sizeof(*this). Destroying, clearing or replacing the problem shall release the storage it owns.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric solver outcomes and satisfiability PPL-SPEC-001489 A completed solve shall return UNFEASIBLE_PIP_PROBLEM for infeasibility and OPTIMIZED_PIP_PROBLEM with a retained tree otherwise. With no big parameter, infeasibility shall mean that no assignment in the initial context has a feasible nonnegative integer decision tuple. With a big parameter, the status shall reflect the sign decisions in 🔗 4. Parametric big-parameter designation. is_satisfiable shall solve as needed and return true exactly for the optimized status. An infeasible subregion of a partly feasible context shall not imply global infeasibility in ordinary mode. Repeated queries may reuse current state without changing the mathematical result.
An integer search over an unbounded parameter context or feasible region may run indefinitely. Configured deterministic weight limits and supported cancellation shall be observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.
Integer compatibility checks used to determine feasibility shall follow 🔗 5. Integer feasibility of parametric compatibility contexts.
Ordinary bounded-coefficient simplex pivots shall preserve the shared rational tableau across both its variable and parameter numerator matrices. When direct arithmetic has not been proved representable, the complete pivot shall be evaluated exactly and the common positive factor of both numerator matrices and their one denominator shall be cancelled before coefficient admission. Rows shall not be scaled independently. Parameter-row and cut-selection scores, including products of residue sums, shall be compared as exact working integers without requiring those comparison-only values to fit a coefficient. Pivot and cut ties shall retain their existing traversal order.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric solution-tree access PPL-SPEC-001490 Both accessors shall solve a pending problem as needed and return a borrowed const tree describing its current lexicographic optima. Infeasibility in the selected solve mode shall return a null tree. Interpret a returned tree only at assignments satisfying the initial context and, if a big parameter is designated, the sign assumptions in 🔗 4. Parametric big-parameter designation. On such assignments, every reached feasible leaf shall provide the least decision tuple; a missing branch or a failed leaf guard shall denote infeasibility for that context subset. Mutation, replacement, destruction or a cache-replacing query on the owning problem may invalidate the tree and its derived views.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric cutting and pivot controls PPL-SPEC-001491 Setting a cutting value shall select first-row, deepest-cut or all-cuts generation; setting a pivot value shall select first-row or maximum-column pivot choice. The getter shall report the selected value for a valid control name. Defaults shall be CUTTING_STRATEGY_FIRST and PIVOT_ROW_STRATEGY_FIRST. Unsupported setting values shall raise std::invalid_argument. Heuristic changes may change tree shape and work, while completed solutions shall retain the same context-relative meaning. The maximum-column heuristic shall compare candidate pivot updates by stored row order, then constant/original/artificial parameter column order. These comparisons shall retain exact ordering and ties when intermediate two- or three-factor products exceed the bounded coefficient range.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Parametric big-parameter designation PPL-SPEC-001492 The setter shall designate an existing, not-yet-processed parameter coordinate as the big parameter. A non-parameter or a parameter already processed by the solver shall raise std::invalid_argument. The getter shall return its index, or not_a_dimension() when none is selected. In symbolic sign decisions, a nonzero coefficient of this parameter shall dominate the remaining expression. This convention shall represent an arbitrarily large parameter; concrete finite assignments shall be interpreted only where the result's asymptotic sign conditions hold, accounting for the values of artificial parameters. See 🔗 1. Parametric problem and context interpretation.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric tree interpretation and artificial scope PPL-SPEC-001496 A returned tree shall be interpreted at parameter assignments in the scope defined by 🔗 1. Parametric problem and context interpretation. At each node, local artificial parameters shall be introduced in stored order after all original coordinates and inherited artificial parameters. An artificial parameter a = ⌊e ⁄ d⌋ shall use mathematical floor, including for negative numerators. Its expression shall refer only to original parameters and earlier artificial parameters in scope.
A decision's true branch shall require all local guards; its false branch, when present, shall require the complement of its single guard. A solution leaf shall require its own guards in addition to the path context. Missing branches and failed leaf guards shall mean infeasibility within that result's scope.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric node guards and artificial-parameter views PPL-SPEC-001497 constraints shall return a borrowed const view of the node's local parameter guards. Artificial-parameter iterators shall traverse the local stored sequence in introduction order; the count shall report its size, without including ancestor parameters. The half-open range shall be empty when no local artificial parameter is introduced. Storage changes and node destruction may invalidate these borrowed views and iterators. Borrowing local constraints or artificial-parameter iterators shall require an lvalue node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric tree ownership associations PPL-SPEC-001498 get_owner shall return the node's non-owning problem association. set_owner shall update that association throughout the receiver's subtree; check_ownership shall report whether every node in that subtree has the supplied owner. Rebinding shall not copy nodes or re-solve a problem. Callers rebinding a tree for interpretation shall provide a live owner with compatible original dimensions and parameter meanings. Every tree returned by a problem shall refer to that problem throughout its subtree.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Parametric tree cloning and lifetime PPL-SPEC-001499 clone shall allocate a structurally independent copy of the subtree, including guards, artificial parameters and solution representation, and return ownership of that copy to its caller. It shall preserve the original owner association but detach the clone's root from its former parent. Copied children shall refer to their copied parent. Deleting a tree through its virtual base shall release every owned descendant. Failed cloning shall release any subtree already acquired. Initial solution-node construction shall create solver state associated with the supplied owner; numerical leaf access shall require a complete solved representation.
Temporary ownership during recursive solving shall protect the successfully returned subtree or newly adopting parent. Retargeting that protection shall not delete a root already consumed by solving or adopted by the parent.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Artificial parameter construction and value operations PPL-SPEC-001500 Default construction shall represent zero with denominator one. Construction from expr and nonzero d shall preserve their rational ratio while normalizing the denominator to positive and dividing numerator coefficients, constant and denominator by their common factor. Zero denominator shall raise std::invalid_argument. In tree interpretation the value shall be the floor of that normalized rational expression.
Copying and assignment shall preserve the stored numerator expression, dimension and denominator, with independent later mutations. Exchange shall swap them. Equality shall compare stored dimension, numerator and denominator; inequality shall negate it. Equality shall not identify all distinct formulas that happen to have equal floors on a particular context. Inherited expression mutations shall follow the linear-expression contracts and shall not implicitly renormalize this denominator.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. Artificial parameter persistence and diagnostics PPL-SPEC-001501 Serialization shall retain numerator dimension, coefficients and the positive denominator. Loading shall preserve an admitted stored representation, including a common factor, without constructor normalization. Malformed or nonpositive denominators shall return false in both build modes. False shall not promise rollback or further queries; owned storage shall remain destructible. OK shall require a positive denominator. Human output shall display the expression and integer-division denominator and return its stream. External memory shall estimate expression storage; total shall add the artificial-parameter object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. Reloadable parametric tree structure PPL-SPEC-001502 Node dumping shall write local guards and artificial parameters; concrete solution and decision dumping shall additionally write their complete respective representation. Concrete loading shall replace the corresponding stored state, retain the receiver's live owner association and restore parent and owner links for loaded children. Reloading shall not append old artificial parameters. Recursive decision subtrees shall be supported on both branches.
Malformed fields, nonpositive tableau denominators, incompatible vector/matrix sizes, out-of-range mappings and invalid decision structure shall return false in both build modes, before unsafe indexing or successful use of the broken representation. Surviving ownership shall remain destructible after false, without a rollback or further-query guarantee. A tree shall be interpreted only after association with a compatible live problem. Stream and resource exceptions may propagate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
8. Parametric solution leaves and coordinate values PPL-SPEC-001503 A solution node shall return itself from as_solution and null from as_decision. On a complete solved leaf associated with a live problem, parametric_values(var) shall return a borrowed affine expression in original and in-scope artificial parameters describing that decision coordinate on the leaf's valid path context. Its coordinate shall be an original problem variable; a parameter coordinate or dimension-incompatible variable shall raise std::invalid_argument. Cached expressions may be materialized lazily. No tuple shall be inferred from the leaf when its guards fail. Returning a parametric-value reference shall require an lvalue solution node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
9. Parametric decision nodes and branches PPL-SPEC-001504 A decision node shall return itself from as_decision and null from as_solution. child_node(true) and child_node(false) shall expose the respective borrowed subtree, with null denoting an absent branch. A valid decision shall have a true child. A decision with a false child shall have exactly one local guard. The mutable accessor shall expose the same node as the const accessor; callers shall preserve the owner's structure, backlinks and coordinate meaning when mutating an independently owned tree.
Borrowing a child pointer shall require an lvalue decision node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
10. Parametric tree diagnostics, display and memory PPL-SPEC-001505 OK shall check local guard, tableau/vector and decision-structure invariants and recursively check owned children. Invalid mapping indices shall be rejected before indexing the corresponding vector. These checks shall not prove lexicographic optimality. Printing shall show the subtree's guards, artificial parameters and decision-coordinate formulas under its compatible live owner, with nonnegative indentation. Stream insertion shall return its stream. Memory estimates shall include local storage and owned descendants; total shall add the concrete object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric integer problem meaning PPL-SPEC-001483 A problem shall interpret every coordinate as a nonnegative integer. Selected parameter coordinates shall be fixed by a parameter assignment; remaining coordinates shall be decision variables ordered by increasing original index. Constraints mentioning only parameters shall restrict the initial context. For every assignment in the scope defined by 🔗 1. Parametric problem and context interpretation, a completed solver result shall describe the lexicographically least feasible decision tuple or its absence. A designated big parameter shall follow 🔗 4. Parametric big-parameter designation. A strict integer inequality shall use the strict comparison on integer values.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric integer construction and dimensions PPL-SPEC-001484 Construction from a dimension shall create an unconstrained problem with no parameters and the all-zero decision tuple as optimum. Default dimension shall be zero. Range construction shall copy the constraints in its valid half-open input range and interpret p_vars as parameter indices.
The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.
An ambient extent above the supported maximum shall raise std::length_error; incompatible constraint or parameter dimensions shall raise std::invalid_argument. Failed construction shall release owned storage. Dimension queries shall report the current and maximum extents.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric integer copying, exchange and reset PPL-SPEC-001485 Copying and assignment shall preserve the problem, controls, designated big parameter and solution meaning while permitting independent later changes. Copied tree nodes shall be owned by the new problem. Assignment shall return the receiver and support self-assignment. Exchange shall transfer problem and tree state and update every transferred node's owner; self-exchange shall preserve the value. It shall not copy or allocate tree nodes, but shall visit the transferred trees to restore ownership. Reset shall create the zero-dimensional trivial problem with default controls and no big parameter. Destruction shall release its solution tree and other owned storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Componentwise product image1
1. Lifted powerset image PPL-SPEC-001413 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.
-
Incoming link from: 2. Componentwise product preimage1
2. Lifted powerset preimage PPL-SPEC-001414 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.
-
Incoming link from: 3. Componentwise product generalized image1
3. Lifted powerset generalized image PPL-SPEC-001415 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.
-
Incoming link from: 4. Componentwise product generalized preimage1
4. Lifted powerset generalized preimage PPL-SPEC-001416 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.
-
Incoming link from: 5. Componentwise product bounded image1
5. Lifted powerset bounded image PPL-SPEC-001417 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.
-
Incoming link from: 6. Componentwise product bounded preimage1
6. Lifted powerset bounded preimage PPL-SPEC-001418 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.
-
Incoming link from: 7. Product expression-to-expression affine relations1
7. Lifted expression-to-expression affine relations PPL-SPEC-001419 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.
-
1. Exact pairwise powerset reduction PPL-SPEC-001426 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.
-
2. BGP99 powerset extrapolation PPL-SPEC-001427 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.
-
Incoming link from: 5. Threshold-aware CC76 box convergence certificates1
3. Certificate-based powerset widening PPL-SPEC-001428 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.
-
1. Pointset-powerset coordinate growth PPL-SPEC-001420 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.
-
2. Pointset-powerset projection and coordinate mapping PPL-SPEC-001421 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.
-
3. Pointset-powerset dimension expansion and folding PPL-SPEC-001422 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.
-
4. Pointset-powerset concatenation PPL-SPEC-001423 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.
-
1. Lifted constraint addition and refinement PPL-SPEC-001407 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.
-
2. Lifted congruence addition and refinement PPL-SPEC-001408 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.
-
3. Lifted cylindrification PPL-SPEC-001409 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.
-
4. Lifted pointset-powerset intersection PPL-SPEC-001410 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.
-
5. Pointset-powerset set difference PPL-SPEC-001411 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.
-
6. Meet-preserving powerset context simplification PPL-SPEC-001412 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.
-
7. Powerset topological closure and time elapse PPL-SPEC-001424 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.
-
8. Powerset integer restriction and wrapping PPL-SPEC-001425 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.
-
1. Pointset-powerset empty and universe queries PPL-SPEC-001399 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.
-
2. Affine dimension of a pointset powerset PPL-SPEC-001400 affine_dimension shall return the affine dimension of the smallest affine space containing the union, using the affine hull of each nonempty disjunct. Empty shall have affine dimension zero. Distinct zero-dimensional disjuncts may jointly have positive affine dimension. Base minimized equality constraints shall describe each disjunct's affine hull for this calculation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Pointset-powerset structural shape queries PPL-SPEC-001401 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.
-
4. Pointset-powerset structural set relations PPL-SPEC-001402 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.
-
5. Geometric powerset coverage and equality PPL-SPEC-001403 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.
-
6. Pointset-powerset directional bound tests PPL-SPEC-001404 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.
-
7. Pointset-powerset extrema and witnesses PPL-SPEC-001405 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.
-
8. Pointset-powerset descriptor relations PPL-SPEC-001406 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.
-
1. Dimensioned pointset-powerset construction PPL-SPEC-001392 Construction from n and kind shall create empty or universe in dimension n. Default shall be the zero-dimensional universe. Empty shall retain its ambient dimension with no disjuncts; universe shall contain a base universe disjunct. max_space_dimension shall report the base structural limit. Requests above that limit or using a reserved dimension shall throw std::length_error before extent-proportional storage. The limit shall not promise allocation success for every admitted dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Pointset-powerset copying, assignment and exchange PPL-SPEC-001393 Same-type copying and assignment shall preserve dimension and represented union, including stored decomposition and reduction state, while permitting independent later mutations through copy-on-write disjuncts. Assignment shall return its receiver and support self-assignment. m_swap and swap shall exchange dimension and collection together. The same-type copy complexity argument shall not change exactness. Implicit destruction shall release all owned disjuncts and collection storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Pointset-powerset construction from descriptor systems PPL-SPEC-001394 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.
-
4. Pointset-powerset construction from a simple domain PPL-SPEC-001395 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.
-
5. Cross-base powerset conversion and assignment PPL-SPEC-001396 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.
-
6. Pointset-powerset construction from a product PPL-SPEC-001397 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.
-
7. Insertion of pointset disjuncts PPL-SPEC-001398 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.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
1. Two-coordinate full-rank equality projection PPL-SPEC-001685 try_binary_equality_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles and selections other than two. Let the selected coordinates in ascending order be x, y.
Scan the logical input rows in order. Select the first equality with a nonzero x coefficient. For this row's selected coefficients a, b, scan subsequent equalities for coefficients c, d with ad − bc ≠ 0, using exact GMP arithmetic. Without such a later row, return false. This opportunistic scan need not find an earlier independent row preceding its selected first pivot.
After this rank test, copy the owned rows and eliminate x with that pivot using 🔗 1. Exact equality-pivot elimination. Choose a remaining equality with nonzero y coefficient, preferring 1 or − 1, and eliminate y with the same kernel. Such a second pivot shall exist. Compact the two coordinates, retaining the other coordinates' order, and swap in a completed same-topology polyhedron. True shall denote the exact projection 🔗 4. Exact polyhedral coordinate deletion, with no increase in logical row count.
False shall preserve all receiver state and allocate no C++ storage. The determinant preflight may allocate GMP temporary storage. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use; rejection preservation shall not impose a stronger exceptional-completion guarantee.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
2. Bounded coupled two-coordinate pair projection PPL-SPEC-001686 try_binary_pair_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles, selections other than two, and any logical equality row. Let x, y be selected in ascending order.
Preflight shall count positive, negative and zero x coefficients. Reject more than 16 positive/negative pairs or more than 64 predicted owned rows. Predict the signs in the next y column: unchanged zero-x rows retain their signs, and a pair ax > 0, bx < 0 has the sign of − byxa + ayxb. These calculations shall use exact GMP arithmetic. Tautological combinations may be counted conservatively. Reject more than 16 predicted second-column pairs or 64 predicted owned rows. Both checks shall precede scratch-row copying. False shall preserve every receiver field and allocate no C++ storage; GMP preflight temporaries are permitted.
For each selected coordinate, retain its zero-coefficient rows. For every pair ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the positive combination (b ⁄ g)r + (a ⁄ g)s. It shall be strict exactly when either input row is strict. Omit tautologies. The conservative preflight shall bound the actual pair and row counts in both passes. At most 32 pairs shall be generated; each scratch vector shall contain at most 64 logical rows.
Compact the selected coordinates only after their coefficients are zero. True shall replace the receiver with the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and surviving-coordinate order. Only a completed temporary polyhedron shall be swapped in. Common lifetime, arithmetic and exceptional-completion conditions 🔗 1. Polyhedral values, coefficient profile and valid use shall apply without strengthening them to the false-result guarantee.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
3. Exact one-dimensional continuous LP projection PPL-SPEC-001687 try_interval_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators and a nonempty in-range selection. It shall reject bounded coefficient profiles, ambient dimensions outside 10 through 16, selections leaving other than one coordinate, descriptions with fewer than twice the ambient dimension or more than 64 stored rows, and descriptions with any logical equality or strict inequality. These rejections shall preserve all receiver state and allocate no C++ storage. The dispatch in 🔗 2. Bounded exact coupled constraint projection shall invoke it only for necessarily closed receivers; its weak-row computation shall preserve the supplied receiver's topology.
Find the sole surviving original coordinate and construct one continuous MIP_Problem from the original constraint system, with that coordinate as the minimization objective. Select PRICING_TEXTBOOK before solving, so pricing shall use coefficient arithmetic rather than floating-point weights. Do not designate integer coordinates or introduce auxiliary ones.
An infeasible lower solve shall replace the receiver with a same-topology empty polyhedron of dimension one. Otherwise retain a finite exact lower value p ⁄ q as qv ≥ p, and omit an unbounded lower bound. Change the same model to maximization, reusing its feasible state and basis. Its result shall remain feasible. Retain a finite upper value r ⁄ s as sv ≤ r, and omit an unbounded upper bound. Denominators shall be positive. Both finite endpoints shall be included. The completed interval shall be the exact real projection 🔗 4. Exact polyhedral coordinate deletion.
Only a completed same-topology result shall be swapped into the receiver. The dimension, initialization, synchronization, resource and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use and the continuous incremental MIP model shall apply. Exceptions shall not strengthen the common guarantees to the false-result preservation guarantee.
-
Incoming links from: 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage2
1. Exact rational polyhedral image PPL-SPEC-001346 The result shall be exactly {F(x) ∣ x ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
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.
-
2. Exact rational polyhedral preimage PPL-SPEC-001347 The result shall be exactly {x ∣ F(x) ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
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.
-
3. Polyhedral variable-update relational image PPL-SPEC-001348 The result shall be exactly the set of new states x’ related to some entry state x. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
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.
-
4. Polyhedral variable-update relational preimage PPL-SPEC-001349 The result shall be exactly the set of old states x having a related state x’ in the entry receiver. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
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.
-
5. Polyhedral expression-update relational image PPL-SPEC-001350 The result shall be the exact image of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
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.
-
6. Polyhedral expression-update relational preimage PPL-SPEC-001351 The result shall be the exact preimage of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
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.
-
7. Exact bounded polyhedral affine image PPL-SPEC-001352 The result shall be exactly the image under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
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.
-
8. Exact bounded polyhedral affine preimage PPL-SPEC-001353 The result shall be exactly the preimage under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
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.
-
Incoming link from: 4. C generated domain transformations1
1. Bounded Chvatal half-pair refinement PPL-SPEC-001666 refine_with_chvatal_cuts(max_pair_tests) shall first perform the existing all-coordinate drop_some_non_integer_points() with its default complexity. For a nonempty result and positive budget, it shall inspect at most max_pair_tests distinct unordered pairs of nonstrict inequalities from that result's minimized constraint description, in nested iterator order. Equalities shall not consume the pair budget. All pairs shall refer to that entry description; cuts shall be applied together after pair examination, without iterating the cutting pass.
For a pair ax + b ≥ 0, cx + d ≥ 0, it shall add ((a + c) ⁄ 2)x + ⌊(b + d) ⁄ 2⌋ ≥ 0 when the summed normal is componentwise even and the summed constant is odd. Pairs with an even constant or any odd summed normal coordinate shall add no cut. Ambient dimension and closed topology shall be preserved. The result shall be a subset of the entry set and contain every entry point in Zn.
Zero budget shall perform only the existing tightening. Empty shall remain empty. The budget shall bound pair examination, not minimization or conversion work. A finite budget may produce different refinements for different minimized-row orders; no exact integer hull or representation-independent budgeted result shall be promised.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
Incoming link from: 4. Exact polyhedral coordinate deletion1
1. Bounded exact projection from current constraints PPL-SPEC-001679 For an unmarked receiver with current constraints and no pending generators, try_constraint_projection(vars) shall attempt the exact real-coordinate projection specified by 🔗 4. Exact polyhedral coordinate deletion. The selection shall be nonempty and in range. Surviving coordinates shall retain their relative order, and the receiver's closed or NNC topology shall be preserved.
The attempt shall reject dimensions below five or descriptions containing more than 64 stored rows. For a selected coordinate, an equality with a nonzero coefficient or inequalities of both coefficient signs shall reject the one-sided path. Otherwise every row involving any selected coordinate shall be discarded, and all other rows shall be retained with compacted coordinates. Strict inequalities shall retain their membership meaning. This path shall be available for every supported coefficient profile.
For GMP coefficients, algebraic elimination shall additionally be attempted. If more than one coordinate is selected, each input row shall mention at most one selected coordinate, or the bounded coupled planner in 🔗 2. Bounded exact coupled constraint projection shall be attempted instead. This independence restriction shall not apply to the one-sided path. Prefer a pivot whose coefficient is 1 or − 1. For an equality E = ax + r = 0 and another row C = bx + s▹0, with b ≠ 0 and g = gcd(|a|, |b|), replace that row by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E▹0. The shared equality kernel 🔗 1. Exact equality-pivot elimination shall implement this substitution. The original relation kind shall be preserved. Rows independent of the pivot shall be transferred unchanged and tautological results omitted. Each eliminated equality shall reduce the predicted stored-row bound by one; one-sided elimination shall subtract the number of rows involving that coordinate. A predicted count above 64 shall reject the attempt before scratch copying. Bounded-coefficient profiles shall retain only the one-sided path, adding no elimination products to their admitted range.
For GMP coefficients, a selected coordinate without an equality pivot may also have both coefficient signs. At most 16 positive/negative pairs per coordinate and a predicted stored-row bound of 64 shall be admitted. For ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the cancelled positive combination (b ⁄ g)r + (a ⁄ g)s▹0. It shall be strict exactly when either input is strict. Rows with zero coefficient shall be retained, and tautological combinations omitted. The predicted row count for a coordinate without an equality shall replace its positive and negative rows by their pair count. These counts shall be checked before copying or coefficient algebra. Independence of selected coordinates makes the counts stable across elimination and bounds the total emitted pair count by 64. Bounded-coefficient profiles shall retain only the one-sided path.
A false result shall preserve all receiver state, including materialized caches. Rejection shall precede scratch-row copying and coefficient algebra. A true result shall replace the receiver with the completed exact projection; no particular minimal representation is required. Temporary rows and cancellation factors shall own their storage, and only a completed temporary polyhedron shall be swapped into the receiver. The local row-emission closure shall compact rows only after their selected coefficients are zero, preserve relation kind and topology, and transfer the compacted rows to the output system.
The lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply. Common failure guarantees shall not be strengthened by the boolean rejection guarantee: arithmetic and resource exceptions remain subject to that common contract.
-
Incoming links from: 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation2
1. H79 polyhedral widening PPL-SPEC-001365 The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the standard widening of the cited Definition 1, including representation-independent handling of redundant rows. widening_assign shall select this H79 operation. For NNC operands the named algorithm shall operate on compatible closed epsilon representations built from closure facets and maximal excluded faces. The represented result shall be independent of the operand cache history.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
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.
-
Incoming links from: 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation2
2. BHRZ03 polyhedral widening PPL-SPEC-001366 The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the improved widening of the cited Definition 18: it shall preserve certified limited-growth steps, otherwise combine the specified constraint/point/ray improvements under the standard widening bound. For NNC operands it shall use the same normalized epsilon representations as H79 for its standard widening bound. Its result shall be at least as precise as H79 on the same admitted pair in either topology.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
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.
-
3. Limited H79 polyhedral extrapolation PPL-SPEC-001367 The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
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.
-
4. Bounded H79 polyhedral extrapolation PPL-SPEC-001368 The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
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.
-
5. Limited BHRZ03 polyhedral extrapolation PPL-SPEC-001369 The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
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.
-
6. Bounded BHRZ03 polyhedral extrapolation PPL-SPEC-001370 The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
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.
-
7. H79 convergence certificate values and comparisons PPL-SPEC-001371 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.
-
8. BHRZ03 convergence certificate values and comparisons PPL-SPEC-001372 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.
-
1. Exact polyhedral cylindrification PPL-SPEC-001345 Cylindrification shall forget restrictions on the selected coordinates while preserving exactly the projection onto all other coordinates. Ambient dimension shall be retained. Empty shall remain empty, and an empty coordinate selection shall be a no-op. Coordinates outside the receiver shall throw std::invalid_argument before mutation.
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.
-
2. Polyhedral coordinate growth PPL-SPEC-001354 Adding m coordinates shall append them after the old coordinates. add_space_dimensions_and_embed(m) shall form the Cartesian product with Rm; add_space_dimensions_and_project(m) shall append exactly m zero coordinates. Empty shall remain empty in the enlarged dimension. Zero growth shall be a no-op. Exceeding the selected topology's structural dimension limit shall throw std::length_error before extent-dependent allocation; unsigned dimension arithmetic shall not wrap.
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.
-
3. Exact polyhedral Cartesian concatenation PPL-SPEC-001355 Concatenation shall assign the exact Cartesian product of the entry receiver and operand, with receiver coordinates followed by operand coordinates. The resulting dimension shall be the sum. Empty shall be absorbing; zero-dimensional universe shall be an identity. Self-concatenation shall use independent copies of the entry value. Incompatible topologies shall throw std::invalid_argument and excessive combined dimension std::length_error before extent-dependent allocation. A distinct operand shall preserve its value.
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.
-
4. Exact polyhedral coordinate deletion PPL-SPEC-001356 Coordinate deletion shall existentially project away exactly the selected coordinates and pack surviving coordinates in their previous relative order. Removing higher dimensions shall retain the prefix of the requested length. Empty shall remain empty in the resulting dimension. Projection of nonempty onto no coordinates shall be zero-dimensional universe. Empty selection or an unchanged prefix length shall preserve the value. An invalid selection or a requested prefix longer than the receiver shall throw std::invalid_argument before mutation.
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.
-
5. Exact partial coordinate mapping of polyhedra PPL-SPEC-001357 For an admitted partial mapping from old coordinate indices to a dense set {0, …, m − 1}, the operation shall delete unmapped coordinates and rename the remaining ones exactly. The mapping shall be injective on its domain and m ≤ n; an equal-size map shall therefore be a permutation. The mapping object shall implement has_empty_codomain(), max_in_codomain() and maps(i,j) with the entry mapping's consistent answers. Empty codomain shall project onto zero dimensions. The maximum shall be requested at most once and maps at most once per old coordinate. Mappings violating these prerequisites shall have no result guarantee; a defensive invalid-argument check shall not make every malformed map admitted.
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.
-
6. Polyhedral coordinate expansion PPL-SPEC-001358 Expansion of coordinate v by m shall append m coordinates, each an independent copy of v conditional on the other old coordinates. Writing an old state as (z, xv), the result shall consist exactly of states (z, xv, t1, …, tm) for which (z, xv) ∈ P and each (z, ti) ∈ P. The copies need not equal one another. Invalid v shall throw std::invalid_argument and excessive dimension growth std::length_error. Zero expansion shall preserve the value.
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.
-
7. Polyhedral coordinate folding PPL-SPEC-001359 Folding coordinates in vars into dest shall take the least polyhedron of the receiver's topology containing the union of the projections that place either the old destination or one folded coordinate at the surviving destination position, and then delete the folded coordinates. Remaining coordinates shall retain relative order. dest shall be a valid coordinate outside vars; all selected coordinates shall be valid, otherwise std::invalid_argument shall be thrown. Empty selection shall be a no-op.
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.
-
1. Exact equality-pivot elimination PPL-SPEC-001683 With GMP coefficients, project_constraint_equality(rows, v, pivot) shall require owned valid rows of one ambient dimension, an in-range pivot index, an equality at that index and a nonzero pivot coefficient of v. For the pivot E = ax + r = 0 and another row C = bx + s▹0, a nonzero b shall be cancelled by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E, where g = gcd(|a|, |b|). The relation kind shall be retained. Rows with zero coefficient shall be transferred unchanged; tautological results shall be omitted. The pivot shall be removed, every remaining coefficient of v shall be zero, and the result shall represent the exact existential elimination of that coordinate. Row count shall not increase.
The row vector shall retain its ambient coordinate numbering; physical coordinate compaction belongs to its caller. Temporaries shall own their data. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use without a rollback guarantee for this scratch vector. The receiver shall not be modified by scratch-vector failures before the caller's completed-result replacement.
-
2. Bounded exact coupled constraint projection PPL-SPEC-001684 try_coupled_equality_projection(vars) shall require an unmarked receiver with current constraints, no pending generators, ambient dimension at least five, at most 64 stored rows and a nonempty in-range selection. It shall attempt the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and relative coordinate order. With bounded coefficients it shall reject. With GMP coefficients, selections above four coordinates shall delegate to 🔗 3. Exact one-dimensional continuous LP projection only for necessarily closed receivers, returning its result; other such selections shall reject.
For each equality record the support on selected coordinates in bounded stack metadata. Repeatedly select an equality whose support on remaining selected coordinates is exactly one coordinate, record that coordinate, and remove it from the remaining set. When peeling stops, inspect remaining selected coordinates in ascending order. If an equality has nonzero support on the coordinate being inspected, delegate to 🔗 1. Two-coordinate full-rank equality projection and return its result. Otherwise opposite signs shall delegate to 🔗 2. Bounded coupled two-coordinate pair projection and return its result. The structural planner itself uses only support/sign queries; the delegated preflights may use exact coefficient algebra. Absent selected columns shall impose no restriction.
After an admissible plan is found, copy the owned rows. For each planned coordinate choose an equality with nonzero coefficient and zero coefficients on all later planned and residual selected coordinates, preferring coefficient 1 or − 1, and apply 🔗 1. Exact equality-pivot elimination. Such a pivot shall exist. After substitution discard rows involving any residual selected coordinate. Compact the retained rows, preserve their relations, and replace the receiver only by swapping in a completed same-topology polyhedron. On this structural equality/one-sided path, at most four substitution passes shall occur and row count shall not exceed its input bound. Delegated paths shall obey their respective contracts and work bounds. A false result shall preserve every receiver field and shall allocate no C++ storage. The delegated rank and sign preflights may perform GMP coefficient algebra before returning false. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use, without strengthening its guarantees to the false-result preservation guarantee.
-
Incoming link from: 4. C generated domain transformations1
1. Nonnegative polyhedral time elapse PPL-SPEC-001360 Ordinary time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t ≥ 0}, using the entry receiver P and operand Q. Empty in either operand shall give empty. Dimension and topology shall agree, otherwise std::invalid_argument shall be thrown. A distinct operand shall retain its represented value. The progression scalar shall be real, not integral, and zero time shall be admitted for nonempty operands.
The generator-system overload shall interpret its input as the rate polyhedron described by that system, using the receiver's topology. The rate system shall have the same ambient dimension as the receiver. An empty rate system shall give the empty result. A nonempty system without an included point, or a closed receiver with a user-visible closure point in the system, shall raise std::invalid_argument. These argument checks shall precede updates of the receiver. An independent input generator system shall retain its value and representation. If the input is a borrowed generator view of the receiver, the operation shall read its entry generators before any receiver update; the view shall then follow 🔗 2. Equivalent borrowed polyhedral descriptions. A singleton zero rate shall preserve the receiver's represented set.
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.
-
2. Positive polyhedral time elapse PPL-SPEC-001361 Positive time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t > 0}. Zero time shall not be introduced merely by the definition; zero rates may nevertheless retain entry states. A closed receiver shall take the closed polyhedral enclosure. Both rate topologies shall be admitted by this variant. Dimensions shall agree, otherwise std::invalid_argument shall be thrown. Empty in either operand shall give empty. A distinct operand shall retain its value.
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.
-
3. Integer-point-preserving polyhedral restriction PPL-SPEC-001362 Restriction shall return a polyhedron contained in the entry receiver that retains every entry point integral in the selected coordinates. The all-coordinate overload shall select all coordinates. Remaining points need not all be integral; no optimality guarantee shall be made, including under ANY_COMPLEXITY. Limited complexity may leave the value unchanged rather than materializing an expensive representation. Empty coordinate selection shall be a no-op. The selection shall contain only valid receiver coordinates.
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.
-
4. Sound bounded-integer wrapping in polyhedra PPL-SPEC-001363 For selected coordinates assumed integral, wrapping shall conservatively represent the outcomes for the selected modeled width and signed or unsigned representation. OVERFLOW_WRAPS shall reduce modulo 2w and choose the representative in the modeled range. OVERFLOW_IMPOSSIBLE shall retain only nonoverflowing outcomes; OVERFLOW_UNDEFINED shall permit arbitrary results on overflowing transitions. Unselected coordinates shall retain their correlations as far as the documented polyhedral abstraction preserves them. Optional constraints shall restrict the output state, may mention only selected coordinates, and may guide the partition of wrapping translations. All selected indices and optional descriptors shall be dimension-compatible; dimension mismatches shall throw std::invalid_argument. The complexity threshold and individual-wrapping flag may trade precision for work; they shall not exclude concrete outcomes.
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.
-
5. Exact polyhedral topological closure PPL-SPEC-001364 Closure assignment shall replace the receiver by its exact real topological closure. A closed receiver shall retain its value. NNC closure shall include the missing boundary points while preserving dimension, equalities and recession behavior. Empty and zero-dimensional values shall remain unchanged. Repetition shall be idempotent.
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.
-
1. Sound polyhedral filtering by interval linear forms PPL-SPEC-001376 For an admitted nonempty receiver, floating-point formats and bounded interval coefficients, linear-form refinement shall retain every receiver state satisfying some coefficient instantiation of the selected comparison, and shall introduce no state outside the receiver. The basic overload shall select less-than or less-or-equal by is_strict; a closed receiver may relax strictness. Generalized refinement shall apply both non-strict filters for equality, reverse operands for greater-than relations, and retain the receiver for disequality. Excess input dimension shall throw std::invalid_argument; an invalid relation enumeration shall throw std::runtime_error. If the form or its normalization overflows the admitted analysis range, refinement may leave the receiver unchanged rather than use an unsound finite coefficient. External forms shall preserve their values.
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.
-
2. Sound polyhedral image of interval linear forms PPL-SPEC-001377 For an admitted nonempty receiver and a linear form with bounded interval coefficients in a supported floating-point format, affine-form image shall contain every target state produced by an admitted coefficient instantiation, with other coordinates unchanged in the concrete transition. The result may conservatively lose correlations. It shall preserve dimension and topology. Invalid target or excess form dimension shall throw std::invalid_argument. If the form or normalization overflows the analysis range, returning universe shall be permitted. External forms shall preserve their values. Arithmetic and rounding prerequisites of the selected interval and floating-expression profiles shall apply.
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.
-
3. Polyhedral refinement of a floating interval store PPL-SPEC-001378 For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.
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.
-
Incoming link from: 4. C generated domain transformations1
1. HH95 closed-polyhedron edge extrapolation PPL-SPEC-001667 For nonempty entry operands P, Q ⊆ Rn, let H = clconv(P∪Q) and let L be its lineality space. In the pointed quotient H ⁄ L, classify a vertex as old exactly when it belongs to (P + L) ⁄ L; classify the remaining vertices as new. HH95_extrapolation_assign(y) shall produce H + cone{v − u ∣ u old, v new, [u, v] an edge of H ⁄ L}, using any lifted representatives. It shall preserve ambient dimension and closed topology and contain both operands.
Empty in either operand shall be neutral. Self-aliasing shall preserve the entry set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering relative to HPW01 shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
Incoming link from: 4. C generated domain transformations1
1. HPW01 closed-polyhedron extrapolation PPL-SPEC-001665 For nonempty entry receiver P and operand Q in Rn, HPW01_extrapolation_assign(y) shall replace the receiver by the intersection of the affine-hull equalities of H = clconv(P∪Q) and exactly those facet halfspaces of H whose boundary intersects P. The result shall contain H and preserve ambient dimension and closed topology.
Empty in either operand shall be neutral. Self-aliasing shall use the entry operand twice and preserve its set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering with HH95 extrapolation shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
1. Polyhedral envelope from entry constraint descriptions PPL-SPEC-001672 envelope_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q, as obtained by constraints() without an additional minimization request. Each equality shall supply both opposite non-strict inequalities. The completed receiver shall denote exactly the intersection of those candidate inequalities satisfied by both operands. Included or excluded NNC boundaries shall retain their inequality meaning. Ambient dimension and topology shall be preserved.
Descriptions shall be captured before support queries can normalize their caches. Precision may depend on redundant inequalities or the descriptions materialized at entry. No particular minimal output description is required. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
-
3. Exact support queries for polyhedral approximations PPL-SPEC-001674 Polyhedron_Join_Support shall borrow its source polyhedron and own any temporary LP. With generator mode selected, it shall use the existing exact polyhedral queries. Otherwise it shall build and reuse a continuous MIP model of the system obtained by weakening strict inequalities. It shall establish original-set emptiness: an infeasible weakened system is empty; a feasible weakened system with strict rows shall additionally be checked by exact feasibility of the original system.
For a nonempty source and an in-dimension expression, minimum shall return finite == false exactly when the expression is unbounded below. A finite result shall have a positive denominator and its numerator/denominator shall equal the source infimum. For the corresponding finite result, attained shall return true exactly when the original source contains an infimizing point. The LP route shall decide this by feasibility of the original system intersected with the equality face; systems without strict rows shall attain every finite infimum. The presence of strict rows shall be determined once during construction.
includes shall accept a non-strict or strict candidate inequality and return true exactly when every source point satisfies it. Its source shall be nonempty. For a strict row, a zero infimum shall imply validity exactly when that infimum is unattained.
Source objects shall remain alive while queries are issued, and their represented values shall be preserved. The LP route shall borrow an unchanged original description. Generator queries may normalize caches. After the final query, destruction shall release only owned LP state, without querying the borrowed source. Non-finite numerical fields and the LP-side cached attainment field are unspecified. The common conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply.
-
4. Support backend selection for polyhedral approximations PPL-SPEC-001675 For a valid polyhedron and the number of captured nontrivial candidate inequalities, use_generator_support_for_join shall return true when the ambient dimension reaches the MIP dimension ceiling, when generators are current with no pending constraints and at most 64 stored generator rows, or when the dimension is at most four and there are at most eight candidates. Otherwise it shall return false. The query shall preserve the object and shall not materialize either representation. The dimension-ceiling route shall avoid an unavailable additional LP slack coordinate.
-
6. Weak join with exact directional bounds and NNC attainment PPL-SPEC-001677 weak_join_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q through constraints() without an additional minimization request. Split equalities into both opposite inequalities, and let D contain their distinct nonzero homogeneous directions. For nonempty operands, for each a ∈ D bounded below on both sets, let ma = min(infp ∈ Pa⋅p, infq ∈ Qa⋅q). The completed receiver shall denote the intersection of a⋅x ≥ ma, omitting unbounded directions. In NNC topology the inequality shall be strict exactly when no point of either operand attains ma.
Candidates shall be captured before support queries can normalize their caches. Precision may depend on redundant directions and materialized descriptions; no minimal output description is required. The result shall contain the polyhedral hull and be contained in the envelope for the same entry descriptions. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Ambient dimension and topology shall be preserved. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
-
Incoming link from: 4. C generated domain transformations1
1. Exact Minkowski sum of polyhedra PPL-SPEC-001664 For entry operands P, Q ⊆ Rn, minkowski_sum_assign(y) shall replace the receiver by exactly P + Q = {p + q ∣ p ∈ P, q ∈ Q}. Ambient dimension and the receiver's closed or NNC topology shall be preserved. Empty in either operand shall yield empty; two nonempty zero-dimensional operands shall yield the zero-dimensional universe. Dimensions and topologies shall agree, otherwise std::invalid_argument shall be thrown before changing the represented value of the receiver. Self-aliasing shall use the entry operand twice. A distinct operand shall preserve its represented value.
Excluded NNC boundaries shall retain their membership meaning. The represented result shall be independent of whether constraints or generators were initially materialized. No particular redundant or minimized description is required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may preserve the mathematical value while changing its materialized representations. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
1. Polyhedral constraint addition and refinement PPL-SPEC-001338 The rvalue add_constraints overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Adding an admitted constraint or system shall compute its exact conjunction with the receiver. Closed addition shall reject strict rows with std::invalid_argument; NNC addition shall preserve their strictness. Refinement shall use the same conjunction for admitted topology-compatible rows. In a closed receiver, refinement by a strict inequality may relax it to the corresponding non-strict inequality; a false constant shall still yield empty. Trailing free dimensions shall be retained. Excess descriptor dimension shall throw std::invalid_argument. External const input shall be preserved. Recycled input may be consumed and need only remain safely destructible on return. Pending descriptions shall retain all previously added restrictions.
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.
-
Incoming link from: 6. Polyhedron construction from representable congruences1
2. Polyhedral congruence addition and conservative refinement PPL-SPEC-001339 Addition shall conjoin equality congruences exactly, ignore tautologies, and set empty for contradictions. A proper congruence that is neither constant-true nor constant-false shall throw std::invalid_argument. Refinement shall conjoin equality congruences exactly and may ignore proper congruences. Bulk refinement shall recognize contradictory proper congruences; single refinement in positive ambient dimension may retain the receiver for a proper congruence, including a contradiction. In zero dimensions it shall use the congruence's truth value. Excess descriptor dimension shall throw std::invalid_argument. Const external inputs shall be preserved; recycled inputs need only remain destructible. The source and receiver may have lower and higher dimensions respectively, with trailing coordinates free.
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.
-
3. Polyhedral generator insertion PPL-SPEC-001340 The rvalue add_generators overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Generator insertion shall extend the receiver's generator description with the supplied generators and denote that combined description exactly. Inserting points shall form their polyhedral hull with the receiver; rays and lines shall extend recession directions and NNC closure points shall extend closure support without themselves acquiring membership. Empty input shall be a no-op. If the receiver is empty, a nonempty insertion shall contain an included point or throw std::invalid_argument. Closed receivers shall reject closure points; excess descriptor dimension shall be rejected, both by std::invalid_argument. Const external sources shall retain their values. Recycling may consume storage; its source need only remain destructible.
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.
-
4. Exact polyhedral intersection PPL-SPEC-001341 For equal dimensions and compatible topologies, intersection shall replace the receiver by its exact intersection with the operand, including strict NNC boundaries. Self-intersection shall preserve the value. Empty shall be absorbing and universe neutral. Incompatible dimensions or topologies shall throw std::invalid_argument before mutation. A distinct operand shall retain its value.
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.
-
5. Polyhedral hull and exact-union recognition PPL-SPEC-001342 Hull assignment shall return the least polyhedron of the receiver's topology containing both operands; upper_bound_assign shall be equivalent. The closed hull may add limiting boundary points that the convex hull excludes. The same-type *_if_exact variants shall return true and assign the hull exactly when the set union is already representable as one polyhedron of that topology. On false they shall preserve the receiver's set. Dimension/topology mismatches shall throw std::invalid_argument. A distinct operand shall retain its value; self-hull shall preserve the receiver.
Ordinary hull assignment shall leave the existing caches intact for a self join or for operands that have matching complete current descriptions of the same kind. Matching shall compare ordered stored rows and the pending boundary. A current description is complete when the opposite description has no pending rows.
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.
-
6. Polyhedral enclosure of set difference PPL-SPEC-001343 Difference assignment shall return the smallest polyhedron of the receiver's topology containing the set-theoretic difference of the entry receiver and operand. The closed variant shall close the convex polyhedral difference where needed. It shall not claim that the result excludes every operand point. Empty difference shall return empty. difference_assign shall be equivalent to poly_difference_assign. Dimension/topology mismatch shall throw std::invalid_argument; a distinct operand shall preserve its value.
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.
-
7. Polyhedral context-preserving simplification PPL-SPEC-001344 For compatible operands, simplification shall return a polyhedron containing the entry receiver and having the same intersection with the context. A false result shall certify that this intersection is empty; true shall not alone establish nonemptiness. The context shall preserve its value. The operation need not preserve the receiver outside the context or return a unique simplification. Dimension/topology mismatch shall throw std::invalid_argument.
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.
-
Incoming link from: 5. Polyhedron internal status signed-keyword loading and rejection1
1. Reloadable polyhedral ASCII descriptions PPL-SPEC-001373 ascii_dump shall write a reloadable description including ambient dimension, topology, authoritative and pending descriptions, status and saturation data, without changing the receiver's represented set. ascii_load of a complete valid description of the receiver's topology shall restore that same set and dimension, independently of its previous value and cache history. A successful load shall leave a valid representation of the receiver's concrete topology. Invalid syntax, dimensions or topology, and descriptor rows or systems that violate their own invariants, shall return false without relying on debug assertions. Loading is specified for trusted records written by ascii_dump with a compatible build. The consistency of the descriptions with one another and with the status flags is validated by the available invariant checks. Altered records can pass those checks. Failure may leave a partially replaced receiver whose ownership permits destruction. Rollback and further queries shall not be assumed. The description headers shall agree with the status flags. A current saturation matrix shall match the processed row counts before its entries are retained. Obsolete saturation data shall be read without being restored to the loaded representation. print() and ascii_dump() shall write the corresponding representations to standard error. Human-readable pointset output shall not promise a reloadable format or stable descriptor order.
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.
The internal status contract shall follow 🔗 4. Polyhedron internal status signed-keyword export.
The internal status contract shall follow 🔗 5. Polyhedron internal status signed-keyword loading and rejection.
-
2. Polyhedral memory accounting PPL-SPEC-001374 External memory accounting shall sum the dynamically owned storage reported by the constraint system, generator system and both saturation matrices, including retained capacities according to those container contracts. Total memory shall equal external memory plus sizeof(Polyhedron). Queries shall preserve values and ownership and shall not materialize new descriptions merely to compute the count. The count shall not promise process-resident size or allocator metadata.
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.
-
3. Polyhedron representation invariant query PPL-SPEC-001375 OK(false) shall recognize admitted owned representations whose constraint/generator topologies, dimensions, status, pending boundaries and current saturation data meet the representation invariants. Current representations shall agree on the represented set, and descriptions declared minimal shall satisfy the corresponding redundancy conditions. OK(true) shall additionally require nonemptiness. A latent inconsistent constraint description may satisfy the structural query without having its empty status materialized. The query may use independent temporary normalization and may allocate or propagate supported failures; it shall preserve the receiver's value. Diagnostic wording shall not be a stable interface. The receiver's storage shall already be live and destructible; this query shall not be a validator for arbitrary corrupted addresses.
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.
The internal status contract shall follow 🔗 3. Polyhedron internal status consistency predicate.
-
1. Polyhedron ambient and affine dimensions PPL-SPEC-001326 space_dimension() shall return the ambient dimension without changing the represented value. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine space containing the receiver. It shall count excluded closure points only through the affine hull they share with included points, and shall preserve the represented set.
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.
-
Incoming links from: 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Nonnegative polyhedral time elapse 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid67
2. Equivalent borrowed polyhedral descriptions PPL-SPEC-001327 Borrowed-description accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned descriptions shall not extend the receiver's lifetime.
Constraint and generator accessors shall return receiver-owned const views whose descriptions denote exactly the receiver, including pending changes, latent emptiness, equalities and excluded NNC boundaries. Minimized accessors shall additionally remove redundant visible descriptors; they shall not promise a particular row order, coefficient scale or unique minimal representation.
A returned view, its iterators, rows and coefficient references shall be used only while the receiver lives and before an operation replaces or normalizes that representation. Logically const access to the opposite representation may invalidate them. Inputs explicitly permitted to borrow receiver coefficients shall be consumed according to the operation's entry-value contract before such invalidation. External copied descriptions shall own independent values.
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.
-
3. Polyhedral equality-congruence extraction PPL-SPEC-001328 congruences() shall return an independently owned system of equality congruences satisfied by every receiver point. minimized_congruences() shall return a nonredundant equality system defining exactly the receiver's affine hull, or an inconsistent system for empty. A nonminimized extraction need not expose equalities implied only by inequalities. Dimension shall be retained; proper periodic congruences shall not be introduced.
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.
-
4. Exact elementary polyhedral predicates PPL-SPEC-001329 The predicates shall decide, respectively, emptiness, equality with the ambient universe, topological closedness as a real pointset, discreteness and boundedness. Discreteness shall mean affine dimension zero; thus empty and singletons shall be discrete. Empty shall be bounded and closed. NNC storage shall not itself imply that the set is nonclosed. Pending or nonminimal descriptions shall not change these decisions.
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.
-
Incoming link from: 1. Selected-coordinate integer-point existence1
5. Exact integer-point existence in polyhedra PPL-SPEC-001330 contains_integer_point() shall return true exactly when the receiver contains a tuple integral in every coordinate. Empty shall return false and zero-dimensional universe true. Excluded boundary points of an NNC polyhedron shall not count. The decision shall preserve the receiver's represented set.
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.
-
6. Polyhedral set comparison and hashing PPL-SPEC-001331 For equal dimensions and compatible topologies, containment, strict containment, equality and disjointness shall decide the corresponding exact set relations. Containment shall include equality; strict containment shall exclude it. Empty-set relations shall follow set theory. Incompatible dimensions or topologies shall throw std::invalid_argument for the binary member queries; equality shall return false for unequal dimensions or topologies. Inequality expressions shall negate equality. Equal values shall have equal hashes; hash collisions shall not establish equality. Representation history shall not affect these results.
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.
-
Incoming link from: 9. Exact polyhedron relation with a congruence1
7. Exact polyhedron relation with a constraint PPL-SPEC-001332 relation_with(c) shall classify the exact intersection with the set satisfying c. It shall include is_included() exactly when every receiver point satisfies c, is_disjoint() exactly when none does, and strictly_intersects() when some satisfy it and some do not. It shall include saturates() exactly when every receiver point satisfies the boundary equality of c. Empty shall therefore be included, disjoint and saturating. Excess descriptor dimension shall throw std::invalid_argument.
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.
-
8. Exact polyhedron relation with a generator PPL-SPEC-001333 relation_with(g) shall return subsumes() exactly when an included point belongs to the receiver, a closure point belongs to its closure, a ray is a recession direction, or a line is a two-sided recession direction, according to g's kind. Otherwise it shall return nothing(). Empty shall subsume no generator. Excess dimension shall throw std::invalid_argument; shorter generators shall use zero trailing coordinates.
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.
-
9. Exact polyhedron relation with a congruence PPL-SPEC-001334 Equality congruences shall use the constraint relation in 🔗 7. Exact polyhedron relation with a constraint. For a proper congruence, is_included() shall mean that every point satisfies it, is_disjoint() that none does, and strictly_intersects() that some but not all do. A nonempty polyhedron with a nonconstant congruence expression can be included only when the expression is constant at an admitted residue; that case shall also be saturates(). An excluded closure point shall not establish an intersection. Empty shall be included, disjoint and saturating. Constant congruences shall retain their arithmetic truth value. Excess dimension shall throw std::invalid_argument.
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.
-
10. Polyhedral coordinate and expression boundedness PPL-SPEC-001335 For a nonempty receiver, constrains(v) shall return true exactly when it differs from its cylindrification in coordinate v. Empty shall return true for an admitted coordinate. bounds_from_above(e) and bounds_from_below(e) shall decide existence of finite upper and lower bounds for the affine expression; both shall return true for empty. A constant expression shall be bounded on every receiver. An invalid coordinate or excess expression dimension shall throw std::invalid_argument.
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.
-
11. Exact rational polyhedral extrema and witnesses PPL-SPEC-001336 Maximization and minimization shall return true exactly when the receiver is nonempty and the expression has a finite supremum or infimum. On true, numerator and positive denominator shall represent that exact rational bound; the attainment flag shall say whether it belongs to the expression's image. The witness overload shall return an included point attaining the bound when attained, otherwise a closure point of the receiver attaining that bound. On false all scalar, flag and witness outputs shall remain unchanged. An excess expression dimension shall throw std::invalid_argument. The receiver's set and external expression shall be preserved. Bounded-coefficient generator scalar products and extremum comparisons shall use exact working arithmetic until the final translated rational extremum is reduced. Comparison-only values and unreduced numerators shall not require coefficient admission; the returned numerator and denominator shall.
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.
-
12. Constant affine-expression frequency in polyhedra PPL-SPEC-001337 frequency(e,...) shall return true exactly when the receiver is nonempty and the expression takes a single value on it. On true, frequency shall be 0/1 and the value outputs shall represent that exact rational value with positive denominator. On false all four outputs shall remain unchanged. Excess expression dimension shall throw std::invalid_argument. A nonconstant expression on a convex set shall not be reported as a positive discrete frequency.
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.
-
Incoming link from: 2. C generated domain observations1
1. Selected-coordinate integer-point existence PPL-SPEC-001670 A successfully completed contains_integer_point(integer_dimensions) shall return true exactly when the entry polyhedron contains a point whose selected coordinates are integers. Other coordinates shall remain real, and excluded NNC boundaries shall not be introduced. Empty selection shall test nonemptiness; selecting all coordinates shall have the existing 🔗 5. Exact integer-point existence in polyhedra meaning.
A selected index outside the ambient dimension shall raise std::invalid_argument before querying or normalizing the receiver. The represented value shall be preserved; logically const constraint extraction may normalize caches under 🔗 2. Equivalent borrowed polyhedral descriptions. If a required mixed feasibility encoding exceeds the MIP dimension limit, std::length_error shall be raised under 🔗 1. Exact strict mixed-integer feasibility. When the query uses the mixed-integer solver, the equality divisibility and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
Incoming links from: 1. Two-coordinate full-rank equality projection 2. Bounded coupled two-coordinate pair projection 3. Exact one-dimensional continuous LP projection 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. Bounded exact projection from current constraints 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Exact equality-pivot elimination 2. Bounded exact coupled constraint projection 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral envelope from entry constraint descriptions 3. Exact support queries for polyhedral approximations 6. Weak join with exact directional bounds and NNC attainment 1. Exact Minkowski sum of polyhedra 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid77
1. Polyhedral values, coefficient profile and valid use PPL-SPEC-001316 C_Polyhedron shall represent a rational topologically closed convex polyhedron in Rn. NNC_Polyhedron shall additionally admit excluded boundary points. A constraint description shall denote its conjunction of affine equalities and admitted non-strict or strict inequalities. An NNC generator description shall denote sums of real line directions, nonnegative ray directions and convex combinations of points and closure points, with strictly positive total weight on included points. The empty generator system shall denote empty. A nonempty generator system shall contain an included point. Coordinates shall be real even when all stored coefficients are integral.
coefficient_type shall be the configured Coefficient. Every intermediate coefficient operation shall meet that profile's range and resource conditions. In bounded profiles, double-description conversion shall evaluate incidence products and complete row combinations exactly, cancel each new geometric row's common positive factor, and then admit its stored coefficients. Unreduced products need not fit the coefficient profile; a primitive row that does not fit may raise the profile's arithmetic exception. This projective normalization shall preserve the complete augmented row, including NNC epsilon coordinates, and shall not rescale integer-lattice periods. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors and streams shall remain live and valid for their uses. Output objects shall be independently writable and shall not alias one another or input storage unless an operation explicitly permits that aliasing.
Independent objects shall own independent values. Uses that can change caches shall be externally synchronized against other uses of the same object. Unsuccessful construction shall release acquired resources. Supported numerical and resource exceptions may propagate; an existing object's surviving ownership shall permit destruction, without a general rollback or further-query guarantee.
-
2. Dimensioned empty and universe polyhedra PPL-SPEC-001317 Construction from n and kind shall create exactly EMPTY or UNIVERSE in dimension n. Default construction shall create the zero-dimensional universe, containing the unique empty tuple. Empty shall contain no point in every dimension. max_space_dimension() shall report the structural limit; an oversized or reserved dimension shall throw std::length_error before allocation proportional to that dimension. The structural limit shall not promise resource availability for every smaller request.
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.
-
3. Owned polyhedron copying, assignment and exchange PPL-SPEC-001318 Same-type copying and assignment shall preserve the source value, ambient dimension and topology while giving the target independent ownership. Assignment shall return its receiver by reference, support self-assignment and permit a change in dimension. The copy-constructor complexity argument shall not change its exactness. Destruction shall release owned resources without throwing. m_swap and swap shall exchange complete values, dimensions and cached representations of topology-compatible objects, including self-exchange. Topology-incompatible exchange shall throw std::invalid_argument before exchange. Cross-topology assignment shall follow 🔗 7. Closed and NNC value conversion.
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.
-
4. Polyhedron construction from constraints PPL-SPEC-001319 Construction from a constraint system shall inherit its ambient dimension and represent exactly its conjunction. NNC construction shall preserve strict boundaries. Closed construction shall reject every strict inequality with std::invalid_argument, even if redundant; NNC-encoded non-strict rows shall be accepted without changing their meaning. Empty conjunction shall denote universe. Contradictory conjunction shall denote empty. The const-input form shall preserve its external source. The non-const rvalue form may consume source storage; on either return its source need only remain safely destructible. Structural dimension overflow shall throw std::length_error.
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.
-
5. Polyhedron construction from generators PPL-SPEC-001320 Construction from a generator system shall inherit its ambient dimension and denote its generator interpretation in 🔗 1. Polyhedral values, coefficient profile and valid use. An empty system shall create empty. A nonempty system without an included point shall throw std::invalid_argument. Closed construction shall reject closure points, including redundant ones; NNC construction shall retain their excluded boundary meaning. Const-input construction shall preserve its external source. Recycling may consume source storage, which need only remain destructible on return. Structural dimension overflow shall throw std::length_error.
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.
-
6. Polyhedron construction from representable congruences PPL-SPEC-001321 Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
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.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion PPL-SPEC-001322 Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
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.
-
8. Polyhedron conversion from boxes PPL-SPEC-001323 Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
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.
-
9. Polyhedron conversion from difference and octagonal shapes PPL-SPEC-001324 Construction from a bounded-difference or octagonal shape shall preserve the source's real pointset and ambient dimension exactly in either topology. Every represented finite bound shall retain its coefficient-profile value; unbounded entries shall add no constraint. The complexity argument shall not change precision. Structural dimension overflow shall throw std::length_error. Source values shall be preserved.
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.
-
10. Polyhedral affine hull of a rational grid PPL-SPEC-001325 Construction from a grid shall preserve dimension and return empty for an empty source; otherwise it shall return the exact affine hull of the source, with all periodic restrictions removed and all affine equalities preserved. Both target topologies shall represent the same closed affine space. The complexity argument shall not reduce this guarantee. Source value shall be preserved, and structural dimension overflow shall throw std::length_error.
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.
-
1. Generic powerset construction and ownership PPL-SPEC-001380 Default construction shall create the empty collection. Construction from d shall store one copy of d; bottom may remain stored until reduction. Copying and assignment shall preserve the stored base-domain values and permit independent later mutations. Assignment shall return the receiver and support self-assignment. Exchange shall swap the entire collection and reduction state; self-exchange shall preserve the value. Destruction shall release owned storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Generic powerset entailment and equality PPL-SPEC-001381 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.
-
3. Generic powerset traversal and erasure PPL-SPEC-001382 size and empty shall report stored collection cardinality without requiring semantic reduction. Forward and reverse iterators shall visit the stored disjuncts in list order and reverse list order, respectively. Iterator dereference shall expose a const base element. drop_disjunct shall erase a valid dereferenceable iterator and return its successor. drop_disjuncts shall erase a valid half-open range; clear shall erase all elements. Erasure shall invalidate erased-element iterators; operations that replace or reduce the collection may invalidate additional iterators. End iterators shall not be dereferenced or passed as single-element erasure positions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. The iterator adapter protocols in 🔗 1. Read-only iterator types, borrowed positions and value operations, 🔗 2. Read-only iterator element identity and const access and 🔗 3. Read-only iterator traversal and interoperable equality shall apply.
-
4. Omega reduction of generic powersets PPL-SPEC-001383 omega_reduce shall remove bottom disjuncts and base-entailment redundancies, preserving the represented union and leaving no distinct pair related by base entailment. Equal disjuncts shall retain one representative. Repeated reduction shall preserve the value. is_omega_reduced shall report or establish whether that nonredundancy condition holds, without removing elements. Reduction shall not promise a unique geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Disjunctive insertion and exact powerset union PPL-SPEC-001384 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.
-
6. Pairwise lifting and generic powerset meet PPL-SPEC-001385 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.
-
7. Explicit powerset collapse PPL-SPEC-001386 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.
-
8. Generic powerset diagnostics and memory accounting PPL-SPEC-001387 OK(disallow_bottom) shall check base invariants and any asserted reduction condition; when requested it shall also reject stored bottom members. Memory queries shall return lower bounds on managed and total bytes; total shall equal sizeof(*this) plus external bytes. Shared base storage may be counted more than once. Stream output shall return its stream and display false for bottom, true for top or a sequence of braced disjuncts. Display and invariant checks may trigger base queries or 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.
-
1. Componentwise product image PPL-SPEC-001452 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.
-
2. Componentwise product preimage PPL-SPEC-001453 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.
-
3. Componentwise product generalized image PPL-SPEC-001454 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.
-
4. Componentwise product generalized preimage PPL-SPEC-001455 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.
-
5. Componentwise product bounded image PPL-SPEC-001456 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.
-
6. Componentwise product bounded preimage PPL-SPEC-001457 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.
-
7. Product expression-to-expression affine relations PPL-SPEC-001458 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.
-
1. Product component widening and convergence scope PPL-SPEC-001463 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.
-
1. Product coordinate operations PPL-SPEC-001459 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.
-
2. Product concatenation PPL-SPEC-001460 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.
-
1. Product descriptor addition, refinement and recycling PPL-SPEC-001448 Ordinary addition and refinement shall apply the corresponding operation to both components and mark reduction unknown. The intersection shall retain all source points satisfying the supplied restrictions, with component exactness and admission conditions. Exact-addition members shall require admission by each called component. Recycling shall first refine the nonconsuming component, then pass the system to a component advertising recycling; if neither advertises it, both shall use ordinary addition. The source may be consumed only after the other component has read it. Failure shall not promise rollback of either component or recycled input.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Product intersection PPL-SPEC-001449 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.
-
3. Product component joins and component exactness PPL-SPEC-001450 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.
-
4. Sound product set difference PPL-SPEC-001451 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.
-
5. Product closure and time elapse PPL-SPEC-001461 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.
-
6. Product integer-coordinate tightening PPL-SPEC-001462 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.
-
1. Product constraint and congruence exports PPL-SPEC-001443 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.
-
2. Component-based product property tests PPL-SPEC-001444 After policy reduction, emptiness shall test whether either component is empty; boundedness and discreteness shall test whether either component has the property; topological closure shall test whether both do. Universe shall test whether both components are universe. Disjointness shall test whether corresponding first components or corresponding second components are disjoint. Directional bound tests and constrains shall use the logical OR of the two component results. Except for exact universe characterization, these shall retain their stated component scope: a negative emptiness, boundedness, discreteness or disjointness result shall not refute the corresponding concrete property of the intersection. Component dimension/variable admission shall apply; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Component-based product descriptor relations PPL-SPEC-001445 Constraint and congruence relations shall reduce, then include each is_included, is_disjoint or saturates flag when either component reports it. They shall not infer strict intersection from component strict intersection. Generator subsumption shall require subsumption by both components. The flags shall retain the base descriptor meanings and may be incomplete for the full intersection. Descriptor dimension incompatibility shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Component-selected product bounds and witnesses PPL-SPEC-001446 Extremum queries shall reduce and return false if a component is empty or neither component provides a directional bound; outputs shall then remain unchanged. Otherwise maximization shall choose the smaller available component supremum and minimization the larger component infimum. Equal bounds shall prefer a component not attaining that bound. Success shall return its rational bound with positive denominator, attainment flag and, for witness overloads, its corresponding point or closure point. Neither success, attainment nor the witness shall establish nonemptiness or optimum attainment in the product intersection; the selected witness need not satisfy the other component. Comparison of representable component bounds shall be exact even when their cross-products exceed the configured coefficient range. Expression dimensions and independently writable outputs shall satisfy both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Product component order and equality PPL-SPEC-001447 Containment shall reduce both operands and require containment for both corresponding component pairs. Strict containment shall additionally require strictness for at least one pair. Equality shall require both component equalities after reduction; inequality shall negate it. These are component-order and equality tests, which may distinguish equal represented intersections. Componentwise strictness shall not prove strictness of concrete intersection inclusion. Dimension admission shall follow the component tests.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Direct and smash reduction policies PPL-SPEC-001438 No_Reduction shall leave both components unchanged. Smash_Reduction shall set both components empty when either is empty, otherwise preserve them. Both policies shall preserve common dimension and the represented intersection. Policy objects shall be stateless, default-constructible and destructible. Direct policy application shall require valid same-dimensional components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Constraint-sharing product reduction PPL-SPEC-001439 Constraint reduction shall propagate known emptiness, then refine the first component with the second's minimized constraints and the second with the resulting first component's minimized constraints. A newly detected empty component shall make both empty. Every shared constraint shall be implied by its donor and refinement shall preserve all points satisfying it, so the represented intersection and dimension shall be preserved. Application shall not promise a full reduced-product fixed point or exact concrete emptiness. Policy construction and destruction shall have no mathematical effect.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Congruence-sharing product reduction PPL-SPEC-001440 Congruence reduction shall propagate known emptiness and process the minimized congruences of each donor component. Equality congruences shall refine the other component. For a proper congruence e ∈ mZ, finite bounds from the other component shall identify admitted hyperplanes e = km. If no such hyperplane can intersect, both shall become empty; if exactly one can intersect, its equality shall refine both. Otherwise the procedure may leave them unchanged. Strict endpoint exclusion and signed remainders shall be respected. The represented intersection and common dimension shall be preserved; complete reduction shall not be promised. Donors shall provide minimized valid congruences, and bound arithmetic shall meet all intermediate coefficient conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Shape-preserving product reduction PPL-SPEC-001441 Shape-preserving reduction shall first perform congruence reduction, then use frequencies from one component to tighten the other's inequality bounds to admitted affine-expression values, in both directions. It shall share resulting equalities using constraint reduction. Each tightening shall be implied by the other component, preserving the represented intersection. Except for equalities introduced by congruence reduction and subsequent constraint sharing, tightening shall retain inequality directions and adjust bounds. A strict inequality whose boundary is an admitted discrete level shall advance by one full positive period even when its closest residue is zero. A strict inequality with a constant zero image shall exclude the whole intersection. Unsupported frequency queries may leave restrictions unchanged. Common dimension and all intermediate arithmetic preconditions shall hold.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Lazy product reduction and component views PPL-SPEC-001442 reduce() shall apply a default-constructed policy object when reduction is unknown, mark the pair as reduced and return true; when already marked it shall return false without invoking the policy. That flag shall record policy application rather than a mathematical fixed-point proof. domain1 and domain2 shall first reduce and return borrowed const component references. A caller shall not retain a component coefficient or representation view across another operation that can reduce, mutate or replace the component, except the explicitly supported entry-denominator borrowing in the affine wrappers.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Partially reduced product values and policy aliases PPL-SPEC-001433 A product shall own two same-dimensional components and denote their intersection, independently of how much information the selected policy has exchanged. Domain_Product<D1,D2> shall provide direct, smash, constraints, congruences and shape-preserving aliases selecting the corresponding reduction classes. Componentwise equality, strictness, emptiness and extrema shall have the explicitly stated query scope below, rather than decide all properties of the concrete intersection. Supported component domains shall satisfy the requirements of every operation and reduction policy actually instantiated.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Dimensioned product construction and extent PPL-SPEC-001434 Dimension construction shall create two empty or two universe components in n dimensions; default shall be zero-dimensional universe. The structural limit shall be the minimum component limit. An oversized or reserved dimension shall throw std::length_error before extent-proportional storage. space_dimension shall return their common ambient dimension. affine_dimension shall reduce and return the smaller component affine dimension, which need not equal the intersection's affine dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Product copying, assignment and exchange PPL-SPEC-001435 Same-type copying and assignment shall preserve both component values and the lazy reduction state. Later mutation shall be independent. Assignment shall support self-assignment and return its receiver. The copy complexity argument shall not change exactness. Exchange shall swap both components and reduction state together, including dimension; self-exchange shall preserve the value. Destruction shall release both components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Product construction from descriptor systems PPL-SPEC-001436 Constraint-system and congruence-system construction shall construct both components from the same input and mark reduction unknown. The resulting intersection shall contain the described set and shall be exact when the combined component constructions represent it exactly. Const sources shall be preserved. Nonconst overloads shall permit the documented second-component recycling while constructing the first from an unconsumed view. Admission and exceptions shall follow both component constructors.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Conversions to a product PPL-SPEC-001437 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.
-
Incoming links from: 1. Supported exact integer and rational conversion to native floating storage 3. Directed rational-to-integral conversion within range 6. Rational conversion at and beyond integral endpoints 2. Exact rational assignment of finite native floating-point values 3. Exact finite rational addition, subtraction, multiplication and division 4. Rational sign assignments and integral-valued rounding operations 5. Truncated rational quotient and signed rational remainder 6. Exact rational operations with powers of two 7. Exact rational product accumulation and subtraction 9. Finite rational sign, comparison and numeric classification 2. GMP integer and rational special-value classification 1. Exact scalar numerator and denominator extraction 2. Finite rational square root at the selected irrational precision 2. Directed canonical rational conversion to an unbounded integer14
1. Exact rational assignment from rational and integral sources PPL-SPEC-000091 assign_r(to, from, dir) shall replace to by the exact value of a canonical rational source, mpz_class source or supported native integral source, and shall return V_EQ. Integral assignment shall produce canonical denominator one, including for zero, both signs and signed and unsigned native endpoints. Rational self-assignment shall preserve its value.
The native source types shall be char, signed char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long and unsigned long long. Their full representable ranges shall be admitted. The directions ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change this exact value or result classification.
Rational sources shall be finite canonical mpq_class objects: the denominator shall be positive, and numerator and denominator shall be coprime; zero shall be represented as 0/1. The destination shall be a live rational object. Distinct sources shall remain unchanged. Callers shall synchronize access overlapping modification of an argument object. No library initialization object, thread initialization or coefficient-constant stage shall be required. Available resources shall limit computation; no fixed coefficient-width bound shall be imposed on rational arithmetic itself.
-
Incoming link from: 1. Exact scalar numerator and denominator extraction1
2. Exact rational assignment of finite native floating-point values PPL-SPEC-000092 For a finite source of type float, double or long double whose corresponding PPL_SUPPORTED_FLOAT, PPL_SUPPORTED_DOUBLE or PPL_SUPPORTED_LONG_DOUBLE macro is nonzero, assign_r(to, from, dir) shall assign its exact mathematical value as a canonical rational and return V_EQ. This shall include signed zero, subnormal values where supported, and the finite endpoints of the source format. Either sign of floating-point zero shall produce rational 0/1. The result shall preserve the represented binary floating-point value, without substituting a nearby decimal interpretation.
ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change the assigned value or status. The current floating-point rounding direction shall not change the exact rational value. Nonfinite inputs and numeric policies for encoded special rationals shall be outside this finite-value contract.
The destination shall be a live rational object. Synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The floating-point source shall remain unchanged.
-
Incoming links from: 1. Same-storage checked compound arithmetic 2. Checked named remainder and exact quotient2
3. Exact finite rational addition, subtraction, multiplication and division PPL-SPEC-000093 For source entry values a and b, add_assign_r, sub_assign_r and mul_assign_r shall assign a + b, a − b and ab, respectively. div_assign_r shall require b ≠ 0 and assign a ⁄ b. Each successful operation shall produce a canonical rational and return V_EQ. This shall include cancellation, zero numerators and arbitrarily large finite integral numerator or denominator values within available resources.
The two sources may be the same object. The directions ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change the exact value or status. A transparent rational policy shall not promise rejection of a zero divisor.
Canonical operands, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall be a live rational object and may be any source; the operation shall use every operand's entry value. Distinct sources shall remain unchanged.
-
4. Rational sign assignments and integral-valued rounding operations PPL-SPEC-000094 For source entry value a, neg_assign_r and abs_assign_r shall assign − a and |a|. floor_assign_r, ceil_assign_r and trunc_assign_r shall assign, respectively, ⌊a⌋, ⌈a⌉ and trunc(a), where truncation is toward zero. The three integral-valued results shall have denominator one.
Each successful call shall return V_EQ for its specified operation's result, including rounding a nonintegral source to an integer. The status shall not assert that this rounded integer equals the original source. ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall leave the specified operation result and status unchanged.
Canonical operands, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall be a live rational object and may be any source; the operation shall use every operand's entry value. Distinct sources shall remain unchanged.
-
Incoming links from: 1. Same-storage checked compound arithmetic 2. Checked named remainder and exact quotient2
5. Truncated rational quotient and signed rational remainder PPL-SPEC-000095 For rational source entry values a and nonzero b, idiv_assign_r(to, x, y, dir) shall assign q = trunc(a ⁄ b) as a canonical rational with denominator one. rem_assign_r(to, x, y, dir) shall assign r = a − btrunc(a ⁄ b). The remainder shall satisfy |r| < |b|; a nonzero remainder shall have the sign of a. Each successful call shall return V_EQ for its specified operation.
The two sources may be the same object. The directions ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change these truncation and remainder conventions or the returned exact status. A zero-divisor rejection guarantee shall not be inferred from this contract.
Canonical operands, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall be a live rational object and may be any source; the operation shall use every operand's entry value. Distinct sources shall remain unchanged.
With a non-thread-safe build, calls to rem_assign_r shall not overlap PPL arithmetic in another thread. A thread-safe build shall provide independent temporary storage for each thread.
-
6. Exact rational operations with powers of two PPL-SPEC-000096 For source entry value a and unsigned int exponent e, let m = 2e. add_2exp_assign_r and sub_2exp_assign_r shall assign a + m and a − m. mul_2exp_assign_r and div_2exp_assign_r shall assign am and a ⁄ m.
umod_2exp_assign_r shall assign ru = a − m⌊a ⁄ m⌋, satisfying 0 ≤ ru < m. smod_2exp_assign_r shall assign rs = a − m⌊a ⁄ m + 1 ⁄ 2⌋, satisfying − m ⁄ 2 ≤ rs < m ⁄ 2; the half-period tie shall select the negative endpoint. These remainder operations shall preserve fractional parts as required by their mathematical definitions.
Every successful call shall produce a canonical rational and return V_EQ. Exponent zero shall mean m = 1. The exponent range shall be subject to available resources; it shall not be capped by the configured coefficient width. ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change these exact results.
Canonical operands, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall be a live rational object and may be any source; the operation shall use every operand's entry value. Distinct sources shall remain unchanged.
With a non-thread-safe build, calls to add_2exp_assign_r or sub_2exp_assign_r shall not overlap PPL arithmetic in another thread. A thread-safe build shall provide independent temporary storage for each thread.
-
Incoming link from: 4. Checked named product accumulation1
7. Exact rational product accumulation and subtraction PPL-SPEC-000097 For destination and source entry values d, a and b, add_mul_assign_r shall assign d + ab and sub_mul_assign_r shall assign d − ab. Each successful call shall produce a canonical rational and return V_EQ. The destination may be either or both sources; the two sources may be the same object.
ROUND_DOWN, ROUND_UP, ROUND_IGNORE and ROUND_NOT_NEEDED, with an optional ROUND_STRICT_RELATION flag, shall not change the exact value or status. There shall be no bounded coefficient intermediate-range restriction on these rational operations.
Canonical operands, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall be a live rational object and may be any source; the operation shall use every operand's entry value. Distinct sources shall remain unchanged.
-
Incoming link from: 1. Exact scalar sign and ordering1
9. Finite rational sign, comparison and numeric classification PPL-SPEC-000099 For finite canonical rational values, sgn(x) shall return -1, 0 or 1 according to the sign of the numerator. cmp(x, y) shall return an int whose sign agrees with the mathematical ordering of the rationals; a nonzero magnitude shall not be prescribed.
is_integer(x) shall return true exactly when the canonical denominator is one. is_not_a_number(x), is_minus_infinity(x) and is_plus_infinity(x) shall each return false. These predicates shall return bool and shall preserve the operands. They shall not give a finite rational value an infinity merely because an associated bounded coefficient profile cannot hold its numerator or denominator. The admitted GMP special representations and their extended-integrality classification shall follow 🔗 2. GMP integer and rational special-value classification.
Canonical inputs, synchronization and resource prerequisites shall follow 🔗 1. Exact rational assignment from rational and integral sources.
-
1. Read-only iterator types, borrowed positions and value operations PPL-SPEC-001595 iterator_to_const<Container> shall store a Container::iterator; const_iterator_to_const<Container> shall store a Container::const_iterator. Both wrappers shall expose the five iterator traits of Container::const_iterator. Admitted containers shall provide bidirectional mutable and constant iterators, with constant-iterator reference and pointer types providing ordinary const element references and pointers. Each selected underlying iterator operation shall be well-formed and satisfy its own lifetime, range and synchronization conditions.
Default construction shall value-initialize the underlying position. Copying and assignment shall preserve the borrowed position without copying an element or taking ownership of the sequence. Assignment shall return a reference to its target. Conversion from a mutable wrapper to its constant counterpart shall preserve the position and element identity; the reverse conversion shall not be provided. Construction from an underlying position shall remain restricted to the declared friends. Destruction shall destroy the stored iterator without destroying the borrowed container or elements. Underlying exceptions shall propagate with the underlying operation's state guarantees and normal completed-subobject cleanup.
Position validity and invalidation shall follow the underlying container. Singular positions shall be used only for operations admitted for the underlying singular iterator; element access and movement shall require valid range positions. The adapters shall impose no numerical initialization prerequisite of their own. Element operations shall retain their prerequisites.
-
Incoming link from: 3. Generic powerset traversal and erasure1
2. Read-only iterator element identity and const access PPL-SPEC-001596 At a valid dereferenceable position, operator* shall return the underlying element as the declared constant reference, and operator-> shall return a pointer to that same element as the declared constant pointer. Both mutable-container and constant-container wrappers shall prevent direct mutation through their exposed reference and pointer types. Access shall preserve the stored position and the identity of the borrowed element, without copying it. The valid-use conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply. An end or singular iterator shall not be dereferenced.
-
Incoming link from: 3. Generic powerset traversal and erasure1
3. Read-only iterator traversal and interoperable equality PPL-SPEC-001597 Prefix increment and decrement shall move the stored position by one underlying step and return a reference to the same wrapper. Postfix forms shall make the same movement and return a wrapper holding the preceding position. Copies shall thereafter move independently. Forward and reverse traversal shall follow the underlying sequence order without modifying its elements.
Equality shall compare the underlying positions; inequality shall be its Boolean complement. Mutable and constant wrappers of the same container type shall support both operand orders, with comparison through the corresponding constant position. Comparisons shall require positions in an underlying comparison domain, including the same sequence when required by that iterator. Movement shall remain within the underlying bidirectional range: increment of its end and decrement of its begin shall not be admitted. Decrement of end shall be admitted for a nonempty range. The conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply.
-
Incoming links from: 12. Relations between bounded-difference values and linear constraints 12. Relations between octagonal values and linear constraints 2. Constraint-relation value copying and lifetime 3. Constraint-relation conjunction, subtraction and implication 4. Constraint-relation flag encoding and validity 5. Constraint-relation textual output and stream failures6
1. Constraint-relation assertion values and named factories PPL-SPEC-000541 Poly_Con_Relation shall represent a finite set A of named assertions. nothing() shall return the empty assertion set. The factories is_disjoint(), strictly_intersects(), is_included(), saturates() shall return the corresponding singleton sets. The four atoms shall assert, respectively, disjointness from the constraint satisfying set, intersection without inclusion in that set, inclusion in that set, and vanishing of the constraint's affine expression at every represented point. A domain query shall supply the interpretation applicable to its accepted descriptor and domain.
Every subset of the named atoms shall be a valid value, including combinations that cannot describe a particular nonempty geometric object. An empty assertion set shall state no fact; absence of an atom shall not assert its negation. Operations on these values shall require live initialized objects and synchronized access against mutation. They shall require no library or thread initialization owner, coefficient-constant stage or FPU setup. Numerical coefficient limits shall not restrict the assertion algebra.
-
2. Constraint-relation value copying and lifetime PPL-SPEC-000542 Copy construction and assignment of Poly_Con_Relation shall preserve exactly the source assertion set. Assignment shall return the destination reference and admit self-assignment. Later assignment of either object shall leave the other unchanged, and either object shall remain usable after destruction of its source or copy. Destruction shall require no external lifetime owner. An rvalue may be copied; it shall not require an empty moved-from source. The validity and initialization prerequisites in 🔗 1. Constraint-relation assertion values and named factories shall apply.
-
3. Constraint-relation conjunction, subtraction and implication PPL-SPEC-000543 For assertion sets A and B represented by x and y, x && y shall represent A∪B, and x - y shall represent A⧵B. x.implies(y) shall return true exactly when B ⊆ A. Equality shall return true exactly when A = B; inequality shall be its logical negation. These operations shall preserve both operands and admit the same object in both positions.
Implication shall inspect asserted membership only: it shall neither infer additional geometric facts from an atom nor use inconsistent combinations to infer unstored atoms. Subtracting an absent assertion shall have no effect; subtracting a value from itself shall yield nothing(). The prerequisites in 🔗 1. Constraint-relation assertion values and named factories shall apply.
-
4. Constraint-relation flag encoding and validity PPL-SPEC-000544 get_flags() shall return the unsigned bitwise union of the masks of exactly the stored atoms. nothing() shall have mask zero. is_disjoint(), strictly_intersects(), is_included() and saturates() shall have masks 1, 2, 4 and 8, respectively. OK() shall return true for every value obtained from named factories, copying, assignment and the assertion algebra. Both queries shall preserve the value. Their prerequisites shall follow 🔗 1. Constraint-relation assertion values and named factories.
-
5. Constraint-relation textual output and stream failures PPL-SPEC-000545 Stream output and ascii_dump(s) shall emit exactly the stored assertion names in the order IS_DISJOINT, STRICTLY_INTERSECTS, IS_INCLUDED, SATURATES, separated by `` & `` when more than one is present. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 1. Constraint-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
-
Incoming links from: 14. Subsumption of geometric generators by bounded-difference values 14. Subsumption of geometric generators by octagonal values 7. Generator-relation value copying and lifetime 8. Generator-relation conjunction, subtraction and implication 9. Generator-relation flag encoding and validity 10. Generator-relation textual output and stream failures6
6. Generator-relation assertion values and named factories PPL-SPEC-000546 Poly_Gen_Relation shall represent a finite set A of named assertions. nothing() shall return the empty assertion set. The factories subsumes() shall return the corresponding singleton sets. The atom shall assert that adding the generator would not change the represented set, under the applicable domain and generator-kind interpretation.
The empty assertion set and the singleton subsumption assertion shall both be valid values. The empty set shall state no fact; absence of the subsumption assertion shall not assert its negation. Operations on these values shall require live initialized objects and synchronized access against mutation. They shall require no library or thread initialization owner, coefficient-constant stage or FPU setup. Numerical coefficient limits shall not restrict the assertion algebra.
-
7. Generator-relation value copying and lifetime PPL-SPEC-000547 Copy construction and assignment of Poly_Gen_Relation shall preserve exactly the source assertion set. Assignment shall return the destination reference and admit self-assignment. Later assignment of either object shall leave the other unchanged, and either object shall remain usable after destruction of its source or copy. Destruction shall require no external lifetime owner. An rvalue may be copied; it shall not require an empty moved-from source. The validity and initialization prerequisites in 🔗 6. Generator-relation assertion values and named factories shall apply.
-
8. Generator-relation conjunction, subtraction and implication PPL-SPEC-000548 For assertion sets A and B represented by x and y, x && y shall represent A∪B, and x - y shall represent A⧵B. x.implies(y) shall return true exactly when B ⊆ A. Equality shall return true exactly when A = B; inequality shall be its logical negation. These operations shall preserve both operands and admit the same object in both positions.
Implication shall inspect asserted membership only: it shall neither infer additional geometric facts from an atom nor use inconsistent combinations to infer unstored atoms. Subtracting an absent assertion shall have no effect; subtracting a value from itself shall yield nothing(). The prerequisites in 🔗 6. Generator-relation assertion values and named factories shall apply.
-
9. Generator-relation flag encoding and validity PPL-SPEC-000549 get_flags() shall return the unsigned bitwise union of the masks of exactly the stored atoms. nothing() shall have mask zero. subsumes() shall have mask 1. OK() shall return true for every value obtained from named factories, copying, assignment and the assertion algebra. Both queries shall preserve the value. Their prerequisites shall follow 🔗 6. Generator-relation assertion values and named factories.
-
10. Generator-relation textual output and stream failures PPL-SPEC-000550 Stream output and ascii_dump(s) shall emit exactly the stored assertion as SUBSUMES for the singleton subsumption assertion. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 6. Generator-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
-
1. Exact scalar ASCII persistence PPL-SPEC-000571 For the eleven standard native integer types, mpz_class, mpq_class and their Checked_Number wrappers, ascii_dump shall write a finite scalar's exact mathematical value in the compatible decimal representation. Integral values, including raw char, signed char and unsigned char, shall be represented numerically. A canonical rational shall use its exact integer or numerator/denominator representation.
Under compatible scalar type, policy, locale and stream-format conditions, ascii_load of a complete representation emitted for an admitted finite value shall return true and restore that value. All representable native integer values shall belong to the round-trip scope. Distinct successive records separated by whitespace shall be reloadable in order without consuming another record's value. The stream shall remain positioned after the loaded numeric token. Canonical finite GMP rational producer records shall restore canonical finite rational storage.
The producer and consumer shall use classic-locale ordinary decimal numeric formatting, with no field padding. Checked exact input shall require the policy capabilities of 🔗 6. Checked numeric stream policy integration, including a default input direction compatible with the exact stored value and a result handler that permits its returned result. Checked output shall require a result handler. Underlying scalar storage shall be live and finite; rational producer values and compatible rational records shall be canonical with positive denominator. The corresponding mathematical input and output semantics and relevant serialization prerequisites shall follow 🔗 1. Exact finite numeric token syntax through 🔗 6. Checked numeric stream policy integration for checked stream operations. These numeric-text parser rules shall not replace the ordinary GMP extraction rules for raw GMP destinations. Successful raw GMP rational extraction shall not by itself promise canonicalization or a nonzero denominator: for example, 2/4 and 1/0 may be accepted as those numerator/denominator representations. Subsequent numerical use shall first meet its canonicalization and nonzero- denominator prerequisites.
-
2. Finite floating scalar ASCII byte records PPL-SPEC-000572 For a configured supported native floating type or its checked wrapper, ascii_dump shall emit exactly two hexadecimal digits for each byte of the source object's representation, in increasing memory-address order. Leading zero nibbles shall be included. The byte token shall be followed by one space and a nonempty parenthesized display token. The byte token shall be authoritative for reload; the display shall be supplementary.
The source shall be live and finite, including either signed zero, subnormal values and finite range endpoints. Producer and consumer shall use the same scalar or checked type, object size and ABI. In particular, the record shall not promise interchange between different floating formats or checked object types. The producer stream shall use the classic locale, right adjustment, no base prefix and ordinary numeric display formatting. Checked display output shall require a policy result handler under 🔗 6. Checked numeric stream policy integration. On normal return, original formatting flags shall be restored; byte emission shall select a zero fill character. The source value and hardware rounding direction shall remain unchanged. No library initialization or FPU rounding setup shall be required; available resources and nontrapping floating exceptions shall be prerequisites.
-
3. Finite floating scalar ASCII reload and framing PPL-SPEC-000573 For the compatible finite object records of 🔗 2. Finite floating scalar ASCII byte records, ascii_load shall read a hexadecimal byte token of exactly twice the destination object's size. Each hexadecimal letter shall be accepted in upper or lower case. It shall restore the bytes to the corresponding memory positions and require a following nonempty whitespace-delimited token whose first character is ( and last character is ). There shall be at least one character between the parentheses. On successful reload it shall return true and preserve the represented finite value and zero sign. The contents between parentheses shall be discarded; they shall not override or be required to numerically agree with the byte token. A following record shall remain available for a subsequent load.
An absent or wrong-length byte token, a nonhexadecimal byte digit, a missing display token or a display token without that nonempty parenthesized framing shall return false when the stream's exception mask permits normal return. A false return shall not require failbit if a lexical token was successfully extracted before the record-shape check failed. The destination may already have been changed; rollback shall not be promised.
The destination shall be live, and finite records shall encode a valid finite object of that same type and ABI. Resetting storage after a rejected record shall precede any numerical use that requires a valid finite representation. Checked floating reload shall require a policy providing the input-stream capabilities of 🔗 6. Checked numeric stream policy integration, including ROUND_DEFAULT_INPUT and handle_result. Successful byte reload shall restore the representation directly without applying that numerical rounding default or invoking the handler. No library initialization or FPU rounding setup shall be required, and the hardware direction shall remain unchanged.
-
Incoming link from: 4. Reloadable interval metadata and endpoint export1
4. Scalar ASCII stream delivery and failure handling PPL-SPEC-000574 Scalar ASCII persistence shall use ordinary stream delivery state and the stream's selected exception mask. ascii_dump shall return no delivery status; normal return shall not imply that the output stream accepted every character. ascii_load shall return false when a required formatted extraction fails and no enabled exception interrupts the operation. Exact checked scalar loads shall retain the policy exception behavior of 🔗 6. Checked numeric stream policy integration. Exceptions enabled by the stream mask and policy handler exceptions shall propagate. Stream-buffer exception handling shall follow the underlying formatted stream operation.
Producer source values shall remain unchanged. On failed input, destination storage and stream position may already have changed; callers shall reset an affected destination and clear or replace the stream before retrying. Native and GMP scalar storage shall remain destructible and assignable; no earlier numerical value shall be promised. After a successful compatible retry the destination shall have the newly loaded finite value.
Callers shall synchronize stream and object access overlapping modification. The selected scalar's allocation and representation prerequisites shall apply. No coefficient-constant stage or library initialization shall be introduced by scalar persistence. Checked exact numeric parsing shall retain its shared-temporary serialization requirements from 🔗 3. Numeric text input into integral destinations. Floating byte records shall retain the finite/type/ABI prerequisites of 🔗 2. Finite floating scalar ASCII byte records and 🔗 3. Finite floating scalar ASCII reload and framing.
-
1. Policy-dependent native integer classification PPL-SPEC-000846 The source shall have one of the eleven native integer storage types, either raw or wrapped as in 🔗 1. Exact same-storage native integer arithmetic. Every native integer payload shall denote its ordinary finite value or an admitted special representation according to the source policy. Reserved representations shall follow 🔗 1. Typed special-marker assignment to native integer storage. A raw native integer source shall have no reserved infinity or NaN patterns.
is_not_a_number(x) shall be true exactly for an admitted NaN; is_minus_infinity(x) and is_plus_infinity(x) shall be true exactly for their admitted signed infinities. infinity_sign(x) shall return − 1 for negative infinity, 1 for positive infinity and zero for finite values and NaN. A representation reserved only by another policy shall not be interpreted as special under the source's own policy.
is_integer(x) shall return true for every finite native integer and each admitted signed infinity, and false for an admitted NaN. It shall recognize membership in the extended integral domain ℤ∪{ − ∞, + ∞}. Ordinary membership in ℤ shall additionally require excluding both infinities.
For a checked source, classify(nan, inf, sign) shall apply these rules in order:
- For a NaN, if nan or sign is true, return V_NAN.
- If inf is true, return V_EQ_MINUS_INFINITY or V_EQ_PLUS_INFINITY for an infinity of the corresponding sign.
- If sign is true, return V_LT for a negative value, V_GT for a positive value and V_EQ for zero. This shall include an infinity whose infinity classification was not requested.
- Otherwise return V_LGE, including for NaN when neither NaN nor sign classification was requested.
Omitted arguments shall request all three classifications. Normal relation codes in this query shall classify the source's sign relative to zero; they shall not describe an arithmetic rounding error. No overflow or unrepresentability flag shall be added. The classes and relations shall have the meanings of 🔗 1. Numerical result classes and relation meanings.
Sources shall be live and remain unchanged, and access overlapping mutation shall be synchronized. Calls shall require no library initialization, coefficient-constant stage, FPU setup, rounding default or policy handler. They shall invoke no handler and preserve hardware direction.
-
Incoming link from: 9. Finite rational sign, comparison and numeric classification1
2. GMP integer and rational special-value classification PPL-SPEC-000847 The source shall be raw mpz_class or mpq_class, or an admitted Checked_Number<T, Policy> with either underlying type. It shall contain a finite valid value, or a PPL special representation admitted by its own policy as in 🔗 2. Typed special-marker assignment to GMP integer and rational storage. Finite rational sources shall be canonical with a positive nonzero denominator as in 🔗 1. Exact rational assignment from rational and integral sources. Raw GMP sources shall have their native transparent source policy and shall admit only its supported representations.
is_not_a_number(x) shall be true exactly for an admitted NaN; is_minus_infinity(x) and is_plus_infinity(x) shall be true exactly for their admitted signed infinities. infinity_sign(x) shall return − 1 for negative infinity, 1 for positive infinity and zero for finite values and NaN. A representation reserved only by another policy shall not be interpreted as special under the source's own policy.
is_integer(x) shall return true for every finite mpz_class value, for a finite canonical mpq_class exactly when its denominator is one, and for each admitted signed infinity. It shall return false for an admitted NaN. It shall recognize the extended integral domain ℤ∪{ − ∞, + ∞}; ordinary membership in ℤ shall additionally require excluding both infinities.
For a checked source, classify(nan, inf, sign) shall apply these rules in order:
- For a NaN, if nan or sign is true, return V_NAN.
- If inf is true, return V_EQ_MINUS_INFINITY or V_EQ_PLUS_INFINITY for an infinity of the corresponding sign.
- If sign is true, return V_LT for a negative value, V_GT for a positive value and V_EQ for zero. This shall include an infinity whose infinity classification was not requested.
- Otherwise return V_LGE, including for NaN when neither NaN nor sign classification was requested.
Omitted arguments shall request all three classifications. Normal relation codes in this query shall classify the source's sign relative to zero; they shall not describe an arithmetic rounding error. No overflow or unrepresentability flag shall be added. The classes and relations shall have the meanings of 🔗 1. Numerical result classes and relation meanings.
Sources shall be live and remain unchanged, and access overlapping mutation shall be synchronized. Calls shall require no library initialization, coefficient-constant stage, FPU setup, rounding default or policy handler. They shall invoke no handler and preserve hardware direction.
A supported PPL special representation shall be inspected through the PPL queries rather than ordinary GMP numerical operations. Available resources shall suffice for the source objects. Unbounded finite magnitudes shall not be classified as infinities. Native floating-point classification shall retain 🔗 1. Native floating-point NaN and infinity predicates and 🔗 2. Selective classification of native floating-point checked values.
-
Incoming links from: 1. Infinity ordering and unordered scalar predicates 1. Infinity ordering and unordered scalar predicates 12. Certified finite scalar embeddings 2. Mixed finite floating and exact scalar ordering 2. Mixed finite floating and exact scalar ordering 1. Finite same-type minimum and maximum assignment6
1. Exact scalar sign and ordering PPL-SPEC-000575 For the eleven standard native integer types, mpz_class, canonical finite mpq_class and their admitted checked wrappers, the named comparison functions shall compare the exact mathematical entry values, including operands of different scalar types. Signedness and storage width shall not replace mathematical ordering: a negative signed integer shall be less than every nonnegative unsigned integer, and unbounded integers and rational fractions shall retain their exact values.
cmp(x, y) shall return an int with negative, zero or positive sign exactly when x < y, x = y or x > y. Its nonzero magnitude shall not be prescribed. equal, not_equal, less_than, less_or_equal, greater_than and greater_or_equal shall return true exactly for their named mathematical relations. The corresponding six PPL comparison operators shall have the same meanings when at least one operand is a checked scalar. This operator guarantee shall not alter the built-in operators between two raw native integer types.
sgn(x) shall return exactly -1, 0 or 1 according to the mathematical value's sign. The configured coefficient and raw rational query contracts shall retain 🔗 1. Integral coefficient representation access and sign comparison and 🔗 9. Finite rational sign, comparison and numeric classification. Operands may be the same object. All these queries shall preserve source values, perform no policy result-handler dispatch and require no rounding default. They shall admit every finite representable value allowed by each operand's policy, including ordinary native integer minima and maxima. Checked policies shall provide the backend's relevant classification and representation traits.
Objects shall be live; rational values shall be canonical with positive denominator. Resources shall suffice for exact comparison and temporaries. Callers shall synchronize queries with overlapping object modification and serialize shared numerical temporaries in non-thread-safe builds. These exact scalar queries shall require no library initialization, coefficient constants or FPU rounding setup, and shall preserve hardware direction.
-
2. Mixed finite floating and exact scalar ordering PPL-SPEC-000576 For one configured supported native floating operand and one exact scalar from 🔗 1. Exact scalar sign and ordering, including their admitted checked wrappers, cmp and the six named comparison predicates shall compare their exact mathematical entry values. The floating value shall mean its exactly stored binary value; a nearby decimal or integral value shall not be substituted. The PPL comparison operators shall have those same relation meanings when at least one operand is checked.
A large integer shall not be rounded to the floating operand's precision before deciding equality or order. Likewise, a finite rational shall retain its numerator/denominator value. Opposite signed floating zeros shall both compare as mathematical zero. Argument order shall not change equality or the mathematical relation: reversing arguments shall reverse strict order. These comparisons shall not invoke policy result handlers or use rounding defaults. Both argument objects shall remain unchanged. Floating/floating ordering shall retain 🔗 4. Ordered comparison of finite native floating-point values.
All operands shall be finite and valid for their selected policies, with canonical positive-denominator rational storage. Exact resources, synchronization and shared-temporary serialization shall follow 🔗 1. Exact scalar sign and ordering. General mixed comparisons shall require upward hardware rounding for their directed conversion filters, and preserve that direction. Native floating conversions and strict result queries shall have the backend/setup prerequisites of 🔗 1. Directed native integral conversion to native floating-point storage and 🔗 4. Directed narrowing between finite native floating-point formats; no coefficient-constant stage shall be required. Available resources shall permit any exact conversion or temporary needed by the comparison.
-
Incoming links from: 6. Remainder with a policy-admitted infinite divisor 1. Conversion of policy-admitted scalar special values 2. Unary and binary-scale transformations of scalar special values 3. Extended scalar binary arithmetic and enabled fault diagnosis 4. Nonfinite remainder operands and enabled modulus faults 5. Extended accumulated products and enabled fault diagnosis 6. Square-root special values and enabled negative-input diagnosis 1. Same-type checked copying of admitted special values 1. Checked special-marker construction and policy assignment 1. Infinity ordering and unordered scalar predicates 3. Unbounded and signed-infinity boundary assignment 1. Typed special construction in native scalar storage 1. Typed special construction in native scalar storage 1. Policy-dependent native integer classification 2. Typed special-marker assignment to GMP integer and rational storage15
1. Typed special-marker assignment to native integer storage PPL-SPEC-000844 Minus_Infinity, Plus_Infinity and Not_A_Number shall be typed markers for VC_MINUS_INFINITY, VC_PLUS_INFINITY and VC_NAN. Their static vclass members shall give those classes, and Is_Special shall identify those three unqualified marker types. MINUS_INFINITY, PLUS_INFINITY and NOT_A_NUMBER shall provide corresponding marker objects. Special_Marker<T> shall have the truth value of Is_Special<T>::value; it shall not strip qualifiers or require numeric operations from the marker. Existing trait specializations shall determine its admission.
For the raw or checked native integer destinations in 🔗 1. Exact same-storage native integer arithmetic, assign_r shall replace the destination according to the marker and the destination policy. If infinities are admitted, negative and positive infinity shall be stored in their reserved representations and return V_EQ_MINUS_INFINITY and V_EQ_PLUS_INFINITY without V_UNREPRESENTABLE. If NaN is admitted, its reserved representation shall be stored and V_NAN returned without V_UNREPRESENTABLE. A NaN shall require no ordered relation.
If infinities are not admitted, negative infinity with ROUND_UP shall store the lower finite endpoint and return V_LT_INF; positive infinity with ROUND_DOWN shall store the upper finite endpoint and return V_GT_SUP. For the other admitted directions, the result shall be V_EQ_MINUS_INFINITY | V_UNREPRESENTABLE or V_EQ_PLUS_INFINITY | V_UNREPRESENTABLE, respectively, with no payload promise. Unsupported NaN shall return V_NAN | V_UNREPRESENTABLE with no payload promise. The finite interval shall follow 🔗 1. Bounded checked integer limits and reserved endpoints. In signed storage, positive infinity shall use the native maximum, negative infinity the native minimum, and NaN the native minimum plus one when infinities are admitted, or the native minimum otherwise. In unsigned storage, positive infinity shall use the native maximum, negative infinity the native maximum minus one, and NaN the native maximum minus twice the policy's infinity-admission Boolean.
Infinity markers shall admit ROUND_DOWN, ROUND_UP and ROUND_IGNORE, with or without ROUND_STRICT_RELATION. They shall also admit ROUND_NOT_NEEDED and its strict form when infinities are representable. NaN markers shall admit the first three base directions and their strict forms. A strict flag shall not alter these class, relation or flag outcomes. The supplied marker shall remain unchanged.
The entry payload shall impose no numerical precondition on replacement. After an unrepresentable result, the destination shall remain live and reusable without inspecting an unspecified payload. Calls shall require no rounding default or result handler and shall not invoke a handler. Live-object, synchronization, initialization and hardware-direction prerequisites shall follow 🔗 1. Exact same-storage native integer arithmetic.
-
Incoming links from: 6. Remainder with a policy-admitted infinite divisor 1. Conversion of policy-admitted scalar special values 2. Unary and binary-scale transformations of scalar special values 3. Extended scalar binary arithmetic and enabled fault diagnosis 4. Nonfinite remainder operands and enabled modulus faults 5. Extended accumulated products and enabled fault diagnosis 6. Square-root special values and enabled negative-input diagnosis 1. Same-type checked copying of admitted special values 1. Checked special-marker construction and policy assignment 1. Infinity ordering and unordered scalar predicates 3. Unbounded and signed-infinity boundary assignment 2. GMP integer and rational special-value classification12
2. Typed special-marker assignment to GMP integer and rational storage PPL-SPEC-000845 For raw mpz_class or mpq_class destinations, and admitted Checked_Number<T, Policy> destinations with either underlying type, assign_r from the typed markers in 🔗 1. Typed special-marker assignment to native integer storage shall replace the destination according to its policy. If infinities are admitted, negative and positive infinity shall be stored as their PPL special representations and return V_EQ_MINUS_INFINITY and V_EQ_PLUS_INFINITY without V_UNREPRESENTABLE. If NaN is admitted, its PPL representation shall be stored and V_NAN returned without V_UNREPRESENTABLE. These result flags shall truthfully characterize the supported stored representations as specified by 🔗 1. Numerical result classes and relation meanings.
If infinities are not admitted, either infinity marker shall return its exact infinity class/relation with V_UNREPRESENTABLE and no payload promise. An unbounded finite range shall not provide a finite inward endpoint for infinity. Unsupported NaN shall return a NaN-class diagnostic with no payload promise; absence of V_UNREPRESENTABLE alone shall not claim successful NaN representation. No ordinary finite numerical answer shall be inferred from an unsupported result.
Infinity markers shall admit ROUND_DOWN, ROUND_UP and ROUND_IGNORE, with or without a strict flag, and additionally ROUND_NOT_NEEDED and its strict form when infinities are representable. NaN markers shall admit the first three base directions and their strict forms, with an empty ordered relation. The marker shall remain unchanged; the entry payload shall impose no numerical precondition on replacement.
A PPL special representation shall not be passed to ordinary GMP numerical operations. Subsequent finite arithmetic shall satisfy its applicable finite/canonical prerequisites; in particular, a PPL rational special representation shall not be treated as a finite canonical rational. After an unsupported result, the destination shall remain live and reusable without inspecting an unspecified payload. Available resources shall suffice for the objects and their replacement. Object access overlapping mutation shall be synchronized. Calls shall require no library initialization, coefficient-constant stage, FPU setup, rounding default or policy handler, shall invoke no handler and shall preserve hardware direction. Raw destinations shall use their native checked destination policy; native floating-point forms shall retain 🔗 4. Typed special-value assignment to native floating-point storage.
-
Incoming link from: 2. Consuming coefficient relocation1
1. Native integral checked-number value move PPL-SPEC-001639 For an admitted native integral storage type T, move construction of Checked_Number<T, Policy> shall copy the source's stored integer value and preserve the source. It shall be a trivial, nonthrowing constructor and shall invoke neither a conversion operation nor Policy::handle_result. The wrapper shall have a trivial destructor and one native integral data member; it shall be an implicit-lifetime class under C++20. Its size and alignment shall equal those of T. These properties shall not imply that the wrapper is trivially copyable. The copy constructor and copy assignment shall retain their separately specified behavior.
This constructor shall be available only when Is_Native<T>::value is nonzero and std::is_integral_v<T> is true. GMP and floating-point storage shall retain the existing copy-from-rvalue behavior. The source shall be a live initialized object with an admitted stored representation; no library initialization, rounding setup, allocation or policy callback shall be required.
-
2. Consuming coefficient relocation PPL-SPEC-001640 For the configured coefficient type, relocate_coefficient(to,from) shall transfer the entry source value to a distinct destination slot. relocate_coefficients(to,from,count) shall transfer the ordered sequence of count source values between disjoint ranges. relocate_coefficients_right(from,count,shift) shall transfer that sequence to the range beginning shift slots later in the same allocation; overlapping, touching and disjoint ranges, zero count and zero shift shall be admitted. Overlap shall preserve the entry sequence, as if its values were first retained before writing the destination.
Source slots shall contain live initialized coefficients. Destination-only slots shall be suitably aligned uninitialized or previously consumed storage. All pointers shall designate valid storage even when count is zero; the source and destination extents and byte-size products shall be representable and fit their allocations. After relocation the destination range shall hold live coefficients with the entry source values and ownership. Source-only slots shall be consumed: their old values shall neither be accessed nor destroyed; they may be reconstructed or their storage released without coefficient destruction. Overlap slots belonging to the destination shall remain live. No coefficient-owned resource shall be duplicated or lost.
The helpers shall be nonthrowing, allocate no storage and invoke no numerical conversion, policy handler or rounding control. They shall require no library initialization. Native integral coefficient relocation shall preserve each integer representation using the implicit-lifetime wrapper property of 🔗 1. Native integral checked-number value move.
-
3. Weakly relational extended-number policies PPL-SPEC-001641 Both WRD_Extended_Number_Policy and Debug_WRD_Extended_Number_Policy shall enable overflow checks, NaN and infinity representations, and requested FPU inexact checks. The production policy shall disable checks for opposite-infinity addition, same-infinity subtraction, infinity-times-zero, division by zero, infinity division, infinite remainder, negative square root and extra FPU NaN-result detection. The debugging policy shall enable all those checks.
Neither policy shall define convertible or any of the five ROUND_DEFAULT_* members. Operations needing them shall require an explicitly suitable policy instead of silently selecting a default. handle_result(r) shall forward exactly results whose class is VC_NAN to throw_result_exception(r) and propagate the resulting exception. Every normal or infinity result shall be accepted without an exception, including normal-class results carrying overflow or unrepresentable flags. The policies shall require no library initialization or rounding-mode change. Arithmetic using these policies shall retain its own numerical prerequisites; disabled checks shall not authorize undefined mathematical operations.
-
4. Interval and scalar view adapters PPL-SPEC-001642 For a live initialized interval, f_is_empty, f_is_singleton and infinity_sign shall return the corresponding member query. In Interval_NS, f_lower, f_upper and f_info shall return const references to the interval's owned boundaries and metadata, preserving reference identity and the access conditions of 🔗 2. Interval endpoint and metadata references.
For an admitted singleton scalar x, the two boundary adapters shall return const references to x itself. Its metadata adapter shall return a shared immutable null-information object admitting empty values and infinity, with inexact checking disabled. The overload with bool open shall return independent null-information metadata whose two boundaries have that openness. The scalar empty predicate shall return exactly is_not_a_number(x); its singleton predicate shall negate that result.
is_singleton_integer(x) shall return true exactly when the interval or scalar is a singleton and its lower value is integral. It shall not read a lower payload after a false singleton result. check_empty_arg(x) shall return the empty predicate when the metadata admits emptiness; otherwise the caller shall supply a nonempty argument and the helper shall return false. These adapters shall preserve their arguments and add no allocation, initialization or rounding prerequisites to the selected scalar/member query.
-
5. Borrowed or converted distance operands PPL-SPEC-001643 maybe_assign(top,tmp,from,dir) shall select its behavior from the exact source and destination C++ types. If they are identical, it shall set top to the address of from, leave tmp unchanged and return V_EQ; it shall perform no numerical conversion or allocation. Otherwise it shall set top to the address of tmp, perform assign_r(tmp,from,dir) and return that operation's result. Its dispatch structs shall have the same behavior.
The operands shall remain live; temporary storage shall be initialized as required by the selected assignment. For differing types, the assignment's admitted values, rounding direction, aliasing, initialization, resource and exception conditions shall apply. If assignment throws, top shall already designate tmp and the assignment's destination guarantee shall apply. Borrowing shall not extend the source lifetime. A returned pointer shall not be used after its referent is destroyed or invalidated.
-
6. Common dimension validation and domain limit PPL-SPEC-001644 check_space_dimension_overflow(dim,max,domain,method,reason) shall return dim unchanged when dim ≤ max. Otherwise it shall throw std::length_error with a message formed from domain, method, ":", a newline, reason and "." in that order. The string arguments shall point to live null-terminated character sequences. The accepted path shall allocate no storage; message construction failures shall propagate. It shall require no library initialization.
The free max_space_dimension() shall return the minimum of the limits for Variable, both polyhedron topologies, Grid, Rational_Box, Box<Integer_Interval> and the BD/octagonal shapes instantiated with each of int8_t, int16_t, int32_t, int64_t, float, double, long double, mpz_class and mpq_class. Repeated calls shall return the same limit. A custom box interval type shall retain its own limit; the common value shall not promise successful allocation or a limit for every user-defined domain. First-use cache access shall follow the configured thread-local/global storage model and be synchronized accordingly.
-
1. Finite same-type minimum and maximum assignment PPL-SPEC-000913 For two live same-type finite ordered numerical values x and y, min_assign(x, y) shall assign the lesser mathematical value and max_assign(x, y) the greater. The admitted types shall be the standard native integer types, native floating types, mpz_class, canonical mpq_class and supported Checked_Number<T, Policy> forms. A strictly selected source shall be copied with independent owned storage. If the two entry values are equal, the destination's entry representation shall remain unchanged, including a native floating zero's sign.
Both functions shall return void. The source may be the destination; every comparison shall use entry values, and a distinct source shall remain unchanged. Checked calls shall require no rounding defaults, implicit conversion capability or result handler, and shall make no result-policy callback. Same-type checked assignment shall retain 🔗 1. Finite checked scalar storage and copying. Mathematical ordering shall retain 🔗 1. Exact scalar sign and ordering and 🔗 2. Mixed finite floating and exact scalar ordering.
Native floating values shall exclude infinities and NaNs. Raw native comparison/assignment shall remain available independently of configured PPL rounded floating kernels; checked floating forms shall require the corresponding configured scalar support. Rational operands shall be finite and canonical. Live objects, synchronized overlapping mutation and sufficient copy-allocation resources shall be required. No library initialization, coefficient-constant stage, FPU direction or policy default shall be required. Hardware direction shall remain unchanged.
-
2. Finite parity and additive-inverse predicates PPL-SPEC-000914 For finite admitted scalar values, is_even(x) shall return true exactly when the mathematical value of x belongs to 2ℤ. A nonintegral rational or native floating value shall therefore return false. is_additive_inverse(x, y) shall return true exactly when x + y = 0 as a mathematical equality, without evaluating an overflowing native sum or requiring a representable stored negation. Both signs of native floating zero shall denote mathematical zero for these predicates.
The admitted same-type forms shall be raw standard native integers, mpz_class, finite canonical mpq_class, configured supported native floating formats and their supported Checked_Number<T, Policy> forms. Policy-reserved special payloads shall not be finite operands. Every finite endpoint shall be admitted, including a bounded minimum whose mathematical negative is outside the storage range. Checked predicates shall require no rounding default, result handler or implicit conversion capability and shall invoke no policy handler. Each result shall have type bool.
Sources may be the same object and shall remain unchanged. Rational scratch storage and synchronization shall follow 🔗 6. Exact rational operations with powers of two; other live-object, finite/canonical and resource prerequisites shall follow the corresponding scalar family. Floating parity shall satisfy the native nonnegative dyadic residue backend/hardware prerequisites in 🔗 4. Rounded nonnegative native residue modulo a power of two. Additive-inverse comparison shall use exact negation and ordering meanings. No coefficient-constant initialization shall be required. Neither predicate shall change hardware direction.
-
3. Native low-bit mask construction PPL-SPEC-000915 For an admitted native integral type T with specialized binary std::numeric_limits<T>, let d be its number of value bits, std::numeric_limits<T>::digits. For an unsigned int exponent 0 ≤ n < d, low_bits_mask<T>(n) shall return a T whose mathematical value is 2n − 1. In particular, zero shall produce zero, and exactly the lowest n value bits shall be set.
The admitted types shall include all eleven standard native integer types. Where INT128_AVAILABLE holds, the same template instantiations shall admit the compiler's signed and unsigned native 128-bit types. That capability shall not imply a general PPL public 128-bit scalar arithmetic instantiation. No signed representation bit outside the nonnegative representable range shall be set. The result type shall be exactly T.
The call shall require no source object, policy, initialization stage, allocation, FPU setup or mutable numerical state. Hardware direction shall remain unchanged. Requests outside n < d shall not be admitted.
-
Incoming links from: 1. Transition encoding and ranking interpretation 2. MS termination test outcomes 3. MS affine ranking witnesses 4. Normalized MS affine ranking spaces 5. MS affine quasi-ranking spaces 6. PR termination test outcomes 7. PR affine ranking witnesses 8. PR affine ranking spaces 1. Exact strict mixed-integer feasibility witnesses 1. Mixed integer constraint and dimension additions 2. Mixed integer integrality additions 3. Mixed integer objective and mode updates 1. Reloadable mixed integer solver representations 2. Mixed integer diagnostics, display and storage 1. Mixed integer satisfiability 1. Mixed integer satisfiability 2. Mixed integer optimization outcomes 3. Mixed integer objective evaluation 4. Mixed integer feasible witness access 5. Mixed integer optimal witnesses and values 6. Mixed integer pricing controls 7. Point-coordinate integrality predicate 8. Fractional branching-variable selection 1. Integer-supported strict MIP admission 1. Exact strict mixed-integer feasibility 1. Strict-row support and admission kernels 1. Uniform strict-margin denominator 2. Exact general strict mixed-integer optimization 1. Mixed integer problem values 2. Trivial mixed integer construction and dimensions 3. Mixed integer construction from constraints 4. Mixed integer copying, exchange and reset 5. Mixed integer descriptor views and iterators 1. Parametric integer coordinate growth 2. Parametric coordinate selection and descriptor views 3. Parametric constraint refinement 1. Parametric solution display 2. Reloadable parametric solver representations 3. Parametric diagnostics and storage accounting 1. Parametric solver outcomes and satisfiability 1. Parametric solver outcomes and satisfiability 2. Parametric solution-tree access 3. Parametric cutting and pivot controls 4. Parametric big-parameter designation 1. Parametric tree interpretation and artificial scope 2. Parametric node guards and artificial-parameter views 3. Parametric tree ownership associations 4. Parametric tree cloning and lifetime 5. Artificial parameter construction and value operations 6. Artificial parameter persistence and diagnostics 7. Reloadable parametric tree structure 8. Parametric solution leaves and coordinate values 9. Parametric decision nodes and branches 10. Parametric tree diagnostics, display and memory 1. Parametric integer problem meaning 2. Parametric integer construction and dimensions 3. Parametric integer copying, exchange and reset57
1. Optimization and ranking valid use PPL-SPEC-001466 Solver and ranking interfaces shall use the selected coefficient profile without loss of mathematical information when every intermediate arithmetic operation meets that profile's range and exactness conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; coordinate indices shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, iterators and streams shall remain live and valid throughout each operation.
A completed mathematical result shall satisfy the applicable solver or ranking contract. Arithmetic, allocation and cancellation exceptions may propagate; exceptional completion shall not constitute a feasibility or termination conclusion. Surviving owned resources shall remain destructible, without a general rollback or further-query guarantee. Separate output coefficients shall refer to distinct writable objects and shall not alias input expression or generator storage. Borrowed views shall not survive a mutation, replacement, destruction or query that can invalidate their backing representation. Accesses that can change solver state, trees or caches shall be externally synchronized. Solver heuristics shall affect search choices rather than the meaning of successfully completed results.
-
Incoming link from: 6. Checked named nonnegative square root1
1. Directed and delegated square root of a finite native value PPL-SPEC-000501 The source and destination shall be configured native F or Checked_Number<F, Check_Overflow_Policy<F>> types with the same floating-point format, as in 🔗 4. Rounding, result classes and state for finite native binary arithmetic. The source shall be finite and nonnegative, including either signed zero, with represented value a. sqrt_assign_r shall compute the nonnegative real √(a).
ROUND_DOWN shall assign its greatest representable lower bound and ROUND_UP its least representable upper bound. ROUND_IGNORE shall use the current hardware direction, including nearest-even midpoint selection. Exactly representable roots shall preserve their values. A zero root shall retain the source zero's sign. Every computed result for this source domain shall be finite and have class VC_NORMAL, without V_UNREPRESENTABLE.
Weak, strict, delegated and no-rounding-needed result relations shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic, with exactness relative to √(a). A no-rounding-needed request shall require that root to be exactly representable. Directed, strict and no-rounding-needed requests shall require upward hardware rounding; unflagged delegated requests shall admit every current hardware direction. Calls shall preserve the current direction. Source/destination aliases, source preservation, object validity, synchronization, native backend setup, initialization independence and floating-point exception conditions shall follow 🔗 4. Rounding, result classes and state for finite native binary arithmetic.
-
Incoming links from: 2. Euclidean distance of bounded-difference closed-bound tables 2. Euclidean distance between Box endpoint tuples 6. Checked named nonnegative square root 18. Euclidean distance between bound-entry arrays 2. Euclidean distance between generator points 3. Euclidean distance of octagonal closed-bound tables 7. Euclidean distance of physical octagonal entry arrays 3. Selection and ownership of irrational rational precision8
2. Finite rational square root at the selected irrational precision PPL-SPEC-000502 The source and destination shall be mpq_class. The source shall be finite, canonical and nonnegative, with value a; canonical form shall follow 🔗 1. Exact rational assignment from rational and integral sources. Let p be the current precision in 🔗 3. Selection and ownership of irrational rational precision and S = 2p. Zero shall produce canonical zero and V_EQ for every supported direction/strict flag.
For a > 1, the downward result shall be ⌊S√(a)⌋ ⁄ S and the upward result ⌈S√(a)⌉ ⁄ S. For 0 < a ≤ 1, the downward result shall be S ⁄ ⌈S ⁄ √(a)⌉ and the upward result S ⁄ ⌊S ⁄ √(a)⌋. Results shall be canonical, nonnegative rationals with the lesser of numerator and denominator no greater than S. Without the strict flag the downward relation shall be V_GE and the upward relation V_LE. With the flag, exactness shall give V_EQ, a strict lower bound V_GT and a strict upper bound V_LT.
ROUND_IGNORE shall produce one of these two precision-grid bounds and return a relation containing the actual comparison of √(a) with the result. With a strict flag it shall determine V_EQ, V_GT or V_LT. ROUND_NOT_NEEDED shall require an exact root on the selected grid: S√(a) shall be an integer for a > 1, or S ⁄ √(a) an integer for 0 < a ≤ 1. It shall return that exact root, with V_EQ in an assertion-enabled build and permitted lazy V_LGE in a build defining NDEBUG; a strict exactness request shall return V_EQ.
Source and destination may be the same object. Source numerator/denominator references borrowed by the caller shall not be used across a modifying call. A source with distinct storage shall remain unchanged. The destination shall be live and assignable. Resource availability shall limit unbounded intermediates. No FPU direction, library/thread initialization object or coefficient-constant stage shall be required. Hardware direction shall remain unchanged. The precision shall remain stable throughout the call. Non-thread-safe configurations shall serialize shared precision and lazy temporary-pool use; thread-safe configurations shall use the calling thread's precision and pools. Object access shall be synchronized against concurrent mutation. The _r interface shall return its result without policy-handler dispatch.
-
Incoming links from: 2. Euclidean distance of bounded-difference closed-bound tables 2. Euclidean distance between Box endpoint tuples 6. Checked named nonnegative square root 18. Euclidean distance between bound-entry arrays 2. Euclidean distance between generator points 3. Euclidean distance of octagonal closed-bound tables 7. Euclidean distance of physical octagonal entry arrays 2. Finite rational square root at the selected irrational precision8
3. Selection and ownership of irrational rational precision PPL-SPEC-000503 irrational_precision() shall return the current unsigned precision parameter. set_irrational_precision(p) shall accept every value from zero through INT_MAX and make subsequent reads return p. For a value greater than INT_MAX, it shall throw std::invalid_argument and leave the previous precision unchanged.
The selected value shall be the square-root precision in 🔗 2. Finite rational square root at the selected irrational precision. In a thread-safe configuration, each thread shall own its parameter independently; in a non-thread-safe configuration, callers shall serialize reads, writes and calculations using the shared parameter. Clients shall keep the parameter stable throughout each dependent numerical call. Initialized thread lifetimes shall establish the default described in 🔗 3. Thread initialization, default state and finalization. These accessors themselves shall require no library or thread initialization owner, coefficient-constant stage or FPU setup, and shall preserve hardware rounding direction.
-
1. Callback input protocol, lookahead and single-character putback PPL-SPEC-001573 A c_streambuf shall begin without cached input or unget history and shall release its own buffer state on destruction without owning the derived transport. A read callback shall borrow its output array for that call only, return a count in the requested range, write exactly that prefix and consume the corresponding source prefix. Positive partial results shall have the same remaining logical input and future availability as successive one-byte reads. Zero for a positive request shall be the same failure as a one-byte request in that entry state, without making later transfer availability depend on the requested size. A later client operation may succeed after such refusal.
Peeking shall retain the next byte without logically consuming it; repeated peeks shall return that byte. Single and bulk reads shall consume cached input first and then callbacks until the request is met or the callback returns zero. They shall distinguish every unsigned-byte value from EOF and return the actual count. Counts shall be nonnegative, and positive requests shall have sufficient output storage; a zero request shall access no storage or callback and preserve cached input and unget history.
A successful single or nonempty bulk read shall make its final byte available for one unget. Explicit putback shall instead supply its requested byte. Putback shall fail without changing an already pending byte; no-history unget shall fail without inventing input. Read failure may discard old history. The default callback shall provide no input. Direct streambuf operations shall propagate callback exceptions; partial effects before an exception shall not be rolled back, and a cached byte already transferred need not be restored.
-
2. Callback output, synchronization and failure propagation PPL-SPEC-001574 A c_streambuf write callback shall borrow its input array only for the call, return a count in the requested range and transfer exactly that prefix. Successive positive partial transfers shall be accepted until the request is complete or zero reports refusal. A callback result of zero for a positive request shall have the same failure and subsequent transfer availability as a one-byte request in that entry state; positive results shall preserve the same subsequent accepted byte sequences as successive one-byte writes. Positive requests shall have sufficient readable storage; counts shall be nonnegative. A zero request shall transfer nothing and call no write callback, admitting a null pointer.
Single-character output shall report the supplied byte on success and EOF on refusal. An overflow request containing EOF shall synchronize, returning non-EOF exactly when synchronization succeeds. sync() shall return the synchronization callback's result. Defaults shall refuse output and report successful synchronization. Output and synchronization shall preserve cached input and unget history. Direct operations shall propagate callback exceptions without promising rollback of previously transferred output. Standard istream/ostream state and exception masks shall govern use through those streams.
-
Incoming link from: 4. Borrowed stdio output and synchronization1
3. Borrowed stdio input and putback PPL-SPEC-001575 stdiobuf(file) shall borrow a nonnull open FILE* without closing it on destruction. The caller shall keep it open, provide permissions for requested operations, and observe stdio update-stream sequencing rules. Input shall use the file's byte sequence, distinguish every unsigned byte from EOF, and return the actual number read into the supplied prefix. Bulk counts shall be nonnegative and the supplied output array shall cover the requested count. Peeking shall leave its byte pending in the file through stdio putback. A successful read shall retain its last byte for one unget; a failed read may discard that history. Explicit putback shall request the specified byte even without prior history, using stdio's ungetc result. No-history unget shall fail without inventing a byte. Additional putback capacity beyond stdio's guarantee shall not be required. Input failures shall remain visible through EOF/short counts and the file's stdio state.
-
4. Borrowed stdio output and synchronization PPL-SPEC-001576 Under the file-lifetime and stdio sequencing conditions in 🔗 3. Borrowed stdio input and putback, bulk output through stdiobuf shall write the supplied byte prefix and return stdio's actual transferred count. Counts shall be nonnegative and the readable input array shall cover the request. Ordinary single-byte overflow shall return the stdio byte-write result. EOF overflow shall flush the file and return non-EOF exactly on success; sync() shall return the result of flushing. The adapter shall not close the file. Failures shall be observable as short counts, EOF or failed synchronization; standard ostream state and exception masks shall apply when used through an ostream. No rollback of transferred bytes shall be required.
-
1. Text-wrapping separators, widths and indentation PPL-SPEC-001577 wrap_string shall format the source byte prefix preceding its first NUL, leaving the source unchanged. That prefix length shall be less than std::numeric_limits<unsigned>::max() so its byte indices and the separator sentinel remain distinct. Preferred widths shall count source bytes, excluding inserted indentation, and shall guide separator selection rather than impose a maximum word length. The first output line shall use the first preferred width; subsequent lines shall use the continuation width.
For each remaining prefix, a NUL or newline at or before the preferred boundary shall terminate the line. Otherwise, the last comma strictly before the boundary shall take priority and remain on the preceding line; absent such a comma, the last start of a whitespace run at or before the boundary shall be the split. Without either separator, the word shall extend to NUL, whitespace, or a comma, retaining that comma. Whitespace classification shall use the unsigned byte in the current C character locale; newline shall retain its explicit line-separator role.
The selected prefix shall be copied unchanged. At a split, one whitespace separator and any immediately following ordinary spaces shall be discarded. A nonempty continuation prefix shall receive exactly indent_depth ordinary spaces. Output lines shall be joined by newlines only while more source bytes remain; a final consumed newline shall add no trailing newline. Zero widths, empty lines and unbroken words shall be admitted. Exceptions from constructing the result shall propagate without modifying the input.
-
Incoming links from: 1. Same-storage checked compound arithmetic 4. Checked unary signs and prefix increment or decrement 1. Checked named unary functions and function policy 1. Exact same-storage native integer arithmetic 2. Exact unbounded integer product accumulation 2. Exact unbounded integer product accumulation 3. Directed unbounded integer division and explicit delegated convention 3. Directed unbounded integer division and explicit delegated convention 4. Exact truncated unbounded integer quotient and remainder 4. Exact truncated unbounded integer quotient and remainder 5. Unbounded integer arithmetic with powers of two 5. Unbounded integer arithmetic with powers of two 6. Exact centered and nonnegative unbounded integer residues 1. Exact unbounded integer greatest common divisor and least common multiple 2. Exact unbounded integer Bezout coefficients 3. Directed unbounded integer square roots16
1. Exact named arithmetic on unbounded integer storage PPL-SPEC-000511 The source and destination objects shall be live mpz_class values, independently of the configured Coefficient alias. add_assign_r, sub_assign_r and mul_assign_r shall assign the exact sum, difference and product of the source integers. neg_assign_r and abs_assign_r shall assign exact negation and absolute value. floor_assign_r, ceil_assign_r and trunc_assign_r shall preserve an integer source's value. Every operation shall return V_EQ for each valid rounding direction, with or without ROUND_STRICT_RELATION.
The output may alias any source, and read-only sources may alias each other. Distinct sources shall remain unchanged. Calls shall require available resources for unbounded arithmetic and access synchronized against mutation. The stored integers and intermediates shall have no configured fixed-width coefficient limit. No library/thread initialization owner, coefficient-constant stage, floating-point backend setup, hardware direction, inexact flag or irrational-precision setting shall be required. Arithmetic/resource failure shall not be a successful result; no universal output rollback shall be promised after a reported failure.
-
Incoming link from: 4. Checked named product accumulation1
2. Exact unbounded integer product accumulation PPL-SPEC-000512 For live mpz_class objects and resources as in 🔗 1. Exact named arithmetic on unbounded integer storage, add_mul_assign_r shall replace the entry value z by z + ab and sub_mul_assign_r shall replace it by z − ab, where a and b are the entry source values. Both operations shall return V_EQ for every valid rounding request. Sources may alias each other or the accumulator, including all three arguments sharing one object. Every occurrence in the formula shall use its entry value. Distinct source objects shall remain unchanged. Resource, synchronization, range and initialization conditions shall follow 🔗 1. Exact named arithmetic on unbounded integer storage.
-
3. Directed unbounded integer division and explicit delegated convention PPL-SPEC-000513 For the mpz_class objects and prerequisites in 🔗 1. Exact named arithmetic on unbounded integer storage, the divisor b shall be nonzero. Let q = a ⁄ b denote the exact rational quotient. div_assign_r with ROUND_DOWN shall assign ⌊q⌋ and return V_GE; with ROUND_UP it shall assign ⌈q⌉ and return V_LE. With ROUND_STRICT_RELATION, a directed request shall instead return V_EQ when q is integral, otherwise V_GT for downward rounding or V_LT for upward rounding.
ROUND_IGNORE shall use the ceiling convention and return a relation containing q ≤ to. A strict delegated request shall identify equality or strict inequality. ROUND_NOT_NEEDED shall require b to divide a exactly, assign the exact integer quotient and return a relation admitting equality; with ROUND_STRICT_RELATION it shall return V_EQ. The exactness decision shall use entry operands even when the output aliases either source. Other alias, preservation, resource, initialization and hardware independence conditions shall follow 🔗 1. Exact named arithmetic on unbounded integer storage.
-
Incoming links from: 1. Same-storage checked compound arithmetic 2. Checked named remainder and exact quotient2
4. Exact truncated unbounded integer quotient and remainder PPL-SPEC-000514 For the mpz_class objects and prerequisites in 🔗 1. Exact named arithmetic on unbounded integer storage, with nonzero divisor b, idiv_assign_r shall assign n = trunc(a ⁄ b) toward zero and rem_assign_r shall assign r = a − nb exactly. They shall satisfy |r| < |b|; a nonzero r shall have the dividend's sign. All valid rounding requests, including strict and exactness requests, shall return V_EQ and shall not change these conventions. No divisibility precondition shall be imposed by ROUND_NOT_NEEDED because the specified truncated quotient and remainder are themselves exact integers.
Each output may alias either source, the sources may alias each other, and all entry values shall retain their formula meaning. Distinct source objects shall remain unchanged. Resource, range, synchronization and initialization independence shall follow 🔗 1. Exact named arithmetic on unbounded integer storage.
-
5. Unbounded integer arithmetic with powers of two PPL-SPEC-000515 For mpz_class objects and prerequisites in 🔗 1. Exact named arithmetic on unbounded integer storage, let e be an unsigned exponent and m = 2e. Resources shall suffice for the requested power and output; there shall be no native shift-width precondition on e. add_2exp_assign_r, sub_2exp_assign_r and mul_2exp_assign_r shall assign exactly a + m, a − m and am, respectively, and return V_EQ for every valid rounding request.
div_2exp_assign_r shall round a ⁄ m downward or upward with the same directed value and relation rules as 🔗 3. Directed unbounded integer division and explicit delegated convention. ROUND_IGNORE shall truncate toward zero and return a relation admitting the actual comparison; a strict delegated request shall distinguish equality and strict inequality. ROUND_NOT_NEEDED shall require m to divide a, assign the exact quotient and return a relation admitting equality; a strict exactness request shall return V_EQ. This delegated truncation convention shall apply to power-of-two division independently of the ceiling convention for general div_assign_r.
Source/destination aliases, source preservation and other prerequisites shall follow 🔗 1. Exact named arithmetic on unbounded integer storage. Shared scratch-integer pools used to form an additive power shall be serialized in a build without thread-safe support; thread-safe configurations shall use calling-thread pools. No FPU setup, initialized library owner or coefficient-constant stage shall be needed.
-
Incoming link from: 4. Outward endpoint residues modulo powers of two1
6. Exact centered and nonnegative unbounded integer residues PPL-SPEC-000516 For mpz_class objects, exponent e and modulus m = 2e as in 🔗 5. Unbounded integer arithmetic with powers of two, umod_2exp_assign_r shall assign the unique integer residue u ∈ [0, m) congruent to the source a modulo m. For e > 0, smod_2exp_assign_r shall assign the unique congruent integer s ∈ [ − m ⁄ 2, m ⁄ 2). For e = 0, both operations shall assign zero. At a positive half-modulus tie, the centered operation shall select the negative half-modulus.
Both operations shall be exact and return V_EQ for every valid rounding request, including strict and exactness requests, without a divisibility precondition. Output/source aliases shall be permitted and distinct sources shall remain unchanged. Range, resources, synchronization, initialization and hardware independence shall follow 🔗 1. Exact named arithmetic on unbounded integer storage. The exponent shall not be limited by a native shift width or the configured coefficient range.
-
1. Exact native integral and unbounded integer assignment to mpz storage PPL-SPEC-000261 assign_r shall admit every native integral source type and Checked_Number<T, Check_Overflow_Policy<T>> source type in 🔗 1. Exact conversion between native and checked integral scalars, as well as a finite mpz_class source. The destination shall be mpz_class independently of the configured Coefficient alias. For each admitted source integer it shall assign the exact value and return V_EQ under all four base directions in 🔗 4. Rounding-direction intent, composition and inspection, with or without the strict-relation flag. This shall include all native signed and unsigned endpoints. An mpz_class source may be the destination itself, preserving its entry integer value.
The destination shall be live and assignable. A distinct source shall remain unchanged, and later destination mutation shall not affect a distinct source. Callers shall prevent concurrent access to an object while another operation modifies it. No library initialization object, thread initialization or coefficient-constant stage shall be required. This operation shall impose no fixed-width integer range bound; available resources shall limit storage. It shall return the conversion Result without policy-handler dispatch.
-
2. Directed canonical rational conversion to an unbounded integer PPL-SPEC-000262 For a finite canonical mpq_class source with value a, assign_r into mpz_class with base direction ROUND_DOWN shall assign ⌊a⌋; base ROUND_UP shall assign ⌈a⌉. Rational canonical form shall follow 🔗 1. Exact rational assignment from rational and integral sources. The destination shall not designate the source rational's numerator or denominator object or overlap their storage. There shall be no fixed-width integer range bound.
Without ROUND_STRICT_RELATION, the downward request shall return V_GE and the upward request V_LE. These shall permit equality and shall not promise that an integral source has been classified as exact. With that flag, an integral source shall return V_EQ; a nonintegral source shall return V_GT downward and V_LT upward, with the relation orientation in 🔗 1. Numerical result classes and relation meanings.
No particular current hardware rounding direction shall be required and the current direction shall remain unchanged. Object validity, synchronization, source preservation, initialization independence and resource conditions shall follow 🔗 1. Exact native integral and unbounded integer assignment to mpz storage. This conversion shall require no shared temporary pool.
-
Incoming link from: 3. Numeric text input into integral destinations1
3. Delegated and exactness rational conversion to an unbounded integer PPL-SPEC-000263 For a finite canonical mpq_class source with value a, ROUND_IGNORE shall assign trunc(a) toward zero to the mpz_class destination. Without a strict flag it shall return V_LGE. ROUND_NOT_NEEDED shall require an integral canonical source, whose denominator is one, and shall assign that exact integer. Without a strict flag it shall return V_EQ in an assertion-enabled build and may return lazy V_LGE in a build defining NDEBUG, following 🔗 7. Internal no-rounding-needed request and result checking.
With ROUND_STRICT_RELATION, the delegated conversion shall report the definite relation: V_GT for a positive nonintegral source, V_LT for a negative nonintegral source, and V_EQ for an integral source. A strict no-rounding-needed request shall retain the integral-source precondition and return V_EQ.
Object, synchronization, source-preservation, resource and initialization conditions shall follow 🔗 1. Exact native integral and unbounded integer assignment to mpz storage. The rational-component nonaliasing condition in 🔗 2. Directed canonical rational conversion to an unbounded integer shall apply. No particular hardware rounding direction or shared temporary pool shall be required. The hardware direction shall remain unchanged and no fixed-width range limit shall apply.
-
4. Directed finite native floating-point conversion to mpz storage PPL-SPEC-000264 The source shall be a finite float, double or long double whose corresponding PPL_SUPPORTED_FLOAT, PPL_SUPPORTED_DOUBLE or PPL_SUPPORTED_LONG_DOUBLE is nonzero. Its meaning shall be the exact represented binary value a. ROUND_DOWN shall assign ⌊a⌋ to mpz_class and ROUND_UP shall assign ⌈a⌉, with no fixed-width integer range restriction.
For float and double, a nonintegral source shall require the hardware rounding direction to be upward. An integral source shall return V_EQ; a nonintegral downward result shall return V_GT and an upward result V_LT, with or without the strict-relation flag. Exact integral inputs shall not require a particular current hardware direction.
For long double, no particular hardware direction shall be required. Without the strict flag the downward request shall return V_GE and the upward request V_LE. With the flag it shall return V_EQ for an integral source, V_GT for an inexact downward result and V_LT for an inexact upward result. This classification shall follow the exact rational route in 🔗 2. Directed canonical rational conversion to an unbounded integer, including when the native long double format has the same precision as double.
Object validity, source preservation, resource limits and initialization independence shall follow 🔗 1. Exact native integral and unbounded integer assignment to mpz storage. Current hardware rounding direction shall be preserved. The long double route shall use a lazily owned rational temporary; in a non-thread-safe configuration, concurrent calls sharing that temporary machinery shall be serialized, even on distinct argument objects. In a thread-safe configuration its pool shall belong to the calling thread. Unavailable native source types shall not be instantiated.
-
5. Delegated finite floating-point conversion and exactness into mpz storage PPL-SPEC-000265 For the configured finite source types in 🔗 4. Directed finite native floating-point conversion to mpz storage, ROUND_IGNORE shall assign trunc(a) toward zero to mpz_class. Without a strict flag it shall return V_LGE. ROUND_NOT_NEEDED shall require the represented source value to be an integer and shall assign that exact value. Without a strict flag it shall return V_EQ in an assertion-enabled build and may return lazy V_LGE in a build defining NDEBUG, following 🔗 7. Internal no-rounding-needed request and result checking.
With ROUND_STRICT_RELATION, delegated conversion shall determine V_GT for a positive nonintegral source, V_LT for a negative nonintegral source, and V_EQ for an integral source. A strict no-rounding-needed request shall retain its integral-source precondition and return V_EQ.
These requests shall require no particular current hardware rounding direction and shall preserve that direction. Object validity, source preservation, initialization independence, resource limits, availability and long-double temporary-pool ownership shall follow 🔗 4. Directed finite native floating-point conversion to mpz storage. No finite source shall overflow a fixed integer range or be classified as an infinite result merely because the selected global coefficient profile is bounded.
-
Incoming link from: 7. Raw scalar placement construction and exact assignment1
6. Finite native floating-point placement construction of an unbounded integer PPL-SPEC-001196 The source type F shall be float or double with its corresponding PPL_SUPPORTED_FLOAT or PPL_SUPPORTED_DOUBLE nonzero. The source shall be a live finite value with exact represented binary value a. The selected source and destination policies shall admit these finite values and provide the capabilities used by the native-to-mpz_class conversion. No policy rounding default or result handler shall be required.
The destination reference shall designate writable storage of at least sizeof(mpz_class) bytes, correctly aligned for mpz_class, with no live mpz_class occupying it. The storage shall be available for placement construction without ending an object lifetime that the caller must preserve. The source shall not overlap that storage. Before placement construction begins the destination glvalue shall be used only in ways permitted for storage outside an object's lifetime; it shall not be read as a live mpz_class. On normal return exactly one live mpz_class shall occupy the storage. Its caller shall arrange exactly one destruction of that object before releasing or reusing the storage.
ROUND_DOWN shall construct ⌊a⌋ and ROUND_UP shall construct ⌈a⌉. These requests shall return V_EQ for an integral source, otherwise V_GT downward or V_LT upward, with or without ROUND_STRICT_RELATION. ROUND_IGNORE shall construct trunc(a) and return V_LGE without the strict flag. With that flag it shall return V_EQ for an integral source, V_GT for a positive nonintegral source, and V_LT for a negative nonintegral source.
A raw kernel ROUND_NOT_NEEDED request shall require an integral source, construct its exact integer value and return V_LGE without the strict flag or V_EQ with it. A caller-translated ROUND_CHECK exactness request shall retain that integral-source precondition and return V_EQ. The public numerical construct adapter shall perform the direction and exactness-check translation in 🔗 7. Internal no-rounding-needed request and result checking before invoking this kernel. The kernel shall return Result without policy-handler dispatch.
A directed request on a nonintegral source shall require upward hardware rounding. Integral sources and delegated truncation shall require no particular current direction. Every call shall preserve the current hardware rounding direction. Floating-point exceptions shall be nontrapping; accrued exception flags shall be unspecified. Available GMP resources shall be required, without a fixed-width integer limit. No library/thread initialization owner, coefficient-constant stage or shared temporary pool shall be required. Callers shall synchronize storage use against concurrent access. Resource failure shall not be a successful result; no universal object-lifetime or storage-rollback guarantee shall be imposed after an abnormal exit.
-
1. Exact unbounded integer greatest common divisor and least common multiple PPL-SPEC-000517 For live mpz_class sources with entry values a and b, gcd_assign_r shall assign their nonnegative greatest common divisor g. Two zero sources shall yield zero; when exactly one source is zero, g shall be the other source's absolute value. lcm_assign_r shall assign zero when either source is zero, otherwise shall assign the positive integer |a ⁄ g| |b|.
Both operations shall return V_EQ for every valid rounding request, including strict and exactness requests. The output may alias either source and both sources may be the same object; the formula shall use their entry values. Distinct sources shall remain unchanged. Unbounded resource, object-synchronization and initialization/hardware independence conditions shall follow 🔗 1. Exact named arithmetic on unbounded integer storage. No configured bounded-coefficient range shall limit either operation.
-
2. Exact unbounded integer Bezout coefficients PPL-SPEC-000518 For live mpz_class sources with entry values a and b, gcdext_assign_r shall assign the nonnegative greatest common divisor to g and integers to s and t satisfying as + bt = g. For two zero sources, g shall be zero; no particular pair of Bezout coefficients shall be required. No unique pair shall be prescribed in other cases either.
The three output objects shall be pairwise distinct and distinct from both source objects. The source objects may be the same object. The operation shall return V_EQ for every valid rounding request, including strict and exactness requests, and preserve both sources. Available resources shall suffice for the unbounded outputs and intermediates. Synchronization, initialization independence and absence of configured coefficient/FPU limits shall follow 🔗 1. Exact named arithmetic on unbounded integer storage.
-
Incoming link from: 6. Checked named nonnegative square root1
3. Directed unbounded integer square roots PPL-SPEC-000519 For a live nonnegative mpz_class source with value a, let r = √(a) denote the exact nonnegative real root. sqrt_assign_r with ROUND_DOWN shall assign ⌊r⌋ and with ROUND_UP shall assign ⌈r⌉. A perfect-square source shall return V_EQ for either direction. Otherwise, downward rounding shall return V_GT and upward rounding shall return V_LT. Adding ROUND_STRICT_RELATION shall retain these definite classifications.
ROUND_IGNORE shall select the floor and return a relation admitting r ≥ to. A strict delegated request shall distinguish V_EQ from V_GT. ROUND_NOT_NEEDED shall require a to be a perfect square, assign the exact root and return a relation admitting equality; a strict exactness request shall return V_EQ. The result shall never depend on irrational_precision.
The destination may alias the source, using its entry value. A distinct source shall remain unchanged. Resource, range, synchronization and initialization/hardware independence conditions shall follow 🔗 1. Exact named arithmetic on unbounded integer storage. Shared scratch-integer pools used for directed root remainders shall be serialized in a build without thread-safe support; thread-safe configurations shall use calling-thread pools.
-
Incoming links from: 3. Selected-coordinate integer restriction of bounded-difference values 4. Bounded-integer wrapping and guarded evolution of difference shapes 3. Selected-coordinate integer restriction of octagonal values 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 3. Index insertion and inherited ordered-set operations 4. Coordinate-set dimension and maximum dimension6
1. Public coordinate-index set and value lifecycle PPL-SPEC-000021 The public C++ interface shall expose Variables_Set as a public derivative of std::set<dimension_type>. Its stored value shall be a finite set of distinct indices enumerated in increasing numerical order. A coordinate-valid set shall contain only indices i < Variable : : max_space_dimension(). The empty set shall be coordinate-valid. A set shall select coordinates without imposing an ambient dimension on an object that consumes the selection.
The inherited C++20 std::set<dimension_type> interface shall remain available subject to the overloads actually declared by Variables_Set. Base-class constructors and assignment overloads shall not be implicitly added to the public derived interface. Construction from arbitrary iterator ranges shall be performed by default construction followed by inherited range insertion. Raw-index base operations may store any dimension_type value; they shall not validate coordinate admissibility. Before using the set as a coordinate selection or calling a member that requires coordinate validity, clients shall establish the validity of every stored index, for example using OK().
Implicit copy construction and copy assignment shall have the C++20 value and exception behavior of the std::set base. Successful copies shall contain exactly the source indices with independently owned nodes. Implicit moves shall transfer the value according to the standard base-container rules; moved-from objects shall remain valid with the state permitted by those rules. Destruction shall release owned nodes. A Variables_Set shall not be deleted through a pointer to its nonvirtual base destructor.
Operations on existing objects shall require live container objects. Callers shall obey the supported library/thread regime, serialize modifications of a shared instance and prevent unsynchronized modification while another call observes or copies it. No automatic invalid-lifetime or concurrent-use detection shall be required.
-
2. Empty, singleton and inclusive-range construction PPL-SPEC-000022 Successful default construction shall create an empty Variables_Set. Successful construction from a valid Variable v shall create exactly {v.id()}. Successful construction from valid variables v and w shall create exactly {i ∣ v.id() ≤ i ≤ w.id()} when v.id() <= w.id() and the empty set otherwise. Both endpoints shall be included. No ambient dimension or additional indices shall be introduced.
Failure to allocate storage shall propagate the applicable C++ exception and release resources acquired for the incomplete object. Inputs shall remain unchanged. No successfully constructed destination shall be returned on failure.
-
3. Index insertion and inherited ordered-set operations PPL-SPEC-000023 For a live Variables_Set, successful insert(v) with a valid Variable shall add exactly v.id(). Inserting an already present index shall not create a duplicate. The declared overload shall coexist with the inherited C++20 std::set<dimension_type> insertion overloads. Raw insertion shall store the supplied index value without constructing or validating a Variable.
Inherited insertion, emplacement, extraction, merging, erasure, clearing, lookup, bounds, comparison and iteration shall have the C++20 semantics of the base container. Forward traversal shall enumerate each stored index once in increasing order; reverse traversal shall enumerate them in decreasing order. Insertion shall preserve existing element references and iterators. Erasure shall invalidate references and iterators to erased elements according to the base-container rules. Callers shall satisfy the standard preconditions for iterator ranges, hints, node ownership and allocator compatibility. A node's key may be changed only while detached, under the inherited node-handle rules. Coordinate use of inserted or changed keys shall additionally require the validity conditions of 🔗 1. Public coordinate-index set and value lifecycle.
Failed single-element insert allocation shall propagate std::bad_alloc without changing the set. Range insertion and other inherited operations shall have their standard operation-specific exception guarantees; no transactional rollback of an entire partially completed range insertion shall be implied.
-
Incoming link from: 6. Forgetting a coordinate set simultaneously1
4. Coordinate-set dimension and maximum dimension PPL-SPEC-000024 Variables_Set::max_space_dimension() shall return the same value as Variable::max_space_dimension(). For a coordinate-valid set S, space_dimension() shall return zero when S = ⌀ and 1 + maxS otherwise. Both queries shall leave the set unchanged.
The returned dimension shall describe the smallest space enclosing the selected coordinates. It shall not count the selected coordinates or prescribe the ambient dimension of a consuming object. space_dimension() shall require a coordinate-valid set under 🔗 1. Public coordinate-index set and value lifecycle; raw storage of an invalid index shall not establish a supported dimension query.
-
5. Inherited set swap and element ownership PPL-SPEC-000025 For live Variables_Set objects satisfying the inherited allocator compatibility preconditions, inherited member swap shall exchange their complete stored sets with the C++20 base-container semantics. A successful self-swap shall preserve the value. References and iterators to stored elements shall remain associated with those elements in the receiving container, subject to the standard exception for past-the-end iterators. Swap shall not require coordinate validity of raw stored indices.
-
6. Coordinate-set diagnostic output and formatter prerequisites PPL-SPEC-000026 Diagnostic output shall observe a coordinate-valid set without modifying its indices. With compatible ordinary character formatting and successful output, operator<< shall write "{", each selected Variable in increasing index order preceded by one space, a comma after every Variable except the last, and the final text " }". Thus an empty set shall write "{ }". Variable text shall be produced by the active Variable formatter at each write. The operator shall return the supplied stream reference. It shall not add a newline or request a flush. print() shall perform this output to std::cerr.
Calls shall require the library/thread initialization protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization to have established a valid active Variable formatter under 🔗 7. Active Variable formatter and initialized thread state. Formatter dispatch shall follow 🔗 8. Variable names, formatter dispatch and output failures. Clients shall synchronize formatter changes, shared streams and shared-set access under the supported thread regime. The formatter shall not mutate the printed set during output. Stream formatting and error reporting shall follow ordinary C++ insertion semantics. Formatter exceptions and stream exceptions shall propagate; ordinary nonthrowing stream failures shall remain observable through the stream state. Partial output may remain after failure, while the set shall remain unchanged.
-
7. Reloadable coordinate-set text export PPL-SPEC-000027 For a live Variables_Set and a stream with decimal integer formatting, zero pending field width and the classic C locale, successful ascii_dump(s) shall write a newline, "variables( ", the number of stored indices, " )", a newline, and then each raw stored index in increasing order followed by one space. An empty set shall have no index payload. The operation shall append no additional characters or explicit flush after this sequence. It shall leave the set unchanged and shall not invoke the Variable formatter and shall also permit raw indices that fail coordinate validity. The no-argument overload shall write the same representation to std::cerr under those formatting conditions.
For coordinate-valid input and compatible producer/consumer formatting, successful loading of this representation under 🔗 8. Coordinate-set text loading and partial failure state shall preserve the selected indices and enclosing dimension. The format shall not promise compatibility with every library version or with arbitrary incompatible locale, numeric base or formatting settings. Stream failure shall follow C++ stream state and exception-mask semantics; partial output may remain and the source set shall remain unchanged.
-
Incoming link from: 7. Reloadable coordinate-set text export1
8. Coordinate-set text loading and partial failure state PPL-SPEC-000028 ascii_load(s) shall first clear the destination's existing indices. With whitespace-skipping extraction enabled, decimal integer conversion and the classic C locale, it shall accept an opening token "variables(", a nonnegative dimension_type count, a closing token ")" and exactly that count of nonnegative indices below Variable::max_space_dimension(). On successful loading it shall return true and contain exactly the set of extracted indices. Duplicate payload indices shall be collapsed and payload order need not be sorted. Tokens following the declared payload shall remain available to the caller. Loading shall not invoke the Variable formatter.
Missing, wrong, unextractable or out-of-range required fields shall return false unless the stream's exception mask causes an exception. A false result shall leave the destination empty if the header failed, or containing exactly the successfully inserted prefix of payload indices if a payload extraction failed. Allocation or stream exceptions shall propagate; the old value shall not be restored, and successfully inserted prefix indices may remain. The destination shall remain a live base-container object available for inspection, clear, reassignment and destruction. No unchanged-state guarantee shall be implied.
A true result shall certify a coordinate-valid set with exactly the loaded indices and their enclosing dimension as checked by 🔗 10. Coordinate-validity checking of raw indices.
-
9. Coordinate-set memory estimates PPL-SPEC-000029 For a live Variables_Set, external_memory_in_bytes() shall return the implementation's per-node estimate multiplied by the number of stored indices. Its per-node estimate shall account for one dimension index, three pointers and one stored tree-color enumeration. It shall be independent of the numerical values of the indices, and shall be zero for an empty set. Where the reported arithmetic is representable in memory_size_type, total_memory_in_bytes() shall equal sizeof(Variables_Set) plus that external estimate. Both queries shall leave the set unchanged and shall also permit raw indices outside the coordinate-valid range.
These results shall be storage estimates under the stated node-layout model. They shall not certify allocator bookkeeping, alignment padding, actual standard-library node layout or process resident memory.
-
Incoming link from: 8. Coordinate-set text loading and partial failure state1
10. Coordinate-validity checking of raw indices PPL-SPEC-000030 For any live Variables_Set satisfying its base-container invariants, OK() shall return true exactly when every stored raw index is strictly less than Variable::max_space_dimension(). It shall return true for an empty set. An index equal to the maximum dimension, one greater than that limit, or not_a_dimension() shall make the result false. Invalid raw coordinate indices shall be a defined check outcome and shall not cause std::length_error. The check shall leave every stored index unchanged.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 1. Compound-domain values and valid use 1. Rational-grid values, coefficient profile and valid use 1. Octagonal values, numerical profiles and valid use 1. Polyhedral values, coefficient profile and valid use 1. Optimization and ranking valid use6
1. Coordinate type and reserved dimension index PPL-SPEC-000011 The public dimension_type shall be an unsigned integral type identical to std::size_t. Let S be its largest representable value. The function not_a_dimension() shall return S, reserved to indicate that no valid dimension is designated. Zero shall be an ordinary index and the dimension of a zero-dimensional space. The type shall not depend on the coefficient profile. The representable index range shall not by itself promise that a particular numerical object supports that many coordinates or that corresponding storage can be allocated.
-
Incoming link from: 5. Forgetting one coordinate without removing it1
2. Variable value identity and lifetime operations PPL-SPEC-000012 The public Variable type shall represent one Cartesian coordinate by its nonnegative identifier, with limits defined by 🔗 3. Variable construction, coordinate queries and bounds. Its meaning shall depend only on that identifier, independently of C++ object names, other variables and the current output function. Operations on existing variables shall require live valid objects; construction shall require valid source objects only where a source is supplied.
Implicit copy and move construction shall create a variable with the source's identifier and shall preserve the source. Implicit copy and move assignment shall set the target's identifier to the source's entry identifier, return a reference to the target and preserve a distinct source. Self-assignment shall preserve the identifier. Each variable shall remain an independent value. These value operations and destruction shall require no external storage allocation; destruction shall not alter another variable. Callers shall prevent unsynchronized access to an object while another operation changes its value.
-
3. Variable construction, coordinate queries and bounds PPL-SPEC-000013 Let S = not_a_dimension(). The query Variable::max_space_dimension() shall return S − 1. Construction from i shall succeed exactly for 0 ≤ i < S − 1, subject to ordinary C++ runtime conditions, and shall create a variable with id() == i and space_dimension() == i+1. In particular, the greatest admitted identifier shall be S − 2; its space dimension shall be S − 1.
An identifier equal to S − 1 or S shall be rejected with std::length_error without producing a variable. Range rejection shall not rely on wrapping i+1. Exact exception-message text is not prescribed. Queries on a live valid variable shall leave its identifier unchanged and return the exact identifier and enclosing-space dimension. These operations shall not depend on the active formatter or allocate coordinate storage.
-
4. Variable ordering by coordinate identity PPL-SPEC-000014 For live valid variables v and w, less(v, w) and Variable::Compare{}(v, w) shall both return true exactly when v.id() < w.id(). They shall leave the operands unchanged. Equal identifiers shall compare false in both directions, independently of object identity or formatted names. The predicates shall define a strict total ordering of coordinate identifiers and shall allocate no storage.
-
5. Variable exchange and self-exchange PPL-SPEC-000015 For live valid variables x and y, both x.m_swap(y) and swap(x, y) shall exchange their entry identifiers exactly and leave both variables valid. When both arguments designate the same variable, its identifier shall remain unchanged. Exchange shall allocate no storage and shall not depend on formatted names or the active output function.
-
6. Variable validity and memory accounting PPL-SPEC-000016 For every live valid variable, OK() shall return true without changing its value. The representation invariant checked by OK() shall be id() < max_space_dimension(). external_memory_in_bytes() shall return zero and total_memory_in_bytes() shall return sizeof(Variable): variables shall own no separately allocated coordinate storage. These queries shall leave the identifier and formatter state unchanged and shall allocate no storage. No operation shall require constructing an invalid object to use this diagnostic.
-
Incoming links from: 1. Human-readable bounded-difference presentation 1. Human-readable box presentation 14. Readable congruence and system output 12. Readable constraint and system output 3. Thread initialization, default state and finalization 14. Human-readable affine output and formatter dispatch 1. Human-readable octagonal presentation 8. Coordinate-map diagnostic printing and output failures 6. Coordinate-set diagnostic output and formatter prerequisites 8. Variable names, formatter dispatch and output failures10
7. Active Variable formatter and initialized thread state PPL-SPEC-000017 The public output_function_type shall denote a function accepting an output stream and a Variable value, returning void. set_output_function(p) shall store exactly p without invoking it; get_output_function() shall return the pointer currently stored for the applicable runtime context. Neither operation shall allocate storage or change any variable identifier.
The applicable initialization and thread-entry protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall establish the default output function before variable insertion is used. In a thread-safe build the stored pointer shall be thread-local. Otherwise it shall be shared within the process, and callers shall serialize formatter changes and uses. Callers shall also synchronize shared-stream access and mutable callback state as needed.
Storing a null pointer shall be permitted, and a subsequent getter shall return null; insertion shall require a nonnull callable pointer. The caller shall retain any callback dependencies for its use period and restore a callable pointer before subsequent insertion. Setting a formatter shall not acquire ownership of callback dependencies. This interface shall not diagnose every violation of initialization, callback-lifetime or concurrency preconditions.
-
8. Variable names, formatter dispatch and output failures PPL-SPEC-000018 For a live valid variable with identifier i, let q = ⌊i ⁄ 26⌋ and r = i − 26q. Successful direct use of default_output_function shall insert the uppercase character at position r in ABCDEFGHIJKLMNOPQRSTUVWXYZ. If q is nonzero, it shall then insert q as an unsigned integer using the stream's current formatting; otherwise it shall insert no suffix. Character and integer insertions shall honor their applicable stream formatting and locale. The function shall add no separator, newline or explicit flush, and shall not change the active formatter.
Under 🔗 7. Active Variable formatter and initialized thread state, IO_Operators::operator<< shall invoke the currently active output function exactly once with the supplied stream and variable value, and shall return that same stream reference on normal return. Each insertion shall obtain the pointer active for that call. A callback may change the formatter for subsequent calls; insertion shall not restore the old pointer or undo callback changes to the stream. Direct default formatting shall not consult the active pointer.
Output shall not change the variable identifier. Stream failures shall follow the stream's state and exception-mask rules. Callback exceptions and applicable C++ resource exceptions shall propagate; partial output and callback changes to formatter or stream state shall remain observable, with no output rollback promised. Callbacks shall satisfy the stream, lifetime and synchronization preconditions and shall not invalidate an object accessed by the call.
-
1. Configured version components and borrowed metadata strings PPL-SPEC-001578 The version-component functions shall return the configured values denoted by PPL_VERSION_MAJOR, PPL_VERSION_MINOR, PPL_VERSION_REVISION and PPL_VERSION_BETA in the matching public header. version() shall return a nonnull NUL-terminated string equal to PPL_VERSION. Its form shall be M.m, followed by .r when the revision is nonzero and preb when the beta component is nonzero, with decimal component values.
banner() shall return nonnull NUL-terminated information identifying the Parma Polyhedra Library, its version, licensing and warranty conditions, build compiler and sources of further information. Both strings shall be borrowed immutable library storage, valid for the library's lifetime, requiring no allocation or deallocation by the caller. Repeated queries shall not mutate library state or the returned strings. Clients shall use matching public headers and library binaries.
-
1. Selected widening-method delegation PPL-SPEC-001571 Widening_Function<PSET> shall retain the supplied nonnull widening member pointer. Its application to x, y and tp shall invoke that selected method once, on x, passing the same y reference and the same token pointer. The omitted token argument shall be null. The selected method's domain, dimension, ordering and token-lifetime preconditions shall apply unchanged. Its mutations and exceptions shall propagate without additional copying of the pointsets or tokens. Copying the wrapper shall retain the selected method. widen_fun_ref(wm) shall return a wrapper with that binding.
-
2. Limited widening with borrowed limiting constraints PPL-SPEC-001572 Limited_Widening_Function<PSET,CSYS> shall retain a nonnull selected member pointer and borrow the supplied limiting system. The system shall outlive every application of the wrapper or a copy. Application shall invoke the selected method once on x, passing the same y reference, the same live limiting system and the same token pointer, null when omitted. Changes to the limiting system before an application shall be visible. The selected method's preconditions, mutations and exceptions shall apply unchanged; neither wrapper construction nor application shall copy pointsets or limiting constraints. widen_fun_ref(lwm,cs) shall return this binding; copying the wrapper shall preserve both bindings without taking ownership.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
When a supported numerical domain object is copied by value into another object of the same domain and scalar instantiation, the copy shall initially represent the same numerical set and dimension. Subsequent mutation of either value shall not change the other value's represented set.
-
11. Explicit empty box assignment PPL-SPEC-001221 set_empty() shall replace the receiver's entry set X ⊆ Rn by ⌀ ⊆ Rn. It shall preserve the ambient dimension and shall be idempotent, including in dimension zero. Subsequent empty-aware queries and coordinate access shall observe the empty value under 🔗 7. Empty-aware borrowed coordinate interval access and 🔗 9. Exact ordinary box classification.
The operation shall retain the owned coordinate storage and the stored interval objects. Those factors shall become inactive; it shall not need to assign an empty value to each factor or query their numerical payloads. Borrowed references to retained factors shall retain their storage lifetime, but shall not independently denote the current box's factors while the box is empty. Independent copies shall remain unchanged.
The receiver shall have safely owned coordinate storage and externally synchronized access. The operation shall require no numerical arithmetic, no additional PPL initialization, no allocation and no interval-profile callback, and shall not change hardware rounding state.
-
3. Owned grid copying, assignment and destruction PPL-SPEC-001243 Copy construction shall produce an independent grid with the source's represented set and ambient dimension. The three declared complexity values shall not alter ordinary copying. Assignment shall replace the receiver's represented set and dimension with the source's, return a reference to the receiver, and support different dimensions and self-assignment. Mutation or destruction of either independent value shall not change the other value.
Destruction shall release owned resources exactly once. Failed copy construction shall release resources acquired by the incomplete object. Failed assignment shall preserve ownership needed for safe destruction; rollback to the receiver's entry value shall not be required.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
3. Owned octagonal copying, assignment and cleanup PPL-SPEC-001148 Ordinary copying shall construct an independent shape with the source's represented set and ambient dimension. Assignment shall replace the receiver's set and dimension with the source's, including different dimensions, and return a reference to the receiver. Self-assignment shall preserve the represented value. Independent source or target mutation and source destruction shall not alter the other owned value.
The three declared complexity values shall not change ordinary copying. Destruction shall release owned resources exactly once. Failed construction shall release resources acquired by the incomplete object. Failed assignment shall preserve the ownership required for safe destruction; rollback of the entry value shall not be required.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.