-
2. Primitive numerical abstractions PPL-HLR-000002 PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
An interval shall denote the values of its declared number carrier that satisfy its represented bounds and supported openness conditions. An unbounded boundary shall be distinguished from an included infinite value, and supported empty and singleton intervals shall retain their distinct meanings.
-
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.
-
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. 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.
-
Incoming links from: 2. Boundary openness and infinity membership interpretation 3. Unbounded and signed-infinity boundary assignment 4. Numerical sign of an interval boundary 5. Ordering of interval boundary cuts 1. Outward endpoint addition and subtraction 1. Normalization of numerical results into boundary properties 1. Normalization of numerical results into boundary properties 2. Same-side outward boundary conversion and retained properties8
1. Boundary infinity and scalar-domain extremum interpretation PPL-SPEC-001077 A boundary shall comprise its named side, a scalar object and an information object. Under the representation rules of 🔗 1. Interval types, initial storage and independent value copies, a stored SPECIAL flag shall denote negative infinity on LOWER and positive infinity on UPPER; its numerical payload shall be inactive. A normal boundary shall instead use the initialized scalar value. Canonical GMP values and admitted checked scalar policies shall retain their own scalar contracts. NaN shall remain outside this boundary domain. An information policy storing special endpoints shall not be combined with a scalar type whose numerical limits already provide infinity.
is_boundary_infinity shall recognize the side's natural infinity, using SPECIAL when it is stored and otherwise the scalar's actual infinity. normal_is_boundary_infinity shall recognize only the latter encoding on an admitted normal boundary. Reverse infinity shall mean positive infinity on LOWER or negative infinity on UPPER and shall be admitted only when the information policy permits infinity as an element; normal_is_reverse_infinity and is_reverse_infinity shall recognize that scalar encoding. is_minus_infinity and is_plus_infinity shall recognize the corresponding sign of the admitted boundary. infinity_sign shall return -1, +1 or zero according as the boundary is negative-infinite, positive-infinite or finite. These queries shall not change either object.
On LOWER, is_domain_inf shall recognize the minimum of the declared boundary domain: metadata negative infinity when available, otherwise actual scalar negative infinity when available, otherwise the native bounded scalar minimum. On UPPER, is_domain_sup shall analogously recognize the maximum. For unbounded finite-only scalar domains these extrema shall not exist. These two domain-extremum uses shall retain their natural sides; a finite scalar limit shall not thereby become an infinite endpoint.
Objects and borrowed storage shall remain live, and queries shall be synchronized against modification. An inactive payload shall not require a numerical read by a metadata-based query. Queries of a normal payload shall require a valid initialized scalar. Numerical classification and mixed-scalar comparison shall retain their admitted types and configured availability. No additional library initialization shall be required.
-
Incoming link from: 1. Outward endpoint addition and subtraction1
2. Boundary openness and infinity membership interpretation PPL-SPEC-001078 For the boundary representation and lifetimes of 🔗 1. Boundary infinity and scalar-domain extremum interpretation, is_open shall return the stored OPEN value when the information policy stores it. Otherwise it shall identify a natural infinite endpoint as open exactly when infinity is excluded from the carrier; finite endpoints shall be closed. A metadata policy without stored openness shall report an unsupported OPEN property as false under 🔗 3. Stateless interval metadata reports unsupported properties.
special_is_open shall report whether infinity is excluded from the carrier for an admitted metadata special endpoint. normal_is_open shall use the stored openness when supported; otherwise it shall infer openness only for a normal scalar natural infinity when infinity is excluded. is_boundary_infinity_closed shall hold exactly for a natural infinite endpoint, an infinity-admitting carrier and a false stored OPEN query. boundary_infinity_is_open shall report exclusion of infinity from the carrier or a true OPEN query, without inspecting a scalar payload.
A valid complete representation shall satisfy the selected carrier and information policy's consistency rules; unsupported openness shall not invent a stored bit. All queries shall preserve scalar and metadata state, including the opposite side and cached interval claims. They shall require no additional initialization, coefficient constants or FPU state change.
-
Incoming link from: 2. Same-side outward boundary conversion and retained properties1
3. Unbounded and signed-infinity boundary assignment PPL-SPEC-001079 With the live storage and representation capabilities of 🔗 1. Boundary infinity and scalar-domain extremum interpretation, special_set_boundary_infinity shall require stored special endpoints, set the selected side's SPECIAL property, leave the scalar payload unchanged and return V_EQ.
set_unbounded shall select the side's outward domain extremum. A metadata encoding shall use the preceding special-endpoint operation. Otherwise LOWER shall assign negative infinity with ROUND_UP and UPPER positive infinity with ROUND_DOWN, retaining the scalar assignment's returned Result. A bounded scalar without an infinity encoding may consequently hold its finite domain minimum or maximum; this shall not relabel that finite value as an actual scalar infinity. An exactly assigned infinite endpoint shall set OPEN when infinity is excluded from the carrier.
set_minus_infinity and set_plus_infinity shall assign their stated infinity using either the admitted metadata encoding or the scalar assignment with the selected side's direction. A true open request shall require the natural side for that infinity; a false request shall require an infinity-admitting carrier. Stored special endpoints shall require the natural side. Their OPEN update shall be true when requested or when the numerical assignment is inexact. The numerical result shall be representable under the selected scalar policy.
set_boundary_infinity shall assign the natural infinity of the selected side through metadata or the scalar assignment with that side's direction. It shall require a true open request or an infinity-admitting carrier, and a representable scalar result. It shall set OPEN when requested.
These operations shall retain existing OPEN state when no rule above sets it; a false request shall not clear an existing true property. They shall preserve all other boundary/interval properties, the opposite side and cached interval claims. A caller requiring replacement of such retained properties shall clear them separately before assignment. Setting a stored special endpoint shall not require an initialized readable numerical payload. Scalar writes shall retain the marker-assignment meanings of 🔗 1. Typed special-marker assignment to native integer storage and 🔗 2. Typed special-marker assignment to GMP integer and rational storage where applicable, and meet their own type, resource, policy and caller-owned FPU prerequisites; failures shall retain those operations' permitted partial state, without an additional rollback promise. No extra library initialization shall be required.
-
4. Numerical sign of an interval boundary PPL-SPEC-001080 For the representation of 🔗 1. Boundary infinity and scalar-domain extremum interpretation, sgn_b shall return -1, zero or +1 according as the active boundary value is negative, zero or positive. A metadata natural infinity shall have the sign of its side, without reading its inactive payload. An admitted normal scalar infinity shall have its own sign. Endpoint openness shall not affect this numerical sign, including for positive and negative scalar zero.
The boundary scalar and metadata shall remain unchanged. Finite scalar payloads shall satisfy their ordinary numerical validity conditions and source lifetimes. Queries shall require no additional library initialization or FPU state change. The side and property keys shall retain 🔗 1. Boundary sides and interval metadata property keys.
-
5. Ordering of interval boundary cuts PPL-SPEC-001081 For admitted boundaries of 🔗 1. Boundary infinity and scalar-domain extremum interpretation, eq, lt, gt, le and ge shall compare endpoint cuts. Finite numerical values shall have their exact scalar ordering, with negative infinity before all finite values and positive infinity after them. At an equal numerical value the cut order shall be
(v, UPPER, open) < (v, closed) < (v, LOWER, open).Closed lower and upper boundaries at that value shall denote the same cut. Two cuts shall be equal exactly when their numerical values and positions in this order agree. The same comparison of inclusion positions shall apply to admitted infinity encodings; infinity signs shall not be inferred from an inactive metadata payload. gt shall be the converse of lt; le and ge shall include equality. Mixed scalar/information types shall be admitted when their numerical comparison and representation contracts support the operands.
All operands shall retain their values and metadata. Same-object operands and overlapping read-only references shall be admitted. Access shall be synchronized against mutation; scalar comparisons shall retain their configured availability and numerical prerequisites. No additional library initialization or FPU state change shall be required.
-
1. Outward endpoint addition and subtraction PPL-SPEC-001086 add_assign and sub_assign shall form outward selected endpoint candidates for the sum or difference of the two source entry values. Addition shall admit equal source sides; subtraction shall admit opposite source sides. The selected source/destination sides shall give the appropriate extremum: a natural infinite result shall have the receiving side's sign. The owning interval's additive endpoint selection shall retain 🔗 2. Ordinary interval addition and subtraction.
For finite operands, the exact candidate value shall be a + b or a − b; endpoint exclusion shall be required when either selected source endpoint is excluded. Numerical evaluation shall use the receiving side's outward direction and request sufficient relation information for membership under 🔗 1. Normalization of numerical results into boundary properties.
When a selected source is naturally infinite, the output shall be the appropriate natural infinity. It shall include that infinity exactly when an applicable naturally infinite source includes its infinity; all such source infinities excluded shall require exclusion. Natural-infinity classification and inclusion shall use 🔗 1. Boundary infinity and scalar-domain extremum interpretation and 🔗 2. Boundary openness and infinity membership interpretation. Indeterminate extended arithmetic shall be resolved by the owning interval before selecting this endpoint operation.
Selected destination properties shall meet the replacement or compatible composition conditions of 🔗 2. Same-side outward boundary conversion and retained properties. Result normalization, retained selected properties, unrelated/opposite-side metadata and cached interval claims shall obey 🔗 1. Normalization of numerical results into boundary properties. Exact representable values and supported membership distinctions shall yield the exact selected cut; other numerical outcomes shall give an outward receiving cut.
Active source payloads shall be initialized, valid and canonical where required. Metadata-encoded infinity shall not require evaluation of an inactive payload. Scalar types, numerical kernels, intermediate arithmetic, resource bounds, policy checks, shared-temporary synchronization and caller-owned FPU state shall meet the selected numerical contracts. Failures shall retain their underlying permitted partial states without an additional rollback guarantee. Separate sources shall remain unchanged; supported scalar/output and information aliases shall use source values and properties on entry. Borrowed references shall remain live. No extra library initialization shall be required.
-
2. Outward endpoint products and zero attainment PPL-SPEC-001087 mul_assign shall form an outward selected endpoint candidate with exact value ab for nonzero finite source entry values. Endpoint exclusion shall be required when either selected finite source endpoint is excluded. For a naturally infinite source and a nonzero partner, the receiving side shall match the mathematical product's infinity sign. The output shall be that natural infinity, included exactly when an applicable naturally infinite source includes its infinity. The owning interval's sign-sensitive endpoint selection shall retain 🔗 3. Ordinary interval multiplication.
mul_assign_z shall additionally admit zero endpoint values. Supplied first_sign and second_sign shall distinguish the actual entry zero and nonzero source values, including metadata infinity. With two nonzero sources it shall retain the product rule above. With exactly one zero source it shall produce a zero candidate, excluded exactly when the zero source endpoint is excluded. With two zero sources it shall produce zero, excluded exactly when both zero source endpoints are excluded. Thus an attained zero shall remain attainable even when the partner extremum is excluded or unbounded. No inactive infinite payload shall need to be read in a zero branch.
set_zero shall assign an outward representation of mathematical zero with the explicit exclusion request; exactly representable zero shall retain that request whenever the receiving profile supports it. The result shall be the normalized numerical assignment result. Nonzero multiplication and zero assignment shall use the receiving side's outward direction and membership-sensitive relation checking.
Selected destination properties shall meet the replacement or compatible composition conditions of 🔗 2. Same-side outward boundary conversion and retained properties. Result normalization, retained selected properties, unrelated/opposite-side metadata and cached interval claims shall obey 🔗 1. Normalization of numerical results into boundary properties. Exact representable values and supported membership distinctions shall yield the exact selected cut; other numerical outcomes shall give an outward receiving cut.
Active source payloads shall be initialized, valid and canonical where required. Metadata-encoded infinity shall not require evaluation of an inactive payload. Scalar types, numerical kernels, intermediate arithmetic, resource bounds, policy checks, shared-temporary synchronization and caller-owned FPU state shall meet the selected numerical contracts. Failures shall retain their underlying permitted partial states without an additional rollback guarantee. Separate sources shall remain unchanged; supported scalar/output and information aliases shall use source values and properties on entry. Borrowed references shall remain live. No extra library initialization shall be required.
-
3. Outward endpoint quotients and zero-limit candidates PPL-SPEC-001088 div_assign shall form an outward selected endpoint candidate with exact value a ⁄ b for finite nonzero source entry values. Endpoint exclusion shall be required when either selected finite source endpoint is excluded. Numerical division shall use the receiving side's outward direction and membership-sensitive relation checking. The owning interval's divisor-sign selection and defined-quotient semantics shall retain 🔗 4. Ordinary interval division and zero-divisor abstraction.
For a naturally infinite numerator and a finite nonzero denominator, the receiving side shall match the quotient's infinity sign. The output shall be that natural infinity with the numerator's infinity membership. For a finite nonzero numerator and a naturally infinite denominator, the output shall be zero, excluded exactly when the denominator excludes its infinity. An indeterminate quotient of two infinite values shall be resolved by the owning interval before selecting this operation.
div_assign_z shall additionally admit zero endpoints and supplied zero/nonzero classifications consistent with the source entry values. For a nonzero numerator and zero denominator, it shall supply an open natural-infinity limit on the receiving side selected by the owning interval. For a zero numerator it shall supply a zero candidate. That zero shall be included when the numerator zero is included or the denominator is an included natural infinity; otherwise it shall be excluded. A finite zero denominator shall not itself make an excluded numerator zero attainable. These zero-limit branches shall use boundary assignment and shall not numerically divide by zero or evaluate an inactive infinite payload. With two nonzero sources the helper shall retain the quotient rule above.
Selected destination properties shall meet the replacement or compatible composition conditions of 🔗 2. Same-side outward boundary conversion and retained properties. Result normalization, retained selected properties, unrelated/opposite-side metadata and cached interval claims shall obey 🔗 1. Normalization of numerical results into boundary properties. Exact representable values and supported membership distinctions shall yield the exact selected cut; other numerical outcomes shall give an outward receiving cut.
Active source payloads shall be initialized, valid and canonical where required. Metadata-encoded infinity shall not require evaluation of an inactive payload. Scalar types, numerical kernels, intermediate arithmetic, resource bounds, policy checks, shared-temporary synchronization and caller-owned FPU state shall meet the selected numerical contracts. Failures shall retain their underlying permitted partial states without an additional rollback guarantee. Separate sources shall remain unchanged; supported scalar/output and information aliases shall use source values and properties on entry. Borrowed references shall remain live. No extra library initialization shall be required.
-
4. Outward endpoint residues modulo powers of two PPL-SPEC-001089 umod_2exp_assign and smod_2exp_assign shall form same-side outward endpoint candidates for the corresponding scalar residue. For a finite entry value a and m = 2e, the nonnegative candidate shall be u = a − m⌊a ⁄ m⌋, so 0 ≤ u < m. For the centered operation, the candidate shall be s = u when u < m ⁄ 2 and s = u − m otherwise, so − m ⁄ 2 ≤ s < m ⁄ 2. Exponent zero shall mean m = 1 (and shall therefore give zero for integral source values). These scalar meanings shall retain 🔗 6. Exact rational operations with powers of two, 🔗 6. Exact centered and nonnegative unbounded integer residues, 🔗 3. Centered and nonnegative native integer dyadic residues, 🔗 3. Exact centered native residue modulo a power of two and 🔗 4. Rounded nonnegative native residue modulo a power of two.
The destination and source sides shall match. A finite candidate shall retain source endpoint exclusion, enlarged as needed for numerical outward rounding. Evaluation shall use the receiving side's outward direction and membership-sensitive relation checking. A naturally infinite source shall instead give the same-side natural-infinity boundary with its source membership, supporting the owning interval's unbounded residue fallback. The owning interval shall select the required endpoint cases and account for residue discontinuities under 🔗 2. Interval abstraction of wrapped integer images with refinement.
The exponent and every numerical intermediate shall meet the selected scalar operation's admission. A generic template signature shall not promise unavailable source/destination residue specializations.
Selected destination properties shall meet the replacement or compatible composition conditions of 🔗 2. Same-side outward boundary conversion and retained properties. Result normalization, retained selected properties, unrelated/opposite-side metadata and cached interval claims shall obey 🔗 1. Normalization of numerical results into boundary properties. Exact representable values and supported membership distinctions shall yield the exact selected cut; other numerical outcomes shall give an outward receiving cut.
Active source payloads shall be initialized, valid and canonical where required. Metadata-encoded infinity shall not require evaluation of an inactive payload. Scalar types, numerical kernels, intermediate arithmetic, resource bounds, policy checks, shared-temporary synchronization and caller-owned FPU state shall meet the selected numerical contracts. Failures shall retain their underlying permitted partial states without an additional rollback guarantee. Separate sources shall remain unchanged; supported scalar/output and information aliases shall use source values and properties on entry. Borrowed references shall remain live. No extra library initialization shall be required.
-
Incoming links from: 1. Outward endpoint addition and subtraction 1. Outward endpoint addition and subtraction 2. Outward endpoint products and zero attainment 3. Outward endpoint quotients and zero-limit candidates 4. Outward endpoint residues modulo powers of two 2. Same-side outward boundary conversion and retained properties 2. Same-side outward boundary conversion and retained properties 3. Opposite-side complement and additive inversion of boundaries8
1. Normalization of numerical results into boundary properties PPL-SPEC-001082 adjust_boundary shall integrate a side-consistent numerical Result with the selected endpoint representation of 🔗 1. Boundary infinity and scalar-domain extremum interpretation. It shall leave the scalar payload unchanged, retain unrelated/opposite-side metadata and cached interval claims, and add required boundary properties. An existing true OPEN or SPECIAL property shall not be cleared.
For LOWER, admitted finite relation classes shall be V_EQ, V_GE and V_GT; for UPPER they shall be V_EQ, V_LE and V_LT. A strict finite relation shall require an open outward endpoint; a weak or exact relation shall preserve the explicit open request. The resulting OPEN property shall include both that required openness and its entry value. Finite classification shall not itself introduce SPECIAL.
An exact or weak natural-infinity classification shall preserve the explicit open request. The admitted weak classes shall be V_GE | VC_MINUS_INFINITY on LOWER and V_LE | VC_PLUS_INFINITY on UPPER. V_GT_MINUS_INFINITY on LOWER and V_LT_PLUS_INFINITY on UPPER shall additionally require openness. When the receiving policy stores special endpoints, these natural infinities shall be encoded by SPECIAL and the returned value shall be V_EQ. Otherwise the natural-infinity relation/classification shall be retained. An exact reverse-infinity classification shall require a numerical infinity encoding, no stored special endpoints and an infinity-admitting carrier; it shall retain that classification and the explicit openness request.
For the remaining admitted cases the return shall be the input's relation and value-class projection under 🔗 3. Overflow-sign and storage-representability result queries. Other diagnostic bits shall not be reported as retained operation guarantees. Input state shall correspond to the classified scalar result or to a natural infinity that the selected metadata encoding can represent; no NaN, contradictory side direction or unsupported finite failure shall be admitted as an ordinary endpoint result. An inactive final metadata payload shall not require a numerical read. Live storage and synchronization shall retain 🔗 1. Boundary infinity and scalar-domain extremum interpretation. No additional initialization or FPU operation shall be required.
-
Incoming links from: 1. Outward endpoint addition and subtraction 2. Outward endpoint products and zero attainment 3. Outward endpoint quotients and zero-limit candidates 4. Outward endpoint residues modulo powers of two 3. Opposite-side complement and additive inversion of boundaries 4. Minimum and maximum selection of interval boundary cuts 4. Minimum and maximum selection of interval boundary cuts 4. Minimum and maximum selection of interval boundary cuts8
2. Same-side outward boundary conversion and retained properties PPL-SPEC-001083 assign shall convert a source boundary into a destination of the same side, using the representation and cut meanings of 🔗 1. Boundary infinity and scalar-domain extremum interpretation and 🔗 5. Ordering of interval boundary cuts. The requested source cut shall have its source openness, strengthened to open when should_shrink is true. Numerical conversion shall use the destination side's outward direction, with strict-relation checking when needed to preserve endpoint membership or requested by the receiving information policy. The result shall integrate numerical relation and infinity information through 🔗 1. Normalization of numerical results into boundary properties.
For replacement of a boundary, selected destination OPEN and SPECIAL properties shall be clear independently of source entry properties, or already compatible with the required converted cut. With those conditions, the output shall be an outward enclosure of the requested source half-line. When the scalar value and endpoint inclusion are representable exactly, the source cut shall be preserved exactly. Natural metadata infinity shall retain its source infinity-membership distinction when the receiving profile supports it. Included reverse infinities shall require their supported numerical encoding and carrier.
Without a clearing operation, property updates shall compose with entry state: existing true selected OPEN and SPECIAL properties shall be retained, as specified by 🔗 3. Unbounded and signed-infinity boundary assignment and 🔗 1. Normalization of numerical results into boundary properties. Such retention shall not by itself establish an outward-conversion claim when an incompatible entry OPEN property would exclude a source value. Other metadata and the opposite side shall remain unchanged. The return shall be the selected metadata assignment or numerical normalization result, without an aggregate interval-shape guarantee.
Read-only sources shall retain their entry meanings except where output storage overlaps them. Same-type scalar self-assignment and supported scalar/metadata overlaps shall use source values and properties on entry. The caller shall not destroy source properties while preparing the selected destination. Source payloads shall be valid and initialized when active; metadata infinity shall not imply a readable inactive payload. Numerical conversion, resource, policy and caller-owned FPU prerequisites shall retain the selected scalar contracts. Failures shall retain their permitted partial states without additional rollback. No extra library initialization shall be required.
-
3. Opposite-side complement and additive inversion of boundaries PPL-SPEC-001084 complement shall form an outward representation of the opposite-side cut at the same numerical value with endpoint inclusion reversed. For example, the complement of a finite lower closed cut at v shall be an upper open cut at v; a lower open cut shall become upper closed. neg_assign shall instead represent additive inversion of the source half-line: it shall reverse the side and numerical sign while preserving endpoint inclusion. Signed scalar zero shall retain the selected scalar negation contract.
Destination and source sides shall differ. The requested resulting cut, including any infinity sign and membership, shall be representable by the selected receiving profile; an operation requiring an unsupported empty cut or unsupported reverse-infinity encoding shall be handled by its owning interval rather than inferred from a numerical payload. Finite conversion or negation shall use the receiving side's outward direction, request sufficient relation information for endpoint membership, and normalize the result through 🔗 1. Normalization of numerical results into boundary properties. Exact representable values and membership distinctions shall yield the exact transformed cut.
Selected destination properties shall be clear independently of source entry state, or compatible with the required result. Other entry properties shall retain the additive-update behavior of 🔗 2. Same-side outward boundary conversion and retained properties; opposite-side and cached interval properties shall be preserved. Read-only sources shall be preserved except where destination storage overlaps them. Supported scalar self/borrowed aliases and shared information objects shall use source values and source-side properties on entry.
Scalar validity, numerical availability, resource, policy, thread and caller-owned FPU prerequisites shall retain the corresponding assignment or negation contracts. Metadata infinity shall not require evaluation of an inactive source payload. Failures shall retain the underlying operations' permitted partial states, without additional rollback or initialization.
-
4. Minimum and maximum selection of interval boundary cuts PPL-SPEC-001085 Updating min_assign and max_assign shall compare the source cut with the receiving entry cut using 🔗 5. Ordering of interval boundary cuts. If the source is not strictly smaller for minimum or strictly larger for maximum, the receiver shall remain completely unchanged and the return shall be V_EQ. Otherwise the operation shall clear the selected destination boundary properties and convert the winning source through 🔗 2. Same-side outward boundary conversion and retained properties.
The two-source overloads shall select the smaller cut for minimum or the larger for maximum; equality shall select the second source. They shall perform the corresponding same-side boundary assignment, retaining the selected destination properties according to 🔗 2. Same-side outward boundary conversion and retained properties. Callers requiring replacement shall clear those selected properties without changing any source entry properties, or retain only compatible properties. Whenever assignment is required, the selected source side shall match the destination side. Other source sides shall remain valid comparison inputs.
With exact representable scalar values and inclusion distinctions, a replacement shall have the selected source cut exactly. Otherwise it shall retain the outward-conversion meaning and conditions of 🔗 2. Same-side outward boundary conversion and retained properties. Unrelated/opposite-side metadata and cached interval claims shall be preserved. Sources shall be unchanged except for storage that intentionally overlaps the receiver. Same-object sources, scalar output/source overlaps and valid shared information objects shall use source cuts, including openness, on entry; clearing destination properties shall not silently change the selected source's meaning before conversion.
Objects and borrowed references shall remain live and synchronized. Scalar comparison, conversion, resources, policies and hardware state shall meet their respective contracts. No universal rollback, interval-shape result or additional library initialization shall be inferred. The return shall be V_EQ for the unchanged updating case and otherwise the selected boundary assignment's result.
-
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.
-
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.
-
1. Single real cutoff conversion on the destination carrier PPL-SPEC-000686 For a live constraint with finite canonical cutoff q and relation V_EMPTY, V_LGE, V_EQ, V_NE, V_LT, V_LE, V_GT or V_GE, convert_real(to) shall return a relation r’ and store a cutoff q’ such that, for every value x representable by the destination scalar type, x r q holds exactly when x r’ q’ holds. V_EMPTY shall denote false and V_LGE true, independently of the stored cutoff. This equivalence shall concern the destination's represented carrier; it shall not imply equivalence for all real numbers between adjacent representable destination values.
An empty or unconstrained source shall return that same relation without changing to or reading a cutoff value; no initialized cutoff storage shall be required for those two relations. An exactly representable cutoff shall retain its ordinary relation and numerical cutoff. Equality at an inexact cutoff shall become V_EMPTY; disequality there shall become V_LGE. An upper inequality shall use an upward cutoff and a lower inequality a downward cutoff. A nonstrict inequality whose cutoff is inexact shall become strict at the outward-rounded cutoff. The source shall remain unchanged.
Source and destination scalars shall be admitted native integer types, mpz_class, canonical mpq_class or configured supported native floating formats, including supported checked forms whose policies admit the conversions used. The finite cutoff's required upward and downward conversions shall remain within the destination's finite representable range. Source and destination storage shall be distinct, live and valid; borrowed cutoffs shall remain live. Numerical conversion, resource, shared-temporary serialization and FPU prerequisites shall be those of the corresponding assign_r contracts. In particular, a native floating destination requiring directed rounding shall have the required caller-owned FPU state. No additional library initialization shall be required.
-
2. Paired real cutoff conversion and point enclosure PPL-SPEC-000687 Under the finite scalar, storage and numerical prerequisites of 🔗 1. Single real cutoff conversion on the destination carrier, convert_real(to1, rel2, to2) shall return rel1 and produce the conjunction of the predicates described by (rel1, to1) and (rel2, to2). This conjunction, interpreted over the reals, shall contain every real number admitted by the source constraint. The source shall remain unchanged. The output objects shall be distinct from one another and from the source's storage.
For a source relation other than equality, rel1 shall be V_LGE, to1 shall remain unchanged, and the second relation and cutoff shall be the single-cut conversion of 🔗 1. Single real cutoff conversion on the destination carrier.
For equality when the upward conversion reports exact equality, rel1 shall be V_LGE, to1 shall remain unchanged and the second predicate shall be equality at that cutoff. Otherwise, the two finite outputs shall enclose the source point using downward and upward cutoffs. Their reported relations shall retain the established strict or nonstrict comparison with that point. When the conversions establish the same exact point, the result shall reduce to an unconstrained first predicate and equality in the second predicate. In that latter case, to1 may have been written by the downward conversion. A returned V_LGE shall make its associated stored cutoff irrelevant to the predicate; callers shall not interpret an unchanged to1 as an established bound.
-
3. Integral cutoff normalization PPL-SPEC-000688 For a finite constraint satisfying 🔗 1. Single real cutoff conversion on the destination carrier, convert_integer(to) shall produce an equivalent predicate on integer candidates. Every resulting effective cutoff shall be integral. An upper inequality shall normalize to a closed upper bound, using ⌊q⌋ for x ≤ q and ⌈q⌉ − 1 for x < q. A lower inequality shall normalize to a closed lower bound, using ⌈q⌉ for x ≥ q and ⌊q⌋ + 1 for x > q.
Equality at an integral cutoff shall remain equality and at a nonintegral cutoff shall become V_EMPTY. Disequality at an integral cutoff shall remain disequality and at a nonintegral cutoff shall become V_LGE. Empty and unconstrained inputs shall retain their relation without changing to. The source shall remain unchanged.
This exact normalization shall require the relevant rounded integral cutoffs and any unit adjustment to be representable exactly by the destination scalar. Source/destination lifetimes, separation, resources, serialization and native FPU prerequisites shall follow 🔗 1. Single real cutoff conversion on the destination carrier and the scalar's floor, ceiling and unit-arithmetic contracts. A caller shall not infer an exact normalized predicate from a conversion or unit adjustment outside those prerequisites.
-
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.
-
2. Cutoff value storage and explicit borrowing criteria PPL-SPEC-000682 Use_By_Ref<Use_Slow_Copy, T>::value shall equal Slow_Copy<T>::value; By_Value shall select false and By_Ref true. For owned storage, Val_Or_Ref<T, Criteria> shall contain a distinct T object, use T as both Arg_Type and Return_Type, and default construct that value with T(). Construction, assignment and set shall copy the supplied value using T's ordinary operations. get and the conversion operator shall return its current value by value.
For borrowed storage, Arg_Type shall be T& and Return_Type const T&. Default construction shall leave the holder unbound; no read or value conversion shall be permitted before binding. Construction, assignment and set from a mutable lvalue shall bind its identity; the overload with a const T& and Boolean argument shall bind that same const object's identity. The Boolean argument's value shall not change storage or request a snapshot. get and conversion shall expose the live bound object as a const reference, reflecting subsequent valid donor changes.
Implicit copying/assignment of a holder shall preserve its owned value or borrowed identity according to the selected criterion. Assignment from an argument shall return the holder. Borrowed donors shall outlive every use of their values; copying an unbound holder shall not bind it. All referenced objects shall remain live and access shall be synchronized against mutation. The selected T operations, representability and resource prerequisites shall hold; their exceptions shall propagate without a universal rollback promise. Storage alone shall require no library, coefficient-constant or FPU initialization beyond any prerequisites imposed by the selected T.
-
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.
-
Incoming links from: 1. Interval construction from ordinary real constraints 2. Constraint refinement through interval abstraction 3. Independent outward endpoint extension 5. Interval-constraint factories preserve explicit storage selection 7. Interval endpoint constraint views 7. Interval endpoint constraint views6
4. Interval constraints retain relation and cutoff ownership PPL-SPEC-000684 I_Constraint<T, Criteria, extended> shall combine a relation code with the cutoff holder selected in 🔗 2. Cutoff value storage and explicit borrowing criteria. Default construction shall set rel() to V_LGE; its owned cutoff shall have T()'s value and its borrowed cutoff shall remain unbound until set. value() shall follow the holder's value/reference return type and lifetime rules; an unbound borrowed default shall admit relation inspection but not cutoff access.
Construction from a relation and cutoff shall retain that relation and store or borrow the cutoff according to the criterion. set shall replace the relation and update/rebind the cutoff by those same rules. The Boolean acknowledgment shall not force a copy, regardless of its value. Admitted converting overloads shall apply ordinary T construction/assignment under the source type's valid conversion and representability conditions. extended shall not change the ownership or relation/value access behavior specified here.
Implicit copies and assignments shall retain the relation and the selected owned value or borrowed identity. Owned copies shall survive donor scope and mutate independently; borrowed copies shall retain their donor's lifetime obligation. Self-assignment shall preserve the pair. Underlying value exceptions shall propagate; a failed set may already have replaced the relation and shall not promise atomic replacement of the pair. The type shall derive from I_Constraint_Common and I_Constraint_Base for the supported interval-constraint dispatch. Other prerequisites shall follow 🔗 2. Cutoff value storage and explicit borrowing criteria and 🔗 3. Interval-constraint relation adapter preserves supported relation codes.
-
5. Interval-constraint factories preserve explicit storage selection PPL-SPEC-000685 The two-argument i_constraint(relation, value) overloads shall return I_Constraint<T, Use_Slow_Copy, false> using the default storage trait. For a borrowed cutoff, the unacknowledged overload shall require a mutable lvalue; borrowing a const cutoff shall require the explicit Boolean argument. For an owned cutoff, mutable or const input shall be copied.
Overloads with an explicit criterion object shall return I_Constraint<T, Criteria, false> and use that criterion, overriding the slow-copy trait. By_Value shall therefore retain an independent snapshot even for an expensive type, and By_Ref shall retain live reference identity even for a cheap type. The Boolean overload shall acknowledge const borrowing without changing ownership when true or false. A criterion object shall select a type; its own lifetime shall not become the cutoff lifetime. The retained relation and cutoff, exception behavior and valid-use conditions shall follow 🔗 4. Interval constraints retain relation and cutoff ownership.
-
1. Boundary sides and interval metadata property keys PPL-SPEC-000661 Boundary_NS::LOWER and UPPER shall identify the lower and upper boundary respectively and have the corresponding ROUND_DOWN and ROUND_UP encodings. round_dir_check(side, check) shall return that bound direction, with ROUND_STRICT_RELATION exactly when check is true. It shall not inspect or change the hardware rounding mode.
Boundary_NS::SPECIAL and OPEN shall identify independent boundary properties. Interval_NS::CARDINALITY_0 and CARDINALITY_1 shall identify cached empty and singleton answers; CARDINALITY_IS shall identify whether the owner's applicable cached answer is established. Property values shall be Boolean, their default setter value true, and their unsupported query value false. Constructing a property key from a named enumeration value shall retain that value.
The metadata containers shall store claims about endpoints or cached answers; the owning interval shall establish their mathematical consistency. Changing an endpoint flag shall not implicitly establish or invalidate cardinality claims. Calls shall use live objects and named boundary sides; property keys shall meet the selected metadata type's interface. Access shall be synchronized against mutation. Metadata storage alone shall require no library or thread initialization, coefficient constants or FPU setup.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
2. Bounded unsigned flag-word updates preserve unrelated bits PPL-SPEC-000662 For a non-Boolean unsigned integer word type T of width w, reset_bits shall set the complete word to zero. Single-bit updates and queries shall require 0 ≤ b < w: reset_bit shall clear exactly bit b, set_bit(..., true) shall set it and set_bit(..., false) shall clear it, and get_bit shall return its Boolean value. Other bits shall be preserved.
Field operations shall require 0 ≤ s < w, 0 ≤ l < w and s + l ≤ w. set_bits shall also require its value v to satisfy 0 ≤ v < 2l; it shall replace exactly the field [s, s + l) with the binary digits of v. get_bits shall return those digits as a right-aligned T value without modifying the word. A zero-length field shall have value zero and perform no update. The operations shall have defined shifts under these preconditions and shall require no numerical initialization.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
Incoming link from: 2. Boundary openness and infinity membership interpretation1
3. Stateless interval metadata reports unsupported properties PPL-SPEC-000663 Interval_Info_Null<Policy> shall propagate may_be_empty, may_contain_infinity and check_inexact from its policy, and shall report store_special, store_open, cache_empty and cache_singleton as false. Default construction, copying, assignment, clearing and swapping shall retain no per-object property state.
Boundary and interval-property setters shall have no effect. Each property query shall return its property type's unsupported_value, including custom property types satisfying the required Value and default/unsupported value interface. clear_boundary_properties shall have no effect. Null-owner borrowing and initialization rules shall follow 🔗 1. Boundary sides and interval metadata property keys; text operations shall follow 🔗 8. Metadata ASCII representation and stream failure states.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
4. Shared openness view retains a separate Boolean value PPL-SPEC-000664 Interval_Info_Null_Open<Policy>(open) shall store the supplied Boolean openness value and report store_open as true. Its boundary query shall return that same stored value for OPEN on either side, and false for SPECIAL. Copying and assignment shall retain independent Boolean values. The type shall retain the null base's other policy traits and unsupported interval-property answers.
Inherited null-base setters, clearing and base swapping shall remain stateless and shall not change the derived openness value. This view shall not provide independently mutable lower/upper openness flags. Its own ASCII loading shall replace the shared Boolean as specified in 🔗 8. Metadata ASCII representation and stream failure states. Other prerequisites shall follow 🔗 1. Boundary sides and interval metadata property keys.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
5. Policy-selected metadata layout and cleared construction PPL-SPEC-000665 Interval_Info_Bitset<T, Policy> shall store metadata in one unsigned integer word. The policy shall provide Boolean may_be_empty, may_contain_infinity, check_inexact, store_special, store_open, cache_empty and cache_singleton traits and a nonnegative next_bit position. Each trait shall be exposed unchanged.
Starting at Policy::next_bit, the layout shall allocate lower-special, lower-open, upper-special and upper-open positions in that order, consuming one bit exactly when the corresponding property is stored. It shall then allocate a cardinality-known bit exactly when either cache is enabled, an empty-answer bit exactly when cache_empty is enabled, and a singleton- answer bit exactly when cache_singleton is enabled. Each named position and next_bit shall expose the corresponding layout offset. The selected layout shall fit within the word width.
Default construction and clear() shall establish an all-zero word, including policy-reserved prefix bits. The interval owner shall manage the meaning of any reserved prefix fields and ensure coherence of cached claims. Other validity and initialization conditions shall follow 🔗 1. Boundary sides and interval metadata property keys.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
6. Independent endpoint and cardinality flag updates PPL-SPEC-000666 For a valid layout in 🔗 5. Policy-selected metadata layout and cleared construction, setting SPECIAL or OPEN shall replace exactly that configured property on the selected side. Setting CARDINALITY_0, CARDINALITY_1 or CARDINALITY_IS shall replace exactly its configured bit. Omission of the value shall mean true. Every property query shall return its current configured Boolean value. Unsupported setters shall have no effect, and unsupported queries shall return false. An unnamed but representable Interval_NS::Property::Type enumeration value shall be unsupported.
clear_boundary_properties(side) shall clear exactly the selected side's stored special/open flags. Every other side, cache flag and reserved prefix bit shall be preserved. No setter shall infer relations among empty, singleton, known-status or endpoint flags; their consistent interpretation shall remain the interval owner's obligation. Other prerequisites shall follow 🔗 1. Boundary sides and interval metadata property keys and 🔗 5. Policy-selected metadata layout and cleared construction.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
7. Bitset metadata copies and exchanges preserve the complete word PPL-SPEC-000667 Copy construction and assignment of Interval_Info_Bitset<T, Policy> shall preserve the source's complete word in a distinct owner, including reserved prefix bits. Assignment shall admit self-assignment and return its target. Later mutation or destruction of either owner shall not change the other's stored word. m_swap and free swap shall exchange both complete words, admit self-swapping and preserve every bit. Other valid-use conditions shall follow 🔗 5. Policy-selected metadata layout and cleared construction.
For constant-evaluable inputs and property/policy definitions, these operations shall support constant evaluation under the same stated preconditions.
-
8. Metadata ASCII representation and stream failure states PPL-SPEC-000668 For Interval_Info_Null, ASCII output shall emit no bytes and loading shall consume no bytes, preserve the object and return true. For Interval_Info_Null_Open, output shall insert open or closed using ordinary string formatting, including the stream's width, fill and alignment. Loading shall extract a token under ordinary string-extraction rules, including the stream's width and whitespace settings; it shall assign the Boolean meaning and return true exactly for open and closed. Invalid or missing tokens shall return false and preserve the preceding Boolean value. With default compatible formatting, output followed by loading shall retain the shared Boolean.
For Interval_Info_Bitset with a noncharacter unsigned integer word type, ASCII output shall insert the complete word in hexadecimal base and loading shall extract a complete word in hexadecimal base using ordinary stream numeric syntax. Other stream formatting shall follow ordinary integer insertion/extraction rules. On normal return, including a failed load that returns false, both operations shall restore the preceding formatting flags. A successful load shall replace the complete word and return true; a failed numeric extraction shall return false and may change the word according to the stream's unsigned-integer extraction rules. Reserved/unused bits shall be retained and shall not cause rejection. With compatible stream formatting, output followed by loading shall retain the complete word.
Stream exceptions shall propagate under the stream's exception-mask rules; partial output/input and temporary hexadecimal base may remain after an exception. Calls shall preserve live valid metadata owners and require live streams, synchronized output/input access and the type's own valid-use rules. No numerical initialization shall be required.
-
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.
-
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.
-
2. Primitive numerical abstractions PPL-HLR-000002 PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
A positive-dimensional box shall denote the Cartesian product of its coordinate intervals; in zero dimensions the empty box and the universe box shall remain distinct.
-
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.
-
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.
-
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.
-
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. Box cached claims and independent status ownership PPL-SPEC-000671 Box<ITV>::Status shall own three Boolean claims: emptiness is current, the box is empty, and the box is universe. An empty flag shall establish emptiness only when the current flag is set. A stale empty flag may coexist with a universe claim. Simultaneous current emptiness and universality shall violate the status invariant.
Default construction shall clear all three claims. Copy construction and assignment shall retain the source's claims in an independent owner; assignment shall admit self-assignment and return its target. Later mutation or destruction of either owner shall not change the other's claims. These operations shall not inspect coordinate intervals.
Calls shall use live owners and synchronized access against mutation. The owning box shall establish that its claims agree with its mathematical value. Direct flag updates may create temporary inconsistent claims; validity queries shall admit those states, but a box shall not use them as a valid status. No library/thread initialization or coefficient-constant stage shall be required for status operations alone.
-
2. Independent cached-status bit updates and queries PPL-SPEC-000672 The three test_* queries shall return their respective stored Boolean claims without mutation. Each set_* shall set exactly its named claim and each reset_* shall clear exactly its named claim, retaining every other claim. Updates shall not refresh emptiness, inspect coordinates or implicitly reconcile other claims.
For a mask composed of the three named flags, internal test_all(mask) shall report whether every selected flag is set; the zero mask shall return true. test_any(mask) shall report whether any selected flag is set; the zero mask shall return false. Internal set(mask) and reset(mask) shall set or clear exactly the selected flags. Prerequisites and temporary state handling shall follow 🔗 1. Box cached claims and independent status ownership.
-
3. Status consistency query and diagnostic PPL-SPEC-000673 OK() shall return false exactly when current emptiness and universe are all asserted, and true for every other combination. It shall not refresh claims or change the status.
With assertion diagnostics enabled, the inconsistent case shall write The status asserts emptiness and universality at the same time. followed by a newline to std::cerr. Other cases shall emit no diagnostic; with diagnostics disabled, no case shall emit that diagnostic. Stream failures shall follow the stream's ordinary exception-mask rules. The checker shall admit the temporary states described in 🔗 1. Box cached claims and independent status ownership.
-
Incoming link from: 5. Status ASCII loading and partial rejection state1
4. Status ASCII export preserves cached claims PPL-SPEC-000674 ascii_dump shall insert the three status fields in this order: EUP for current emptiness, EM for the empty flag and UN for universe. Each field shall consist of + when its claim is set or - when clear, followed by its keyword and one space. With default compatible formatting, the zero status shall therefore emit -EUP -EM -UN followed by one space. The inserted characters and strings shall follow ordinary stream formatting, including any pending width, fill and alignment settings.
The no-argument ascii_dump() shall write that representation to std::cerr. print() shall write No user level output operator defined for Box<ITV>::Status. followed by a newline to std::cerr. Export shall preserve the stored claims, including stale flags, and shall not inspect the box's coordinate payload or refresh its emptiness. Partial output and stream exceptions shall follow ordinary stream rules. Other prerequisites shall follow 🔗 1. Box cached claims and independent status ownership.
-
Incoming links from: 2. Reloadable box record export 3. Compatible box record loading and failure state2
5. Status ASCII loading and partial rejection state PPL-SPEC-000675 ascii_load shall extract three fields in the order and spelling of 🔗 4. Status ASCII export preserves cached claims. Each token shall begin with + or - and contain exactly the corresponding keyword. Extraction shall follow ordinary string rules, including stream width and whitespace settings. A complete consistent triple shall replace all three claims and return true, independently of the destination's previous claims; trailing tokens shall remain available for subsequent extraction.
A missing, malformed or out-of-order token shall return false. Each successfully parsed preceding field shall already have replaced its claim; the rejected field and following claims shall retain their preceding values. A completed triple asserting current emptiness and universality shall be rejected with false. Rollback and status consistency after a failed load shall not be promised; callers shall restore a consistent status before using it as box state. Stream exceptions shall propagate under ordinary exception-mask rules, with preceding field updates retained.
The internal get_field helper shall assign its output Boolean only when it successfully matches the requested signed keyword. It shall preserve that Boolean on rejection. Other prerequisites shall follow 🔗 1. Box cached claims and independent status ownership.
-
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.
-
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.
-
2. Primitive numerical abstractions PPL-HLR-000002 PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, when interval arithmetic reports an enclosure for a supported operation, that enclosure shall contain every defined mathematical result obtained from operand values in the input intervals, including approximation introduced by endpoint arithmetic.
-
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 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. 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.
-
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.
-
2. Primitive numerical abstractions PPL-HLR-000002 PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
PPL shall provide interval and box widening facilities. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall yield an upper bound of its input sets and shall stabilize its prescribed recurrence on ascending input sequences satisfying the stated ordering, threshold and finite-delay conditions.
-
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.
-
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.
-
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. Primitive numerical abstractions PPL-HLR-000002 PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
For compatible boxes with the same supported interval profile, PPL shall provide intersection and upper-bound operations. Under their documented arithmetic preconditions, intersection shall denote the exact set intersection and the upper bound shall denote the least box of that profile containing both inputs.
-
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.