-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
The runtime shall initialize shared library facilities before their first supported use and finalize them after their last supported use. Multiple participating translation units shall not cause premature finalization of shared facilities. Thread-specific numerical state shall be initialized and finalized according to the selected thread-support configuration. Each supported native or binding lifecycle protocol shall define the validity of existing objects and borrowed views across finalization and reinitialization, the permitted order of owned-object and managed cleanup, and the live-thread and interruption-state preconditions for those transitions.
-
1. C library and thread lifecycle PPL-SPEC-001515 ppl_initialize shall initialize native library state, published symbolic constants and the calling thread's C variable formatter. ppl_finalize shall release C-owned interruption objects and its native library-initialization owner and restore the preceding native variable formatter. Initialization and finalization shall return zero on success and invalid-argument status for duplicate lifecycle requests. Reinitialization after a completed finalization shall succeed. Independently owned client objects shall be released before finalization.
New participating threads shall enter and leave using the thread functions in supported configurations. The initializing thread shall use the library lifecycle rather than duplicate thread entry or exit. Thread finalization shall restore that thread's preceding native formatter. Shared lifecycle and interruption ownership shall obey the native synchronization prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. Coefficient zero and one constant access PPL-SPEC-000046 Within the calling thread's active initialization lifetime, Coefficient_zero() and Coefficient_one() shall return coefficients with values zero and one, respectively, through Coefficient_traits::const_reference as defined by 🔗 1. Configured integral coefficient type and return trait. Repeated access shall preserve those values.
When the trait is a reference, repeated calls on the same thread within that lifetime shall refer to the same corresponding constant object. The caller shall not mutate that borrowed object or retain its use beyond the applicable initialized-thread lifetime. When the trait returns a value, the returned coefficient shall be an independent value. Making and modifying a value copy of either constant shall leave the constant unchanged.
Initialization and finalization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. In a thread-safe configuration, reference-returning constant storage shall belong to the calling thread and access by an initialized worker shall preserve another initialized thread's constants. Reinitialization shall not revive borrowed references from a preceding lifetime.
-
7. Coefficient constant-stage acquisition and release PPL-SPEC-000047 The internal coefficient-constant initialization stage shall be entered only when that thread has no active instance of the stage. In the mpz profile, successful Coefficient_constants_initialize() shall acquire and publish one owned zero coefficient and one owned unit coefficient for that thread. Neither pointer shall be published until both objects have been constructed. If supported recoverable construction failure occurs, partial acquisitions shall be destroyed, both published pointers shall remain null and a later initialization attempt shall be permitted.
Coefficient_constants_finalize() shall require the initialized stage and completion of all dependent uses. It shall release both owned objects and clear both published pointers. The bounded profiles shall require no owned constant-stage allocation; their initialization and finalization functions shall perform no stage-resource operation. Their accessor storage shall follow 🔗 6. Coefficient zero and one constant access.
The enclosing initialization transaction shall acquire and release this stage in dependency order under 🔗 3. Thread initialization, default state and finalization. Callers shall not interleave independent stage ownership protocols for the same thread.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 6. Coefficient zero and one constant access 1. Compound-domain values and valid use 1. Rational-grid values, coefficient profile and valid use 2. Explicit whole-library initialization and finalization 2. Explicit whole-library initialization and finalization 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 1. Polyhedral values, coefficient profile and valid use 1. Optimization and ranking valid use 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state27
1. Initialization owners and automatic C++ initialization PPL-SPEC-000031 The public C++ header shall establish an initialization owner in each participating translation unit unless PPL_NO_AUTOMATIC_INITIALIZATION is defined before that translation unit first includes <ppl.hh>. The first successfully constructed Init owner shall establish shared library facilities and initialize its calling thread. Additional owners shall retain that initialized lifetime without reinitializing its existing thread state. Destruction of an owner while another owner remains shall preserve the shared facilities. Destruction of the last owner shall finalize the owning thread and release shared initialization facilities.
The first-owner construction and last-owner destruction shall be serialized by the caller and shall occur on the same thread. All other participating threads shall complete their PPL use and thread finalization before last-owner destruction. Every PPL object or borrowed view whose validity depends on the initialized facilities shall cease to be used, and every required owned-object cleanup shall finish, before those facilities are finalized. A later initialized lifetime shall not revive objects or views from an earlier lifetime.
The owner counter, saved-rounding storage, automatic-owner pointers and irrational-precision storage shall be statically zero-initialized. The optional rounding-verifier function pointers shall be statically initialized to their designated probes. Their definitions shall enforce constant initialization with constinit. Runtime owner and thread setup shall establish the numerical state specified by this protocol.
Explicit Init guards shall be used only within this ownership protocol. The number of simultaneously live owners shall remain representable by unsigned int. Callers shall not copy, move or assign Init or Thread_Init guards. Automatic initialization shall not by itself initialize worker threads. Thread entry and exit shall follow 🔗 3. Thread initialization, default state and finalization.
If first-owner construction reports a supported recoverable exception, it shall release resources acquired for the failed construction, restore the preceding variable formatter, irrational precision and rounding state, and leave no initialization owner contributed by the failed construction. If setup replaced a signal handler, failure shall restore its preceding action without discarding the caller's pending notifications or changing the caller's timer.
-
2. Explicit whole-library initialization and finalization PPL-SPEC-000032 When automatic initialization is disabled by PPL_NO_AUTOMATIC_INITIALIZATION before public-header inclusion, initialize() shall acquire one library initialization owner on its first successful call without an existing explicit owner. Repeated calls while that owner exists shall preserve it and its active thread state, rather than acquire additional owners or reset the formatter, numerical constants or precision. finalize() shall release that explicit owner. A call to finalize() shall require an existing explicit owner; a sequence of repeated initialize() calls shall require only one matching finalize().
The explicit owner shall obey the first/last-owner, dependent-object cleanup and same-thread conditions of 🔗 1. Initialization owners and automatic C++ initialization. After successful finalize(), a later initialize() shall establish a fresh initialized lifetime. Supported recoverable failure in initialize() shall release resources acquired for the failed owner and shall permit a later call to attempt initialization afresh.
When the header provides automatic initialization, initialize(), finalize(), thread_initialize() and thread_finalize() shall be no-ops; the automatic owner and explicit Thread_Init guards shall govern those lifetimes instead.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 1. Ordered coefficient-map values and valid tree use 2. Finite coefficient construction, copying and comparison 6. Coefficient zero and one constant access 7. Coefficient constant-stage acquisition and release 1. Compound-domain values and valid use 1. Affine congruence meaning and valid numerical use 1. Constraint relation meaning and numerical prerequisites 20. Distance scratch storage, admissible overlaps and numeric conditions 1. Extended-number row meaning and construction states 1. Generator kinds and numerical prerequisites 1. Grid-generator values and integer versus continuous displacement 1. Rational-grid values, coefficient profile and valid use 1. Initialization owners and automatic C++ initialization 5. Interruptible thread registration and request lifetime 1. Affine value, numerical prerequisites and shared zero 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 9. Distance workspace protocol and admissible overlaps 8. Coordinate-map diagnostic printing and output failures 1. Polyhedral values, coefficient profile and valid use 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 1. Optimization and ranking valid use 3. Selection and ownership of irrational rational precision 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state42
3. Thread initialization, default state and finalization PPL-SPEC-000033 While a library initialization owner remains alive, each additional thread using PPL thread-specific facilities shall establish exactly one active thread initialization lifetime before those facilities are used. A directly constructed Thread_Init guard shall establish that lifetime and shall finalize it when the guard is destroyed on the same thread. A direct guard shall not overlap an already active PPL thread-initialization lifetime on that thread and shall not be copied, moved or assigned.
In a client compiled with automatic initialization disabled, thread_initialize() shall establish a thread lifetime if none is owned by that entry protocol. Repeated calls while that protocol owns an active lifetime shall preserve its constants, precision and formatter. thread_finalize() shall require and end that protocol-owned active lifetime. Direct guards and these entry points shall not be mixed for the same active lifetime. The thread initialized by the first library owner shall have an active protocol-owned thread lifetime when last-owner destruction begins.
Successful thread initialization shall establish the numerical constants used by expressions, constraints, congruences, generators, their systems and polyhedra, set irrational_precision() to 128, and select Variable::default_output_function as the active variable formatter, as specified by 🔗 7. Active Variable formatter and initialized thread state. When configured rounding control is available, it shall save and replace the calling thread's rounding direction as specified by 🔗 4. Rounding-state exchange during an initialized thread lifetime. In a thread-safe configuration these states shall belong to the calling thread and shall be isolated from the corresponding state of other initialized threads. In a configuration without thread support, clients shall use one initialized thread and shall not create overlapping thread-initialization lifetimes.
Before finalization, all PPL use and required owned-object cleanup depending on that thread's initialized state shall finish. Finalization shall release the thread-owned initialization resources and restore its saved rounding direction when rounding control is configured. Reentry after completed finalization shall establish fresh default state; it shall not revive earlier objects or views. If thread construction reports a supported recoverable exception, resources acquired for the incomplete lifetime shall be released, and the preceding variable formatter, irrational precision and rounding state shall be restored.
-
6. Coordinate-set diagnostic output and formatter prerequisites PPL-SPEC-000026 Diagnostic output shall observe a coordinate-valid set without modifying its indices. With compatible ordinary character formatting and successful output, operator<< shall write "{", each selected Variable in increasing index order preceded by one space, a comma after every Variable except the last, and the final text " }". Thus an empty set shall write "{ }". Variable text shall be produced by the active Variable formatter at each write. The operator shall return the supplied stream reference. It shall not add a newline or request a flush. print() shall perform this output to std::cerr.
Calls shall require the library/thread initialization protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization to have established a valid active Variable formatter under 🔗 7. Active Variable formatter and initialized thread state. Formatter dispatch shall follow 🔗 8. Variable names, formatter dispatch and output failures. Clients shall synchronize formatter changes, shared streams and shared-set access under the supported thread regime. The formatter shall not mutate the printed set during output. Stream formatting and error reporting shall follow ordinary C++ insertion semantics. Formatter exceptions and stream exceptions shall propagate; ordinary nonthrowing stream failures shall remain observable through the stream state. Partial output may remain after failure, while the set shall remain unchanged.
-
Incoming link from: 1. Watchdog platform availability and initialization prerequisites1
18. Class initialization and preceding signal action PPL-SPEC-000888 On an available platform, class initialization shall establish a one-shot timer protocol (zero repeated interval), install the watchdog signal action for the selected signal and preserve its preceding action for later restoration. Failed installation shall report its system-call failure. The caller/library shall provide balanced initialization and finalization, without independently repeated initialization or live watchdogs before setup. If later library initialization fails after this signal action was acquired but before any timer/event was acquired, its internal rollback shall restore the preceding action without modifying an unrelated existing interval timer.
-
19. Class finalization and pending-notification cleanup PPL-SPEC-000889 On an available platform, finalization shall require no live pending watchdog events. With the selected signal blocked, it shall stop the owned timer, mark the logical alarm inactive, discard an owned pending notification and restore the preceding signal action. It shall restore the caller's exact mask and preserve errno when it returns. Failure to block, stop the timer, install the discard action, restore the preceding action or restore the mask shall invoke std::terminate. A stale notification from a canceled timer shall not escape later to the preceding client handler.
-
Incoming links from: 3. Java native failure and pending-exception protocol 4. Java owned wrappers and borrowed views2
2. Java library initialization and finalization PPL-SPEC-001689 After loading the configured JNI library, initialize_library shall establish native library state and the Java class cache before supported operations. finalize_library shall release that cache, the calling thread's variable stringifier and deterministic-timeout state, and the native initialization owner. A later initialization shall establish a new valid period of use.
Clients shall release owned objects, cease using borrowed views, and end worker thread participation before finalization. Requests shall alternate valid initialization and finalization; duplicate library requests are outside this protocol. Participating workers shall obey 🔗 6. Thread entry and shared-facility use.
-
6. Prolog library lifecycle protocol PPL-SPEC-001700 ppl_initialize shall establish the common native state if it is not already initialized; a repeated request shall succeed harmlessly. ppl_finalize shall release binding-owned interruption resources and registered objects and leave the interface uninitialized; a repeated request shall also be harmless. A subsequent initialization shall permit a new valid period of use without making old handles valid. Fixed interface atom names cached during initialization shall remain valid across the engine's atom and string garbage collection.
Each engine adapter shall invoke initialization through its documented loading hook or require explicit initialization before numerical predicate use. After finalization, clients shall use only lifecycle operations until the next initialization. The protocol does not require diagnosis of every violation of these call-state preconditions.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
On supported platforms with floating-point rounding control, initialization shall establish the rounding state required by PPL floating-point abstractions and preserve the preceding state for restoration. Restoring that preceding state shall permit the client to resume its own floating-point computations; before further use of affected PPL abstractions, the client shall be able to reestablish the PPL-required state.
-
4. C rounding and irrational precision controls PPL-SPEC-001518 Rounding controls shall apply the native PPL rounding mode or restore the calling thread's saved preceding mode. The precision query shall assign the current irrational-result precision, and setting shall apply the native admission and precision semantics. These controls shall not change exact integer or rational values. Calls involving floating arithmetic shall satisfy the applicable native rounding and thread-entry prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. Rounding-state exchange during an initialized thread lifetime PPL-SPEC-000034 On a configured platform with floating-point rounding control, successful thread initialization shall save the calling thread's preceding rounding direction and establish upward rounding, the direction used for ROUND_DIRECT computations. During that active thread lifetime, restore_pre_PPL_rounding() shall restore the direction saved at thread initialization, and set_rounding_for_PPL() shall reestablish upward rounding. Repeated calls shall not replace the saved preceding direction. Normal thread finalization shall restore that saved direction.
Each exchange shall affect only the calling thread's rounding direction in a thread-safe configuration. The caller shall invoke these functions within a valid initialized thread lifetime and shall call set_rounding_for_PPL() before resuming PPL computations that require its rounding state after the preceding state has been restored or the client has otherwise changed rounding. The exchange shall not promise preservation or restoration of unrelated floating-point status flags, trap masks or other environment state.
When the selected configuration has no floating-point rounding control, set_rounding_for_PPL() and restore_pre_PPL_rounding() shall perform no rounding-state operation. Their presence shall not make an unsupported floating-point computation supported.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.
-
1. C generated domain values and conversions PPL-SPEC-001554 Domain constructors, copying, assignment, exchange, deletion and recycling shall preserve the corresponding native domain values, topology and complexity-policy guarantees. Each successful new result shall be independently owned. Borrowed inputs shall obey their documented lifetime and mutation restrictions. Failure cleanup shall not leak partially acquired owned results.
Complexity-taking constructors shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT without constructing a result or changing the output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generated domain observations PPL-SPEC-001555 Predicates, containment/equality, dimension and relation queries shall return the corresponding native outcomes or flags. Bounds, optimization and frequency functions shall assign their native exact or sound values and admitted witnesses only when their operation reports success. Caller-supplied coefficient/witness outputs shall obey native nonaliasing restrictions. False or inconclusive results shall not be interpreted as a numerical proof beyond the native contract.
The selected-coordinate integer-point query shall decide existence with exactly the listed coordinates integral and all others real. An empty list shall test ordinary feasibility. Out-of-space indices shall be rejected and the represented input shall be preserved, as specified in 🔗 1. Selected-coordinate integer-point existence.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C generated system extraction ownership PPL-SPEC-001556 Polyhedron constraint/generator and Grid congruence/grid-generator getters shall return borrowed native systems, including minimized getters, with the documented owner-call invalidation rules. Getters designated to construct an independent system for other domains shall transfer an owned system. Successful extraction shall preserve the corresponding native mathematical meaning and approximation direction. Independent copies shall remain valid after domain mutation or destruction.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C generated domain transformations PPL-SPEC-001557 Constraint/congruence insertion, intersection, upper bounds, differences, simplification and other selected set transformations shall forward the corresponding native value and approximation contracts. Boolean exactness outcomes shall retain their native meaning. Dimension, topology, inclusion and ownership preconditions shall apply to the corresponding native arguments; designated admission failures shall be translated.
Integer-point refinement operations shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT and leave the receiver unchanged.
Minkowski addition shall preserve the exact closed/NNC value contract in 🔗 1. Exact Minkowski sum of polyhedra. Generator-based time elapse shall preserve 🔗 1. Nonnegative polyhedral time elapse, including matching system dimension and borrowed receiver input. HH95, HPW01 and bounded Chvatal refinement shall require closed operands and reject NNC handles before a derived-class cast. Their native contracts in 🔗 1. HH95 closed-polyhedron edge extrapolation, 🔗 1. HPW01 closed-polyhedron extrapolation and 🔗 1. Bounded Chvatal half-pair refinement shall apply, including the pair-budget scope. These entry points shall be generated only with the Polyhedron interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C generated affine transformations PPL-SPEC-001558 Affine image/preimage and generalized/bounded families shall interpret expression coefficients, denominator, relation symbol and affected coordinates exactly as the corresponding native operation. Pointer parameters shall denote live expressions and coefficient objects, with native supported aliasing and nonzero-denominator rules. Successful results shall preserve the native exactness or sound enclosure guarantee.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C generated dimension arrays and maps PPL-SPEC-001559 Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C generated convergence operations PPL-SPEC-001560 Selected widening, extrapolation and narrowing functions shall apply their corresponding native operators and preconditions. Optional token pointers shall be forwarded with native token-update meaning; convenience forms shall have the same effect as their tokenless native form. Constraints limiting or bounding extrapolation shall retain their native role. These operations shall not be reinterpreted as exact joins or intersections.
The Rational_Box powerset BHZ03_CC76_CC76 function shall use the default CC76 stopping points and tokenless certificate contract of 🔗 5. Threshold-aware CC76 box convergence certificates. It shall be available when the powerset interface is selected, even when the separate Rational_Box interface is not selected. Other box types shall remain excluded unless separately certified for export.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C finite-disjunction ownership and traversal PPL-SPEC-001561 Generated powerset iterator objects shall own only positions in a live disjunction. Disjunct getters shall return borrowed const disjuncts; adding shall copy the supplied value. Single/range removal shall use valid positions and native invalidation rules. Disjunct iteration shall preserve the native representation and shall not assert a canonical or pairwise-disjoint decomposition.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C partition result ownership PPL-SPEC-001562 Partition functions shall produce the corresponding native intersection and finite-disjunction remainder, including the native finiteness/exactness indicator where provided. Successful output handles shall denote independently owned results. Results shall be published only after all required owned outputs have been acquired; failure shall release partial results and preserve output handle values. Output addresses shall be distinct as required.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C affine-ranking outcomes and coefficient spaces PPL-SPEC-001563 Generated termination tests and one/all-ranking functions shall preserve the selected native MS/PR method, including the coordinate interpretation in 🔗 1. Transition encoding and ranking interpretation, normalization and strictness conventions. A false test or witness result shall remain inconclusive about termination. Successful witnesses shall satisfy the native ranking obligations; all-ranking outputs shall represent the native coefficient space, including universe for empty transitions. Paired input dimensions and selected output types shall satisfy native and binding-generation dependencies.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C bounded integer wrapping PPL-SPEC-001564 Generated wrap functions shall interpret the selected coordinate set, width, signedness, overflow mode, guard system, complexity threshold and individual/joint option as the corresponding native bounded-integer wrapping operation. Width and representation shall define the same finite integer range; permitted approximations shall remain sound. The guard argument shall address a readable constraint-system handle. A null handle stored at that address shall denote absent guards; the address itself shall be non-null.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C mixed integer problem values PPL-SPEC-001539 MIP constructors shall create an owned trivial, copied or constraint/objective/mode problem with the corresponding native MIP_Problem meaning. Copied constraints and objectives shall remain independent of later source mutations. Assignment shall replace the problem; deletion shall release owned state. A failed constructor shall leave its output handle unchanged and release acquired resources. The accepted mode shall select the published minimization value or maximization behavior.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C mixed integer descriptors and borrowing PPL-SPEC-001540 MIP queries shall report ambient dimension, integer-coordinate count/list, constraint count and optimization mode. Constraint-at-index and objective getters shall return borrowed const views of the stored problem. An admitted strict inequality shall appear as the equivalent closed row under the declared integrality restrictions. Indexed constraints shall follow native insertion order and reject out-of-range indices. The caller shall supply output arrays large enough for the separately queried count. Borrowed descriptors shall not be deleted or mutated and shall remain valid only under the accessor's owner-lifetime/invalidation rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C mixed integer incremental updates PPL-SPEC-001541 MIP clear, dimension growth, integer-coordinate selection, constraint additions and objective/mode replacement shall forward the corresponding native updates, including integer-supported strict admission under 🔗 1. Integer-supported strict MIP admission. Counted dimension arrays shall identify selected coordinates, with duplicates having set semantics. Completed later queries shall describe the updated problem; native admission errors shall retain their categories. Clear shall restore the zero-dimensional trivial problem.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C mixed integer solution outcomes and witnesses PPL-SPEC-001542 Satisfiability shall return the native boolean result. Solve shall return the published infeasible, unbounded or optimized status. Feasible/optimizing point getters shall return borrowed native point witnesses and reject requests for unavailable witnesses; their output handles shall remain unchanged on failure. Objective evaluation and optimum queries shall assign exact numerator/positive denominator values to existing coefficient objects under native admission and nonaliasing prerequisites. Solver-computing calls may invalidate earlier borrowed witnesses.
The standalone strict mixed-integer query shall decide the exact feasibility contract in 🔗 1. Exact strict mixed-integer feasibility using its explicit ambient dimension. Unused coordinates and empty systems shall retain that dimension. Out-of-space rows or integer coordinates shall be rejected. Constraint-system dimension completion shall occur on a copy, preserving the input and its metadata. The standalone query shall remain available with no selected domain interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C mixed integer controls, validity and memory PPL-SPEC-001543 Control functions shall use the published native pricing names/values and return or apply the corresponding supported strategy. Validity shall return the native invariant result. Memory queries shall assign native total/external estimates to the caller's size_t outputs. Pricing shall affect the search strategy without changing the exact successful mathematical result.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C variable formatting and callback failures PPL-SPEC-001519 The C formatter getter and setter shall expose and replace the calling thread's variable-output callback. The supplied callback shall be callable, return normally and return a borrowed NUL-terminated representation, or null to signal failure. The default callback shall use the native letter-and-quotient naming convention.
Direct variable output and object output containing a variable shall use that callback. A null callback result shall make the enclosing C output operation report PPL_STDIO_ERROR and notify the installed error handler. Failed formatting shall not be reported as successful output with the variable silently omitted.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C textual output and allocated buffers PPL-SPEC-001520 The ppl_io_print_T and ppl_io_fprint_T families shall write the native human-readable representation to standard output or the supplied live FILE. ppl_io_asprint_T shall allocate a NUL-terminated buffer containing that representation, store its address and transfer ownership to the caller for free. On a reported allocation or I/O failure no completed representation shall be promised; partial external stream output may already exist. Formatting shall remain distinct from reloadable serialization. Buffered C streams remain subject to the caller's later flushing and closing errors.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C line wrapping and pointer failure result PPL-SPEC-001521 ppl_io_wrap_string shall apply native byte-oriented line wrapping through the first NUL byte, with the supplied indentation and preferred line lengths. Its successful result shall be a caller-owned NUL-terminated malloc buffer released with free. Preferred widths shall guide separator selection without splitting unbroken words. Native C++ exceptions and failure to allocate the final C buffer shall produce null and the corresponding error-handler notification. Successful wrapping shall preserve the native text and separator rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C reloadable FILE representations PPL-SPEC-001522 For types with ASCII operations, ppl_T_ascii_dump shall write the native reloadable representation to a live FILE. ppl_T_ascii_load shall replace the mutable owned object's value when the native loader succeeds. A native false result or detected stream failure shall report PPL_STDIO_ERROR and notify the error handler. Loading supports trusted records written by the corresponding native dumper in a compatible build. Native failure-state guarantees shall apply. A failed load may leave a partially replaced object whose ownership permits destruction. Rollback and further queries shall not be assumed. Borrowed objects shall not be loaded into.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C parametric problem values and ownership PPL-SPEC-001544 PIP constructors shall create independent owned trivial, copied or constraint-range problems with the selected parameter coordinates. Range and counted-array arguments shall be valid during construction. Assignment shall replace native problem/tree state and rebind its owned nodes to the destination. Deletion shall release owned trees and problem data. Failed construction shall preserve its output handle and release acquired resources.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C parametric descriptors and parameter lists PPL-SPEC-001545 PIP descriptor queries shall expose native dimension, parameter-coordinate count/list and original constraint count. Constraint-at-index shall return the corresponding borrowed input constraint and reject an out-of-range index without changing the output handle. Output arrays shall have sufficient capacity for their separately queried count. Read-only metadata inspection shall follow the documented safe borrowing rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C parametric incremental updates PPL-SPEC-001546 PIP clear, variable/parameter growth, parameter-coordinate selection and constraint additions shall have native PIP_Problem effects and admission rules. Variables shall be appended before newly appended parameters. Selected dimensions shall be interpreted as a set. Existing processed decision variables shall not be reinterpreted as parameters. An empty constraint system shall still retain its declared dimension for compatibility checks. Later completed solution queries shall refer to the updated input and initial context.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C parametric outcomes and borrowed solution trees PPL-SPEC-001547 PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C parametric controls, big parameter and memory PPL-SPEC-001548 PIP cutting/pivot controls and big-parameter selection shall forward native admission and stored values. A designated big parameter shall remain an admitted parameter coordinate and shall select the asymptotic interpretation in 🔗 1. Parametric problem and context interpretation. Native validity and memory results shall be returned or assigned without changing their meaning.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C solution-tree kind, guards, children and values PPL-SPEC-001549 Tree-kind accessors shall return an alias of the input node for a matching kind and null for a different kind, without transferring ownership. Decision-child access shall select the requested boolean branch and return null for an absent branch. Guard getters shall return borrowed native constraint systems. Solution-coordinate getters shall return borrowed native affine expressions for decision coordinates, with native domain/index errors for invalid queries. Null handles shall be tested before further use. Traversal and independent coordinate queries shall not invalidate other documented read-only tree views.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C artificial-parameter expression and coefficient queries PPL-SPEC-001550 The artificial-parameter input handle shall borrow an element of the owning tree. Expression access shall copy its affine numerator into the caller's existing expression object. That copy shall remain independent of the tree. Coefficient, constant and denominator queries shall assign their stored native values to existing coefficient objects. The artificial value shall remain the mathematical floor of the numerator divided by its positive denominator, including negative numerators. These accessors shall not normalize or replace the source representation or transfer ownership of the artificial parameter.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C artificial-parameter sequence traversal PPL-SPEC-001551 Allocated artificial-parameter iterators shall own only their iterator storage. Node begin/end shall position them in that node's local ordered sequence; equality, increment and dereference shall use valid positions in the same live sequence. Dereference shall return a borrowed artificial parameter tied to the owning problem/tree. Copying positions shall not copy parameters or extend tree lifetime; deleting positions shall not delete tree contents. Count shall report the local sequence length.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C library and thread lifecycle PPL-SPEC-001515 ppl_initialize shall initialize native library state, published symbolic constants and the calling thread's C variable formatter. ppl_finalize shall release C-owned interruption objects and its native library-initialization owner and restore the preceding native variable formatter. Initialization and finalization shall return zero on success and invalid-argument status for duplicate lifecycle requests. Reinitialization after a completed finalization shall succeed. Independently owned client objects shall be released before finalization.
New participating threads shall enter and leave using the thread functions in supported configurations. The initializing thread shall use the library lifecycle rather than duplicate thread entry or exit. Thread finalization shall restore that thread's preceding native formatter. Shared lifecycle and interruption ownership shall obey the native synchronization prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C failures and installed error notification PPL-SPEC-001516 Supported native exceptions shall be contained at the C boundary and translated to the corresponding negative category: allocation, invalid argument, domain, size, logic, checked arithmetic overflow, internal runtime error, other standard exception, unexpected exception or interruption. The installed non-null error handler shall receive that category and a description exactly once for each reported failure, including directly detected I/O, buffer-allocation and unsupported-operation failures. Its description shall be borrowed only during the callback. A null handler shall disable notification. Handlers shall return normally and obey synchronization and reentrancy prerequisites.
ppl_set_error_handler shall replace the calling thread's handler where thread-local state is configured. Direct C I/O errors shall preserve their errno detail across notification. Pointer-returning text wrapping shall use null on failure, with handler notification, rather than allowing a C++ exception to escape.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C version, dimensions and published constants PPL-SPEC-001517 Version and banner accessors shall expose the built library's version components and borrowed static strings. Dimension accessors shall assign the native maximum extent and reserved non-dimension sentinel without changing them numerically. Initialization shall publish relation flags, complexity classes, optimizer statuses, modes and controls corresponding to the native values. Callers shall use these symbolic values in the operations that accept them. Version component functions shall return their nonnegative component directly.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C rounding and irrational precision controls PPL-SPEC-001518 Rounding controls shall apply the native PPL rounding mode or restore the calling thread's saved preceding mode. The precision query shall assign the current irrational-result precision, and setting shall apply the native admission and precision semantics. These controls shall not change exact integer or rational values. Calls involving floating arithmetic shall satisfy the applicable native rounding and thread-entry prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C signal timeout lifecycle PPL-SPEC-001552 Supported signal-timeout requests shall arm the native watchdog for the positive centisecond duration under its thread/signal ownership prerequisites. Replacing a timeout shall cancel the preceding signal timeout before admitting and arming its replacement; failure after cancellation shall not restore the old one. Reset shall release the C-owned signal watchdog and its binding-owned notification state. A delivered signal interruption shall report the timeout category and release that signal timeout before notification. Thread-safe C configurations shall reject the unsupported request without arming it. C library finalization shall release any remaining C-owned signal watchdog before native watchdog finalization.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C deterministic timeout lifecycle PPL-SPEC-001553 Supported deterministic requests shall use the native positive scaled computational-weight increment, its admitted circular threshold domain and cooperative checkpoints. Replacing shall cancel the preceding deterministic setting before admitting the replacement; reset shall release its C-owned watcher and notification state. A deterministic interruption shall release that deterministic watcher before reporting the timeout category. It shall not remain active merely because the signal-timeout cleanup path was selected instead. Reset shall clear only the C-owned deterministic request and preserve unrelated borrowed interruption requests. In thread-safe C configurations, each initialized thread shall own its independent watcher, threshold queue, checker and budget counter. Setting, canceling or expiring one thread's budget shall not alter another's. Thread and library finalization shall release the calling thread's remaining C-owned deterministic state before native teardown; a later thread session shall inherit no pending C deterministic timeout.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C constraint systems PPL-SPEC-001534 The Constraint_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied constraint with the native system's topology and dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted constraint. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generator systems PPL-SPEC-001535 The Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C congruence systems PPL-SPEC-001536 The Congruence_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied congruence with the native system's dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted congruence. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C grid generator systems PPL-SPEC-001537 The Grid_Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C descriptor-system iterator lifetimes PPL-SPEC-001538 Iterator constructors shall allocate caller-owned iterator positions; copying and assignment shall copy positions without copying or extending the lifetime of their system or elements. Begin/end shall position them in the supplied live system. Equality shall compare valid positions in that same system. Increment shall advance a valid non-end position; dereference shall return a borrowed const element at a dereferenceable position. Mutation, replacement or destruction of the owning system shall obey the native invalidation rules. Iterator deletion shall release only iterator storage.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming links from: 1. C generated domain values and conversions 2. C generated domain observations 3. C generated system extraction ownership 4. C generated domain transformations 5. C generated affine transformations 6. C generated dimension arrays and maps 7. C generated convergence operations 8. C finite-disjunction ownership and traversal 9. C partition result ownership 10. C affine-ranking outcomes and coefficient spaces 11. C bounded integer wrapping 12. C selected domains and generated dependencies 1. C mixed integer problem values 2. C mixed integer descriptors and borrowing 3. C mixed integer incremental updates 4. C mixed integer solution outcomes and witnesses 5. C mixed integer controls, validity and memory 1. C variable formatting and callback failures 2. C textual output and allocated buffers 3. C line wrapping and pointer failure result 4. C reloadable FILE representations 1. C parametric problem values and ownership 2. C parametric descriptors and parameter lists 3. C parametric incremental updates 4. C parametric outcomes and borrowed solution trees 5. C parametric controls, big parameter and memory 6. C solution-tree kind, guards, children and values 7. C artificial-parameter expression and coefficient queries 8. C artificial-parameter sequence traversal 1. C library and thread lifecycle 2. C failures and installed error notification 3. C version, dimensions and published constants 4. C rounding and irrational precision controls 5. C signal timeout lifecycle 6. C deterministic timeout lifecycle 1. C constraint systems 2. C generator systems 3. C congruence systems 4. C grid generator systems 5. C descriptor-system iterator lifetimes 1. C coefficient ownership, conversion and bounds 2. C affine expression values and updates 3. C affine expression queries 4. C linear constraint values 5. C linear constraint queries 6. C polyhedral generator values 7. C polyhedral generator queries 8. C rational congruence values 9. C rational congruence queries 10. C grid generator values 11. C grid generator queries51
1. C handles, arguments and successful outcomes PPL-SPEC-001514 C clients shall use the installed <ppl_c.h> declarations with compatible native and GMP libraries. Input handles shall denote live objects of the declared type. Mutable handles shall denote writable objects; a borrowed const handle shall not be modified or deleted. Output addresses shall be non-null and writable. Arrays shall contain their declared number of elements; a zero count shall require no element access. Iterators shall have valid positions in the same live container. Caller synchronization, thread entry and floating-point prerequisites shall follow the native operations.
A nonnegative function result shall have the meaning assigned by its operation: zero status, boolean result, enumeration or flags. Negative results shall denote failures. Successful mathematical results shall preserve the corresponding native operation's exactness, approximation direction, inconclusive outcomes and admitted witnesses. Failed operations shall not imply a completed mathematical result or unspecified rollback. Unless explicitly guaranteed, output parameters shall be used only after success.
-
1. C coefficient ownership, conversion and bounds PPL-SPEC-001523 Coefficient creation shall produce independent caller-owned zero, GMP-integer or copied values. Assignment and conversion to or from initialized mpz_t objects shall preserve the mathematical integer for every admitted value. For checked coefficient profiles, conversion from GMP with an out-of-range value shall report PPL_ARITHMETIC_OVERFLOW. Deletion shall release owned coefficients. The boundedness predicate shall identify the configured coefficient representation. Minimum/maximum queries shall assign bounds and return true for bounded coefficients, and return false without modifying the output for unbounded coefficients. OK shall report the coefficient representation's admitted validity.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C affine expression values and updates PPL-SPEC-001524 Expression construction shall produce independent zero, dimensioned, copied or descriptor-derived native affine expressions. Assignment, coefficient additions, constant additions, expression addition/subtraction and scaling shall have the corresponding native affine meaning and retain native dimension/admission rules. Source handles shall remain valid during operations; owned results shall be independently deletable. Mutations shall not alter an independent source copy.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C affine expression queries PPL-SPEC-001525 Expression dimension and coefficient queries shall assign the corresponding native extent, selected coefficient or constant. Zero tests and validity tests shall return boolean results. Query outputs shall be live writable coefficient objects rather than newly allocated handles. Indexed access shall observe native index admission and virtual zero coefficients where provided.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C linear constraint values PPL-SPEC-001526 Creation shall copy inputs into an independent owned Constraint representing the supplied affine expression compared with zero using the requested supported relation, including strict relations. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. An unsupported relation code shall report PPL_ERROR_INVALID_ARGUMENT. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C linear constraint queries PPL-SPEC-001527 Queries shall report the native Constraint relation type, dimension, variable coefficients and inhomogeneous term. Validity queries shall return a boolean outcome. Coefficient and inhomogeneous-term outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C polyhedral generator values PPL-SPEC-001528 Creation shall copy inputs into an independent owned Generator representing the requested line, ray, point or closure point with the native direction or divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C polyhedral generator queries PPL-SPEC-001529 Queries shall report the native Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or closure point and shall report PPL_ERROR_INVALID_ARGUMENT for a line or ray. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C rational congruence values PPL-SPEC-001530 Creation shall copy inputs into an independent owned Congruence representing the supplied affine expression and modulus, with modulus zero denoting equality and native normalization of nonzero moduli. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C rational congruence queries PPL-SPEC-001531 Queries shall report the native Congruence dimension, variable coefficients, inhomogeneous term and modulus. Validity queries shall return a boolean outcome. Coefficient, inhomogeneous-term and modulus outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C grid generator values PPL-SPEC-001532 Creation shall copy inputs into an independent owned Grid_Generator representing the requested line, parameter or point with the native direction and divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C grid generator queries PPL-SPEC-001533 Queries shall report the native Grid_Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or parameter and shall report PPL_ERROR_INVALID_ARGUMENT for a line. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. Transition encoding and ranking interpretation PPL-SPEC-001506 A single transition input of dimension 2n shall place after-state coordinates x’ in indices 0, …, n − 1 and before-state coordinates x in indices n, …, 2n − 1. An odd dimension shall raise std::invalid_argument. Paired inputs shall have dimensions n and 2n; otherwise they shall raise std::invalid_argument before analysis. The first input shall restrict before states in its own indices 0, …, n − 1; the second shall use the single-input ordering. Their aligned conjunction shall define the analyzed relation. For paired inputs, emptiness of the conjunction shall be determined with strict rows intact before relaxation. If the exact conjunction is empty, the paired Boolean tests shall succeed and the paired witness operations shall return an admissible coefficient point of dimension n + 1.
The input type shall provide supported minimized linear constraints. Numerical guarantees shall concern the rational transition approximation defined by those constraints, with sound positive conclusions for every represented concrete transition. A coefficient point of dimension n + 1 shall encode f(x) = c + ∑iaixi with slopes in indices 0, …, n − 1 and constant c at index n. A ranking argument shall require a finite uniform lower bound and a uniform decrease δ > 0 over transitions. Strict positivity at individual transitions alone shall not replace uniform decrease. Input mathematical values shall remain unchanged. Separate outputs shall not alias one another or the inputs.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. MS termination test outcomes PPL-SPEC-001507 A completed true result shall certify an affine ranking for the analyzed transition approximation under 🔗 1. Transition encoding and ranking interpretation. False shall mean that this test is inconclusive about termination. It shall not mean that the loop has an infinite execution, even for an exact input relation. Single and paired forms shall use the same coordinate convention and preserve input values. Resource or arithmetic exceptions shall not constitute a true result.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. MS affine ranking witnesses PPL-SPEC-001508 On true, the output shall be assigned a point of dimension n + 1 encoding an affine function satisfying the MS nonnegative and unit-decrease ranking obligations over the analyzed approximation. No particular witness shall be selected. On false, no witness value shall be promised and termination shall remain inconclusive. The layout and dimension admission rules in 🔗 1. Transition encoding and ranking interpretation shall apply.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 5. MS affine quasi-ranking spaces1
4. Normalized MS affine ranking spaces PPL-SPEC-001509 The output shall replace its prior value with a closed polyhedron of dimension n + 1 containing exactly the affine coefficient tuples that satisfy f(x) ≥ 0 and f(x) − f(x’) ≥ 1 on every rational transition described by the input constraints. For an empty relation it shall be universe, including an empty conjunction of individually nonempty paired inputs. Strict constraints shall be preserved when establishing that emptiness; for nonempty relations these weak ranking obligations also hold on the closure. An empty output shall mean no normalized affine ranking exists and shall not establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. MS affine quasi-ranking spaces PPL-SPEC-001510 The two distinct outputs shall be closed polyhedra of dimension n + 1. The decreasing space shall contain exactly tuples satisfying f(x) − f(x’) ≥ 1 on every analyzed rational transition, with unrestricted additive constant. The bounded space shall contain exactly tuples satisfying f(x) ≥ 0 on every such before state. It shall use that nonnegative normalization rather than accept every arbitrary finite lower bound.
Their intersection shall equal the normalized MS ranking space. Empty relations shall yield universe in both outputs; the zero function shall always belong to the bounded space. Strict boundaries and paired conjunction emptiness shall be handled as in 🔗 4. Normalized MS affine ranking spaces. Neither an empty decreasing space nor an empty intersection shall establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. PR termination test outcomes PPL-SPEC-001511 A completed true result shall certify an affine ranking with a finite lower bound and uniformly positive decrease over the analyzed transition approximation. For the paired form both obligations apply to the aligned conjunction, including bounds implied by the transition description. False shall be inconclusive about termination. Unit decrease and nonnegative normalization shall not be required for the PR certificate. The coordinate and valid-use rules in 🔗 1. Transition encoding and ranking interpretation shall apply to both the single and paired forms.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. PR affine ranking witnesses PPL-SPEC-001512 On true, the output shall be assigned a point of dimension n + 1 encoding an affine function with a finite uniform lower bound and uniformly positive decrease over the analyzed approximation. Its constant coordinate shall follow 🔗 1. Transition encoding and ranking interpretation; no nonnegative normalization or particular witness shall be required. On false, no output value shall be promised and termination shall remain inconclusive.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
8. PR affine ranking spaces PPL-SPEC-001513 The output shall replace its prior value with an NNC polyhedron of dimension n + 1 describing the affine coefficient tuples with a finite lower bound and a uniform decrease δ > 0 over the rational relation defined by the input constraints. For the paired form both obligations apply to the same aligned conjunction. In particular, the lower bound may follow from the transition description. The additive constant shall be unrestricted. No unit-decrease or nonnegative normalization shall be imposed. For an empty relation the space shall be universe, including empty aligned conjunctions of individually nonempty paired inputs. Strict boundaries shall not be discarded before establishing such emptiness. An empty output shall exclude rankings of this form and shall not establish nontermination.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 3. Unreachable macro diagnostic selection1
1. Fatal unreachable and assertion diagnostics PPL-SPEC-001590 The default library definitions of ppl_unreachable, ppl_unreachable_msg and ppl_assertion_failed shall call abort and shall not return. With ordinary functioning diagnostic output, ppl_unreachable_msg shall first write to std::cerr the file, line, function and supplied latent-fault message; ppl_assertion_failed shall write the same location plus the supplied failed-assertion text. The message-free helper shall add no diagnostic output. Non-null live null-terminated text arguments shall be required. Diagnostic stream failures shall retain the stream's ordinary failure/exception behavior; output failure shall not be interpreted as successful continuation.
Where the build supports weak replacement of these definitions, a client replacement shall retain the declared nonreturning interface and own its replacement behavior. The default abort behavior shall apply when no such replacement is linked.
-
2. Enabled and disabled assertion evaluation PPL-SPEC-001591 With NDEBUG absent, PPL_ASSERT(cond) and PPL_EXPECT(cond) shall evaluate the condition once and invoke the assertion-failure diagnostic when false. An ordinary assertion shall preserve computational weight; the additional weight check enabled by PPL_DEBUG_PPL_ASSERT shall diagnose a weight-changing condition. PPL_ASSERT_HEAVY and PPL_EXPECT_HEAVY shall evaluate their condition once under the assertion weight guard, suppressing instrumentation weight additions according to 🔗 6. Assertion-scope instrumentation suppression. A true assertion shall continue normally. A thrown condition exception shall propagate, with the heavy guard's assertion-state restoration on scope exit. Direct mutations of the weight variable shall retain their ordinary effects; the guard shall not provide numerical rollback.
With NDEBUG defined, all four macros shall omit condition evaluation, including its side effects. Macro use shall provide a condition meaningful in an enabled build and satisfy the shared-weight synchronization conditions of the selected runtime profile.
-
3. Unreachable macro diagnostic selection PPL-SPEC-001592 PPL_UNREACHABLE_MSG(msg) shall invoke the message-bearing unreachable helper when NDEBUG is absent, supplying the macro invocation's file, line and function. With NDEBUG defined, it shall invoke the message-free helper and shall not evaluate the message expression. PPL_UNREACHABLE shall supply the literal message unreachable in an enabled build. Neither macro shall continue through the default helper. The helper and client-replacement conditions of 🔗 1. Fatal unreachable and assertion diagnostics shall apply.
-
4. Containment queries on independent value copies PPL-SPEC-001593 copy_contains(x,y) shall invoke contains on its by-value argument copies and return that query's Boolean result. The type shall provide value copies on which contains can operate without mutating either original or shared caller-owned storage. Under that precondition, the helper shall preserve the two original objects, including mutable representation caches. The type's copying and containment contracts shall otherwise apply. Copy or query exceptions may propagate; argument-copy resources shall be released during normal completion and unwinding. The template shall require valid copyable argument values and the corresponding contains operation, plus the type's initialization, numerical and synchronization prerequisites.
-
Incoming links from: 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image2
1. Rational affine image of one coordinate PPL-SPEC-001111 For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with a bounded-difference shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = xj + c , including self translation, shall give the exact image. Other affine expressions may require a conservative bounded-difference enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate PPL-SPEC-001112 With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
For xk : = xj + c , the post-state constraints shall be substituted using that expression. With exact rational boundary arithmetic, both self translation and distinct-coordinate copy plus translation shall give the exact bounded-difference preimage; in the distinct-coordinate case the pre-state xk shall be free. Rounded profiles shall preserve the corresponding outward substitutions and consistency checks. Other transformations shall give sound containing shapes; they need not compute the least bounded-difference enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
3. Single-coordinate generalized affine image PPL-SPEC-001113 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
4. Single-coordinate generalized affine preimage PPL-SPEC-001114 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast bounded-difference enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image PPL-SPEC-001115 Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound bounded-difference enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as a bounded-difference expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
6. Expression-left generalized affine preimage PPL-SPEC-001116 With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast bounded-difference enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image PPL-SPEC-001117 For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
8. Single-coordinate bounded affine preimage PPL-SPEC-001118 With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast bounded-difference enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
9. Native interval-affine image PPL-SPEC-001119 For a supported native floating-point boundary type T , a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B , affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted difference-bound language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
-
1. Threshold bounded-difference extrapolation and precision-sensitive tokens PPL-SPEC-001120 Let Y be the argument's entry set and X the receiver's entry set, with Y ⊆ X. The explicit-iterator CC76_extrapolation_assign shall produce a bounded-difference enclosure of X, preserving the ambient dimension. An empty argument shall leave the receiver's represented set unchanged. Empty and universe in zero dimensions shall retain their distinct meanings; self-aliasing shall preserve the represented set.
For nonempty operands under unbounded exact arithmetic, let bZ(v) = sup{v⋅p ∣ p ∈ Z} for each unary or coordinate-difference normal v. With no available delay token, a stable finite bound bX(v) = bY(v) shall be retained. An increasing bound bX(v) > bY(v) shall move to the least supplied threshold not below bX(v), or become unbounded when there is no such threshold. An already unbounded bound shall remain unbounded. The result shall be the conjunction of these closed upper inequalities. General closed bounded-difference iterations of this extrapolation shall not carry a finite-stabilization guarantee.
Other supported profiles shall apply this comparison-and-threshold rule to an outward closed bound representation preserving the entry sets under [LINK: PPL-SPEC-001056]. Assigning a selected threshold shall round outward in the selected profile. This shall not exclude any point of X; rounded closure shall not be required to supply exact support values.
The half-open threshold range shall use readable multipass forward iterators. Its values shall be finite, sorted in nondecreasing numerical order and stable throughout the call. Empty ranges and duplicate values shall be admitted. Comparison with the selected coefficient type and outward assignment to that type shall satisfy their numerical contracts. The range shall not borrow storage invalidated or modified by the call.
A null token pointer or a zero counter shall select the undelayed result. With a positive counter the receiver's represented set shall remain X; the counter shall decrease by exactly one if the corresponding undelayed result strictly enlarges X, and otherwise remain unchanged. The counter shall be a live, separately owned, externally synchronized writable unsigned object. The argument, range and any distinct source value shall remain unchanged.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 6. Limited threshold bounded-difference extrapolation1
2. Default bounded-difference stop points PPL-SPEC-001121 CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001120] with the ordered mathematical stop points − 2, − 1, 0, 1, 2, interpreted through the selected profile's outward bound operations. Stop points already exactly representable shall retain their values. A stop point below every admitted finite bound shall not create an extra restriction.
The mathematical operand order, compatible dimensions, source preservation, aliases, empty/zero-dimensional cases and precision-sensitive token rule shall be those of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens. A positive token counter shall retain the receiver's entry set and shall be decremented only for an undelayed strict enlargement. Sharing the default stop-point objects among calls shall not change represented results or token decisions.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 4. Limited semantic bounded-difference extrapolation1
3. Semantic bounded-difference widening PPL-SPEC-001122 With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall produce a bounded-difference set containing both. An empty argument, a singleton argument, or an increase of affine dimension from Y to X shall retain X.
For equal positive affine dimension under unbounded exact arithmetic, the undelayed result shall be the semantic standard widening: choose a nonredundant bounded-difference inequality description of Y, retain the inequalities satisfied by all points of X, and conjoin them. Equivalent descriptions, redundant bounds, closure/reduction histories and choices of an irredundant basis shall not change the represented result. This shall not require a least widening or strict precision loss at every call. Supported rounded arithmetic shall preserve inclusion and the stated semantic and convergence obligations under 🔗 1. Bounded-difference values, numerical profiles and valid use.
The token rule shall be the precision-sensitive rule of [LINK: PPL-SPEC-001120], using this operator's undelayed result. Self-aliasing shall retain the entry set and not consume a token.
For a fixed dimension and profile, an ascending iteration shall first enclose the preceding widened result and the next input, then apply this operator with that enclosure as receiver and the preceding result as argument. Under its inclusion and arithmetic prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve this guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
4. Limited semantic bounded-difference extrapolation PPL-SPEC-001123 For Y ⊆ X, limited_BHMZ05_extrapolation_assign shall combine the semantic widening of 🔗 3. Semantic bounded-difference widening with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be the delayed or undelayed base widening result, with its token decision made before applying L. The result shall denote W∩L; it shall contain X and be contained in W. Positive available tokens shall therefore retain X, while their consumption shall follow the undelayed base widening rather than the final limited result.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set without consuming a token. A distinct argument and the supplied system shall retain their represented values; self-aliasing shall be admitted.
A fixed finite limiting system, fixed dimension/profile, admitted exact comparisons and normalization, and a finite unreplenished token budget shall retain finite stabilization in the prescribed ascending recurrence. Arbitrarily replacing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
5. Bounded-difference narrowing and descending operand order PPL-SPEC-001124 Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall replace the receiver with a shape representing R, satisfying X ⊆ R ⊆ Y, preserving dimension and coordinate identities. An empty receiver shall stay empty, and zero-dimensional values and self-aliasing shall preserve their entry meanings.
For nonempty operands under unbounded exact arithmetic, use the primitive unary/difference support bounds bX(v) and bY(v) defined in 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite, and otherwise bX(v). Thus a finite previous bound shall be retained even if the current bound is tighter; an infinite previous bound shall allow recovery of the current bound.
Supported rounded profiles shall use their outward closed profile bounds while preserving both set inclusions. The result shall not be required to retain every improvement of the current iterate. For fixed dimension under unbounded exact arithmetic, descending iteration using each result as the next previous argument shall stabilize after finitely many strict changes: a strict narrowing step must introduce a previously absent finite primitive bound. Finite-carrier profiles shall retain stabilization under the same inclusion and arithmetic conditions.
The order of receiver and argument shall follow the descending inclusion above, rather than the ascending inclusion used by widening. A distinct previous argument shall retain its represented value.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
6. Limited threshold bounded-difference extrapolation PPL-SPEC-001125 For Y ⊆ X, limited_CC76_extrapolation_assign shall combine the default threshold extrapolation of 🔗 2. Default bounded-difference stop points with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be that default extrapolation, including its token decision before applying the limits. The result shall denote W∩L, containing X and contained in W. Positive tokens shall retain X and be consumed according to the undelayed base extrapolation, even if limiting would restore the lost information.
An empty argument, an empty receiver or zero-dimensional operands shall retain the entry receiver set and counter. The supplied system and distinct argument shall retain their values; self-aliasing shall be admitted. This operation remains a relational extrapolation without a general finite-stabilization guarantee for arbitrary closed-shape iterations.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
Incoming link from: 8. Polyhedral limited extrapolation of bounded-difference values1
7. Polyhedral standard widening of bounded-difference values PPL-SPEC-001126 For Y ⊆ X, H79_widening_assign shall compute the standard H79 widening of the closed polyhedra denoted by the entry operands and convert the result to the selected bounded-difference profile. The conversion shall follow 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. widening_assign shall have the same mathematical result and token behavior.
The result shall contain both entry sets. With exact representable arithmetic, the standard widening result for bounded-difference inputs shall retain its mathematical meaning. Supported rounded conversion shall be conservative under 🔗 1. Bounded-difference values, numerical profiles and valid use. On nonempty equal-affine-dimension operands, the standard polyhedral result shall be characterized by retaining from an irredundant inequality description of Y precisely the inequalities satisfied throughout X.
The precision-sensitive token policy of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens shall be applied to the intermediate polyhedral widening before conversion. A positive counter shall retain the receiver's entry set and decrease only for a strict undelayed widening enlargement. Empty previous arguments, self-aliasing and zero-dimensional values shall retain their usual upper-bound meanings.
For fixed dimension/profile and a finite unreplenished initial token budget, the prescribed ascending recurrence shall stabilize under its mathematical inclusion and arithmetic prerequisites. Convergence shall not depend on a redundant source description or on when closure/export queries were performed. No least-widening or strict-progress requirement shall be inferred.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
8. Polyhedral limited extrapolation of bounded-difference values PPL-SPEC-001127 For Y ⊆ X, limited_H79_extrapolation_assign shall first interpret the entry sets as closed polyhedra, compute polyhedral limited H79 extrapolation using the supplied constraint system, and convert that result under 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The system dimension shall not exceed the common operand dimension and shall contain no strict row; invalid dimensions or strictness shall throw std::invalid_argument before changing receiver or counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional inputs, every supplied non-strict constraint satisfied by the entry receiver shall be eligible for the intermediate polyhedral intersection. General linear forms shall be admitted; selection shall not be restricted to unary and coordinate-difference rows. The intermediate result shall be the base H79 widening intersected with the selected constraints. Its token decision shall precede that intersection and follow 🔗 7. Polyhedral standard widening of bounded-difference values.
The final bounded-difference result shall contain X. Facets outside the domain and outward scalar conversion may prevent that result from satisfying the original limiting constraints. For example, a selected two-variable sum can influence the intermediate polyhedron even though it is absent from the final template description.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set and counter. A distinct argument and the supplied system shall preserve their values, and self-aliasing shall be admitted. A fixed finite limiting system and finite unreplenished token budget shall preserve finite stabilization under the standard polyhedral widening's ascending recurrence and arithmetic prerequisites. Arbitrarily changing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
-
1. Closed bounded-difference support hull of geometric generators PPL-SPEC-001072 BD_Shape(gs) shall give the least target-profile bounded-difference enclosure of the convex set generated by gs. The constructor shall close finite excluded boundaries: points and closure points shall both contribute their actual rational coordinates to support extrema. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so when that scalar product is nonzero. A zero directional product shall not remove a finite bound.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Rational point and closure-point divisors, zero trailing coordinates and the distinction between rays and lines shall retain the meanings in 🔗 1. Generator kinds and numerical prerequisites and [LINK: PPL-SPEC-000182].
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
2. Complexity-sensitive bounded-difference conversion from polyhedra PPL-SPEC-001073 BD_Shape(ph,complexity) shall contain the source polyhedron for ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY; other complexity codes shall be outside the admitted interface.
ANY_COMPLEXITY shall give the least target-profile bounded-difference enclosure, including exact detection of an empty source. Strict source boundaries shall become included whenever they determine finite limiting bounds of the closed result.
SIMPLEX_COMPLEXITY shall give the same exact primitive suprema for a nonempty source, with target bounds converted outward according to the selected profile. It need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
POLYNOMIAL_COMPLEXITY may use conservative bounded-difference extraction and propagation from source constraints. It shall preserve containment, without a general best-enclosure, exact-emptiness or particular fixed-point iteration guarantee. Equivalent source cache and representation histories may produce different allowed conservative results. Every option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
Incoming link from: 12. Certified finite scalar embeddings1
3. Best bounded-difference enclosure of Cartesian boxes PPL-SPEC-001074 BD_Shape(box,complexity) shall give the least target-profile bounded-difference enclosure containing the Cartesian product represented by box. The result shall be closed: a finite open interval endpoint may determine an included limiting bound.
The exact supremum of a difference xi − xj shall combine the source upper endpoint of coordinate i and lower endpoint of coordinate j before target-profile rounding. An unbounded contributing endpoint shall leave that normal unrestricted. Empty factors shall give empty in the original ambient dimension. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
4. Best bounded-difference enclosure of rational grids PPL-SPEC-001075 BD_Shape(grid,complexity) shall give the least target-profile bounded-difference enclosure of the entire rational grid. It shall preserve every fixed unary or difference affine value, including values implied by the full congruence system. Equivalent source descriptions shall give mathematically equivalent results in the same target profile.
A supported normal shall have a finite bound exactly when it annihilates every real line, integer parameter and difference between source base points. In that case its value shall equal its value at any source base point, and both signed bounds shall be converted to the target profile. A nonzero response to an integer parameter shall make the normal unbounded in both directions; a periodic restriction shall not become a finite interval or an integer-only coordinate carrier. Empty grids shall remain empty. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
5. Best bounded-difference enclosure of octagonal shapes PPL-SPEC-001076 BD_Shape(os,complexity) shall give the least target-profile bounded-difference enclosure of the set represented by octagon. Unary and difference suprema shall include consequences of signed-sum constraints and their combinations. Nonempty source sets shall not lose an admitted supported relation through a change in source description or normalization history.
The constructor shall preserve empty and zero-dimensional meanings and shall convert finite bounds outward to the target profile. The source and target numerical profiles may differ. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
-
1. Unrestricted bounded-difference coordinate extension PPL-SPEC-001102 add_space_dimensions_and_embed(m) shall change an entry value X ⊆ ℝn into exactly X×ℝm in dimension n + m. Original coordinates shall keep their indices and relationships. The fresh coordinates shall have indices n, …, n + m − 1 and be unrestricted; no fresh-to-original or fresh-to-fresh equality shall be imposed. Empty input shall remain empty in the new ambient dimension. Zero-dimensional universe shall extend to universe. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include counts whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive extension into a successful smaller one.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
-
2. Zero-fixed bounded-difference coordinate extension PPL-SPEC-001103 add_space_dimensions_and_project(m) shall change an entry value X ⊆ ℝn into exactly X×{0}m in dimension n + m. Original coordinates shall keep their indices and relationships. Every fresh coordinate, with index n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the new dimension; zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include a mathematical sum outside dimension_type's range, without accepting its wrapped value.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
-
3. Ordered Cartesian concatenation of bounded-difference values PPL-SPEC-001104 concatenate_assign(other) shall replace an entry value X ⊆ ℝn with exactly X×Y ⊆ ℝn + m, where Y ⊆ ℝm is other's entry value. The first n coordinates shall belong to X, followed by Y's coordinates in their original order. Cross-block consequences shall follow from Cartesian independence, rather than identifying coordinates with equal indices in the two operands.
An empty operand shall give empty in dimension n + m. Zero-dimensional universe shall be an identity on either side; zero-dimensional empty shall be an annihilator while retaining the sum dimension. Self concatenation shall use two independent copies of the entry value. A requested sum dimension above max_space_dimension() shall throw std::length_error.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. A distinct other shall retain its represented entry value; logically const cache normalization may change its storage. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
Incoming link from: 5. Injective partial remapping of bounded-difference coordinates1
4. Existential bounded-difference coordinate removal PPL-SPEC-001105 remove_space_dimensions(vars) shall existentially remove exactly the entry coordinates in vars. Remaining coordinates shall be compacted in ascending original-index order. remove_higher_space_dimensions(k) shall existentially remove the suffix with indices k, …, n − 1, retaining the original prefix order. Removal shall retain all implied relations among survivors, including relations whose proof uses removed coordinates.
With exact computational arithmetic, both operations shall give the exact existential projection, which is bounded-difference representable. Rounded computational profiles shall give a sound projection with the closure precision admitted by 🔗 1. Bounded-difference values, numerical profiles and valid use. Removing no coordinates shall preserve the entry value; removing every coordinate shall give zero-dimensional universe exactly when the entry value is nonempty, otherwise zero-dimensional empty. Empty inputs shall retain emptiness in the reduced dimension.
An element of vars outside the entry dimension, or k greater than that dimension, shall throw std::invalid_argument. Empty selections and a suffix length of zero shall also apply to zero-dimensional values.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variables_Set shall retain its own valid-use contract and shall remain unchanged. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
5. Injective partial remapping of bounded-difference coordinates PPL-SPEC-001106 map_space_dimensions(mapping) shall existentially discard every entry coordinate outside the mapping domain and place each surviving coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from the entry indices 0, …, n − 1, with image exactly 0, …, m − 1 for some m ≤ n. The result shall have dimension m; an empty mapping shall project to the zero-dimensional value.
With exact computational arithmetic, the result shall equal the projected and relabeled entry set. Rounded profiles shall retain the projection precision of 🔗 4. Existential bounded-difference coordinate removal. Empty and universe values shall retain those meanings in the mapped dimension. An identity mapping shall preserve the value; a permutation shall retain all renamed relations.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. A zero-dimensional input shall remain unchanged and require no mapping query; mapping-value restrictions shall apply only to positive-dimensional receivers. Otherwise has_empty_codomain() shall be queried first; when true, neither remaining query shall be called. When false, the maximum shall be queried before mappings are consumed. Queries shall describe one stable mapping throughout the call. No specific number or order of individual maps queries shall be required. Violating injectivity, source bounds, contiguous image or query consistency shall be outside the admitted interface.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied mapping shall remain live and describe a stable partial function. Exceptions escaping its queries shall propagate. After a query exception, destruction shall release owned storage, and assigning a complete valid value to the destination shall be supported before further geometric use. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
6. Bounded-difference coordinate expansion by independent fibers PPL-SPEC-001107 For an existing coordinate v < n, expand_space_dimension(var,m) shall append m coordinates in positions n, …, n + m − 1 and retain original coordinate positions. Let X ⊆ ℝn be the entry set and let u[v ← a] denote replacing coordinate v of the old-coordinate prefix of u by a. The declared bounded-difference result shall be the independent-fiber relation
{u ∈ ℝn + m ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.Thus every replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Neither equality with the original selected coordinate nor equality among replicas shall be imposed unless implied by those restrictions. This result shall contain the generic common-replica coordinate-expansion relation of 🔗 2. Concatenation, coordinate expansion and folding. Each new coordinate shall have independently owned storage.
The relation above is itself bounded-difference representable. Exact copying of admitted entry bounds shall preserve it; any delegated computational rounding shall retain the supported numerical guarantees of [LINK: PPL-SPEC-001056]. Empty input shall remain empty. Adding zero replicas shall preserve the value after checking that var is an existing coordinate. An invalid coordinate shall throw std::invalid_argument even for zero replicas or empty input. A final dimension above max_space_dimension() shall throw std::length_error.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable shall retain its own valid-use contract. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
7. Alternative-coordinate folding of bounded-difference values PPL-SPEC-001108 fold_space_dimensions(vars,dest) shall combine the alternatives obtained by keeping the original destination value or replacing it by the value of any entry coordinate in vars, then remove every folded coordinate. Surviving indices, including the destination's new index, shall be compacted in ascending original order. Other surviving coordinates shall keep their entry meanings within each alternative.
With exact computational arithmetic, the result shall be the least bounded-difference enclosure of that union of alternatives. In particular, its unary and difference bounds shall be the corresponding suprema over all alternatives. Rounded profiles shall retain a sound enclosure and their admitted closure and numerical precision under 🔗 1. Bounded-difference values, numerical profiles and valid use. The union need not be convex or itself bounded-difference representable. Empty input shall remain empty in the reduced dimension. Empty vars shall preserve the value after validating the destination coordinate.
The destination and every folded coordinate shall be inside the entry space, and the destination shall not belong to vars. An invalid coordinate or selection containing the destination shall throw std::invalid_argument. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable and Variables_Set shall retain their own valid-use contracts. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
8. Extension of bounded-difference redundancy bitmaps PPL-SPEC-001655 Implementation::extend_bd_redundancy shall require a live valid square Bit_Matrix with n rows and new_rows representing N ≥ n in dimension_type. For an extent supported by the matrix row and bit-index types, it shall return true, set both dimensions to N, preserve each entry (i, j) with i, j < n, and set every other entry to one. A one bit denotes a redundant bound. No coefficient arithmetic shall be performed. An unsupported extent shall return false without changing the bitmap.
Allocation failures may propagate and leave a partially extended bitmap; owned resources shall remain safely destructible, without a rollback or valid-cache guarantee. The caller shall clear the reduction certificate before a potentially failing extension and restore it only on success. Initialization, lifetime and synchronized access shall follow the bitmap and bounded-difference value contracts.
-
1. Rectilinear distance of bounded-difference closed-bound tables PPL-SPEC-001142 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three rectilinear_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be ∑i ≠ jdij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 17. Rectilinear distance between bound-entry arrays.
-
Incoming link from: 4. Bounded-difference distance normalization, boundaries and workspaces1
2. Euclidean distance of bounded-difference closed-bound tables PPL-SPEC-001143 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three euclidean_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be √(∑i ≠ jd 2ij), with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 18. Euclidean distance between bound-entry arrays.
Rational square-root enclosure shall retain 🔗 2. Finite rational square root at the selected irrational precision and the calling precision of 🔗 3. Selection and ownership of irrational rational precision, which shall remain stable throughout the dependent call.
-
3. Maximum-coordinate distance of bounded-difference closed-bound tables PPL-SPEC-001144 Under 🔗 4. Bounded-difference distance normalization, boundaries and workspaces, the three l_infinity_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For finite corresponding differences, the exact distance shall be maxi ≠ jdij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001145].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 19. Maximum-coordinate distance between bound-entry arrays.
-
4. Bounded-difference distance normalization, boundaries and workspaces PPL-SPEC-001145 For a nonempty shape of ambient dimension n, let z0 = 0 and zi = xi − 1 for 1 ≤ i ≤ n. Position (i, j) of its square bound table shall describe zj − zi ≤ bij. A positive-infinite bound shall impose no restriction. Distance tuples shall include every ordered off-diagonal position. Matching positive-infinite diagonal sentinels shall contribute zero.
The selected tables shall be those used after the call's required shortest-path normalization. When closure arithmetic is exact under its range prerequisites, finite entries shall be the primitive suprema of the represented set, with infinity for unbounded forms. Rounded or saturating closure shall retain 🔗 1. Bounded-difference values, numerical profiles and valid use; its tables need not be canonical, idempotent or invariant across alternative source descriptions. The distance shall be computed from the selected tables, as retained in compatible post-call records of 🔗 2. Reloadable bounded-difference record export, rather than being a point-set or Hausdorff distance. Normalization shall preserve each source's represented set and ambient dimension.
Different ambient dimensions shall return false before modifying the result or supplied workspaces. False shall assign no distance for that incompatible pair. Dimension-compatible two-empty shapes shall have distance zero; exactly one empty shape shall have positive-infinite distance. In dimension zero, two universe shapes shall also have distance zero. These rules shall apply to logically empty sources whose emptiness has not yet been classified. Equal dimensions shall return true on successful numerical completion, with the value specified by 🔗 1. Rectilinear distance of bounded-difference closed-bound tables, [LINK: PPL-SPEC-001143] or 🔗 3. Maximum-coordinate distance of bounded-difference closed-bound tables.
The overload without an explicit temporary type shall use three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar Temp argument shall instead use three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied-workspace overload shall use the actual type of its three references, which may be an admitted raw or checked numeric type. The supported operation, rounding, representation and overlap conditions of 🔗 20. Distance scratch storage, admissible overlaps and numeric conditions shall apply to the selected metric specializations, subject to the public source-storage condition below.
Calls evaluating finite entry differences shall use ROUND_DOWN or ROUND_UP, optionally combined with ROUND_STRICT_RELATION. They shall not require finite source conversions to be exact merely to establish the requested directed bound. Paths performing only exact zero or positive-infinity assignments shall admit directions valid for those selected scalar assignments. An output profile shall support positive infinity whenever that outcome is reachable. Every conversion, difference, sum, square, square root and final assignment shall satisfy its selected backend's arithmetic, range, numerical-failure, resource, initialization and nontrapping prerequisites. Native arithmetic shall retain configured support and the initialized caller-owned FPU conditions; the call shall preserve caller rounding. Rational square-root precision shall remain stable throughout a dependent call.
Sources shall be live valid objects under 🔗 1. Bounded-difference values, numerical profiles and valid use. The same shape may be supplied for both operands. The three mutable supplied workspaces shall be live, pairwise distinct, and disjoint from source-owned storage. Their entry values need not be initialized when overwritten before reading. The result shall have live assignable storage disjoint from source-owned storage, but may overlap any one supplied workspace or its compatible underlying raw storage. When the result overlaps a workspace, its mathematical value shall still use source values on entry. No workspace entry value shall be required when overwritten before reading. Callers shall preserve object/storage lifetimes and synchronize source access, including logically const cache updates.
Numerical and recoverable resource failures shall retain their selected propagation channels and permitted partial result/workspace states; no aggregate rollback guarantee shall be inferred. Discarded owned temporaries shall be released, while reusable numerical cache storage shall retain its own lifetime and cleanup contract. Ordinary dimension mismatch shall retain the stronger unchanged-output/workspace guarantee above. Otherwise valid calls shall require no additional library initialization beyond their selected representation, numerical and thread runtime prerequisites.
-
1. Bounded-difference time evolution by nonnegative rates PPL-SPEC-001128 Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least bounded-difference enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each unary or difference normal v shall retain the entry support supp ∈ Xv⋅p precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated bounded-difference abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
Incoming link from: 3. Selected-coordinate integer restriction of bounded-difference values1
2. Integer-point restriction on every bounded-difference coordinate PPL-SPEC-001129 For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce a bounded-difference set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. An exact rational description with integral unary and difference bounds already equals the convex hull of its integer points and shall therefore retain its represented set under these inclusions.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
3. Selected-coordinate integer restriction of bounded-difference values PPL-SPEC-001130 Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce a bounded-difference set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every bounded-difference coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
4. Bounded-integer wrapping and guarded evolution of difference shapes PPL-SPEC-001131 wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a bounded-difference abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed the selection dimension. Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
-
5. Topological closure identity for bounded-difference values PPL-SPEC-001132 topological_closure_assign shall preserve the represented set and ambient dimension of every valid bounded-difference value. These values are already topologically closed under 🔗 1. Bounded-difference values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall not be interpreted as a demand to run graph shortest-path closure or to change a graph-normalization cache.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
-
Incoming link from: 2. Generalized interval-linear-form comparisons1
1. Conservative interval-linear-form inequality refinement PPL-SPEC-001133 For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or coordinate-difference inequality. If the required constant endpoint subtraction and any normalization by 2 are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. This precision clause shall not apply to opposite-sign coefficients on distinct coordinates or to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
2. Generalized interval-linear-form comparisons PPL-SPEC-001134 For the form value sets and numerical admission of 🔗 1. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
3. Refinement of a floating interval abstract store PPL-SPEC-001135 For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 4. Box conversion from bounded-difference shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 4. Box conversion from bounded-difference shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 4. Box conversion from bounded-difference shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
-
4. Export of unary constraints through a destination protocol PPL-SPEC-001136 For a destination whose dimension is at least the source dimension, export_interval_constraints(dest) shall restrict the corresponding coordinates using the receiver's unary lower and upper consequences. The destination's remaining coordinates and ambient dimension shall be preserved. Source closure may expose implied unary constraints but shall preserve its represented set.
If D is the entry destination set and H(X) the Cartesian hull of the source's entry set, the completed destination shall contain D∩(H(X)×Rm − n) and be contained in D, where n and m are the source and destination dimensions. When source closure arithmetic and destination restrictions are exact, including exact unbounded rational bounds, the result shall equal that intersection. Rounded closure or destination arithmetic may lose precision; no best-unary-bound promise shall follow in those profiles.
An empty source shall call the destination's emptying operation. A zero-dimensional universe shall contribute no restrictions. Unbounded coordinate sides shall contribute no finite restriction. Each restriction callback shall return false exactly when its destination is empty; a false result shall terminate further restriction calls. No fixed callback count or coordinate order is promised. A destination of smaller dimension shall cause std::invalid_argument before any restrictive callback.
The destination protocol shall implement the indicated conjunctions and preserve coordinates not selected by a callback. Its callbacks shall not invalidate borrowed objects or modify the source being traversed. Callback exceptions may leave a partially restricted destination, with the states and ownership guaranteed by that destination's operations.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The destination and its callback environment shall remain live for the call. Discarded owned temporaries shall be released on reported failure.
-
1. Addition of admitted bounded-difference constraints PPL-SPEC-001090 add_constraint(c) shall conjoin the admitted closed constraint with the receiver. Admitted nonconstant forms shall be unary bounds or coordinate-difference bounds, including their equality forms with any common nonzero integral scale and sign. Constant tautologies shall have no effect and constant falsehoods shall make the result empty. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument; a constant strict tautology or falsehood shall retain its logical meaning.
For each primitive upper inequality, normalization shall divide by the positive coefficient magnitude and choose the least admitted target bound no smaller than the exact rational bound. Equality shall contribute both opposite inequalities with their respective outward bounds. The result shall denote the intersection of the entry set with these normalized target inequalities; for exact representable bounds this shall be the concrete conjunction. Applying outward normalization shall not exclude any entry point satisfying the original constraint.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted constraints in the system, with the same normalization and validation rules. Source dimensions at most the receiver dimension shall be admitted; omitted trailing coordinates shall have zero coefficients. A larger single-descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set. Rejection of an unsupported single descriptor shall also preserve the receiver's represented set. A system operation that encounters an unsupported descriptor need not roll back preceding additions.
The copying overloads shall preserve their source descriptors. After the recycling overload, the only required property of cs shall be safe destruction, including after an exception. Result storage shall not borrow the input system. These rules shall apply to empty receivers as well as nonempty receivers.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
-
2. Addition of bounded-difference congruences PPL-SPEC-001091 add_congruence(cg) shall admit congruence equalities whose linear form is a unary or coordinate-difference equality, together with constant tautologies and falsehoods. An admitted equality shall conjoin the two opposite outward-normalized inequalities described in 🔗 1. Addition of admitted bounded-difference constraints. A tautology shall have no effect; a falsehood shall make the result empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument. Periodic spacing shall not be silently removed by an adding operation. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these admission and conjunction rules to the whole system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set; smaller dimensions shall use zero trailing coefficients. Rejection of an unsupported single congruence shall preserve the entry set. A system operation need not undo earlier admitted additions if a later congruence is rejected.
The copying overloads shall preserve their source values. After a recycling call, the source system need only remain safely destructible, including after an exception. Result storage shall own its value independently of the source. Admission and dimension checks shall apply to empty receivers too.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
-
3. Conservative constraint refinement PPL-SPEC-001092 refine_with_constraint(c) and refine_with_constraints(cs) shall refine the receiver using supported unary and coordinate-difference constraints. Supported nonconstant strict inequalities shall first be relaxed to their non-strict counterparts. The resulting supported inequalities and equalities shall be normalized outward as in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant linear forms shall be ignored.
Constant descriptors shall retain their exact logical meaning: a false constant constraint, including a strict zero boundary, shall make the result empty; a tautology shall have no effect. Empty receivers shall remain empty. Relaxing a strict boundary shall not be interpreted as an exact test of the original conjunction's feasibility.
A completed result shall contain every entry point satisfying the input descriptors and shall equal the conjunction of the entry set with the supported, relaxed, outward-normalized descriptors. Copying refinement shall preserve the input descriptor or system. A larger descriptor or system dimension shall throw std::invalid_argument without changing the entry set; zero trailing coordinates shall be admitted for smaller source dimensions.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
4. Conservative congruence refinement PPL-SPEC-001093 refine_with_congruence(cg) and refine_with_congruences(cgs) shall conjoin supported unary or coordinate-difference equalities, with the outward scalar normalization in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant equalities shall be ignored.
An inconsistent proper congruence shall make the result empty. Every other proper congruence shall have no effect; in particular, periodic spacing shall not be interpreted as an equality. A constant equality shall retain its exact tautology or falsehood meaning. An empty receiver shall remain empty.
A completed result shall contain all entry points satisfying the supplied congruences, and shall denote precisely the entry set conjoined with the admitted outward-normalized equalities, unless a false constant descriptor makes it empty. The input descriptors shall preserve their values. Source dimensions at most the receiver dimension shall be admitted with zero trailing coordinates; larger dimensions shall throw std::invalid_argument without changing the receiver's represented set.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
5. Forgetting one coordinate without removing it PPL-SPEC-001094 var shall be a live valid Variable satisfying 🔗 2. Variable value identity and lifetime operations and 🔗 3. Variable construction, coordinate queries and bounds.
unconstrain(var) shall forget the value of the selected coordinate while preserving ambient dimension and every coordinate's identity. If the entry set is X ⊆ ℝn and var denotes coordinate i, the concrete cylindrification shall be
{z ∈ ℝn ∣ ∃x ∈ X : ∀j ≠ i, zj = xj}.With exact rational or integral arithmetic, the result shall denote this set exactly. A profile whose computations round may produce a containing bounded-difference enclosure. The operation shall retain the consequences among unselected coordinates that are required by its precision guarantee; merely deleting input rows mentioning var is insufficient.
Empty shall remain empty. A valid selected coordinate of a nonempty set shall become unrestricted rather than being assigned zero or removed. var shall be below space_dimension(); otherwise std::invalid_argument shall be thrown without changing the receiver's represented set.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
6. Forgetting a coordinate set simultaneously PPL-SPEC-001095 vars shall be a live coordinate-valid Variables_Set satisfying [LINK: PPL-SPEC-000021] and 🔗 4. Coordinate-set dimension and maximum dimension, and shall remain unmodified throughout the call.
unconstrain(vars) shall forget all selected values, preserving the ambient dimension and coordinate identities. For the selected index set I, its concrete result shall be
{z ∈ ℝn ∣ ∃x ∈ X : ∀j ∉ I, zj = xj}.The profile-specific exactness and containment guarantees of [LINK: PPL-SPEC-001094] shall apply to this simultaneous cylindrification. Input order or repeated insertion of an index into Variables_Set shall not change the result's meaning.
An empty selection shall preserve the represented set, including in zero dimensions. Selecting all coordinates of a nonempty shape shall give universe in the same dimension; an empty shape shall remain empty. Any selected index outside the receiver's dimension shall throw std::invalid_argument before changing its represented set. The selector set shall preserve its value and result storage shall not depend on its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
7. Exact intersection of compatible shapes PPL-SPEC-001096 intersection_assign(y) shall replace the receiver by the exact intersection of its entry set with the entry set of y. This set equality shall hold across the admitted numeric profiles under their arithmetic prerequisites; it shall not be reduced to a containment-only guarantee.
The two ambient dimensions shall be equal; otherwise the call shall throw std::invalid_argument without changing either represented set. Smaller-dimensional operands shall not be implicitly embedded. Empty, universe, zero-dimensional and lower-dimensional operands shall obey set intersection. Self-intersection shall preserve the entry set.
A distinct source y shall retain its represented value, and the result shall own its storage independently of that source. Logically const normalization may change representations while preserving represented sets.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
8. Conservative and exact-arithmetic upper bounds PPL-SPEC-001097 upper_bound_assign(y) shall replace the receiver by a bounded-difference set containing the union of both entry sets. When the computations use exact arithmetic, this shall be the least bounded-difference enclosure of the union. Rounded computations may produce a less precise containing set.
For the exact-arithmetic guarantee, every supported unary or difference normal shall have the greater of the two source suprema as its bound, with an unbounded source normal producing an unbounded result normal. Every finite result bound shall be closed.
Dimensions shall agree; an incompatible operand shall throw std::invalid_argument without changing either set. Empty shall be an identity, universe absorbing, and self-union an identity. Zero-dimensional values shall preserve the empty/universe distinction. A distinct y shall preserve its represented set and result storage shall be independent of its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
9. Certified set-theoretic union PPL-SPEC-001098 upper_bound_assign_if_exact(y) shall return true only when the receiver's completed represented set is exactly the set-theoretic union of the two entry sets. On false, the receiver shall preserve its entry represented set. A distinct y shall preserve its entry set on either outcome. Closure and reduction may change internal representations without changing these values.
For mpq_class and mpz_class boundary types, the operation shall return true if and only if the union is a bounded-difference shape. A bounded integer or native floating profile may return false when it cannot certify exactness, even if the union is representable. Such a false result shall not imply that the union is unrepresentable.
The dimensions shall be equal; mismatch shall throw std::invalid_argument before changing represented sets. Self-union, empty identities, universe and zero-dimensional cases shall satisfy the same exactness rules. A successful receiver shall own its resulting value independently of a distinct source.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
10. Certified integer-point union PPL-SPEC-001099 integer_upper_bound_assign_if_exact(y) shall be available for an integral boundary type T. Its exactness shall concern integer valuations: on true, every integer point in the resulting shape shall belong to at least one entry operand, and every integer point of either operand shall belong to the result. The result shall be the integer upper bound, namely the least rational bounded-difference enclosure containing those input integer points.
With mpz_class boundaries the decision shall be complete: true shall hold exactly when that integer upper bound introduces no additional integer point. A bounded integral profile may return false if it cannot certify exactness. A false result shall preserve the receiver's entry represented set; it shall not certify a missing integer point for an incomplete profile.
This guarantee shall not identify integer-point union with real set-theoretic union. For example, joining the real singletons at zero and one can be exact for integer points while including nonintegral points between them. Dimensions shall agree, with std::invalid_argument on mismatch before changing represented sets. A distinct source shall preserve its entry set, and self-union/empty/zero-dimensional inputs shall retain their mathematical meanings.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
11. Least closed bounded-difference abstraction of subtraction PPL-SPEC-001100 difference_assign(y) shall replace the receiver by the least target-profile bounded-difference enclosure of the set of entry points absent from y. In an unbounded exact rational profile this shall be the least closed bounded-difference hull of the concrete difference. A finite normal supremum shall use the least admitted outward target bound.
The result may retain removed boundary points or fill a gap between surviving components, as required by closure and convex template abstraction. Removing an equality or a boundary shall not be interpreted as removing its closed convex limit points. If the concrete difference is empty, the result shall be empty; self-subtraction shall therefore be empty.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Empty/universe and zero-dimensional operands shall obey the same subtraction-and-enclosure meaning. A distinct source shall preserve its represented set, and result ownership shall be independent of its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
12. Meet-preserving simplification in a context PPL-SPEC-001101 simplify_using_context_assign(y) shall return a bounded-difference simplification R of the entry receiver X using the entry context Y, satisfying
X ⊆ R, R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. Identity shall be an admitted result; a strict enlargement or decrease in constraints shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true result may be inconclusive about nonemptiness.
The context shall preserve its entry represented set when it is distinct from the receiver. Self-aliasing shall obey the same meet-preservation and enlargement clauses using the entry value for both operands. Empty receivers, empty contexts, universe, lower-dimensional and zero-dimensional sets shall be admitted.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Result storage shall remain independent of a distinct context's later lifetime or mutation. Representation-only normalization shall preserve the mathematical entry values.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
-
Incoming link from: 3. Compatible bounded-difference record loading and failure state1
5. BD_Shape<T> internal status signed-keyword loading and rejection PPL-SPEC-001616 ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. BD_Shape
internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. BD_Shape
internal status consistency predicate . A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.The BD loader shall accumulate fields in a local candidate. Lexical rejection, input exceptions and a contradictory ZE marker shall leave the prior word unchanged. After a complete canonical marker/word pair, it shall install that word and return its consistency result; a false consistency result may thus leave inconsistent loaded flags. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. BD_Shape
internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 3. Compatible bounded-difference record loading and failure state. -
1. Human-readable bounded-difference presentation PPL-SPEC-001137 Stream insertion shall write true for a universe shape and false for an empty shape, including their zero-dimensional forms. Otherwise it shall list unary and coordinate-difference constraints in the upper triangular pair order of coordinates 0, …, n, with index 0 denoting the constant origin. Two opposite finite bounds that are additive inverses shall be displayed as one equality; other finite sides shall be displayed as non-strict inequalities. Positive-infinite sides shall not be displayed. Consecutive constraints shall be separated by ", " and no ambient-dimension header shall be inserted.
A unary equality shall use variable = value; an upper unary bound shall use variable <= value. A lower unary bound shall use variable >= value for signed or unbounded coefficients. For unsigned integer coefficients it shall use -variable <= value, retaining the stored nonnegative constant without numerical negation. Difference constraints shall use the orientation giving the selected nonnegative constant where available, retaining the corresponding relation and value. Variable names shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Bound values shall follow the admitted mathematical numeric stream output of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration.
Insertion shall return the supplied stream reference without adding a newline or explicitly flushing it. print() shall deliver the same presentation to the current std::cerr. Display shall preserve the represented set and dimension; its const classification may refresh representation caches. Stream and formatter failures shall retain their applicable state, exception-mask and partial-output behavior. Rendering callbacks shall not mutate or invalidate traversed source objects.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
-
2. Reloadable bounded-difference record export PPL-SPEC-001138 For a valid admitted source, ascii_dump(stream) shall write its status fields, a newline, its square difference-bound matrix record, a newline, and its redundancy-bit matrix record of 🔗 12. ASCII representation and loading. Status fields shall identify the stored ZE, EM, SPC and SPR conditions in that order, using + or - prefixes. The bound-matrix dimension shall be one greater than the ambient dimension, including zero-dimensional shapes. The export shall write the stored redundancy matrix when reduction is certified, and a zero-row, zero-column redundancy matrix otherwise.
The matrix payload and mathematical numeric formatting shall follow 🔗 11. Reloadable ASCII records for admitted bound values, including exact finite native decimal values and admitted positive infinities. Compatible status, matrix, numeric policy, locale and version conventions shall retain enough information for 🔗 3. Compatible bounded-difference record loading and failure state to restore the same mathematical set and ambient dimension. Neither native object bytes nor a floating zero sign is part of this mathematical round-trip guarantee.
Export shall preserve the source value and ownership without requiring an initial emptiness, closure or reduction query. ascii_dump() shall send the same record to the current std::cerr. Output failure shall follow the stream's selected state and exception behavior, retaining partial output and without certifying successful delivery.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 4. BD_Shape
internal status signed-keyword export . -
3. Compatible bounded-difference record loading and failure state PPL-SPEC-001139 For a complete valid record of 🔗 2. Reloadable bounded-difference record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any valid receiver by the recorded ambient dimension and mathematical set. The previous receiver's dimension, emptiness and cache flags shall not affect the result. All serialized status conditions shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.
Status-word rejection, a truncated or rejected bound matrix, or a truncated or rejected redundancy matrix shall return false when the component extractions return normally. An unsupported decoded bound-matrix row count shall return false before resizing or requesting storage for that extent, as specified by 🔗 12. Exact ASCII input, forbidden payloads and failure state. A zero-row bound matrix shall be rejected. When reduction certification is present, its matrix shall have the same row and column counts as the bound matrix. When reduction is uncertified, the loader shall consume the redundancy matrix without retaining its storage. That includes inactive matrices written by earlier compatible PPL versions. Inconsistent serialized status conditions shall be rejected. Numerical payload rejection shall retain 🔗 12. Exact ASCII input, forbidden payloads and failure state. Stream masks, numerical policy and recoverable resource exceptions shall retain their own propagation channels.
The successful restoration guarantee assumes a trusted, complete and dump-compatible record. The loaded matrix, status, and retained closure and reduction information shall satisfy 🔗 5. Bounded-difference representation invariant query. If these checks detect an inconsistency, the loader shall return false in every build. Semantic queries or further shape operations require a complete valid representation.
Rounded or bounded coefficient profiles may discard serialized reduction certification and recheck a serialized closed feasibility cache, preserving the stored matrix's exact represented set. This cache repair shall not alter the semantic meaning or ambient dimension of a compatible record.
A false return or exception may leave replaced status or partially loaded matrices. It shall not promise rollback or a complete mathematical value. The receiver shall retain safely destructible ownership and may be replaced by a complete valid assignment before semantic queries or operations requiring a valid shape. Consumed input shall not be restored, and the library shall not take ownership of the stream.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 5. BD_Shape
internal status signed-keyword loading and rejection . -
4. Owned bounded-difference memory accounting PPL-SPEC-001140 external_memory_in_bytes() shall report the owned external storage of the difference-bound matrix plus that of the redundancy-bit matrix, counting live selected coefficient payloads and retained capacities according to 🔗 14. Matrix container and coefficient memory accounting and 🔗 13. Invariant, ordering and allocated-memory queries. Logically empty or currently inactive cache content shall not make owned allocated storage disappear from the count. Independently owned runtime temporaries, other objects and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(BD_Shape<T>) plus the external count. Sizes shall be those of the selected build/profile and the sum shall fit memory_size_type. The selected live coefficient and bit-row memory hooks shall be well-formed. Both queries shall preserve the source set, dimension, caches, ownership and lifetimes.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Live owned storage shall remain unchanged during either query.
-
Incoming link from: 3. Compatible bounded-difference record loading and failure state1
5. Bounded-difference representation invariant query PPL-SPEC-001141 For a live, well-owned and safely indexable representation whose selected scalar operations are admitted, OK() shall check the matrix's storage and coefficient validity and the status-condition compatibility. Certified empty representations shall retain their inactive-geometric-data admission. A nonempty representation shall reject a stored negative-infinite bound or a diagonal entry other than positive infinity.
For exact unbounded coefficient profiles, certified closure shall be checked against recomputation and certified reduction against the corresponding canonical reduction mask, including rejection of an essential positive- infinite edge. Rounded or bounded profiles shall use the selected exact graph semantic invariant for a certified reduction, without requiring floating closure to be idempotent. A violation of a checked invariant shall return false; passing those checks shall return true. The query shall preserve the receiver's represented set, dimension and ownership.
The query may copy matrices, recompute derived data in temporary objects, and report resource or numerical exceptions through their selected channels. Debug builds may emit invariant-failure diagnostics to std::cerr; no fixed diagnostic wording is part of the result. A true result is not an emptiness, semantic equality or minimal-storage answer. The query shall not be a corruption scanner for arbitrary pointers, broken object lifetimes or non-indexable fabricated storage.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Discarded owned query temporaries shall be released on reported failure.
The internal status contract shall follow 🔗 3. BD_Shape
internal status consistency predicate . -
Incoming links from: 1. Rational affine image of one coordinate 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image 4. Single-coordinate generalized affine preimage 5. Expression-left generalized affine image 6. Expression-left generalized affine preimage 7. Single-coordinate bounded affine image 8. Single-coordinate bounded affine preimage 9. Native interval-affine image 1. Threshold bounded-difference extrapolation and precision-sensitive tokens 2. Default bounded-difference stop points 3. Semantic bounded-difference widening 3. Semantic bounded-difference widening 4. Limited semantic bounded-difference extrapolation 4. Limited semantic bounded-difference extrapolation 5. Bounded-difference narrowing and descending operand order 6. Limited threshold bounded-difference extrapolation 6. Limited threshold bounded-difference extrapolation 7. Polyhedral standard widening of bounded-difference values 7. Polyhedral standard widening of bounded-difference values 8. Polyhedral limited extrapolation of bounded-difference values 1. Closed bounded-difference support hull of geometric generators 2. Complexity-sensitive bounded-difference conversion from polyhedra 3. Best bounded-difference enclosure of Cartesian boxes 4. Best bounded-difference enclosure of rational grids 5. Best bounded-difference enclosure of octagonal shapes 1. Unrestricted bounded-difference coordinate extension 2. Zero-fixed bounded-difference coordinate extension 3. Ordered Cartesian concatenation of bounded-difference values 4. Existential bounded-difference coordinate removal 4. Existential bounded-difference coordinate removal 5. Injective partial remapping of bounded-difference coordinates 6. Bounded-difference coordinate expansion by independent fibers 7. Alternative-coordinate folding of bounded-difference values 7. Alternative-coordinate folding of bounded-difference values 4. Bounded-difference distance normalization, boundaries and workspaces 4. Bounded-difference distance normalization, boundaries and workspaces 1. Bounded-difference time evolution by nonnegative rates 2. Integer-point restriction on every bounded-difference coordinate 3. Selected-coordinate integer restriction of bounded-difference values 4. Bounded-integer wrapping and guarded evolution of difference shapes 5. Topological closure identity for bounded-difference values 1. Conservative interval-linear-form inequality refinement 2. Generalized interval-linear-form comparisons 3. Refinement of a floating interval abstract store 4. Export of unary constraints through a destination protocol 1. Addition of admitted bounded-difference constraints 2. Addition of bounded-difference congruences 3. Conservative constraint refinement 4. Conservative congruence refinement 5. Forgetting one coordinate without removing it 6. Forgetting a coordinate set simultaneously 7. Exact intersection of compatible shapes 8. Conservative and exact-arithmetic upper bounds 9. Certified set-theoretic union 10. Certified integer-point union 11. Least closed bounded-difference abstraction of subtraction 12. Meet-preserving simplification in a context 1. Human-readable bounded-difference presentation 2. Reloadable bounded-difference record export 3. Compatible bounded-difference record loading and failure state 4. Owned bounded-difference memory accounting 5. Bounded-difference representation invariant query 2. Dimensioned empty and universe bounded-difference construction 3. Owned bounded-difference copying, assignment and cleanup 4. Outward conversion between bounded-difference coefficient profiles 5. Whole bounded-difference value exchange 6. Bounded-difference construction from supported constraints 7. Bounded-difference construction from supported congruences 8. Ambient and affine dimension of bounded-difference values 9. Owned constraint and affine-equality exports of bounded-difference values 10. Ordinary classification of bounded-difference values 11. Bounded-difference set relations, equality and compatible hashes 12. Relations between bounded-difference values and linear constraints 13. Relations between bounded-difference values and linear congruences 14. Subsumption of geometric generators by bounded-difference values 15. Affine boundedness, extrema and witnesses on bounded-difference values 16. Constant affine values and zero frequency on bounded-difference sets 10. Native finite affine interval congruence classification79
1. Bounded-difference values, numerical profiles and valid use PPL-SPEC-001056 BD_Shape<T> shall represent a topologically closed subset of the real coordinate space Rn as a finite conjunction of unary inequalities ±xi ≤ c and difference inequalities xi − xj ≤ c, with distinct empty and universe values in every supported ambient dimension. A coordinate absent from all restrictions shall remain unrestricted. Rational bounds shall not change the coordinate carrier into a rational-only or integer-only set.
The coefficient base T shall select the supported bounded integer, supported native floating, GMP integer or GMP rational profile. The exposed coefficient_type_base shall be T; coefficient_type shall additionally represent positive infinity and provide the declared rounding-aware bound operations. A positive-infinite bound shall impose no inequality. Integer-bound profiles shall still describe real points, rather than only integer points. Finite bounds and all intermediate arithmetic shall obey the selected profile's range and rounding prerequisites; an outwardly rounded bound shall not exclude points satisfying the admitted source constraint.
Objects and supplied descriptors shall be live, well formed and externally synchronized. Coordinate identities and the reserved dimension indication shall follow 🔗 1. Coordinate type and reserved dimension index. Descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply where used. Native floating operations shall require their configured support and the initialized rounding environment prescribed by the numerical facilities. Mutation, destruction and operations that may update caches shall not race with another use of the same object.
For profiles whose arithmetic rounds or saturates, shortest-path closure shall preserve the represented set through outward derived bounds without promising canonical, idempotent or maximally precise closure. Guarantees stated for unbounded exact coefficient arithmetic shall remain distinct from allowed rounded approximations.
-
2. Dimensioned empty and universe bounded-difference construction PPL-SPEC-001057 BD_Shape(d,kind) shall construct the specified EMPTY or UNIVERSE value with ambient dimension d. Default construction shall give zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall return the selected profile's structural dimension limit. A requested dimension above that limit shall throw std::length_error before attempting the corresponding matrix storage, including when adding the internal zero coordinate would overflow the dimension type. A dimension within that limit shall remain subject to actual resource availability; the reported limit shall not promise allocation success.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
Incoming links from: 1. Closed bounded-difference support hull of geometric generators 2. Complexity-sensitive bounded-difference conversion from polyhedra 3. Best bounded-difference enclosure of Cartesian boxes 4. Best bounded-difference enclosure of rational grids 5. Best bounded-difference enclosure of octagonal shapes5
3. Owned bounded-difference copying, assignment and cleanup PPL-SPEC-001058 Ordinary copying shall create an independent shape with the source's represented set and ambient dimension. Copy assignment shall replace the target's value and dimension with the source's, including across different dimensions. Source mutation or destruction shall not change an independent copy; target mutation shall not change the source. Self-assignment shall preserve the value. The ordinary copy constructor's complexity argument shall be ignored for the three declared complexity values.
Destruction shall release resources owned by that shape exactly once. Assignment shall return a reference to the receiver. Failed construction shall release its acquired resources; failed assignment shall not imply a rollback guarantee.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
4. Outward conversion between bounded-difference coefficient profiles PPL-SPEC-001059 BD_Shape<T>(y) for another supported coefficient base shall inherit the source's ambient dimension and contain every source point. Each finite source bound shall be converted outward under the destination profile's declared operations; positive-infinite bounds shall remain unrestricted. Exact representable source bounds shall retain their values; inexact conversion may lose precision. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const closure before conversion; this shall preserve its represented set. The three declared complexity arguments shall not change the conversion. The new shape shall own independent storage. Exact representability of every stored input bound shall not by itself promise stronger subsequent rounded-closure guarantees.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
5. Whole bounded-difference value exchange PPL-SPEC-001060 m_swap and free swap shall exchange the two complete represented values and ambient dimensions, including empty/universe and different dimensions. A self-swap shall preserve the value. Exchanged ownership and all cache metadata shall remain associated with the corresponding value; neither operation shall require equal dimensions.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
6. Bounded-difference construction from supported constraints PPL-SPEC-001061 BD_Shape(cs) shall start from universe in the system's ambient dimension and conjoin every admitted constraint. Nontrivial admitted rows shall be nonstrict unary constraints or two-coordinate differences with equal-magnitude opposite coefficients; equalities shall impose both directions. Constant tautologies shall have no effect and constant falsehood shall produce empty. An empty system shall produce universe.
A nontrivial strict inequality, a row with more than two nonzero variable coefficients, or a two-variable row with unequal-magnitude or same-sign coefficients shall throw std::invalid_argument, including after an earlier contradiction. Supported unary/difference bounds not exactly representable in the selected profile shall be rounded outward to the best admitted bound; with unbounded exact rational arithmetic, the result shall equal the admitted conjunction. The source rows and represented conjunction shall remain unchanged. can_recycle_constraint_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
7. Bounded-difference construction from supported congruences PPL-SPEC-001062 BD_Shape(cgs) shall inherit the system's ambient dimension and conjoin its admitted equalities and constant truth values. Nontrivial equality rows shall be expressible as unary or equal-magnitude opposite-coefficient differences. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument, including after an earlier inconsistency. Constant proper congruences shall retain their tautological or inconsistent meaning. An empty system shall produce universe.
Exact rational coefficient arithmetic shall represent admitted equalities exactly. Other profiles shall retain the declared outward bound conversion on both equality directions. The const source shall retain its rows and value. can_recycle_congruence_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
8. Ambient and affine dimension of bounded-difference values PPL-SPEC-001063 space_dimension() shall return the ambient coordinate count independently of emptiness, boundedness or affine constraints. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented set. Both zero-dimensional values shall have affine dimension zero. Implicit unary/difference equalities and relationally redundant descriptions shall be included in this determination; stored rounded entries shall not be assumed to certify an equality unless the represented set satisfies it.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
9. Owned constraint and affine-equality exports of bounded-difference values PPL-SPEC-001064 constraints() shall return an owned, dimension-preserving constraint system whose conjunction denotes the receiver. minimized_constraints() shall additionally provide an irredundant defining conjunction: removing any emitted nontrivial row shall enlarge the represented set. No unique row order or unique equality basis shall be required. Exported finite bounds shall have their exact stored mathematical values; no integer-bound profile shall silently change real coordinates into integer coordinates.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, retaining the same ambient and affine dimensions. They shall not replace the represented inequalities or invent periodic restrictions. Their nonempty equality system shall be a basis of the affine restrictions; empty shall export inconsistency. Zero-dimensional universe shall export a tautological conjunction; zero-dimensional empty shall export an inconsistent one.
Exported descriptors shall remain usable and independent after source mutation or destruction. Source normalization shall preserve its represented value; canonical row order or a particular redundant basis shall not be inferred beyond the declared minimization result.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
10. Ordinary classification of bounded-difference values PPL-SPEC-001065 The ordinary classification calls shall report their named mathematical properties of the represented set: emptiness, universe, discreteness, topological closure, boundedness and existence of an integer point. Every bounded-difference value shall be topologically closed. A nonempty convex value shall be discrete exactly when it is a singleton; empty shall be discrete and bounded. Zero-dimensional universe shall be nonempty, universe, bounded, discrete and contain its integer empty tuple; zero-dimensional empty shall contain no integer point.
constrains(var) shall report whether the represented set imposes a restriction on that coordinate, including relational restrictions; empty shall constrain each valid coordinate. A variable outside the ambient dimension shall throw std::invalid_argument. These decisions shall not confuse stored integer bounds with an integer-only carrier.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
11. Bounded-difference set relations, equality and compatible hashes PPL-SPEC-001066 For dimension-compatible operands, contains, strictly_contains and is_disjoint_from shall report mathematical set containment, proper containment and empty intersection. Equal nonempty or empty sets shall not strictly contain each other; every nonempty value shall strictly contain empty. The zero-dimensional values shall obey the same set rules. Dimension-incompatible relation calls shall throw std::invalid_argument.
Equality shall require equal ambient dimensions and equal represented sets; inequality shall be its logical complement. Different redundant/closure descriptions of the same set shall compare equal. Equal values shall have equal hash codes; collisions between unequal values shall be permitted. hash_code shall not modify the represented set.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
12. Relations between bounded-difference values and linear constraints PPL-SPEC-001067 relation_with(c) shall return the Poly_Con_Relation flags describing the whole represented set relative to the constraint: inclusion, disjointness, saturation when its affine expression vanishes throughout the set and strict intersection as defined by 🔗 1. Constraint-relation assertion values and named factories. The supplied row need not have bounded-difference syntax. A constraint within the ambient dimension shall not alter the represented set. A descriptor dimension above the receiver's shall throw std::invalid_argument. Empty and constant-row cases shall retain their set-theoretic flag combinations.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
13. Relations between bounded-difference values and linear congruences PPL-SPEC-001068 relation_with(cg) shall classify the represented set relative to the congruence using the declared Poly_Con_Relation semantics. Modulus zero shall mean equality. For a proper modulus, inclusion shall require every source point to satisfy the residue condition; disjointness shall mean no source point does. For a nonempty receiver, saturation shall mean that the affine image consists of one value belonging to the eligible modulus lattice; the value need not be zero. These tests shall use the real convex source set rather than treating integer bounds as integer coordinates. Arbitrary admitted affine congruence syntax shall be queryable even when it is not representable by a bounded-difference value. Descriptor dimension above the receiver's shall throw std::invalid_argument.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
14. Subsumption of geometric generators by bounded-difference values PPL-SPEC-001069 relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the represented set subsumes the generator under 🔗 6. Generator-relation assertion values and named factories. An ordinary point or closure point shall use its rational coordinates; closure points shall obey the same membership test because this domain is closed. A ray shall satisfy every represented homogeneous direction inequality, and a line shall satisfy each corresponding homogeneous equality. Empty shall subsume no generator. A generator dimension above the receiver's shall throw std::invalid_argument; a lower-dimensional generator shall have zero additional coordinates.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
15. Affine boundedness, extrema and witnesses on bounded-difference values PPL-SPEC-001070 bounds_from_above and bounds_from_below shall decide whether the supplied affine form has a finite corresponding bound on the receiver, and shall return true in both directions for empty, including zero-dimensional empty. Zero-dimensional universe shall likewise bound every admitted constant form. The form's dimension shall not exceed the receiver's; otherwise these calls and extrema overloads shall throw std::invalid_argument.
For nonempty shapes and unbounded exact bound arithmetic, extrema calls shall return true exactly when the requested extremum is finite, and shall return its exact rational value with positive canonical denominator. Every finite extremum of this closed polyhedral set shall be attained. On false, supplied outputs shall retain their entry values.
For bound profiles whose closure arithmetic rounds or overflows, the overload without a witness may use an outward closure bound for bounded-difference objectives: its returned maximum value shall be an upper approximation of the true supremum and its returned minimum a lower approximation of the true infimum. Overflow may prevent detecting a finite bound. General affine objectives and witness overloads shall use the represented constraint set's exact optimization contract. The attainment flag shall concern the actual extremum, rather than certify attainment of an approximate numerical bound.
On successful witness calls, g shall identify an ordinary point in the represented set attaining the returned exact extremum. Constant affine forms and zero-dimensional values shall retain their exact meanings. Numerator/denominator output objects shall be distinct; the witness and scalar outputs shall obey their ordinary ownership and range prerequisites.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
16. Constant affine values and zero frequency on bounded-difference sets PPL-SPEC-001071 frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty receiver assigns one unique real value to the affine expression. On true, fn/fd shall be 0/1 and vn/vd shall be that exact constant with positive canonical denominator. Nonconstant and empty cases shall return false and leave all four outputs unchanged. Constant expressions and zero-dimensional universe shall follow the same rule. An expression dimension above the receiver's shall throw std::invalid_argument. The four scalar output objects shall be pairwise distinct.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
-
1. Rectangular Boolean values and valid internal use PPL-SPEC-000461 Bit_Matrix shall own a rectangular Boolean array B with r rows and c columns. Its stored row i shall represent exactly {j ∣ 0 ≤ j < c∧Bij} under 🔗 1. Finite bit-set row values and valid use. Set bits outside the declared column range shall violate the matrix invariant, even though the corresponding Bit_Row value alone is valid.
Operations shall require live valid objects and indices, counts and capacity calculations within their supported representable and storage limits, with sufficient resources. Callers shall prevent concurrent access conflicting with mutation. No library or thread initialization object or coefficient-constant stage shall be required. Allocation or interruption failure shall not constitute a successful matrix result. Failed C++ construction shall release resources owned by its incomplete object. Surviving owners shall remain destructible; rollback shall apply only where the individual contract promises it. Ordinary allocation-failure recovery shall not be promised for fatal GMP allocation failure.
-
3. Owned copies, assignment, exchange and lifetime PPL-SPEC-000463 Copy construction and assignment shall preserve both source extents and all entries while establishing independent storage. Assignment shall return its target and admit self-assignment. A copy shall remain usable after source mutation or destruction. Copying an rvalue through these copy interfaces shall preserve its source. Destruction shall release the row-vector storage and the bit storage owned by its rows.
Member and free swaps shall exchange complete shapes and row contents, including storage ownership, and admit self-swap. The resulting owners shall remain independent.
-
7. Transposition and transposed assignment PPL-SPEC-000467 Transposition of a shape r×c shall produce shape c×r and satisfy B’ji = Bij at every original coordinate. Transposed assignment shall replace its target with the transpose of the source, preserving a distinct source. It shall also admit the source being its target. A recoverable failure before the replacement is installed shall preserve the target. Zero extents shall be exchanged exactly, and transposing twice shall restore the original shape and entries.
-
Incoming link from: 2. Reloadable bounded-difference record export1
12. ASCII representation and loading PPL-SPEC-000472 With decimal numeric formatting and numeric Boolean output selected on the stream, ASCII output shall emit the decimal row count, x and decimal column count, followed in row-major order by each entry as 0 or 1. Whitespace shall separate these tokens; each row shall have its own output line. No-argument output shall use the library diagnostic-output destination std::cerr. print() shall emit a diagnostic to std::cerr identifying that no user-level output operator is defined for Bit_Matrix.
With decimal numeric input formatting, admissible dimensions and resources, loading shall read the shape header and exactly that many integer entry tokens, replace the target's complete shape and entries, and return true. Zero entry tokens shall denote false and nonzero integer tokens true. Invalid header tokens, invalid integer tokens or premature end of input shall return false; the target shall remain a live valid matrix, without a promise to preserve its preceding shape or entries. Tokens following a complete representation shall remain available to the caller. Successful dump/load round trips shall preserve both extents and every entry.
-
Incoming link from: 4. Owned bounded-difference memory accounting1
13. Invariant, ordering and allocated-memory queries PPL-SPEC-000473 For live rows with valid bit-row storage, OK() shall return true exactly when every row is valid and no row has a set position at or beyond the declared column count. In builds with assertions enabled, check_sorted() shall return true exactly when the stored rows are nondecreasing under their comparison order; duplicates shall be allowed.
External memory shall equal the allocated row-vector capacity in bytes plus the external memory owned by each live bit row. Total memory shall add sizeof(Bit_Matrix). These queries shall describe allocated storage, including unused capacity retained after shrinkage, and shall preserve the matrix.
-
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.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
1. Rectilinear distance between Box endpoint tuples PPL-SPEC-001052 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, rectilinear_distance_assign shall compute the requested directed bound on
D1(X, Y) = ∑jdj.This shall be a distance of endpoint descriptions, not the minimum distance between a point of each box. Openness shall not affect it. With exact rational temporary arithmetic and an exactly representable output, the finite sum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
2. Euclidean distance between Box endpoint tuples PPL-SPEC-001053 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, euclidean_distance_assign shall compute the requested directed bound on
D2(X, Y) = √( ∑jd2j).Each squared contribution shall preserve the requested bound on this nonnegative endpoint distance, including when conversions into a temporary format are inexact. This endpoint-tuple norm shall not be identified with the minimum set distance or general Euclidean Hausdorff distance between the represented boxes. Openness shall not affect it. A rational temporary square root shall retain the enclosure and precision conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness of a rational perfect-square input or universal fixed error width shall be inferred beyond those contracts.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
3. Maximum-coordinate distance between Box endpoint tuples PPL-SPEC-001054 For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, l_infinity_distance_assign shall compute the requested directed bound on
D∞(X, Y) = maxjdj,with value zero for an empty finite endpoint tuple. Openness shall not affect this endpoint comparison. With exact rational temporary arithmetic and an exactly representable output, the finite maximum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
-
Incoming links from: 1. Rectilinear distance between Box endpoint tuples 1. Rectilinear distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples6
4. Box endpoint-distance domain, workspaces and dispatch PPL-SPEC-001055 For equally dimensioned nonempty ordinary-real boxes, each finite lower or upper endpoint shall occupy its corresponding position in a tuple of 2n endpoints. A position finite in both boxes shall contribute dj = |ej(X) − ej(Y)|. A matching unbounded lower position or matching unbounded upper position shall contribute zero; a position unbounded in exactly one source shall make each supported distance positive infinity. Endpoint openness shall be ignored, so boxes differing only in endpoint inclusion may have distance zero.
Two empty boxes of equal ambient dimension shall have distance zero; exactly one empty box shall have positive-infinite distance. These conventions shall apply also in dimension zero, distinguishing zero-dimensional empty from universe. Unequal ambient dimensions shall return false before modifying the result or caller-supplied scratch objects. Equal dimensions shall return true on successful numerical completion, with the assigned distance specified by 🔗 1. Rectilinear distance between Box endpoint tuples, 🔗 2. Euclidean distance between Box endpoint tuples or 🔗 3. Maximum-coordinate distance between Box endpoint tuples. A Boolean success shall not imply exactness of a rounded value.
The default overload shall allocate three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar temporary type Temp shall instead allocate three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied workspace overload shall use the actual Work type of its three references, which may be an admitted raw or checked numerical type. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, numerical failure, resource, shared-temporary, nontrapping and caller-owned FPU conditions. Native floating conversions or computations shall retain their configured availability and hardware prerequisites. Rational square-root precision shall remain stable throughout a dependent call.
Calls evaluating a finite endpoint difference shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. They shall not require endpoint conversions to be exact solely to establish a directed bound. Paths assigning only the exact zero or positive-infinite exceptional value shall admit any otherwise valid direction request for that scalar assignment. Sources shall satisfy 🔗 1. Cartesian box values, coordinate identity and valid use; no NaN or included-infinity element shall be introduced into their ordinary-real carrier. An output profile shall support positive infinity whenever that outcome is reachable. Otherwise valid calls shall require no additional library initialization beyond the selected numerical/thread prerequisites.
The three supplied scratch objects shall be pairwise distinct and have storage disjoint from both source boxes. Their entry numerical values need not be initialized when the call overwrites them before reading. The result shall have live assignable storage disjoint from the source boxes; it may coincide with any one scratch object or its compatible raw storage. Result and scratch aliases shall use source values on entry. The same box may be supplied for both sources. Source factor views shall retain their read-only contract 🔗 7. Empty-aware borrowed coordinate interval access. Callers shall synchronize access, including cached emptiness updates, and preserve object/borrowed-storage lifetimes. Failures other than ordinary dimension mismatch shall retain the selected scalar policy's permitted partial output/scratch state, with no aggregate rollback guarantee.
The generic l_m_distance_assign helper shall apply these rules when instantiated with the library's rectilinear, Euclidean or maximum-coordinate specialization for that same workspace type. The sum, sum-of-squares/square-root and maximum accumulation shall use the shared numerical specializations of 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays and 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The source tuple here shall consist of Box endpoints, with the Box admission and overlap conditions stated above.
-
1. Exact topological closure of boxes PPL-SPEC-001038 topological_closure_assign() shall replace the receiver by its exact topological closure over the ordinary real carrier. It shall include each finite boundary point of a nonempty factor while preserving that boundary's value and retaining unbounded directions. Empty, including a product with an unclassified empty factor, shall remain empty. The ambient dimension shall remain unchanged. The operation shall be idempotent and shall preserve an already closed box. A closed-only interval profile shall not introduce a distinct value merely because no openness bits are stored.
Finite endpoint closure and policy admission shall follow 🔗 5. Interval closure and endpoint exclusion; closing factors shall not turn an empty product into a nonempty one.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Exceptions escaping a delegated interval operation may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
2. Least box enclosure of nonnegative real-time progression PPL-SPEC-001039 For the receiver's entry set X and the argument's entry set Y of the same ambient dimension, time_elapse_assign(y) shall replace the receiver by the least box of its admitted interval profile containing
{x + ty ∣ x ∈ X, y ∈ Y, t ∈ ℝ, t ≥ 0}.The progression parameter shall be one common nonnegative real number for all coordinates. The result shall be the Cartesian enclosure of this progression set; it need not preserve relationships induced by the common time. Where the interval profile can express the exact coordinate ranges, the enclosure shall be exact as a box. Zero time shall preserve every entry receiver point when the direction set is nonempty. If either entry set is empty, the result shall be empty, including in dimension zero. Finite extremal values retained from the receiver shall retain their inclusion or exclusion, and unbounded progression shall be represented as an unbounded coordinate direction.
The ambient dimension shall remain unchanged. A distinct y shall retain its set and dimension; self-aliasing shall use both entry sets. Unequal ambient dimensions shall throw std::invalid_argument before modifying the receiver, including when either operand is empty.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
3. Selected-coordinate integer-point normalization of boxes PPL-SPEC-001040 drop_some_non_integer_points(complexity) shall normalize every factor; drop_some_non_integer_points(vars,complexity) shall normalize exactly the selected coordinates. The result shall introduce no point outside the entry box and shall preserve every entry point integral on the selected coordinates. Unselected factors and the ambient dimension shall retain their meanings. An empty selection shall preserve the box; an empty receiver, including a product with a hidden empty factor, shall remain empty. Each admitted complexity argument shall have the same mathematical meaning for these Box operations.
For ordinary real factors satisfying the exact endpoint and unit-adjustment preconditions of 🔗 2. Interval endpoint normalization around integer points, each selected factor shall become the least interval hull of its integer points. A factor with no integer point shall make the product empty. A varying interval between distinct integer endpoints may retain noninteger interior points: the operation shall not change the underlying real carrier into an integer carrier. Selected unbounded directions shall retain their unbounded meaning. Normalization shall be idempotent. Closed factors with integral boundary storage shall already have the required endpoint meaning.
A selected variable outside the receiver dimension shall throw std::invalid_argument before modification, including for empty or closed-only boxes. The selected-coordinate set shall remain unchanged.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
-
1. Addition of optimally supported box constraints PPL-SPEC-001016 add_constraint(c) shall admit a dimension-compatible linear constraint with at most one nonzero homogeneous coefficient. A nonconstant strict inequality shall additionally require a profile supporting open endpoints. The successful result shall enclose the intersection of the entry box and the constraint and remain contained in the entry box. With exact admitted endpoints and openness, that intersection shall be represented exactly; otherwise the affected factor shall use its least supported outward interval enclosure. Constant truth or falsity shall leave the value unchanged or make it empty, including the zero-dimensional cases.
A constraint of greater ambient dimension, a non-interval constraint, or an unsupported nonconstant strict inequality shall throw std::invalid_argument. The support checks shall still apply to an empty receiver. add_constraints(cs) shall apply the same obligations to the conjunction of all supplied constraints; a support error may follow earlier successful additions, so the system form shall not promise rollback. System ambient dimension, including unused trailing coordinates, shall be checked before refinement. Const descriptors shall retain their values.
add_recycled_constraints(cs) shall have the same mathematical result and shall leave the supplied mutable system safely destructible on ordinary or exceptional return. can_recycle_constraint_systems() shall return false. No right to reuse a recycled system's prior contents shall be inferred from this capability value.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
Incoming link from: 2. Box construction from supported congruences1
2. Addition of optimally supported box congruences PPL-SPEC-001017 add_congruence(cg) shall admit a dimension-compatible equality congruence with at most one nonzero homogeneous coefficient, and constant tautological or inconsistent proper congruences. An equality shall have the same numerical enclosure as addition of its equivalent linear equality under 🔗 1. Addition of optimally supported box constraints. A tautology shall leave the receiver unchanged; an inconsistency shall make it empty. A nontrivial proper congruence or a relational equality shall throw std::invalid_argument, including when the receiver is already empty.
add_congruences(cgs) shall apply these obligations to the conjunction of its entries. The whole system's ambient dimension shall be checked before addition, even if its nonzero coefficients use fewer dimensions. Any input of greater ambient dimension shall throw std::invalid_argument. A bulk support error may follow earlier changes; no rollback shall be promised. Const congruences and systems shall retain their values.
add_recycled_congruences(cgs) shall give the same mathematical result and leave its supplied mutable system safely destructible on success or exception. can_recycle_congruence_systems() shall return false; the caller shall not rely on a recycled input retaining its prior contents.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
3. Conservative box refinement by linear constraints PPL-SPEC-001018 For a dimension-compatible constraint c, refine_with_constraint(c) shall produce a box X’ satisfying X∩{x : c(x)} ⊆ X’ ⊆ X, where X is the receiver's entry set. Unlike optimal addition, refinement shall admit relational constraints and strict constraints under closed-only profiles, using outward supported bounds where necessary. It shall not reject a constraint solely because its exact intersection is not a box.
A constant inconsistency shall make the box empty; a constant tautology shall preserve it. A separable constraint shall refine its affected factor; relational constraints shall propagate necessary coordinate bounds and need not yield the least box enclosure. Empty shall remain empty. refine_with_constraints(cs) shall perform at most one refinement step per constraint in one traversal, stopping early on detected emptiness. The result may depend on traversal order; no fixed-point or least-enclosure guarantee shall be inferred.
Dimension mismatch, including excess system ambient dimension, shall throw std::invalid_argument before replacement. The receiver's ambient dimension and the supplied const descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
4. Conservative box refinement by linear congruences PPL-SPEC-001019 For a dimension-compatible congruence g, refine_with_congruence(g) shall produce X’ with X∩{x : g(x)} ⊆ X’ ⊆ X. An equality congruence shall use the linear-constraint refinement in 🔗 3. Conservative box refinement by linear constraints. A constant inconsistent proper congruence shall make the receiver empty. Other proper congruences may leave its box unchanged, retaining soundness without claiming an explicit lattice representation or periodic endpoint tightening.
refine_with_congruences(cgs) shall refine the conjunction by applying the supported per-entry refinement and may stop when emptiness is detected. It shall not require a fixed point or least box enclosure. Empty shall remain empty and zero-dimensional constants shall retain their logical meaning. Input congruences and systems shall remain unchanged. An input or system ambient dimension larger than the box dimension shall throw std::invalid_argument before replacement; the receiver dimension shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
5. Controlled box constraint propagation PPL-SPEC-001020 For dimension-compatible linear constraints, propagation shall tighten coordinate bounds without deleting any entry point satisfying the supplied constraint or conjunction, and without enlarging the entry box. It shall accept equality and strict or nonstrict inequality constraints under the selected supported numerical profile, retaining required outward rounding and any openness the profile can represent. Constant contradictions shall make the box empty; tautologies and empty inputs shall retain their set meanings.
propagate_constraint(c) shall perform one propagation step for the constraint. propagate_constraints(cs, max_iterations) shall make at most max_iterations passes when that argument is positive, using each constraint at most once per pass unless emptiness is detected first. A pass leaving every interval unchanged shall terminate propagation early. A finite pass limit shall permit later calls to continue tightening the current box.
Zero, including the default argument, shall mean no pass limit and may lead to nontermination. Even reaching an unchanged pass shall not establish a least box enclosure of the conjunction. Traversal and intermediate rounding may affect the final precision. Greater constraint or system ambient dimension shall throw std::invalid_argument before replacement. The box dimension and const input descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
-
1. Exact extraction of individual box boundaries PPL-SPEC-001030 For a nonempty receiver and a variable var within its ambient dimension, has_lower_bound(var,n,d,closed) shall return true exactly when that factor has a finite lower boundary. On true, n ⁄ d shall be its exact infimum, with d > 0, coprime numerator and denominator, and denominator one when the numerator is zero. closed shall state whether that boundary belongs to the factor. has_upper_bound shall give the corresponding exact supremum and upper boundary inclusion. On false, all supplied output objects shall retain their values. Numerator and denominator outputs shall be distinct.
These calls shall require the stated nonempty and coordinate-validity preconditions; they shall not promise validation or a specified outcome outside them. The represented box and ambient dimension shall remain unchanged. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Finite endpoint conversion and coefficient assignment shall retain the selected numerical policy's range and exception conditions; an exception shall not imply rollback of outputs already assigned. Valid use shall impose no additional initialization requirement beyond the selected numerical facilities.
-
2. Constraint and congruence exports of box values PPL-SPEC-001031 constraints() shall return an owned, dimension-preserving constraint system whose conjunction denotes exactly the receiver. Finite coordinate boundaries shall retain their exact values and strictness; unconstrained coordinates shall not introduce restrictions. Empty, including an unclassified empty factor, shall export an inconsistent conjunction. Zero-dimensional universe shall export the tautological conjunction and zero-dimensional empty an inconsistent one.
minimized_constraints() shall return an equivalent system, using one equality for a singleton factor and the necessary finite endpoint constraints for a nonsingleton factor. The interface shall not require a particular row order or syntactic scaling.
congruences() and minimized_congruences() shall return owned, dimension-preserving congruence systems containing every receiver point. For a nonempty box, they shall express exactly the affine equalities fixing its singleton coordinates and shall impose no periodic restriction on varying factors. Empty shall export an inconsistent system. The two forms shall have the same mathematical meaning; no extra proper congruence precision shall be inferred from minimization.
The box's set and dimension shall remain unchanged and returned systems shall be independent values. The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Construction of output descriptors shall retain the initialized library and thread context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Coefficient representability, intermediate arithmetic and reported range failures shall follow the configured coefficient profile; resource or numerical exceptions shall not promise a returned partial system.
-
3. Affine boundedness, extrema and witnesses on boxes PPL-SPEC-001032 bounds_from_above(expr) and bounds_from_below(expr) shall decide exactly whether the affine expression's values over the receiver are bounded in the indicated direction. Empty shall be bounded in both directions. Zero coefficients shall not make an otherwise bounded objective unbounded because of unused coordinate factors.
maximize shall return true exactly when the receiver is nonempty and the objective is bounded above. On true, its numerator and positive denominator shall give the exact supremum as a reduced fraction, and maximum shall be true exactly when some receiver point attains it. minimize shall analogously report the exact infimum and attainment. A constant objective on any nonempty box shall be attained, including in zero dimensions. Ordinary false shall preserve every supplied output. Numerator and denominator outputs shall be distinct.
The generator overloads shall additionally return a point in the receiver when the extremum is attained, and a closure point in its topological closure when it is not attained. Its coordinates, including coordinates absent from the expression, shall satisfy the respective membership condition, and its objective value shall equal the reported extremum. Omitted generator coordinates shall have their declared zero-extension meaning. A witness shall not be accepted merely because it gives the correct objective value.
An expression's ambient dimension greater than the box dimension shall throw std::invalid_argument before changing outputs, including for an empty receiver or a constant expression with excess declared dimension. The represented box, its dimension and the supplied expression shall retain their values. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expressions and generators shall retain their descriptor prerequisites; creating output generators and reporting dimension errors shall retain the context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical intermediate and output representability shall follow the selected coefficient profile. Reported allocation or numerical exceptions may leave outputs partly assigned; ordinary false-result preservation shall not imply exception rollback.
-
4. Detection of constant affine values and zero frequency PPL-SPEC-001033 frequency(expr,fn,fd,vn,vd) shall return true exactly when the receiver is nonempty and the expression has one value throughout it. On true, fn and fd shall be zero and one, respectively, while vn/vd shall be that exact value as a reduced fraction with positive denominator. A coordinate with zero expression coefficient shall not prevent constancy even when its factor varies or is unbounded. For boxes this success shall express a unique value, not a nonzero periodic frequency. Empty shall return false. Zero-dimensional universe shall return the expression's constant term with zero frequency.
Ordinary false shall preserve all four supplied output values. Those outputs shall be distinct. Greater expression ambient dimension shall throw std::invalid_argument before output replacement, including when the receiver is empty. The expression and the represented box and its ambient dimension shall retain their values.
The profile, numerical, lifetime and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expression descriptors and dimension error reporting shall retain their initialized-context prerequisites. Coefficient intermediate and output representability and reported range failures shall follow the configured coefficient profile. Allocation or numerical exceptions may leave output values partly assigned; ordinary false-result preservation shall not imply exception rollback.
-
1. Box relations with linear constraints PPL-SPEC-000973 For a dimension-compatible constraint with affine expression e(x) and relation e(x) ⋈ 0, relation_with(c) shall report exactly the applicable assertions: is_disjoint() when no represented point satisfies the constraint; is_included() when every represented point satisfies it; strictly_intersects() when some but not all represented points satisfy it; and saturates() when every represented point has e(x) = 0. Saturation shall be independent of whether the inequality is strict.
An empty box shall therefore report disjoint, included and saturating, without strict intersection. A nonempty box lying on an excluded strict boundary shall report disjoint and saturating. The zero-dimensional universe shall use its unique empty tuple, and omitted coefficients shall be zero. A constraint of greater ambient dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
2. Box relations with linear congruences PPL-SPEC-000974 For a dimension-compatible congruence with affine expression e(x) and modulus m, relation_with(cg) shall interpret m = 0 as the equality e(x) = 0, and positive m as membership of e(x) in mℤ. It shall report disjointness, inclusion or strict intersection by the corresponding quantified assertions over the represented box. On a nonempty box, saturates() shall hold when its affine image is a single value satisfying the congruence. An empty box shall report disjoint, included and saturating. The unique zero-dimensional point shall be tested against the constant congruence.
Excluded finite endpoints shall not establish a congruence witness. The first eligible lattice value and all affine-range intermediates shall not be restricted to the configured coefficient range. A congruence whose ambient dimension exceeds the box dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
3. Box subsumption of geometric generators PPL-SPEC-000975 For a dimension-compatible geometric generator, relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the generator is subsumed, and nothing() otherwise. A point shall be subsumed exactly when its rational coordinates belong to the box. A closure point shall use membership in the topological closure of a nonempty box. Coordinates omitted from the generator shall be zero, including all trailing box coordinates.
A ray shall be subsumed exactly when translating any box point by every nonnegative multiple of its direction remains in the box; a line shall use every real multiple. Zero direction components shall impose no condition; a positive or negative ray component shall require the corresponding upper or lower absence of a finite bound, and a nonzero line component shall require an unconstrained factor. An empty box shall subsume no generator. The zero-dimensional universe shall subsume every admitted zero-dimensional generator. A generator with greater dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
Incoming link from: 3. Box extrapolation with selected limiting constraints1
4. Cartesian box intersection PPL-SPEC-000976 For same-profile boxes of equal ambient dimension, intersection_assign(y) shall replace the receiver by the exact set intersection of the two entry values, preserving their ambient dimension. Each nonempty result factor shall be the corresponding interval intersection. Empty and universe shall obey the ordinary set identities, including dimension zero. The operation shall admit self-intersection and shall preserve a distinct donor's represented value. Any empty factor shall make the result empty regardless of cached classification.
Dimension mismatch shall throw std::invalid_argument before replacing the receiver's represented value.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
5. Least same-profile box upper bound PPL-SPEC-000977 For same-profile boxes of equal ambient dimension, upper_bound_assign(y) shall replace the receiver by the least box of that profile containing both entry sets. For nonempty operands this shall use the coordinate-wise least interval hulls; endpoint inclusion shall retain every admitted input point. An empty operand shall be neutral, including a lazily empty operand, and the zero-dimensional cases shall retain empty/universe meaning.
The operation shall admit a donor identical to the receiver, preserve the represented value of a distinct donor and keep ambient dimension. Dimension mismatch shall throw std::invalid_argument before replacing the receiver's represented value. The result need not equal the union.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
6. Conditional exact union of boxes PPL-SPEC-000978 For same-profile boxes of equal dimension, upper_bound_assign_if_exact(y) shall return true exactly when their set-theoretic entry union is representable as a box of that profile. On true it shall replace the receiver by that union. On false the receiver's represented value shall remain unchanged; a partial coordinate hull shall not escape as a failed result. A distinct donor shall remain unchanged in either case.
Exactness shall account for gaps and excluded touching endpoints within a factor, and for incompatible alternatives in different coordinates. Mere intersection or exactness of every separate coordinate hull shall not establish exactness of the Cartesian union. Empty, equal, contained, zero-dimensional and self-aliased operands shall use their set meanings. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
7. Same-profile abstract box difference PPL-SPEC-000979 For same-profile boxes of equal ambient dimension, difference_assign(y) shall replace the receiver by the least box of that profile containing the set-theoretic difference of the two entry values. It may retain removed points when the difference is not itself representable as a box. With exact rational endpoints and supported openness this shall be the Cartesian interval hull of the exact difference.
Empty subtraction, subtraction from empty, self-subtraction, coverage and zero-dimensional cases shall follow their set meanings. Removal of a boundary shall preserve the remaining endpoint's required openness where representable. A difference split into separate pieces shall use their least same-profile enclosure. A distinct donor shall retain its represented value, self-aliasing shall be admitted and ambient dimension shall remain. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
8. Context-preserving box simplification PPL-SPEC-000980 For same-profile boxes of equal ambient dimension, let X and Y be the receiver and context entry sets. simplify_using_context_assign(y) shall produce a box X’ with X ⊆ X’ and X’∩Y = X∩Y, keeping ambient dimension. The operation may discard bounds made redundant by the context. It shall not promise a unique or maximally enlarged result.
A false return shall establish X∩Y = ⌀; a true return shall retain the intersection-preservation guarantee without an additional exact nonemptiness claim. Empty contexts and receivers and zero-dimensional values shall follow these set obligations. A distinct context's represented value shall remain unchanged. With the receiver also used as context, entry-value semantics shall still apply. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
-
1. Human-readable box presentation PPL-SPEC-000969 Insertion shall write false for an empty box and true for a universe box. Otherwise, it shall visit every ambient coordinate in increasing index order and write the active variable name, the literal separator " in ", and that coordinate's interval presentation. Consecutive coordinates shall be separated by ", ". Unrestricted factors of a non-universe product shall also be shown. Zero-dimensional empty and universe shall retain their respective words. Successful insertion shall return the supplied stream reference without adding a newline or explicitly flushing it.
Variable names shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Interval presentation shall follow 🔗 2. Readable interval presentation and output delivery, including stream formatting and locale. The display shall not encode a separate ambient-dimension header. print() shall deliver the same display to the current std::cerr without appending a newline.
The represented box value shall remain unchanged; logically const emptiness/universe queries may refresh status. Stream failures shall retain the supplied stream's state and exception-mask behavior. Exceptions escaping the selected formatter, endpoint or stream operations shall propagate with partial output retained; their internal stream handling shall follow the applicable exception mask. Rendering callbacks shall not invalidate or mutate the box or coordinate storage being visited.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
Incoming link from: 3. Compatible box record loading and failure state1
2. Reloadable box record export PPL-SPEC-000970 Under compatible machine-output formatting and endpoint serialization prerequisites, ascii_dump(s) shall emit the box status record, the label space_dim, the ambient dimension and a newline, followed by exactly one serialized interval record per coordinate in increasing index order. The status protocol shall follow 🔗 5. Status ASCII loading and partial rejection state; interval records shall follow 🔗 4. Reloadable interval metadata and endpoint export. The record shall retain enough information to reload the same ambient dimension and mathematical Cartesian value with 🔗 3. Compatible box record loading and failure state.
For a box whose status already certifies emptiness, endpoint storage may be inactive. Export shall emit a valid canonical universe interval for each such coordinate without interpreting inactive endpoint payloads. The certified empty status shall preserve the empty Cartesian meaning independently of those replacement records. For other valid status states, coordinate export shall retain the interval serialization's metadata and inactive-payload rules. Export shall preserve the source mathematical value and shall not require first querying its emptiness.
ascii_dump() shall deliver the same record to the current std::cerr. Output shall require sufficient stream resources, compatible numeric formatting/locale and the selected endpoint codec's prerequisites. Stream/endpoint/resource failures shall retain their own state and exception behavior, with no output rollback. The record shall not imply cross-version or different-policy format compatibility.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
Incoming link from: 2. Reloadable box record export1
3. Compatible box record loading and failure state PPL-SPEC-000971 For a complete valid record produced under 🔗 2. Reloadable box record export with compatible status, interval policy, endpoint arithmetic, dimension limits, numeric formatting and locale, ascii_load(s) shall return true and replace the destination by the recorded ambient dimension and mathematical Cartesian value. It shall consume one box record, permitting a following record or suffix to remain in the stream. A previously different destination dimension or value shall not affect a successful result.
Status-field parsing and its outcomes shall follow 🔗 5. Status ASCII loading and partial rejection state. A missing or incorrect space_dim label, an absent, negative-signed or unsupported dimension, or a rejected or truncated coordinate interval record shall return false when stream extraction returns normally. Coordinate loading shall follow 🔗 5. Compatible interval record loading and partial failure state. A completed record that fails the box invariant check shall return false in every build. Stream exception masks and selected endpoint/resource exceptions shall retain their own propagation rules. A complete admissible dimension shall fit the selected box profile and available resources. Use trusted compatible dumps.
Failure may have replaced status and some coordinate records or discarded the previous coordinate sequence. A false return or exception shall not promise rollback or a complete valid mathematical box value. The object shall retain safely destructible owned resources and may be replaced by assignment from a valid box; callers shall establish a valid replacement before mathematical queries or other operations requiring a valid box. Input already consumed shall not be restored. Successful loading shall not transfer ownership of the input stream.
The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.
-
9. Backing-array allocation failure preserves the prior map PPL-SPEC-000624 When insertion or erasure requires replacement backing arrays, a recoverable failure allocating either replacement array shall preserve the prior complete map and its coefficient ownership, release incomplete replacement storage and retain valid cached ends. No insertion, removal or coordinate transformation shall be reported as a successful result when its required backing allocation fails. A retry with sufficient resources shall remain possible.
This guarantee shall cover ordinary and hinted insertion, occupied/key erasure and erase-and-shift operations when they trigger a backing replacement. It shall not promise ordinary recovery after a fatal GMP allocation failure or after violation of a member's valid-input preconditions.
-
1. Ordered coefficient-map values and valid tree use PPL-SPEC-000601 CO_Tree shall own a finite map from distinct dimension_type keys to Coefficient values. Stored keys shall be strictly ordered and shall exclude not_a_dimension(). A stored zero coefficient shall remain a stored map entry. Physical array positions and holes shall not change the map's key/value associations.
Calls shall require live valid owners, admitted keys/counts and supported nonoverflowing capacity calculations, with sufficient resources. Selected coefficient values and operations shall satisfy the configured arithmetic profile's prerequisites. Library initialization shall be active where coefficient constants or scratch storage are used, and synchronization shall follow 🔗 3. Thread initialization, default state and finalization. Recoverable failures shall not be successful map results. Failed construction shall release resources of the incomplete owner; failure-state guarantees shall follow the selected member, without a universal rollback promise.
-
3. Independent copying, assignment and destruction PPL-SPEC-000603 Copy construction and assignment shall preserve the source map and produce independently owned coefficient objects and backing arrays. Copies shall remain usable after source mutation or destruction. Assignment shall admit self-assignment and return its target. Copying a const rvalue through these copy interfaces shall preserve its source. Destruction shall release all live coefficients and both backing arrays.
Recoverable copy-construction failure shall preserve the source and release the incomplete copy's resources. A recoverable assignment failure may discard the target's preceding contents, but shall leave a valid empty reusable target and preserve the source.
Transfer construction from a non-const rvalue shall acquire the complete owned storage without allocating or throwing and leave its source empty and reusable. Move assignment shall exchange complete storage owners without allocation or exceptions, return its target and leave its source holding the preceding target value. Self-move shall preserve both value and storage. References to elements shall follow their storage; distinct-owner transfers shall invalidate element iterators. References to cached ends shall remain bound to their original tree owners and shall be refreshed after transfer. Explicitly stored zeroes and physical layout metadata shall be transferred with their arrays.
-
4. Construction from a counted increasing-key input sequence PPL-SPEC-000604 For a count not exceeding max_size(), sequence construction shall consume exactly that many entries from the input position. The sequence shall provide coefficient values by dereference and their keys through index(); keys shall be valid and strictly increasing. The new map shall contain exactly those key/value pairs, including zero values, as independently owned coefficient copies. No following input position shall be dereferenced or have its key requested. Count zero shall produce an empty map without dereferencing or advancing the input.
If allocation, key access, dereference, coefficient construction or input advancement reports a recoverable exception, the incomplete tree shall release both backing arrays and every coefficient already constructed. The caller's input state shall follow its iterator's own copy and failure semantics; restoring a consumed input position shall not be promised.
-
13. Managed storage counts backing arrays and live coefficient payloads PPL-SPEC-000613 External-memory accounting shall return zero for a tree with no backing arrays. Otherwise it shall count the complete reserved key-array payload, including its two sentinel slots, the coefficient-array payload, including its unused leading slot, and the external storage of every live coefficient. Unoccupied coefficient slots shall not add coefficient payload. This shall describe owned allocated payload, excluding allocator bookkeeping, and preserve the map and all current iterators.
-
Incoming links from: 3. Exact ordinary integral coefficient arithmetic 8. Coefficient scaling and truncated division by powers of two 1. Integral coefficient representation access and sign comparison 2. Coefficient negation and absolute-value assignment 3. Coefficient remainder assignment and exact division 4. Coefficient greatest common divisor and least common multiple 5. Extended integral greatest common divisor 6. Integral product accumulation and subtraction 7. Nonnegative integer square-root assignment 8. Reduction of an integral coefficient pair 9. Integral parity, additive inverses and extremum assignment11
2. Finite coefficient construction, copying and comparison PPL-SPEC-000042 A default-constructed Coefficient shall have value zero. Construction from a representable native integral input and copying from a live coefficient shall preserve the source integer value. The common native input forms covered here are char, signed char, unsigned char, short, unsigned short, int, unsigned int, long and unsigned long. Copy assignment shall replace the target value with the source's entry value, return a reference to the target and preserve a distinct source. Self-copy assignment shall preserve the value. Later mutation of a value shall not change a distinct copy. Destruction of one value shall not invalidate another value or a separately owned copy of a constant.
For live finite coefficient values, equality and ordering comparisons shall agree with equality and ordering of their mathematical integers and shall preserve the operands. These obligations shall hold independently of object identity and the current floating-point rounding direction.
Construction and use shall satisfy the applicable initialized-thread protocol in 🔗 3. Thread initialization, default state and finalization. Callers shall prevent concurrent access to an object while another operation changes it. This contract's integral-input guarantee requires the input value to be representable in the selected profile.
-
Incoming links from: 3. Exact ordinary integral coefficient arithmetic 8. Coefficient scaling and truncated division by powers of two 2. Coefficient negation and absolute-value assignment 3. Coefficient remainder assignment and exact division 4. Coefficient greatest common divisor and least common multiple 5. Extended integral greatest common divisor 6. Integral product accumulation and subtraction 8. Reduction of an integral coefficient pair 5. Bounded integer coefficient policy configuration 8. Rational canonical-form inspection and coefficient component extraction 1. Exact scalar numerator and denominator extraction11
5. Checked coefficient overflow and result-policy dispatch PPL-SPEC-000045 For a checked bounded coefficient profile, an ordinary coefficient arithmetic operation in 🔗 3. Exact ordinary integral coefficient arithmetic, or quotient calculation in 🔗 4. Coefficient quotient and remainder with truncation toward zero, whose exact integer result is outside the selected range shall throw std::overflow_error instead of returning a successful wrapped result. This includes negation of the least representable integer, endpoint-crossing increment or decrement, and dividing the least representable integer by -1. Operand prerequisites other than representability shall still apply.
After a supported arithmetic overflow exception, a surviving coefficient object shall remain destructible and assignable to a new representable value. Its previous value shall not be promised to remain unchanged. A constructor that throws shall not produce a usable object. Exception-message text shall not be prescribed. These promises shall not extend overflow checking to a native coefficient profile or promise rejection of a zero divisor.
For checked profiles, Bounded_Integer_Coefficient_Policy::handle_result(r) shall return normally exactly when result_overflow(r) is zero and result_class(r) differs from VC_NAN. Otherwise it shall dispatch to throw_result_exception(r). Supported positive/negative overflow codes, including unknown intermediate overflow, shall produce std::overflow_error. V_NAN and V_CVT_STR_UNK shall produce std::domain_error. A normally returned inexact result classification shall not be reclassified as exact.
-
7. Coefficient constant-stage acquisition and release PPL-SPEC-000047 The internal coefficient-constant initialization stage shall be entered only when that thread has no active instance of the stage. In the mpz profile, successful Coefficient_constants_initialize() shall acquire and publish one owned zero coefficient and one owned unit coefficient for that thread. Neither pointer shall be published until both objects have been constructed. If supported recoverable construction failure occurs, partial acquisitions shall be destroyed, both published pointers shall remain null and a later initialization attempt shall be permitted.
Coefficient_constants_finalize() shall require the initialized stage and completion of all dependent uses. It shall release both owned objects and clear both published pointers. The bounded profiles shall require no owned constant-stage allocation; their initialization and finalization functions shall perform no stage-resource operation. Their accessor storage shall follow 🔗 6. Coefficient zero and one constant access.
The enclosing initialization transaction shall acquire and release this stage in dependency order under 🔗 3. Thread initialization, default state and finalization. Callers shall not interleave independent stage ownership protocols for the same thread.
-
1. Exact linear polyhedron partitioning PPL-SPEC-001429 For compatible polyhedra p and q, linear_partition(p,q) shall return first denoting p∩q and a finite NNC-polyhedron powerset second denoting q⧵p. Its nonempty residue pieces shall be pairwise disjoint and disjoint from p. Together with first they shall partition q. Equalities shall split into complementary sides; strict inequalities shall use their non-strict complement. Input values shall remain unchanged. The template base shall admit exact constraint conjunction for the returned first component.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Finite and approximate grid partitioning PPL-SPEC-001430 approximate_partition(p,q,finite) shall return the exact grid intersection p∩q as first. When the residue is finitely representable by the procedure, finite shall be true and second shall be a pairwise-disjoint finite grid partition of q⧵p. Otherwise finite shall be false and second shall soundly contain that residue, possibly returning q itself. Failure of an early finite partition shall not omit later input congruences from first. If the full intersection is empty, returning q shall be an exact finite residue. Inputs shall be dimension-compatible and remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Reloadable pointset-powerset representations PPL-SPEC-001431 ascii_dump shall write the stored collection size, ambient dimension and each base representation, preserving enough information to reload the value with the matching coefficient/base configuration. ascii_load shall return true only for a complete admitted representation with matching disjunct dimensions and valid components; malformed, truncated or structurally invalid input shall return false. A successful round trip shall preserve union and dimension, without requiring canonical text or reduced decomposition. Stream and resource exceptions may propagate. A false return shall not promise rollback or further queries; surviving ownership shall remain destructible. Human-readable print shall remain distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Pointset-powerset diagnostics, display and hash PPL-SPEC-001432 OK shall check disjunct dimensions and generic powerset invariants. Memory queries shall give lower bounds; total shall add sizeof(*this) to external bytes. Hash shall depend on ambient dimension, so equal values shall have equal hashes without promising collision resistance. Stream insertion shall use the inherited powerset display and return the supplied stream; printing may normalize redundant storage without changing the value.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Reloadable product representations PPL-SPEC-001464 Dumping shall write the product label, reduction marker and both base representations. Loading shall accept a complete representation only when both base loads succeed, component dimensions agree and component invariants hold. Malformed, truncated or structurally inconsistent input shall return false. A successful round trip shall preserve the component pair's intersection and common dimension. A loaded reduction marker shall not bypass the requirement that a pair be admitted by its selected policy. False shall not promise rollback or further queries; surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Human display shall be distinct from the reloadable format.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Product diagnostics, display, memory and hash PPL-SPEC-001465 OK shall require matching component dimensions and both component invariants, without certifying policy application or a reduction fixed point. External memory shall sum component external estimates; total shall add sizeof(*this). Hash shall depend on ambient dimension and agree for equal products without promising collision resistance. Stream insertion shall label and display both components and return the supplied stream.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming links from: 1. Exact linear polyhedron partitioning 2. Finite and approximate grid partitioning 1. Reloadable pointset-powerset representations 2. Pointset-powerset diagnostics, display and hash 3. Reloadable product representations 4. Product diagnostics, display, memory and hash 1. Determinate values and copy-on-write ownership 2. Determinate order and distinguished values 3. Determinate operations and binary lifting 4. Determinate display, invariants and memory 1. Lifted powerset image 2. Lifted powerset preimage 3. Lifted powerset generalized image 4. Lifted powerset generalized preimage 5. Lifted powerset bounded image 6. Lifted powerset bounded preimage 7. Lifted expression-to-expression affine relations 1. Exact pairwise powerset reduction 2. BGP99 powerset extrapolation 3. Certificate-based powerset widening 1. Pointset-powerset coordinate growth 2. Pointset-powerset projection and coordinate mapping 3. Pointset-powerset dimension expansion and folding 4. Pointset-powerset concatenation 1. Lifted constraint addition and refinement 2. Lifted congruence addition and refinement 3. Lifted cylindrification 4. Lifted pointset-powerset intersection 5. Pointset-powerset set difference 6. Meet-preserving powerset context simplification 7. Powerset topological closure and time elapse 8. Powerset integer restriction and wrapping 1. Pointset-powerset empty and universe queries 2. Affine dimension of a pointset powerset 3. Pointset-powerset structural shape queries 4. Pointset-powerset structural set relations 5. Geometric powerset coverage and equality 6. Pointset-powerset directional bound tests 7. Pointset-powerset extrema and witnesses 8. Pointset-powerset descriptor relations 1. Dimensioned pointset-powerset construction 2. Pointset-powerset copying, assignment and exchange 3. Pointset-powerset construction from descriptor systems 4. Pointset-powerset construction from a simple domain 5. Cross-base powerset conversion and assignment 6. Pointset-powerset construction from a product 7. Insertion of pointset disjuncts 1. Generic powerset construction and ownership 2. Generic powerset entailment and equality 3. Generic powerset traversal and erasure 4. Omega reduction of generic powersets 5. Disjunctive insertion and exact powerset union 6. Pairwise lifting and generic powerset meet 7. Explicit powerset collapse 8. Generic powerset diagnostics and memory accounting 1. Componentwise product image 2. Componentwise product preimage 3. Componentwise product generalized image 4. Componentwise product generalized preimage 5. Componentwise product bounded image 6. Componentwise product bounded preimage 7. Product expression-to-expression affine relations 1. Product component widening and convergence scope 1. Product coordinate operations 2. Product concatenation 1. Product descriptor addition, refinement and recycling 2. Product intersection 3. Product component joins and component exactness 4. Sound product set difference 5. Product closure and time elapse 6. Product integer-coordinate tightening 1. Product constraint and congruence exports 2. Component-based product property tests 3. Component-based product descriptor relations 4. Component-selected product bounds and witnesses 5. Product component order and equality 1. Direct and smash reduction policies 2. Constraint-sharing product reduction 3. Congruence-sharing product reduction 4. Shape-preserving product reduction 5. Lazy product reduction and component views 1. Partially reduced product values and policy aliases 2. Dimensioned product construction and extent 3. Product copying, assignment and exchange 4. Product construction from descriptor systems 5. Conversions to a product86
1. Compound-domain values and valid use PPL-SPEC-001379 Pointset_Powerset<PSET> shall denote ⋃iγ(pi). An empty collection shall denote empty. Partially_Reduced_Product<D1,D2,R> shall denote γ1(d1)∩γ2(d2) in a common real ambient space. Powerset<D> shall implement the finite powerset construction on a base domain with bottom, top, entailment, equality, upper bound and meet. Determinate<PSET> shall adapt a supported pointset domain to that base interface without changing its represented set.
A component type shall supply the operations used by an instantiated member, with their stated soundness, precision, dimension and arithmetic conditions. Every intermediate arithmetic operation shall meet its coefficient profile's range and resource conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; indices and dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, function objects and streams shall remain live and valid throughout their uses. Independently written outputs shall not alias each other or input storage, except where explicitly permitted. The denominator-taking affine wrappers shall admit a scalar borrowed from the receiver at entry as specified below.
Value copies shall permit independent subsequent mutations. Accesses that can change shared representations or caches shall be externally synchronized. Numerical, allocation and resource exceptions may propagate. Failed construction shall release acquired resources. For existing objects no general rollback or further-query guarantee shall be assumed after an exception; surviving owned resources shall remain destructible.
-
Incoming link from: 1. Target-adapted floating expression evaluation1
6. Oracle interval and expression-value queries PPL-SPEC-000986 FP_Oracle<Target, C> shall define an abstract client-supplied query interface for a coordinate interval, a floating-point constant value and an integer expression value. A true return shall mean that the output is an initialized valid interval enclosing all relevant values under the client's current modeled state. A false return shall mean that the query supplies no usable complete enclosure; callers shall not infer an unchanged output value. An admitted oracle shall report refusal rather than certify an unsound enclosure.
The oracle and target inputs shall remain live and semantically consistent with the analyzed expression and any affine store throughout one analysis. Callbacks may propagate their documented exceptions. C shall provide the selected valid interval operations; rational interval queries shall not require host floating-point arithmetic merely because the interface is named FP_Oracle. Construction/destruction of the concrete oracle shall remain with its client; the protected nonvirtual base destructor shall not support deleting an owned oracle through a base pointer.
-
Incoming links from: 3. Congruence creation from affine operand differences 4. Equality-constraint conversion and explicit modulus construction 8. Explicit modulus replacement and multiplicative modulus syntax 9. Scaling expression and modulus together 10. Sign, constant-residue and common-factor normalization 11. Congruence semantic equivalence 12. Rational affine substitution preimage of a congruence 16. Congruence-system meaning and construction 17. Owned congruence systems, storage conversion and descriptor equality 21. Common-modulus normalization of congruence systems 6. Java mathematical representations and operation options11
1. Affine congruence meaning and valid numerical use PPL-SPEC-000141 For dimension d, integer coefficient expression E(x) = b + ∑d − 1i = 0aixi and nonnegative modulus m, a Congruence shall denote the rational valuations satisfying E(x) = 0 when m = 0, and E(x) ⁄ m ∈ ℤ when m > 0. Coordinates themselves need not be integral. is_equality() and is_proper_congruence() shall distinguish these cases exactly. is_tautological() shall report whether all rational valuations satisfy the relation; is_inconsistent() shall report whether none do. With a nonzero homogeneous coefficient neither predicate shall hold. For a constant expression, the first shall equal its equality/divisibility truth and the second its negation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization; the caller shall synchronize access overlapping modification of an object. Both dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, arithmetic, normalization, comparison and transformation guarantees shall require every evaluated coefficient step and result to be representable in the selected numerical profile. Unchecked completion shall not prove this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release its owned resources; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without a universal rollback guarantee.
-
4. Equality-constraint conversion and explicit modulus construction PPL-SPEC-000144 Construction from an equality Constraint shall produce a modulus-zero congruence with the same satisfying valuations and dimension, using requested storage. A dimensioned overload shall apply coefficient truncation or zero extension as specified by 🔗 6. Congruence dimensions and coefficient-coordinate transformations. Inequality constraints shall be rejected with std::invalid_argument.
operator/(c,m) for an equality constraint and nonnegative modulus m shall construct the congruence formed from that equality expression with modulus m. In particular a positive supplied modulus shall produce a proper congruence, while zero shall preserve equality. It shall preserve its source and use the default representation. Numerical prerequisites in 🔗 1. Affine congruence meaning and valid numerical use shall apply.
-
5. Owned congruence values and representation conversion PPL-SPEC-000145 Copy construction shall preserve expression, modulus, dimension and source representation; the explicit-storage overload shall select its requested storage. Assignment shall copy the source's entry value and representation, return the target reference, preserve a distinct source and support self-assignment. Rvalue inputs shall admit those copy forms and preserve source value without requiring a distinct move operation. Distinct copies shall survive later source mutation or destruction.
m_swap and PPL swap shall exchange complete values, dimensions and storage; self-swap shall preserve the value. representation() shall report current storage. Successful set_representation(r) shall change only storage, preserving exact exposed coefficients, modulus and dimension. Destruction shall release owned storage. Copy assignment or representation conversion failing while constructing a replacement shall preserve the target.
-
13. Reloadable congruence representation PPL-SPEC-000153 ascii_dump(s) shall write the full affine coefficient expression followed by the token m and its nonnegative modulus; ascii_dump() shall use std::cerr. Export shall preserve its source. For a complete compatible export with representable coefficients, ascii_load(s) shall return true and replace the target with those coefficients, dimension and modulus, retaining destination storage.
Malformed or truncated expressions, missing/invalid modulus tokens, negative moduli and structurally invalid coefficient counts shall return false. If expression loading fails, ascii_load(s) shall return false without reading the modulus marker or value. Trailing input shall remain available. A failed load may modify the target; it shall remain destructible and admit complete valid replacement. No rollback or cross-version wire-format stability is promised. Allocation and configured numerical exceptions may propagate.
-
16. Congruence-system meaning and construction PPL-SPEC-000156 A Congruence_System shall denote the conjunction of its retained congruences over rational coordinates. An empty conjunction shall be true. Default construction shall have dimension zero and no rows; the dimensioned empty constructor shall retain its supplied admitted dimension. A singleton constructor from a congruence shall copy that relation and its dimension. Construction from an equality constraint shall make its modulus-zero singleton; inequalities shall throw std::invalid_argument. Construction from a constraint system shall extract its equality rows and retain its ambient dimension, omitting inequalities.
All constructors shall use requested storage, with default_representation equal to SPARSE. zero_dim_empty() shall borrow a dimension-zero inconsistent singleton, not an empty conjunction, until owning-thread finalization. Initialization, synchronization and numerical/failure preconditions shall follow 🔗 1. Affine congruence meaning and valid numerical use.
-
17. Owned congruence systems, storage conversion and descriptor equality PPL-SPEC-000157 Copy construction and assignment shall preserve the system's row sequence, conjunction and declared dimension; ordinary copies and assignment shall retain source representation, while an explicit-storage copy shall use its argument. Assignment shall return the target, preserve a distinct source, support self-assignment and retain the source when using rvalue copy forms. Copies shall remain independent after source modification or destruction. Swaps shall exchange complete values, dimensions and storage, including self-swap. Successful representation conversion shall select requested dense or sparse storage for all rows without changing their conjunction or dimension. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Affine congruence meaning and valid numerical use.
is_equal_to and system operator== shall test equal declared dimensions and matching retained row counts/order, comparing corresponding congruences semantically. They shall not decide whether differently ordered or redundant systems denote the same conjunction. Storage choice shall not change this comparison. Destruction shall release owned rows.
-
18. System insertion, ownership transfer and coordinate changes PPL-SPEC-000158 Const-reference insertion of a congruence, equality constraint or congruence system shall conjoin copies, preserving sources and target representation. Inequality constraints shall throw std::invalid_argument. Single congruence and constraint insertion shall strongly normalize the inserted copy. Result dimension shall be the maximum input dimension, zero-extending shorter rows. Ordinary self-system insertion and insertion of a borrowed row from the target shall be admitted using entry values.
Rvalue insertion shall conjoin transferred relations, requiring a source distinct from the target system and not borrowing one of its rows. Transferred inputs shall remain destructible. Successful recycled-system insertion shall clear the source to a dimension-zero empty system. clear() shall likewise remove all rows and reset dimension zero while retaining storage.
space_dimension() shall report ambient dimension, and max_space_dimension() the congruence limit. Successful set_space_dimension(n) shall resize all row coefficients by truncation or zero extension and retain moduli. Swapping/permuting system coordinates shall apply 🔗 6. Congruence dimensions and coefficient-coordinate transformations to every row. Dimension and variable arguments shall satisfy that contract's bounds. These are coefficient transformations rather than existential projection.
Const row sources, including const rvalues, shall use preserving insertion. Const system sources shall likewise use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
20. Reloadable congruence-system representation PPL-SPEC-000160 ascii_dump(s) shall export stored row count, public dimension, representation choice and every full congruence row; ascii_dump() shall write that representation on std::cerr. Export shall preserve the source. A complete compatible export with representable coefficients shall load with true, replacing the target conjunction, dimension, stored rows and encoded representation choice.
Malformed/truncated headers or rows, invalid modulus or coefficient structure, and inconsistent encoded row dimensions shall return false rather than be accepted as a valid system. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded row count shall be nonnegative and fit the row container. The decoded header dimension shall be nonnegative and shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
21. Common-modulus normalization of congruence systems PPL-SPEC-001656 For a valid congruence system with positive moduli m1, …, mk, normalize_moduli() shall set every proper row's modulus to L = lcm(m1, …, mk) and multiply its affine expression by L ⁄ mi. It shall preserve row order, row count, ambient dimension, storage representation and the relation denoted by every row. Modulus-zero equalities shall remain unchanged. Empty and equality-only systems shall remain unchanged.
Every evaluated LCM, ratio and coefficient-scaling intermediate shall be representable in the configured coefficient profile. Initialization, lifetime, synchronization and failure guarantees shall follow 🔗 1. Affine congruence meaning and valid numerical use.
-
Incoming links from: 4. Bounded-integer wrapping and guarded evolution of difference shapes 2. Relational construction from affine operands 6. Constraint dimensions and explicit coordinate transformations 7. Constraint kind, coefficients and borrowed expression access 9. Semantic equivalence and exact descriptor identity 10. Conversion of equality congruences to constraints 14. Constraint-system conjunction, construction and shared contradiction 15. Constraint-system owned values and representation conversion 20. Extracting equality constraints from a congruence system 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 6. Java mathematical representations and operation options11
1. Constraint relation meaning and numerical prerequisites PPL-SPEC-000101 A Constraint of dimension d shall describe one relation on rational valuations x ∈ ℚd. With its exposed expression E(x) = b + ∑d − 1i = 0aixi, its three types shall mean E(x) = 0, E(x) ≥ 0 and E(x) > 0, respectively. A coefficient belonging to an internal strictness representation shall not be exposed as a coordinate of this relation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize any access overlapping modification of the same object. Both DENSE and SPARSE storage shall be supported and default_representation shall be SPARSE. Computed construction, conversion, normalization, dimension transformation and comparison guarantees shall require representability of every evaluated coefficient arithmetic step in the selected coefficient profile. Unchecked completion shall not establish this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete constraint. Distinct, unchanged sources shall survive a reported failure; otherwise a modified destination shall remain destructible, without a universal unchanged-state guarantee.
-
4. Owned constraint copying, assignment and swapping PPL-SPEC-000104 Ordinary copy construction shall preserve relation type, exposed coefficients, constant term, dimension and representation. Explicit-representation copying shall use the requested representation. Copy assignment shall replace the target with the source's entry value and representation, preserve a distinct source and return the target reference. Self-assignment shall preserve the constraint. Rvalue arguments shall admit these copy forms without requiring a distinct move operation; the source shall retain its value.
Distinct copies shall remain independent of later mutation and destruction. m_swap and the PPL swap overload shall exchange complete constraint values, including dimensions and representation. Self-swap shall preserve the value. Destruction shall release owned storage. Failure while constructing a replacement for copy assignment shall leave the target unchanged.
-
5. Constraint representation conversion PPL-SPEC-000105 representation() shall report the current coefficient storage. For r equal to DENSE or SPARSE, successful set_representation(r) shall preserve relation type, every exposed coefficient, constant term and dimension, and select r. Repeating the current choice shall preserve the object. A failed replacement allocation shall leave the original representation and value unchanged.
-
Incoming link from: 20. Extracting equality constraints from a congruence system1
10. Conversion of equality congruences to constraints PPL-SPEC-000110 Construction from a zero-modulus Congruence shall yield an equality constraint with the same public dimension and satisfying valuations, using the requested representation. Normalization may rescale its coefficients. The source shall remain unchanged. A proper congruence with nonzero modulus shall be rejected with std::invalid_argument and shall not yield a constraint. Numerical prerequisites in 🔗 1. Constraint relation meaning and numerical prerequisites shall apply.
-
11. Reloadable constraint representation PPL-SPEC-000111 ascii_dump(s) shall export all fields needed to reload the constraint: its full stored coefficient expression, relation token and topology token. ascii_dump() shall use std::cerr. Export shall preserve its source. For compatible complete exported data with representable coefficients, ascii_load(s) shall return true and replace the destination's stored relation, dimension and coefficients, retaining the destination storage choice. It shall preserve the source relation's satisfying set and public kind.
Malformed expression, relation or topology tokens, missing coefficient slots, truncated input, violations of the checked row invariants and inconsistent encoded relation/type combinations shall return false. The expression slot count shall include the constant and any required internal strictness slot; invalid counts shall not be accepted as valid relations. If expression loading fails, ascii_load(s) shall return false without reading the relation or topology suffix. Trailing input shall remain available to the caller. A failed load may change the destination; it shall remain destructible and admit replacement by a subsequent complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate.
-
14. Constraint-system conjunction, construction and shared contradiction PPL-SPEC-000114 A Constraint_System shall denote the conjunction of its constraints over its declared rational coordinate space. An empty conjunction shall be true. An empty public range shall not mean an inconsistent set. Conversely, zero_dim_empty() shall return a borrowed, dimension-zero system containing an inconsistent equality and denoting the empty set of valuations. That shared system shall remain alive until its owning initialized thread is finalized.
Default construction shall create a dimension-zero system with no constraints. Construction from one constraint shall create its singleton conjunction and use that constraint's public dimension. Both shall use the requested representation; default_representation shall be SPARSE. Construction shall own its stored values independently of the source. Use shall satisfy 🔗 1. Constraint relation meaning and numerical prerequisites's initialization, synchronization, arithmetic and failure prerequisites.
-
15. Constraint-system owned values and representation conversion PPL-SPEC-000115 System copy construction shall preserve the conjunction, dimension and representation; the explicit-representation overload shall use its requested storage. Copy assignment shall replace the target with an independent copy of the source's entry value and representation, preserve a distinct source and return the target reference. Self-assignment shall preserve the system. Rvalue arguments shall admit the copy forms without requiring a distinct move operation, retaining source value. Copies shall survive later source modification or destruction.
m_swap and the PPL swap overload shall exchange entire system values, dimensions and representations. Self-swap shall preserve the system. representation() shall report current storage. Successful set_representation(r) for DENSE or SPARSE shall select that storage for the system and its rows while preserving conjunction and dimension. Destruction shall release owned storage. Copy-assignment replacement failure shall preserve the target. Other failure guarantees shall follow 🔗 1. Constraint relation meaning and numerical prerequisites.
-
16. System insertion, dimension adjustment and clearing PPL-SPEC-000116 insert(const Constraint&) shall conjoin a copy of its source with the system's existing meaning, preserve the source constraint and retain system representation. The resulting dimension shall be the maximum of old system and inserted constraint dimensions. Rows with fewer coordinates shall be extended with zero coefficients. Inserting duplicates or tautologies shall preserve the corresponding conjunction; insertion of an inconsistent constraint shall make it unsatisfiable. Retrievable rows need only describe an equivalent conjunction and need not preserve insertion order or duplicate multiplicity.
Rvalue insertion shall have the same mathematical, coordinate and topology semantics while permitting reuse of source storage. The source shall not borrow a row of the receiving system and shall remain destructible and assignable, with no unchanged-value guarantee. Const sources, including const rvalues, shall use preserving insertion.
max_space_dimension() shall return the constraint dimension limit. space_dimension() shall return the declared system dimension. set_space_dimension(n) shall require an admitted result dimension and apply the constraint coordinate-resizing semantics in 🔗 6. Constraint dimensions and explicit coordinate transformations to its rows; an empty system may retain a positive dimension. clear() shall remove all constraints and reset dimension zero, retaining representation. These are descriptor transformations and do not promise existential projection when nonzero coefficients are discarded. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
19. Reloadable constraint-system representation PPL-SPEC-000119 ascii_dump(s) shall export the system's complete stored coefficient rows, public dimension, topology, representation choice and row-state fields needed for compatible reloading. ascii_dump() shall use std::cerr. Export shall preserve the source.
Loading a complete compatible export with representable coefficients shall return true and replace the destination with the encoded system, retaining its conjunction, public dimension and encoded representation choice. Malformed or truncated headers, row data, relation/topology fields and inconsistent encoded dimensions or row-state fields shall be reported by false rather than accepted as a valid system. Trailing input after the representation shall remain available. Failure may change the destination; it shall remain destructible and admit complete valid replacement. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
Incoming link from: 9. Growth preserves the old square and adds infinity coordinates1
1. Square bound-matrix values and valid ownership PPL-SPEC-000751 DB_Matrix<T> shall own a square coordinate-indexed array of T entries, stored as independently owned DB_Row<T> rows. Row/column coordinates shall determine entry identity; neither spare capacity nor row-owner addresses shall change represented array values. Each selected element operation shall retain 🔗 1. Extended-number row meaning and construction states and its supported arithmetic, rounding, resource, initialization and synchronization prerequisites. Every admitted dimension shall fit both advertised row and column bounds, with representable capacity and memory calculations.
Mutable row access shall not permit clients to break the matrix shape: callers shall retain each row's logical size and actual shared capacity when returning to matrix operations. Storage access/copying may carry the selected element type's valid extended values; operations requiring only finite or positive-infinite bound values shall state that scope separately. Borrowed rows and coefficients shall remain subject to their owner's lifetime and the selected mutation's invalidation rules.
-
2. Empty and sized matrix construction and dimension limits PPL-SPEC-000752 Default construction shall create a zero-by-zero matrix with no logical rows and an empty row range. Construction with admitted dimension n shall create exactly n rows of n entries each, initially positive infinity at every coordinate, including the diagonal. Zero dimension shall be admitted by either form. Destruction shall release every owned row and coefficient exactly once.
max_num_rows() shall report the supported row-container count bound, and max_num_columns() the supported DB_Row<T> count bound. Square construction shall require both bounds; they shall not promise enough available memory to realize the advertised maximum. Construction failure shall retain 🔗 16. Incomplete matrix cleanup and operation-specific failure guarantees.
-
3. Independent matrix copy construction PPL-SPEC-000753 Ordinary copying shall create the same square dimension and exactly the source's entry values in independently owned rows. It shall preserve the source, and changes or destruction of either owner shall not change the other's entries. Physical spare capacities need not be copied exactly. A source supplied through an rvalue shall use ordinary copying; no distinct move constructor shall be required. Empty sources shall copy as empty matrices. Failed copying shall release the incomplete target and preserve the source under 🔗 16. Incomplete matrix cleanup and operation-specific failure guarantees.
-
4. Pointwise upward matrix conversion PPL-SPEC-000754 Cross-element-type construction shall create the same square dimension and an independent row at every source coordinate. Its entry conversion shall follow 🔗 7. Pointwise upward conversion of extended-number rows: finite successful conversions shall bound the exact source upward, exact representable values shall remain exact, and supported extended values shall retain their meanings. The source shall remain unchanged; an empty source shall yield an empty target. Source/target policies shall admit every requested conversion and rounding direction, including all intermediates. Failure shall follow 🔗 16. Incomplete matrix cleanup and operation-specific failure guarantees.
-
Incoming link from: 16. Incomplete matrix cleanup and operation-specific failure guarantees1
5. Matrix value assignment and exceptional target state PPL-SPEC-000755 Successful assignment shall replace the target by the source dimension and independently owned entry values and return the target wrapper. The source shall be preserved. Self-assignment shall retain all entries, dimension and capacity metadata without rebuilding the row container.
A reported recoverable failure during assignment may leave a partially replaced target. Its completed objects and owned allocations shall remain safely destructible; no square value or coherent old/new mathematical result shall be claimed for that target. A complete subsequent assignment from a valid owner may establish a new valid value. Source state and temporary-resource cleanup shall retain 🔗 16. Incomplete matrix cleanup and operation-specific failure guarantees.
-
Incoming link from: 16. Incomplete matrix cleanup and operation-specific failure guarantees1
9. Growth preserves the old square and adds infinity coordinates PPL-SPEC-000759 Growth shall require an admitted new dimension at least the current dimension. It shall produce that new square, preserving every old coordinate's value in the upper-left common square and initializing every newly introduced row or column position to positive infinity. Equal-dimension growth shall preserve the existing value. Storage may be recycled or replaced; clients shall reacquire borrowed row/entry positions after a size change.
A supported recoverable allocation or element-construction/copy failure shall preserve the old complete square value and dimension, destroy incomplete rows/columns, and permit a valid retry. Physical capacities and wrapper addresses need not remain unchanged. Common prerequisites shall retain 🔗 1. Square bound-matrix values and valid ownership.
-
Incoming link from: 16. Incomplete matrix cleanup and operation-specific failure guarantees1
10. Discarding resize establishes the requested square PPL-SPEC-000760 Discarding resize shall admit any supported new dimension, including zero, shrinkage, equal size and growth. It shall establish the requested square with valid logical entries. It shall make no preservation promise for old entry values; callers shall initialize values they require after the call. Newly constructed logical positions shall initially be positive infinity. Storage may be recycled and clients shall reacquire borrows.
A supported recoverable failure during growth preparation shall destroy incomplete additions and retain the old complete square value and dimension so that a retry remains possible. Shrinkage shall retain the selected element types' nonthrowing destruction prerequisite.
-
12. Exact ASCII input, forbidden payloads and failure state PPL-SPEC-000762 The decoded row count shall be nonnegative and shall not exceed min(max_num_rows(), max_num_columns()). ASCII load shall return false for a greater count before resizing or requesting storage for that extent. For an admitted count, it shall read exactly its square count of row-major payloads, allocating each rectangular row only after its payload has been read. A successful load shall establish a valid square with exactly those mathematical finite or positive-infinite values, requiring exact selected-profile conversion of each token. Missing or malformed dimension/payload tokens, NaN, negative infinity and inexact payload conversions shall not yield true. Following stream content shall remain available after the completed record and permitted separating whitespace. Supported dimensions/resources and stream/numeric-policy prerequisites shall apply.
A false parse or reported exception shall not claim an old or new complete mathematical value. The target shall remain safely destructible and may be replaced by a complete valid assignment or complete supported load; callers shall not rely on uncommitted partial values. Recoverable resource exceptions shall propagate through their configured channels.
-
16. Incomplete matrix cleanup and operation-specific failure guarantees PPL-SPEC-000766 Failure during sized/copy/upward-conversion construction shall destroy every completed row/coefficient and release all resources acquired for the incomplete matrix, preserving any source matrix. Destruction shall safely release storage for the completed objects in every documented exceptional state. Assignment shall retain 🔗 5. Matrix value assignment and exceptional target state, growth and discarding resize 🔗 9. Growth preserves the old square and adds infinity coordinates and 🔗 10. Discarding resize establishes the requested square, and input 🔗 12. Exact ASCII input, forbidden payloads and failure state.
Recoverable allocation, coefficient and stream exceptions shall not become successful mathematical values. The guarantees shall require the selected element operations to retain their supported failure states and nonthrowing destruction, and shall not promise recovery from fatal GMP allocation failure or violated caller preconditions.
-
Incoming links from: 4. Bounded-difference distance normalization, boundaries and workspaces 17. Rectilinear distance between bound-entry arrays 18. Euclidean distance between bound-entry arrays 19. Maximum-coordinate distance between bound-entry arrays 1. Octagonal distance normalization, boundaries and workspaces5
20. Distance scratch storage, admissible overlaps and numeric conditions PPL-SPEC-000770 Distance calls shall require live valid square matrices, admitted finite or positive-infinite entries, a supported requested rounding direction, and temporary/result profiles supporting all conversion, subtraction, accumulation and finalization operations. Every intermediate bound shall satisfy its selected profile's representability/resource prerequisites. The three supplied mutable temporary objects shall be pairwise distinct and disjoint from matrix entry storage; their values may be overwritten.
The result output may be independent, overlap any one temporary when types permit, or overlap one live source entry when all scratch objects remain independent. Result meaning shall use the matrices' values on entry. The same matrix may be supplied for both inputs. Unequal-dimension failure shall precede scratch/result modification. Other failures shall retain the selected numerical policies' own permitted output/scratch states without a general rollback guarantee. Initialization and synchronization shall retain 🔗 3. Thread initialization, default state and finalization where required. The generic distance helper shall apply these conditions when selected with the library's rectilinear, Euclidean or maximum-coordinate distance specialization for the same temporary type.
-
1. Extended-number row meaning and construction states PPL-SPEC-000651 DB_Row<T> shall own an indexed finite sequence of extended-number values. The selected T and checked-number operations shall support positive infinity initialization, the requested copying/conversion, validity and memory hooks, and nonthrowing destruction. Numerical operations shall satisfy their configured policy, representability and rounding prerequisites; initialization and synchronization shall follow 🔗 3. Thread initialization, default state and finalization where the selected element operations require them.
Default construction shall produce a preconstructed owner with no row storage. This state shall admit destruction, ordinary copying/assignment, complete-owner swapping and first allocation/construction. Size, element, iterator, memory and validity queries shall require a constructed row. A constructed zero-length row shall be distinct from a preconstructed owner and shall admit ordinary constructed-row queries. Calls shall use live valid owners, nonoverflowing supported sizes/capacities and sufficient resources; failures shall not be successful numerical results.
-
3. Independent row copies and enlarged copies PPL-SPEC-000653 Ordinary copy construction shall preserve a source's construction state. A constructed source shall yield an independently owned sequence of the same size and values; a preconstructed source shall yield a preconstructed target. The explicit-capacity copy shall require a constructed source and capacity at least its size. The size/capacity copy shall additionally require the new size to be at least the source size and at most capacity; it shall preserve source entries and initialize every additional entry to positive infinity.
Successful copying shall not alter the source. Later changes or destruction of either owner shall not change the other's values. A source supplied through an rvalue shall use ordinary copy construction; no distinct move operation shall be required. Each capacity shall satisfy 🔗 2. Allocation and positive-infinity row construction; failed construction shall follow 🔗 10. Row construction cleanup and recoverable failure states.
-
Incoming link from: 10. Row construction cleanup and recoverable failure states1
4. Row assignment and ownership-preserving swaps PPL-SPEC-000654 Assignment shall replace the target with an independent ordinary copy of the source's values and construction state and return the target wrapper. It shall admit distinct owners and self-assignment. A recoverable failure preparing the replacement shall preserve the prior complete target and source. Assignment from a preconstructed source shall release old target storage and leave the target preconstructed.
Member/free swap shall exchange complete owned implementations and their construction states without coefficient copying or allocation, admitting preconstructed, constructed, empty and self-swapped rows. Existing element references/iterators shall retain the same live objects, now owned by the other row. Row iter_swap shall perform that whole-owner exchange at two valid vector positions. Old target borrows after replacement assignment shall not be reused. 🔗 1. Extended-number row meaning and construction states shall apply.
-
6. Within-capacity expansion and suffix destruction PPL-SPEC-000656 Expansion shall require a constructed row and a new size between its current size and actual capacity. It shall retain all existing entries and construct each added logical position as positive infinity. Shrinking shall require a new size no greater than the current size, retain the prefix and destroy the removed suffix in reverse construction order. Re-expanding previously removed positions shall create fresh infinity entries, without restoring their former values.
Both operations shall retain backing capacity and all surviving prefix objects/addresses. Borrows of destroyed suffix entries shall become invalid. Zero/no-op sizes shall be admitted. If a recoverable element construction failure interrupts expansion, the row shall retain its old prefix plus exactly the successfully constructed new prefix and record that logical size; it shall remain destructible and reusable under 🔗 10. Row construction cleanup and recoverable failure states.
-
Incoming links from: 4. Pointwise upward matrix conversion 4. Pointwise upward representation conversion2
7. Pointwise upward conversion of extended-number rows PPL-SPEC-000657 Upward-approximation construction shall require a preconstructed target, a constructed source, and an admitted capacity at least the source size. It shall produce the same logical size, independently owning a converted value at each source coordinate. Each successfully converted finite value shall be an upper bound on its exact source value under the selected conversion's supported ROUND_UP semantics; exactly representable conversions shall preserve that value. Admitted signed infinities shall retain their extended-number meaning.
Conversion shall preserve the source. Selected source/target policies shall support all requested values and rounding directions, with every arithmetic/resource precondition active. Empty constructed sources shall produce constructed empty targets. Recoverable failures shall follow 🔗 10. Row construction cleanup and recoverable failure states and shall not be reported as successful bounds.
-
9. Constructed-row validity checks and diagnostic metadata PPL-SPEC-000659 On a constructed row with valid storage and an admitted actual capacity, OK(expected_size,expected_capacity) shall return false for a mismatched logical size or for an entry that fails its own OK() hook or represents NaN. A row with matching size and valid non-NaN entries shall pass these checks. The configured extra-debug representation shall additionally compare its stored capacity with supplied capacity metadata and ensure logical size fits that stored capacity, treating the configured one-slot minimum for zero request consistently.
Ordinary configurations shall not be required to retain/check capacity metadata. This query shall not repair entries or validate unconstructed storage. An exception from an element hook shall propagate with the hook's own state guarantee; node ownership shall remain with the row.
-
10. Row construction cleanup and recoverable failure states PPL-SPEC-000660 A recoverable backing-allocation failure shall release incomplete storage; failed first allocation shall leave a postconstruction receiver preconstructed. Failure of a sizing/copy constructor shall destroy every completed coefficient and release all storage of the incomplete owner, preserving the source. Failed replacement assignment shall retain 🔗 4. Row assignment and ownership-preserving swaps.
If a postconstruction or within-capacity expansion call fails after acquiring storage, its receiver shall remain constructed with the successfully completed coefficient prefix recorded in its logical size. It shall retain owned storage and admit destruction, valid shrinkage, copying and a valid expansion retry. It shall not require a repeat of first allocation on the already allocated receiver. No completed element shall be leaked or destroyed twice. A configured fallback's already-live first physical element shall retain its correct lifetime even at logical size zero. These guarantees shall apply to supported recoverable C++ exceptions rather than fatal GMP allocation failure or violated inputs.
-
1. Determinate values and copy-on-write ownership PPL-SPEC-001388 Construction from a pointset, constraint system or congruence system shall embed the corresponding base-domain value. Copying may share its representation, but subsequent mutation through either adapter shall preserve the other value. In a thread-safe build each copy shall own its own representation so that const queries on different threads can update the embedded values' caches independently. Assignment shall support self-assignment and return its receiver. Exchange shall swap the embedded values. pointset() const shall return a borrowed const view. Both pointset() overloads shall require an lvalue wrapper; mutable and const temporary wrappers shall be rejected. Mutable pointset() and mutate() shall first detach shared storage. A retained mutable reference shall not be used across subsequent copying or other operations that can share or replace its representation. Destruction shall release the representation when its last owner is destroyed.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Determinate order and distinguished values PPL-SPEC-001389 Entailment shall mean that the receiver's embedded pointset is contained in y; definite equivalence and equality shall use base equality. Shared representations may short-circuit these tests. Top and bottom shall mean base universe and empty, respectively. Inequality shall negate equality.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Determinate operations and binary lifting PPL-SPEC-001390 Upper bound, meet and concatenation shall detach as needed and delegate to base upper bound, intersection and concatenation, respectively. Their mathematical precision and argument admission shall follow the corresponding base member. lift_op_assign(f) shall return a function object which invokes f on a writable detached first pointset and a const second pointset. Self-aliasing shall follow the corresponding base operation. The function object shall retain a copy of f.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Determinate display, invariants and memory PPL-SPEC-001391 OK shall return the embedded pointset's invariant result. External memory shall include the representation object and its base external storage; total memory shall add sizeof(*this). Shared storage may be counted for each adapter. Stream insertion shall display the embedded pointset and return the supplied stream.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Exact comparison of revised PIP tableau columns PPL-SPEC-001646 The file-local column_lower helper shall compare two scaled columns of an admitted revised PIP tableau. The equally sized mapping and basis sequences shall enumerate each nonbasic tableau row and each basic variable column once in variable order. Reconstruct column Cj at position k as the matrix entry at mapping[k],j for a nonbasic entry, and as one or zero according as a basic entry maps to j or another column. Compared columns shall be lexicographically positive. Both pivot rows shall be actual rows of that tableau, with strictly positive selected entries pa, pb.
The result shall be true exactly when − caCja ⁄ pa < lex − cbCjb ⁄ pb, comparing reconstructed components in the stated variable order. The two column indices and pivot rows may coincide; zero and either sign of the costs shall be admitted. No input shall change. Comparisons shall evaluate complete two- and three-factor products exactly without requiring comparison-only products to fit the stored coefficient profile. The normal initialized coefficient/temporary- resource prerequisites shall apply.
Omitting the final reconstructed component shall be permitted when the admitted tableau invariants prove it cannot be the first unequal component. For distinct columns and two nonzero costs, one of their distinct basic unit entries distinguishes them before the final position. With exactly one nonzero cost, its positive pivot entry also appears among the mapped rows, so its basic unit entry and that row cannot both occupy the final position. Two zero costs yield equal vectors. Same-column comparisons shall use the positive-column ratio ordering.
-
Incoming links from: 2. Embedded-node construction and link initialization 3. Insertion before and after a live embedded position 4. Embedded-node erasure and automatic unlink on destruction 5. Empty owning-list construction and remaining-node destruction 6. Owning-list front, back and positional insertion 9. Owning-list node validity hooks6
1. Embedded chain identity, links and ownership prerequisites PPL-SPEC-000642 Implementation::Doubly_Linked_Object shall provide an embedded forward/backward link pair; Implementation::EList<T> shall use a distinct owner-resident sentinel to form an ordered ring of T nodes. Valid linked use shall require live mutually reciprocal neighbor links and each node to belong to at most one chain. Node addresses shall remain fixed while linked. Copying or moving memberwise link fields shall not establish an independent ring; independent owner copying or relocation shall remain outside valid linked use.
List nodes shall expose their accessible Doubly_Linked_Object base, support the selected T::OK() const hook, and remain compatible with scalar delete T* while list-owned. Destructors shall not throw. A linked node shall remain alive until explicitly removed or destroyed; borrowed iterators shall obey 🔗 7. Embedded-list iterator borrowing and valid linked positions. These structures shall require no numerical-library initialization. The link operations themselves shall neither allocate nor copy element values.
-
Incoming link from: 7. Owning-list removal returns successor and node ownership1
4. Embedded-node erasure and automatic unlink on destruction PPL-SPEC-000645 Erasing a live linked node shall reconnect its preceding and following neighbors, return its former following node, and leave every unrelated node's order and value unchanged. The removed node shall remain alive and caller-owned. It shall be independently destructible or insertable again; later operations on the surviving chain shall not cause its eventual destruction to remove or corrupt surviving nodes. Erasing an isolated self-linked node shall return that same node.
Destroying a currently linked node shall unlink it without destroying its neighbors or their payloads. Removal and destruction shall require valid initialized link use under 🔗 1. Embedded chain identity, links and ownership prerequisites and 🔗 2. Embedded-node construction and link initialization.
-
Incoming link from: 1. Threshold-ordered pending events and caller prerequisites1
5. Empty owning-list construction and remaining-node destruction PPL-SPEC-000646 A new EList<T> shall contain no nodes and shall establish its own live sentinel with empty mutable and const iterator ranges. No element shall be constructed or allocated by empty-list construction.
The list shall own nodes admitted by 🔗 1. Embedded chain identity, links and ownership prerequisites while they remain linked in it. List destruction shall remove and scalar-delete every remaining node exactly once, then destroy the empty sentinel. Previously removed nodes shall remain outside this destruction obligation. Destruction shall not invoke handlers or other unrelated client actions beyond the nodes' own destruction effects.
-
7. Owning-list removal returns successor and node ownership PPL-SPEC-000648 Erasure shall require an occupied current same-list iterator. It shall remove exactly that node without deleting it, return its former following element or the same list's end, and transfer the removed node's ownership to the caller. Other node addresses, values and relative order, their live iterators and the owner sentinel shall remain unchanged. First, interior, last and sole-node removal shall be admitted.
The removed node shall be independently destructible or insertable into an eligible list, including after intervening operations on its former owner; its eventual cleanup shall not alter surviving-node membership. An emptied list shall remain reusable. Safe detachment shall retain 🔗 4. Embedded-node erasure and automatic unlink on destruction.
-
9. Owning-list node validity hooks PPL-SPEC-000650 For a structurally valid live list under 🔗 1. Embedded chain identity, links and ownership prerequisites, OK() shall call the nodes' const OK() hooks in list order until the first false result or the end. It shall return false at the first false hook and true if all hooks return true, including an empty list. This result shall describe those node-hook outcomes; structural validity shall remain a precondition rather than a conclusion supplied by this query. Hooks shall retain chain structure and ownership.
An exception from a hook shall propagate, preserving list membership and node ownership when the hook itself preserves them. The list shall not destroy nodes or interpret such an exception as a successful true or false query result.
-
Incoming link from: 12. Watcher notification lifetimes and exclusive use1
1. Polymorphic event-action interface and virtual destruction PPL-SPEC-000815 Handler shall be an abstract interface with const action dispatch and virtual destruction. Calling act() through a live base reference shall dispatch to the selected derived handler. Deleting an owned derived handler through a base pointer shall run its derived destruction and release its wrapper exactly once. A borrowed handler shall not become owned merely by being passed to a pending event.
Construction, dispatch and destruction shall require the selected external callback/flag objects and synchronization to remain valid. These wrappers shall not themselves require global PPL initialization or timer availability. A caller invoking actions in a signal handler or shared threshold-watcher context shall retain that surrounding interface's operation and thread/signal restrictions.
-
2. Flag-handler binding and binding-preserving copies PPL-SPEC-000816 Handler_Flag construction shall bind the supplied holder reference and flag object without invoking a priority query, installing the flag or taking ownership of either external object. Copy construction and rvalue construction shall preserve those same bindings; later actions shall observe the holder's current value rather than a pointer-value snapshot made during construction. Ordinary assignment of this reference-binding wrapper shall not be supported.
The holder shall be a live volatile pointer to const Flag_Base and Flag* shall convert to Flag_Base*. For a nonnull holder, the existing pointee shall belong to the compatible Flag object family, so the implementation's declared base-to-flag cast is well formed and valid. The flag/holder and any nonnull pointee shall outlive their actual access. Wrapper destruction shall not delete or alter them.
-
3. Strict-priority flag installation PPL-SPEC-000817 On act(), a null bound holder shall be set to the bound flag address without querying flag priorities. For a nonnull valid holder, the action shall install the bound flag exactly when the existing flag's observed priority is strictly lower than the bound flag's observed priority. Equal or higher existing priority shall preserve the existing pointer. Priority queries shall supply comparable values consistent with that call's decision; they shall not themselves rebind the holder. External priority changes between calls shall be observed by later actions.
The operation shall not own/delete flags or allocate a wrapper. If a priority query reports an exception, it shall propagate through ordinary C++ dispatch without an assignment by the handler to the holder; any side effects of the query itself shall remain its own contract.
-
4. Function-handler target binding and copies PPL-SPEC-000818 Handler_Function construction shall store the supplied function pointer without invoking it. Copy and rvalue construction shall retain the same target. Ordinary assignment shall not be supported. A null pointer may be stored and destroyed without invocation, but shall not be an admitted action target. The callable code shall remain valid at invocation. Construction/copy/destruction shall not call or own the function or allocate auxiliary callback state.
-
5. Function action dispatch and callback failure PPL-SPEC-000819 With a live nonnull target, Handler_Function::act() shall call the stored function exactly once per invocation and return normally exactly when that call returns normally. A callback exception shall propagate with its identity and previously performed callback effects; no rollback of arbitrary callback state shall be required. The wrapper shall remain bound to the same target and permit a later admitted call. No invocation shall silently replace the callback with another target or delete its external state.
-
Incoming links from: 2. Independent backend construction, copying and affine arithmetic 3. Raw coefficient access, zero ranges, gcd and support filtering 4. Range scaling and exact affine elimination 5. Backend equality, comparison and common-variable queries 6. Owned raw iterator handles and borrowed coefficient positions 7. Backend row export, serialization, diagnostics and accounting6
1. Internal affine value, coefficient storage and dispatch prerequisites PPL-SPEC-001622 For Row equal to Dense_Row or Sparse_Row, a live Linear_Expression_Impl<Row> of dimension d shall own d + 1 coefficient slots. Slot zero shall contain the constant; slot i + 1 shall contain the coefficient of Variable(i). Dense storage shall retain zero slots; valid sparse expression storage shall contain no explicit zero entries. Trailing zero coordinates shall retain the ambient dimension. representation() shall return DENSE or SPARSE accordingly, and max_space_dimension() shall equal Row::max_size()-1.
Calls shall satisfy the initialization, synchronization, coefficient-range and resource conditions of 🔗 1. Affine value, numerical prerequisites and shared zero. Raw slot indices shall be in [0, d + 1) and half-open windows shall satisfy 0 ≤ s ≤ e ≤ d + 1. A new dimension shall fit the selected backend's maximum; its increment for the constant slot shall be representable. Internal coordinate transformations shall receive in-dimension variables, valid distinct permutation cycles, and growth within that maximum.
An argument dispatched through Linear_Expression_Interface shall have one of these two concrete backend types. Dispatch shall preserve the operation's meaning for every dense/sparse pairing. Setters and dimension transformations shall implement the coefficient effects of 🔗 5. Ambient dimension queries and trailing-coordinate resizing, 🔗 6. Coefficient access, replacement and zero predicates and 🔗 12. Explicit coefficient-coordinate transformations on these admitted inputs. A const access shall borrow its coefficient according to the selected traits; reads beyond the homogeneous dimension through coefficient(v) shall return zero. Mutations shall invalidate borrowed positions according to their storage.
The internal row_data() accessor shall borrow the complete read-only row only from a live lvalue expression. Mutable and const temporary expression owners shall be rejected. A row borrow shall not outlive its owner or a mutation that invalidates the underlying coefficient storage.
coefficient_is_owned(n) shall identify a reference to a stored coefficient in assertion builds when coefficient arguments use reference traits, without changing the expression. With value traits or assertions disabled it shall return false. Internal scalar-independence preconditions shall apply in every build mode; that diagnostic predicate shall not replace them.
-
2. Independent backend construction, copying and affine arithmetic PPL-SPEC-001623 Default construction shall create the zero expression of dimension zero; coefficient and variable construction shall implement 🔗 2. Zero, constant, variable and dimensioned construction. The sizing constructor's Boolean argument shall distinguish its overload and shall not alter its meaning: it shall create the zero expression of the admitted requested dimension. Ordinary, cross-storage and interface-based copy construction shall produce independent coefficients. A dimensioned copy shall retain the selected prefix and zero-extend as necessary. Private construct helpers shall establish those same copied values. Destruction shall release the owned row without changing a distinct source.
Backend affine additions, subtractions, multiplication, truncating division, negation, normalization and coordinate updates shall implement the value rules of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization. Expression addition and subtraction shall admit self operands. Whole-expression combinations and scaled accumulations shall receive a distinct source; their scalar arguments shall be independent of modified target coefficients. Multiplication and division factors shall likewise be independent of the target. Division shall receive a nonzero divisor. Scaled variable accumulation shall retain the variable's dimension even for a zero factor; zero-factor scaled expression accumulation shall preserve the target's current dimension and value.
The prerequisites of 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites shall apply. Each operation that returns a backend reference shall return its target. Distinct sources shall retain their values and dimensions.
-
3. Raw coefficient access, zero ranges, gcd and support filtering PPL-SPEC-001624 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get(i) shall return the raw coefficient ai; set(i,n) shall replace it by the entry value of n, removing a sparse entry when zero. is_zero() shall test every slot; all_homogeneous_terms_are_zero() shall exclude slot zero.
For an admitted window [s, e), all_zeroes shall test every slot, num_zeroes shall count zero slots, and gcd shall return the nonnegative greatest common divisor of those coefficients. An empty or all-zero window shall have gcd zero. The positive gcd shall be representable in the selected coefficient type. first_nonzero(s,e) and last_nonzero(s,e) shall return the least and greatest nonzero slot, respectively, or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero for the all-zero vector.
all_zeroes(vars) shall test precisely the selected homogeneous coefficients. all_zeroes_except(vars,s,e) shall test the window after excluding the selected variable coefficients; slot zero shall never be excluded by a variable set. Empty windows shall satisfy both universal predicates. has_a_free_dimension_helper(indices) shall retain exactly those input raw indices whose coefficients are zero, inserting no new indices. Variable sets and raw indices shall be within the respective admitted extent. All queries shall preserve the expression.
-
4. Range scaling and exact affine elimination PPL-SPEC-001625 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, mul_assign(c,s,e) shall multiply exactly the raw slots in [s, e) by c; zero shall clear that window. exact_div_assign(c,s,e) shall divide those slots exactly by a nonzero c that divides every selected coefficient. negate(s,e) shall negate precisely those slots. Every operation shall retain dimension and all coefficients outside its window.
For distinct target x and source y, range linear_combine shall assign xi : = c1xi + c2yi from entry values for s ≤ i < e, with nonzero scalars. linear_combine_lax shall admit zero scalars as well. Both windows shall fit their respective expressions. Whole-expression forms shall use the maximum input dimension and zero-extend absent coordinates. Scalar arguments shall be live and independent of modified target coefficients. The source shall retain its value and dimension. Empty windows shall preserve the target; valid sparse results shall contain no explicit zeros.
The raw-index elimination overload shall require equal dimensions, a distinct source and nonzero pivot coefficients xk, yk. With g = gcd(|xk|, |yk|) > 0, it shall replace every target coefficient by (yk ⁄ g)xi − (xk ⁄ g)yi. The selected pivot shall become zero. The variable overload shall use raw index v.space_dimension(). All evaluated coefficient arithmetic, including normalization factors, shall meet the selected profile's representability conditions.
-
Incoming link from: 1. Descriptor collection identity and affine comparison1
5. Backend equality, comparison and common-variable queries PPL-SPEC-001626 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, full is_equal_to(y) shall require equal dimensions and equal raw coefficient vectors. Range equality shall compare only the admitted common window. Scaled range equality shall test c1xi = c2yi at every selected slot, including when either scalar is zero. Each evaluated scaled product shall be representable. Empty-window equality shall hold.
compare(y) shall compare homogeneous coefficients in increasing variable order, treating absent trailing coefficients as zero, and compare the constant only if all homogeneous coefficients agree. It shall return -2 or 2 for the first homogeneous difference, -1 or 1 for a constant-only difference, and zero for equal zero-extended affine values. Consequently, different declared dimensions containing only additional zero coefficients may compare as zero while failing full dimension-sensitive equality.
have_a_common_variable(y,first,last) shall hold exactly when some variable in the admitted half-open variable range has nonzero coefficients in both operands. Constants shall be irrelevant. All queries shall preserve their operands and shall have the same meaning through typed and interface dispatch.
-
6. Owned raw iterator handles and borrowed coefficient positions PPL-SPEC-001627 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, begin() and end() shall allocate independent polymorphic iterator handles delimiting the nonzero homogeneous coefficients in increasing variable order. lower_bound(v) shall allocate a handle at the first such variable at least v, or at end. The search variable shall be within the dimension or its one-past position. The caller shall delete each allocated handle through its virtual interface. The handles shall borrow the live expression's row without owning it.
Direct nested-iterator construction shall require a row of at least one slot and a starting raw index 1 ≤ i ≤ row.size(). It shall borrow that row at the first nonzero slot at or after i, or at end. The row shall outlive every such handle.
clone() shall allocate an independent handle at the same borrowed position. Advancing or destroying one handle shall preserve another handle's position and the coefficients. Dereference, variable() and index() shall require a live non-end position; index shall be variable().id()+1. Increment shall move to the next nonzero homogeneous coefficient, admitting arrival at end. Decrement shall require a preceding nonzero homogeneous coefficient and shall move to it, including from end. Constant slot zero shall be excluded.
Equality shall compare positions in the same row and concrete iterator type. Expression mutation shall invalidate borrowed positions as declared for the row; the caller shall obtain new handles afterward. Allocation failures shall propagate without changing the expression or existing handles. The internal zero-skipping helpers shall implement this traversal without changing values.
-
Incoming link from: 6. Sparse equality and line pivot selection1
7. Backend row export, serialization, diagnostics and accounting PPL-SPEC-001628 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get_row(r) shall replace a dense or sparse output with an independent copy of the complete raw coefficient vector. The copy shall include its logical extent, all constant and trailing zero slots, and shall not borrow the backend's coefficient storage.
ascii_dump(stream) shall emit size, the raw slot count, and every coefficient in slot order, using the producer grammar of 🔗 13. Reloadable ASCII export and replacement loading. ascii_load(stream) shall implement that raw grammar: require its exact size keyword and a nonzero raw count, replace the row and read exactly that many coefficients. Normal malformed or truncated extraction shall return false; resource and stream exceptions shall propagate. A rejected or throwing load may leave a partially replaced row; only destruction shall be required until the caller restores a valid value. A following token shall remain available after a complete record. The selected coefficient input grammar, stream formatting and exception masks shall retain their ordinary behavior.
print(stream) and the free stream insertion shall implement the affine format and variable formatter dispatch of 🔗 14. Human-readable affine output and formatter dispatch; insertion shall return its stream. Source values shall be preserved by export and print. OK() shall return false for a row of size zero, and sparse OK() shall also reject any explicit stored zero, with its documented diagnostic to std::cerr. This local check shall not inspect unrelated domain state. external_memory_in_bytes() shall report the owned row's external storage; total_memory_in_bytes() shall add sizeof(*this).
-
Incoming links from: 2. Floating constant linearization 3. Unary and unsupported operator dispatch 4. Rounding-aware addition linearization 5. Rounding-aware subtraction linearization 6. Interval-scalar multiplication linearization 7. Nonzero interval-divisor linearization 8. Floating and integer cast linearization 9. Reference association and symbolic-store lookup8
1. Target-adapted floating expression evaluation PPL-SPEC-000991 For a well-formed floating-point expression and sound composite abstract store, linearize() shall return true only with a linear form enclosing every modeled expression value consistent with the entry inputs, including the analyzed operations' rounding error. Target nodes and the oracle shall meet 🔗 4. Target-specific concrete-expression adapter protocol, 🔗 6. Oracle interval and expression-value queries and 🔗 7. Oracle reference-to-coordinate associations. Each stored affine binding shall already enclose the corresponding coordinate in that same modeled state. Correlations shall use consistent coordinate identities.
C shall have a supported native floating-point boundary type and sound interval operations under its initialized arithmetic/FPU prerequisites. Modeled metadata shall not itself establish numerical format support. The selected relative/absolute-error helpers shall support every format for which the operation needs an error bound. Allocation, callback and selected arithmetic operations shall satisfy their documented preconditions.
On false return, the output shall not establish a complete enclosure; no preservation of its prior value shall be promised. Documented callback, resource and unsupported-operation exceptions may propagate. Output owners shall remain safely destructible and reusable after such failure. Analysis shall use input entry values even when result designates a store binding; only the designated output may then change, and other input bindings and target nodes shall remain unchanged. No node or oracle ownership shall be acquired.
-
2. Floating constant linearization PPL-SPEC-000992 For a floating-constant node, linearize() shall query the oracle for that constant. Refusal shall return false. Success shall replace result with a dimension-zero form whose constant is the returned interval and whose homogeneous coefficients are zero. This leaf shall add no operation-rounding error beyond the oracle's enclosure. A valid unbounded oracle interval shall remain an admitted constant result; true at this leaf shall not by itself certify finite coefficients. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.
-
3. Unary and unsupported operator dispatch PPL-SPEC-000993 For unary UPLUS, linearize() shall return the operand's linearization without an additional rounding term. For UMINUS, it shall propagate operand refusal; on success it shall negate every coefficient interval, preserving the operand form's dimension. Unary BNOT shall report unsupported evaluation by throwing std::runtime_error.
Binary REM, BAND, BOR, BXOR, LSHIFT and RSHIFT shall return false without claiming a result. ADD, SUB, MUL and DIV shall dispatch to their matching helper contracts. Unknown kind/operator codes inconsistent with the target protocol shall be outside the admitted interface. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.
-
4. Rounding-aware addition linearization PPL-SPEC-000994 add_linearize() shall require an ADD node and linearize both operands in the same entry store. When either operand refuses, it shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Let L1, L2 be their forms, Rf the selected format's relative-error form from 🔗 21. Format-specific relative-error linear form, and Af the interval returned by compute_absolute_error<C>(f). The output shall soundly enclose the coefficient-wise combination L1 + L2 + Rf(L1) + Rf(L2) + Af, retaining symbolic coordinate terms. It shall return false if the resulting coefficients are unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern runtime, entry-value, exception and ownership semantics.
-
5. Rounding-aware subtraction linearization PPL-SPEC-000995 sub_linearize() shall require a SUB node and linearize both operands in the same entry store. Operand refusal shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Using L1, L2, Rf, Af as in 🔗 4. Rounding-aware addition linearization, the output shall soundly enclose L1 − L2 + Rf(L1) + Rf(L2) + Af, using coefficient-wise interval operations and preserving the operands' coordinate identities. It shall return false if any resulting coefficient is unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern common prerequisites and failure effects.
-
6. Interval-scalar multiplication linearization PPL-SPEC-000996 mul_linearize() shall require a MUL node, obtain both operand forms and intervalize both through the oracle. Failure of any required linearization or coordinate query shall return false. It shall select a bounded intervalized operand for scalar multiplication; if neither operand has a bounded interval enclosure it shall return false. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a dimension-zero form containing the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Width estimates may choose either bounded operand and shall not promise optimal precision.
For a bounded retained form, if I1 is selected, the result shall soundly enclose I1L2 + I1Rf(L2) + Af; if I2 is selected it shall soundly enclose I2L1 + I2Rf(L1) + Af. Scalar multiplication shall preserve the other operand's symbolic coordinates. It shall return false for an unbounded result coefficient, and true otherwise. Common notation and prerequisites shall follow 🔗 4. Rounding-aware addition linearization and 🔗 1. Target-adapted floating expression evaluation.
-
7. Nonzero interval-divisor linearization PPL-SPEC-000997 div_linearize() shall require a DIV node and first obtain the denominator's linear form and oracle-based interval enclosure. Required query refusal shall return false. If the closed hull of the denominator interval reaches zero it shall return false, including a zero endpoint excluded by openness. Thus a successful division shall not rely on an unproved nonzero denominator. A one-sided unbounded denominator whose closed hull excludes zero shall remain admitted when the selected interval arithmetic supports it.
It shall then linearize the numerator, propagating refusal. An unbounded numerator coefficient shall cause refusal before its relative-error form is constructed. For numerator form L1 and denominator enclosure I2, it shall soundly enclose L1 ⁄ I2 + Rf(L1) ⁄ I2 + Af, retaining numerator coordinates. An unbounded result coefficient shall return false; a bounded result shall return true. Common prerequisites and notation shall follow 🔗 1. Target-adapted floating expression evaluation and 🔗 4. Rounding-aware addition linearization.
-
8. Floating and integer cast linearization PPL-SPEC-000998 cast_linearize() shall require a floating-result cast node. For a floating argument it shall linearize that argument, propagating refusal. When the destination format contains every finite value representable by the source format, it shall retain the resulting form without added cast error. A constant enclosure certified by 🔗 11. Constant affine enclosures closed under destination rounding shall also require no added cast error.
For an integer argument it shall obtain a sound interval through get_integer_expr_value(), returning false on refusal. If the destination contains every finite value of the analyzer boundary format, it shall close any excluded finite endpoints of that interval and retain the resulting constant form without a further error term. Equality of formats shall satisfy this inclusion condition. Other integer enclosures certified by 🔗 11. Constant affine enclosures closed under destination rounding shall remain unchanged without an error term.
Value-set inclusion shall use is_less_precise_than(): the destination contains the analyzer exactly when !is_less_precise_than(destination, analyzer). The converse difference predicate shall not establish inclusion for incomparable formats.
In the remaining cases it shall add destination-format relative and absolute error enclosures. An unbounded input coefficient shall cause refusal before relative error is constructed. Unbounded resulting coefficients shall return false and bounded coefficients true. Error-free casts may retain admitted unbounded enclosures; success alone shall not certify finite coefficients. Common numerical and entry-value rules shall follow 🔗 1. Target-adapted floating expression evaluation; unsupported selected error helpers may report their documented exceptions.
-
9. Reference association and symbolic-store lookup PPL-SPEC-000999 For an approximable reference, linearize() shall obtain its possible coordinate identities from the oracle. Refusal or an empty association set shall return false. For a single associated coordinate, an existing store binding shall be copied into the result; an unbounded copied form shall return false. If that key is absent, the result shall be the exact unit variable form for that coordinate, with dimension equal to its index plus one. This symbolic fallback shall not require a numerical coordinate query.
For multiple possible coordinates it shall query every required coordinate interval and return false on refusal. Otherwise it shall form their interval hull as a dimension-zero constant form, returning true exactly when its coefficient is bounded. It shall not arbitrarily select one possible identity or combine alternatives as a conjunction. Coordinate validity, entry-value copying and common lifetime/numerical rules shall follow 🔗 7. Oracle reference-to-coordinate associations and 🔗 1. Target-adapted floating expression evaluation.
-
Incoming link from: 11. Constant affine enclosures closed under destination rounding1
10. Native value membership in modeled floating formats PPL-SPEC-001658 For a configured supported native binary floating type Boundary and one of the seven modeled Floating_Point_Format values, cast_value_is_exact() shall return true exactly when the native value is finite and exactly representable in that modeled format. Both signs of zero shall be representable. Nonfinite native values shall return false.
Binary format membership shall include normal and subnormal values within the finite range of binary16, binary32, binary64, binary128 and x87 extended. IBM single and double membership shall use their normalized radix-16 value sets, including zero, their finite exponent ranges and their respective significand precisions. Membership shall be symmetric under sign reversal. The checker shall require no dynamic storage and shall preserve the active rounding direction.
-
Incoming links from: 8. Floating and integer cast linearization 8. Floating and integer cast linearization2
11. Constant affine enclosures closed under destination rounding PPL-SPEC-001659 For a linear form over admitted real intervals with a configured supported native floating boundary type and a known modeled destination format, cast_interval_is_rounding_closed() shall return true exactly when all homogeneous coefficients are zero and the constant interval is nonempty, topologically closed, and has exactly representable finite endpoints as defined by 🔗 10. Native value membership in modeled floating formats. Infinite abstract bounds shall impose no additional representability condition. Retained zero dimensions shall not prevent certification.
A true result shall certify that rounding any admitted finite concrete value from the enclosure to a finite destination value remains in that enclosure. It shall not claim that every interior real value is exactly representable. False shall provide no such certificate. The checker shall preserve the represented form, its space dimension and the active rounding direction, and shall require no dynamic storage.
-
1. Dependency invalidation PPL-SPEC-000988 For a well-formed affine store, discard_occurrences(store, var) shall erase exactly those bindings whose linear form has a coefficient for var unequal to the singleton zero interval. It shall preserve every other key and associated value. An absent coordinate beyond a form's stored dimension shall have zero coefficient as specified by 🔗 6. Dimensions and borrowed coefficient access. An uncertain coefficient containing zero and other values shall count as a dependency. The operation shall accept empty stores and shall not create a binding.
Store keys and referenced coordinates shall be valid dimension indices; each form shall meet the interval-coefficient and lifetime prerequisites of 🔗 1. Interval-linear-form meaning and numerical prerequisites. No PPL initialization or native floating-point arithmetic shall be required when the selected exact interval operations require neither. Erasing a binding shall invalidate references to that binding; references to retained bindings shall remain valid.
-
2. Affine assignment and dependency invalidation PPL-SPEC-000989 affine_form_image(store, var, form) shall first assign a copy of the entry value of form to the key var.id(), inserting or replacing the binding. It shall then perform the dependency invalidation specified by 🔗 1. Dependency invalidation for var across the resulting store. Consequently, a newly assigned form depending on var shall also be discarded. The input may be a form borrowed from the same store, including the target binding; copying shall use its entry value before any removal can destroy that donor. An independent donor shall remain unchanged.
Valid keys, interval operations and lifetimes shall meet 🔗 1. Dependency invalidation. Allocation or coefficient-operation exceptions may propagate; no rollback of the entire store shall be promised, but existing owners shall remain safely destructible. After normal return, every retained binding shall be independent of the assigned coordinate.
-
3. Common-binding affine-store join PPL-SPEC-000990 upper_bound_assign(left, right) shall retain exactly the bindings of left whose keys also occur in right and whose associated linear forms are equal according to 🔗 14. Coefficient equality with implicit trailing zeros. Every other left binding shall be erased. No right-only binding shall be inserted. The retained forms and the right operand shall remain unchanged. Explicit trailing zero coefficients shall not cause mathematically equal forms to be discarded. Joining a store with itself shall preserve all bindings.
Both stores shall meet 🔗 1. Dependency invalidation and describe consistent coordinate identities. Coefficient comparison shall be supported for their selected interval type. Empty operands shall be admitted; an empty right operand shall remove every left binding. Exceptions from selected coefficient comparisons may propagate without a whole-store rollback promise; surviving owners shall remain safely destructible.
-
1. Descriptor absolute-error interval PPL-SPEC-001012 The public static absolute_error field shall initially contain an interval enclosing [ − ω, ω], where the radius is the larger of the analyzed absolute error and the analyzer boundary type's smallest positive subnormal. Built-in IEEE binary descriptors shall use their smallest positive subnormal; normalized IBM short and long hexadecimal descriptors shall use 16 − 65, including underflow to zero with the exponent-underflow interruption disabled. Custom three-field descriptors shall use BASE1 − EXPONENT_BIAS − MANTISSA_BITS. The descriptor shall meet the radix, precision and exponent-range prerequisites of 🔗 1. Owned floating-expression protocol and lifetime. The stored radius shall enclose the mathematical value even when it is not exactly representable in the analyzer.
The field shall be owned by its I, Format specialization and by its thread when PPL thread support selects thread-local storage. It shall remain publicly mutable; callers changing it shall preserve a sound nonempty error interval for their analysis. Subsequent rounded-node evaluation shall use the current field. Selected arithmetic and runtime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
Incoming link from: 1. IBM hexadecimal format metadata for expression analysis1
2. Enumeration-based cached absolute error PPL-SPEC-001013 compute_absolute_error<I>() shall return a stable const reference to the cached absolute-error interval for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD, INTEL_DOUBLE_EXTENDED or IBM_SINGLE. Its radius shall enclose the corresponding analyzed absolute error and the analyzer's smallest positive subnormal, with binary and IBM meanings from 🔗 1. Descriptor absolute-error interval. Distinct supported formats shall retain their own cached values. Repeated calls shall not change a previously returned interval. Unsupported format selections, including IBM_DOUBLE, shall throw std::invalid_argument.
References shall belong to the selected template specialization and thread when configured thread-local, and shall not be deleted or modified by the caller. Native boundary arithmetic and runtime prerequisites shall be met; metadata support alone shall not establish this helper's support.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
1. Rectilinear distance between generator points PPL-SPEC-001579 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, rectilinear_distance_assign shall assign the requested directed bound on
D1(x, y) = n − 1∑i = 0|xi − yi|.With exact rational temporary arithmetic and an exactly representable output, the sum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
2. Euclidean distance between generator points PPL-SPEC-001580 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, euclidean_distance_assign shall assign the requested directed bound on
D2(x, y) = √(n − 1∑i = 0(xi − yi)2).Every squared contribution shall preserve the directed bound even when a coordinate difference is inexact in the workspace type. Rational square roots shall retain the precision and enclosure conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness or fixed error width shall be inferred beyond those contracts.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
3. Maximum-coordinate distance between generator points PPL-SPEC-001581 For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, l_infinity_distance_assign shall assign the requested directed bound on
D∞(x, y) = max0 ≤ i < n|xi − yi|.The maximum over the empty coordinate tuple shall be zero. With exact rational temporary arithmetic and an exactly representable output, the maximum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
-
Incoming links from: 1. Rectilinear distance between generator points 1. Rectilinear distance between generator points 2. Euclidean distance between generator points 2. Euclidean distance between generator points 3. Maximum-coordinate distance between generator points 3. Maximum-coordinate distance between generator points 6. Admitted generator-distance evaluation kernel 6. Admitted generator-distance evaluation kernel8
4. Generator-distance admission, workspaces and dispatch PPL-SPEC-001582 Distances shall be admitted exactly when both generators are points or closure points and have the same ambient dimension. A line, a ray or a dimension mismatch shall return false before assigning the output or any supplied scratch object. Equal-dimensional point/closure-point pairs shall return true on successful numerical completion. A zero-dimensional pair shall assign exact zero. A closure point shall contribute its rational coordinates without asserting inclusion in any polyhedron. For each source, xi = ai ⁄ d shall use its own positive divisor. Neither coefficient vectors alone nor homogeneous-coordinate distances shall replace these coordinates. Boolean success shall not imply exactness of a rounded result.
The default overload shall use three Checked_Number<To,Extended_Number_Policy> workspaces. An explicit scalar temporary type Temp shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. Supplied references shall use their actual admitted raw or checked numerical type Work. Their accumulation shall use 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays or 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The generic helper instantiated with the corresponding specialization shall use the same admission, coordinate and numerical rules.
Source validity and coefficient conditions of 🔗 1. Generator kinds and numerical prerequisites shall apply. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, failure, resource, shared-temporary, nontrapping and FPU prerequisites. Native floating types shall retain their configured availability and hardware conditions. Rational square-root precision shall remain stable throughout a dependent call. Calls evaluating coordinate differences shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. Inexact coordinate conversion shall not by itself invalidate a directed bound. The zero-dimensional exact assignment shall admit any otherwise valid direction for that scalar assignment.
Supplied scratch objects shall be pairwise distinct and disjoint from both source generators. Their entry values need not be initialized where they are overwritten before reading. The output shall have live assignable storage disjoint from the sources; it may coincide with any one scratch object or its compatible raw storage. The same generator may be passed as both sources. Callers shall preserve object and borrowed-storage lifetimes and provide synchronization required by the selected numerical profile. Numerical or allocation failures may propagate through their declared channels, shall not establish a successful directed bound, and may leave partial output/scratch values according to the selected scalar policies; no aggregate rollback guarantee shall be inferred.
-
6. Admitted generator-distance evaluation kernel PPL-SPEC-001653 l_m_distance_assign_impl shall evaluate a valid point or closure-point pair of equal strictly positive dimension. Callers shall meet the source, workspace, output-alias, rounding, initialization, synchronization and backend conditions of 🔗 4. Generator-distance admission, workspaces and dispatch before entering this kernel; it shall not perform the public admission checks.
With Skip_Common_Zero_Runs equal to false, the kernel shall process every coordinate in decreasing index order, using each source's own positive divisor. It shall initialize tmp0 to zero, form the directed nonnegative coordinate differences, call Specialization::combine once for each coordinate, call Specialization::finalize once after accumulation, and assign the result from tmp0. The applicable numerical obligations of 🔗 1. Rectilinear distance between generator points, 🔗 2. Euclidean distance between generator points or 🔗 3. Maximum-coordinate distance between generator points shall apply for their corresponding standard specialization.
With Skip_Common_Zero_Runs equal to true, both sources shall have sparse representation and Specialization shall be the standard rectilinear, Euclidean or infinity-distance specialization for Work. The kernel may replace a maximal run of coordinates zero in both sources by one ordinary zero-coordinate step. Successful completion shall preserve the full traversal's result, final scratch values, directed rounding and floating-point zero signs and status effects. Contributions at nonzero coordinates shall retain their decreasing-index order. The skipping path shall not allocate coefficient vectors or polymorphic expression iterators.
Successful numerical completion shall return true. Numerical or allocation failures shall retain the failure channels and partial-state conditions of 🔗 4. Generator-distance admission, workspaces and dispatch. The public dispatcher shall retain ordinary traversal for other specialization types; callbacks of those types shall not lose coordinate invocations.
-
Incoming links from: 1. Closed bounded-difference support hull of geometric generators 3. Cartesian enclosure of a polyhedral generator system 4. Generator-distance admission, workspaces and dispatch 5. Stored ordering of polyhedral generators 2. Construction of nonzero lines and rays 3. Construction of rational points and closure points 11. Geometric equivalence and stored generator identity 15. Generator-system hull meaning and construction 16. Owned generator systems and storage conversion 17. Generator insertion and coefficient ownership transfer 1. Closed octagonal support hull of geometric generators 6. Java mathematical representations and operation options12
1. Generator kinds and numerical prerequisites PPL-SPEC-000181 A Generator shall describe one of four geometric objects in a declared ambient dimension: an included rational point, a rational closure point, a ray direction or a line direction. For homogeneous integer coefficients ai and positive divisor d, point and closure-point coordinates shall be ai ⁄ d. A line shall admit arbitrary real multiples of its nonzero direction; a ray shall admit nonnegative real multiples. Closure points shall retain their distinct kind and shall not assert boundary inclusion. Internal divisor/strictness fields shall not become public coordinates.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization and require caller synchronization for overlapping modification of an object. Dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, normalization, transformation and comparison guarantees shall require representability of every evaluated coefficient step/result in the selected profile. Unchecked completion shall not prove those preconditions. Allocation and numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete generator; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without universal rollback.
-
Incoming link from: 1. Closed octagonal support hull of geometric generators1
2. Construction of nonzero lines and rays PPL-SPEC-000182 line(e) and ray(e) shall use the expression's homogeneous coefficients as their respective direction, ignore its constant term and retain its declared dimension. They shall use requested storage. A zero homogeneous direction, including a nonzero constant expression, shall throw std::invalid_argument. Results shall have primitive homogeneous coefficients; lines shall orient their first nonzero coefficient positively, while rays shall preserve orientation. Source expressions shall remain unchanged. Numerical prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
3. Construction of rational points and closure points PPL-SPEC-000183 point(e,d) and closure_point(e,d) shall respectively construct an included or closure point whose coordinates are the homogeneous coefficients of e divided by the entry value of nonzero d. They shall ignore the expression constant, retain its dimension and use requested storage. A negative divisor shall be accepted by reversing all coordinate numerators and making the stored divisor positive, preserving rational coordinates. The stored numerator/divisor tuple shall be primitive. Zero divisor shall throw std::invalid_argument and preserve sources.
Omitted expressions shall denote the dimension-zero origin; omitted divisors shall be one. Representation-only overloads shall make that origin, and expression/representation overloads shall use divisor one. A divisor borrowed from the unchanged input expression shall be admitted using its entry value. The numerical prerequisites of 🔗 1. Generator kinds and numerical prerequisites shall apply.
-
5. Owned generator copying, assignment and swapping PPL-SPEC-000185 Ordinary copying shall preserve kind, dimension, exposed coefficients, divisor when applicable and source representation. Explicit-storage copying shall use requested storage. Assignment shall copy the complete entry value and source storage, return the target reference, preserve a distinct source and support self-assignment. Rvalue arguments shall admit the copy forms, retaining source value without requiring a distinct move operation. Copies shall survive later source mutation or destruction.
Both swap forms shall exchange full values, dimension and storage; self-swap shall preserve the generator. Destruction shall release owned storage. Failure while constructing copy assignment's replacement shall leave the target unchanged.
-
6. Generator representation conversion PPL-SPEC-000186 representation() shall report current coefficient storage. Successful set_representation(r) for dense or sparse storage shall preserve kind, public dimension, exposed coefficients and applicable divisor while selecting r. Repeating current storage shall preserve the object. Failed replacement allocation shall leave its value and representation unchanged.
-
12. Reloadable generator representation PPL-SPEC-000192 ascii_dump(s) shall export the full stored coefficient expression, public kind token and topology token; ascii_dump() shall use std::cerr. Export shall preserve the source. A complete compatible representation with representable coefficients shall load with true, replacing kind, coefficients, divisor and public dimension while retaining destination storage.
Malformed/truncated expression, kind or topology fields, missing required coefficient slots, invalid directional zero vectors, nonpositive point divisors, violations of the checked row invariants and inconsistent kind/topology combinations shall return false rather than be accepted as valid generators. If expression loading fails, ascii_load(s) shall return false without reading the kind or topology suffix. Trailing input shall remain available. Failure may modify the target but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised; allocation and numerical exceptions may propagate.
-
Incoming link from: 3. Cartesian enclosure of a polyhedral generator system1
15. Generator-system hull meaning and construction PPL-SPEC-000195 A Generator_System with lines L, rays R, included points P and closure points C shall generate exactly the real vectors
∑p ∈ Pλpp + ∑c ∈ Cγcc + ∑r ∈ Rρrr + ∑l ∈ Lτll,where λp, γc, ρr ≥ 0, τl ∈ ℝ, ∑pλp + ∑cγc = 1 and ∑pλp > 0. Thus a system without an included supporting point shall generate the empty set, even when directions or closure points are stored. Its meaning shall be a generated hull, not a conjunction of point membership conditions.
Default construction shall have dimension zero and no rows. Singleton construction shall own a copy of its generator and adopt its dimension. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton included origin generating the universe of the zero-dimensional space until owning-thread finalization. Use/failure prerequisites shall follow 🔗 1. Generator kinds and numerical prerequisites.
-
16. Owned generator systems and storage conversion PPL-SPEC-000196 Copy construction shall preserve generated hull, public dimension and source storage; an explicit-storage overload shall use its argument. Assignment shall copy the source entry value and representation, return the target reference, preserve a distinct source and support self-assignment. Rvalue copy forms shall retain source value without requiring a distinct move operation. Copies shall remain independent of later source modification/destruction.
Swaps shall exchange complete system values, dimension and storage, including self-swap. Successful representation conversion shall select dense or sparse storage for all rows while preserving the generated hull and dimension. Destruction shall release owned rows. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Generator kinds and numerical prerequisites.
-
17. Generator insertion and coefficient ownership transfer PPL-SPEC-000197 Const-reference insertion shall add a copy of the generator to the system's geometric generator collection, preserving the source and target storage. Result dimension shall be the maximum input dimension; shorter tuples shall be zero-extended. Inserting a closure point shall retain its topological role; any necessary internal conversion shall preserve the public coordinates and kind of existing generators. Duplicates or redundant generators may be reordered/removed provided the generated hull is preserved. Publicly retrieved rows need not reproduce insertion order or multiplicity.
Rvalue insertion shall transfer a generator not borrowed from the target, producing the same generated hull as copying it. The source shall remain destructible; no unchanged-value guarantee shall apply to it. Ordinary insertion of a borrowed row from the same target shall use its entry value. Numerical/failure prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.
Const row sources, including const rvalues, shall use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
20. Reloadable generator-system representation PPL-SPEC-000200 ascii_dump(s) shall export full stored rows, dimension, topology, representation and required row-state fields; ascii_dump() shall use std::cerr. Export shall preserve source value. A complete compatible export with representable coefficients shall load with true, replacing the target with the encoded generated hull, public dimension and encoded storage choice.
Malformed/truncated headers or rows, invalid generator fields and inconsistent encoded dimensions or row-state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback/cross-version format stability is promised; allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
1. Exact rational affine image PPL-SPEC-001287 affine_image(var, expr, denominator) shall assign the exact image under x’v = e(x) ⁄ d, with all other coordinates unchanged. denominator defaults to one. The entry denominator value shall be used even when borrowed from a receiver-owned congruence or generator. External expression and scalar values shall be preserved. Zero denominator, an invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Exact rational affine preimage PPL-SPEC-001288 affine_preimage(var, expr, denominator) shall assign exactly the set of x whose image under x’v = e(x) ⁄ d, with other coordinates unchanged, belongs to the entry receiver. denominator defaults to one. It shall use the entry denominator value even when borrowed from receiver-owned descriptions, and preserve external inputs. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Generalized variable affine image PPL-SPEC-001289 For EQUAL, generalized_affine_image(var, relsym, expr, denominator, modulus) shall assign the exact relational image under x’v = e(x) ⁄ d + mk, k ∈ Z, with other coordinates unchanged. Zero modulus shall mean ordinary affine image; either sign of a nonzero modulus shall denote the same period. Defaults are denominator one and modulus zero. Borrowed scalars shall use their entry values. For an ordered inequality and zero modulus, it shall conservatively cylindrify the target. NOT_EQUAL and ordered relations with nonzero modulus are unsupported and shall throw std::invalid_argument before mutation, including on empty receivers. Zero denominator and dimension errors shall likewise be rejected before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Generalized variable affine preimage PPL-SPEC-001290 generalized_affine_preimage(var, relsym, expr, denominator, modulus) shall assign the exact inverse relational image for the EQUAL relation in [LINK: PPL-SPEC-001289]. Defaults, modulus sign, borrowed entry values and rejection scope shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify the target coordinate of the entry receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
5. Generalized expression affine image PPL-SPEC-001291 For EQUAL, generalized_affine_image(lhs, relsym, rhs, modulus) shall assign the exact image of the relation lhs(x’) − rhs(x) ∈ mZ, where the coordinates with nonzero coefficients in lhs may change simultaneously and all other coordinates are unchanged. Zero modulus means equality and is the default; modulus sign is immaterial. Constant lhs shall constrain the old state without assigning a coordinate. The modulus shall use its entry value even if borrowed. Ordered inequalities with zero modulus shall conservatively cylindrify the assigned coordinates. NOT_EQUAL or an ordered relation with nonzero modulus shall throw std::invalid_argument before mutation, including on empty receivers. Excess expression dimensions shall likewise be rejected before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
6. Generalized expression affine preimage PPL-SPEC-001292 generalized_affine_preimage(lhs, relsym, rhs, modulus) shall assign the exact inverse relational image of EQUAL as defined in [LINK: PPL-SPEC-001291]. Assigned coordinates are those occurring in lhs; all others are shared between old and new states. Default modulus, sign, borrowed entry-value and rejection rules shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify those coordinates of the entry receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 8. Bounded affine preimage abstraction1
7. Bounded affine image abstraction PPL-SPEC-001293 bounded_affine_image(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var, preserving ambient dimension and its projection on all other coordinates. This is a conservative abstraction of the bounded affine image; it need not detect infeasible bounds or retain equal bounds. The denominator defaults to one. Zero denominator, invalid target or excess dimension of either bound shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
8. Bounded affine preimage abstraction PPL-SPEC-001294 bounded_affine_preimage(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var. It shall preserve dimension and all restrictions among other coordinates, and conservatively contain the concrete bounded-relation preimage. It need not detect infeasible bounds. Default and rejection rules shall be as in 🔗 7. Bounded affine image abstraction.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
1. Congruence widening and finite delay PPL-SPEC-001307 congruence_widening_assign(y,tp) requires Y ⊆ X and shall return a grid containing X, preserving dimension and the operand value. Empty previous, empty current and zero dimensions shall preserve the receiver. After normalization, if the current grid has fewer independent equalities than the previous one, it shall retain the current grid. Otherwise it shall retain all current equalities and the current proper congruences whose corresponding normalized pivot coefficients agree with the previous description, discarding other proper rows. A sequence with fixed coordinate order and finite delay shall stabilize.
With tp null or pointing to zero, the computed widening shall be assigned. With a positive token count, the entry grid shall be retained and one token consumed exactly when the computed widening strictly enlarges it. The token object shall be separate writable storage. Unequal dimensions shall throw std::invalid_argument before mutation. Failure guarantees shall not imply rollback of tokens.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Generator widening and finite delay PPL-SPEC-001308 generator_widening_assign(y,tp) shall obey the inclusion, dimensions, empty cases and finite-token rules in 🔗 1. Congruence widening and finite delay. It shall normalize generator descriptions. If the current grid has more generators or real lines than the previous grid, it shall retain the current grid. Otherwise it shall retain the supporting point and real lines, retain parameters with unchanged corresponding normalized pivots, and replace changed parameter directions by real lines. With fixed coordinate order and finite delay, increasing iterations shall stabilize.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Representation-selected default grid widening PPL-SPEC-001309 widening_assign(y,tp) shall select congruence widening when both congruence descriptions are current, otherwise generator widening when both generator descriptions are current. For mixed histories it may choose either strategy and normalize the required descriptions. It shall obey the common inclusion, dimension, empty and finite-token rules in 🔗 1. Congruence widening and finite delay. The selected strategy may affect precision; identical output across different cache histories is not required. With fixed coordinate order and finite delay, increasing iterations shall stabilize, including when available descriptions change the selected strategy between calls.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Congruence-limited extrapolations PPL-SPEC-001310 limited_congruence_extrapolation_assign, limited_generator_extrapolation_assign and limited_extrapolation_assign shall require Y ⊆ X and apply their corresponding named or default widening, then intersect with the supplied limiter congruences satisfied by every entry point of X. Valid equalities already retained by widening need not be inserted redundantly. With an empty limiter they shall have exactly the corresponding widening's mathematical result and token effect. Finite-token behavior shall follow 🔗 1. Congruence widening and finite delay. The result shall contain the entry receiver, preserve ambient dimension and preserve external limiter/operand values. Unequal grid dimensions or excess limiter dimension shall throw std::invalid_argument before mutation. Convergence requires the usual widening iteration and a fixed finite limiter set; changing limiters provide only extrapolation guarantees.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
5. Grid convergence certificates PPL-SPEC-001311 Grid_Certificate shall represent the lexicographic pair (e, p): the number of independent equalities and the number of proper congruence rows in a minimal description of a nonempty grid. In positive ambient dimension, p includes the normalization congruence and is one plus the number of independent discrete parameter directions. The grid-taking constructor and grid-taking comparison/stabilization queries require a nonempty grid. Default construction shall represent the zero-dimensional-universe certificate (0, 0); copying and assignment shall preserve the pair.
compare shall return minus one, zero or plus one for a smaller, equal or greater pair. is_stabilizing(gr) shall return exactly whether this pair is strictly greater than gr's pair. Compare shall order greater pairs first. OK() shall return true for certificates constructed through this interface. Computing a certificate may normalize grid caches but shall preserve its mathematical value. The two counts are the finite progress measure for compatible Grid widenings; they do not encode the grid's phase or coefficients.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
1. Grid construction from boxes PPL-SPEC-001312 Grid(box,complexity) shall preserve the box's ambient dimension and construct its exact real affine hull as a grid. Empty shall yield empty. Each singleton interval shall fix its coordinate; every non-singleton coordinate shall be free. Open bounds do not add excluded endpoints to a singleton. All complexity choices shall have this meaning, under the source interval's arithmetic conditions and 🔗 1. Rational-grid values, coefficient profile and valid use. The source value shall be preserved. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Grid construction from bounded-difference shapes PPL-SPEC-001313 Grid(bd,complexity) shall preserve ambient dimension and construct the exact real affine hull of the bounded-difference shape, including empty. It shall retain all implied affine equalities under the source shape's arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use, for every complexity choice. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Grid construction from octagonal shapes PPL-SPEC-001314 Grid(os,complexity) shall preserve ambient dimension and construct the exact real affine hull of the octagonal shape, including empty, under its arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use. Every complexity choice shall retain the implied affine equalities. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Grid construction from polyhedra PPL-SPEC-001315 Grid(ph,complexity) shall preserve ambient dimension and contain the polyhedron's real affine hull. With ANY_COMPLEXITY it shall equal that affine hull, including for NNC polyhedra and empty. Restricted complexity may retain only explicit available equalities and may fail to detect latent emptiness, giving a coarser grid. If generators are used, supporting points, closure points, rays and lines shall contribute their real affine span. Marked empty and zero-dimensional empty shall yield empty in every complexity class. The source value shall be preserved, though caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
For a bounded coefficient profile, directions joining rational points shall be computed from complete cross-products of their numerators and divisors, then reduced by a common positive factor before their coefficients are admitted. Constants and NNC epsilon coordinates shall not contribute to these line directions. This projective normalization shall not rescale a lattice parameter.
-
1. Free-coordinate extension PPL-SPEC-001295 add_space_dimensions_and_embed(m) shall assign G×Rm, placing the new free coordinates after the old ones. Zero additions shall preserve the value and dimension; empty remains empty in the enlarged space. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Zero-coordinate extension PPL-SPEC-001296 add_space_dimensions_and_project(m) shall assign G×{0}m, appending the new zero coordinates. A nonempty zero-dimensional grid shall become the origin, and empty shall remain empty. Zero additions are identity. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Ordered Cartesian concatenation PPL-SPEC-001297 concatenate_assign(y) shall assign the ordered Cartesian product X×Y in dimension nX + nY. Either empty operand shall make the result empty. Self concatenation shall use the entry value twice. The distinct operand shall retain its mathematical value. A dimension sum beyond max_space_dimension() shall throw std::length_error before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Selected-coordinate existential projection PPL-SPEC-001298 remove_space_dimensions(vars) shall assign exact existential projection onto the unselected coordinates, preserving their relative order and renumbering them consecutively. Its dimension shall decrease by the selection size. Empty selection is identity; removing every coordinate yields zero-dimensional universe exactly for nonempty input. Any out-of-range index shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
5. Prefix-coordinate existential projection PPL-SPEC-001299 remove_higher_space_dimensions(new_dimension) shall assign the exact projection onto the prefix of that many coordinates. Equal dimension is identity; zero produces zero-dimensional universe exactly when the entry grid is nonempty. A requested dimension greater than the current dimension shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
6. Injective coordinate remapping PPL-SPEC-001300 map_space_dimensions(pfunc) shall project away unmapped old coordinates and move each retained coordinate to its supplied destination, exactly. The mapping shall be an injection from a subset of old indices onto a dense destination set {0, …, m − 1}, with m ≤ n. An invalid mapping violates the interface precondition; runtime rejection is not guaranteed. Empty image gives zero-dimensional projection. The mapping object shall provide has_empty_codomain(), max_in_codomain() and maps(i,j) with the meanings in 🔗 1. Public partial coordinate-map type and valid use; queries shall preserve the mapping. For positive old dimension the empty-image query precedes other queries; if empty, no maximum or lookup is required. Otherwise the maximum is queried at most once and lookups at most once per old coordinate. Zero old dimension may return without queries.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
7. Conditional coordinate replication PPL-SPEC-001301 expand_space_dimension(var,m) shall append m independent replicas of the selected coordinate conditioned on the unchanged other coordinates. Every replica, separately substituted for var, shall satisfy the original grid together with those other coordinates; replicas shall not be required to equal one another. Original coordinates retain their meaning. Empty remains empty and zero replicas are identity. An invalid source index shall throw std::invalid_argument; dimension overflow shall throw std::length_error, before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
8. Least-grid folding of coordinate alternatives PPL-SPEC-001302 fold_space_dimensions(vars,dest) shall form the least grid containing the entry grid and every alternative obtained by assigning dest the old value of one selected source, then existentially project away the selected sources. Remaining coordinates retain their order. The destination shall be a valid unselected coordinate. Invalid destination, invalid source or destination included in the selection shall throw std::invalid_argument before mutation. Empty selection is identity after destination validation; empty remains empty in the reduced space.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
1. Integer-time-elapse grid abstraction PPL-SPEC-001303 time_elapse_assign(y) shall assign the least grid containing {p + μq ∣ p ∈ X, q ∈ Y, μ ∈ Z}. The multiplier is integer time, including negative integers. Either empty operand shall yield empty. The distinct operand value and receiver dimension shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Exact integer-coordinate restriction PPL-SPEC-001304 drop_some_non_integer_points(complexity) shall intersect exactly with Zn. The overload with vars shall instead require integrality exactly on those coordinates. Unselected coordinates need not be integral; an empty selection is identity. Every complexity value shall give this exact result. Out-of-range selected indices shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Bounded-integer wrapping abstraction PPL-SPEC-001305 wrap_assign(vars,w,r,o,cs_p,complexity_threshold,wrap_individually) shall conservatively abstract bounded-integer conversion on the selected coordinates, with modulus M = 2w and the signed or unsigned range selected by r. Coordinates supplied as bounded integers are assumed integral. Unselected coordinates and their projection shall be preserved. Empty selections are identity. Any out-of-range selected index, or an optional constraint system of excess dimension, shall throw std::invalid_argument before mutation. The optional constraints and the two precision controls need not improve the result.
For OVERFLOW_WRAPS, a constant integer shall map to its unique in-range residue. A discrete coordinate shall retain its entry period together with period M, except that a period divisible by M shall collapse to the unique in-range residue. Rational periods shall first determine their possible integer residues; no possible integer shall yield empty. A constant noninteger shall yield empty. Real line directions may be retained conservatively. For OVERFLOW_IMPOSSIBLE, no in-range possible integer shall yield empty, one shall fix the coordinate, and multiple values may retain the original periodic abstraction. For OVERFLOW_UNDEFINED, overflow may forget the coordinate's value while retaining integrality; an already representable constant may be retained. No global optimality for correlated coordinates is required.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Grid topological closure PPL-SPEC-001306 topological_closure_assign() shall preserve the receiver's mathematical value and ambient dimension. Every represented rational grid, including empty, is closed in its ambient real topology.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 2. Recycling bulk insertion of rational-grid generators1
1. Copying bulk insertion of rational-grid generators PPL-SPEC-001271 add_grid_generators(input) shall add the input points, parameters and lines to a generator description of the receiver, with the meaning in 🔗 1. Rational-grid values, coefficient profile and valid use. For nonempty G = p + H, input points ri, parameters qj and lines lk shall produce p + H + ∑iZ(ri − p) + ∑jZqj + ∑kRlk. In particular, adding points shall form a grid hull, not a finite union.
A system with no stored rows shall be a no-op. If the receiver is empty and the nonempty input has no point, the operation shall throw std::invalid_argument. Otherwise an empty receiver shall acquire exactly the grid generated by the input. A zero-dimensional point shall turn zero-dimensional empty into universe; zero-dimensional universe shall be preserved. Zero parameters omitted by the generator-system contract shall not constitute stored rows.
The input's value, dimension and storage shall be preserved, including when an exception propagates. A current generator-system view borrowed from the receiver may be supplied: its pre-call generators shall be used as the input, and normal receiver-view invalidation shall apply during mutation.
The receiver's ambient dimension shall be preserved. Missing coordinates in lower-dimensional input generators shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including empty inputs and empty receivers. The result shall be independent of input order, redundant rows, storage choice and current-description caches. Previously undetected inconsistency shall have the same meaning as empty.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Input and receiver objects shall remain live for their specified uses. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. Borrowed receiver views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Recycling bulk insertion of rational-grid generators PPL-SPEC-001272 add_grid_generators(std::move(input)) and add_recycled_grid_generators(input) shall produce the same mathematical receiver value, ambient dimension and ordinary input-rejection outcomes as 🔗 1. Copying bulk insertion of rational-grid generators. These operations may transfer ownership from the supplied system. The input shall be a separate writable object; it shall not alias receiver-owned storage. After successful or exceptional return the input shall retain ownership sufficient for destruction. Its rows, dimension, storage and suitability for subsequent queries shall not be assumed.
A receiver discovered empty while converting its congruences shall use the same insertion rules as an already marked empty receiver. Nonempty input without a supporting point shall therefore be rejected; input with a point shall establish the generated grid. Conversion shall not leave subsequent normalization dependent on a nonexistent old supporting point.
The receiver's ambient dimension shall be preserved. Missing coordinates in lower-dimensional input generators shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including empty inputs and empty receivers. The result shall be independent of input order, redundant rows, storage choice and current-description caches. Previously undetected inconsistency shall have the same meaning as empty.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Input and receiver objects shall remain live for their specified uses. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. Borrowed receiver views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Copying insertion of a single rational-grid generator PPL-SPEC-001273 add_grid_generator(g) shall add the pre-call generator value to a generator description of the receiver, preserving its ambient dimension. For nonempty G = p + H, adding a point r shall produce p + H + Z(r − p); adding a parameter q shall produce p + H + Zq; adding a line l shall produce p + H + Rl. Insertion of an already supplied generator shall be mathematically idempotent. A zero parameter shall preserve a nonempty grid.
An empty receiver shall accept a point and become that singleton. A parameter or line supplied to empty shall throw std::invalid_argument, including a zero parameter. Previously undetected inconsistency shall have the same meaning as already marked empty. In zero dimensions a point shall establish universe; a parameter shall preserve universe and be rejected by empty.
Missing coordinates shall be zero extended. Greater declared input dimension shall throw std::invalid_argument before receiver mutation, including an empty receiver or a zero parameter. Input type and value shall be captured safely when the argument is borrowed from the receiver's generator view. Receiver mutation may invalidate that view according to 🔗 10. Borrowed congruence and generator views of grid values; the external input case shall preserve its source. The result shall not depend on storage, redundant rows or cache history.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including every intermediate calculation. Resource and numerical exceptions may propagate. Surviving receiver ownership shall permit destruction; rollback or further queries after an exception shall not be assumed. External input descriptors shall retain their value.
-
Incoming links from: 2. Construction of nonzero grid-line directions 3. Exact rational parameter construction including zero steps 11. Value-preserving scaling to a common positive divisor 12. Grid-generator equivalence and stored identity 15. Grid-generator-system integer-affine span and construction 16. Owned grid-generator systems and representation comparison 17. Grid-generator insertion, zero steps and ownership transfer 6. Java mathematical representations and operation options8
1. Grid-generator values and integer versus continuous displacement PPL-SPEC-000221 A Grid_Generator shall describe a rational included point, a rational parameter displacement vector, or a continuous line direction, in its public ambient dimension. For a point or parameter with numerators ai and positive divisor d, coordinates shall be ai ⁄ d. Parameters shall retain their exact rational step, including sign and magnitude; integer multiples of that step shall contribute to a generated grid. Lines shall contribute arbitrary real multiples of their direction. Hidden divisor fields shall not be public coordinates.
Both storage representations shall be supported; default_representation shall be SPARSE. Initialization and synchronization shall follow 🔗 3. Thread initialization, default state and finalization. Computed construction, transformation, scaling and comparison guarantees shall require all evaluated coefficient steps/results to be representable in the selected profile; unchecked completion shall not prove that condition. Allocation/numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete grid generator; distinct unchanged sources shall survive failures, while modified targets shall remain destructible without universal rollback.
-
2. Construction of nonzero grid-line directions PPL-SPEC-000222 grid_line(e,r) shall construct a line from homogeneous coefficients, ignore the constant, retain declared dimension and use requested storage. It shall produce a primitive direction with first nonzero coefficient positive. A zero homogeneous direction, including a nonzero constant expression, shall throw std::invalid_argument without modifying its source. Static and free forms shall agree geometrically. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
3. Exact rational parameter construction including zero steps PPL-SPEC-000223 parameter(e,d,r) shall create the rational displacement with coordinates ai ⁄ d from the homogeneous input coefficients, ignoring the constant, retaining dimension and using requested storage. Nonzero negative divisors shall be accepted by reversing numerator/divisor signs to make stored divisor positive while preserving the exact signed step. The parameter's magnitude shall not be normalized as a line direction. Zero displacement shall be admitted and retain its dimension. Zero divisor shall throw std::invalid_argument and preserve sources.
Defaults shall use dimension-zero zero expression, divisor one and default storage. Representation-only and expression/representation forms shall use divisor one. A divisor borrowed from the unchanged input expression shall be admitted using its entry value. Numerical prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
-
4. Rational grid-point construction, defaults and shared origin PPL-SPEC-000224 grid_point(e,d,r) shall construct the rational point with coordinates ai ⁄ d, ignoring the expression constant, retaining dimension and using requested storage. A negative nonzero divisor shall reverse numerator signs and become positive; common factors may be removed while preserving rational coordinates. Zero divisor shall throw std::invalid_argument. A divisor borrowed from the unchanged input expression shall use its entry value.
Omitted expression/divisor arguments shall denote the dimension-zero origin and divisor one. Representation-only and expression/representation forms shall use divisor one. Default construction shall produce that origin using requested storage. zero_dim_point() shall borrow the zero-dimensional origin until owning-thread finalization; owned copies shall be independent.
-
5. Owned grid-generator copying, assignment and swaps PPL-SPEC-000225 Copy construction shall preserve exact fields, kind, dimension and source representation; explicit-storage copies shall select their argument. Assignment shall copy complete entry value/storage, preserve distinct sources, return the target and admit self-assignment. Rvalue inputs shall admit copy forms retaining source value without requiring a distinct move operation. Copies shall remain independent of source mutation/destruction. Swaps shall exchange complete values, dimension and storage; self-swap shall preserve them. Destruction shall release owned storage. Failure during copy assignment's replacement construction shall preserve the target.
-
6. Grid-generator storage conversion PPL-SPEC-000226 representation() shall report storage. Successful conversion to dense or sparse representation shall select requested storage and preserve exact coefficients, divisor when applicable, kind and dimension. Repeating the current choice shall preserve the object. Failed replacement allocation shall leave its original value and storage unchanged.
-
10. Explicit replacement of a rational generator divisor PPL-SPEC-000230 For a point or parameter and positive input d, set_divisor(d) shall replace only its divisor using the input entry value, preserving coordinate numerators, dimension, kind and storage. It shall therefore change the rational vector when the divisor changes. A divisor borrowed from the same object shall be admitted. Calling it on a line shall throw std::invalid_argument without changing that line.
-
13. Reloadable grid-generator representation PPL-SPEC-000233 ascii_dump(s) shall export all stored coefficient/divisor fields and the public kind token; the no-argument form shall use std::cerr. Export shall preserve the source. Compatible complete exported data with representable coefficients shall load with true, replacing the generator's fields and public dimension while retaining destination storage.
Malformed/truncated expression or kind fields, missing internal divisor slots, nonpositive point/parameter divisors and encoded kind/field mismatches shall return false rather than be accepted as valid generators. Trailing input shall remain available. A failed target shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation and numerical exceptions may propagate.
-
15. Grid-generator-system integer-affine span and construction PPL-SPEC-000235 For lines L, parameters Q and included points P, a Grid_Generator_System shall generate the real vectors
∑l ∈ Lτll + ∑q ∈ Qkqq + ∑p ∈ Pzpp, τl ∈ ℝ, kq, zp ∈ ℤ, ∑p ∈ Pzp = 1.Without a point the generated grid shall be empty, even with stored nonzero lines/parameters. Integer affine combinations of multiple points shall not be replaced by convex combinations. Default construction shall make a zero-dimensional system with no rows; an explicit dimension constructor shall retain its supplied admitted dimension. Singleton construction shall copy its generator and dimension, including a zero parameter. Ordinary insertion shall separately follow 🔗 17. Grid-generator insertion, zero steps and ownership transfer. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton zero-dimensional origin until owning-thread finalization. Numerical/use/failure prerequisites shall follow 🔗 1. Grid-generator values and integer versus continuous displacement.
-
16. Owned grid-generator systems and representation comparison PPL-SPEC-000236 Copies/assignment shall preserve generated grid, declared dimension and retained row sequence. Ordinary copies and assignment shall retain source storage, while explicit-storage copies shall use their argument. Assignment shall return the target, preserve distinct sources, admit self-assignment and retain source value under rvalue copy forms. Copies shall survive source mutation/destruction. Swaps shall exchange full values, dimensions and storage, including self-swap. Successful representation conversion shall select dense or sparse row storage and preserve the generated grid and dimension. Copy-assignment replacement failure shall preserve the target; other failures shall follow 🔗 1. Grid-generator values and integer versus continuous displacement.
is_equal_to and system equality shall compare declared dimensions and retained row sequence using equivalent corresponding generators, not decide equality of arbitrarily reordered or redundant generated grids. Comparison shall ignore dense/sparse choice. Destruction shall release owned storage.
-
Incoming link from: 15. Grid-generator-system integer-affine span and construction1
17. Grid-generator insertion, zero steps and ownership transfer PPL-SPEC-000237 Const-reference insertion shall add a copy of a grid generator to the generating collection, preserve its source and retain target storage. Result dimension shall be the maximum input dimension, zero-extending shorter rows. A zero parameter shall add no row but shall still extend ambient dimension as needed; it shall not supply a supporting point. Copy insertion of a borrowed target row shall use its entry value. Duplicates/redundant generators may be removed or reordered while preserving the generated grid.
Rvalue row insertion shall transfer a source not borrowed from the target, with the same generated-grid effect as copying; the source shall remain destructible. Consuming-system insertion shall require distinct systems, combine their generating collections in aligned dimensions, and clear the source to a dimension-zero empty system on success. No unchanged-value guarantee shall apply to transferred inputs. Numerical/failure prerequisites in 🔗 1. Grid-generator values and integer versus continuous displacement shall apply.
Const row sources, including const rvalues, shall use preserving insertion. Successful rvalue row insertion shall leave its source a valid descriptor with an unspecified value.
-
20. Reloadable grid-generator-system representation PPL-SPEC-000240 ascii_dump(s) shall export stored rows, public dimension, storage and required system-state fields; the no-argument form shall use std::cerr. Export shall preserve source value. Compatible complete exports with representable coefficients shall load with true, replacing the target's generated grid, dimension, retained rows and encoded storage.
Malformed/truncated headers/rows, invalid divisor or kind structure, and inconsistent encoded dimensions/state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failed targets shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation/numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
Incoming link from: 2. Copying congruence-system addition and refinement1
1. Single congruence addition and refinement PPL-SPEC-001274 add_congruence(cg) and refine_with_congruence(cg) shall replace the receiver G by G∩{x ∣ cg(x)}. Equalities and proper congruences shall have their meanings in 🔗 1. Rational-grid values, coefficient profile and valid use. Tautologies shall preserve the grid and contradictions shall produce empty. Lower-dimensional rows shall be zero extended; excess declared row dimension shall throw std::invalid_argument before mutation, including for an empty receiver. The external row value shall be preserved.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 3. Recycling congruence-system addition1
2. Copying congruence-system addition and refinement PPL-SPEC-001275 add_congruences(cgs) and refine_with_congruences(cgs) shall intersect the receiver with the conjunction of all input rows, exactly as repeated 🔗 1. Single congruence addition and refinement. An empty system shall preserve the grid. An independently supplied input shall retain its value, declared dimension and storage, including on exceptional return. The receiver's current congruence view may be supplied; its entry value shall be used before invalidation. Excess declared input dimension shall throw std::invalid_argument before mutation, even for no rows or an empty receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Recycling congruence-system addition PPL-SPEC-001276 add_congruences(std::move(cgs)) and add_recycled_congruences(cgs) shall produce the same mathematical grid and dimension-rejection behavior as 🔗 2. Copying congruence-system addition and refinement. The source shall be a separate writable system without receiver-owned storage. Its storage may be transferred; after successful or exceptional return it shall retain ownership sufficient for destruction, without a guarantee about its rows or suitability for queries.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 5. Copying and recycling strict constraint-system addition1
4. Strict addition of a single linear constraint PPL-SPEC-001277 add_constraint(c) shall intersect the receiver exactly with an equality or constant constraint. A constant true inequality shall preserve the grid; a constant false inequality shall produce empty. A nonconstant inequality shall throw std::invalid_argument when processed. An already marked empty receiver may return without processing a dimension-compatible row. Excess declared constraint dimension shall throw std::invalid_argument before mutation, even for empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
5. Copying and recycling strict constraint-system addition PPL-SPEC-001278 add_constraints(cs) and add_recycled_constraints(cs) shall process the conjunction using the supported-constraint rules in 🔗 4. Strict addition of a single linear constraint. Excess declared system dimension shall throw std::invalid_argument before mutation, even for no rows or empty. Copying shall preserve the source value, dimension and storage. Recycling requires a separate writable source and guarantees its destruction after return; it need not actually transfer its storage. When an unsupported inequality is reached, earlier accepted rows may already have changed the receiver; rollback shall not be assumed.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
6. Conservative refinement by linear constraints PPL-SPEC-001279 refine_with_constraint(c) and refine_with_constraints(cs) shall intersect with every equality and produce empty for an inconsistent constant constraint. Other inequalities shall be ignored. Thus the result shall contain the concrete constrained set and shall never introduce points outside the entry grid. Input values shall be preserved. Excess declared input dimension shall throw std::invalid_argument before mutation, including an empty receiver or system.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
7. Equality-constraint extraction and minimization PPL-SPEC-001280 constraints() shall return an independently owned equality-constraint system defining the real affine hull of the receiver. Empty shall yield an inconsistent system, including when emptiness follows from incompatible proper congruences not previously normalized. minimized_constraints() shall return a minimal equality description of the same affine hull. Both shall preserve ambient dimension, receiver value and ownership, while normalization caches may change. The result shall be independent of storage, redundant rows and description history.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 2. Equality-compatible grid hashing1
1. Exact grid equality and inequality PPL-SPEC-001251 operator== shall return true exactly when both ambient dimensions and represented sets agree. Different dimensions shall compare unequal, including empty grids in different dimensions. Inequality expressions shall be the logical negation of equality. Equal-dimensional empty grids shall compare equal, including when inconsistency has not previously been detected. Self comparison shall have the ordinary reflexive result for every admitted value.
The result shall be independent of constructor choice, generator order, redundant descriptors and the current dual-description caches.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
2. Equality-compatible grid hashing PPL-SPEC-001252 hash_code() shall return a value of type int32_t. Equal grid values under 🔗 1. Exact grid equality and inequality shall have equal hashes. Normalization, query history and equivalent descriptions shall not change the hash of an unchanged grid. Hash collisions shall be permitted, including between unequal values of the same dimension. The numerical hash shall not be a persistent identifier or promise a value stable across library versions or configurations.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
3. Exact grid containment PPL-SPEC-001253 For equal-dimensional grids, left.contains(right) shall return true exactly when γ(right) ⊆ γ(left). Every grid shall contain the empty grid; empty shall contain no nonempty grid; universe shall contain every equal-dimensional grid. Self containment shall hold. Different ambient dimensions shall throw std::invalid_argument before empty, universe or identity shortcuts. Previously undetected inconsistency shall retain the same set meaning.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
4. Exact strict grid containment PPL-SPEC-001254 For equal-dimensional grids, left.strictly_contains(right) shall return true exactly when γ(right) ⊊ γ(left). It shall be false for self comparison and equal sets; a nonempty grid shall strictly contain empty. Different ambient dimensions shall throw std::invalid_argument even when either operand is empty.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
5. Exact grid disjointness PPL-SPEC-001255 For equal-dimensional grids, left.is_disjoint_from(right) shall return true exactly when γ(left)∩γ(right) = ⌀. The result shall be symmetric. Empty shall be disjoint from every grid, including itself; no nonempty grid shall be disjoint from itself. Different ambient dimensions shall throw std::invalid_argument before shortcuts. Success shall preserve both operands even when detecting inconsistent input or incompatible periodic residues.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
Incoming link from: 7. Exact grid relation with a linear constraint1
6. Exact grid relation with a congruence PPL-SPEC-001256 relation_with(cg) shall classify the grid relative to the solution set of cg. For nonempty grids it shall report exactly one of is_included(), is_disjoint() and strictly_intersects(): respectively all points satisfy cg, no point does, or both satisfying and nonsatisfying points exist. Empty shall report is_included() && is_disjoint() && saturates(). An equality congruence shall additionally report saturates() exactly when the grid is included in its equality hyperplane. For a nonempty positive-dimensional grid and a proper congruence, the returned relation shall consist of the inclusion/disjointness/intersection assertion alone. Zero-dimensional universe shall report is_included() && saturates() for a true constant congruence and is_disjoint() for a false one.
For a nonempty generator description, let S = {a⋅x − b : x ∈ γ(G)}. If a real line has nonzero scalar image, S = R. Otherwise S = s + dZ, where s = a⋅p − b and d ≥ 0 generates the rational subgroup of parameter images and supporting-point differences. This scalar image shall determine equality and periodic intersection without depending on generator order or rational divisor representation.
A congruence dimension greater than the grid dimension shall throw std::invalid_argument before distinguished-value shortcuts. Smaller descriptors shall have zero coefficients in the remaining coordinates.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
7. Exact grid relation with a linear constraint PPL-SPEC-001257 relation_with(c) shall classify all points, no points or a proper nonempty subset of grid points satisfying c using is_included(), is_disjoint() or strictly_intersects(). Empty shall report is_included() && is_disjoint() && saturates(). In every case, saturates() shall be present exactly when every grid point lies on the equality hyperplane obtained from c by replacing its relation with equality. Thus a grid on the boundary of a strict inequality shall report is_disjoint() && saturates().
For nonempty grids, a nonconstant scalar image along any line, parameter or supporting-point displacement shall take values on both sides of every finite halfspace threshold. Otherwise the scalar image shall be constant and its sign shall determine strict/nonstrict satisfaction and saturation. Equality constraints shall use the exact equality-congruence meaning in 🔗 6. Exact grid relation with a congruence.
A constraint dimension greater than the grid dimension shall throw std::invalid_argument before shortcuts; omitted coefficients shall be zero. Strict boundary behavior shall apply also to constant constraints and zero dimensions.
Strict constraints extracted from NNC polyhedra shall retain their mathematical relation when queried against a larger-dimensional grid.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
8. Exact grid subsumption of grid generators PPL-SPEC-001258 relation_with(g) for a Grid_Generator shall return Poly_Gen_Relation::subsumes() exactly under the following conditions:
- a point denotes a member of the grid;
- for a parameter q, the grid is nonempty and every integer translate x + zq, for x ∈ γ(G) and z ∈ Z, remains in the grid;
- for a line ℓ, the grid is nonempty and every real translate x + tℓ, for t ∈ R, remains in the grid.
In all other cases it shall return Poly_Gen_Relation::nothing(). In particular, empty shall subsume no generator, including a zero parameter; this shall hold before any earlier query has detected the emptiness. Parameter steps shall use their rational divisors and shall not be confused with arbitrary real line displacements. Zero-dimensional universe shall subsume every admitted zero-dimensional grid generator. A descriptor dimension greater than the grid dimension shall throw std::invalid_argument before empty/universe shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
9. Exact grid subsumption of polyhedral generators PPL-SPEC-001259 relation_with(g) for a polyhedral Generator shall return Poly_Gen_Relation::subsumes() exactly when the grid is nonempty and the following corresponding condition holds. Points and closure points shall be tested as rational point members, with the same result for identical coordinates. Lines shall be tested as arbitrary real displacements. A ray shall be subsumed exactly when its direction is an admitted real line direction of the grid; an integer parameter in that direction alone shall not suffice.
It shall return Poly_Gen_Relation::nothing() otherwise, including every empty grid before or after inconsistency detection. Zero-dimensional universe shall subsume every admitted zero-dimensional polyhedral generator. Descriptors of greater dimension than the grid shall throw std::invalid_argument before shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
-
1. Exact directional boundedness of affine expressions on grids PPL-SPEC-001265 bounds_from_above(expr) and bounds_from_below(expr) shall return true exactly when the expression is bounded in the indicated direction over the grid. Empty shall be bounded in both directions. On a nonempty grid, either both queries shall be true and the expression shall have one constant value, or both shall be false and the expression shall be unbounded in both directions.
For a generator description p + ∑iℤqi + ∑jℝlj and e(x) = a⋅x + b, boundedness shall be equivalent to a⋅qi = 0 and a⋅lj = 0 for every direction, including point differences when the description has more than one generating point. Zero coefficients shall not introduce dependence on unused directions.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
Incoming link from: 4. Point witnesses for rational-grid maximization1
2. Exact rational-grid supremum and attainment PPL-SPEC-001266 maximize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded above. On true, n/d shall be its exact supremum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
Incoming link from: 5. Point witnesses for rational-grid minimization1
3. Exact rational-grid infimum and attainment PPL-SPEC-001267 minimize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded below. On true, n/d shall be its exact infimum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
4. Point witnesses for rational-grid maximization PPL-SPEC-001268 The maximize overload with a Generator output shall obey 🔗 2. Exact rational-grid supremum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned supremum. Its type shall be POINT, not a closure point or a direction. All coordinates, including those absent from the objective, shall satisfy the grid's equalities and periodic restrictions. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness as well as all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
5. Point witnesses for rational-grid minimization PPL-SPEC-001269 The minimize overload with a Generator output shall obey 🔗 3. Exact rational-grid infimum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned infimum. Its type shall be POINT, not a closure point or a direction. Every coordinate shall satisfy the grid's equalities and periodic restrictions, including coordinates unused by the objective. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness and all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
6. Exact affine-image frequency and closest value on rational grids PPL-SPEC-001270 For the affine image S = {e(x) ∣ x ∈ G}, frequency(expr,fn,fd,vn,vd) shall return false when S is empty or equals ℝ, preserving all four supplied outputs. Otherwise it shall return true and positive denominators, with both fractions reduced. If S = {c}, fn/fd shall be zero over one and vn/vd shall be c. Otherwise S shall be the coset v + dℤ where d = fn ⁄ fd > 0 is its unique positive period generating all differences and v = vn ⁄ vd ∈ S has minimum absolute value. Either sign shall be permitted when two values tie.
A line with nonzero homogeneous objective image shall make the frequency undefined. Otherwise the positive period shall be the rational greatest common divisor of the parameter images and generating-point differences; a zero period shall mean the objective is constant. The objective's constant term shall translate the coset without changing its period. Zero-dimensional universe shall report zero frequency and the constant expression value.
For a bounded coefficient profile, generator scalar products, translated point values, parameter gcds and closest-residue selection shall use exact working integers until both output fractions are reduced. Only the final reduced numerators and denominators shall require coefficient admission. A machine-carrier overflow shall promote the working arithmetic without truncation. Stored grid descriptions remain subject to their profile limits.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
-
1. Exact rational-grid intersection PPL-SPEC-001281 intersection_assign(y) shall replace X by X∩Y exactly. Empty shall be absorbing, universe neutral and self intersection idempotent. The operand shall retain its mathematical value. Unequal ambient dimensions shall throw std::invalid_argument before receiver mutation, including empty operands.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
2. Least containing rational grid PPL-SPEC-001282 upper_bound_assign(y) shall replace X by the least rational grid containing X∪Y. Empty shall be neutral and self hull idempotent. For nonempty X = p + HX and Y = q + HY, the result shall be p + HX + HY + Z(q − p). It need not equal the finite union. The operand value shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
A self join shall preserve the stored descriptions. If the operands have the same ordered generator rows in current generator systems or the same ordered congruence rows in current congruence systems, the join shall keep the existing caches without appending rows or materializing another system.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
3. Conditional exact rational-grid union PPL-SPEC-001283 upper_bound_assign_if_exact(y) shall return true exactly when X∪Y is a rational grid. On true it shall assign that exact union. On false it shall preserve the receiver's mathematical value; its caches may change. Empty and contained operands shall succeed. The operand value shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
4. Least-grid abstraction of set difference PPL-SPEC-001284 difference_assign(y) shall assign the least rational grid containing X⧵Y. Removing a superset shall yield empty; removing disjoint or empty shall preserve X. When the difference is the other coset of an index-two subgroup, that coset shall be retained exactly. In other cases the least grid may be the whole entry receiver. The operand shall retain its value. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
5. Context-preserving grid simplification PPL-SPEC-001285 simplify_using_context_assign(y) shall produce X’ satisfying X’∩Y = X∩Y. A false return shall imply X∩Y = ⌀; true need not prove nonemptiness. Simplification may enlarge the receiver and need not be maximal or preserve it outside the context. The operand's mathematical value shall be preserved unless it is the receiver itself. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
6. Coordinate cylindrification PPL-SPEC-001286 unconstrain(var) and unconstrain(vars) shall existentially project the selected coordinates and reintroduce them as unconstrained real coordinates at their original indices. They shall preserve ambient dimension and all correlations among unselected coordinates. Empty remains empty; an empty selection is identity. Any selected index outside the ambient dimension shall throw std::invalid_argument before mutation, including empty receivers.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
-
Incoming link from: 3. Compatible rational-grid record loading and failure state1
5. Grid internal status signed-keyword loading and rejection PPL-SPEC-001611 ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Grid internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.
For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Grid internal status consistency predicate. A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.
The loader shall reset its word to zero before reading the first field. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Grid internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 3. Compatible rational-grid record loading and failure state.
-
1. Human-readable rational-grid presentation PPL-SPEC-001260 IO_Operators::operator<<(s, grid) shall write false for empty, true for universe, and a readable congruence description otherwise. Nontrivial output shall denote the same set and coordinate identities as the grid, using the installed variable formatter and descriptor output conventions. It shall return s by reference. Representation normalization shall be permitted, preserving set and ambient dimension. This display shall not promise an ascii_load input format or a fixed order of equivalent rows. Stream failure shall follow the stream's configured state/exception behavior. print() shall send the same readable presentation to std::cerr without adding a newline; it shall have the same source and arithmetic prerequisites.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
-
2. Reloadable rational-grid record export PPL-SPEC-001261 ascii_dump(s) shall export a complete record of ambient dimension, distinguished-value/status information, stored congruence and generator systems with their current-description indicators, and dimension-kind data required by the encoded reduced descriptions. The no-argument overload shall write the same record to std::cerr. Export shall preserve the source value, dimension, stored descriptions, status and ownership.
A compatible complete record shall support the loading contract in 🔗 3. Compatible rational-grid record loading and failure state. The scope shall be the corresponding supported producer/consumer format and representable selected coefficient profile; cross-version compatibility, fixed bytes across equivalent cache histories and compatibility with human-readable presentation shall not be implied. Stream failures and enabled stream exceptions shall propagate through the standard stream mechanism; incomplete output shall not be a complete record.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
The internal status contract shall follow 🔗 4. Grid internal status signed-keyword export.
-
3. Compatible rational-grid record loading and failure state PPL-SPEC-001262 ascii_load(s) shall return true on a trusted, compatible complete record produced by 🔗 2. Reloadable rational-grid record export, replacing the receiver's set and ambient dimension. Encoded storage shall be retained for the loaded descriptor systems. Cached normal forms may be invalidated and rebuilt under the current reduction rules; cache reconstruction shall preserve mathematical meaning. Trailing input shall remain available after the complete record.
Malformed or truncated fields, unsupported ambient dimensions, invalid status/descriptor structures, incompatible current-description dimensions and nonempty-state generator descriptions lacking a point shall return false, with and without enabled assertions. For a successful load of a trusted record written by 🔗 2. Reloadable rational-grid record export, the receiver shall meet 🔗 5. Rational-grid representation invariant query. Its current descriptions shall define the same set, and an empty grid shall retain empty congruence and generator views. Structural checks can accept altered records whose descriptions contradict one another or disagree with the status. Further operations require a valid representation.
Stream, allocation and selected numerical exceptions may propagate. After false or an exception, the receiver shall retain ownership sufficient for destruction; rollback and subsequent queries shall not be assumed.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
Storage for serialized dimension kinds shall grow with the accepted entries rather than the declared dimension alone.
The internal status contract shall follow 🔗 5. Grid internal status signed-keyword loading and rejection.
-
4. Owned rational-grid memory accounting PPL-SPEC-001263 external_memory_in_bytes() shall report the owned external storage of the congruence system, generator system and dimension-kind vector. Descriptor system counts shall follow their component contracts; the vector count shall include its retained allocated capacity rather than only its live entries. Inactive or logically empty cached data shall remain counted while owned. Other objects, runtime scratch pools and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(Grid) plus that external count. The sums shall fit memory_size_type and use the selected build's sizes. Both queries shall preserve set, ambient dimension, caches, capacity, ownership and lifetimes; the observed storage shall remain unchanged during the query.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
-
Incoming link from: 3. Compatible rational-grid record loading and failure state1
5. Rational-grid representation invariant query PPL-SPEC-001264 OK(false) shall return true for an admitted grid whose distinguished state, ambient dimension, status and current descriptions satisfy the representation invariants. OK(true) shall additionally require the grid to be nonempty. The ambient dimension shall be supported and every current system shall be structurally valid and have that dimension.
An empty grid shall have empty generator views and a contradictory congruence view. Zero-dimensional universe shall have no defining congruences and one zero-dimensional point. A nonempty-state current generator system shall contain a point. If both descriptions are current, they shall define the same set, including affine restrictions and discrete periods. A congruence-only description may be inconsistent without already having the empty flag; in that case OK(false) shall be true and OK(true) false.
The query shall preserve the receiver and may use independent temporary normalization to check consistency. It may allocate and propagate supported resource or numerical failures. On an invalid state it may emit diagnostic text; diagnostic wording shall not be a stable interface. The query shall operate only on live, destructible owned structures, not arbitrary invalid addresses or corrupted object representations.
The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.
The internal status contract shall follow 🔗 3. Grid internal status consistency predicate.
-
Incoming links from: 1. Exact rational affine image 2. Exact rational affine preimage 3. Generalized variable affine image 4. Generalized variable affine preimage 5. Generalized expression affine image 6. Generalized expression affine preimage 7. Bounded affine image abstraction 8. Bounded affine preimage abstraction 1. Congruence widening and finite delay 2. Generator widening and finite delay 3. Representation-selected default grid widening 4. Congruence-limited extrapolations 5. Grid convergence certificates 1. Grid construction from boxes 1. Grid construction from boxes 2. Grid construction from bounded-difference shapes 2. Grid construction from bounded-difference shapes 3. Grid construction from octagonal shapes 3. Grid construction from octagonal shapes 4. Grid construction from polyhedra 1. Free-coordinate extension 2. Zero-coordinate extension 3. Ordered Cartesian concatenation 4. Selected-coordinate existential projection 5. Prefix-coordinate existential projection 6. Injective coordinate remapping 7. Conditional coordinate replication 8. Least-grid folding of coordinate alternatives 1. Integer-time-elapse grid abstraction 2. Exact integer-coordinate restriction 3. Bounded-integer wrapping abstraction 4. Grid topological closure 1. Copying bulk insertion of rational-grid generators 1. Copying bulk insertion of rational-grid generators 2. Recycling bulk insertion of rational-grid generators 3. Copying insertion of a single rational-grid generator 1. Single congruence addition and refinement 1. Single congruence addition and refinement 2. Copying congruence-system addition and refinement 3. Recycling congruence-system addition 4. Strict addition of a single linear constraint 5. Copying and recycling strict constraint-system addition 6. Conservative refinement by linear constraints 7. Equality-constraint extraction and minimization 1. Exact grid equality and inequality 2. Equality-compatible grid hashing 3. Exact grid containment 4. Exact strict grid containment 5. Exact grid disjointness 6. Exact grid relation with a congruence 7. Exact grid relation with a linear constraint 8. Exact grid subsumption of grid generators 9. Exact grid subsumption of polyhedral generators 1. Exact directional boundedness of affine expressions on grids 2. Exact rational-grid supremum and attainment 3. Exact rational-grid infimum and attainment 4. Point witnesses for rational-grid maximization 5. Point witnesses for rational-grid minimization 6. Exact affine-image frequency and closest value on rational grids 1. Exact rational-grid intersection 2. Least containing rational grid 3. Conditional exact rational-grid union 4. Least-grid abstraction of set difference 5. Context-preserving grid simplification 6. Coordinate cylindrification 1. Human-readable rational-grid presentation 2. Reloadable rational-grid record export 3. Compatible rational-grid record loading and failure state 4. Owned rational-grid memory accounting 5. Rational-grid representation invariant query 2. Dimensioned empty and universe grid construction 3. Owned grid copying, assignment and destruction 4. Whole grid value exchange 5. Exact grid construction from congruence systems 6. Exact grid construction from generator systems 6. Exact grid construction from generator systems 7. Grid construction from equality constraint systems 8. Ambient and affine grid dimensions 9. Exact foundational grid classification 10. Borrowed congruence and generator views of grid values80
1. Rational-grid values, coefficient profile and valid use PPL-SPEC-001241 Grid shall represent the solutions in Rn of a finite system of rational linear congruences. For integer coefficients after common denominator scaling, a row a⋅x ≡ mb shall mean a⋅x − b ∈ mZ when m > 0, and a⋅x = b when m = 0. Empty and universe shall be distinct in every supported ambient dimension. Coordinates absent from all restrictions shall remain free. The coordinate carrier shall remain real, including when all stored coefficients are integral.
A nonempty rational generator description shall denote p + ∑iziiq + ∑jtjℓj, with rational supporting point p, rational parameter directions qi, rational line directions ℓj, zi ∈ Z and tj ∈ R. Additional supporting points shall contribute their displacements from p as integer parameter directions. Generator insertion order shall not affect this mathematical meaning.
coefficient_type shall be the configured Coefficient. Objects and supplied descriptors shall be live and valid. Coordinate identities and reserved dimension indications shall follow 🔗 1. Coordinate type and reserved dimension index. Library and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply. Every coefficient operation, including intermediate calculations, shall meet the selected arithmetic profile's range and resource prerequisites. Exact guarantees shall apply when these preconditions hold; bounded coefficient storage shall not silently turn the grid into an integer-coordinate domain.
When eliminating an equality from a proper congruence, an unrepresentable inhomogeneous difference shall be replaced by an equivalent exact residue modulo the positive row modulus. Range requirements shall continue to apply to modulus scaling and homogeneous coefficients; real coordinates shall not permit reducing homogeneous coefficients modulo that modulus.
Diagonal LCMs used in either description-conversion direction shall be exact even when the working value exceeds the configured coefficient range. Each quotient stored in a destination row shall still fit that range. Cancelling a positive factor shared by proper congruence rows shall include their moduli and stored integrality row, while preserving zero-modulus equalities.
Elimination of a nonzero column between two proper congruences, or between points and parameters, shall store its known zero and positive GCD without requiring cancelling products in that column to fit the coefficient range. Assertion checks of the corresponding Bezout identity shall not add a bounded intermediate-product prerequisite. Non-pivot two-product linear combinations shall be evaluated exactly before applying stored-result range requirements, including when native carrier products overflow. An unrepresentable proper-congruence constant shall use an exact equivalent residue modulo its positive row modulus. Homogeneous coefficients and generator coordinates shall still fit their selected storage; homogeneous terms shall not be reduced modulo a congruence modulus.
Independent objects shall own independent values. Mutation, destruction and operations that may update caches shall be externally synchronized against other uses of the same object. Failed construction shall release the resources acquired by the incomplete object. Failure of an operation on an existing object shall preserve ownership sufficient for safe destruction; rollback or permission for further queries shall require a stronger operation-specific guarantee.
-
2. Dimensioned empty and universe grid construction PPL-SPEC-001242 Grid(n,kind) shall construct the selected EMPTY or UNIVERSE value in ambient dimension n. Default construction shall produce the zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall report the structural limit for Grid in the selected configuration. Requests above that limit, including the reserved dimension indication, shall throw std::length_error before allocating storage for the requested dimension. The limit shall not promise that actual resources suffice for every smaller request. Failed construction shall release resources acquired by the incomplete object.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
3. Owned grid copying, assignment and destruction PPL-SPEC-001243 Copy construction shall produce an independent grid with the source's represented set and ambient dimension. The three declared complexity values shall not alter ordinary copying. Assignment shall replace the receiver's represented set and dimension with the source's, return a reference to the receiver, and support different dimensions and self-assignment. Mutation or destruction of either independent value shall not change the other value.
Destruction shall release owned resources exactly once. Failed copy construction shall release resources acquired by the incomplete object. Failed assignment shall preserve ownership needed for safe destruction; rollback to the receiver's entry value shall not be required.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
4. Whole grid value exchange PPL-SPEC-001244 x.m_swap(y) and swap(x,y) shall exchange the represented grids, ambient dimensions and owned representation state. They shall support self exchange and grids of different dimensions. Subsequent independent mutation shall affect only its selected object. Exchange shall not require grid normalization, coefficient arithmetic or new allocation.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
5. Exact grid construction from congruence systems PPL-SPEC-001245 Construction from a valid Congruence_System shall inherit its ambient dimension and denote exactly the simultaneous solutions of its rows. Equalities, proper congruences, redundant rows, tautologies and inconsistent systems shall retain their congruence meanings. A system without restrictions shall describe universe in its ambient dimension. Zero-dimensional systems shall give universe or empty according to their constant conditions.
can_recycle_congruence_systems() shall return true.
The const-reference form shall preserve its source. The non-const rvalue form may consume source storage; after successful or exceptional return the source shall require no operation other than destruction. Both forms shall reject a source dimension above max_space_dimension() with std::length_error before dimension-dependent storage allocation.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
6. Exact grid construction from generator systems PPL-SPEC-001246 Construction from a valid Grid_Generator_System shall inherit its ambient dimension and denote its point, integer-parameter and real-line combinations in 🔗 1. Rational-grid values, coefficient profile and valid use. An empty system shall construct an empty grid. A nonempty system without a supporting point shall throw std::invalid_argument. A supporting point in zero dimensions shall construct zero-dimensional universe. Generator insertion order, redundant points and equivalent simultaneous rescaling of generator numerators and divisors shall not change the represented set.
The const-reference form shall preserve its source. The non-const rvalue form may consume source storage; after successful or exceptional return the source shall require no operation other than destruction. A source dimension above max_space_dimension() shall throw std::length_error before allocating dimension-dependent grid storage.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
7. Grid construction from equality constraint systems PPL-SPEC-001247 For positive ambient dimension, construction from a Constraint_System shall accept equality rows and denote exactly their common affine subspace. An empty system shall describe universe in its ambient dimension. An inequality row shall throw std::invalid_argument in positive dimension.
In zero dimensions, constant conditions shall instead be evaluated directly: a system whose rows are all satisfied shall construct universe, and any inconsistent row shall construct empty, including an inconsistent constant inequality. Both forms shall inherit the source's ambient dimension.
can_recycle_constraint_systems() shall return true.
The const-reference form shall preserve its source. The non-const rvalue form shall permit source consumption; after successful or exceptional return the source shall require no operation other than destruction. Oversized source dimensions shall throw std::length_error before dimension-dependent grid storage.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
8. Ambient and affine grid dimensions PPL-SPEC-001248 space_dimension() shall report the ambient dimension without changing the represented grid. affine_dimension() shall return zero for empty and zero-dimensional grids; otherwise it shall return the dimension of the least affine subspace containing the grid. For a nonempty generator description this shall equal the rational rank of its line directions, parameter directions and supporting-point differences.
The answer shall be independent of the current dual representation, redundant input rows, generator order and prior normalization.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
9. Exact foundational grid classification PPL-SPEC-001249 The following queries shall make exact decisions on admitted grid values:
- is_empty() shall return true exactly for the empty represented set.
- is_universe() shall return true exactly for all of the ambient real coordinate space.
- is_bounded() shall return true exactly for empty or singleton grids.
- is_discrete() shall return true exactly when every represented point is isolated; empty shall be discrete. In a nonempty rational generator description this is equivalent to the absence of nonzero line directions.
- is_topologically_closed() shall return true for every rational grid.
- contains_integer_point() shall return true exactly when the grid intersects Zn; zero-dimensional universe shall contain the integer empty tuple and zero-dimensional empty shall contain none.
- constrains(v) shall return true exactly when independently varying coordinate v can leave the grid. Empty shall constrain every in-range coordinate. An out-of-range coordinate shall throw std::invalid_argument before an empty/universe shortcut.
Answers shall not depend on generator insertion order or whether the current congruence/generator descriptions have been normalized. A periodic restriction shall not be mistaken for an interval bound or a continuous free coordinate.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
-
Incoming links from: 1. Exact rational affine image 2. Exact rational affine preimage 3. Generalized variable affine image 4. Generalized variable affine preimage 5. Generalized expression affine image 6. Generalized expression affine preimage 7. Bounded affine image abstraction 8. Bounded affine preimage abstraction 1. Congruence widening and finite delay 2. Generator widening and finite delay 3. Representation-selected default grid widening 4. Congruence-limited extrapolations 5. Grid convergence certificates 1. Grid construction from boxes 2. Grid construction from bounded-difference shapes 3. Grid construction from octagonal shapes 4. Grid construction from polyhedra 1. Free-coordinate extension 2. Zero-coordinate extension 3. Ordered Cartesian concatenation 4. Selected-coordinate existential projection 5. Prefix-coordinate existential projection 6. Injective coordinate remapping 7. Conditional coordinate replication 8. Least-grid folding of coordinate alternatives 1. Integer-time-elapse grid abstraction 2. Exact integer-coordinate restriction 3. Bounded-integer wrapping abstraction 4. Grid topological closure 1. Copying bulk insertion of rational-grid generators 2. Recycling bulk insertion of rational-grid generators 3. Copying insertion of a single rational-grid generator 1. Single congruence addition and refinement 2. Copying congruence-system addition and refinement 3. Recycling congruence-system addition 4. Strict addition of a single linear constraint 5. Copying and recycling strict constraint-system addition 6. Conservative refinement by linear constraints 7. Equality-constraint extraction and minimization 1. Exact grid equality and inequality 2. Equality-compatible grid hashing 3. Exact grid containment 4. Exact strict grid containment 5. Exact grid disjointness 6. Exact grid relation with a congruence 7. Exact grid relation with a linear constraint 8. Exact grid subsumption of grid generators 9. Exact grid subsumption of polyhedral generators 1. Exact directional boundedness of affine expressions on grids 2. Exact rational-grid supremum and attainment 3. Exact rational-grid infimum and attainment 4. Point witnesses for rational-grid maximization 5. Point witnesses for rational-grid minimization 6. Exact affine-image frequency and closest value on rational grids 1. Exact rational-grid intersection 2. Least containing rational grid 3. Conditional exact rational-grid union 4. Least-grid abstraction of set difference 5. Context-preserving grid simplification 6. Coordinate cylindrification60
10. Borrowed congruence and generator views of grid values PPL-SPEC-001250 Borrowed congruence and grid-generator accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned references shall not extend the receiver's lifetime. Constraint extraction returns an independent value and shall remain available on temporary grids.
congruences() and grid_generators() shall return valid descriptions of the receiver's exact represented grid in the same ambient dimension. If the required description is stale, it shall be computed without changing the grid's mathematical meaning.
minimized_congruences() and minimized_grid_generators() shall additionally supply the corresponding minimized triangular representations. Required administrative integrality rows may remain in congruence storage. These interfaces shall not promise a unique physical row order or byte-identical records across equivalent descriptions.
Returned references shall borrow receiver-owned storage. Their use shall require the receiver to remain live and no intervening operation capable of replacing or normalizing the borrowed representation. Iterators and row references shall obey the same condition. An independently copied returned system shall remain independent of later receiver mutation or destruction. Empty and zero-dimensional values shall retain their exact distinguished meanings in both descriptions.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
Before aligning proper-congruence moduli in a bounded profile, simplification shall remove each row's redundant sign, constant-residue and common-factor scaling. A tautological constant row shall retain a nonzero integrality representative. Alignment shall preserve the same rational satisfying set.
For a bounded discrete generator system, elimination may temporarily cancel the common positive factor of every coupled point/parameter coordinate and divisor, restoring that physical scale after reduction. The resulting strong form shall retain its previous storage scale. Lines shall not be rescaled by this operation, and integer-parameter periods shall not change. Centered coordinate reduction shall also accept a positive pivot at the profile's largest admissible coefficient without overflowing the half-pivot calculation. For a least signed pivot input, Bezout computation shall own its working magnitudes and admit only the completed positive gcd and signed coefficients; an unrepresentable input magnitude alone shall not cause arithmetic failure.
During triangular conversion, the selected coordinate's scaling and exact division shall be fused; an unrepresentable product immediately cancelled by that division shall not be stored. Other coupled point/parameter or proper- congruence rows shall receive the required common scale. Independent line or equality scales shall remain independent. Complete column differences shall be evaluated exactly. If an inverse-column working value exceeds the coefficient range, conversion shall replay the complete triangular inverse using independently owned unbounded integers. Later exact divisions shall precede admission of destination coefficients. Final unrepresentable entries shall still raise the configured range exception, including in native coefficient profiles. Replay shall preserve the source rows, their dimension kinds and the distinct coupled or independent row scales.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 6. Coefficient zero and one constant access 1. Compound-domain values and valid use 1. Rational-grid values, coefficient profile and valid use 2. Explicit whole-library initialization and finalization 2. Explicit whole-library initialization and finalization 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 1. Polyhedral values, coefficient profile and valid use 1. Optimization and ranking valid use 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state27
1. Initialization owners and automatic C++ initialization PPL-SPEC-000031 The public C++ header shall establish an initialization owner in each participating translation unit unless PPL_NO_AUTOMATIC_INITIALIZATION is defined before that translation unit first includes <ppl.hh>. The first successfully constructed Init owner shall establish shared library facilities and initialize its calling thread. Additional owners shall retain that initialized lifetime without reinitializing its existing thread state. Destruction of an owner while another owner remains shall preserve the shared facilities. Destruction of the last owner shall finalize the owning thread and release shared initialization facilities.
The first-owner construction and last-owner destruction shall be serialized by the caller and shall occur on the same thread. All other participating threads shall complete their PPL use and thread finalization before last-owner destruction. Every PPL object or borrowed view whose validity depends on the initialized facilities shall cease to be used, and every required owned-object cleanup shall finish, before those facilities are finalized. A later initialized lifetime shall not revive objects or views from an earlier lifetime.
The owner counter, saved-rounding storage, automatic-owner pointers and irrational-precision storage shall be statically zero-initialized. The optional rounding-verifier function pointers shall be statically initialized to their designated probes. Their definitions shall enforce constant initialization with constinit. Runtime owner and thread setup shall establish the numerical state specified by this protocol.
Explicit Init guards shall be used only within this ownership protocol. The number of simultaneously live owners shall remain representable by unsigned int. Callers shall not copy, move or assign Init or Thread_Init guards. Automatic initialization shall not by itself initialize worker threads. Thread entry and exit shall follow 🔗 3. Thread initialization, default state and finalization.
If first-owner construction reports a supported recoverable exception, it shall release resources acquired for the failed construction, restore the preceding variable formatter, irrational precision and rounding state, and leave no initialization owner contributed by the failed construction. If setup replaced a signal handler, failure shall restore its preceding action without discarding the caller's pending notifications or changing the caller's timer.
-
2. Explicit whole-library initialization and finalization PPL-SPEC-000032 When automatic initialization is disabled by PPL_NO_AUTOMATIC_INITIALIZATION before public-header inclusion, initialize() shall acquire one library initialization owner on its first successful call without an existing explicit owner. Repeated calls while that owner exists shall preserve it and its active thread state, rather than acquire additional owners or reset the formatter, numerical constants or precision. finalize() shall release that explicit owner. A call to finalize() shall require an existing explicit owner; a sequence of repeated initialize() calls shall require only one matching finalize().
The explicit owner shall obey the first/last-owner, dependent-object cleanup and same-thread conditions of 🔗 1. Initialization owners and automatic C++ initialization. After successful finalize(), a later initialize() shall establish a fresh initialized lifetime. Supported recoverable failure in initialize() shall release resources acquired for the failed owner and shall permit a later call to attempt initialization afresh.
When the header provides automatic initialization, initialize(), finalize(), thread_initialize() and thread_finalize() shall be no-ops; the automatic owner and explicit Thread_Init guards shall govern those lifetimes instead.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 1. Ordered coefficient-map values and valid tree use 2. Finite coefficient construction, copying and comparison 6. Coefficient zero and one constant access 7. Coefficient constant-stage acquisition and release 1. Compound-domain values and valid use 1. Affine congruence meaning and valid numerical use 1. Constraint relation meaning and numerical prerequisites 20. Distance scratch storage, admissible overlaps and numeric conditions 1. Extended-number row meaning and construction states 1. Generator kinds and numerical prerequisites 1. Grid-generator values and integer versus continuous displacement 1. Rational-grid values, coefficient profile and valid use 1. Initialization owners and automatic C++ initialization 5. Interruptible thread registration and request lifetime 1. Affine value, numerical prerequisites and shared zero 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 9. Distance workspace protocol and admissible overlaps 8. Coordinate-map diagnostic printing and output failures 1. Polyhedral values, coefficient profile and valid use 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 1. Optimization and ranking valid use 3. Selection and ownership of irrational rational precision 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state42
3. Thread initialization, default state and finalization PPL-SPEC-000033 While a library initialization owner remains alive, each additional thread using PPL thread-specific facilities shall establish exactly one active thread initialization lifetime before those facilities are used. A directly constructed Thread_Init guard shall establish that lifetime and shall finalize it when the guard is destroyed on the same thread. A direct guard shall not overlap an already active PPL thread-initialization lifetime on that thread and shall not be copied, moved or assigned.
In a client compiled with automatic initialization disabled, thread_initialize() shall establish a thread lifetime if none is owned by that entry protocol. Repeated calls while that protocol owns an active lifetime shall preserve its constants, precision and formatter. thread_finalize() shall require and end that protocol-owned active lifetime. Direct guards and these entry points shall not be mixed for the same active lifetime. The thread initialized by the first library owner shall have an active protocol-owned thread lifetime when last-owner destruction begins.
Successful thread initialization shall establish the numerical constants used by expressions, constraints, congruences, generators, their systems and polyhedra, set irrational_precision() to 128, and select Variable::default_output_function as the active variable formatter, as specified by 🔗 7. Active Variable formatter and initialized thread state. When configured rounding control is available, it shall save and replace the calling thread's rounding direction as specified by 🔗 4. Rounding-state exchange during an initialized thread lifetime. In a thread-safe configuration these states shall belong to the calling thread and shall be isolated from the corresponding state of other initialized threads. In a configuration without thread support, clients shall use one initialized thread and shall not create overlapping thread-initialization lifetimes.
Before finalization, all PPL use and required owned-object cleanup depending on that thread's initialized state shall finish. Finalization shall release the thread-owned initialization resources and restore its saved rounding direction when rounding control is configured. Reentry after completed finalization shall establish fresh default state; it shall not revive earlier objects or views. If thread construction reports a supported recoverable exception, resources acquired for the incomplete lifetime shall be released, and the preceding variable formatter, irrational precision and rounding state shall be restored.
-
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 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.
-
Incoming links from: 5. Row sizes, supported limits, coefficient ranges and equality 2. Pointer-position construction, conversion and assignment 3. Pointer-adapter dereference, member selection and indexing 4. Pointer-adapter single-step traversal 5. Pointer-adapter displacement and distance 6. Pointer-adapter compatible comparisons and mixed distance 16. Flattened element ranges and physical row-major order7
1. Pointer-adapter types and borrowed storage PPL-SPEC-000631 Implementation::Ptr_Iterator<P> shall adapt a stored object of type P without copying, destroying or taking ownership of the elements to which it refers. Its five iterator type aliases shall equal the corresponding std::iterator_traits<P> aliases. Each selected operation shall require its underlying P operations and conversions to be well-formed and to satisfy their own range, lifetime and arithmetic preconditions. The underlying object shall manage any resources of P itself; underlying exceptions shall propagate without being converted into a successful iterator result.
For raw object pointers, the adapter shall borrow live elements of a live array; a one-past position shall be admitted where the corresponding pointer operation admits it. Element access shall require an occupied position. Pointer subtraction and range ordering shall require positions within the same array, with representable differences. The adapter shall impose no library numerical-initialization prerequisite.
-
2. Pointer-position construction, conversion and assignment PPL-SPEC-000632 Default construction shall value-initialize the stored P object. For a raw pointer this shall yield a null position, usable for copying, assignment and equality without element access or pointer arithmetic. Explicit binding shall copy the supplied underlying pointer value. Ordinary copying and assignment shall retain the same borrowed position. Converting construction from Ptr_Iterator<Q> shall initialize the target pointer from the source pointer when that initialization is supported; raw mutable-to-const conversion shall retain element identity.
Destroying the adapter shall destroy its pointer object, leaving borrowed elements untouched. Failed construction shall release completed pointer subobjects. A failure of an underlying pointer operation shall retain that operation's own permitted state, without a stronger general rollback guarantee. These operations shall follow 🔗 1. Pointer-adapter types and borrowed storage.
-
Incoming links from: 3. Expression-view predicates, coefficient ranges and support filtering 1. Internal affine value, coefficient storage and dispatch prerequisites 7. Affine addition, subtraction and negation 8. Integral scalar multiplication and coefficient-wise division 9. Explicit scaled accumulation, combination and elimination 10. Coefficient normalization and sign normalization 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 6. Java mathematical representations and operation options9
1. Affine value, numerical prerequisites and shared zero PPL-SPEC-000071 A live Linear_Expression of space dimension d, with homogeneous coefficients ai and inhomogeneous term b, shall denote the function E(x) = b + ∑d − 1i = 0aixi on rational valuations. The constant term shall not occupy a coordinate. Trailing zero coefficients shall remain part of the declared ambient dimension.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize access to an object while another operation modifies it. The valid representations shall be DENSE and SPARSE; default_representation shall be SPARSE. zero() shall return a borrowed, constant expression of dimension zero and value zero. The returned object shall remain alive until its owning initialized thread is finalized.
The computed arithmetic guarantees of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization shall require every evaluated coefficient arithmetic step and result to be representable in the selected coefficient profile. Checked arithmetic may report overflow; unchecked completion shall not prove that this precondition held. Allocation failures may propagate. Failed construction shall release resources owned by the incomplete expression. Distinct, unchanged operands shall remain valid after a reported failure. Other modified objects shall be destructible; no universal rollback is promised.
-
Incoming link from: 2. Independent backend construction, copying and affine arithmetic1
2. Zero, constant, variable and dimensioned construction PPL-SPEC-000072 Expression_Adapter_Source<T> shall have the truth value of std::is_convertible_v<const T&, const Expression_Adapter_Base&>. The four adapter-copy constructors shall use this predicate as their type constraint, including implicit base-reference conversions and excluding inaccessible or ambiguous base conversions. Their optional trailing void* parameter shall retain its default null value and shall be ignored.
Construction with only an optional representation shall produce dimension zero and value zero. Construction from a coefficient shall produce dimension zero and that constant value. Construction from Variable v shall produce dimension v.space_dimension(), coefficient one at v.id(), and zero elsewhere, including the constant term.
A variable whose dimension exceeds max_space_dimension() shall cause std::length_error. A requested representation shall be used. The ordinary copy constructor shall copy all coefficients and the declared dimension and retain the source representation. The overload accepting a representation shall use that representation. The overloads accepting space_dim shall copy the retained coefficients, discard coefficients of removed trailing coordinates when shrinking, and insert zero coefficients when extending. Their caller shall supply space_dim <= max_space_dimension(). All copies shall own independent values.
The four corresponding copy forms shall also accept a supported, live expression adapter, including the borrowed expression views exposed by constraints and congruences. They shall copy the adapter's visible coefficients, constant and declared dimension. Copying a view shall not introduce a descriptor's hidden representation columns. Omitting the representation shall retain the adapter's representation; an explicit representation shall select that representation. Dimensioned copies shall apply the same truncation and zero-extension rules as ordinary copies.
-
3. Independent assignment, destruction and swapping PPL-SPEC-000073 Copy assignment shall replace the target coefficients, dimension and representation with those of the source at entry, return a reference to the target, and preserve a distinct source. Self-assignment shall preserve the value, dimension and representation. Construction or assignment from an rvalue shall admit the copy forms and retain the source value; no distinct move operation is required. A separately owned copy shall remain usable after mutation or destruction of the original.
m_swap and the PPL swap overload shall exchange complete values, dimensions and representations; swapping an object with itself shall preserve it. Destruction shall release the object's owned representation. Assignment shall leave the target unchanged if creating its replacement copy fails.
-
4. Value-preserving representation selection and conversion PPL-SPEC-000074 representation() shall report the expression's current storage choice. For r equal to DENSE or SPARSE, successful set_representation(r) shall select r while preserving every coefficient, the constant term and declared space dimension. Repeating the current choice shall preserve the expression. Explicit-representation copy construction shall make the same coefficient-preservation guarantee for a distinct result. If creating a converted representation fails, set_representation shall leave the original unchanged.
-
13. Reloadable ASCII export and replacement loading PPL-SPEC-000083 ascii_dump(s) shall write a reloadable representation consisting of the word size, the number of coefficient slots d + 1, and then the constant term followed by all homogeneous coefficients in increasing variable order. Whitespace shall separate tokens. ascii_dump() shall write the same representation to std::cerr. Export shall preserve the expression.
Given a compatible complete representation with representable coefficient values and a positive slot count not exceeding the supported storage limit, ascii_load(s) shall return true and replace the expression with the encoded coefficients and dimension, retaining its destination representation. The slot count shall include the constant slot, so zero shall be rejected with false before resizing, preserving the destination expression. A missing or incorrect size token, missing count, malformed coefficient or truncated coefficient sequence shall yield false. Trailing input after the indicated coefficient count shall remain available to the caller. The contract shall not promise a stable cross-version wire format.
Other reported load failures may change the destination. It shall remain destructible and may be replaced by a subsequent complete valid load; no rollback is promised. Allocation and configured numerical failures may propagate through their documented exception channels.
-
Incoming links from: 9. Native interval-affine image 9. Native interval-affine image 1. Conservative interval-linear-form inequality refinement 2. Generalized interval-linear-form comparisons 1. Dependency invalidation 1. Native interval-affine image 1. Native interval-affine image 2. Conservative interval-linear-form inequality refinement 3. Generalized interval-linear-form comparisons9
1. Interval-linear-form meaning and numerical prerequisites PPL-SPEC-000921 For a selected interval type C, a live Linear_Form<C> of dimension d, with coefficient intervals Ai and constant interval B, shall represent the interval-affine expression B + ∑d − 1i = 0Aixi. At each real valuation x, it shall denote the set of sums obtained by choosing each coefficient and the constant independently from their intervals. Repeated use of an interval object shall not establish correlations between those choices. The constant shall occupy no variable coordinate. The declared dimension shall retain trailing zero coefficients.
C shall provide the interval construction, copying, predicates and arithmetic required by the selected operation. Stored values shall satisfy its initialization, canonical-value and metadata prerequisites. Each successful arithmetic operation shall retain the interval operations' enclosure guarantees and selected numerical-profile conditions; no common optimality or finite-bound guarantee shall be inferred. Native floating-point arithmetic shall require the selected supported boundary format and its rounding-state prerequisites. Storage access shall add no numerical rounding requirement. Shared-facility initialization shall be required where the selected coefficient operation, expression conversion or output formatter requires it; unrelated storage shall add no initialization owner.
Callers shall synchronize access against overlapping modification and obey shared-temporary restrictions in the selected configuration. Allocation and coefficient exceptions may propagate. Failed construction shall release resources owned by the incomplete form. Unchanged operands shall remain unchanged; modified destinations shall remain destructible, with no universal rollback guarantee.
-
5. Independent copying, assignment and owned lifetimes PPL-SPEC-000925 Copy construction and copy assignment shall preserve the dimension and all coefficient intervals, including their admitted endpoint metadata. Copies shall own independent coefficient storage. Subsequent mutation or destruction of one form shall not change the other. Assignment shall return the destination reference, including same-object assignment, which shall preserve its value and dimension. Destruction shall release the form's owned vector and constructed coefficient objects. Copying shall not promise to preserve allocation capacity or introduce a move interface beyond the declared C++ operations.
-
17. Reloadable interval-coefficient ASCII representation PPL-SPEC-000937 ascii_dump() shall write the dimension followed by the constant and homogeneous intervals in coordinate order, each in C's reloadable ascii_dump() format. Successful loading shall replace the complete form with that declared dimension and those intervals, including endpoint metadata and inactive payloads required by C's format. A dump shall round-trip under a compatible coefficient representation. The overload without a stream argument shall write that same frame on standard error. Dumping shall preserve the source and may propagate stream exceptions.
ascii_load() shall return false when no valid dimension can be read, when it exceeds max_space_dimension(), or when a required interval record cannot be loaded. Success shall return true after consuming the required record; trailing input shall remain available. A failed load shall leave the form destructible and reusable by complete assignment/loading, with no unchanged-state guarantee. Earlier display-based coefficient encodings shall not be accepted as equivalent machine records.
-
20. Oracle-based interval enclosure and explicit refusal PPL-SPEC-000940 For a live form with supported initialized interval coefficients, intervalize() shall ask the oracle for intervals of its declared variable coordinates. When the oracle supplies valid enclosures for every requested coordinate, a true result shall set result to an interval enclosing all entry-form affine values at independently admitted coefficient and coordinate choices. A dimension-zero form shall need no coordinate query and shall return its constant interval. The form shall remain unchanged.
If a required oracle query returns false, the method shall return false and shall not claim that result establishes a complete enclosure; no prior result-value preservation shall be promised. Exceptions from the oracle or coefficient operations may propagate. The oracle shall supply initialized intervals and remain valid for the call; overlapping mutation shall follow the operation's numerical/runtime prerequisites. Rational coefficient intervals shall not require native floating-point availability.
-
Incoming link from: 6. Sparse equality and line pivot selection1
1. Forward elimination and augmented equality/line rank PPL-SPEC-000425 Constraint and polyhedral-generator instantiations shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping. The separate line-only Grid_Generator case below shall use its stated prerequisites.
For constraint or polyhedral-generator rows, gauss(k) shall require no pending rows and exactly k equality/line rows grouped at the beginning. It shall return the rational rank of their stored coefficient vectors, including ordinary constant and applicable epsilon columns. It shall retain the equality/line row span, choose pivots from higher columns toward lower columns, place an independent triangular basis in the returned-rank prefix and reduce the remaining equality/line rows to zero vectors. Row count and non-equality/non-line rows shall be retained. Constant-only independent equalities, including an inconsistent equality, shall participate in the rank.
Dependent zero line vectors may remain as internal intermediate rows until removed; their owned coefficient layouts and common container metadata shall remain valid. Internal metadata queries, numeric-field inspection, removal cleanup and back substitution with zero rows outside its basis shall admit these intermediates. They shall not be exposed as public line descriptors. Common dimension, topology, storage and no-pending state shall be retained, and the sorted certificate shall be cleared whenever its truth is no longer established. All coefficient calculations shall satisfy 🔗 1. Internal geometric-row sequences and valid bookkeeping. For a Linear_System<Grid_Generator> containing only grid lines, with no pending rows, the same rational direction-span and rank/basis guarantees shall hold. Grid points and integer-lattice parameters are outside this extension: these operations do not promise to preserve a parameter lattice. A zero residual line is an admitted internal intermediate and contributes no direction; it shall be removed or skipped before constructing public grid generators. The common stored dimensions and representation shall remain valid.
-
2. Back substitution through a triangular nonconstant basis PPL-SPEC-000426 Constraint and polyhedral-generator instantiations shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping. The separate line-only Grid_Generator case below shall use its stated prerequisites.
back_substitute(k) shall require no pending rows and a leading independent triangular equality/line basis of k rows, with nonzero pivots outside the ordinary constant column. Leading basis rows shall be line/equality rows, with pivots in strictly descending column order. Each pivot shall be eliminated from the other basis rows and from the remaining rows by exact linear combination, preserving the basis row span. Combining an inequality, ray or point with a basis row shall use positive scaling of that non-basis row.
For constraints this shall preserve the conjunction with the equality basis; for generators it shall preserve the generated combinations modulo the line span. Residual zero direction rows may remain as redundant internal rows. Zero direction rows shall require internal removal cleanup before public descriptor use. They shall remain admitted for numeric-field inspection and container metadata queries under 🔗 1. Internal geometric-row sequences and valid bookkeeping. Shape, topology, storage, row count and no-pending state shall be retained; certificates shall remain truthful. Numerical prerequisites shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping. For a Linear_System<Grid_Generator> containing only grid lines, with no pending rows, the same rational direction-span and rank/basis guarantees shall hold. Grid points and integer-lattice parameters are outside this extension: these operations do not promise to preserve a parameter lattice. A zero residual line is an admitted internal intermediate and contributes no direction; it shall be removed or skipped before constructing public grid generators. The common stored dimensions and representation shall remain valid.
-
3. Simplification of equality and line subsystems PPL-SPEC-000427 Row shall be Constraint or Generator. Valid use shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping.
With no pending rows, simplify() shall establish a leading independent basis of the meaningful nonzero line/equality coefficient rows and back-substitute that basis into the remaining rows. It may remove dependent rows or retain them as redundant zero coefficient rows. The result shall preserve constraint conjunction or polyhedral-generator combinations modulo the line span. An inconsistent equality subsystem shall remain inconsistent rather than being treated as a consistent affine space. The nonzero basis rank shall be retained independently of the stored line/equality row count.
It shall retain public dimension, topology, storage and no-pending state. Other rows need not be minimized for all geometric redundancy. Residual zero equality rows may remain as tautologies; zero direction rows shall require row-validity cleanup before public descriptor use. Internal numeric-field inspection, metadata queries and removal cleanup shall admit these intermediate rows. Sorted-prefix certificates shall be truthful. Numerical and resource prerequisites shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping.
-
4. Sorting rows together with their saturation records PPL-SPEC-000428 Row shall be Constraint or Generator. Valid use shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping.
sort_and_remove_with_sat(sat) shall require a valid bit matrix with one row for each processed system row, in matching order. It shall sort and deduplicate that processed prefix by the same row predicates as 🔗 19. Sorting processed prefixes or single-status row windows, moving each retained bit row with its corresponding geometric row. On duplicate elimination it shall retain one original paired record; callers shall require equivalent saturation records for duplicate geometric rows when that equivalence is needed by the consuming algorithm.
The matrix column count shall be retained and its resulting row count shall equal the new processed boundary. Pending rows shall remain pending with their multiset preserved, although their order may change. System dimensions, topology and storage shall be retained and the processed prefix certified sorted. Zero/one processed row shall be admitted.
-
5. Adding processed rows for new coordinate axes PPL-SPEC-000429 Row shall be Constraint or Generator. Valid use shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping.
For a positive admitted n, add_universe_rows_and_space_dimensions(n) shall append n zero-extended public coordinates to old rows and introduce n leading processed line/equality rows spanning exactly the new coordinate axes. Each new row shall have one positive unit coefficient at a distinct new axis, with all other public and ordinary constant coefficients zero. No new row shall add a supporting included point or a nonzero epsilon term.
Old rows shall retain their order, values at old coordinates and pending status. Row count, dimension and processed boundary shall each increase by n; topology and storage shall be retained and hidden epsilon fields shall remain hidden at the new layout location. Empty initial row collections shall be admitted. Certificates shall remain truthful. For constraints the new equalities fix the new coordinates to zero; for generators the new lines supply arbitrary real displacement in them.
-
6. Sparse equality and line pivot selection PPL-SPEC-001649 gauss_sparse(k) shall require sparse representation, a positive leading line/equality count k and the valid no-pending grouping required by 🔗 1. Forward elimination and augmented equality/line rank. It shall return the augmented rational rank and establish the same ordered coefficient rows and common metadata as descending column elimination under that contract. Among remaining rows it shall choose the greatest nonzero column and the first row containing that column. Constant-only equality pivots shall participate; an all-zero remainder shall end elimination. A line's divisor column shall remain zero.
The equality/line row span, row count, topology, dimension, storage and nonbasis rows shall be preserved. The sorted certificate shall be cleared when rows are swapped or combined. Valid sparse expression storage shall satisfy 🔗 7. Backend row export, serialization, diagnostics and accounting; its stored entries shall be nonzero. Numerical and lifetime prerequisites shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping.
-
Incoming links from: 1. Forward elimination and augmented equality/line rank 1. Forward elimination and augmented equality/line rank 2. Back substitution through a triangular nonconstant basis 2. Back substitution through a triangular nonconstant basis 2. Back substitution through a triangular nonconstant basis 3. Simplification of equality and line subsystems 3. Simplification of equality and line subsystems 4. Sorting rows together with their saturation records 5. Adding processed rows for new coordinate axes 6. Sparse equality and line pivot selection 5. Row representation conversion 18. Row-wise normalization and certificate invalidation 23. Reloadable linear-system metadata and row sequences13
1. Internal geometric-row sequences and valid bookkeeping PPL-SPEC-000401 A Linear_System<Row> shall own an ordered finite sequence of geometric rows with common public space dimension, topology and storage representation. A boundary index p, with 0 ≤ p ≤ n, shall divide its n rows into a processed prefix [0, p) and pending suffix [p, n). A true sorted certificate shall require that processed prefix to be nondecreasing under compare(Row,Row). A false certificate shall make no assertion about actual ordering. Duplicate rows shall be permitted.
No conjunction, convex hull or grid-span meaning shall be added by this container; the public descriptor-system contracts shall supply those meanings. Calls shall require live rows with admitted coefficient values, kinds and layouts, valid container metadata and nonoverflowing dimensions/counts. Direct mutation through rows shall require restoring common metadata and applicable prefix ordering before a call requiring a valid system. Operations need not require already strong-normalized rows unless their individual contract says so. Stored rows shall otherwise meet their row-type validity conditions. Elimination contracts may explicitly admit live internal zero-direction intermediate rows for numeric-field inspection, metadata queries and prescribed cleanup; this shall not admit those rows as public geometric descriptors.
Initialization, representability of all evaluated coefficient steps and synchronization shall follow 🔗 1. Internal coefficient-row values and valid use. Failed construction shall release resources owned by its incomplete system. Recoverable failures may propagate; distinct unchanged sources shall survive and modified targets shall remain destructible without universal rollback or valid-bookkeeping guarantees.
-
2. Empty system construction with explicit topology and dimension PPL-SPEC-000402 Construction shall create a system with no rows or pending rows, true sorted certificate and the supplied topology/representation. Its dimension shall be zero unless explicitly supplied. Both topologies shall be supported for constraints and polyhedral generators; grid generators shall require NECESSARILY_CLOSED. Empty systems shall retain admitted nonzero dimensions without manufacturing a point, constraint or line.
-
3. Owning copies with explicit pending-row policy PPL-SPEC-000403 Every copy shall preserve row sequence, row values, dimension and topology, with independent storage. Ordinary copies shall make all copied rows processed; if any source row was pending they shall clear the sorted certificate, otherwise retain it. With_Pending copies shall preserve the pending boundary and sorted certificate. Explicit-storage copies shall use the supplied representation; other copies shall retain source representation. Explicit-storage copies shall construct converted rows directly, without constructing disposable default row backends. The source shall be preserved through successful copying and remain intact if construction fails. Copies shall survive source mutation/destruction.
-
4. Assignment, swaps and lifecycle of linear-system owners PPL-SPEC-000404 Ordinary assignment shall use the ordinary-copy pending policy, return its target and admit self-assignment. assign_with_pending shall preserve all pending metadata and admit self-assignment. Both shall preserve distinct sources and replace the target only after their replacement copy succeeds. Swaps shall exchange row owners and all dimension, topology, representation, pending and sorted metadata, including self-swap. Destruction shall release owned storage. Rvalue forms selecting these copy operations shall follow their copy/pending policy and preserve a distinct source.
-
5. Row representation conversion PPL-SPEC-000405 Representation queries shall report the common row storage choice. Successful conversion shall set the requested dense/sparse representation for every retained row and system metadata, while preserving row values/order, space dimension, topology, pending boundary and sorted certificate. Conversion of an empty system shall still update its representation. Failure shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping, without promising universal conversion rollback.
-
Incoming link from: 10. Appending pending rows without certifying their order1
9. Inserting a processed row with dimension alignment PPL-SPEC-000409 Processed insertion shall require matching row/system topology and no target pending rows. It shall append the row entry value, align all rows to the maximum input dimension by zero extension and retain target representation. Copy insertion shall preserve the source, including a borrowed target row captured before reallocation. Recycled insertion shall require a source not borrowed from the target and leave it destructible, without a retained-value promise. Every resulting row shall be processed. If the certificate was false it shall remain false; if true it shall remain true exactly when the new final adjacent pair is nondecreasing, or the resulting size is at most one. Duplicates shall be retained.
-
10. Appending pending rows without certifying their order PPL-SPEC-000410 Pending insertion shall require matching topology and append the source entry value to the pending suffix. It shall preserve the existing boundary, processed prefix and sorted certificate, align dimensions and retain target storage as in 🔗 9. Inserting a processed row with dimension alignment. Copy insertion shall capture borrowed target inputs before mutation; recycled input shall be independent of target storage and remain destructible. The appended row need not be sorted with other pending rows. An empty processed prefix shall be admitted.
-
11. Copying and recycling whole system row sequences PPL-SPEC-000411 Pending whole-system insertion shall require equal public dimensions even for an empty source. Processed insertion shall require equal dimensions when source rows are present; transferred rows shall have matching topology. Copies shall preserve their source and admit self-copy insertion by capturing its entry sequence. Recycled sources shall be distinct from the target and, when transferred, clear to an empty dimension-zero system retaining source topology/representation. Transferred rows shall retain their entry order and use target storage. For participating descriptor rows, the insert_pending_consume and insert_consume entry points shall prepare capacity and representation conversions before destructive transfers. They shall require a nonempty source, equal dimensions and matching topology. Prepared transfers shall reuse owned expression backends without constructing default row backends. An empty pending source shall still be cleared; an empty processed source shall retain the existing no-op behavior.
Processed insertion shall require no target pending rows and make all added source rows processed. It shall preserve a true certificate only when the source is certified without pending rows and the concatenation is ordered. An empty source shall leave the target unchanged. Pending insertion shall append every source row as pending and preserve the target prefix/boundary and certificate. These operations shall not apply geometric conjunction or hull operations beyond combining their internal row collections.
-
Incoming link from: 14. System dimension changes and coordinate removal1
12. Removing individual, trailing and same-status row ranges PPL-SPEC-000412 Individual removal shall require an in-range row. Half-open range removal shall require first <= last <= num_rows() and, for a nonempty range, a single processed/pending status. Trailing removal shall require an admitted count not greater than row count. Exactly the selected entry rows shall be removed; processed and pending survivors shall retain their status, with the boundary decreased by the number of removed processed rows. Dimension, topology and storage shall be retained.
With keep_sorted true and a certified processed range, survivor order and certificate shall be retained. Otherwise survivor order may change within each status class; removing processed rows may clear the certificate, while pending-only removal shall retain the established prefix certificate. Empty ranges/counts shall be admitted.
-
13. Ordered-index row removal preserves survivor sequence PPL-SPEC-000413 Indexed-list removal shall require strictly increasing distinct in-range indices. It shall erase exactly those rows and preserve the relative order of all survivors, including removals spanning processed and pending parts. The boundary shall decrease by the number of selected processed rows. The certificate and other metadata shall be retained. An empty index list shall leave the system unchanged.
-
14. System dimension changes and coordinate removal PPL-SPEC-000414 Dimension setting shall require an admitted result dimension preserving every retained row kind's validity. It shall resize every row consistently, retaining low-index public coefficients and correctly relocating hidden fields. It shall zero-extend or truncate trailing public coordinates. Removing selected in-dimension variables shall apply each row's coordinate-removal operation, compact survivors in coordinate order and drop rows whose row-type transformation reports invalidity. No selected variables shall be a no-op. Removed rows shall update the pending partition as in 🔗 12. Removing individual, trailing and same-status row ranges.
Both operations shall preserve common metadata consistency and retain only truthful sorted-prefix certificates, clearing them when needed. Dimension removal shall clear the certificate after a nonempty selection. Raw row normalization and geometric interpretation shall follow the row capability; no existential-elimination interpretation shall be added by this container.
-
15. Shared coordinate swaps, cycles and zero insertion PPL-SPEC-000415 In-dimension swaps and cycles shall apply the same coordinate correspondence to every row. Cycles shall require distinct valid variables and admit empty or singleton cycles. Shifting shall require v.id() <= space_dimension() and admitted result size, insert n zero coordinates before that position and update system dimension. Zero shifting shall retain the represented row sequence. Row kinds, hidden fields and transformed coordinate meaning shall follow each row's contract. Pending status shall be retained. Coordinate changes shall retain only truthful processed-prefix certificates.
-
16. Topology queries and hidden-epsilon layout conversion PPL-SPEC-000416 Topology queries shall report the common row topology. Constraint/generator layout conversion shall set the requested topology for system and rows, retain public dimension, public homogeneous coefficients and ordinary constant or divisor fields, and add a zero hidden epsilon coefficient when entering NNC layout or discard it when entering closed layout. Repeating the current topology shall retain the system. Pending status and row sequence shall remain.
This is an internal layout operation: dropping epsilon changes a strict constraint to a nonstrict one and a closure point to an included point; adding zero epsilon changes a closed-layout included point to an NNC closure point. Callers shall select it according to the surrounding geometric algorithm and require valid resulting row kinds. Grid-generator systems shall require closed topology. Certificates shall remain truthful after any layout change.
-
Incoming link from: 4. Sorting rows together with their saturation records1
19. Sorting processed prefixes or single-status row windows PPL-SPEC-000419 Full-prefix sorting shall order the processed prefix by compare and remove duplicate entries identified by Row::is_equal_to while retaining the pending suffix's entry sequence. It shall certify the resulting prefix. Window sorting shall require an admitted half-open window contained entirely in one status class. It shall sort/deduplicate just that window, preserve outside entry rows and adjust the pending boundary to account for removed processed rows. Windows shorter than two shall be no-ops. A window call shall not itself claim that an unrelated unsorted processed prefix is sorted. Neither operation shall decide geometric redundancy beyond the stated row equality predicate.
-
20. Pending-row sorting and duplicates already in the prefix PPL-SPEC-000420 This operation shall require a true processed-prefix certificate and at least one pending row. It shall sort and deduplicate pending rows, remove pending entries comparing equal to a processed prefix row, preserve the processed prefix and retain the surviving rows as pending. It shall preserve dimension, topology and storage and retain a true prefix certificate. It shall not mark the surviving suffix processed or merge it into prefix order.
-
21. Merging sorted processed systems PPL-SPEC-000421 Merge shall require matching topology, no pending rows in either input, actually sorted row sequences and target dimension at least source dimension. It shall replace the target by the ascending merge of both row collections, retaining one copy of matching rows under comparison, target dimension and target representation. Source rows shall be zero-extended to the target's dimension. Distinct sources shall retain their values; self-merge shall retain the target row sequence. The resulting system shall have no pending rows and a truthful sorted certificate. Inputs shall already be duplicate-free if a fully duplicate-free result is required.
-
23. Reloadable linear-system metadata and row sequences PPL-SPEC-000423 ASCII export shall include topology, row count, public dimension, representation, sorted certificate, pending boundary and all row encodings in sequence. Loading a complete compatible encoding shall restore those fields and row values and return true only for a valid common-metadata system. Malformed/missing tokens, an out-of-range pending boundary, a false sorted claim or row metadata incompatible with the declared system shall report false. The stored sorted flag shall remain a certificate, not a request to sort input. Empty and all-pending systems shall be admitted. Trailing input shall remain available. Failure need not roll back the target; resource states shall follow 🔗 1. Internal geometric-row sequences and valid bookkeeping. Diagnostic dump/print shall emit the same reloadable representation. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.
-
24. Linear-system invariants, accounting and clear state PPL-SPEC-000424 OK() shall check common row representation/dimension/topology, an admitted pending boundary and truth of an asserted sorted-prefix certificate. Separate row invariants shall remain the responsibility of the row capability. Memory queries shall preserve values and metadata; external accounting shall include reserved row-vector slots and each live row's external storage, and total shall equal sizeof(system) + external. No allocator-overhead or future-availability guarantee shall be inferred. clear() shall remove all rows, set dimension and pending boundary to zero and certificate true, while retaining topology and representation.
-
1. Internal rectangular coefficient matrices and valid use PPL-SPEC-000361 For Row equal to Dense_Row or Sparse_Row, Matrix<Row> shall represent a rectangular coefficient array with independent row and column counts. Every retained row shall have exactly the matrix column count; entry Mij shall be the row coefficient at index j. Zero rows, zero columns and zero-by-zero shape shall all be admitted and remain distinct shapes. The raw row contracts shall follow 🔗 1. Internal coefficient-row values and valid use. No affine, constraint or generator interpretation shall be imposed by the matrix.
Calls shall require live valid matrices, valid positions/iterators, admitted nonoverflowing size calculations and sufficient resources. Mutable row access shall require clients to restore the common width before a call requiring matrix validity. Initialization, numerical and synchronization prerequisites shall follow 🔗 1. Internal coefficient-row values and valid use. Failed construction shall release storage owned by the incomplete matrix. Recoverable mutation failure may propagate; unchanged sources shall survive and modified targets shall remain destructible without a universal rectangular-state or rollback guarantee.
-
2. Zero-filled square and rectangular matrix construction PPL-SPEC-000362 Default construction shall produce zero-by-zero shape. Square construction shall produce n rows and columns. Rectangular construction shall preserve both requested counts, including zero in either count. Every coefficient shall initially be zero, and sparse rows shall initially have no stored entries. Construction shall use the row type selected by the template.
-
3. Owning matrix copies, assignment and whole-matrix swaps PPL-SPEC-000363 Implicit copy construction/assignment shall preserve shape and all entries, produce independent row owners, admit self-assignment and return the target from assignment. A copy shall survive its source mutation/destruction. Implicit moves shall transfer the source entry value to the target and leave the source valid for destruction and reassignment, with unspecified shape and entries. Member/free swaps shall exchange full matrix values and dimensions, including self-swap. Destruction shall release row and coefficient storage owned by the matrix. Failure shall follow 🔗 1. Internal rectangular coefficient matrices and valid use.
-
4. Matrix shape, row capacity and reservation PPL-SPEC-000364 Shape queries shall report logical row and column counts independently of allocated capacity. has_no_rows() shall mean row count zero, including a nonzero column count. capacity() shall report reserved row slots at least as large as row count. reserve_rows(n) shall retain shape and values and provide at least n row slots; a request no larger than current capacity shall retain capacity. Reallocation may invalidate row references/iterators. max_num_rows() shall return std::vector<Row>().max_size() and max_num_columns() shall return Row::max_size(). These reported limits shall not guarantee that every allocation below them succeeds.
-
5. Matrix resizing, prefix preservation and clear PPL-SPEC-000365 Resizing shall set the requested rectangular shape, preserve every entry in the common old/new row-and-column rectangle, discard removed entries and initialize newly introduced entries to zero. Removed values shall not reappear on regrowth. The one-argument form shall set a square shape. clear() shall produce zero rows and columns; it need not release reserved row capacity. Successful resizing shall restore every retained row to the common width. Existing iterators/references shall be invalidated as specified by changes to the row vector and row storage.
-
6. Appending zero rows and columns PPL-SPEC-000366 add_zero_rows(n) and add_zero_columns(m) shall require positive counts and admitted resulting shapes. They shall append exactly that many zero rows or columns, retaining all old entries at their old coordinates. The combined form shall require both positive counts and append both zero blocks. Zero columns in old/new rows shall follow the selected raw row representation.
-
7. Copy-appending a row with source independence PPL-SPEC-000367 add_row(x) shall require x.size() == num_columns() and an admitted additional row. It shall append an owned copy of the source entry value, preserve all old rows/width and preserve an external source. The source may be a row borrowed from the target matrix; its entry value shall be captured before growth can invalidate that reference. Mutating the appended row shall not modify its source. Existing matrix-row iterators may be invalidated.
-
8. Recycling an external row into a matrix PPL-SPEC-000368 add_recycled_row(x) shall require a live row of matching column count that is not a row of the matrix, plus admitted additional row count. It shall append the source entry vector while preserving all old matrix values. On success, the donor shall be a valid all-zero row of the same column count; its capacity shall be unspecified. The operation may transfer owned storage rather than copy coefficient values. Violations of matching-width or independent-donor preconditions need not be detected in release builds. Borrowed matrix-row iterators may be invalidated by append.
-
9. Removing contiguous or trailing matrix rows PPL-SPEC-000369 Trailing-row removal shall require n <= num_rows() and remove exactly the last n rows while retaining column count. Iterator-range removal shall require a valid ordered half-open range in the same matrix, including an empty range; it shall retain the unselected rows in their original order and keep column count. Removing every row shall retain the declared width. Removed row storage shall be released; later appended zero rows shall not recover old coefficients.
-
10. Inserting and removing matrix columns PPL-SPEC-000370 add_zero_columns(n,i) shall require i <= num_columns() and an admitted nonoverflowing result shape. It shall insert n zero columns before i and shift all old columns at or after i up by n; zero insertion shall preserve the array. remove_column(i) shall require an in-width column, erase it from every row and shift later indices down by one. Trailing-column removal shall require n <= num_columns() and remove just the last n columns. Row count shall be retained, including zero rows. These transformations shall preserve every surviving coefficient association.
-
14. Matrix ASCII reload validates rectangular row sizes PPL-SPEC-000374 ASCII export shall emit r x c followed by a newline and the compatible row-type ASCII representation of each retained row in order. Loading a complete compatible representation shall replace both dimensions and every entry and return true only for a valid rectangular result. Zero-row/nonzero- column and nonzero-row/zero-column representations shall be admitted. Malformed/missing shape tokens or row encodings, including a row size that differs from the declared width, shall return false. Trailing input shall remain available for further parsing. The dimensions shall fit the container limits and any limits supplied by the enclosing record. Matrix row storage shall grow as the rows are decoded. Failure need not roll back prior changes; owned storage and surviving target destruction shall follow 🔗 1. Internal rectangular coefficient matrices and valid use. Diagnostic dump/print forms shall emit this same reloadable representation.
-
15. Matrix rectangularity inspection and memory accounting PPL-SPEC-000375 OK() shall report whether every retained row's logical size equals the matrix column count; no-row matrices shall satisfy that width invariant for any declared admitted column count. It shall not replace the separate raw-row invariant queries. Memory queries shall preserve matrix values. Total memory shall equal sizeof(matrix) + external; external memory shall include reserved row-vector slots and external storage owned by each live row. The returned count shall be a storage-accounting estimate, with no promise of exact allocator overhead or future allocation success.
-
1. Exact strict mixed-integer feasibility witnesses PPL-SPEC-001680 A successfully completed three-argument is_mixed_integer_satisfiable shall report the exact feasibility defined by 🔗 1. Exact strict mixed-integer feasibility, preserving both inputs. True shall assign a POINT of the original ambient dimension that satisfies every original row and designated integrality restriction. False shall preserve the supplied witness. The output shall own its representation independently of the local solver.
Index validation, dimension capacity, exact normalization of integer-supported strict rows and the positive shared-slack criterion shall be those of 🔗 1. Exact strict mixed-integer feasibility. Closed systems and systems whose strict rows all have integral support shall require no auxiliary slack coordinate. With remaining strict rows, a positive optimum shall supply the maximizing point, projected off that slack coordinate; optimum zero or infeasibility shall return false. Empty systems, zero dimensions and constant rows shall retain their ordinary mathematical meanings.
The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply. The false-result preservation guarantee shall not strengthen those common guarantees for exceptions during solving, copying or output assignment.
-
1. Mixed integer constraint and dimension additions PPL-SPEC-001472 Constraint additions shall conjoin canonical admitted copies of the supplied constraints under 🔗 1. Integer-supported strict MIP admission. Unsupported continuous-support strict rows and dimension-incompatible descriptors shall raise std::invalid_argument. Dimension growth shall append unrestricted real coordinates, preserve old coordinates and reject m > max - dimension with std::length_error before adding extents. Subsequent completed queries shall refer to the modified problem; earlier results may be reused only when still valid for it.
If allocation fails during add_constraints, an already appended prefix may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall describe exactly the retained constraints, objective and integer subset. Cached non-infeasibility results invalidated by retained rows shall be recomputed; known infeasibility shall remain valid. Input descriptors shall be preserved. Rollback to the entry constraint sequence is not required.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.
-
2. Mixed integer integrality additions PPL-SPEC-001473 Adding i_vars shall union those indices into the existing integer coordinate subset. An incompatible index shall raise std::invalid_argument. Repeated addition and an empty subset shall preserve the mathematical problem. Any cached feasible or optimal point invalidated by a newly required integral coordinate shall be recomputed before a subsequent successful result is returned.
If allocation of integer-set nodes fails, indices already inserted may remain. The surviving problem shall remain valid for subsequent queries under the common valid-use conditions. Those queries shall use exactly the retained integer subset; invalidated cached feasibility, optima and witnesses shall be recomputed. Known infeasibility shall remain valid. If no new index was inserted, the mathematical problem shall be preserved. The supplied index set shall be preserved. Rollback to the entry subset is not required.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply, with the allocation-failure recovery guarantee specified above.
-
3. Mixed integer objective and mode updates PPL-SPEC-001474 Setting an objective shall copy its affine expression and reject an expression dimension greater than the ambient dimension with std::invalid_argument. Setting mode shall select a valid MINIMIZATION or MAXIMIZATION value. Changes shall preserve the feasible region and invalidate optimality conclusions for a different objective or direction. Subsequent completed queries shall optimize the current objective and mode.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Reloadable mixed integer solver representations PPL-SPEC-001481 Dumping shall write the problem and incremental solver representation. Loading a complete admitted representation produced by a matching coefficient and format configuration shall replace the destination problem and preserve its constraints, integer coordinates, objective, direction and subsequent query meaning. A valid prefix may be followed by unrelated stream content. These records are trusted solver snapshots. Malformed tokens, incompatible dimensions, invalid counts or indices and structural inconsistencies between the status, extents and basis shall return false without relying on debug assertions. The loader reads the recorded tableau. An altered record can pass those checks with a tableau that fails to represent its processed constraints. The loader shall check declared tableau extents against known solver bounds before loading rows and allocate constraint storage as records are read. False shall not promise rollback or further queries. Surviving resources shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Mixed integer diagnostics, display and storage PPL-SPEC-001482 OK shall check the implemented structural and cached-feasibility invariants without proving global optimality. Display shall show constraints, objective, direction and integer coordinates, return its stream, and remain distinct from reloadable serialization. External memory shall estimate managed storage, including owned constraints and solver arrays; total memory shall add sizeof(*this). Shared or pooled storage accounting shall remain an estimate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Mixed integer satisfiability PPL-SPEC-001475 A completed is_satisfiable shall return true exactly when a point satisfies every stored constraint and designated integer restriction. True shall include feasible problems with unbounded objective. The query may update solver caches without changing the problem. If an exception interrupts a solver query, the cache shall be discarded without allocation and the original exception shall propagate. A subsequent query shall solve from the stored model. A real-relaxation witness alone shall not establish mixed integer feasibility.
Before solving the real relaxation for a pending result, check each stored equality whose nonzero variable coefficients all belong to declared integer coordinates. If the greatest common divisor of those coefficients fails to divide the constant, report infeasibility. The check shall preserve stored constraints and use exact working integers. Equalities with a nonzero coefficient on a continuous coordinate are outside this check. Use the current constraints and integer selection after model changes.
An integer search over an unbounded real relaxation may run indefinitely. Configured deterministic weight limits and supported cancellation are observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.
When the initial auxiliary objective is zero, the feasibility phase shall recognize that its upper bound is attained without pricing. Before removing basic artificial variables, it shall discard this completed objective. Cleanup pivots shall prefer a non-artificial column occurring in the fewest current tableau rows, retaining the lowest column index on a tie. Redundant rows shall be removed. These steps shall preserve the feasible point; subsequent optimization shall use the stored client objective.
When pending nonnegativity constraints permit merging split variables, the implementation shall stably remove the negative-part columns and renumber all retained basis and variable mappings. Rows losing a basic negative part shall be reported in descending original-variable order. Any such loss shall invalidate cached-point satisfaction hints for pending inequalities. Larger merge batches shall compact row indices together; small batches may retain individual removals.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
2. Mixed integer optimization outcomes PPL-SPEC-001476 A completed solve shall return UNFEASIBLE_MIP_PROBLEM exactly for an empty mixed integer feasible region, UNBOUNDED_MIP_PROBLEM for a nonempty region whose objective is unbounded in the requested direction, and OPTIMIZED_MIP_PROBLEM when a finite optimum is attained. The categories shall be mutually exclusive. Repeated queries and admissible pricing choices shall preserve the mathematical outcome; search effort or arithmetic failure shall not be reported as one of these successful conclusions. The equality divisibility check and the search and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
For a bounded coefficient profile, simplex row elimination shall evaluate complete two-product combinations and cancel the resulting row's positive common factor before coefficient admission when direct arithmetic has not been proved representable. Magnitude bounds may be reused only while their source rows remain unchanged, or updated conservatively after each combination. Such scratch shall belong to one active simplex invocation, with fresh bounds on a later invocation; it shall not become persistent problem state. After this proof, native updates may omit redundant arithmetic checks while retaining the existing row support merge and cancellation rules. When no proof is available, exact complete-row evaluation shall remain mandatory. This projective row normalization shall include constant and objective coordinates. An unrepresentable primitive row may raise the selected profile's arithmetic exception.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply. The exceptional cache-reset guarantee in 🔗 1. Mixed integer satisfiability shall apply.
-
3. Mixed integer objective evaluation PPL-SPEC-001477 Objective evaluation shall assign rational outputs numer and denom whose ratio equals the stored objective evaluated at the supplied point, including its constant term. The denominator shall be positive. The point need not be feasible or integral. A non-point generator or one with coordinate dimension greater than the problem shall raise std::invalid_argument. Missing trailing point coordinates shall mean zero. The numerator and denominator shall be coprime.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
4. Mixed integer feasible witness access PPL-SPEC-001478 feasible_point shall establish feasibility as needed and return a borrowed point satisfying every constraint and selected integrality condition. It shall be available for feasible unbounded as well as bounded problems. An infeasible problem shall raise std::domain_error. The returned point need not optimize the objective, and no particular feasible point shall be selected by this contract. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed point.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
5. Mixed integer optimal witnesses and values PPL-SPEC-001479 optimizing_point shall solve as needed and return a borrowed feasible point attaining the current optimum. optimal_value shall assign rational outputs with positive denominator whose ratio is that objective value. Both operations shall raise std::domain_error for infeasible or unbounded problems. No particular optimizing point or reduced fraction shall be promised when several representations are possible. Mutation, destruction or a cache-replacing query on the owning problem may invalidate the borrowed optimizing point.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. Mixed integer pricing controls PPL-SPEC-001480 get_control_parameter(PRICING) shall return the current pricing choice. Setting one of PRICING_STEEPEST_EDGE_FLOAT, PRICING_STEEPEST_EDGE_EXACT or PRICING_TEXTBOOK shall select that search heuristic without changing constraints, integrality or objective. The default shall be floating steepest-edge pricing. Names and values passed to these accessors shall belong to their documented enumerations. A floating heuristic shall not weaken the exact meaning of a completed mathematical result.
Exact steepest-edge pricing shall compare the squared reduced costs divided by 1 + sum_i (tableau[i][j] / tableau[i][base[i]])^2. Equal scores shall retain the candidate with the highest column index. Candidate pruning shall exclude a column only when integer bounds prove its score strictly smaller than another candidate's; overlapping bounds shall retain exact comparison.
Floating steepest-edge pricing shall approximate the same cost-to-edge ratio. Coefficient magnitudes and normalized edge lengths outside the direct range of double shall remain comparable without infinities or NaNs in the scores. Ties in the computed floating scores shall retain the candidate with the highest column index.
When there are no eligible entering columns, both steepest-edge rules shall return zero without pricing arithmetic. When there is exactly one, they shall return its index without computing basis LCMs or edge norms, including when those intermediate calculations would exceed the coefficient range.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. Point-coordinate integrality predicate PPL-SPEC-001651 For live finite coefficients numerator and divisor, with a strictly positive divisor, coordinate_is_integral shall return true exactly when numerator ⁄ divisor ∈ ℤ. It shall preserve both arguments. Zero and negative numerators, including the minimum value of a bounded signed coefficient type, shall be admitted. The predicate shall not require the quotient or the absolute numerator to be representable as a coefficient. It shall not construct quotient or GCD coefficient objects, own scratch containers, or introduce floating-point arithmetic. first_fractional_coordinate(point,variables) shall require a valid point with a positive divisor and selected indices within its dimension. It shall preserve its inputs and return the least selected index having a nonintegral coordinate, or not_a_dimension() when all selected coordinates are integral. An empty selection and divisor one shall yield that sentinel. The scan shall check early selected coordinates before sparsity admission, skip only zero coordinates, and retain an ordinary scan for dense suffixes. It shall allocate no scratch containers and shall be used by optimization, heuristic-disabled feasibility, and the cached integer-witness invariant check.
Coefficient objects and their backend allocation/lifetime facilities shall satisfy the applicable conditions of 🔗 1. Optimization and ranking valid use.
-
8. Fractional branching-variable selection PPL-SPEC-001652 choose_branching_variable shall inspect the cached rational point of mip and the variable indices in i_vars without changing either. The cached point shall be valid, have mip.space_dimension() coordinates, and satisfy the input constraints. The helper shall be called at a solver state where this cached point and these input rows are meaningful; it shall not require the tableau to determine this selection. Every index in i_vars shall belong to the ambient dimension. Scalar arithmetic and synchronization shall satisfy 🔗 1. Optimization and ranking valid use.
Let C be the indices in i_vars whose cached coordinates are not integers. If C = ⌀, the helper shall return true and preserve branching_index. Otherwise it shall return false and assign a member of C. When |C| = 1, that member shall be selected without evaluating constraint-appearance scores.
For more than one candidate, an active input row shall be an equality or an inequality saturated by the cached point. A candidate's score shall be the number of active input rows having a nonzero coefficient at that candidate. Rows shall contribute individually, including repeated rows. Coefficients beyond a row's dimension and constant terms shall not contribute. The helper shall select a maximum-score candidate, choosing the greatest variable index when scores tie, including when all scores are zero. Dense and sparse row representations shall have the same selection semantics.
-
1. Integer-supported strict MIP admission PPL-SPEC-001668 A strict row ax + b > 0 shall be admitted by MIP_Problem construction and insertion exactly when every coordinate with nonzero coefficient in a is in the declared integer subset. Unused continuous coordinates shall not prevent admission. Constructors without an integer subset shall therefore admit only strict constant rows. Dimension validation shall precede normalization. Unsupported support shall raise std::invalid_argument.
Under the arithmetic preconditions, the admitted row shall be stored as an integer-equivalent closed row. For positive homogeneous GCD g, its meaning shall be (a ⁄ g)x ≥ ⌊ − b ⁄ g⌋ + 1; constant rows shall retain their truth value. Constraint views and reloadable storage shall expose these canonical closed rows in admitted input order. Integer declarations shall restrict the selected coordinates to integers. Optimization results and witnesses shall satisfy 🔗 2. Mixed integer optimization outcomes, 🔗 4. Mixed integer feasible witness access and 🔗 5. Mixed integer optimal witnesses and values.
Single-row validation/conversion failure shall not append a row. Bulk strict support validation and conversion shall complete before any row is appended. A later allocation failure may leave an appended prefix with provisional solution state; known infeasibility shall remain valid. Input descriptors shall be preserved.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
1. Exact strict mixed-integer feasibility PPL-SPEC-001669 A successfully completed is_mixed_integer_satisfiable(cs, integer_dimensions) shall return true exactly when {x ∈ Rn ∣ cs(x), xi ∈ Z for selected i} is nonempty, where n is the system's ambient dimension. Other coordinates shall remain real, and every strict boundary shall retain its membership meaning. The inputs shall be preserved.
A selected index outside that dimension shall raise std::invalid_argument. The ordinary MIP dimension limit shall apply. If a strict row depends on a continuous coordinate, one additional continuous coordinate shall be required; insufficient dimension capacity shall raise std::length_error. Integer-supported strict rows shall use exact closed normalization without requiring that extra coordinate. Empty selections, empty systems, zero dimensions and constant rows shall retain their mathematical meanings.
For remaining strict rows aix + bi > 0, feasibility shall be decided by a shared continuous slack s, with aix + bi ≥ s, 0 ≤ s ≤ 1, and exact maximization of s. Integer indices shall remain unchanged and shall exclude s. Infeasibility or optimum zero shall yield false; a positive exact optimum shall yield true. This interface shall not optimize an arbitrary user objective over an open feasible set.
The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
1. Strict-row support and admission kernels PPL-SPEC-001671 mip_strict_support_is_integral shall return true exactly when all nonzero visible variable coefficients of the supplied row of any relation refer to indices in the supplied integer subset. It shall ignore the constant, hidden NNC epsilon coordinate and zero coefficients, without changing either input.
For an integer-supported strict row, mip_closed_integral_strict shall produce the closed equivalent defined in 🔗 1. Integer-supported strict MIP admission, handling constant truth values separately. Its GCD, quotient and adjustment operations shall satisfy the selected exact arithmetic profile's intermediate-value preconditions. Inputs shall retain their value.
add_integral_strict_constraint requires dimension compatibility and a strict input. It shall validate support, convert, append and invalidate any cached non-infeasibility conclusion. Validation, conversion or pre-append allocation failure shall preserve the model.
add_integral_strict_constraints requires dimension compatibility and a system containing strict rows. It shall validate and convert all strict rows before appending any source row. Conversion failure shall preserve the model; subsequent append failure may leave a prefix with provisional solution state. Both helpers shall preserve known infeasibility.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Optimization and ranking valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
Incoming link from: 2. Exact general strict mixed-integer optimization1
1. Uniform strict-margin denominator PPL-SPEC-001681 strict_margin_denominator(cs, integers, continuous) shall require valid input rows, in-range integer indices and a sorted complete list of the other coordinates. At least one strict row shall depend on a continuous coordinate. Missing trailing row coordinates shall have coefficient zero.
Let k count continuously supported strict rows and let Sj = max(1, ∑ia2ij) for each listed continuous column. The result shall be D = ⌈√((k + 2)∏jSj)⌉. The norm sums, product, square root and ceiling shall use exact GMP integers. For each nonempty fiber obtained by fixing the designated integer coordinates, a strict witness shall exist with every continuously supported strict row ei ≥ 1 ⁄ D while satisfying all other rows.
GMP coefficients shall admit the exact result without a fixed integer bound. For bounded signed coefficients, a positive result beyond the configured maximum shall raise std::overflow_error before narrowing it, including in native configurations. Inputs shall be preserved. Resource and other common failure conditions shall be those of 🔗 1. Optimization and ranking valid use.
-
2. Exact general strict mixed-integer optimization PPL-SPEC-001682 optimize_mixed_integer shall interpret the input constraints, integer subset, affine objective and valid minimization/maximization mode over the original strict feasible set. The scalar output objects shall be distinct. An integer index or objective dimension outside the system's ambient dimension shall raise std::invalid_argument. The inputs shall be preserved.
A successfully completed query shall report a Mixed_Integer_Optimization_Status that distinguishes: INFEASIBLE (no original feasible point), UNBOUNDED (feasible and unbounded in the requested direction), ATTAINED (finite attained optimum), and UNATTAINED (finite supremum/infimum that is not attained). Both finite results shall assign the exact value as numerator/denominator with positive denominator and a generator of the original ambient dimension. An attained result shall return a POINT satisfying every original row and integer restriction at that value. An unattained result shall return a CLOSURE_POINT at that value, satisfying the weakened rows and belonging to the closure of a nonempty original fiber at the returned integer coordinates. Infeasible and unbounded results shall preserve all three outputs. The underlying mixed-integer search shall follow the equality divisibility and interruption conditions of 🔗 1. Mixed integer satisfiability.
A constant objective shall use 🔗 1. Exact strict mixed-integer feasibility witnesses and shall be attained exactly when the original set is nonempty. Without continuously supported strict rows, the ordinary MIP model and exact integral-strict normalization shall provide the result without a witness-coordinate copy or margin bound.
Otherwise let r be the number of continuous coordinates. Insufficient MIP capacity for n + r coordinates shall raise std::length_error before allocating the coordinate map. Use D from 🔗 1. Uniform strict-margin denominator to construct a closed model with original coordinates for a limit and copied continuous coordinates for a strict witness, sharing exactly the original integer coordinates. Insert integer-supported rows once, normalizing their strict forms. On the limit coordinates weaken the remaining strict rows. On witness coordinates replace each strict row by Dei ≥ 1, preserving weak rows and equalities. Optimize the original objective on the limit coordinates. For a finite bound p ⁄ q, test the original strict system with the equality qf = p using 🔗 1. Exact strict mixed-integer feasibility witnesses. Success shall supply the optimizing point; failure shall supply the projected limit as a closure point.
The initialization, lifetime, synchronization, configured-arithmetic and exceptional-completion conditions of 🔗 1. Optimization and ranking valid use shall apply to all intermediate computations and output assignments. Arithmetic/range and resource exceptions shall not be mathematical statuses. Terminal-status output preservation shall not imply rollback after such exceptions.
-
1. Mixed integer problem values PPL-SPEC-001467 A problem of dimension n shall denote the points in Rn satisfying its stored equalities and non-strict inequalities, with coordinates in integer_space_dimensions() restricted to integers. Other coordinates shall remain unrestricted real coordinates. The objective shall be an affine linear expression, including its constant term. The mode shall select minimization or maximization. Stored constraints shall retain their mathematical meaning independently of subsequent source mutations.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Trivial mixed integer construction and dimensions PPL-SPEC-001468 Construction from dim shall create a problem with no explicit constraints or integer coordinates, zero objective and maximization mode. The default dimension shall be zero. Dimension queries shall report its ambient extent and the supported maximum. An extent greater than the maximum, including the reserved non-dimension value, shall raise std::length_error.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Integer-supported strict MIP admission1
3. Mixed integer construction from constraints PPL-SPEC-001469 System construction shall copy its canonical admitted constraints, objective and mode. Range construction shall copy the constraints in the valid half-open input range; the overload with int_vars shall additionally select those integer coordinates. Omitted objectives and modes shall mean zero and maximization.
The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. It shall additionally provide operator-> for constraint metadata. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.
An excessive ambient dimension shall raise std::length_error. Strict rows shall follow 🔗 1. Integer-supported strict MIP admission. Unsupported strict support or constraint, objective or integer-coordinate dimensions greater than dim shall raise std::invalid_argument. Failed construction shall release every constraint copy already acquired.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Mixed integer copying, exchange and reset PPL-SPEC-001470 Copying and assignment shall preserve the mathematical problem and permit independent later mutation and solving. Assignment shall return the receiver and support self-assignment. Exchange shall swap the complete problem and solver state; self-exchange shall preserve the value. clear shall reset to the zero-dimensional trivial problem. Destruction shall release owned constraints and solver storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Mixed integer descriptor views and iterators PPL-SPEC-001471 Descriptor accessors shall expose the stored objective, optimization mode and integer-coordinate subset. Constraint iterators shall expose const canonical admitted constraints in insertion order, as defined by 🔗 1. Integer-supported strict MIP admission, and support random-access movement, difference, dereference and comparison within the same live sequence. The end position shall not be dereferenced. Iterator arithmetic shall stay within that sequence and its end. Mutations that reallocate, clear, exchange or replace storage may invalidate borrowed views and iterators.
Default-constructed constraint iterators shall be singular and compare equal to one another. They shall support copying, assignment and destruction; dereference and movement require assignment from a valid iterator first. The constraint iterator shall satisfy the C++20 bidirectional-iterator and sized-sentinel concepts, permitting standard range adapters and algorithms.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Canonical rational input and stream failure outcomes PPL-SPEC-000526 The destination shall be live mpq_class storage, either raw or owned by Checked_Number<mpq_class, Policy>. The policy shall provide constant boolean has_nan and has_infinity traits for that wrapper's input and lifetime operations; no rounding default or result handler shall be required by named rational input. For an initially readable stream and a complete finite token in 🔗 1. Exact finite numeric token syntax, input shall assign its exact rational value in canonical form with positive denominator and coprime numerator/denominator. It shall return V_EQ for every valid rounding request, including strict and exactness requests. Lexical negative zero shall become rational zero. Reusing a destination shall not retain any previous numerator, denominator, sign or exponent component.
Successful parsing shall consume the recognized token and its leading whitespace, preserve any looked-ahead terminator by stream putback, and clear a speculative failbit caused only by successful end-of-token recognition at EOF. It shall retain eofbit and shall not clear a genuine stream failure. The stream buffer shall support the required character putback for successful delimiter retention. If that operation fails, input shall report failure through stream state rather than claim a complete finite value. Syntax rejection, an exponent expansion beyond the bound above or a conservative expansion bound exceeding the supported backend storage limits shall set failbit and return V_CVT_STR_UNK when the stream exception mask allows return. Enabled stream exceptions shall propagate. A consumed prefix shall not be rolled back after failure; no universal unchanged-destination promise shall apply. The surviving destination shall remain reassignable and destructible.
Case-insensitive inf with optional sign and unsigned nan shall be recognized as nonfinite tokens; a zero-valued denominator shall not be a successful finite value. Their nonfinite/undefined or unrepresentable outcome shall remain distinct from V_EQ finite input. This shall not promise a nonfinite representation in ordinary canonical mpq_class storage.
Objects and streams shall be synchronized against concurrent mutation and resources shall suffice for parsing and exact canonicalization. No library initialization owner, coefficient-constant stage, FPU setup/direction, inexact-flag support or irrational-precision setting shall be required.
-
Incoming links from: 1. Human-readable bounded-difference presentation 11. Reloadable ASCII records for admitted bound values 2. Readable interval presentation and output delivery 6. Checked numeric stream policy integration 1. Human-readable octagonal presentation 1. Reloadable octagonal record export 1. Pseudo-triangular mathematical-value records7
5. Mathematical numeric output and stream delivery status PPL-SPEC-000529 output shall preserve a live source number and write its mathematical text using the supplied stream. With ordinary decimal formatting, native integer, mpz_class and canonical finite mpq_class sources shall use their exact ordinary integer/rational representation; character-sized integer sources shall be printed numerically rather than as glyphs. A native finite floating source shall be written as an exact finite decimal representation of its represented binary rational value, without rounding to the stream precision or changing hardware direction. Both zero signs shall be written as 0. Admitted native infinities and quiet NaNs shall be written as -inf, +inf and nan respectively.
Exact integer/rational output shall follow its ordinary stream formatting flags. Native floating mathematical output shall insert the exact decimal string instead of using the stream's native floating formatting. Pending width/fill/alignment shall act through the corresponding ordinary insertion; no newline shall be added. Live Numeric_Format instances shall select the same formatting rules. Every valid rounding request shall return V_EQ when insertion returns, indicating no numeric approximation; it shall not by itself certify successful stream delivery. Stream error state and enabled exceptions shall follow ordinary insertion semantics, without a partial-output rollback promise or policy handler dispatch by named output.
Resources shall suffice for exact decimal expansion and insertion; source, format and stream access shall be synchronized against mutation. Supported native formats shall satisfy their availability conditions. No library initialization owner, coefficient-constant stage, FPU rounding setup, inexact-flag support or irrational-precision setting shall be required. Ordinary decimal output read by compatible numeric input shall preserve the mathematical finite value, without promising to preserve a floating zero's sign or machine object representation.
-
Incoming links from: 1. Human-readable bounded-difference presentation 11. Reloadable ASCII records for admitted bound values 1. Operation-specific numerical policy capabilities 1. Human-readable octagonal presentation 1. Reloadable octagonal record export 1. Pseudo-triangular mathematical-value records 1. Exact scalar ASCII persistence 1. Exact scalar ASCII persistence 2. Finite floating scalar ASCII byte records 3. Finite floating scalar ASCII reload and framing 4. Scalar ASCII stream delivery and failure handling11
6. Checked numeric stream policy integration PPL-SPEC-000530 For a Checked_Number<T, Policy> instantiation whose policy provides ROUND_DEFAULT_INPUT and handle_result(Result), input stream extraction shall call numeric input with that default direction and return the same stream reference. On a returned V_CVT_STR_UNK, it shall set failbit and shall not dispatch that syntax result to the policy handler. For another returned numeric result, it shall invoke the handler once. Stream exceptions and exceptions raised by the handler shall propagate. No successful destination value shall be inferred after a failed parse or a handler rejection; reuse shall meet the destination's declared post-failure prerequisites.
Output stream insertion shall require the policy handler, without requiring an input-default direction. It shall call numeric output with a default Numeric_Format and ROUND_IGNORE, dispatch a returned result to the policy handler once, and return the same output-stream reference. A stream exception shall propagate before a returned numeric result can be dispatched. The source shall remain unchanged by library formatting. Input/output mathematical values and stream semantics shall follow 🔗 2. Canonical rational input and stream failure outcomes, 🔗 3. Numeric text input into integral destinations, 🔗 4. Numeric text input into supported native floating destinations and 🔗 5. Mathematical numeric output and stream delivery status for admitted underlying types. Check_Overflow_Policy alone shall not be assumed to provide these stream-operator policy members; the named result-returning interfaces shall remain governed by their own contracts.
-
10. Native finite affine interval congruence classification PPL-SPEC-001650 native_interval_relation<Halve>() shall require finite native bounds, a positive magnitude a, a positive modulus m and exact unbounded native arithmetic. With h = 2 when Halve is true and h = 1 otherwise, its admitted affine interval shall be nonempty: L = c − a neg_lower ⁄ h ≤ U = c + a upper ⁄ h, where c is expr.inhomogeneous_term(). The selected halving operation shall be exact.
The result shall be disjoint exactly when [L, U]∩mℤ is empty. It shall be included and saturating exactly when L = U ∈ mℤ. Otherwise it shall strictly intersect. Expression, magnitude, modulus and supplied bounds shall be preserved. Supported numerical and allocation failures may propagate; temporaries shall release their owned resources. Numerical initialization, lifetime and synchronization prerequisites shall follow 🔗 1. Bounded-difference values, numerical profiles and valid use and 🔗 1. Octagonal values, numerical profiles and valid use for the calling domain.
-
1. Rational affine image of one coordinate PPL-SPEC-001206 For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with an octagonal shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = sxj + c with s ∈ { − 1, 1} , including signed self translation, shall give the exact image. Other affine expressions may require a conservative octagonal enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate PPL-SPEC-001207 With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
With exact rational boundary arithmetic, a signed self translation xk : = sxk + c with s ∈ { − 1, 1} shall give the exact preimage. Other transformations shall give sound containing octagons; they need not compute the least octagonal enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. In particular, constant and distinct-coordinate assignments need not retain every representable predecessor constraint. Rounded profiles shall retain the selected outward arithmetic guarantees. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
3. Single-coordinate generalized affine image PPL-SPEC-001208 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
4. Single-coordinate generalized affine preimage PPL-SPEC-001209 For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast octagonal enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image PPL-SPEC-001210 Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound octagonal enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as an octagonal expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
6. Expression-left generalized affine preimage PPL-SPEC-001211 With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast octagonal enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image PPL-SPEC-001212 For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
8. Single-coordinate bounded affine preimage PPL-SPEC-001213 With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast octagonal enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
-
Incoming link from: 6. Limited threshold octagonal extrapolation1
1. Default octagonal stop points PPL-SPEC-001214 CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001215] with the finite ordered stop points − 2, − 1, 0, 1, 2. These are bounds on the signed forms in that contract: a stop s on a unary form 2xi means xi ≤ s ⁄ 2, while a stop on xi + xj means xi + xj ≤ s. Already representable stop values shall be retained exactly.
The ascending operand order Y ⊆ X, empty and zero-dimensional cases, source preservation and precision-sensitive token rule shall be those of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. Sharing the default stop-point values between calls shall not affect mathematical results. This convenience overload shall not add a convergence guarantee to CC76 extrapolation.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
2. Threshold octagonal extrapolation and precision-sensitive tokens PPL-SPEC-001215 Let X be the receiver's entry set and Y the argument's entry set, with Y ⊆ X. The explicit-iterator CC76 operator shall produce an octagonal enclosure of X, preserving dimension. An empty argument and zero-dimensional operands shall preserve the receiver's entry set.
For nonempty operands and exact rational support computations, define bZ(v) = sup{v⋅p ∣ p ∈ Z} for the signed forms v ∈ {±2ei, ±ei±ej (i < j)}. With no delay token, a finite stable bound bX(v) = bY(v) shall be retained. A bound that increased strictly shall be replaced by the least supplied stop point not below bX(v), or removed if no such stop exists. An unbounded form shall remain unbounded. The result shall denote the conjunction of these closed upper bounds. This characterization concerns real-coordinate sets, including when the stored coefficient type is integral.
Other supported profiles shall compare outward closed profile bounds and assign chosen stops outward, preserving every point of X under 🔗 1. Octagonal values, numerical profiles and valid use. Rounded closure shall not be assumed canonical or required to compute exact real supports. General relational CC76 iterations shall carry no finite-stabilization guarantee.
The half-open stop-point range shall use readable multipass forward iterators and finite values sorted in nondecreasing numerical order. Empty ranges and duplicates shall be admitted. Values and iterators shall remain live and stable throughout the call, shall not borrow storage invalidated by the call, and shall support the selected profile's comparisons and outward assignment.
A null token pointer or zero counter shall select the undelayed result. With a positive counter, the receiver shall retain X; exactly one token shall be consumed when the corresponding undelayed result strictly enlarges X, and otherwise none shall be consumed. The counter shall be a live, separately owned, externally synchronized writable unsigned object. Neither the argument's represented value nor the supplied stop-point values shall be changed.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
Incoming link from: 4. Limited semantic octagonal extrapolation1
3. Semantic octagonal widening and default widening alias PPL-SPEC-001216 With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall return an octagonal set containing both, with the same ambient dimension. An empty or singleton argument, or an increase in affine dimension from Y to X, shall retain X. widening_assign shall have the same behavior as BHMZ05_widening_assign with the same argument and token pointer.
For equal positive affine dimension and exact rational support computations, the undelayed result shall implement the semantic standard widening: obtain a nonredundant octagonal inequality description of Y, retain its inequalities satisfied by every point of X, and conjoin the retained inequalities. The affine-dimension guard and strong reduction shall make this result independent of equivalent input descriptions, redundant bounds, representation-only cache changes and choices of a strongly reduced octagonal description. This shall not require a least possible widening.
Supported rounded profiles shall preserve inclusion under the numerical prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use; the exact-support characterization shall apply when the relevant support and reduction calculations are exact. A smaller resulting set shall not be promised than is established by the selected widening and arithmetic profile.
The precision-sensitive token rule in 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens shall apply to this operator's undelayed result. Equal entry sets and self-aliasing shall preserve their set and shall not consume a token.
In a fixed dimension and profile, form an ascending iteration by first constructing an enclosure of the preceding widened result and the next input, then invoking this operator on that enclosure with the preceding result as argument. Under its inclusion and numerical prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve the convergence guarantee.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
4. Limited semantic octagonal extrapolation PPL-SPEC-001217 With Y ⊆ X in the ascending operand order, limited_BHMZ05_extrapolation_assign shall improve the semantic widening of 🔗 3. Semantic octagonal widening and default widening alias using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
With a fixed finite limiting system, fixed dimension/profile, the admitted normalization and widening prerequisites, and a finite unreplenished token budget, the prescribed ascending recurrence shall retain finite stabilization. Arbitrarily changing the limiting system shall carry no such general guarantee.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
5. Octagonal narrowing and descending operand order PPL-SPEC-001218 Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall produce R with X ⊆ R ⊆ Y, preserving ambient dimension. An empty receiver, zero-dimensional operands and self-aliasing shall preserve the receiver's entry set.
For nonempty operands and exact rational support computations, use the signed forms and supports of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite and bX(v) otherwise. Thus it may restore a finite previous bound even when the current one is tighter; it shall recover a current bound in a direction where the previous set is unbounded. It shall not simply retain every improvement in the receiver.
Supported rounded profiles shall use their outward closed profile bounds while preserving both inclusions. Keep every finite previous bound even when the corresponding current bound remains infinite in rounded closure. The exact-support characterization shall apply when the corresponding support computations are exact. Under exact support arithmetic in a fixed dimension, descending iteration that passes each result as the next previous argument shall stabilize after finitely many strict changes: a strict step must make a previously unbounded primitive form finite. Finite-carrier profiles shall stabilize under the same descending inclusion and arithmetic conditions. No stabilization guarantee shall be inferred for other operator/profile/iteration combinations without its own justification.
The receiver/argument order shall be the descending order stated above, rather than the ascending order used by widening. A distinct previous argument shall retain its represented value.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
6. Limited threshold octagonal extrapolation PPL-SPEC-001219 With Y ⊆ X in the ascending operand order, limited_CC76_extrapolation_assign shall improve the default threshold extrapolation of 🔗 1. Default octagonal stop points using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
This limited operator shall not add a general finite-stabilization guarantee to relational CC76 extrapolation, even with a fixed finite limiting system.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
-
1. Closed octagonal support hull of geometric generators PPL-SPEC-001162 Octagonal_Shape(gs) shall construct the least target-profile octagonal enclosure of the convex set generated by gs. Its closed boundaries shall include finite limiting points supplied only as closure points. Ordinary points and closure points shall contribute their actual rational coordinates to support extrema, with the generator meanings in 🔗 1. Generator kinds and numerical prerequisites and 🔗 2. Construction of nonzero lines and rays. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so exactly when that scalar product is nonzero. A zero directional product shall retain any finite bound on that normal.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Divisors, zero trailing coordinates and ambient dimension shall retain their generator-system meanings.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
Incoming link from: 1. Octagonal time evolution by nonnegative rates1
2. Complexity-sensitive octagonal conversion from polyhedra PPL-SPEC-001163 Octagonal_Shape(ph,complexity) shall construct an octagonal set containing the source closed or not necessarily closed polyhedron. The default ANY_COMPLEXITY and the explicit SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY values shall be admitted.
ANY_COMPLEXITY shall produce the least target-profile octagonal enclosure and shall detect an empty source exactly. For a nonempty source, strict finite boundaries shall contribute their limiting suprema to the closed result. Primitive bounds shall use the exact signed supports and target normalization in 🔗 1. Closed octagonal support hull of geometric generators, including doubling a unary support before rounding. This guarantee shall not depend on an equivalent source constraint/generator representation or cache history.
SIMPLEX_COMPLEXITY shall give the same primitive support bounds for every nonempty source. It may use the closed relaxation obtained by replacing each strict source row by its weak counterpart. Therefore an empty not necessarily closed source whose closed relaxation is nonempty need not be detected as empty. An already available valid generator representation may give the stronger exact-empty result without exceeding the selected complexity class.
POLYNOMIAL_COMPLEXITY shall preserve containment while respecting its polynomial complexity bound. It may conservatively extract and propagate supported information without a universal least-enclosure, exact-emptiness, mandatory-progress or particular iteration fixed-point guarantee. Equivalent source representation/cache histories may yield different permitted conservative enclosures. Each complexity option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction, subject to the stated complexity-dependent emptiness guarantees.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
3. Best octagonal enclosure of Cartesian boxes PPL-SPEC-001164 Octagonal_Shape(box,complexity) shall construct the least target-profile octagonal enclosure of the real Cartesian product represented by box. The source interval endpoint policy shall retain its open/closed meanings. For a nonempty product, an excluded finite endpoint may determine an included limiting bound in the closed result. Any empty factor shall make the result empty in the source ambient dimension; closing endpoints individually shall not turn an empty product into a nonempty one.
For a signed binary normal, its exact support shall combine the two relevant source endpoint contributions before target conversion. The unary support shall be doubled before conversion to its stored target bound. Unbounded contributing endpoints shall leave the corresponding support unrestricted.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
4. Best octagonal enclosure of rational grids PPL-SPEC-001165 Octagonal_Shape(grid,complexity) shall construct the least target-profile octagonal enclosure of the entire rational grid. The constructed octagonal set shall have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use and shall enclose every source grid point under its line and integer-parameter semantics. Integral target bound storage shall not change that result carrier.
For a nonempty grid, a signed primitive normal shall have a finite supremum exactly when it annihilates every line direction, every integer-parameter direction and every difference between its generating base points. In that case the normal shall be constant with its value at any base point. Otherwise its support shall be unbounded in both signs. Implied signed equalities shall be retained whether or not they appear as individual rows of a chosen congruence basis. Periodic restrictions that do not imply such an equality shall impose no finite bound.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
An empty grid shall give empty in its original ambient dimension. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
5. Best octagonal enclosure of bounded-difference shapes PPL-SPEC-001166 Octagonal_Shape(bd,complexity) shall construct the least target-profile octagonal enclosure of the real set represented by bd at entry. Signed sum and difference supports shall include all consequences of the source bounded-difference conjunction, including signed sums obtained by combining source unary restrictions. Source and target numerical profiles may differ; integer source bounds shall still describe real coordinates.
The constructor shall preserve empty and zero-dimensional source meanings. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee. Equivalent source descriptions and normalization histories shall not discard a supported relation.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
-
Incoming link from: 2. Zero-fixed octagonal coordinate extension1
1. Unrestricted octagonal coordinate extension PPL-SPEC-001198 For entry set X ⊆ ℝn, add_space_dimensions_and_embed(m) shall produce exactly X×ℝm in dimension n + m. Original coordinates shall retain their indices and relationships. New coordinates, in positions n, …, n + m − 1, shall be unrestricted. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the universe. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation. The check shall reject a count whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive request into a smaller successful extension. Rejected dimension requests shall preserve the entry set and dimension.
The ordered product with an independently represented second set is specified by 🔗 7. Ordered Cartesian concatenation of octagonal values.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
2. Zero-fixed octagonal coordinate extension PPL-SPEC-001199 For entry set X ⊆ ℝn, add_space_dimensions_and_project(m) shall produce exactly X×{0}m in dimension n + m. Original coordinates shall retain their indices and relationships. Every new coordinate, in positions n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation, including a mathematical sum outside the range of dimension_type. Rejected dimension requests shall preserve the entry set and dimension. Unrestricted extension is specified separately by 🔗 1. Unrestricted octagonal coordinate extension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
3. Existential removal of selected octagonal coordinates PPL-SPEC-001200 For entry set X ⊆ ℝn and selected entry indices S, remove_space_dimensions(vars) shall existentially eliminate those coordinates. If i0 < ⋯ < im − 1 are the indices outside S, the concrete result shall be
{(xi0, …, xim − 1) ∣ x ∈ X} ⊆ ℝm.Survivors shall be compacted in that ascending order. Removing no coordinates shall preserve the value. Removing a constrained coordinate shall retain relationships implied between surviving coordinates, subject to the stated numerical precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
Every selected index shall be inside the entry space. An out-of-space selection shall throw std::invalid_argument before changing the represented set or dimension, including for empty input. The Variables_Set argument shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
4. Existential removal of trailing octagonal coordinates PPL-SPEC-001201 For entry set X ⊆ ℝn, remove_higher_space_dimensions(k) shall remove indices k, …, n − 1 and retain the prefix in its original order. Its concrete result shall be {(x0, …, xk − 1) ∣ x ∈ X} ⊆ ℝk. Calling it with k = n shall preserve the value.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
The requested prefix length shall satisfy k ≤ n. A larger value shall throw std::invalid_argument before changing the represented set or dimension, including for empty or zero-dimensional input. Selected-coordinate removal is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
5. Injective partial remapping of octagonal coordinates PPL-SPEC-001202 map_space_dimensions(mapping) shall existentially discard entry coordinates outside the mapping domain and place each retained coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from {0, …, n − 1} with image exactly {0, …, m − 1} for some m ≤ n. The concrete result shall be
{(xf − 1(0), …, xf − 1(m − 1)) ∣ x ∈ X}.The result shall have dimension m. An empty mapping shall project to the zero-dimensional value. A permutation shall retain all renamed relationships; an identity mapping shall preserve the value. The exactness, rounded enclosure and empty-set guarantees of 🔗 3. Existential removal of selected octagonal coordinates shall apply to the projection part.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. Queries shall describe one stable mapping throughout the call. A zero-dimensional receiver shall remain unchanged without querying the mapping. Otherwise has_empty_codomain() shall be queried first; when it returns true, neither remaining query shall be called. For a nonempty image the maximum query shall precede individual mapping queries. No fixed count or order of maps queries shall be required. The mapping's value shall remain unchanged apart from effects explicitly permitted by its query contract.
Violating injectivity, source bounds, the contiguous-image condition or query consistency shall be outside admitted use. In particular, output-index holes shall not denote newly introduced free coordinates. Exceptions from mapping queries shall propagate; no rollback of the receiver shall be inferred after such an exception.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
6. Octagonal coordinate expansion by independent fibers PPL-SPEC-001203 For an existing entry coordinate v < n, expand_space_dimension(var,m) shall append coordinates in positions n, …, n + m − 1, retaining the original coordinate positions. Let X ⊆ ℝn be the entry set and let u[v ← a] denote replacing coordinate v of the old-coordinate prefix of u by a. The declared octagonal result shall be the independent-fiber relation
{u ∈ ℝn + m ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.Each replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Equality with the original coordinate or between replicas shall hold only when implied by those restrictions. The result shall contain the generic common-replica expansion relation in [LINK: PPL-LLR-000444]. The displayed relation is itself octagonal. Exact copying of admitted entry bounds shall preserve it; delegated computational rounding shall retain the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use.
Empty input shall remain empty. Zero replicas shall preserve the value after validating var. An out-of-space variable shall throw std::invalid_argument, including for empty input or zero replicas. A final dimension above max_space_dimension() shall throw std::length_error, including a count whose mathematical sum with the current dimension would exceed dimension_type. These rejected requests shall preserve the entry set and dimension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
7. Alternative-coordinate folding of octagonal values PPL-SPEC-001204 fold_space_dimensions(vars,dest) shall combine the alternatives obtained by retaining the entry destination value or choosing the value of any entry coordinate in vars for that destination, then existentially remove every folded coordinate. Surviving indices, including the destination's resulting index, shall be compacted in ascending original order. Other surviving coordinates shall retain their entry meanings within each alternative.
With exact computational arithmetic, including exact halving where needed, the result shall be the least closed octagonal enclosure of the union of those alternatives: each signed unary or binary bound shall be its supremum over that union. The union may be nonconvex. Rounded profiles shall produce a sound enclosure with the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use; they need not produce the least octagonal enclosure. Empty input shall remain empty in the reduced ambient dimension. Empty vars shall preserve the value after checking the destination.
The destination and every folded coordinate shall belong to the entry space, and the destination shall not be in vars. An invalid coordinate or a selection containing the destination shall throw std::invalid_argument before changing the entry set or dimension. This validation shall also apply to empty input. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
8. Dimension-preserving forgetting of octagonal coordinates PPL-SPEC-001205 For entry set X ⊆ ℝn and selected indices S, unconstrain(vars) shall retain ambient dimension n and have concrete result
{y ∈ ℝn ∣ ∃x ∈ X ∀i ∉ S : yi = xi}.unconstrain(var) shall have the same meaning for the singleton selection containing var. Retained coordinates shall keep their original indices; selected coordinates shall be free. Relationships implied between retained coordinates shall be preserved with the declared projection precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal this cylindrification. Rounded profiles shall contain it and may be less precise through closure and bound rounding. Empty input shall remain empty; forgetting every coordinate of a nonempty input shall produce the universe in the same ambient dimension. Forgetting no coordinates shall preserve the value, including in zero dimensions. Integer storage shall still describe real points, including half-integral points.
Every selected coordinate shall belong to the entry space. An out-of-space variable or selection shall throw std::invalid_argument before changing the represented set or ambient dimension, including for empty input. The Variables_Set argument shall remain unchanged. Coordinate removal, which also changes dimension, is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
-
1. Human-readable octagonal presentation PPL-SPEC-001234 Stream insertion shall write false for a shape whose emptiness is already certified, and true for a universe shape, including their zero-dimensional forms. Otherwise it shall write a conjunction of the stored finite unary and signed binary bounds. A logically empty shape whose emptiness has not been classified may be displayed as a contradictory conjunction. Presentation shall not require computing strong closure or provide a canonical constraint list.
Unary constraints shall precede binary constraints and shall be ordered by increasing coordinate identity. Each unary equality shall be displayed once; otherwise a finite lower side shall precede a finite upper side. For a stored unary bound on twice a coordinate, exact representable halving shall permit the form variable relation value. If such halving is not exact and representable in the selected bound profile, the doubled coefficient shall remain explicit. A sign may be moved to the coefficient side, including -2*variable <= bound, when this denotes the same halfspace. Printed relations, signs and constants shall retain the exact mathematical meaning of the stored bound.
Binary constraints shall be ordered by increasing larger coordinate identity, then increasing smaller coordinate identity. Difference constraints for each pair shall precede sum constraints. Two opposite finite bounds that are additive inverses shall be displayed as one equality; other finite sides shall be displayed as non-strict inequalities. Difference forms may reverse the coordinate order and relation to display a nonnegative constant. Sum forms shall keep the smaller-index coordinate first. Positive-infinite sides shall not be displayed. Consecutive constraints shall be separated by ", "; no ambient-dimension header shall be inserted.
Variable occurrences shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Bound values shall follow the admitted mathematical numeric stream output of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration. Interpreted with their coordinate identities, the printed conjunction shall denote the source's represented real set.
Insertion shall return the supplied stream reference without adding a newline or explicitly flushing it. print() shall send the same presentation to the current std::cerr. Both operations shall preserve the source set, ambient dimension, stored status, matrix and ownership. Stream and formatter failures shall retain their applicable state, exception-mask and partial-output behavior. Rendering callbacks shall not mutate or invalidate traversed source objects.
The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
-
2. Owned octagonal memory accounting PPL-SPEC-001235 external_memory_in_bytes() shall report the owned external storage of the pseudo-triangular bound matrix under 🔗 4. Owned backing storage and live-payload memory accounting, including its backing-row allocation, retained capacity, owned row metadata and external payload of every physically live selected coefficient. Logically empty shapes, inactive geometric content or reduced ambient dimensions shall not remove still-owned allocated capacity from the count. Borrowed views, independently owned runtime temporaries, other objects and allocator bookkeeping shall be excluded.
total_memory_in_bytes() shall equal sizeof(Octagonal_Shape<T>) plus the external count. Sizes shall be those of the selected build/profile, and the sum shall fit memory_size_type. The selected live coefficient memory hooks shall be well-formed. Both queries shall preserve the source set, ambient dimension, stored status, matrix, ownership and lifetimes. They shall not classify emptiness or recompute strong closure.
The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Live owned storage shall remain unchanged during either query.
-
Incoming links from: 2. Rectilinear distance of octagonal closed-bound tables 2. Rectilinear distance of octagonal closed-bound tables 3. Euclidean distance of octagonal closed-bound tables 3. Euclidean distance of octagonal closed-bound tables 4. Maximum-coordinate distance of octagonal closed-bound tables 4. Maximum-coordinate distance of octagonal closed-bound tables6
1. Octagonal distance normalization, boundaries and workspaces PPL-SPEC-001230 For a nonempty shape of ambient dimension n, let z2k = xk and z2k + 1 = − xk for 0 ≤ k < n. The stored position (i, j) shall describe zj − zi ≤ bij. Let pi be zero for even i and one for odd i. The distance tuple shall contain exactly
Dn = {(i, j) ∣ 0 ≤ i < 2n, 0 ≤ j < i + 2 − pi}.This is the physical pseudo-triangular domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates, with 2n(n + 1) positions. Its 2n diagonal positive-infinity sentinels shall each contribute zero. Its 2n2 other positions shall count each signed octagonal normal once: ±2xk for unary bounds and ±xk±xl for k < l. Unary bounds shall remain doubled in the tuple; the coherently equivalent matrix position shall not be counted again. A positive-infinite bound shall impose no restriction.
The selected tables shall be those used after the call's required strong closure. With exact rational closure, finite entries shall be the primitive suprema of the represented set, with infinity for unbounded forms. Rounded or saturating closure, including integer halving, shall retain 🔗 1. Octagonal values, numerical profiles and valid use; selected tables need not be canonical, idempotent or invariant across alternative source descriptions. The distance shall use these selected tables, as retained in compatible post-call records of 🔗 1. Reloadable octagonal record export. It shall not denote minimum point separation or a Hausdorff distance. Normalization shall preserve each source's represented set and ambient dimension.
Different ambient dimensions shall return false before modifying the result or supplied workspaces. False shall assign no distance for that pair. Dimension-compatible two-empty shapes shall have distance zero; exactly one empty shape shall have positive-infinite distance. In dimension zero, two universe shapes shall also have distance zero. These rules shall apply to logically empty sources whose emptiness has not yet been classified. Equal dimensions shall return true on successful numerical completion, with the value specified by 🔗 2. Rectilinear distance of octagonal closed-bound tables, 🔗 3. Euclidean distance of octagonal closed-bound tables or 🔗 4. Maximum-coordinate distance of octagonal closed-bound tables.
The overload without an explicit temporary type shall use three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar Temp argument shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied-workspace overload shall use the actual type of its three references, which may be an admitted raw or checked numeric type. The supported operation, rounding, representation and overlap conditions of 🔗 20. Distance scratch storage, admissible overlaps and numeric conditions and 🔗 9. Distance workspace protocol and admissible overlaps shall apply to the selected metric specialization, subject to the public source-storage condition below.
Calls evaluating finite entry differences shall use ROUND_DOWN or ROUND_UP, optionally combined with ROUND_STRICT_RELATION. Finite source conversions shall not have to be exact merely to establish the requested directed bound. Paths performing only exact zero or positive- infinity assignments shall admit directions valid for those selected scalar assignments. An output profile shall support positive infinity whenever that outcome is reachable. Every conversion, difference, sum, square, square root and final assignment shall satisfy its selected backend's arithmetic, range, numerical-failure, resource, initialization and nontrapping prerequisites. Native arithmetic shall retain configured support and initialized caller-owned FPU conditions; the call shall preserve caller rounding. Rational square-root precision shall remain stable throughout a dependent call.
Sources shall be live valid objects under 🔗 1. Octagonal values, numerical profiles and valid use. The same shape may be supplied for both operands. The three mutable supplied workspaces shall be live, pairwise distinct and disjoint from source-owned storage. Their entry values need not have mathematical significance when overwritten before reading. The result shall have live assignable storage disjoint from source-owned storage, but may overlap one supplied workspace or its compatible underlying raw storage. When the result overlaps a workspace, the distance shall still use source values on entry. Callers shall preserve object/storage lifetimes and synchronize source access, including logically const cache updates.
Numerical and recoverable resource failures shall retain their selected propagation channels and permitted partial result/workspace states; no aggregate rollback guarantee shall be inferred. Discarded owned temporaries shall be released, while reusable numerical cache storage shall retain its own lifetime and cleanup contract. Ordinary dimension mismatch shall retain the stronger unchanged-result/workspace guarantee above. Otherwise valid calls shall require no additional library initialization beyond their selected representation, numerical and thread runtime prerequisites.
-
2. Rectilinear distance of octagonal closed-bound tables PPL-SPEC-001231 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three rectilinear_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be ∑(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 6. Rectilinear distance of physical octagonal entry arrays.
-
3. Euclidean distance of octagonal closed-bound tables PPL-SPEC-001232 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three euclidean_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be √(∑(i, j) ∈ Dnd 2ij), with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 7. Euclidean distance of physical octagonal entry arrays.
Rational square-root enclosure shall retain 🔗 2. Finite rational square root at the selected irrational precision and the calling precision of 🔗 3. Selection and ownership of irrational rational precision, which shall remain stable throughout the dependent call.
-
4. Maximum-coordinate distance of octagonal closed-bound tables PPL-SPEC-001233 Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three l_infinity_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.
For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be max(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].
On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 8. Maximum-coordinate distance of physical octagonal entry arrays.
-
1. Octagonal time evolution by nonnegative rates PPL-SPEC-001222 Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least octagonal enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive octagonal conversion from polyhedra for ANY_COMPLEXITY. Primitive bounds shall follow the signed supports and unary doubling of 🔗 1. Closed octagonal support hull of geometric generators. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each signed normal v ∈ {±2ei, ±ei±ej (i < j)} with finite entry support supp ∈ Xv⋅p shall retain that bound precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated octagonal abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
Incoming link from: 3. Selected-coordinate integer restriction of octagonal values1
2. Integer-point restriction on every octagonal coordinate PPL-SPEC-001223 For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce an octagonal set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. Integral octagonal bounds shall not imply an integral polyhedron: doubled unary bounds and signed binary relations may retain half-integral points. An identity result shall be admitted even for an integral-bound profile whose entry set has no integer points; tight integer closure shall not be required by this interface.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
3. Selected-coordinate integer restriction of octagonal values PPL-SPEC-001224 Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce an octagonal set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every octagonal coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
4. Bounded-integer wrapping and guarded evolution of octagonal shapes PPL-SPEC-001225 wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a octagonal abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed vars.space_dimension(). Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
-
5. Topological closure identity for octagonal values PPL-SPEC-001226 topological_closure_assign shall preserve the represented set and ambient dimension of every valid octagonal value. These values are already topologically closed under 🔗 1. Octagonal values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall preserve the owned representation and cache state. It shall not run strong closure, tight integer closure, allocation or numerical arithmetic, nor invoke cooperative-abandonment callbacks.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
-
1. Export of octagonal unary constraints through a destination protocol PPL-SPEC-001240 For a destination of dimension m at least the source dimension n, export_interval_constraints(dest) shall restrict only the corresponding first n coordinates using outward unary consequences of the source. The destination's ambient dimension and coordinate identities shall be retained, and no pre-existing restriction shall be weakened. Source strong closure may update its stored bounds and cache while preserving its represented real set X and ambient dimension.
Let D be the entry destination set and H(X) the Cartesian hull of the source set. A successfully completed export shall produce a destination set D’ satisfying
D∩(H(X)×Rm − n) ⊆ D’ ⊆ D.With unbounded exact rational source closure and exact destination restrictions, the result shall equal that intersection. Other numerical profiles may lose unary information; no best-hull or canonical-bound claim shall follow for them. Existing destination correlations may propagate a restriction to other coordinates; the exporter shall select no coordinate outside the source's ambient space.
A finite stored weight of 2xi shall yield an upper callback bound obtained by halving outward toward positive infinity. A finite stored weight li of − 2xi shall yield a lower callback bound obtained from − li ⁄ 2, outward toward negative infinity when it has the indicated native representation. Callback values shall be supplied as finite native T values, after the outward computation in the shape's extended coefficient type. A positive-infinite stored side shall impose no finite restriction.
For bounded unsigned integer storage, a positive finite li denotes a negative lower endpoint that no finite native T value can express. That lower side shall be omitted. The zero lower side shall still export zero. Upper sides and other coefficient profiles shall retain their stated outward restrictions. A reserved extended-number encoding shall not be passed as an ordinary finite callback bound.
An empty source shall invoke dest.set_empty(). A zero-dimensional universe shall contribute no restriction. A destination of smaller ambient dimension shall cause std::invalid_argument before source normalization or any restrictive callback, including for empty sources. Each restriction callback shall return false exactly when its destination is empty; such a result shall stop further restriction callbacks. No fixed callback count or coordinate order shall be required.
The destination protocol shall perform the indicated conjunctions, preserving its existing restrictions and all coordinate identities. If its own arithmetic is approximate, a successful restriction shall contain the intersection of its entry set with the supplied halfspace and remain within its entry set. The destination, its callback environment and any borrowed storage shall remain live throughout the call. Callbacks shall not mutate or invalidate the source being traversed.
The selected representation, numerical runtime, initialized facilities, arithmetic-range and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Configured native-format admission and caller-owned FPU prerequisites shall apply when the selected T uses native floating arithmetic; nonfloating instances shall need no FPU environment. Recoverable numerical, resource or callback exceptions may propagate. A callback failure may leave the destination partially restricted, with the states and ownership guaranteed by that destination's operations; no aggregate rollback shall be inferred. Source cache updates shall retain their applicable failure guarantees, and discarded owned temporaries shall be released.
-
1. Native interval-affine image PPL-SPEC-001236 For a supported native floating-point boundary type T, a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B, affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted octagonal language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
-
Incoming link from: 3. Generalized interval-linear-form comparisons1
2. Conservative interval-linear-form inequality refinement PPL-SPEC-001237 For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or signed binary octagonal inequality. If the required constant endpoint subtraction and doubled-unary encoding are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. All four sign combinations on distinct coordinates shall be covered. This precision clause shall not apply to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
3. Generalized interval-linear-form comparisons PPL-SPEC-001238 For the form value sets and numerical admission of 🔗 2. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
-
4. Refinement of a floating interval abstract store PPL-SPEC-001239 For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 5. Box conversion from octagonal shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 5. Box conversion from octagonal shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 5. Box conversion from octagonal shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
-
1. Addition of supported octagonal constraints PPL-SPEC-001167 add_constraint(c) shall conjoin the receiver with the target-profile normalization of the admitted constraint c. The nonconstant supported forms shall be unary bounds and signed two-coordinate bounds with equal nonzero coefficient magnitudes, including equalities. Constant tautologies shall have no effect; constant falsehoods shall make the receiver empty. Constant strict conditions shall retain their truth value. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument without changing the receiver's represented set.
For a unary normalized inequality sxi ≤ b, its stored primitive bound shall be the least admitted target bound at least 2b in the doubled-unary encoding. For a binary normalized inequality sixi + sjxj ≤ b, the bound shall be the least admitted target bound at least b. Signs shall belong to { − 1, 1}. Each side of an equality shall have its own outward bound. The result shall be exactly the intersection of the entry set with these normalized target inequalities; when the normalized bounds are exact, this shall be the concrete conjunction. Every entry point satisfying c shall be retained.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted system rows with the same normalization and validation rules. A descriptor or system dimension at most the receiver dimension shall be accepted, with zero coefficients in omitted trailing coordinates. A larger dimension shall throw std::invalid_argument before changing the receiver's represented set. An empty receiver shall still undergo these validation rules.
An ordinary copying call shall preserve its source descriptor or system. The result shall not borrow source storage. After a recycled-system call, including exceptional return, the only required property of cs shall be safe destruction. A rejected system need not undo earlier accepted rows; no particular row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
-
2. Addition of supported octagonal congruences PPL-SPEC-001168 add_congruence(cg) shall accept congruence equalities whose expression is an admitted unary or equal-magnitude signed two-coordinate equality, together with constant tautologies and falsehoods. An accepted equality shall conjoin the two outward-normalized inequalities defined in 🔗 1. Addition of supported octagonal constraints. A tautology shall have no effect; a falsehood shall make the receiver empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument without changing the receiver's represented set. An adding call shall not silently discard a nontrivial periodic restriction. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these rules to the system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set, including on an empty receiver. Smaller dimensions shall have zero trailing coefficients. Ordinary copying forms shall preserve their source values and shall not borrow their storage. A recycled system shall be required only to remain safely destructible after normal or exceptional return. If a later system row is rejected, preceding accepted rows need not be rolled back; no row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
-
3. Conservative refinement by linear constraints PPL-SPEC-001169 refine_with_constraint(c) shall refine the receiver by an admitted linear constraint without rejecting a row merely because its nonconstant form is not octagonal. A supported closed unary or equal-magnitude signed binary row shall have the outward-normalized conjunction in 🔗 1. Addition of supported octagonal constraints. A supported nonconstant strict inequality shall first be relaxed to its non-strict counterpart and then normalized. An unsupported nonconstant linear form shall have no effect.
Constant true rows shall have no effect and constant false rows shall make the receiver empty, including the strict false condition 0 > 0. An empty receiver shall remain empty. refine_with_constraints(cs) shall apply these rules to the entire conjunction. For entry set X, exact condition set C and result R, X∩C ⊆ R ⊆ X shall hold. For a system, the represented result shall be the intersection with all the retained, relaxed and outward-normalized rows; ignored rows shall impose no restriction.
Source dimensions at most the receiver dimension shall be admitted with zero trailing coefficients. A larger descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set, including when the receiver is empty. Copying calls shall preserve source descriptors and own any resulting bounds independently. Exceptions during a system call need not roll back previously applied refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
4. Conservative refinement by congruences PPL-SPEC-001170 refine_with_congruence(cg) shall conjoin an octagonal congruence equality using the outward-normalized opposite inequalities in 🔗 1. Addition of supported octagonal constraints. An unsupported nonconstant equality shall have no effect. A proper constant false congruence shall make the receiver empty; other proper congruences shall have no effect. A tautology shall have no effect. The real carrier in 🔗 1. Octagonal values, numerical profiles and valid use shall remain unchanged; ignored periodic information shall not turn this call into an integer-valued state restriction.
refine_with_congruences(cgs) shall apply those rules to the conjunction. For entry set X, supplied congruence set C and result R, X∩C ⊆ R ⊆ X shall hold. The result shall equal the intersection with all accepted normalized equality rows, unless a false row makes it empty. Empty receivers shall remain empty.
Larger descriptor or system dimensions shall throw std::invalid_argument before changing the receiver's represented set, including on empty receivers. Smaller dimensions shall use zero trailing coefficients. Copying calls shall preserve their source values; result bounds shall not borrow source storage. A system call that throws need not roll back preceding accepted refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
1. Exact intersection of compatible octagonal values PPL-SPEC-001171 For entry receiver X and source Y, intersection_assign(y) shall replace the receiver by the exact real set X∩Y. This equality shall hold for every admitted numeric profile under its numerical prerequisites, including integral bound storage with half-integral real points.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
2. Conservative and exact-arithmetic octagonal upper bounds PPL-SPEC-001172 For entry receiver X and source Y, upper_bound_assign(y) shall produce an octagonal value R satisfying X∪Y ⊆ R.
When the arithmetic used for normalization and rational strong closure is exact, including unbounded rational-bound profiles, R shall be the least octagonal enclosure of X∪Y. For each admitted octagonal normal a, its finite support shall then be max(supx ∈ Xa⋅x, supy ∈ Ya⋅y), with the doubled unary encoding and unbounded supports interpreted as in 🔗 1. Octagonal values, numerical profiles and valid use. When arithmetic rounds, a less precise containing octagon shall be permitted. An integer boundary type alone shall not imply exact rational strong closure, because half-sums can be inexact.
Self-union and union with an empty operand shall retain their mathematical identity meanings; union with universe shall give universe. These cases shall preserve the real carrier even for integral bound storage.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
3. Certified real set-theoretic union of octagonal values PPL-SPEC-001173 upper_bound_assign_if_exact(y) shall return true only when it replaces the receiver by the exact real union X∪Y of the entry sets. On false, the receiver's represented set shall remain X; internal normalization of either argument may still occur.
With mpq_class boundaries, the decision shall be complete: it shall return true if and only if X∪Y is an octagonal set. Other supported profiles may return false when rounded computation cannot certify exactness, even when the union is octagonal. This includes rational half-sum rounding with mpz_class boundaries. Such an inconclusive false shall not assert that a non-octagonal union has been found.
Successful union shall retain every real point of either input, rather than only its integer points. No success result may fill a missing real point.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
4. Exact integer-point unions of octagonal values PPL-SPEC-001174 integer_upper_bound_assign_if_exact(y) shall be available when T is a supported integral boundary type. Let I = (X∪Y)∩Zn for the entry real sets X, Y, and let H(I) be their integer upper bound: the smallest rational octagonal set containing I. The call shall return true if and only if H(I)∩Zn = I; on true it shall replace the receiver by that integer upper bound. On false it shall preserve the receiver's entry represented set. Cache normalization shall not count as a set change.
Exactness shall concern integer valuations. The result may include nonintegral points absent from both operands and may remove fractional portions of the entry real sets. For example, the integer union of real singletons at zero and one shall have integer upper bound [0, 1]. A nonempty half-integral real input may contain no integer point; if neither operand has an integer point, the integer upper bound shall be empty and the decision shall be true. Integer storage shall continue to have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
5. Least closed octagonal abstraction of subtraction PPL-SPEC-001175 difference_assign(y) shall replace the receiver by the least closed target-profile octagonal enclosure of the concrete real difference X⧵Y of the entry sets. It shall retain every point of X absent from Y. Its precision shall concern the whole relational sets.
For each encoded octagonal normal, the result shall impose the strongest bound expressible in the target profile that is valid on the concrete difference. Finite support suprema shall be computed with their exact boundary meaning before outward target rounding, including doubled unary bounds. Closing a strict complement may retain boundary points removed by subtraction, and a convex enclosure may fill a gap between surviving pieces. For example, removing x0 + x1 = 0 from 0 ≤ x0 + x1 ≤ 2 shall leave the same closed octagonal enclosure. The result shall not be required to be disjoint from Y.
Self-subtraction and subtraction of universe shall give empty. Subtraction of empty shall preserve the entry set. An empty receiver shall remain empty.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
6. Meet-preserving octagonal simplification in a context PPL-SPEC-001176 simplify_using_context_assign(y) shall replace entry receiver X by an octagonal simplification R using entry context Y, satisfying
R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. An unchanged receiver shall be an admitted result; strict progress shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true return need not certify nonemptiness.
For self-aliasing, the context shall mean the entry receiver, so the meet-preservation equation shall be R∩X = X. A distinct context shall preserve its entry denotation. Empty/disjoint contexts, empty receivers and zero-dimensional values shall be admitted.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
-
Incoming link from: 1. Unrestricted octagonal coordinate extension1
7. Ordered Cartesian concatenation of octagonal values PPL-SPEC-001181 concatenate_assign(other) shall replace an entry value X ⊆ ℝn with exactly X×Y ⊆ ℝn + m, where Y ⊆ ℝm is other's entry value. The first n coordinates shall belong to X, followed by Y's coordinates in their original order. Cross-block consequences shall follow from Cartesian independence, rather than identifying coordinates with equal indices in the two operands.
An empty operand shall give empty in dimension n + m. Zero-dimensional universe shall be an identity on either side; zero-dimensional empty shall be an annihilator while retaining the sum dimension. Self concatenation shall use two independent copies of the entry value. A requested sum dimension above max_space_dimension() shall throw std::length_error.
The supported profiles, real carrier, runtime initialization, numerical range and rounding, FPU, resource and synchronization prerequisites of [LINK: PPL-SPEC-001146] shall apply. A distinct other shall retain its represented entry value; logically const cache normalization may change its storage. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
-
Incoming link from: 2. Compatible octagonal record loading and failure state1
5. Octagonal_Shape<T> internal status signed-keyword loading and rejection PPL-SPEC-001621 ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Octagonal_Shape
internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Octagonal_Shape
internal status consistency predicate . A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.The loader shall retain its preceding word until parsed fields update it. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Octagonal_Shape
internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 2. Compatible octagonal record loading and failure state. -
1. Reloadable octagonal record export PPL-SPEC-001227 For a valid admitted source of ambient dimension n, ascii_dump(stream) shall write the literal "space_dim ", the ambient dimension and a newline. It shall then write the three stored status fields in ZE, EM, SC order, with each keyword prefixed by + or -. One space shall separate the first two fields, two spaces shall separate the last two fields, and one space and a newline shall follow the last field.
The following payload shall be the pseudo-triangular matrix record of 🔗 1. Pseudo-triangular mathematical-value records, with matrix space dimension n. It shall contain its dimension line followed by its physical rows in their stored order, including diagonal positive-infinity sentinels. A zero-dimensional matrix shall have no coefficient rows. The status fields shall retain the stored zero-dimension, emptiness and strong-closure conventions; export shall not require first classifying emptiness or computing strong closure.
Coefficient output shall retain the selected mathematical-value formatting of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration, including exact finite native values independently of caller precision. Under compatible record, numeric-profile, locale and version conventions, the complete record shall retain enough information for 🔗 2. Compatible octagonal record loading and failure state to restore the same mathematical set and ambient dimension. Native object bytes and a floating zero sign shall not be part of this mathematical round-trip guarantee.
Export shall preserve the source set, dimension, stored status, matrix and ownership. The no-argument ascii_dump() shall send the same record to the current std::cerr. Output failure shall follow the stream's selected state and exception behavior, retaining partial output without certifying successful delivery.
The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.
The internal status contract shall follow 🔗 4. Octagonal_Shape
internal status signed-keyword export . -
2. Compatible octagonal record loading and failure state PPL-SPEC-001228 For a complete valid record of 🔗 1. Reloadable octagonal record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any live valid receiver by the recorded ambient dimension and mathematical set. Previous receiver dimensions, emptiness and strong-closure status shall not affect successful restoration. The recorded status fields shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.
The decoded ambient dimension shall not exceed max_space_dimension(), including for empty records. A greater value shall return false before the matrix payload is processed.
A missing or incorrect space_dim keyword, rejected ambient dimension, missing or malformed required status word, or truncated or rejected matrix payload shall return false when the component extractions return normally. Each status word shall have its expected keyword and a + or - prefix. The loaded matrix space dimension shall equal the recorded ambient dimension; a mismatch shall return false even for empty or zero-dimensional records. Independently of the ambient dimension, an unsupported nested matrix dimension shall return false before matrix resizing or storage-size arithmetic, as specified by 🔗 2. Exact value-record loading and rejection states. Exact scalar acceptance and numerical-payload rejection shall retain that contract. Stream masks, numerical policies and recoverable resource failures shall retain their own exception channels.
Successful restoration assumes a trusted, complete and dump-compatible record. After repair of any legacy rounded cache, the loaded representation shall satisfy the shape invariant. A detected inconsistency shall return false in every build. Semantic queries or further shape operations require a complete valid representation.
For rounded or bounded coefficient profiles, a loaded nonempty status that certifies strong closure may have its feasibility rechecked against the stored bounds. An inconsistent bound system may then be classified empty; otherwise its closure certification may be restored. This compatibility repair shall preserve the stored matrix's exact represented set and ambient dimension; it shall not promise canonical or maximally precise rounded closure.
A false return or exception may leave replaced dimension or status fields and a partially loaded matrix. It shall not promise rollback or a complete mathematical value. The receiver shall retain safely destructible ownership and may be replaced by a complete valid assignment before semantic queries or operations requiring a valid shape. Consumed input shall not be restored, and the library shall not take ownership of the stream.
The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Discarded owned temporaries shall be released on reported failure.
The internal status contract shall follow 🔗 5. Octagonal_Shape
internal status signed-keyword loading and rejection . -
3. Octagonal representation invariant query PPL-SPEC-001229 For a live, well-owned and safely indexable representation whose selected scalar operations are admitted, OK() shall check the pseudo-triangular matrix's storage and coefficient validity and the status-condition compatibility. The matrix space dimension shall equal the ambient dimension, including empty and zero-dimensional values. A violation of these checked conditions shall return false.
Once those conditions hold, certified empty representations shall retain their inactive-geometric-data admission, and zero-dimensional representations shall require no coefficient-geometry checks. A positive-dimensional nonempty representation shall reject a stored negative-infinite bound or a diagonal entry other than positive infinity.
For an unbounded coefficient base whose numeric traits declare exact arithmetic, certified strong closure shall be checked against matrix recomputation. For every exact coefficient base, including bounded integer storage, certified strong closure shall satisfy the native strong-coherence inequalities. The selected extended arithmetic, including its rounding and saturation, shall retain the prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use. Bounded saturating closure shall not be required to pass an exact fixed-point test. Floating coefficient bases shall not be required to pass an exact fixed-point or exact strong-coherence test merely because their rounded closure is certified. Passing the applicable checks shall return true.
The query shall preserve the receiver's represented set, ambient dimension, stored status, matrix and ownership. It may copy matrices and recompute derived data in temporary objects; resource and numerical exceptions may propagate through their selected channels. Debug builds may emit invariant-failure diagnostics to std::cerr without a fixed wording. Discarded owned temporaries shall be released.
A true result shall not be an emptiness, semantic equality or minimal-storage answer. This query shall not be a corruption scanner for arbitrary pointers, broken object lifetimes or non-indexable fabricated storage. The numerical runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
The internal status contract shall follow 🔗 3. Octagonal_Shape
internal status consistency predicate . -
Incoming links from: 10. Native finite affine interval congruence classification 1. Rational affine image of one coordinate 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image 4. Single-coordinate generalized affine preimage 5. Expression-left generalized affine image 6. Expression-left generalized affine preimage 7. Single-coordinate bounded affine image 8. Single-coordinate bounded affine preimage 1. Default octagonal stop points 2. Threshold octagonal extrapolation and precision-sensitive tokens 2. Threshold octagonal extrapolation and precision-sensitive tokens 3. Semantic octagonal widening and default widening alias 3. Semantic octagonal widening and default widening alias 4. Limited semantic octagonal extrapolation 5. Octagonal narrowing and descending operand order 6. Limited threshold octagonal extrapolation 1. Closed octagonal support hull of geometric generators 1. Closed octagonal support hull of geometric generators 2. Complexity-sensitive octagonal conversion from polyhedra 3. Best octagonal enclosure of Cartesian boxes 3. Best octagonal enclosure of Cartesian boxes 4. Best octagonal enclosure of rational grids 4. Best octagonal enclosure of rational grids 4. Best octagonal enclosure of rational grids 5. Best octagonal enclosure of bounded-difference shapes 5. Best octagonal enclosure of bounded-difference shapes 1. Unrestricted octagonal coordinate extension 2. Zero-fixed octagonal coordinate extension 3. Existential removal of selected octagonal coordinates 4. Existential removal of trailing octagonal coordinates 5. Injective partial remapping of octagonal coordinates 6. Octagonal coordinate expansion by independent fibers 6. Octagonal coordinate expansion by independent fibers 7. Alternative-coordinate folding of octagonal values 7. Alternative-coordinate folding of octagonal values 8. Dimension-preserving forgetting of octagonal coordinates 1. Human-readable octagonal presentation 2. Owned octagonal memory accounting 1. Octagonal distance normalization, boundaries and workspaces 1. Octagonal distance normalization, boundaries and workspaces 1. Octagonal time evolution by nonnegative rates 2. Integer-point restriction on every octagonal coordinate 3. Selected-coordinate integer restriction of octagonal values 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 5. Topological closure identity for octagonal values 1. Export of octagonal unary constraints through a destination protocol 1. Native interval-affine image 2. Conservative interval-linear-form inequality refinement 3. Generalized interval-linear-form comparisons 4. Refinement of a floating interval abstract store 1. Addition of supported octagonal constraints 2. Addition of supported octagonal congruences 3. Conservative refinement by linear constraints 4. Conservative refinement by congruences 4. Conservative refinement by congruences 1. Exact intersection of compatible octagonal values 2. Conservative and exact-arithmetic octagonal upper bounds 2. Conservative and exact-arithmetic octagonal upper bounds 3. Certified real set-theoretic union of octagonal values 4. Exact integer-point unions of octagonal values 4. Exact integer-point unions of octagonal values 5. Least closed octagonal abstraction of subtraction 6. Meet-preserving octagonal simplification in a context 1. Reloadable octagonal record export 2. Compatible octagonal record loading and failure state 3. Octagonal representation invariant query 3. Octagonal representation invariant query 2. Dimensioned empty and universe octagonal construction 3. Owned octagonal copying, assignment and cleanup 4. Outward conversion between octagonal coefficient profiles 5. Whole octagonal value exchange 6. Octagonal construction from supported constraints 7. Octagonal construction from supported congruences 8. Ambient and affine dimension of octagonal values 9. Owned constraint and affine-equality exports of octagonal values 10. Ordinary classification of octagonal values 11. Octagonal set relations, equality and compatible hashes 12. Relations between octagonal values and linear constraints 13. Relations between octagonal values and linear congruences 14. Subsumption of geometric generators by octagonal values 15. Affine boundedness, extrema and witnesses on octagonal values 16. Constant affine values and zero frequency on octagonal sets83
1. Octagonal values, numerical profiles and valid use PPL-SPEC-001146 Octagonal_Shape<T> shall represent a topologically closed subset of Rn by a finite conjunction of unary inequalities ±xi ≤ c and binary inequalities sixi + sjxj ≤ c, where i ≠ j and si, sj ∈ { − 1, 1}. Empty and universe shall be distinct in every supported ambient dimension. Coordinates absent from all restrictions shall remain free.
coefficient_type_base shall be T. Supported native integer, supported native floating, GMP integer and GMP rational bases shall supply the declared extended coefficient_type, including positive infinity and rounding-aware bound arithmetic. A positive-infinite bound shall impose no restriction. Every profile shall retain a real coordinate carrier. Integer bound storage shall allow fractional points, including a unary restriction 2xi ≤ 1 and a singleton xi = 1 ⁄ 2.
Strong closure and reduction shall preserve the represented real set. With unbounded exact rational arithmetic, strong closure shall expose all implied octagonal bounds. Rounded or saturating sums and divisions, including halving an odd integer during strong closure, shall not imply exact canonical, idempotent or maximally precise closure. Unbounded integer storage shall not by itself qualify as exact rational strong-closure arithmetic. An outward finite approximation shall not exclude source points satisfying the admitted constraint.
Objects and supplied descriptors shall be live, valid and externally synchronized. Coordinate identities and reserved dimension indications shall follow 🔗 1. Coordinate type and reserved dimension index. Descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply where used. Native floating operations shall require configured support and their declared initialized rounding environment. Finite operands, intermediate arithmetic and output descriptor coefficients shall meet the selected numerical facilities' range, rounding and resource prerequisites. A public operation shall not create an intermediate that violates the numerical preconditions it selects for admitted input. Uses that may update an object's caches shall not race with another use of that object.
-
2. Dimensioned empty and universe octagonal construction PPL-SPEC-001147 Octagonal_Shape(d,kind) shall construct EMPTY or UNIVERSE in ambient dimension d as selected by kind. Default construction shall produce zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none.
max_space_dimension() shall report the selected profile's structural coordinate limit. A requested dimension above that limit shall throw std::length_error before allocating the corresponding matrix storage, including requests whose doubled signed-node count would overflow the dimension type. The reported limit shall not promise that actual resources exist for every dimension below it. Failed construction shall release the resources acquired by the incomplete object.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
3. Owned octagonal copying, assignment and cleanup PPL-SPEC-001148 Ordinary copying shall construct an independent shape with the source's represented set and ambient dimension. Assignment shall replace the receiver's set and dimension with the source's, including different dimensions, and return a reference to the receiver. Self-assignment shall preserve the represented value. Independent source or target mutation and source destruction shall not alter the other owned value.
The three declared complexity values shall not change ordinary copying. Destruction shall release owned resources exactly once. Failed construction shall release resources acquired by the incomplete object. Failed assignment shall preserve the ownership required for safe destruction; rollback of the entry value shall not be required.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
4. Outward conversion between octagonal coefficient profiles PPL-SPEC-001149 Construction from Octagonal_Shape<U> with another supported coefficient base shall preserve the source dimension and produce an independently owned set containing every source point. Finite signed-node bounds selected for conversion shall be converted outward; exactly representable values shall retain their values and positive infinity shall remain unrestricted. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const strong closure while preserving its represented set. Each declared complexity value shall give the same numerical conversion. Exact representability of the converted entries shall not imply that later sums or half-sums are exact in the destination profile. Source and destination mutation/destruction shall retain independent ownership. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
5. Whole octagonal value exchange PPL-SPEC-001150 m_swap and free swap shall exchange complete represented values and ambient dimensions, including different dimensions and empty/universe values. Owned matrix storage and cache metadata shall remain associated with the exchanged value. A self-swap shall preserve the value. Neither operation shall require coordinate compatibility, numerical reapproximation or a copy of the represented constraints.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
Incoming link from: 7. Octagonal construction from supported congruences1
6. Octagonal construction from supported constraints PPL-SPEC-001151 Construction from Constraint_System shall inherit its ambient dimension and describe the conjunction of its supported constraints, rounded outward where required by the coefficient profile. Supported nonconstant rows shall be weak inequalities or equalities with one nonzero coordinate coefficient, or two nonzero coordinate coefficients of equal absolute magnitude.
Normalization shall preserve the signs of both coordinates. For distinct coordinates, a(sixi + sjxj) ≤ b, with a > 0, shall use an outward approximation of b ⁄ a. Unary storage shall account for its doubled-coordinate encoding, so axi ≤ b shall use an outward approximation of 2b ⁄ a before interpreting the unary bound. Equality shall impose both corresponding weak inequalities. Exact representable normalized bounds shall retain their values. This shall give the optimal supported primitive bound in the selected profile; it shall not imply exact rational closure in a rounded profile.
Tautological rows shall impose no restriction; inconsistent rows shall make the represented conjunction empty. These constant-row meanings shall also apply to strict constant rows. A nontrivial strict row or non-octagonal row shall throw std::invalid_argument rather than silently being accepted as an exact supported descriptor. An empty constraint system shall give universe in the system's ambient dimension. The supplied system shall be preserved. can_recycle_constraint_systems() shall return false. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
7. Octagonal construction from supported congruences PPL-SPEC-001152 Construction from Congruence_System shall inherit its ambient dimension. A modulus-zero row shall be treated as its equality and shall use the supported signed unary/binary syntax and outward normalization in 🔗 6. Octagonal construction from supported constraints. Tautological congruences shall impose no restriction; inconsistent ones shall make the result empty. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument. Periodic solutions shall not be replaced by an integer-coordinate interpretation of the convex real carrier.
An empty congruence system shall produce universe in its ambient dimension. The source system shall be preserved. can_recycle_congruence_systems() shall return false. Failed construction shall release acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
-
8. Ambient and affine dimension of octagonal values PPL-SPEC-001153 space_dimension() shall return the ambient coordinate count independently of emptiness and affine restrictions. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented real set. Both zero-dimensional values shall have affine dimension zero.
Implied unary equalities, signed-sum and signed-difference equalities and redundant equality chains shall contribute according to their independent rank. Rounded graph bounds shall not certify an equality that the represented set does not satisfy. Fractional fixed coordinates shall count as fixed even under integer storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
9. Owned constraint and affine-equality exports of octagonal values PPL-SPEC-001154 constraints() shall return an owned constraint system of the same ambient dimension whose conjunction equals the represented real set. minimized_constraints() shall additionally give an irredundant defining conjunction: removing any returned nontrivial row shall enlarge that set. A particular row order, equality orientation or unique minimal cardinality shall not be required. Stored unary halves and all finite signed bounds shall retain their exact mathematical values in the exported descriptors.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, with the same ambient and affine dimensions. Their nonempty equality system shall form an independent basis of its affine restrictions. They shall not replace inequalities by periodic conditions. Empty shall export inconsistency; zero-dimensional universe shall export a tautological conjunction.
All returned systems shall remain usable after source mutation or destruction. Source normalization shall preserve its represented set, including for rounded and integer half-sum profiles. Export coefficients shall meet the configured Coefficient output range prerequisites.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
10. Ordinary classification of octagonal values PPL-SPEC-001155 The ordinary classification calls shall decide their named mathematical properties of the represented real set: emptiness, universe, discreteness, boundedness, topological closure and existence of an integer point. Every octagonal shape shall be topologically closed. A nonempty convex shape shall be discrete exactly when it is a singleton. Empty shall be discrete and bounded and shall contain no integer point. Zero-dimensional universe shall be nonempty, universe, bounded and discrete and contain its integer empty tuple.
contains_integer_point() shall decide intersection with Zn, independently of the stored coefficient type. A nonempty half-integral singleton shall therefore have no integer point, including when its doubled unary bounds are stored as integers.
constrains(var) shall report whether that coordinate is restricted, including by a binary relation: the set is unrestricted in that coordinate exactly when it is invariant under every translation along the coordinate axis. Empty shall constrain every valid coordinate. A variable beyond the ambient dimension shall throw std::invalid_argument.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
11. Octagonal set relations, equality and compatible hashes PPL-SPEC-001156 For compatible dimensions, contains(y) shall be true exactly when every point of y belongs to the receiver, strictly_contains(y) exactly for proper set containment, and is_disjoint_from(y) exactly when their intersection is empty. These calls shall throw std::invalid_argument when the ambient dimensions differ. A nonempty set shall strictly contain empty, including in zero dimensions; equal sets shall never strictly contain one another.
Free equality shall compare ambient dimension and the represented set, and inequality shall be its logical negation. Different dimensions shall compare unequal without throwing. Equal values shall have equal hash_code() results; unequal values may collide. Mathematical equality shall not depend on row insertion order or the existence of one canonical rounded matrix.
A stored bound of the inner octagon that is at least as tight as the corresponding outer bound certifies that inequality. If rounded or saturated closure leaves a weaker bound, decide the inequality using the exact support of the stored inner octagon, including the strong-coherence half-sum.
Both operands' values and dimensions shall be preserved. The same owned shape may be supplied on both sides; containment/equality shall then be true and proper containment false, while self-disjointness shall mean emptiness.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
12. Relations between octagonal values and linear constraints PPL-SPEC-001157 relation_with(c) shall return the exact Poly_Con_Relation flags of the represented set relative to c under 🔗 1. Constraint-relation assertion values and named factories. Inclusion shall mean every source point satisfies the row, disjointness that none does, and saturation that its affine expression is zero throughout the source. Strict intersection shall retain its declared logical meaning. Empty and constant-row cases shall retain the simultaneous flags implied by those meanings.
The supplied linear row need not have octagonal syntax and may be weak, strict or an equality. Its dimension shall not exceed the receiver's; otherwise the call shall throw std::invalid_argument. The descriptor and source value shall be preserved. Rounded outer extrema alone shall not justify a relation flag that is false of the represented set.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
13. Relations between octagonal values and linear congruences PPL-SPEC-001158 relation_with(cg) shall classify the represented real set using Poly_Con_Relation. Modulus zero shall have equality meaning. For a proper modulus, inclusion shall mean every source point satisfies the periodic condition; disjointness shall mean none does. For a nonempty source, saturation shall mean that its affine image is one value in the eligible modulus lattice, including a nonzero lattice value. Other overlapping cases shall use the declared strict-intersection flag. Empty shall retain its set-theoretic simultaneous flags.
General admitted affine congruences shall be queryable even when their solution sets cannot be represented by an octagonal shape. The call shall throw std::invalid_argument when the descriptor dimension exceeds the source's. The descriptor and represented set shall be preserved. The decision shall use real convex points rather than an integer-only reinterpretation of integer bound storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
14. Subsumption of geometric generators by octagonal values PPL-SPEC-001159 relation_with(g) shall report Poly_Gen_Relation::subsumes() exactly when the represented set subsumes g under 🔗 6. Generator-relation assertion values and named factories, and nothing() otherwise. Points and closure points shall use their exact rational coordinates; their membership tests shall agree because the domain is topologically closed. A ray direction r shall satisfy a⋅r ≤ 0 for every defining inequality a⋅x ≤ b; a line direction shall satisfy the corresponding equalities a⋅r = 0.
Empty shall subsume no generator. A lower-dimensional generator shall have zero trailing coordinates. A generator exceeding the source dimension shall throw std::invalid_argument. The descriptor and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
15. Affine boundedness, extrema and witnesses on octagonal values PPL-SPEC-001160 bounds_from_above and bounds_from_below shall decide whether the supplied affine expression has a finite corresponding bound on the represented set. Empty shall bound every admitted expression in both directions; zero-dimensional universe shall bound every admitted constant. An expression dimension exceeding the receiver's shall cause these calls and all extrema overloads to throw std::invalid_argument.
For a nonempty source with exact unbounded rational strong-closure arithmetic, maximization/minimization shall succeed exactly when the requested extremum is finite and return its exact rational value. Every finite extremum of a closed polyhedral octagonal set shall be attained.
When strong-closure arithmetic rounds, saturates or overflows, the overload without a witness may use an outward closed-table bound for an octagonal affine objective: a returned upper value shall be at least the actual supremum and a lower value at most the actual infimum. Halving odd integer bounds shall count as rounded arithmetic. For a no-witness extremum call, overflow may cause false when a finite closed-table bound cannot be obtained. Non-octagonal affine objectives shall use exact optimization of the represented constraints rather than treating a rounded outer estimate as an exact extremum.
On successful witness overloads, the returned rational value shall be the exact extremum of the represented source, and g shall be an ordinary point in that set attaining it. All coordinates of the witness shall satisfy the source constraints. The attainment Boolean shall concern the actual extremum, not certify that an approximate numerical bound is attained. An ordinary successful call on these closed sets shall set it to true. On false, all supplied scalar outputs, the Boolean and any supplied witness shall retain their entry values. Constant expressions and zero-dimensional cases shall retain their exact meanings.
Numerator and denominator output objects shall be distinct and satisfy the configured Coefficient range prerequisites. A successful rational output shall have a positive denominator. The supplied expression and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
16. Constant affine values and zero frequency on octagonal sets PPL-SPEC-001161 frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty represented set assigns one unique real value to expr. On success, fn/fd shall be 0/1 and vn/vd shall equal that exact constant, with a positive denominator. A nonconstant or empty source shall return false and leave all four scalar outputs unchanged. Constant expressions and zero-dimensional universe shall obey the same rule.
Signed equality substitution and fractional fixed coordinates shall retain their mathematical values. Inexact closure bounds shall not establish a constant expression unless it truly is constant on the represented set. The call shall throw std::invalid_argument if the expression dimension exceeds the source dimension. The four scalar output objects shall be pairwise distinct and satisfy their configured Coefficient range prerequisites. The expression and represented set shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
-
Incoming links from: 1. Octagonal distance normalization, boundaries and workspaces 2. Sized construction, destruction and the supported row bound 10. Row-cursor binding, copying and compatible const conversion 1. Pseudo-triangular mathematical-value records 2. Exact value-record loading and rejection states 6. Rectilinear distance of physical octagonal entry arrays 7. Euclidean distance of physical octagonal entry arrays 8. Maximum-coordinate distance of physical octagonal entry arrays8
1. Pseudo-triangular matrix values and physical coordinates PPL-SPEC-000771 OR_Matrix<T> shall own a pseudo-triangular array with a nonnegative space dimension n, exactly 2n physical rows, and row width w(k) = 2(⌊k ⁄ 2⌋ + 1) for 0 ≤ k < 2n. Its stored entries shall be exactly the pairs (k, j) with 0 ≤ j < w(k); their total count shall be 2n(n + 1). Coordinate identity and value shall be independent of spare capacity. Physical access shall require these coordinates; entries outside this pseudo-triangle shall not be supplied by the raw storage interface.
The selected T shall satisfy 🔗 1. Extended-number row meaning and construction states for the element operations actually used, including its arithmetic, initialization, resource and synchronization prerequisites. Admitted dimensions and cursor displacements shall fit the advertised row bound and all selected size, offset, capacity and signed-displacement calculations. Borrowed objects shall require their coefficients to remain alive and unmoved. Only successful operations on valid objects shall reestablish the full matrix value; reported failures shall retain 🔗 20. Incomplete-owner cleanup and mutation failure states.
-
Incoming link from: 10. Integer square root for capacity calculations1
2. Sized construction, destruction and the supported row bound PPL-SPEC-000772 Construction with admitted space dimension n shall create the shape of 🔗 1. Pseudo-triangular matrix values and physical coordinates and initialize every stored entry to positive infinity, including every stored diagonal entry. Zero dimension shall create an empty owning matrix with no rows or logical entries. No public default constructor shall be supplied. Destruction shall release the owned storage and each physically live coefficient exactly once. Failed construction shall retain 🔗 20. Incomplete-owner cleanup and mutation failure states.
max_num_rows() shall report an even supported physical row-count bound. For admitted dimensions, twice the dimension shall not exceed that bound, and the corresponding stored count shall fit the supported DB_Row<T> size. The bound shall not guarantee available resources for constructing an object of that size.
-
3. Independent ordinary and rvalue copy construction PPL-SPEC-000773 Ordinary copy construction shall create the same space dimension and stored entry values in independently owned coefficients. It shall preserve its source. Mutation or destruction of either completed owner shall not change the other owner. Physical spare capacity need not be copied exactly. An rvalue source shall retain this ordinary copying contract; no distinct move constructor shall be required. Empty matrices shall copy as empty matrices. Failure shall preserve the source and release the incomplete target under 🔗 20. Incomplete-owner cleanup and mutation failure states.
-
4. Pointwise upward representation conversion PPL-SPEC-000774 Cross-element-type construction shall create an independently owned matrix of the source space dimension. Each physical coordinate shall follow the upward conversion of 🔗 7. Pointwise upward conversion of extended-number rows: finite results shall bound the exact source upward, exactly representable values shall remain exact, and supported extended values shall retain their meanings. The source shall remain unchanged. Empty sources shall produce empty targets. Selected source/target profiles shall admit the conversions and all required intermediates. Failure shall retain 🔗 20. Incomplete-owner cleanup and mutation failure states.
-
Incoming link from: 20. Incomplete-owner cleanup and mutation failure states1
5. Value assignment and assignment failure preservation PPL-SPEC-000775 Successful assignment shall replace the target by the source space dimension and independently owned physical entry values, preserve its source, and return the target wrapper. Self-assignment shall preserve its dimension and values; it need not preserve allocation addresses or spare capacity. Rvalue assignment shall retain the ordinary copying contract. A supported recoverable allocation or coefficient-copy failure while preparing the replacement shall preserve the completed target and source values, release the incomplete replacement, and permit retry. Successful replacement shall invalidate borrows to the replaced storage.
-
6. Whole-owner swap and borrowed coefficient identity PPL-SPEC-000776 Member and free swap shall exchange the entire owning storage, space dimension and capacity metadata. They shall preserve every entry value and coordinate within its transferred owner without copying, allocating or destroying coefficients. Existing coefficient references and copied row views shall keep referring to the same live coefficients now owned by the other matrix. Self-swap shall preserve the owner. Callers shall associate any retained cursor with the transferred shape and storage rather than reuse it with the other allocation.
-
7. Dimension queries, row-width formula and exact array equality PPL-SPEC-000777 space_dimension() shall return the current characteristic parameter n; num_rows() shall return 2n. row_size(k) shall return 2(⌊k ⁄ 2⌋ + 1) whenever its index and result arithmetic are representable. The formula may also be queried for a count-only endpoint without dereferencing it.
Equality shall hold exactly when both matrices have the same space dimension and equal values at every stored coordinate. Inequality shall be its negation. Different dimensions shall compare unequal regardless of their common-prefix entries. Equality shall not modify either input.
-
8. Borrowing row-view construction, conversion and lifetime PPL-SPEC-000778 A row_reference_type shall be a value view borrowing one physical row of mutable T coefficients. const_row_reference_type shall borrow const coefficients. Copy construction and ordinary assignment shall copy the binding without copying coefficients or allocating. The declared compatible converting constructor shall permit mutable-to- const view construction and its use for compatible assignment. View destruction shall leave the coefficients unchanged.
A default-constructed view shall be unbound and shall require assignment of a valid view before coefficient access. A bound copied view shall remain independent of the cursor cache from which it was obtained, while the borrowed coefficients remain alive and unmoved. Constness of the view wrapper alone shall preserve its selected coefficient type.
-
9. Coordinate subscripting through borrowing row values PPL-SPEC-000779 Matrix subscripting at live physical row k shall return a borrowing value view of that row. Subscript j on a bound view shall return the actual coefficient reference at (k, j) and require 0 ≤ j < w(k). Mutable coefficient views shall permit updates through const view wrappers; const coefficient views shall provide read-only references. The operations shall not copy or allocate coefficients, and views shall retain 🔗 8. Borrowing row-view construction, conversion and lifetime.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
-
10. Row-cursor binding, copying and compatible const conversion PPL-SPEC-000780 A storage-backed row cursor constructed from the first coefficient of a live nonempty matrix shall denote row zero. Count-only construction shall record the supplied row count for comparisons and index/width queries without binding matrix storage; such a cursor shall not be navigated or dereferenced. A count-only matrix endpoint shall have the matrix's current physical row count.
Copy construction and assignment shall reproduce the position and a separate cached row view without coefficient copying or allocation. Compatible mutable-to-const construction and assignment shall be supported. All storage-backed cursors shall retain the single-allocation lifetime and valid-position conditions of 🔗 1. Pseudo-triangular matrix values and physical coordinates.
Borrowing iterator constructors shall reject temporary backing owners. Copying temporary iterator values shall remain admitted when their backing storage remains alive.
-
11. Row-cursor aliases, cached views and position queries PPL-SPEC-000781 Row-cursor aliases shall retain the declared types below. The category shall support the library's member-operation dispatch; these declarations shall not promise the complete standard-library iterator requirements. In particular, std::reverse_iterator shall not be an admitted adapter for this cached-reference cursor.
At a live position, dereference and arrow shall borrow the cached row view inside that cursor. The returned reference/pointer shall require that cursor to remain alive and unchanged. Copying the view by value shall create an independent borrowing value under 🔗 8. Borrowing row-view construction, conversion and lifetime, including a copy made within the full expression of a temporary cursor. Cursor index() shall return its row index; row_size() shall return the width formula for that index. Endpoints shall support these queries without coefficient access.
-
12. Row-cursor prefix and postfix traversal PPL-SPEC-000782 For storage-backed cursors, increment and decrement shall change the row index by exactly one and bind the corresponding physical row or past-the-end position. Navigation shall stay in the same matrix's closed begin/end position interval. Prefix shall return the updated cursor by reference; postfix shall return an independent copy of the old cursor. Returned old live positions shall remain usable while their coefficients remain live and unmoved. Past-the-end shall not be dereferenced. Both even/odd row-width transitions shall retain exact coordinate associations.
-
13. Signed and unsigned row offsets and indexed view values PPL-SPEC-000783 For a storage-backed cursor at row index k, admitted offset m shall produce index k + m in the same matrix's closed begin/end interval. Signed addition/subtraction and the declared unsigned addition overloads shall agree on common nonnegative offsets. Compound updates shall return the modified cursor; value-returning operations shall preserve their source. Selected signed displacement calculations, including negation, shall be representable.
Indexed cursor access shall require the offset position to be a live row and return that row's borrowing view by value. This value shall remain independent of the source cursor's cached view and lifetime, subject to the coefficient lifetime conditions.
-
14. Row-position comparison and signed differences PPL-SPEC-000784 Comparison and difference shall require positions of the same live matrix, using compatible const conversion where required by the declared member signatures. The six comparisons shall have exactly the ordering of the row indices. Cursor difference shall return the mathematical signed difference of the two indices when representable in difference_type. Empty count-only begin/end positions may be compared and subtracted without navigating or dereferencing them. No coefficient value shall affect these results.
-
15. Mutable and const row-range endpoints PPL-SPEC-000785 For a nonempty matrix, row begin/end shall return storage-backed cursors at indices zero and num_rows(). They shall delimit exactly the live physical rows and permit supported forward/backward member navigation. For an empty matrix, both shall return equal count-only endpoints of index zero; they shall not be navigated or dereferenced. Const overloads shall return read-only coefficient cursors. Shape changes shall require obtaining new endpoints before traversing the new shape; coefficient borrows shall retain their own lifetime rules.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
-
16. Flattened element ranges and physical row-major order PPL-SPEC-000786 Element begin/end shall delimit exactly the live stored coefficients in increasing physical row order and increasing column order within each row. Mutable and const overloads shall retain the corresponding DB_Row<T> pointer-iterator contracts of 🔗 5. Row sizes, supported limits, coefficient ranges and equality and 🔗 1. Pointer-adapter types and borrowed storage. A zero-dimensional matrix shall have an empty valid element range. For every live coordinate, the flat coefficient reference shall be identical to matrix/row-view subscripting at that coordinate. Shape/owner changes shall retain the actual coefficient lifetime and invalidation rules.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
-
Incoming link from: 19. Discarding resize and valid rebuilt shape1
17. Value-preserving dimension growth PPL-SPEC-000787 grow(new_dim) shall require an admitted dimension no smaller than the current dimension. On success it shall produce the new shape, preserve every old stored coordinate exactly and initialize every newly introduced coordinate to positive infinity. Growth to the current dimension shall preserve the values and existing coefficient objects. Successful growth may replace storage; retained views shall be usable only while their actual coefficients remain alive and unmoved. Reported failure shall retain 🔗 20. Incomplete-owner cleanup and mutation failure states.
-
Incoming link from: 19. Discarding resize and valid rebuilt shape1
18. Dimension shrinkage and complete clearing PPL-SPEC-000788 shrink(new_dim) shall require an admitted dimension no greater than the current dimension. It shall preserve exactly the physical prefix of rows belonging to the new shape, destroy removed logical coefficients, and set the new dimension. Removed values shall not reappear after later successful growth. Equal-dimension shrinkage shall preserve the existing values and coefficient objects.
clear() shall release the old owned storage and replace the matrix by a valid zero-dimensional owning matrix. It shall be safe on an already empty matrix and permit subsequent construction by growth or assignment. Clearing shall invalidate old coefficient borrows.
-
19. Discarding resize and valid rebuilt shape PPL-SPEC-000789 resize_no_copy(new_dim) shall accept every admitted dimension. On success it shall establish the corresponding valid shape. Shrinking shall retain the prefix behavior of 🔗 18. Dimension shrinkage and complete clearing. Equal- dimension calls shall preserve the existing coefficient objects and values. Growing shall initialize all newly introduced coordinates to positive infinity; no old-prefix value preservation shall be required by this interface. A client needing that preservation shall use 🔗 17. Value-preserving dimension growth. Failure shall retain 🔗 20. Incomplete-owner cleanup and mutation failure states.
-
Incoming links from: 1. Pseudo-triangular matrix values and physical coordinates 2. Sized construction, destruction and the supported row bound 3. Independent ordinary and rvalue copy construction 4. Pointwise upward representation conversion 17. Value-preserving dimension growth 19. Discarding resize and valid rebuilt shape6
20. Incomplete-owner cleanup and mutation failure states PPL-SPEC-000790 Failed sized/copy/upward construction shall release storage and destroy every completed coefficient of the incomplete matrix, preserving any source owner. Assignment preparation failure shall retain the stronger value-preserving guarantee of 🔗 5. Value assignment and assignment failure preservation.
A reported recoverable failure during growth or discarding resize may leave a partially extended or partially transferred target without a coherent full matrix shape. Its completed coefficients and owned storage shall remain safely destructible and replaceable by a complete successful assignment or clearing operation. No ordinary matrix access or traversal shall be required before such replacement. A failure before mutation, including failure to allocate replacement backing storage, shall preserve the old completed value. Resources owned by a discarded incomplete replacement shall be released.
These guarantees shall require selected element operations to retain their own documented exceptional states and nonthrowing destruction. They shall not require recovery from fatal GMP allocation failure or caller-precondition violations, or classify reported failure as a successful numerical value.
-
Incoming links from: 1. Reloadable octagonal record export 3. Human-readable physical rows and output channels2
1. Pseudo-triangular mathematical-value records PPL-SPEC-000791 For a valid matrix of admitted finite or positive-infinite coefficients, ascii_dump shall emit its space dimension, a space and a newline, followed by each physical row in 🔗 1. Pseudo-triangular matrix values and physical coordinates order. Each row shall contain its coefficient values in increasing column order, with a space after each coefficient and a newline after the row. A zero-dimensional record shall contain only the dimension line. Coefficient output shall retain 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration for the selected profile; finite native values shall retain their exact mathematical value independently of caller precision. These records shall not promise preservation of native zero signs or object representations.
The matrix shall remain unchanged. Dumping shall not consume following stream data or promise a checksum, a trailing delimiter beyond its own frame, or an interchange guarantee across incompatible scalar profiles. The no-argument form shall write the same record to std::cerr. Stream failures shall retain the stream's selected reporting mechanism.
-
Incoming link from: 2. Compatible octagonal record loading and failure state1
2. Exact value-record loading and rejection states PPL-SPEC-000792 The decoded space dimension shall not exceed max_num_rows()/2. ascii_load shall return false for a greater dimension before resizing, computing its storage size or requesting storage for that extent. For a valid admitted record under 🔗 1. Pseudo-triangular matrix values and physical coordinates, it shall read exactly the physical row-major coefficient count required by its shape. It shall return true only after every coefficient has been accepted exactly by the selected scalar profile and every stored value is finite or positive infinity. True shall establish the specified dimension and values in independently owned coefficients and leave any following frame token available after permitted separating whitespace.
The packed matrix shall be allocated after its coefficient payload has been read. Missing, nonnumeric or negative-signed dimension tokens, truncated or invalid coefficient tokens, negative infinity, NaN and non-exact scalar conversion shall return false through the scalar input's ordinary rejection channel. A rejected or exceptional load may leave a partial target without useful entry values or a coherent old/new dimension promise. Its completed objects shall remain safely destructible, and it may be replaced by a complete successful load or assignment before ordinary value access. Resource/stream exceptions shall retain their selected reporting channel; they shall not be true results. No strong rollback guarantee shall be required. Admitted extents shall retain their normal resource requirements and resource-exception behavior.
-
3. Human-readable physical rows and output channels PPL-SPEC-000793 The stream insertion operator shall write every stored row in physical order, each coefficient followed by a space and each row followed by a newline, and return the supplied stream. It shall omit the space- dimension header used by 🔗 1. Pseudo-triangular mathematical-value records. An empty matrix shall write no row text. Coefficient output shall retain the selected scalar's mathematical output contract. print() shall write that same human- readable representation to std::cerr. Both forms shall preserve the matrix, and stream failure shall follow the selected stream policy.
-
Incoming link from: 2. Owned octagonal memory accounting1
4. Owned backing storage and live-payload memory accounting PPL-SPEC-000794 external_memory_in_bytes() shall report the bytes owned outside the matrix wrapper: the backing row allocation, including its retained capacity and metadata, plus externally owned payload of every physically live coefficient under 🔗 8. Row storage and live-payload memory accounting. It shall not count borrowed views or unrelated allocations. Removing logical entries shall not remove still-retained backing capacity from that count. total_memory_in_bytes() shall equal the external count plus sizeof(*this). Counts shall require supported representable memory arithmetic and the selected coefficient type's own accounting contract.
-
5. Physical-shape and selected-coefficient invariant checking PPL-SPEC-000795 For an otherwise safely inspectable owner, OK() shall accept exactly when its live logical coefficient count matches 2n(n + 1) for its recorded space dimension and its owned DB_Row<T> satisfies 🔗 9. Constructed-row validity checks and diagnostic metadata with the recorded logical size and capacity. This includes each selected coefficient's OK() hook and rejection of NaN. Available extra-debug checks shall retain their configuration scope. A valid empty matrix shall pass.
This checker shall not establish octagonal strong closure, consistency, coherent mirrored constraints or semantic diagonal conventions, and shall not substitute for higher-level finite/positive-infinite operation domains. Callers shall not pass corrupted ownership metadata or read beyond live storage merely to obtain a diagnostic. The checker shall preserve entry values and ownership.
-
Incoming link from: 2. Rectilinear distance of octagonal closed-bound tables1
6. Rectilinear distance of physical octagonal entry arrays PPL-SPEC-000796 With the conditions of 🔗 9. Distance workspace protocol and admissible overlaps, rectilinear distance shall return false on unequal space dimensions without modifying result or workspaces. For equal dimensions it shall return true and assign the requested directed approximation of ∑(k, j) ∈ Dndkj, where Dn is exactly the physical coordinate domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates and each finite dkj is the absolute difference of the entry values on call entry. Equal positive infinities shall contribute zero; exactly one positive infinity at any stored coordinate shall make the distance positive infinity. Empty equal-dimensional matrices shall have distance zero.
Accumulation and result conversion shall retain the selected profile's rounding guarantees: successful upward bounds shall be no smaller than the exact sum and downward bounds no larger. Source entries shall be preserved except where the admitted result output overlaps an entry. Reported numerical/resource failures shall not be true results.
-
Incoming link from: 3. Euclidean distance of octagonal closed-bound tables1
7. Euclidean distance of physical octagonal entry arrays PPL-SPEC-000797 With the conditions of 🔗 9. Distance workspace protocol and admissible overlaps, Euclidean distance shall return false on unequal space dimensions without modifying result or workspaces. For equal dimensions it shall return true and assign the requested directed approximation of √(∑(k, j) ∈ Dnd 2kj), using exactly the physical coordinate domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates and finite absolute entry differences on call entry. Equal positive infinities shall contribute zero; exactly one positive infinity at any stored coordinate shall make the distance positive infinity. Empty equal-dimensional matrices shall have distance zero.
Accumulation, square root and result conversion shall retain the selected profile's directed enclosure guarantees. Rational square-root bounds shall retain 🔗 2. Finite rational square root at the selected irrational precision and the context precision of 🔗 3. Selection and ownership of irrational rational precision, without promising every rational perfect square is exact on the selected grid. Source entries shall be preserved except where the admitted result output overlaps an entry. Reported failures shall not be true results.
-
Incoming link from: 4. Maximum-coordinate distance of octagonal closed-bound tables1
8. Maximum-coordinate distance of physical octagonal entry arrays PPL-SPEC-000798 With the conditions of 🔗 9. Distance workspace protocol and admissible overlaps, maximum-coordinate distance shall return false on unequal space dimensions without changing result or workspaces. For equal dimensions it shall return true and assign the requested directed approximation of max(k, j) ∈ Dndkj, using exactly the physical coordinate domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates and finite absolute entry differences on call entry. Equal positive infinities shall contribute zero; exactly one positive infinity at any stored coordinate shall make the distance positive infinity. Empty equal-dimensional matrices shall have distance zero.
Coordinate difference, maximum and result conversion shall retain the selected profile's directed guarantees. Source entries shall be preserved except where the admitted result output overlaps an entry. Reported numerical/resource failures shall not be true results.
-
9. Distance workspace protocol and admissible overlaps PPL-SPEC-000799 Distance operations shall require valid matrices of admitted finite or positive-infinite entries, supported rounding directions and temporary/ result profiles supporting every required conversion, subtraction, accumulation, square-root or maximum operation. Negative infinity and NaN shall remain outside these metric domains. Every intermediate shall satisfy the selected arithmetic, precision and resource prerequisites. Initialization and synchronization shall retain 🔗 3. Thread initialization, default state and finalization where required.
The three mutable workspaces shall be pairwise distinct and independent of matrix coefficients; their values may be overwritten. The result may be independent, overlap one workspace when types permit, or overlap one live input entry while all workspaces remain independent. Results shall use input values on entry. Identical matrix owners may be passed as both inputs. Dimension mismatch shall precede any result/workspace update. Other failures shall retain the selected numerical policy's permitted output states without a universal rollback guarantee. The generic helper shall apply these conditions with the library's rectilinear, Euclidean or maximum-coordinate specialization for the same temporary type.
-
10. Integer square root for capacity calculations PPL-SPEC-000800 For every dimension_type input x, isqrt shall return the nonnegative integer r satisfying r2 ≤ x < (r + 1)2. The inequalities describe mathematical integers and shall not require overflowing machine multiplication to check their meaning. The helper shall not allocate or require numerical-library initialization. Its result shall be valid for the actual radicand used in the row-bound calculation of 🔗 2. Sized construction, destruction and the supported row bound.
-
Incoming links from: 1. Descriptor absolute-error interval 1. Descriptor absolute-error interval 2. Owned constant construction and evaluation 3. Owned variable lookup and symbolic fallback 4. Owned exact opposite 5. Owned rounding cast 6. Owned floating sum 7. Owned floating difference 8. Owned floating multiplication 9. Owned floating division 10. Owned expression exchange 11. Descriptor-based relative rounding error 12. Box-based affine intervalization13
1. Owned floating-expression protocol and lifetime PPL-SPEC-001000 Floating_Point_Expression<I, Format> shall provide polymorphic numerical linearization and virtual destruction. FP_Linear_Form shall denote Linear_Form<I>, FP_Interval_Abstract_Store shall denote Box<I> and FP_Linear_Form_Abstract_Store shall denote the map from valid coordinate indices to such forms. I shall have a supported native floating-point boundary type and well-formed interval operations under the selected arithmetic/FPU initialization prerequisites. Format shall provide BASE, MANTISSA_BITS and EXPONENT_BIAS describing the analyzed arithmetic; a format-enumeration member shall not be required. The radix shall be an integer at least two, precision shall be positive, and bias/exponent calculations shall stay within their representable descriptor ranges. Custom decimal radices shall remain admitted. Its modeled rounding and underflow behavior shall meet the selected error bounds in 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval.
All expression coordinates and coefficients used in intervalization shall have corresponding intervals in the entry box. The box and every symbolic binding shall soundly describe the same modeled state. A successful linearize() shall enclose all corresponding modeled expression values, including operation rounding. Input entry values shall determine the result, including when the output is a symbolic-store binding. Other input bindings shall remain unchanged. A false result shall not certify an enclosure or promise preservation of the previous output. Allocation, coefficient and custom-node callback exceptions may propagate; live owners and outputs shall remain safely destructible and reusable without whole-operation rollback.
Pointer-taking concrete nodes shall acquire exclusive ownership of their nonnull child trees after successful construction. Children shall be independently owned, with no shared ownership or cycles. Deleting through the base pointer shall destroy every owned child exactly once. Concrete nodes shall provide neither public copying nor implicit move ownership. Borrowed access to a child shall not transfer its ownership.
Each of the six unary and binary operator nodes shall expose operand_ptr as std::unique_ptr<Floating_Point_Expression<I, Format>> and accept default-deleter unique_ptr rvalues whose child pointers convert to the base pointer, in addition to its raw-pointer adoption constructor. These arguments shall be nonnull and independently owned. The owning overloads shall not throw and shall consume their arguments' ownership. A pre-existing child owner shall retain its subtree until the parent constructor begins. If evaluating another argument throws, temporary owning arguments already created shall destroy their subtrees during unwinding. Binary nodes shall destroy the first operand before the second operand; unary nodes shall destroy their sole operand. Neither ownership form shall add a child allocation.
overflows() shall return true exactly when the constant or a homogeneous coefficient interval is unbounded. It shall inspect every declared coordinate, treating absent coefficients as zero under 🔗 6. Dimensions and borrowed coefficient access, without changing the form.
-
2. Owned constant construction and evaluation PPL-SPEC-001001 The two-bound constructor shall store the closed interval between its ordered boundary values. The string constructor shall store the selected interval parser's enclosure of a valid constant expression; it shall not retain the caller's character storage. linearize() shall replace the output by a dimension-zero form containing exactly that stored interval, return true and add no operation-rounding term. A valid unbounded constant interval shall remain an admitted leaf result; true at that leaf shall not imply a finite coefficient. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
3. Owned variable lookup and symbolic fallback PPL-SPEC-001002 For a valid coordinate index, variable construction shall retain that identity. If the symbolic store has a binding at that index, linearize() shall copy its entry form to the output and return true exactly when the copied coefficients are bounded. Without such a binding, it shall return the unit coordinate form, with dimension one greater than the index and all other coefficients zero. It shall not mutate the store or borrow its coefficient storage as output ownership. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
4. Owned exact opposite PPL-SPEC-001003 The opposite node shall own its child. It shall propagate child refusal; on success, it shall negate all coefficient intervals of the child's form, preserving its dimension, and return true without an additional rounding term. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
5. Owned rounding cast PPL-SPEC-001004 The cast node shall own its child and model rounding to its Format. It shall propagate child refusal and refuse a child form with an unbounded coefficient before constructing relative error. After these checks, it shall add the relative error of the child's form and the selected absolute-error interval, then return true exactly when all resulting coefficients are bounded. This explicit rounding node shall apply those terms even for zero or a representable child constant; it shall not infer a different source format or a widening conversion from the tree's common format parameter. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
6. Owned floating sum PPL-SPEC-001005 The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 + L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
7. Owned floating difference PPL-SPEC-001006 The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 − L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
8. Owned floating multiplication PPL-SPEC-001007 The product node shall own both ordered children, linearize them in order and intervalize both forms in the supplied box. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a same-dimension zero form plus the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Child refusal or the absence of a bounded scalar selection shall return false. With a bounded selected operand interval J and a bounded retained form L, a successful result shall enclose J * (L + R(L)) + A, retaining the other form's symbolic coordinates. The bounded-width selection shall admit either orientation and one unbounded operand when the other provides a bounded scalar. It shall not promise an optimal multiplication strategy. Final unbounded coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
9. Owned floating division PPL-SPEC-001008 The quotient node shall own its numerator and denominator children. It shall linearize and intervalize the denominator first. Denominator refusal or a closed endpoint hull containing zero shall return false before linearizing the numerator; an open zero endpoint shall not evade that conservative rejection. Sign-separated positive or negative unbounded intervals shall be admitted when the selected interval division supports them. After successful numerator linearization, an unbounded numerator coefficient shall cause refusal before relative error is constructed. For accepted numerator form L and divisor enclosure J, the output shall enclose L/J + R(L)/J + A. Numerator refusal or unbounded final coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
10. Owned expression exchange PPL-SPEC-001009 For two live nodes of the same concrete class and template arguments, m_swap() and the matching free swap() shall exchange their complete values. Constants shall exchange their stored intervals, variables their indices, unary nodes their owned children, and binary nodes both ordered owned children. The resulting nodes shall linearize as the corresponding pre-exchange nodes and preserve exclusive ownership. Self-exchange shall preserve value and ownership. No child shall be copied, destroyed or linearized merely to exchange an owned pointer. Selected constant-interval exchange operations shall meet their documented prerequisites. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
11. Descriptor-based relative rounding error PPL-SPEC-001010 For a bounded well-formed linear form, static relative_error() shall replace the output with a form of the same dimension. For every coefficient interval [a,b], including the constant, its error coefficient shall enclose [ − mu, mu], where m = max(|a|, |b|). For built-in binary descriptors, u = 2 − p with p excluding the leading significand bit. For normalized IBM hexadecimal short/long arithmetic, u = 161 − p with p equal to six/fourteen fraction digits. A custom three-field descriptor shall use u = BASE − MANTISSA_BITS.
The source entry value shall determine every coefficient, including when the output aliases it. Independent sources shall remain unchanged. Coefficients shall use sound outward interval arithmetic rather than an inward approximation of the selected error radius. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
12. Box-based affine intervalization PPL-SPEC-001011 Static intervalize() shall enclose the sum of the constant interval and every homogeneous coefficient interval multiplied by the corresponding box interval, using the source form's entry values. The box shall have at least the form's dimension and valid factor intervals for every declared coordinate, including zero coefficients. Its result shall not preserve cross-coordinate correlations beyond those factors. Independent form and box inputs shall remain unchanged. The result shall be a separate interval owner from input form coefficients and box factors. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.
-
13. Owned-variable symbolic assignment PPL-SPEC-001015 linear_form_assign() shall assign a copy of the supplied form's entry value to the node's coordinate in the symbolic store, replacing an existing binding or inserting one. Every other pre-existing binding with a non-singleton-zero coefficient for that coordinate shall be discarded; independent bindings, including explicit zero dependencies and coordinates beyond a form's dimension, shall be retained. A newly assigned form shall be retained, including when it contains the target coordinate; callers shall ensure its interpretation remains valid for their modeled state.
A form borrowed from the same store shall use its entry value even if invalidation removes the donor. Independent inputs shall remain unchanged. Valid coordinate, coefficient and lifetime prerequisites of 🔗 1. Dependency invalidation shall apply. Allocation and coefficient exceptions may propagate without whole-store rollback; live owners shall remain safely destructible.
-
2. Empty partial-map construction PPL-SPEC-000002 Successful default construction shall create a valid Partial_Function whose domain and image are empty, with the meaning and use conditions of 🔗 1. Public partial coordinate-map type and valid use. No index shall initially be mapped. If construction fails through a supported C++ exception, resources acquired for the incomplete object shall be released and no constructed map shall be returned.
-
Incoming link from: 8. Coordinate-map diagnostic printing and output failures1
3. Injective insertion and failure atomicity PPL-SPEC-000003 For a valid map as defined by 🔗 1. Public partial coordinate-map type and valid use, insertion shall require both indices to differ from not_a_dimension(), the source index to be absent from the current domain, and the proposed image to be absent from the current image set. A successfully completed insertion of i and j shall add exactly the pair M(i) = j, preserve every existing pair and leave every other absent source unmapped. Gaps introduced by storage growth shall not become mappings. The operation shall permit image zero and noncontiguous source and image sets.
Storage-capacity or allocation failure shall be reported through the corresponding C++ exception, including std::length_error or std::bad_alloc where applicable. Such a failed insertion shall leave the represented map unchanged and valid for subsequent queries, insertion, assignment and destruction.
Violation of the insertion preconditions shall be outside the supported contract. Assertion diagnostics shall not be required in every configuration, and no defined success or failure outcome shall be promised for such a call.
-
6. Largest image and defined empty-map failure PPL-SPEC-000006 For a nonempty valid map under 🔗 1. Public partial coordinate-map type and valid use, max_in_codomain shall return the largest image value, independently of insertion order and of the largest source index. If the valid map is empty, the call shall throw std::runtime_error rather than return a maximum value. The map shall remain unchanged on either outcome. The empty call shall be a defined failure case, not an excluded precondition. Exact exception-message text is not prescribed; ordinary C++ runtime/resource conditions for reporting the exception apply.
-
7. Independent copies, assignment and owned-storage cleanup PPL-SPEC-000007 Copy construction shall require a live, valid source map under 🔗 1. Public partial coordinate-map type and valid use. Successful copy construction shall create a distinct value with exactly the source's mapping. Copy assignment shall require live, valid source and target maps and, on success, shall replace the target's old map with exactly the source's mapping. Subsequent valid insertion into either distinct value shall not change the other's mapping. Successful self-copy-assignment shall preserve the map. Successful copy assignment shall return a reference to its target, including self-copy-assignment.
Failed copy construction shall release resources acquired for the incomplete target and shall leave the source unchanged. Failed copy assignment shall leave both source and target unchanged and valid for subsequent use. Destruction of a live map shall release its owned storage without releasing another map's storage. The caller shall not access an object after its lifetime ends.
-
8. Coordinate-map diagnostic printing and output failures PPL-SPEC-000008 Printing shall observe a valid map under 🔗 1. Public partial coordinate-map type and valid use without changing its represented mapping. Calls shall require the library and calling thread's applicable initialization protocol to have established a valid active Variable output function under 🔗 7. Active Variable formatter and initialized thread state and 🔗 3. Thread initialization, default state and finalization. Callers shall obey the supported thread regime and synchronize changes to the active formatter and access to a shared stream; the formatter shall not mutate the printed map during the call.
When the map is empty and output succeeds, print shall write the literal text "empty", a newline and a flush. For a nonempty map whose source and image indices are all constructible as Variable objects, successful output shall process pairs in increasing source order. For each pair it shall write the source Variable using the Variable formatter active for that write, the literal separator " --> ", the image Variable using the formatter active for its write, and a trailing newline. Each Variable write shall use the formatter then active in the calling thread where formatting state is thread-specific; names shall not be fixed independently of it. A callback's permitted change to that formatting state may therefore affect subsequent Variable writes. Text insertions shall honor the stream's current formatting state. Specified literals identify the inserted character sequences, not a canonical byte layout independent of that state. Printing shall not promise restoration of formatting state changed by a formatter.
A map index outside Variable's accepted identifier range shall be permitted to cause std::length_error during printing, without changing the map. Stream, formatter and resource failures may also propagate their C++ exceptions. Stream failure without an enabled exception shall be observable through the stream state; a normal void return shall not alone establish complete output. After any such failure the output may be partial, but the map shall remain valid and unchanged. Exact diagnostic messages are not prescribed.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
9. Move construction and empty source PPL-SPEC-000009 Move construction from a valid map under 🔗 1. Public partial coordinate-map type and valid use shall create a distinct valid map with exactly the source's mapping on entry and shall leave the source as a valid empty map. The source shall support the same queries, insertions, assignments and destruction as any other empty map. Subsequent valid changes to either object shall not change the other's map.
If construction of the destination's empty storage fails, resources acquired for the incomplete destination shall be released and the source shall remain unchanged and valid. After the empty storage has been constructed, transferring the represented map shall not allocate storage or throw.
The move constructor's exception specification shall be nonthrowing exactly when default construction of its configured storage containers is nonthrowing, as expressed by the declaration below. The debug codomain container shall contribute to that condition only when present.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
10. Move assignment and empty source PPL-SPEC-000010 Move assignment between distinct valid maps under 🔗 1. Public partial coordinate-map type and valid use shall replace the target's mapping with exactly the source's mapping on entry and leave the source as a valid empty map. Both maps shall support subsequent queries, insertions, assignments and destruction. Subsequent changes to either map shall not change the other's represented value.
Self-move-assignment shall leave the map unchanged. Move assignment shall return a reference to its target, including self-move-assignment. It shall not allocate storage or throw. Storage retained by an empty map shall remain owned by that map and shall not imply the presence of any mapped pair.
-
1. Threshold-ordered pending events and caller prerequisites PPL-SPEC-000801 Pending_List<Traits> shall own a sequence of active event nodes and a separate pool of reusable inactive nodes. Each active event shall contain an owned threshold value and borrowed handler/expired-flag bindings. Traits::less_than shall define a stable strict weak order on admitted threshold values. Threshold copy construction, assignment, destruction and that comparison shall not throw; selected threshold operations shall satisfy their own validity and resource prerequisites.
Clients shall synchronize access and retain the noncopying owning-list conditions of 🔗 5. Empty owning-list construction and remaining-node destruction. Active node positions shall belong to one list and remain valid only until their event is erased or their owner destroyed. Handlers and flags shall remain alive while their event is active or a borrowed reference is accessed. Inactive pooled nodes may retain old pointer values without accessing those external objects; their old external bindings need not outlive the pool. The queue shall not require global PPL initialization beyond the selected threshold's own needs. Any enclosing watcher interface shall retain its additional thread/signal restrictions.
-
2. Pending-element construction and embedded-link lifetime PPL-SPEC-000802 Pending_Element construction shall copy the supplied threshold and bind the supplied handler and flag by reference identity. It shall not invoke the handler, modify the flag or retain a reference to the caller's threshold object. The selected threshold shall satisfy 🔗 1. Threshold-ordered pending events and caller prerequisites.
The newly constructed element's inherited links shall require binding into a valid ring before traversal, unlinking or destruction, retaining 🔗 2. Embedded-node construction and link initialization. Queue insertion shall establish that binding before exposing the element. A directly constructed element shall be attached by its caller before destruction; completed linked-element destruction shall retain the nonthrowing threshold lifetime and embedded- node contract.
-
3. Element attribute reassignment without relinking PPL-SPEC-000803 assign shall replace the owned threshold value and borrowed handler/ flag bindings with the supplied attributes, preserving the element's existing link position. It shall not allocate an event node, invoke a handler or reset either flag. The supplied threshold may alias this element's current threshold; self-value assignment shall retain its meaning. Callers reassigning active elements shall preserve the pending list's ordering before using its ordinary operations. Pooled elements shall be rebound before exposure as new active events.
-
4. Threshold, handler and expired-flag reference access PPL-SPEC-000804 deadline() shall return a const reference to the owned threshold; handler() shall return a const reference to the bound handler; expired_flag() shall return a mutable reference to the bound Boolean even through a const element wrapper. Access shall preserve all attributes and links. A reference to the threshold shall require the node and threshold object to remain alive, and shall observe any later admitted reassignment. Handler/flag references shall retain the external object's lifetime independently of the element wrapper. Invoking or modifying a returned external object shall be a caller action, not an automatic queue notification.
-
5. Pending-element attribute checker scope PPL-SPEC-000805 For an admitted completed element, OK() shall return true without modifying attributes or links. It shall not validate threshold positivity, current-time expiry, external handler policy or list sorting. Its use shall not dereference a handler or flag merely to validate their stored pointer values. This element checker shall not establish the inherited ring's structural validity or make a stale active-event position usable.
-
6. Queue construction and complete active/free ownership cleanup PPL-SPEC-000806 Construction shall create a valid empty active sequence and empty free pool. Destruction shall release every owned active and pooled node and its threshold exactly once. It shall not delete borrowed handlers or flags, invoke notification actions or change external expired flags. Independent queue owners shall have independent nodes and lifetimes. No supported owner copy/assignment shall be required under 🔗 1. Threshold-ordered pending events and caller prerequisites.
-
Incoming link from: 5. Per-trait event ordering and multiplicity1
7. Sorted insertion and equivalent-deadline multiplicity PPL-SPEC-000807 Successful insertion shall add exactly one active event with the supplied attributes and return its live position. Traversing the active sequence shall produce nondecreasing threshold order under the supplied strict weak comparison. Every previously active event shall remain with its prior threshold, handler, flag and node identity. Distinct events with equivalent thresholds shall all remain present; their relative order shall not be required by this interface. Insertion shall not act on handlers or modify external flags. Threshold values need not be positive or related to a clock merely to use this internal queue.
-
8. Insertion with borrowed active attributes PPL-SPEC-000808 An insertion's threshold argument may borrow the threshold of an already active element; insertion shall preserve that source and copy its value into the new event. Handlers and flags may be shared among several active events. Their reference identities and preexisting flag values shall remain unchanged by insertion. These aliases shall not permit reuse of erased positions as active-event sources or destruction of external objects still referenced by active events.
-
Incoming link from: 9. Watcher destruction, cancellation and handler ownership1
9. Active-event erasure and successor preservation PPL-SPEC-000809 Erasure shall require a live active position belonging to this queue. It shall remove exactly that event from the active sequence, preserve every other event and its ordering/identity, and return the removed event's next active position or this queue's end. It shall retain the removed node in the reusable pool without destroying its threshold, notifying its handler or changing its flag. The removed position shall cease to denote an active event even while the underlying node remains allocated. Erasure shall not allocate.
-
10. Recycled-node insertion and allocation-free reuse PPL-SPEC-000810 When inactive nodes are available, insertion shall reuse one of them rather than allocate a new node. It shall replace every event attribute before linking the reused node into the sorted active sequence. The old external handler/flag bindings shall not be accessed during reuse. No particular selection order among available free nodes shall be required. Without an inactive node, insertion shall allocate a new properly aligned event node. Threshold operation costs shall remain those of the admitted nonthrowing threshold type.
-
11. Active-event iterator ranges and borrowed traversal PPL-SPEC-000811 iterator and const_iterator shall retain the corresponding embedded-list iterator types and 🔗 7. Embedded-list iterator borrowing and valid linked positions, 🔗 8. Embedded-list position binding and lifetime, 🔗 9. Embedded-list typed element access, 🔗 10. Embedded-list bidirectional traversal and 🔗 11. Embedded-list position equality. The public nonconst begin/end members shall bound exactly the active sequence; free nodes shall never appear in that range. End shall be comparable and support retreat when nonempty, but not dereference. Positions shall preserve node identity under other event insertion/erasure, subject to 🔗 1. Threshold-ordered pending events and caller prerequisites. Clients shall not change embedded links or break active threshold ordering through the borrowed element access.
-
12. Active emptiness independent of retained pool storage PPL-SPEC-000812 empty() shall return true exactly when no active events remain. An empty active sequence shall have equal begin/end positions even if inactive node storage is retained. Emptiness shall not imply that all allocated event nodes have been released. The query shall not notify handlers, modify flags or change the active/free node ownership.
-
13. Queue node checks and threshold-order validation PPL-SPEC-000813 For safely inspectable active/free rings, OK() shall require both embedded lists' element checks and nondecreasing active threshold order. An empty active list shall pass when its active/free node checks pass. Free nodes shall not require threshold sorting. Checking shall not invoke handlers, dereference expired external bindings, modify flags or change ownership. Corrupted embedded links shall remain outside the checker domain; this operation shall not provide memory-safe diagnosis of arbitrary ownership corruption. Clients may check and repair a threshold-order violation before resuming ordinary queue operations.
-
14. Insertion-allocation failure preservation and retry PPL-SPEC-000814 With the nonthrowing threshold and comparison prerequisites of 🔗 1. Threshold-ordered pending events and caller prerequisites, a reported event-node allocation failure shall leave the active sequence, free pool, all existing event attributes, handler bindings and flag values unchanged. No incomplete event node shall remain owned or linked. The same queue shall permit a later successful insertion and ordinary erasure. Erasure and insertion using an available pooled node shall not require an event-node allocation. These guarantees shall not promise recovery from violated threshold or linking preconditions.
-
1. Parametric integer coordinate growth PPL-SPEC-001486 Growth shall append m_vars new decision variables followed by m_params new parameter coordinates, preserving the indices and meaning of all old coordinates. New coordinates shall initially have only implicit nonnegativity restrictions. Zero/zero growth shall preserve the current state. The sum shall be checked against the remaining supported extent without arithmetic wraparound; overflow shall raise std::length_error before changing dimensions. Subsequent solution queries shall describe the expanded problem with artificial parameter indices adjusted to follow original coordinates.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric coordinate selection and descriptor views PPL-SPEC-001487 Parameter addition shall select the supplied indices as parameters and preserve already selected parameters. Incompatible indices shall raise std::invalid_argument. A decision coordinate already processed by the solver shall not be reinterpreted as a parameter; such conversion shall raise std::invalid_argument. Already selected processed parameters may be supplied again. Descriptor access shall expose the parameter subset and const constraints in insertion order; borrowed iterators and views may be invalidated by storage changes or replacement.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric constraint refinement PPL-SPEC-001488 Constraint additions shall conjoin value copies with the current problem. A descriptor dimension greater than the ambient dimension shall raise std::invalid_argument, including an empty system with an incompatible declared extent. Strict inequalities shall be interpreted over nonnegative integers. Subsequent completed queries shall include all added variable and parameter-only constraints; obsolete feasible branches or cached solutions shall not be returned as current. After one or more rows are appended to a problem with a retained feasible solution tree, the next query that needs a solution shall rebuild the result from the complete updated model and its parameter context.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric solution display PPL-SPEC-001493 Human-readable problem output shall show constraints, parameters and big-parameter selection and return its stream. print_solution shall display the already computed tree or infeasibility with the requested nonnegative indentation. A pending unsolved problem shall raise std::logic_error rather than be silently solved by this display member. Human display shall be distinct from reloadable serialization.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Reloadable parametric solver representations PPL-SPEC-001494 Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.
These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric diagnostics and storage accounting PPL-SPEC-001495 OK shall check the implemented problem, context, control and tree invariants, including that every owned tree node refers to this problem. It shall not establish a new mathematical solution. External memory shall estimate managed constraint, parameter, context and solution-tree storage; total memory shall add sizeof(*this). Destroying, clearing or replacing the problem shall release the storage it owns.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric solver outcomes and satisfiability PPL-SPEC-001489 A completed solve shall return UNFEASIBLE_PIP_PROBLEM for infeasibility and OPTIMIZED_PIP_PROBLEM with a retained tree otherwise. With no big parameter, infeasibility shall mean that no assignment in the initial context has a feasible nonnegative integer decision tuple. With a big parameter, the status shall reflect the sign decisions in 🔗 4. Parametric big-parameter designation. is_satisfiable shall solve as needed and return true exactly for the optimized status. An infeasible subregion of a partly feasible context shall not imply global infeasibility in ordinary mode. Repeated queries may reuse current state without changing the mathematical result.
An integer search over an unbounded parameter context or feasible region may run indefinitely. Configured deterministic weight limits and supported cancellation shall be observed at solver checkpoints under 🔗 1. Optimization and ranking valid use.
Integer compatibility checks used to determine feasibility shall follow 🔗 5. Integer feasibility of parametric compatibility contexts.
Ordinary bounded-coefficient simplex pivots shall preserve the shared rational tableau across both its variable and parameter numerator matrices. When direct arithmetic has not been proved representable, the complete pivot shall be evaluated exactly and the common positive factor of both numerator matrices and their one denominator shall be cancelled before coefficient admission. Rows shall not be scaled independently. Parameter-row and cut-selection scores, including products of residue sums, shall be compared as exact working integers without requiring those comparison-only values to fit a coefficient. Pivot and cut ties shall retain their existing traversal order.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric solution-tree access PPL-SPEC-001490 Both accessors shall solve a pending problem as needed and return a borrowed const tree describing its current lexicographic optima. Infeasibility in the selected solve mode shall return a null tree. Interpret a returned tree only at assignments satisfying the initial context and, if a big parameter is designated, the sign assumptions in 🔗 4. Parametric big-parameter designation. On such assignments, every reached feasible leaf shall provide the least decision tuple; a missing branch or a failed leaf guard shall denote infeasibility for that context subset. Mutation, replacement, destruction or a cache-replacing query on the owning problem may invalidate the tree and its derived views.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric cutting and pivot controls PPL-SPEC-001491 Setting a cutting value shall select first-row, deepest-cut or all-cuts generation; setting a pivot value shall select first-row or maximum-column pivot choice. The getter shall report the selected value for a valid control name. Defaults shall be CUTTING_STRATEGY_FIRST and PIVOT_ROW_STRATEGY_FIRST. Unsupported setting values shall raise std::invalid_argument. Heuristic changes may change tree shape and work, while completed solutions shall retain the same context-relative meaning. The maximum-column heuristic shall compare candidate pivot updates by stored row order, then constant/original/artificial parameter column order. These comparisons shall retain exact ordering and ties when intermediate two- or three-factor products exceed the bounded coefficient range.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Parametric big-parameter designation PPL-SPEC-001492 The setter shall designate an existing, not-yet-processed parameter coordinate as the big parameter. A non-parameter or a parameter already processed by the solver shall raise std::invalid_argument. The getter shall return its index, or not_a_dimension() when none is selected. In symbolic sign decisions, a nonzero coefficient of this parameter shall dominate the remaining expression. This convention shall represent an arbitrarily large parameter; concrete finite assignments shall be interpreted only where the result's asymptotic sign conditions hold, accounting for the values of artificial parameters. See 🔗 1. Parametric problem and context interpretation.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Integer feasibility of parametric compatibility contexts PPL-SPEC-001741 A native context shall include a constant column. Each row shall denote an inequality whose constant is in column zero and whose remaining coefficients multiply nonnegative integer coordinates. The affine row value shall be required to be nonnegative. The additional row, when supplied, shall have the same logical width and shall be conjoined with the context. A completed query shall return true exactly when that system has a nonnegative integer solution. A rational solution that fails an integrality constraint shall not justify true. Explicitly stored zeroes and differing physical row capacities shall not alter the result.
The const-input entry points shall preserve the context and any additional row. The destructive entry point may modify and extend its working tableau. A compatibility workspace shall own its scratch storage and shall be noncopyable. Nested queries shall use distinct workspaces. Restoring a context shall replace the logical rows, including zeroing retained coordinates absent from the source. Reuse may retain inactive row allocations and sparse entries holding zero. After failure or interruption, another query shall rebuild or reinitialize the scratch state before relying on it.
When direct bounded arithmetic has not been proved representable, complete rational pivot rows shall be evaluated exactly and the common positive factor of their numerators and denominator shall be cancelled before admission. Comparison-only products shall retain exact order without requiring them to fit a stored coefficient. When a reduced numerator or denominator cannot be stored, the protected entry points and the workspace overload accepting a const context and an additional row shall replay the original unchanged context in owned unbounded rational working storage. Replay shall preserve reconstructed original-variable column order and enforce integer feasibility of those variables using cuts. It shall not widen the public solution-tree coefficient type.
Only the internal working-range condition shall trigger replay. Allocation failures and client abandonment exceptions, including client overflow exceptions, shall propagate. Scratch from an unsuccessful query shall not establish any feasibility result.
-
1. Parametric tree interpretation and artificial scope PPL-SPEC-001496 A returned tree shall be interpreted at parameter assignments in the scope defined by 🔗 1. Parametric problem and context interpretation. At each node, local artificial parameters shall be introduced in stored order after all original coordinates and inherited artificial parameters. An artificial parameter a = ⌊e ⁄ d⌋ shall use mathematical floor, including for negative numerators. Its expression shall refer only to original parameters and earlier artificial parameters in scope.
A decision's true branch shall require all local guards; its false branch, when present, shall require the complement of its single guard. A solution leaf shall require its own guards in addition to the path context. Missing branches and failed leaf guards shall mean infeasibility within that result's scope.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric node guards and artificial-parameter views PPL-SPEC-001497 constraints shall return a borrowed const view of the node's local parameter guards. Artificial-parameter iterators shall traverse the local stored sequence in introduction order; the count shall report its size, without including ancestor parameters. The half-open range shall be empty when no local artificial parameter is introduced. Storage changes and node destruction may invalidate these borrowed views and iterators. Borrowing local constraints or artificial-parameter iterators shall require an lvalue node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric tree ownership associations PPL-SPEC-001498 get_owner shall return the node's non-owning problem association. set_owner shall update that association throughout the receiver's subtree; check_ownership shall report whether every node in that subtree has the supplied owner. Rebinding shall not copy nodes or re-solve a problem. Callers rebinding a tree for interpretation shall provide a live owner with compatible original dimensions and parameter meanings. Every tree returned by a problem shall refer to that problem throughout its subtree.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
4. Parametric tree cloning and lifetime PPL-SPEC-001499 clone shall allocate a structurally independent copy of the subtree, including guards, artificial parameters and solution representation, and return ownership of that copy to its caller. It shall preserve the original owner association but detach the clone's root from its former parent. Copied children shall refer to their copied parent. Deleting a tree through its virtual base shall release every owned descendant. Failed cloning shall release any subtree already acquired. Initial solution-node construction shall create solver state associated with the supplied owner; numerical leaf access shall require a complete solved representation.
Temporary ownership during recursive solving shall protect the successfully returned subtree or newly adopting parent. Retargeting that protection shall not delete a root already consumed by solving or adopted by the parent.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
5. Artificial parameter construction and value operations PPL-SPEC-001500 Default construction shall represent zero with denominator one. Construction from expr and nonzero d shall preserve their rational ratio while normalizing the denominator to positive and dividing numerator coefficients, constant and denominator by their common factor. Zero denominator shall raise std::invalid_argument. In tree interpretation the value shall be the floor of that normalized rational expression.
Copying and assignment shall preserve the stored numerator expression, dimension and denominator, with independent later mutations. Exchange shall swap them. Equality shall compare stored dimension, numerator and denominator; inequality shall negate it. Equality shall not identify all distinct formulas that happen to have equal floors on a particular context. Inherited expression mutations shall follow the linear-expression contracts and shall not implicitly renormalize this denominator.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
6. Artificial parameter persistence and diagnostics PPL-SPEC-001501 Serialization shall retain numerator dimension, coefficients and the positive denominator. Loading shall preserve an admitted stored representation, including a common factor, without constructor normalization. Malformed or nonpositive denominators shall return false in both build modes. False shall not promise rollback or further queries; owned storage shall remain destructible. OK shall require a positive denominator. Human output shall display the expression and integer-division denominator and return its stream. External memory shall estimate expression storage; total shall add the artificial-parameter object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
7. Reloadable parametric tree structure PPL-SPEC-001502 Node dumping shall write local guards and artificial parameters; concrete solution and decision dumping shall additionally write their complete respective representation. Concrete loading shall replace the corresponding stored state, retain the receiver's live owner association and restore parent and owner links for loaded children. Reloading shall not append old artificial parameters. Recursive decision subtrees shall be supported on both branches.
Malformed fields, nonpositive tableau denominators, incompatible vector/matrix sizes, out-of-range mappings and invalid decision structure shall return false in both build modes, before unsafe indexing or successful use of the broken representation. Surviving ownership shall remain destructible after false, without a rollback or further-query guarantee. A tree shall be interpreted only after association with a compatible live problem. Stream and resource exceptions may propagate.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
8. Parametric solution leaves and coordinate values PPL-SPEC-001503 A solution node shall return itself from as_solution and null from as_decision. On a complete solved leaf associated with a live problem, parametric_values(var) shall return a borrowed affine expression in original and in-scope artificial parameters describing that decision coordinate on the leaf's valid path context. Its coordinate shall be an original problem variable; a parameter coordinate or dimension-incompatible variable shall raise std::invalid_argument. Cached expressions may be materialized lazily. No tuple shall be inferred from the leaf when its guards fail. Returning a parametric-value reference shall require an lvalue solution node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
9. Parametric decision nodes and branches PPL-SPEC-001504 A decision node shall return itself from as_decision and null from as_solution. child_node(true) and child_node(false) shall expose the respective borrowed subtree, with null denoting an absent branch. A valid decision shall have a true child. A decision with a false child shall have exactly one local guard. The mutable accessor shall expose the same node as the const accessor; callers shall preserve the owner's structure, backlinks and coordinate meaning when mutating an independently owned tree.
Borrowing a child pointer shall require an lvalue decision node.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
10. Parametric tree diagnostics, display and memory PPL-SPEC-001505 OK shall check local guard, tableau/vector and decision-structure invariants and recursively check owned children. Invalid mapping indices shall be rejected before indexing the corresponding vector. These checks shall not prove lexicographic optimality. Printing shall show the subtree's guards, artificial parameters and decision-coordinate formulas under its compatible live owner, with nonnegative indentation. Stream insertion shall return its stream. Memory estimates shall include local storage and owned descendants; total shall add the concrete object's own size.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
1. Parametric integer problem meaning PPL-SPEC-001483 A problem shall interpret every coordinate as a nonnegative integer. Selected parameter coordinates shall be fixed by a parameter assignment; remaining coordinates shall be decision variables ordered by increasing original index. Constraints mentioning only parameters shall restrict the initial context. For every assignment in the scope defined by 🔗 1. Parametric problem and context interpretation, a completed solver result shall describe the lexicographically least feasible decision tuple or its absence. A designated big parameter shall follow 🔗 4. Parametric big-parameter designation. A strict integer inequality shall use the strict comparison on integer values.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
2. Parametric integer construction and dimensions PPL-SPEC-001484 Construction from a dimension shall create an unconstrained problem with no parameters and the all-zero decision tuple as optimum. Default dimension shall be zero. Range construction shall copy the constraints in its valid half-open input range and interpret p_vars as parameter indices.
The common iterator type shall satisfy Constraint_Input_Iterator: it shall support implicit copying of a traversal lvalue, prefix increment, a boolean inequality test, and a dereferenced result implicitly convertible to const Constraint&. C++20 inputs with distinct sentinel types or value/proxy results can use std::common_iterator when its standard copyability requirements are met. The adapter shall preserve single-pass traversal and caller-owned rows; the constructed problem shall own its acquired constraints.
An ambient extent above the supported maximum shall raise std::length_error; incompatible constraint or parameter dimensions shall raise std::invalid_argument. Failed construction shall release owned storage. Dimension queries shall report the current and maximum extents.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
3. Parametric integer copying, exchange and reset PPL-SPEC-001485 Copying and assignment shall preserve the problem, controls, designated big parameter and solution meaning while permitting independent later changes. Copied tree nodes shall be owned by the new problem. Assignment shall return the receiver and support self-assignment. Exchange shall transfer problem and tree state and update every transferred node's owner; self-exchange shall preserve the value. It shall not copy or allocate tree nodes, but shall visit the transferred trees to restore ownership. Reset shall create the zero-dimensional trivial problem with default controls and no big parameter. Destruction shall release its solution tree and other owned storage.
The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.
-
Incoming link from: 1. Componentwise product image1
1. Lifted powerset image PPL-SPEC-001413 affine_image shall lift the corresponding base image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 2. Componentwise product preimage1
2. Lifted powerset preimage PPL-SPEC-001414 affine_preimage shall lift the corresponding base preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 3. Componentwise product generalized image1
3. Lifted powerset generalized image PPL-SPEC-001415 generalized_affine_image shall lift the corresponding base generalized image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 4. Componentwise product generalized preimage1
4. Lifted powerset generalized preimage PPL-SPEC-001416 generalized_affine_preimage shall lift the corresponding base generalized preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 5. Componentwise product bounded image1
5. Lifted powerset bounded image PPL-SPEC-001417 bounded_affine_image shall lift the corresponding base bounded image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 6. Componentwise product bounded preimage1
6. Lifted powerset bounded preimage PPL-SPEC-001418 bounded_affine_preimage shall lift the corresponding base bounded preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 7. Product expression-to-expression affine relations1
7. Lifted expression-to-expression affine relations PPL-SPEC-001419 Expression overloads shall lift the base relation ℓ’ ⋈ r to every disjunct, modifying the coordinates present in the left expression according to the base generalized-affine contract. Image shall collect allowed successors; preimage shall collect source states with an allowed successor in the old receiver. Shared left/right variables shall retain their before/after interpretation. Dimension, relation and topology admission shall follow the base member, with std::invalid_argument for invalid inputs.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Exact pairwise powerset reduction PPL-SPEC-001426 Pairwise reduction shall first remove entailment redundancies, then repeatedly merge pairs for which the base upper_bound_assign_if_exact certifies exact union. The represented union shall be preserved, and no pair remaining at termination shall admit a further certified exact merge. It shall not promise a globally minimum disjunct count or an insertion-order-independent geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. BGP99 powerset extrapolation PPL-SPEC-001427 The receiver shall be the current iterate and y the previous iterate, with y.definitely_entails(*this) true in a common ambient space. The base function shall widen a containing first argument relative to its contained second argument and produce an upper bound. The method shall pairwise-reduce, optionally collapse when max_disjuncts != 0, then lift the base extrapolation over covered pairs while retaining uncovered current disjuncts. The result shall contain both input unions. Zero shall disable the collapse cap. The cap shall apply to the pre-extrapolation collection and shall not promise the same final count. This method alone shall not promise finite stabilization of arbitrary iteration sequences.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 5. Threshold-aware CC76 box convergence certificates1
3. Certificate-based powerset widening PPL-SPEC-001428 The receiver shall contain the previous iterate y in powerset entailment order, in the same ambient dimension. widen_fun shall be a sound base widening with a compatible finite convergence certificate Cert. Certificate construction, comparison, predicate ordering, hulls, subtraction and exact pair merging shall satisfy the cited certificate-based widening hypotheses. Under these conditions, the method shall give an upper bound and finite stabilization for the prescribed ascending iteration history.
It shall prefer certified hull growth, then certified multiset decrease, then compatible lifted extrapolation and exact pair merging; if these cannot certify progress, it shall enlarge using base widening/subtraction or fall back to a singleton hull. An empty previous iterate shall leave the receiver unchanged. A certificate valid for one base widening or topology shall not qualify another combination without establishing those hypotheses.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Pointset-powerset coordinate growth PPL-SPEC-001420 Embedding shall extend each disjunct with m unconstrained trailing coordinates, denoting S×Rm. Projecting growth shall extend with m zero coordinates, denoting S×{0}m. Empty shall retain empty meaning and acquire the new ambient dimension. Zero growth shall preserve the value. Growth exceeding the structural dimension limit shall throw std::length_error before extent-proportional allocation or dimension arithmetic overflow.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Pointset-powerset projection and coordinate mapping PPL-SPEC-001421 Removal shall existentially project out the selected coordinates of every disjunct and compact remaining indices in order. Higher removal shall retain exactly the requested prefix. Mapping shall use an injective partial map with in-range source dimensions and compact destination range, retaining mapped coordinates and existentially eliminating the others. Empty map shall produce dimension zero. Empty collections shall still acquire the correct result dimension. Invalid removal extents shall throw std::invalid_argument; mapping shall meet 🔗 1. Public partial coordinate-map type and valid use– 🔗 8. Coordinate-map diagnostic printing and output failures and the base map's stated preconditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Pointset-powerset dimension expansion and folding PPL-SPEC-001422 Expansion shall add m independent copies of the selected coordinate's base-domain restrictions using the base expansion operation. Folding shall merge selected coordinates into the retained destination by base folding and remove the folded coordinates. They shall lift per disjunct, update ambient dimension and inherit base soundness and precision. Variables shall be in range, fold destination shall be outside the folded set, and growth shall respect structural limits; invalid variables/sets shall throw std::invalid_argument and excessive growth std::length_error.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Pointset-powerset concatenation PPL-SPEC-001423 Concatenation shall collect base concatenations for every pair of reduced disjuncts in receiver-then-argument coordinate order, representing S×T when base concatenation is exact and otherwise its sound base approximation. Empty input shall give empty in the sum dimension. Self-concatenation shall be supported. The sum dimension shall be range-checked without unsigned wraparound; excessive extent shall throw std::length_error.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Lifted constraint addition and refinement PPL-SPEC-001407 Constraint addition and refinement shall apply the corresponding base operation to every disjunct, retaining union semantics and marking reduction unknown. Exact addition shall intersect each disjunct with the admitted constraint conjunction. Refinement shall preserve every point satisfying the input conjunction and satisfy the base precision guarantee, possibly ignoring unsupported restrictions. Topology and dimension rejection shall follow the base operation, including std::invalid_argument for incompatible inputs.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Lifted congruence addition and refinement PPL-SPEC-001408 Congruence addition and refinement shall apply the corresponding base operation to every disjunct, preserving union semantics and marking reduction unknown. Exact addition shall intersect with the admitted congruence conjunction; refinement shall be sound with the base precision guarantee. Proper modular restrictions shall not be converted into affine equalities. Dimension or unsupported exact-addition admission shall follow the base exception contract.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Lifted cylindrification PPL-SPEC-001409 unconstrain shall cylindrify each disjunct in the selected coordinates while retaining ambient dimension and mark reduction unknown. The resulting union shall have the base operation's exactness and arithmetic guarantees. An empty variable set shall preserve the value. Out-of-range variables shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Lifted pointset-powerset intersection PPL-SPEC-001410 Intersection shall collect all pairwise base intersections of the reduced operands, discarding bottom results. It shall represent exact union intersection when the base intersection is exact and otherwise inherit its soundness and precision. Self-intersection shall be supported. Operands shall have the same ambient dimension; mismatch shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Pointset-powerset set difference PPL-SPEC-001411 Difference shall subtract each subtrahend disjunct successively. For NNC polyhedra, exact polyhedral partitions shall represent exact set difference, including excluded boundaries. Other supported convex bases shall convert through NNC partitions and inherit conversion precision. Grid subtraction shall return exact finite-coset residues when representable and otherwise a sound finite overapproximation. Empty subtraction shall preserve the minuend; self-subtraction shall give empty. Ambient dimensions shall agree or std::invalid_argument shall be thrown.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Meet-preserving powerset context simplification PPL-SPEC-001412 Context simplification shall preserve the represented intersection with y and leave no more disjuncts than the reduced original receiver. Disjuncts disjoint from the context may be removed; the result need not contain the original union outside that context. A false return shall establish empty intersection, while true need not establish nonemptiness for approximate base simplification. Empty receiver or context shall produce a false return. Dimension mismatch shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
7. Powerset topological closure and time elapse PPL-SPEC-001424 Topological closure shall close every disjunct; for a finite collection of exact base closures the result shall be the exact closure of the union. Time elapse shall collect all pairwise base time-elapse results, denoting the corresponding union of p + tv for admitted states, velocities and t ≥ 0, with the base precision contract. Empty state or velocity collections shall follow the base time-elapse semantics. Dimension-incompatible time operands shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
8. Powerset integer restriction and wrapping PPL-SPEC-001425 Integer restriction shall apply the selected base tightening to each disjunct, preserve all points integral in the selected coordinates and retain a subset of the old union; no optimality shall be promised. Wrapping shall apply the base bounded-integer conversion to every disjunct with the supplied width, representation, overflow mode, optional constraints and precision controls. It shall inherit 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes and base wrapping semantics, including sound overflow behavior and variable/constraint admission. Reduction shall become unknown after either operation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Pointset-powerset empty and universe queries PPL-SPEC-001399 is_empty shall return true exactly when every stored disjunct is empty, including the empty collection. is_universe shall return true exactly when a stored disjunct denotes universe; it may remove other disjuncts when such a disjunct is found. A union that covers the whole ambient space without a universe disjunct need not make this structural universe query true; geometric coverage shall be used for that semantic comparison.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Affine dimension of a pointset powerset PPL-SPEC-001400 affine_dimension shall return the affine dimension of the smallest affine space containing the union, using the affine hull of each nonempty disjunct. Empty shall have affine dimension zero. Distinct zero-dimensional disjuncts may jointly have positive affine dimension. Base minimized equality constraints shall describe each disjunct's affine hull for this calculation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Pointset-powerset structural shape queries PPL-SPEC-001401 Boundedness and discreteness shall hold exactly when they hold for all stored disjuncts. contains_integer_point shall hold when some disjunct contains one. is_topologically_closed shall reduce and report whether all remaining disjuncts are closed; false may be conservative when several nonclosed disjuncts jointly form a closed union. constrains(v) shall validate the variable, reduce, and report true for empty or when some remaining disjunct constrains v. It may conservatively report true for a union that is cylindrically unconstrained. Invalid v shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Pointset-powerset structural set relations PPL-SPEC-001402 contains(y) shall return true exactly when each stored y disjunct is contained in some receiver disjunct. strictly_contains(y) shall first reduce the receiver, then require each stored y disjunct to be strictly contained in some remaining receiver disjunct. The latter universal condition is true for an empty stored y collection, including an empty receiver. Neither result shall be substituted for strict geometric containment of represented unions. Dimension-incompatible operands shall throw std::invalid_argument.
is_disjoint_from(y) shall apply the selected base domain's disjointness predicate to each pair of retained receiver and source disjuncts. It shall return true exactly when every pair reports disjointness. For a base satisfying an exact disjointness contract, this shall decide whether the two represented unions have empty intersection, independently of their decomposition. An empty stored collection shall be disjoint from every dimension-compatible powerset. Stored bottom disjuncts and self-aliasing shall retain the base predicate's meaning. The query shall preserve the stored collections and represented values; logically const component queries may update their permitted caches. Incompatible ambient dimensions shall throw std::invalid_argument before pair visitation, including when both collections are empty.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Geometric powerset coverage and equality PPL-SPEC-001403 geometrically_covers(y) shall decide whether the receiver union contains the y union. geometrically_equals shall decide mutual geometric coverage, independently of decomposition or redundant storage. check_containment(p,ps) shall decide whether the union ps contains p. NNC polyhedra shall use exact polyhedral partitioning; supported convex base domains shall use exact conversion to NNC polyhedra. Grids shall use their specialized finite-coset coverage procedure. Arithmetic preconditions shall hold throughout all partitions. Ambient dimensions shall agree; incompatible operands shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Pointset-powerset directional bound tests PPL-SPEC-001404 Directional bound tests shall reduce, then return true exactly when every remaining disjunct bounds the expression in that direction. Empty shall be bounded in either direction. For nonempty collections, the expression's ambient dimension shall be admitted by every disjunct; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
7. Pointset-powerset extrema and witnesses PPL-SPEC-001405 Maximization and minimization shall fail for empty or directionally unbounded unions, leaving all outputs unchanged on a false return. Otherwise they shall return the greatest disjunct supremum or least disjunct infimum as an exact rational with positive denominator. The attainment flag shall be true when at least one disjunct attaining the selected bound includes its optimum. A witness overload shall select an included point when the union attains the bound and otherwise a closure point of a contributing disjunct. The witness shall attain the returned bound in the corresponding union or its closure. Expression dimension admission and arithmetic shall follow the base extrema members; independently writable output objects shall be required.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
8. Pointset-powerset descriptor relations PPL-SPEC-001406 Constraint and congruence relations shall combine disjunct relations: inclusion, disjointness and saturation shall each require that flag from every disjunct. Strict intersection shall be reported when a disjunct strictly intersects or when nonempty included and disjoint disjuncts occur. Empty disjuncts shall not supply a strict-intersection witness. Generator subsumption shall be reported when at least one disjunct subsumes it, using base generator semantics. Empty collections shall give the vacuous inclusion, disjointness and saturation flags and no generator subsumption. Invalid descriptor dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Dimensioned pointset-powerset construction PPL-SPEC-001392 Construction from n and kind shall create empty or universe in dimension n. Default shall be the zero-dimensional universe. Empty shall retain its ambient dimension with no disjuncts; universe shall contain a base universe disjunct. max_space_dimension shall report the base structural limit. Requests above that limit or using a reserved dimension shall throw std::length_error before extent-proportional storage. The limit shall not promise allocation success for every admitted dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Pointset-powerset copying, assignment and exchange PPL-SPEC-001393 Same-type copying and assignment shall preserve dimension and represented union, including stored decomposition and reduction state, while permitting independent later mutations through copy-on-write disjuncts. Assignment shall return its receiver and support self-assignment. m_swap and swap shall exchange dimension and collection together. The same-type copy complexity argument shall not change exactness. Implicit destruction shall release all owned disjuncts and collection storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Pointset-powerset construction from descriptor systems PPL-SPEC-001394 Construction from constraints or congruences shall create the corresponding base-domain value as a singleton disjunct and inherit the system dimension. Source values shall remain unchanged. Admission, arithmetic, topology and exactness shall follow the base constructor; redundant or empty singleton storage may remain until reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Pointset-powerset construction from a simple domain PPL-SPEC-001395 Construction from a simple domain shall preserve ambient dimension and contain its represented set. A nonempty source shall be converted using the base constructor with its applicable complexity contract and stored as a singleton. Known-empty sources may yield an empty collection. Conversion shall be exact when the destination base conversion is exact; unsupported discrete or relational information may be lost. External source values shall remain unchanged.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Cross-base powerset conversion and assignment PPL-SPEC-001396 Cross-base construction shall convert each stored source disjunct with the destination base conversion and preserve ambient dimension. The resulting union shall contain the source union and be exact when every base conversion is exact. Assignment shall have the same conversion result and return its receiver. Destination reduction state shall be recomputed when conversion can make previously incomparable disjuncts comparable; a proven exact conversion may retain source reduction state. Neither source decomposition nor reduced cardinality shall be a geometric canonical form.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Pointset-powerset construction from a product PPL-SPEC-001397 Construction from a product shall convert both reduced component views to the destination base and intersect them, storing the resulting base value as a disjunct unless a known-empty shortcut applies. It shall preserve ambient dimension and overapproximate the product intersection. Exactness shall hold when both conversions and their base intersection are exact.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
7. Insertion of pointset disjuncts PPL-SPEC-001398 add_disjunct(p) shall add a value copy and represent union with p. It shall require exactly the receiver dimension and throw std::invalid_argument on a mismatch. Duplicates and empty disjuncts may remain stored until reduction; insertion shall mark reduction as unknown. Later mutation of the external source shall not alter the powerset.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
1. Two-coordinate full-rank equality projection PPL-SPEC-001685 try_binary_equality_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles and selections other than two. Let the selected coordinates in ascending order be x, y.
Scan the logical input rows in order. Select the first equality with a nonzero x coefficient. For this row's selected coefficients a, b, scan subsequent equalities for coefficients c, d with ad − bc ≠ 0, using exact GMP arithmetic. Without such a later row, return false. This opportunistic scan need not find an earlier independent row preceding its selected first pivot.
After this rank test, copy the owned rows and eliminate x with that pivot using 🔗 1. Exact equality-pivot elimination. Choose a remaining equality with nonzero y coefficient, preferring 1 or − 1, and eliminate y with the same kernel. Such a second pivot shall exist. Compact the two coordinates, retaining the other coordinates' order, and swap in a completed same-topology polyhedron. True shall denote the exact projection 🔗 4. Exact polyhedral coordinate deletion, with no increase in logical row count.
False shall preserve all receiver state and allocate no C++ storage. The determinant preflight may allocate GMP temporary storage. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use; rejection preservation shall not impose a stronger exceptional-completion guarantee.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
2. Bounded coupled two-coordinate pair projection PPL-SPEC-001686 try_binary_pair_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles, selections other than two, and any logical equality row. Let x, y be selected in ascending order.
Preflight shall count positive, negative and zero x coefficients. Reject more than 16 positive/negative pairs or more than 64 predicted owned rows. Predict the signs in the next y column: unchanged zero-x rows retain their signs, and a pair ax > 0, bx < 0 has the sign of − byxa + ayxb. These calculations shall use exact GMP arithmetic. Tautological combinations may be counted conservatively. Reject more than 16 predicted second-column pairs or 64 predicted owned rows. Both checks shall precede scratch-row copying. False shall preserve every receiver field and allocate no C++ storage; GMP preflight temporaries are permitted.
For each selected coordinate, retain its zero-coefficient rows. For every pair ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the positive combination (b ⁄ g)r + (a ⁄ g)s. It shall be strict exactly when either input row is strict. Omit tautologies. The conservative preflight shall bound the actual pair and row counts in both passes. At most 32 pairs shall be generated; each scratch vector shall contain at most 64 logical rows.
Compact the selected coordinates only after their coefficients are zero. True shall replace the receiver with the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and surviving-coordinate order. Only a completed temporary polyhedron shall be swapped in. Common lifetime, arithmetic and exceptional-completion conditions 🔗 1. Polyhedral values, coefficient profile and valid use shall apply without strengthening them to the false-result guarantee.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
3. Exact one-dimensional continuous LP projection PPL-SPEC-001687 try_interval_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators and a nonempty in-range selection. It shall reject bounded coefficient profiles, ambient dimensions outside 10 through 16, selections leaving other than one coordinate, descriptions with fewer than twice the ambient dimension or more than 64 stored rows, and descriptions with any logical equality or strict inequality. These rejections shall preserve all receiver state and allocate no C++ storage. The dispatch in 🔗 2. Bounded exact coupled constraint projection shall invoke it only for necessarily closed receivers; its weak-row computation shall preserve the supplied receiver's topology.
Find the sole surviving original coordinate and construct one continuous MIP_Problem from the original constraint system, with that coordinate as the minimization objective. Select PRICING_TEXTBOOK before solving, so pricing shall use coefficient arithmetic rather than floating-point weights. Do not designate integer coordinates or introduce auxiliary ones.
An infeasible lower solve shall replace the receiver with a same-topology empty polyhedron of dimension one. Otherwise retain a finite exact lower value p ⁄ q as qv ≥ p, and omit an unbounded lower bound. Change the same model to maximization, reusing its feasible state and basis. Its result shall remain feasible. Retain a finite upper value r ⁄ s as sv ≤ r, and omit an unbounded upper bound. Denominators shall be positive. Both finite endpoints shall be included. The completed interval shall be the exact real projection 🔗 4. Exact polyhedral coordinate deletion.
Only a completed same-topology result shall be swapped into the receiver. The dimension, initialization, synchronization, resource and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use and the continuous incremental MIP model shall apply. Exceptions shall not strengthen the common guarantees to the false-result preservation guarantee.
-
Incoming links from: 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage2
1. Exact rational polyhedral image PPL-SPEC-001346 The result shall be exactly {F(x) ∣ x ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
2. Exact rational polyhedral preimage PPL-SPEC-001347 The result shall be exactly {x ∣ F(x) ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Polyhedral variable-update relational image PPL-SPEC-001348 The result shall be exactly the set of new states x’ related to some entry state x. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Polyhedral variable-update relational preimage PPL-SPEC-001349 The result shall be exactly the set of old states x having a related state x’ in the entry receiver. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Polyhedral expression-update relational image PPL-SPEC-001350 The result shall be the exact image of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Polyhedral expression-update relational preimage PPL-SPEC-001351 The result shall be the exact preimage of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
7. Exact bounded polyhedral affine image PPL-SPEC-001352 The result shall be exactly the image under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
8. Exact bounded polyhedral affine preimage PPL-SPEC-001353 The result shall be exactly the preimage under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 4. C generated domain transformations1
1. Bounded Chvatal half-pair refinement PPL-SPEC-001666 refine_with_chvatal_cuts(max_pair_tests) shall first perform the existing all-coordinate drop_some_non_integer_points() with its default complexity. For a nonempty result and positive budget, it shall inspect at most max_pair_tests distinct unordered pairs of nonstrict inequalities from that result's minimized constraint description, in nested iterator order. Equalities shall not consume the pair budget. All pairs shall refer to that entry description; cuts shall be applied together after pair examination, without iterating the cutting pass.
For a pair ax + b ≥ 0, cx + d ≥ 0, it shall add ((a + c) ⁄ 2)x + ⌊(b + d) ⁄ 2⌋ ≥ 0 when the summed normal is componentwise even and the summed constant is odd. Pairs with an even constant or any odd summed normal coordinate shall add no cut. Ambient dimension and closed topology shall be preserved. The result shall be a subset of the entry set and contain every entry point in Zn.
Zero budget shall perform only the existing tightening. Empty shall remain empty. The budget shall bound pair examination, not minimization or conversion work. A finite budget may produce different refinements for different minimized-row orders; no exact integer hull or representation-independent budgeted result shall be promised.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
Incoming link from: 4. Exact polyhedral coordinate deletion1
1. Bounded exact projection from current constraints PPL-SPEC-001679 For an unmarked receiver with current constraints and no pending generators, try_constraint_projection(vars) shall attempt the exact real-coordinate projection specified by 🔗 4. Exact polyhedral coordinate deletion. The selection shall be nonempty and in range. Surviving coordinates shall retain their relative order, and the receiver's closed or NNC topology shall be preserved.
The attempt shall reject dimensions below five or descriptions containing more than 64 stored rows. For a selected coordinate, an equality with a nonzero coefficient or inequalities of both coefficient signs shall reject the one-sided path. Otherwise every row involving any selected coordinate shall be discarded, and all other rows shall be retained with compacted coordinates. Strict inequalities shall retain their membership meaning. This path shall be available for every supported coefficient profile.
For GMP coefficients, algebraic elimination shall additionally be attempted. If more than one coordinate is selected, each input row shall mention at most one selected coordinate, or the bounded coupled planner in 🔗 2. Bounded exact coupled constraint projection shall be attempted instead. This independence restriction shall not apply to the one-sided path. Prefer a pivot whose coefficient is 1 or − 1. For an equality E = ax + r = 0 and another row C = bx + s▹0, with b ≠ 0 and g = gcd(|a|, |b|), replace that row by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E▹0. The shared equality kernel 🔗 1. Exact equality-pivot elimination shall implement this substitution. The original relation kind shall be preserved. Rows independent of the pivot shall be transferred unchanged and tautological results omitted. Each eliminated equality shall reduce the predicted stored-row bound by one; one-sided elimination shall subtract the number of rows involving that coordinate. A predicted count above 64 shall reject the attempt before scratch copying. Bounded-coefficient profiles shall retain only the one-sided path, adding no elimination products to their admitted range.
For GMP coefficients, a selected coordinate without an equality pivot may also have both coefficient signs. At most 16 positive/negative pairs per coordinate and a predicted stored-row bound of 64 shall be admitted. For ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the cancelled positive combination (b ⁄ g)r + (a ⁄ g)s▹0. It shall be strict exactly when either input is strict. Rows with zero coefficient shall be retained, and tautological combinations omitted. The predicted row count for a coordinate without an equality shall replace its positive and negative rows by their pair count. These counts shall be checked before copying or coefficient algebra. Independence of selected coordinates makes the counts stable across elimination and bounds the total emitted pair count by 64. Bounded-coefficient profiles shall retain only the one-sided path.
A false result shall preserve all receiver state, including materialized caches. Rejection shall precede scratch-row copying and coefficient algebra. A true result shall replace the receiver with the completed exact projection; no particular minimal representation is required. Temporary rows and cancellation factors shall own their storage, and only a completed temporary polyhedron shall be swapped into the receiver. The local row-emission closure shall compact rows only after their selected coefficients are zero, preserve relation kind and topology, and transfer the compacted rows to the output system.
The lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply. Common failure guarantees shall not be strengthened by the boolean rejection guarantee: arithmetic and resource exceptions remain subject to that common contract.
-
Incoming links from: 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation2
1. H79 polyhedral widening PPL-SPEC-001365 The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the standard widening of the cited Definition 1, including representation-independent handling of redundant rows. widening_assign shall select this H79 operation. For NNC operands the named algorithm shall operate on compatible closed epsilon representations built from closure facets and maximal excluded faces. The represented result shall be independent of the operand cache history.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming links from: 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation2
2. BHRZ03 polyhedral widening PPL-SPEC-001366 The previous iterate y shall be contained in the entry receiver, with equal dimension and topology. Widening shall contain both values and preserve a distinct operand's set. For closed polyhedra it shall implement the improved widening of the cited Definition 18: it shall preserve certified limited-growth steps, otherwise combine the specified constraint/point/ray improvements under the standard widening bound. For NNC operands it shall use the same normalized epsilon representations as H79 for its standard widening bound. Its result shall be at least as precise as H79 on the same admitted pair in either topology.
A nonnull token pointer shall designate an independently writable unsigned count. If widening would enlarge the receiver and a token is available, the operation shall retain the entry receiver and consume one token. Tokens shall not be replenished during a convergence iteration. With finite total delay, the prescribed widening iteration on ascending inputs shall stabilize. Dimension/topology mismatch shall throw std::invalid_argument; violating the inclusion prerequisite shall have no result guarantee.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Limited H79 polyhedral extrapolation PPL-SPEC-001367 The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Bounded H79 polyhedral extrapolation PPL-SPEC-001368 The operands, token use and inclusion prerequisite shall follow 🔗 1. H79 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Limited BHRZ03 polyhedral extrapolation PPL-SPEC-001369 The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall select the corresponding named widening. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Bounded BHRZ03 polyhedral extrapolation PPL-SPEC-001370 The operands, token use and inclusion prerequisite shall follow 🔗 2. BHRZ03 polyhedral widening. From the supplied constraint system, limited extrapolation shall select constraints satisfied by every entry receiver point and intersect them with the named widening result. Empty constraint input shall leave the limiting intersection neutral. Bounded extrapolation shall additionally intersect the limited result with the box obtained by interval CC76 widening of the two smallest enclosing boxes, in the same previous/current operand order. Results shall contain both inputs. An excess limiter dimension, unequal operand dimensions, incompatible operand topologies, or strict limiter inequalities on a closed receiver shall throw std::invalid_argument. External limiter values shall be preserved. An arbitrary changing limiter sequence shall have no general finite-convergence guarantee; the widening-up-to argument shall require a fixed finite admissible set of limiting constraints.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
7. H79 convergence certificate values and comparisons PPL-SPEC-001371 For a nonempty polyhedron, H79_Certificate shall record its affine dimension and number of nonredundant visible constraints, excluding internal positivity and epsilon bounds. The default certificate shall describe the zero-dimensional universe. Copying and assignment shall preserve the recorded value. Certificate comparison shall order the pair lexicographically, returning only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a containing nonempty same-dimensional polyhedron shall return 1 for increasing affine dimension, or at equal affine dimension for decreasing constraint count; -1 for increasing count and 0 for equal components. Zero shall not imply pointset equality. Generic non-polyhedron inputs shall be admitted only when their constraint descriptions can be converted to a closed polyhedron without strict inequalities. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 widening of P by Q , then H79_Certificate(P).compare(R) shall return 1. The NNC case shall reconcile epsilon representations before strong constraint minimization and saturation matching, as established in doc/definitions.dox (user-manual section NNC_Widening_Certificates). Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
8. BHRZ03 convergence certificate values and comparisons PPL-SPEC-001372 For a nonempty polyhedron, BHRZ03_Certificate shall record affine dimension, lineality dimension, nonredundant visible constraint count, point or closure-point count, and for each possible number of zero coordinates the count of nonredundant rays with that many zero coordinates. Default shall describe zero-dimensional universe. Copying shall preserve the recorded value. Certificate comparison shall order these components lexicographically and return only -1, 0 or 1; Compare shall test for a positive comparison.
Comparison with a same-dimensional nonempty containing polyhedron shall return 1 for growth certified stabilizing by the cited component ordering, 0 when the examined components agree and -1 otherwise. Increased affine/lineality dimension is stabilizing; at equal earlier dimensions a decrease of constraint, point or lexicographically examined ray counts is stabilizing. An increase in a later examined count may return -1 for a valid containing pair. Zero shall not establish set equality. is_stabilizing shall mean comparison is positive; OK shall test structural consistency of the stored component ranges. For nonempty same-dimensional closed or NNC pointsets P ⊂ Q , if R is the result of the default tokenless H79 or BHRZ03 widening of P by Q , then BHRZ03_Certificate(P).compare(R) shall return 1. The NNC H79 selection path, including the BHRZ03 last resort, shall reconcile epsilon representations before strong constraint minimization and saturation matching. doc/definitions.dox (user-manual section NNC_Widening_Certificates) establishes this extension of the cited closed-polyhedron compatibility argument. Certificate-to-certificate comparisons shall use compatible ambient dimensions. The comparison predicate shall order larger component tuples first.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
1. Exact polyhedral cylindrification PPL-SPEC-001345 Cylindrification shall forget restrictions on the selected coordinates while preserving exactly the projection onto all other coordinates. Ambient dimension shall be retained. Empty shall remain empty, and an empty coordinate selection shall be a no-op. Coordinates outside the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
2. Polyhedral coordinate growth PPL-SPEC-001354 Adding m coordinates shall append them after the old coordinates. add_space_dimensions_and_embed(m) shall form the Cartesian product with Rm; add_space_dimensions_and_project(m) shall append exactly m zero coordinates. Empty shall remain empty in the enlarged dimension. Zero growth shall be a no-op. Exceeding the selected topology's structural dimension limit shall throw std::length_error before extent-dependent allocation; unsigned dimension arithmetic shall not wrap.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Exact polyhedral Cartesian concatenation PPL-SPEC-001355 Concatenation shall assign the exact Cartesian product of the entry receiver and operand, with receiver coordinates followed by operand coordinates. The resulting dimension shall be the sum. Empty shall be absorbing; zero-dimensional universe shall be an identity. Self-concatenation shall use independent copies of the entry value. Incompatible topologies shall throw std::invalid_argument and excessive combined dimension std::length_error before extent-dependent allocation. A distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Exact polyhedral coordinate deletion PPL-SPEC-001356 Coordinate deletion shall existentially project away exactly the selected coordinates and pack surviving coordinates in their previous relative order. Removing higher dimensions shall retain the prefix of the requested length. Empty shall remain empty in the resulting dimension. Projection of nonempty onto no coordinates shall be zero-dimensional universe. Empty selection or an unchanged prefix length shall preserve the value. An invalid selection or a requested prefix longer than the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Exact partial coordinate mapping of polyhedra PPL-SPEC-001357 For an admitted partial mapping from old coordinate indices to a dense set {0, …, m − 1}, the operation shall delete unmapped coordinates and rename the remaining ones exactly. The mapping shall be injective on its domain and m ≤ n; an equal-size map shall therefore be a permutation. The mapping object shall implement has_empty_codomain(), max_in_codomain() and maps(i,j) with the entry mapping's consistent answers. Empty codomain shall project onto zero dimensions. The maximum shall be requested at most once and maps at most once per old coordinate. Mappings violating these prerequisites shall have no result guarantee; a defensive invalid-argument check shall not make every malformed map admitted.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Polyhedral coordinate expansion PPL-SPEC-001358 Expansion of coordinate v by m shall append m coordinates, each an independent copy of v conditional on the other old coordinates. Writing an old state as (z, xv), the result shall consist exactly of states (z, xv, t1, …, tm) for which (z, xv) ∈ P and each (z, ti) ∈ P. The copies need not equal one another. Invalid v shall throw std::invalid_argument and excessive dimension growth std::length_error. Zero expansion shall preserve the value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
7. Polyhedral coordinate folding PPL-SPEC-001359 Folding coordinates in vars into dest shall take the least polyhedron of the receiver's topology containing the union of the projections that place either the old destination or one folded coordinate at the surviving destination position, and then delete the folded coordinates. Remaining coordinates shall retain relative order. dest shall be a valid coordinate outside vars; all selected coordinates shall be valid, otherwise std::invalid_argument shall be thrown. Empty selection shall be a no-op.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
1. Exact equality-pivot elimination PPL-SPEC-001683 With GMP coefficients, project_constraint_equality(rows, v, pivot) shall require owned valid rows of one ambient dimension, an in-range pivot index, an equality at that index and a nonzero pivot coefficient of v. For the pivot E = ax + r = 0 and another row C = bx + s▹0, a nonzero b shall be cancelled by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E, where g = gcd(|a|, |b|). The relation kind shall be retained. Rows with zero coefficient shall be transferred unchanged; tautological results shall be omitted. The pivot shall be removed, every remaining coefficient of v shall be zero, and the result shall represent the exact existential elimination of that coordinate. Row count shall not increase.
The row vector shall retain its ambient coordinate numbering; physical coordinate compaction belongs to its caller. Temporaries shall own their data. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use without a rollback guarantee for this scratch vector. The receiver shall not be modified by scratch-vector failures before the caller's completed-result replacement.
-
2. Bounded exact coupled constraint projection PPL-SPEC-001684 try_coupled_equality_projection(vars) shall require an unmarked receiver with current constraints, no pending generators, ambient dimension at least five, at most 64 stored rows and a nonempty in-range selection. It shall attempt the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and relative coordinate order. With bounded coefficients it shall reject. With GMP coefficients, selections above four coordinates shall delegate to 🔗 3. Exact one-dimensional continuous LP projection only for necessarily closed receivers, returning its result; other such selections shall reject.
For each equality record the support on selected coordinates in bounded stack metadata. Repeatedly select an equality whose support on remaining selected coordinates is exactly one coordinate, record that coordinate, and remove it from the remaining set. When peeling stops, inspect remaining selected coordinates in ascending order. If an equality has nonzero support on the coordinate being inspected, delegate to 🔗 1. Two-coordinate full-rank equality projection and return its result. Otherwise opposite signs shall delegate to 🔗 2. Bounded coupled two-coordinate pair projection and return its result. The structural planner itself uses only support/sign queries; the delegated preflights may use exact coefficient algebra. Absent selected columns shall impose no restriction.
After an admissible plan is found, copy the owned rows. For each planned coordinate choose an equality with nonzero coefficient and zero coefficients on all later planned and residual selected coordinates, preferring coefficient 1 or − 1, and apply 🔗 1. Exact equality-pivot elimination. Such a pivot shall exist. After substitution discard rows involving any residual selected coordinate. Compact the retained rows, preserve their relations, and replace the receiver only by swapping in a completed same-topology polyhedron. On this structural equality/one-sided path, at most four substitution passes shall occur and row count shall not exceed its input bound. Delegated paths shall obey their respective contracts and work bounds. A false result shall preserve every receiver field and shall allocate no C++ storage. The delegated rank and sign preflights may perform GMP coefficient algebra before returning false. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use, without strengthening its guarantees to the false-result preservation guarantee.
-
Incoming link from: 4. C generated domain transformations1
1. Nonnegative polyhedral time elapse PPL-SPEC-001360 Ordinary time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t ≥ 0}, using the entry receiver P and operand Q. Empty in either operand shall give empty. Dimension and topology shall agree, otherwise std::invalid_argument shall be thrown. A distinct operand shall retain its represented value. The progression scalar shall be real, not integral, and zero time shall be admitted for nonempty operands.
The generator-system overload shall interpret its input as the rate polyhedron described by that system, using the receiver's topology. The rate system shall have the same ambient dimension as the receiver. An empty rate system shall give the empty result. A nonempty system without an included point, or a closed receiver with a user-visible closure point in the system, shall raise std::invalid_argument. These argument checks shall precede updates of the receiver. An independent input generator system shall retain its value and representation. If the input is a borrowed generator view of the receiver, the operation shall read its entry generators before any receiver update; the view shall then follow 🔗 2. Equivalent borrowed polyhedral descriptions. A singleton zero rate shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
2. Positive polyhedral time elapse PPL-SPEC-001361 Positive time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t > 0}. Zero time shall not be introduced merely by the definition; zero rates may nevertheless retain entry states. A closed receiver shall take the closed polyhedral enclosure. Both rate topologies shall be admitted by this variant. Dimensions shall agree, otherwise std::invalid_argument shall be thrown. Empty in either operand shall give empty. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Integer-point-preserving polyhedral restriction PPL-SPEC-001362 Restriction shall return a polyhedron contained in the entry receiver that retains every entry point integral in the selected coordinates. The all-coordinate overload shall select all coordinates. Remaining points need not all be integral; no optimality guarantee shall be made, including under ANY_COMPLEXITY. Limited complexity may leave the value unchanged rather than materializing an expensive representation. Empty coordinate selection shall be a no-op. The selection shall contain only valid receiver coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Sound bounded-integer wrapping in polyhedra PPL-SPEC-001363 For selected coordinates assumed integral, wrapping shall conservatively represent the outcomes for the selected modeled width and signed or unsigned representation. OVERFLOW_WRAPS shall reduce modulo 2w and choose the representative in the modeled range. OVERFLOW_IMPOSSIBLE shall retain only nonoverflowing outcomes; OVERFLOW_UNDEFINED shall permit arbitrary results on overflowing transitions. Unselected coordinates shall retain their correlations as far as the documented polyhedral abstraction preserves them. Optional constraints shall restrict the output state, may mention only selected coordinates, and may guide the partition of wrapping translations. All selected indices and optional descriptors shall be dimension-compatible; dimension mismatches shall throw std::invalid_argument. The complexity threshold and individual-wrapping flag may trade precision for work; they shall not exclude concrete outcomes.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Exact polyhedral topological closure PPL-SPEC-001364 Closure assignment shall replace the receiver by its exact real topological closure. A closed receiver shall retain its value. NNC closure shall include the missing boundary points while preserving dimension, equalities and recession behavior. Empty and zero-dimensional values shall remain unchanged. Repetition shall be idempotent.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
1. Sound polyhedral filtering by interval linear forms PPL-SPEC-001376 For an admitted nonempty receiver, floating-point formats and bounded interval coefficients, linear-form refinement shall retain every receiver state satisfying some coefficient instantiation of the selected comparison, and shall introduce no state outside the receiver. The basic overload shall select less-than or less-or-equal by is_strict; a closed receiver may relax strictness. Generalized refinement shall apply both non-strict filters for equality, reverse operands for greater-than relations, and retain the receiver for disequality. Excess input dimension shall throw std::invalid_argument; an invalid relation enumeration shall throw std::runtime_error. If the form or its normalization overflows the admitted analysis range, refinement may leave the receiver unchanged rather than use an unsound finite coefficient. External forms shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
2. Sound polyhedral image of interval linear forms PPL-SPEC-001377 For an admitted nonempty receiver and a linear form with bounded interval coefficients in a supported floating-point format, affine-form image shall contain every target state produced by an admitted coefficient instantiation, with other coordinates unchanged in the concrete transition. The result may conservatively lose correlations. It shall preserve dimension and topology. Invalid target or excess form dimension shall throw std::invalid_argument. If the form or normalization overflows the analysis range, returning universe shall be permitted. External forms shall preserve their values. Arithmetic and rounding prerequisites of the selected interval and floating-expression profiles shall apply.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Polyhedral refinement of a floating interval store PPL-SPEC-001378 For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 4. C generated domain transformations1
1. HH95 closed-polyhedron edge extrapolation PPL-SPEC-001667 For nonempty entry operands P, Q ⊆ Rn, let H = clconv(P∪Q) and let L be its lineality space. In the pointed quotient H ⁄ L, classify a vertex as old exactly when it belongs to (P + L) ⁄ L; classify the remaining vertices as new. HH95_extrapolation_assign(y) shall produce H + cone{v − u ∣ u old, v new, [u, v] an edge of H ⁄ L}, using any lifted representatives. It shall preserve ambient dimension and closed topology and contain both operands.
Empty in either operand shall be neutral. Self-aliasing shall preserve the entry set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering relative to HPW01 shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
Incoming link from: 4. C generated domain transformations1
1. HPW01 closed-polyhedron extrapolation PPL-SPEC-001665 For nonempty entry receiver P and operand Q in Rn, HPW01_extrapolation_assign(y) shall replace the receiver by the intersection of the affine-hull equalities of H = clconv(P∪Q) and exactly those facet halfspaces of H whose boundary intersects P. The result shall contain H and preserve ambient dimension and closed topology.
Empty in either operand shall be neutral. Self-aliasing shall use the entry operand twice and preserve its set. A distinct operand shall preserve its represented value. Incompatible dimensions shall throw std::invalid_argument before receiver value updates, including for empty operands. The set shall be independent of redundant input descriptors and initially materialized representations. No stabilization or universal precision ordering with HH95 extrapolation shall be required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
1. Polyhedral envelope from entry constraint descriptions PPL-SPEC-001672 envelope_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q, as obtained by constraints() without an additional minimization request. Each equality shall supply both opposite non-strict inequalities. The completed receiver shall denote exactly the intersection of those candidate inequalities satisfied by both operands. Included or excluded NNC boundaries shall retain their inequality meaning. Ambient dimension and topology shall be preserved.
Descriptions shall be captured before support queries can normalize their caches. Precision may depend on redundant inequalities or the descriptions materialized at entry. No particular minimal output description is required. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
-
2. Captured inequality candidates for polyhedral approximations PPL-SPEC-001673 For a valid constraint system, polyhedron_join_inequalities shall return owned candidate rows equivalent to its non-tautological inequalities, replacing each equality by its two opposite non-strict inequalities. Rows equivalent under the normalized constraint ordering shall occur once. The input shall be preserved. The ordering predicate shall agree with the sign of compare(x,y). Capturing the returned rows shall not request polyhedral minimization. Arithmetic-profile conditions shall include constructing both equality orientations.
-
3. Exact support queries for polyhedral approximations PPL-SPEC-001674 Polyhedron_Join_Support shall borrow its source polyhedron and own any temporary LP. With generator mode selected, it shall use the existing exact polyhedral queries. Otherwise it shall build and reuse a continuous MIP model of the system obtained by weakening strict inequalities. It shall establish original-set emptiness: an infeasible weakened system is empty; a feasible weakened system with strict rows shall additionally be checked by exact feasibility of the original system.
For a nonempty source and an in-dimension expression, minimum shall return finite == false exactly when the expression is unbounded below. A finite result shall have a positive denominator and its numerator/denominator shall equal the source infimum. For the corresponding finite result, attained shall return true exactly when the original source contains an infimizing point. The LP route shall decide this by feasibility of the original system intersected with the equality face; systems without strict rows shall attain every finite infimum. The presence of strict rows shall be determined once during construction.
includes shall accept a non-strict or strict candidate inequality and return true exactly when every source point satisfies it. Its source shall be nonempty. For a strict row, a zero infimum shall imply validity exactly when that infimum is unattained.
Source objects shall remain alive while queries are issued, and their represented values shall be preserved. The LP route shall borrow an unchanged original description. Generator queries may normalize caches. After the final query, destruction shall release only owned LP state, without querying the borrowed source. Non-finite numerical fields and the LP-side cached attainment field are unspecified. The common conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply.
-
5. Homogeneous directions for weak polyhedral join PPL-SPEC-001676 Given candidate rows captured from two nonempty operands after tautology removal and equality splitting, polyhedron_join_directions shall return one normalized non-strict zero-constant row for every distinct positive-scaling class of their homogeneous parts. Orientations shall be preserved. Inputs shall be preserved. Each input row shall have a nonzero homogeneous part under these preconditions.
-
6. Weak join with exact directional bounds and NNC attainment PPL-SPEC-001677 weak_join_assign(y) shall capture the constraint descriptions of the entry receiver P and source Q through constraints() without an additional minimization request. Split equalities into both opposite inequalities, and let D contain their distinct nonzero homogeneous directions. For nonempty operands, for each a ∈ D bounded below on both sets, let ma = min(infp ∈ Pa⋅p, infq ∈ Qa⋅q). The completed receiver shall denote the intersection of a⋅x ≥ ma, omitting unbounded directions. In NNC topology the inequality shall be strict exactly when no point of either operand attains ma.
Candidates shall be captured before support queries can normalize their caches. Precision may depend on redundant directions and materialized descriptions; no minimal output description is required. The result shall contain the polyhedral hull and be contained in the envelope for the same entry descriptions. Empty shall be neutral, self-aliasing shall preserve the value, and a distinct source shall preserve its represented value. Ambient dimension and topology shall be preserved. Incompatible dimensions or topologies shall raise std::invalid_argument before querying or normalizing either operand.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may change materialized descriptions while preserving represented values. Resource and arithmetic exceptions shall obey that common contract.
-
7. Comparison of finite rational support bounds PPL-SPEC-001678 For finite bounds with positive denominators, polyhedron_join_compare_bounds shall return a negative, zero or positive integer exactly when the first quotient is smaller than, equal to or greater than the second. Equal denominators shall compare numerators without products; unequal numerator signs shall compare signs without products. Otherwise cross-products shall be compared under the selected coefficient profile's intermediate-range conditions. Inputs shall be preserved.
-
Incoming link from: 4. C generated domain transformations1
1. Exact Minkowski sum of polyhedra PPL-SPEC-001664 For entry operands P, Q ⊆ Rn, minkowski_sum_assign(y) shall replace the receiver by exactly P + Q = {p + q ∣ p ∈ P, q ∈ Q}. Ambient dimension and the receiver's closed or NNC topology shall be preserved. Empty in either operand shall yield empty; two nonempty zero-dimensional operands shall yield the zero-dimensional universe. Dimensions and topologies shall agree, otherwise std::invalid_argument shall be thrown before changing the represented value of the receiver. Self-aliasing shall use the entry operand twice. A distinct operand shall preserve its represented value.
Excluded NNC boundaries shall retain their membership meaning. The represented result shall be independent of whether constraints or generators were initially materialized. No particular redundant or minimized description is required.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logical cache normalization may preserve the mathematical value while changing its materialized representations. No general rollback after an arithmetic or resource exception is required beyond that common contract.
-
1. Polyhedral constraint addition and refinement PPL-SPEC-001338 The rvalue add_constraints overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Adding an admitted constraint or system shall compute its exact conjunction with the receiver. Closed addition shall reject strict rows with std::invalid_argument; NNC addition shall preserve their strictness. Refinement shall use the same conjunction for admitted topology-compatible rows. In a closed receiver, refinement by a strict inequality may relax it to the corresponding non-strict inequality; a false constant shall still yield empty. Trailing free dimensions shall be retained. Excess descriptor dimension shall throw std::invalid_argument. External const input shall be preserved. Recycled input may be consumed and need only remain safely destructible on return. Pending descriptions shall retain all previously added restrictions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 6. Polyhedron construction from representable congruences1
2. Polyhedral congruence addition and conservative refinement PPL-SPEC-001339 Addition shall conjoin equality congruences exactly, ignore tautologies, and set empty for contradictions. A proper congruence that is neither constant-true nor constant-false shall throw std::invalid_argument. Refinement shall conjoin equality congruences exactly and may ignore proper congruences. Bulk refinement shall recognize contradictory proper congruences; single refinement in positive ambient dimension may retain the receiver for a proper congruence, including a contradiction. In zero dimensions it shall use the congruence's truth value. Excess descriptor dimension shall throw std::invalid_argument. Const external inputs shall be preserved; recycled inputs need only remain destructible. The source and receiver may have lower and higher dimensions respectively, with trailing coordinates free.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Polyhedral generator insertion PPL-SPEC-001340 The rvalue add_generators overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Generator insertion shall extend the receiver's generator description with the supplied generators and denote that combined description exactly. Inserting points shall form their polyhedral hull with the receiver; rays and lines shall extend recession directions and NNC closure points shall extend closure support without themselves acquiring membership. Empty input shall be a no-op. If the receiver is empty, a nonempty insertion shall contain an included point or throw std::invalid_argument. Closed receivers shall reject closure points; excess descriptor dimension shall be rejected, both by std::invalid_argument. Const external sources shall retain their values. Recycling may consume storage; its source need only remain destructible.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Exact polyhedral intersection PPL-SPEC-001341 For equal dimensions and compatible topologies, intersection shall replace the receiver by its exact intersection with the operand, including strict NNC boundaries. Self-intersection shall preserve the value. Empty shall be absorbing and universe neutral. Incompatible dimensions or topologies shall throw std::invalid_argument before mutation. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Polyhedral hull and exact-union recognition PPL-SPEC-001342 Hull assignment shall return the least polyhedron of the receiver's topology containing both operands; upper_bound_assign shall be equivalent. The closed hull may add limiting boundary points that the convex hull excludes. The same-type *_if_exact variants shall return true and assign the hull exactly when the set union is already representable as one polyhedron of that topology. On false they shall preserve the receiver's set. Dimension/topology mismatches shall throw std::invalid_argument. A distinct operand shall retain its value; self-hull shall preserve the receiver.
Ordinary hull assignment shall leave the existing caches intact for a self join or for operands that have matching complete current descriptions of the same kind. Matching shall compare ordered stored rows and the pending boundary. A current description is complete when the opposite description has no pending rows.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Polyhedral enclosure of set difference PPL-SPEC-001343 Difference assignment shall return the smallest polyhedron of the receiver's topology containing the set-theoretic difference of the entry receiver and operand. The closed variant shall close the convex polyhedral difference where needed. It shall not claim that the result excludes every operand point. Empty difference shall return empty. difference_assign shall be equivalent to poly_difference_assign. Dimension/topology mismatch shall throw std::invalid_argument; a distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
7. Polyhedral context-preserving simplification PPL-SPEC-001344 For compatible operands, simplification shall return a polyhedron containing the entry receiver and having the same intersection with the context. A false result shall certify that this intersection is empty; true shall not alone establish nonemptiness. The context shall preserve its value. The operation need not preserve the receiver outside the context or return a unique simplification. Dimension/topology mismatch shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 5. Polyhedron internal status signed-keyword loading and rejection1
1. Reloadable polyhedral ASCII descriptions PPL-SPEC-001373 ascii_dump shall write a reloadable description including ambient dimension, topology, authoritative and pending descriptions, status and saturation data, without changing the receiver's represented set. ascii_load of a complete valid description of the receiver's topology shall restore that same set and dimension, independently of its previous value and cache history. A successful load shall leave a valid representation of the receiver's concrete topology. Invalid syntax, dimensions or topology, and descriptor rows or systems that violate their own invariants, shall return false without relying on debug assertions. Loading is specified for trusted records written by ascii_dump with a compatible build. The consistency of the descriptions with one another and with the status flags is validated by the available invariant checks. Altered records can pass those checks. Failure may leave a partially replaced receiver whose ownership permits destruction. Rollback and further queries shall not be assumed. The description headers shall agree with the status flags. A current saturation matrix shall match the processed row counts before its entries are retained. Obsolete saturation data shall be read without being restored to the loaded representation. print() and ascii_dump() shall write the corresponding representations to standard error. Human-readable pointset output shall not promise a reloadable format or stable descriptor order.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 4. Polyhedron internal status signed-keyword export.
The internal status contract shall follow 🔗 5. Polyhedron internal status signed-keyword loading and rejection.
-
2. Polyhedral memory accounting PPL-SPEC-001374 External memory accounting shall sum the dynamically owned storage reported by the constraint system, generator system and both saturation matrices, including retained capacities according to those container contracts. Total memory shall equal external memory plus sizeof(Polyhedron). Queries shall preserve values and ownership and shall not materialize new descriptions merely to compute the count. The count shall not promise process-resident size or allocator metadata.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Polyhedron representation invariant query PPL-SPEC-001375 OK(false) shall recognize admitted owned representations whose constraint/generator topologies, dimensions, status, pending boundaries and current saturation data meet the representation invariants. Current representations shall agree on the represented set, and descriptions declared minimal shall satisfy the corresponding redundancy conditions. OK(true) shall additionally require nonemptiness. A latent inconsistent constraint description may satisfy the structural query without having its empty status materialized. The query may use independent temporary normalization and may allocate or propagate supported failures; it shall preserve the receiver's value. Diagnostic wording shall not be a stable interface. The receiver's storage shall already be live and destructible; this query shall not be a validator for arbitrary corrupted addresses.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
The internal status contract shall follow 🔗 3. Polyhedron internal status consistency predicate.
-
1. Polyhedron ambient and affine dimensions PPL-SPEC-001326 space_dimension() shall return the ambient dimension without changing the represented value. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine space containing the receiver. It shall count excluded closure points only through the affine hull they share with included points, and shall preserve the represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming links from: 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Nonnegative polyhedral time elapse 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid67
2. Equivalent borrowed polyhedral descriptions PPL-SPEC-001327 Borrowed-description accessors shall require an lvalue receiver, with corresponding const && overloads deleted. Returned descriptions shall not extend the receiver's lifetime.
Constraint and generator accessors shall return receiver-owned const views whose descriptions denote exactly the receiver, including pending changes, latent emptiness, equalities and excluded NNC boundaries. Minimized accessors shall additionally remove redundant visible descriptors; they shall not promise a particular row order, coefficient scale or unique minimal representation.
A returned view, its iterators, rows and coefficient references shall be used only while the receiver lives and before an operation replaces or normalizes that representation. Logically const access to the opposite representation may invalidate them. Inputs explicitly permitted to borrow receiver coefficients shall be consumed according to the operation's entry-value contract before such invalidation. External copied descriptions shall own independent values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Polyhedral equality-congruence extraction PPL-SPEC-001328 congruences() shall return an independently owned system of equality congruences satisfied by every receiver point. minimized_congruences() shall return a nonredundant equality system defining exactly the receiver's affine hull, or an inconsistent system for empty. A nonminimized extraction need not expose equalities implied only by inequalities. Dimension shall be retained; proper periodic congruences shall not be introduced.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Exact elementary polyhedral predicates PPL-SPEC-001329 The predicates shall decide, respectively, emptiness, equality with the ambient universe, topological closedness as a real pointset, discreteness and boundedness. Discreteness shall mean affine dimension zero; thus empty and singletons shall be discrete. Empty shall be bounded and closed. NNC storage shall not itself imply that the set is nonclosed. Pending or nonminimal descriptions shall not change these decisions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 1. Selected-coordinate integer-point existence1
5. Exact integer-point existence in polyhedra PPL-SPEC-001330 contains_integer_point() shall return true exactly when the receiver contains a tuple integral in every coordinate. Empty shall return false and zero-dimensional universe true. Excluded boundary points of an NNC polyhedron shall not count. The decision shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Polyhedral set comparison and hashing PPL-SPEC-001331 For equal dimensions and compatible topologies, containment, strict containment, equality and disjointness shall decide the corresponding exact set relations. Containment shall include equality; strict containment shall exclude it. Empty-set relations shall follow set theory. Incompatible dimensions or topologies shall throw std::invalid_argument for the binary member queries; equality shall return false for unequal dimensions or topologies. Inequality expressions shall negate equality. Equal values shall have equal hashes; hash collisions shall not establish equality. Representation history shall not affect these results.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 9. Exact polyhedron relation with a congruence1
7. Exact polyhedron relation with a constraint PPL-SPEC-001332 relation_with(c) shall classify the exact intersection with the set satisfying c. It shall include is_included() exactly when every receiver point satisfies c, is_disjoint() exactly when none does, and strictly_intersects() when some satisfy it and some do not. It shall include saturates() exactly when every receiver point satisfies the boundary equality of c. Empty shall therefore be included, disjoint and saturating. Excess descriptor dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
8. Exact polyhedron relation with a generator PPL-SPEC-001333 relation_with(g) shall return subsumes() exactly when an included point belongs to the receiver, a closure point belongs to its closure, a ray is a recession direction, or a line is a two-sided recession direction, according to g's kind. Otherwise it shall return nothing(). Empty shall subsume no generator. Excess dimension shall throw std::invalid_argument; shorter generators shall use zero trailing coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
9. Exact polyhedron relation with a congruence PPL-SPEC-001334 Equality congruences shall use the constraint relation in 🔗 7. Exact polyhedron relation with a constraint. For a proper congruence, is_included() shall mean that every point satisfies it, is_disjoint() that none does, and strictly_intersects() that some but not all do. A nonempty polyhedron with a nonconstant congruence expression can be included only when the expression is constant at an admitted residue; that case shall also be saturates(). An excluded closure point shall not establish an intersection. Empty shall be included, disjoint and saturating. Constant congruences shall retain their arithmetic truth value. Excess dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
10. Polyhedral coordinate and expression boundedness PPL-SPEC-001335 For a nonempty receiver, constrains(v) shall return true exactly when it differs from its cylindrification in coordinate v. Empty shall return true for an admitted coordinate. bounds_from_above(e) and bounds_from_below(e) shall decide existence of finite upper and lower bounds for the affine expression; both shall return true for empty. A constant expression shall be bounded on every receiver. An invalid coordinate or excess expression dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
11. Exact rational polyhedral extrema and witnesses PPL-SPEC-001336 Maximization and minimization shall return true exactly when the receiver is nonempty and the expression has a finite supremum or infimum. On true, numerator and positive denominator shall represent that exact rational bound; the attainment flag shall say whether it belongs to the expression's image. The witness overload shall return an included point attaining the bound when attained, otherwise a closure point of the receiver attaining that bound. On false all scalar, flag and witness outputs shall remain unchanged. An excess expression dimension shall throw std::invalid_argument. The receiver's set and external expression shall be preserved. Bounded-coefficient generator scalar products and extremum comparisons shall use exact working arithmetic until the final translated rational extremum is reduced. Comparison-only values and unreduced numerators shall not require coefficient admission; the returned numerator and denominator shall.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
12. Constant affine-expression frequency in polyhedra PPL-SPEC-001337 frequency(e,...) shall return true exactly when the receiver is nonempty and the expression takes a single value on it. On true, frequency shall be 0/1 and the value outputs shall represent that exact rational value with positive denominator. On false all four outputs shall remain unchanged. Excess expression dimension shall throw std::invalid_argument. A nonconstant expression on a convex set shall not be reported as a positive discrete frequency.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
1. Saturation subsumption planning and paired deletion PPL-SPEC-001724 For the nonline/non-equality rows reaching the independence-planning phase of Polyhedron::simplify, each saturation bit row shall encode that source row's non-saturating counterparts. Planning shall retain the subset-minimal bit sets, retaining the lowest original planning index among exact duplicates. Incomparable sets, including equal-cardinality sets, shall remain distinct. A proper subset is a strict redundancy witness for its superset.
Deletion shall keep source rows, bit rows and cached saturation counts paired through every swap-last removal. Retained geometric rows shall be their original paired values; no order beyond the required basis layout is promised. Zero or one surviving nonbasis row shall be admitted. The caller shall supply valid common dimensions, topology and exact arithmetic under the ordinary simplify prerequisites. Arbitrary bit masks in the relation-level fixture verify planning and pairing; they do not by themselves constitute a valid dual geometric representation.
-
Incoming link from: 2. C generated domain observations1
1. Selected-coordinate integer-point existence PPL-SPEC-001670 A successfully completed contains_integer_point(integer_dimensions) shall return true exactly when the entry polyhedron contains a point whose selected coordinates are integers. Other coordinates shall remain real, and excluded NNC boundaries shall not be introduced. Empty selection shall test nonemptiness; selecting all coordinates shall have the existing 🔗 5. Exact integer-point existence in polyhedra meaning.
A selected index outside the ambient dimension shall raise std::invalid_argument before querying or normalizing the receiver. The represented value shall be preserved; logically const constraint extraction may normalize caches under 🔗 2. Equivalent borrowed polyhedral descriptions. If a required mixed feasibility encoding exceeds the MIP dimension limit, std::length_error shall be raised under 🔗 1. Exact strict mixed-integer feasibility. When the query uses the mixed-integer solver, the equality divisibility and interruption conditions in 🔗 1. Mixed integer satisfiability shall apply.
The initialization, lifetime, synchronization, arithmetic-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. No general rollback after resource or arithmetic exceptions is required beyond those common conditions and the explicit guarantees above.
-
Incoming link from: 1. Reloadable polyhedral ASCII descriptions1
5. Polyhedron internal status signed-keyword loading and rejection PPL-SPEC-001606 ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Polyhedron internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.
For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Polyhedron internal status consistency predicate. A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.
The loader shall reset its word to zero before reading the first field. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Polyhedron internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 1. Reloadable polyhedral ASCII descriptions.
-
Incoming links from: 1. Two-coordinate full-rank equality projection 2. Bounded coupled two-coordinate pair projection 3. Exact one-dimensional continuous LP projection 1. Exact rational polyhedral image 2. Exact rational polyhedral preimage 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage 5. Polyhedral expression-update relational image 6. Polyhedral expression-update relational preimage 7. Exact bounded polyhedral affine image 8. Exact bounded polyhedral affine preimage 1. Bounded Chvatal half-pair refinement 1. Bounded exact projection from current constraints 1. H79 polyhedral widening 2. BHRZ03 polyhedral widening 3. Limited H79 polyhedral extrapolation 4. Bounded H79 polyhedral extrapolation 5. Limited BHRZ03 polyhedral extrapolation 6. Bounded BHRZ03 polyhedral extrapolation 7. H79 convergence certificate values and comparisons 8. BHRZ03 convergence certificate values and comparisons 1. Exact polyhedral cylindrification 2. Polyhedral coordinate growth 3. Exact polyhedral Cartesian concatenation 4. Exact polyhedral coordinate deletion 5. Exact partial coordinate mapping of polyhedra 6. Polyhedral coordinate expansion 7. Polyhedral coordinate folding 1. Exact equality-pivot elimination 2. Bounded exact coupled constraint projection 1. Nonnegative polyhedral time elapse 2. Positive polyhedral time elapse 3. Integer-point-preserving polyhedral restriction 4. Sound bounded-integer wrapping in polyhedra 5. Exact polyhedral topological closure 1. Sound polyhedral filtering by interval linear forms 2. Sound polyhedral image of interval linear forms 3. Polyhedral refinement of a floating interval store 1. HH95 closed-polyhedron edge extrapolation 1. HPW01 closed-polyhedron extrapolation 1. Polyhedral envelope from entry constraint descriptions 3. Exact support queries for polyhedral approximations 6. Weak join with exact directional bounds and NNC attainment 1. Exact Minkowski sum of polyhedra 1. Polyhedral constraint addition and refinement 2. Polyhedral congruence addition and conservative refinement 3. Polyhedral generator insertion 4. Exact polyhedral intersection 5. Polyhedral hull and exact-union recognition 6. Polyhedral enclosure of set difference 7. Polyhedral context-preserving simplification 1. Reloadable polyhedral ASCII descriptions 2. Polyhedral memory accounting 3. Polyhedron representation invariant query 1. Polyhedron ambient and affine dimensions 2. Equivalent borrowed polyhedral descriptions 3. Polyhedral equality-congruence extraction 4. Exact elementary polyhedral predicates 5. Exact integer-point existence in polyhedra 6. Polyhedral set comparison and hashing 7. Exact polyhedron relation with a constraint 8. Exact polyhedron relation with a generator 9. Exact polyhedron relation with a congruence 10. Polyhedral coordinate and expression boundedness 11. Exact rational polyhedral extrema and witnesses 12. Constant affine-expression frequency in polyhedra 1. Selected-coordinate integer-point existence 2. Dimensioned empty and universe polyhedra 3. Owned polyhedron copying, assignment and exchange 4. Polyhedron construction from constraints 5. Polyhedron construction from generators 5. Polyhedron construction from generators 6. Polyhedron construction from representable congruences 7. Closed and NNC value conversion 8. Polyhedron conversion from boxes 9. Polyhedron conversion from difference and octagonal shapes 10. Polyhedral affine hull of a rational grid77
1. Polyhedral values, coefficient profile and valid use PPL-SPEC-001316 C_Polyhedron shall represent a rational topologically closed convex polyhedron in Rn. NNC_Polyhedron shall additionally admit excluded boundary points. A constraint description shall denote its conjunction of affine equalities and admitted non-strict or strict inequalities. An NNC generator description shall denote sums of real line directions, nonnegative ray directions and convex combinations of points and closure points, with strictly positive total weight on included points. The empty generator system shall denote empty. A nonempty generator system shall contain an included point. Coordinates shall be real even when all stored coefficients are integral.
coefficient_type shall be the configured Coefficient. Every intermediate coefficient operation shall meet that profile's range and resource conditions. In bounded profiles, double-description conversion shall evaluate incidence products and complete row combinations exactly, cancel each new geometric row's common positive factor, and then admit its stored coefficients. Unreduced products need not fit the coefficient profile; a primitive row that does not fit may raise the profile's arithmetic exception. This projective normalization shall preserve the complete augmented row, including NNC epsilon coordinates, and shall not rescale integer-lattice periods. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors and streams shall remain live and valid for their uses. Output objects shall be independently writable and shall not alias one another or input storage unless an operation explicitly permits that aliasing.
Independent objects shall own independent values. Uses that can change caches shall be externally synchronized against other uses of the same object. Unsuccessful construction shall release acquired resources. Supported numerical and resource exceptions may propagate; an existing object's surviving ownership shall permit destruction, without a general rollback or further-query guarantee.
-
2. Dimensioned empty and universe polyhedra PPL-SPEC-001317 Construction from n and kind shall create exactly EMPTY or UNIVERSE in dimension n. Default construction shall create the zero-dimensional universe, containing the unique empty tuple. Empty shall contain no point in every dimension. max_space_dimension() shall report the structural limit; an oversized or reserved dimension shall throw std::length_error before allocation proportional to that dimension. The structural limit shall not promise resource availability for every smaller request.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
3. Owned polyhedron copying, assignment and exchange PPL-SPEC-001318 Same-type copying and assignment shall preserve the source value, ambient dimension and topology while giving the target independent ownership. Assignment shall return its receiver by reference, support self-assignment and permit a change in dimension. The copy-constructor complexity argument shall not change its exactness. Destruction shall release owned resources without throwing. m_swap and swap shall exchange complete values, dimensions and cached representations of topology-compatible objects, including self-exchange. Topology-incompatible exchange shall throw std::invalid_argument before exchange. Cross-topology assignment shall follow 🔗 7. Closed and NNC value conversion.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
4. Polyhedron construction from constraints PPL-SPEC-001319 Construction from a constraint system shall inherit its ambient dimension and represent exactly its conjunction. NNC construction shall preserve strict boundaries. Closed construction shall reject every strict inequality with std::invalid_argument, even if redundant; NNC-encoded non-strict rows shall be accepted without changing their meaning. Empty conjunction shall denote universe. Contradictory conjunction shall denote empty. The const-input form shall preserve its external source. The non-const rvalue form may consume source storage; on either return its source need only remain safely destructible. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
5. Polyhedron construction from generators PPL-SPEC-001320 Construction from a generator system shall inherit its ambient dimension and denote its generator interpretation in 🔗 1. Polyhedral values, coefficient profile and valid use. An empty system shall create empty. A nonempty system without an included point shall throw std::invalid_argument. Closed construction shall reject closure points, including redundant ones; NNC construction shall retain their excluded boundary meaning. Const-input construction shall preserve its external source. Recycling may consume source storage, which need only remain destructible on return. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
6. Polyhedron construction from representable congruences PPL-SPEC-001321 Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion PPL-SPEC-001322 Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
8. Polyhedron conversion from boxes PPL-SPEC-001323 Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
9. Polyhedron conversion from difference and octagonal shapes PPL-SPEC-001324 Construction from a bounded-difference or octagonal shape shall preserve the source's real pointset and ambient dimension exactly in either topology. Every represented finite bound shall retain its coefficient-profile value; unbounded entries shall add no constraint. The complexity argument shall not change precision. Structural dimension overflow shall throw std::length_error. Source values shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
10. Polyhedral affine hull of a rational grid PPL-SPEC-001325 Construction from a grid shall preserve dimension and return empty for an empty source; otherwise it shall return the exact affine hull of the source, with all periodic restrictions removed and all affine equalities preserved. Both target topologies shall represent the same closed affine space. The complexity argument shall not reduce this guarantee. Source value shall be preserved, and structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
-
1. Generic powerset construction and ownership PPL-SPEC-001380 Default construction shall create the empty collection. Construction from d shall store one copy of d; bottom may remain stored until reduction. Copying and assignment shall preserve the stored base-domain values and permit independent later mutations. Assignment shall return the receiver and support self-assignment. Exchange shall swap the entire collection and reduction state; self-exchange shall preserve the value. Destruction shall release owned storage.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Generic powerset entailment and equality PPL-SPEC-001381 definitely_entails(y) shall return true exactly when every stored receiver element entails some stored element of y. is_bottom shall reduce and test whether no disjunct remains. is_top shall reduce and test for the singleton top element. Equality shall compare the reduced collections up to order and base equality; inequality shall negate equality. This is powerset-domain equality, which may distinguish collections with equal unions. These operations may perform lazy reduction and invalidate removed-element iterators.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Generic powerset traversal and erasure PPL-SPEC-001382 size and empty shall report stored collection cardinality without requiring semantic reduction. Forward and reverse iterators shall visit the stored disjuncts in list order and reverse list order, respectively. Iterator dereference shall expose a const base element. drop_disjunct shall erase a valid dereferenceable iterator and return its successor. drop_disjuncts shall erase a valid half-open range; clear shall erase all elements. Erasure shall invalidate erased-element iterators; operations that replace or reduce the collection may invalidate additional iterators. End iterators shall not be dereferenced or passed as single-element erasure positions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. The iterator adapter protocols in 🔗 1. Read-only iterator types, borrowed positions and value operations, 🔗 2. Read-only iterator element identity and const access and 🔗 3. Read-only iterator traversal and interoperable equality shall apply.
-
4. Omega reduction of generic powersets PPL-SPEC-001383 omega_reduce shall remove bottom disjuncts and base-entailment redundancies, preserving the represented union and leaving no distinct pair related by base entailment. Equal disjuncts shall retain one representative. Repeated reduction shall preserve the value. is_omega_reduced shall report or establish whether that nonredundancy condition holds, without removing elements. Reduction shall not promise a unique geometric decomposition.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Disjunctive insertion and exact powerset union PPL-SPEC-001384 add_disjunct(d) shall append a value copy and denote union with d. least_upper_bound_assign and upper_bound_assign shall compute exact disjunctive union, with redundant elements removable. Self-union shall preserve the value. upper_bound_assign_if_exact shall perform that same operation and return true. No convexification shall be implicit in these union members.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Pairwise lifting and generic powerset meet PPL-SPEC-001385 pairwise_apply_assign(y,f) shall apply f to each ordered pair of reduced receiver and y elements, using an independent receiver copy for each pair, and collect the non-bottom results. meet_assign shall use the base meet in that lifting. If base meet represents intersection exactly, the result shall denote exact intersection of the input unions; otherwise its soundness and precision shall follow that base operation. Empty collections shall give empty and self-meet shall be supported.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
7. Explicit powerset collapse PPL-SPEC-001386 collapse() shall replace a nonempty collection by an iterated base-domain upper bound, leaving at most one disjunct. Empty shall remain empty. collapse(k) shall require k > 0, reduce first, and leave at most k disjuncts by joining the suffix into the last retained element when necessary. The resulting union shall contain the input union; exactness shall hold only when the selected base joins are exact. No minimal decomposition or optimal choice of merged elements shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
8. Generic powerset diagnostics and memory accounting PPL-SPEC-001387 OK(disallow_bottom) shall check base invariants and any asserted reduction condition; when requested it shall also reject stored bottom members. Memory queries shall return lower bounds on managed and total bytes; total shall equal sizeof(*this) plus external bytes. Shared base storage may be counted more than once. Stream output shall return its stream and display false for bottom, true for top or a sequence of braced disjuncts. Display and invariant checks may trigger base queries or reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Componentwise product image PPL-SPEC-001452 affine_image shall apply the base transfer relation described in 🔗 1. Lifted powerset image to both components and mark reduction unknown. The resulting intersection shall soundly contain the image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Componentwise product preimage PPL-SPEC-001453 affine_preimage shall apply the base transfer relation described in 🔗 2. Lifted powerset preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Componentwise product generalized image PPL-SPEC-001454 generalized_affine_image shall apply the base transfer relation described in 🔗 3. Lifted powerset generalized image to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Componentwise product generalized preimage PPL-SPEC-001455 generalized_affine_preimage shall apply the base transfer relation described in 🔗 4. Lifted powerset generalized preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Componentwise product bounded image PPL-SPEC-001456 bounded_affine_image shall apply the base transfer relation described in 🔗 5. Lifted powerset bounded image to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Componentwise product bounded preimage PPL-SPEC-001457 bounded_affine_preimage shall apply the base transfer relation described in 🔗 6. Lifted powerset bounded preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
7. Product expression-to-expression affine relations PPL-SPEC-001458 Expression overloads shall apply the base generalized relation in 🔗 7. Lifted expression-to-expression affine relations to each component and mark reduction unknown. The resulting intersection shall soundly contain the corresponding image or preimage of the old product intersection, with no extra precision claim based only on component exactness. Overlapping expression supports, admissible relation symbols, dimensions and topology shall follow both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Product component widening and convergence scope PPL-SPEC-001463 The set represented by y shall be contained in the set represented by the receiver. Default widening shall reduce both operands and mark the receiver's reduction unknown. If a reduced receiver component does not contain the corresponding reduced component of y, replace that receiver component with their upper bound before component widening. Both default component widenings shall receive the same optional token budget. The resulting intersection shall contain both input products.
widening_assign_with(y, widening1, widening2, tokens) shall perform the same input reductions and receiver reduction-state invalidation. The reduced component pairs shall already meet the selected preconditions. It shall invoke widening1 on the first pair of components before invoking widening2 on the second pair. Both shall receive the same optional token pointer. Callables shall be forwarded with their supplied value categories, without copying or storing them. They shall meet the selected component widening's preconditions and preserve its ambient dimension and upper-bound guarantees.
If a component callable throws, the exception shall propagate, subsequent callables shall not be invoked, and earlier component and token effects shall remain. The receiver shall be marked for lazy reduction. No whole-operation rollback shall be promised. The existing widening_assign member shall remain unambiguous when taking its address.
For direct and smash policies, the component convergence guarantees shall be preserved under their iteration and finite-delay conditions. For information- sharing policies, this operation shall be treated as componentwise extrapolation unless a separate combined convergence proof is supplied: reduction between iterations can restore discarded bounds. To use component convergence with sharing operations, a separate direct-product widening history shall remain free of sharing reduction, with reduced copies used for information exchange.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Product coordinate operations PPL-SPEC-001459 Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Product concatenation PPL-SPEC-001460 Concatenation shall concatenate corresponding components in receiver- then-argument coordinate order. The resulting common dimension shall be the sum, subject to both structural limits. With exact component concatenation the intersection shall represent the exact Cartesian product of the input product sets, because the coordinate blocks are independent. Self-concatenation shall be supported. Lazy reduction state shall be retained only when both operands are already marked reduced; component limit errors may propagate without rollback.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Product descriptor addition, refinement and recycling PPL-SPEC-001448 Ordinary addition and refinement shall apply the corresponding operation to both components and mark reduction unknown. The intersection shall retain all source points satisfying the supplied restrictions, with component exactness and admission conditions. Exact-addition members shall require admission by each called component. Recycling shall first refine the nonconsuming component, then pass the system to a component advertising recycling; if neither advertises it, both shall use ordinary addition. The source may be consumed only after the other component has read it. Failure shall not promise rollback of either component or recycled input.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Product intersection PPL-SPEC-001449 Intersection shall intersect corresponding component pairs and mark reduction unknown. With exact component intersections, associativity of conjunction shall make the result the exact intersection of the represented products; approximate component intersections shall retain their soundness. Self-intersection shall be supported. Components shall have compatible ambient dimensions or throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Product component joins and component exactness PPL-SPEC-001450 Upper bound shall reduce both products, join corresponding components and mark reduction unknown. The resulting intersection shall contain both input products. The conditional member shall return true only if both component joins certify exactness; on false, the represented receiver shall remain unchanged apart from permitted reduction/cache changes. Exactness of each component join shall not imply exact union of the represented products. Self-join shall preserve value; dimension mismatch shall follow component std::invalid_argument admission.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Sound product set difference PPL-SPEC-001451 Difference shall reduce both operands and form sound approximations of (A1⧵B1)∩A2 and A1∩(A2⧵B2), then take an upper bound of the nonempty alternatives. Known-empty alternatives shall not contribute unrelated nonempty components to that join. The result shall contain the exact product difference; component subtraction and join may lose precision. Self-subtraction shall give empty. Subtracting empty shall preserve the minuend, and empty minuend shall remain empty. Dimension mismatch shall still reach the documented component exception. Mutated alternatives and joins shall be marked for lazy reduction.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Product closure and time elapse PPL-SPEC-001461 Closure shall apply each component's closure. Time elapse shall reduce both products, then time-elapse corresponding component pairs. The resulting intersection shall soundly contain the respective closure or time-elapse set of the original product. Component exactness shall not imply concrete product exactness, since closure or existential elapsed-time witnesses need not commute with intersection. Common ambient dimension and base arithmetic/admission conditions shall apply.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
6. Product integer-coordinate tightening PPL-SPEC-001462 Integer tightening shall reduce first, apply the corresponding base restriction to both components and mark reduction unknown. The result shall lie within the old product and retain every old point integral in all selected coordinates. The overload without a variable set shall select all coordinates. The complexity argument shall limit the base algorithms used; no optimal integer hull or complete integer-feasibility decision shall be promised.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Product constraint and congruence exports PPL-SPEC-001443 Constraint and congruence exports shall reduce, combine the systems exported by both components and return owned systems. The systems shall soundly overapproximate the product; neither kind alone need express all information in the intersection. Minimized constraints shall minimize their combined polyhedron using NNC topology when strict rows occur; minimized congruences shall minimize the combined grid. Returned systems shall remain independent of later product mutation.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Component-based product property tests PPL-SPEC-001444 After policy reduction, emptiness shall test whether either component is empty; boundedness and discreteness shall test whether either component has the property; topological closure shall test whether both do. Universe shall test whether both components are universe. Disjointness shall test whether corresponding first components or corresponding second components are disjoint. Directional bound tests and constrains shall use the logical OR of the two component results. Except for exact universe characterization, these shall retain their stated component scope: a negative emptiness, boundedness, discreteness or disjointness result shall not refute the corresponding concrete property of the intersection. Component dimension/variable admission shall apply; invalid dimensions shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Component-based product descriptor relations PPL-SPEC-001445 Constraint and congruence relations shall reduce, then include each is_included, is_disjoint or saturates flag when either component reports it. They shall not infer strict intersection from component strict intersection. Generator subsumption shall require subsumption by both components. The flags shall retain the base descriptor meanings and may be incomplete for the full intersection. Descriptor dimension incompatibility shall throw std::invalid_argument.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Component-selected product bounds and witnesses PPL-SPEC-001446 Extremum queries shall reduce and return false if a component is empty or neither component provides a directional bound; outputs shall then remain unchanged. Otherwise maximization shall choose the smaller available component supremum and minimization the larger component infimum. Equal bounds shall prefer a component not attaining that bound. Success shall return its rational bound with positive denominator, attainment flag and, for witness overloads, its corresponding point or closure point. Neither success, attainment nor the witness shall establish nonemptiness or optimum attainment in the product intersection; the selected witness need not satisfy the other component. Comparison of representable component bounds shall be exact even when their cross-products exceed the configured coefficient range. Expression dimensions and independently writable outputs shall satisfy both component contracts.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Product component order and equality PPL-SPEC-001447 Containment shall reduce both operands and require containment for both corresponding component pairs. Strict containment shall additionally require strictness for at least one pair. Equality shall require both component equalities after reduction; inequality shall negate it. These are component-order and equality tests, which may distinguish equal represented intersections. Componentwise strictness shall not prove strictness of concrete intersection inclusion. Dimension admission shall follow the component tests.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Direct and smash reduction policies PPL-SPEC-001438 No_Reduction shall leave both components unchanged. Smash_Reduction shall set both components empty when either is empty, otherwise preserve them. Both policies shall preserve common dimension and the represented intersection. Policy objects shall be stateless, default-constructible and destructible. Direct policy application shall require valid same-dimensional components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Constraint-sharing product reduction PPL-SPEC-001439 Constraint reduction shall propagate known emptiness, then refine the first component with the second's minimized constraints and the second with the resulting first component's minimized constraints. A newly detected empty component shall make both empty. Every shared constraint shall be implied by its donor and refinement shall preserve all points satisfying it, so the represented intersection and dimension shall be preserved. Application shall not promise a full reduced-product fixed point or exact concrete emptiness. Policy construction and destruction shall have no mathematical effect.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Congruence-sharing product reduction PPL-SPEC-001440 Congruence reduction shall propagate known emptiness and process the minimized congruences of each donor component. Equality congruences shall refine the other component. For a proper congruence e ∈ mZ, finite bounds from the other component shall identify admitted hyperplanes e = km. If no such hyperplane can intersect, both shall become empty; if exactly one can intersect, its equality shall refine both. Otherwise the procedure may leave them unchanged. Strict endpoint exclusion and signed remainders shall be respected. The represented intersection and common dimension shall be preserved; complete reduction shall not be promised. Donors shall provide minimized valid congruences, and bound arithmetic shall meet all intermediate coefficient conditions.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Shape-preserving product reduction PPL-SPEC-001441 Shape-preserving reduction shall first perform congruence reduction, then use frequencies from one component to tighten the other's inequality bounds to admitted affine-expression values, in both directions. It shall share resulting equalities using constraint reduction. Each tightening shall be implied by the other component, preserving the represented intersection. Except for equalities introduced by congruence reduction and subsequent constraint sharing, tightening shall retain inequality directions and adjust bounds. A strict inequality whose boundary is an admitted discrete level shall advance by one full positive period even when its closest residue is zero. A strict inequality with a constant zero image shall exclude the whole intersection. Unsupported frequency queries may leave restrictions unchanged. Common dimension and all intermediate arithmetic preconditions shall hold.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Lazy product reduction and component views PPL-SPEC-001442 reduce() shall apply a default-constructed policy object when reduction is unknown, mark the pair as reduced and return true; when already marked it shall return false without invoking the policy. That flag shall record policy application rather than a mathematical fixed-point proof. domain1 and domain2 shall first reduce and return borrowed const component references. A caller shall not retain a component coefficient or representation view across another operation that can reduce, mutate or replace the component, except the explicitly supported entry-denominator borrowing in the affine wrappers.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Partially reduced product values and policy aliases PPL-SPEC-001433 A product shall own two same-dimensional components and denote their intersection, independently of how much information the selected policy has exchanged. Domain_Product<D1,D2> shall provide direct, smash, constraints, congruences and shape-preserving aliases selecting the corresponding reduction classes. Componentwise equality, strictness, emptiness and extrema shall have the explicitly stated query scope below, rather than decide all properties of the concrete intersection. Supported component domains shall satisfy the requirements of every operation and reduction policy actually instantiated.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
2. Dimensioned product construction and extent PPL-SPEC-001434 Dimension construction shall create two empty or two universe components in n dimensions; default shall be zero-dimensional universe. The structural limit shall be the minimum component limit. An oversized or reserved dimension shall throw std::length_error before extent-proportional storage. space_dimension shall return their common ambient dimension. affine_dimension shall reduce and return the smaller component affine dimension, which need not equal the intersection's affine dimension.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
3. Product copying, assignment and exchange PPL-SPEC-001435 Same-type copying and assignment shall preserve both component values and the lazy reduction state. Later mutation shall be independent. Assignment shall support self-assignment and return its receiver. The copy complexity argument shall not change exactness. Exchange shall swap both components and reduction state together, including dimension; self-exchange shall preserve the value. Destruction shall release both components.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
4. Product construction from descriptor systems PPL-SPEC-001436 Constraint-system and congruence-system construction shall construct both components from the same input and mark reduction unknown. The resulting intersection shall contain the described set and shall be exact when the combined component constructions represent it exactly. Const sources shall be preserved. Nonconst overloads shall permit the documented second-component recycling while constructing the first from an unconsumed view. Admission and exceptions shall follow both component constructors.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
5. Conversions to a product PPL-SPEC-001437 Simple-domain conversion shall construct both destination components from the source, preserve dimension and contain its represented set. The result shall be exact when the component intersection preserves all source information. Polyhedron conversions shall pass the supplied complexity class; Grid, Box, BD and octagon overloads shall use their component constructors' default complexity. Cross-product conversion shall convert both source component views into destination products and intersect those products, so restrictions contributed by either source component are retained to the precision of the destination. Source values shall remain unchanged apart from permitted cache/reduction changes.
The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.
-
1. Read-only iterator types, borrowed positions and value operations PPL-SPEC-001595 iterator_to_const<Container> shall store a Container::iterator; const_iterator_to_const<Container> shall store a Container::const_iterator. Both wrappers shall expose the five iterator traits of Container::const_iterator. Admitted containers shall provide bidirectional mutable and constant iterators, with constant-iterator reference and pointer types providing ordinary const element references and pointers. Each selected underlying iterator operation shall be well-formed and satisfy its own lifetime, range and synchronization conditions.
Default construction shall value-initialize the underlying position. Copying and assignment shall preserve the borrowed position without copying an element or taking ownership of the sequence. Assignment shall return a reference to its target. Conversion from a mutable wrapper to its constant counterpart shall preserve the position and element identity; the reverse conversion shall not be provided. Construction from an underlying position shall remain restricted to the declared friends. Destruction shall destroy the stored iterator without destroying the borrowed container or elements. Underlying exceptions shall propagate with the underlying operation's state guarantees and normal completed-subobject cleanup.
Position validity and invalidation shall follow the underlying container. Singular positions shall be used only for operations admitted for the underlying singular iterator; element access and movement shall require valid range positions. The adapters shall impose no numerical initialization prerequisite of their own. Element operations shall retain their prerequisites.
-
Incoming link from: 3. Generic powerset traversal and erasure1
2. Read-only iterator element identity and const access PPL-SPEC-001596 At a valid dereferenceable position, operator* shall return the underlying element as the declared constant reference, and operator-> shall return a pointer to that same element as the declared constant pointer. Both mutable-container and constant-container wrappers shall prevent direct mutation through their exposed reference and pointer types. Access shall preserve the stored position and the identity of the borrowed element, without copying it. The valid-use conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply. An end or singular iterator shall not be dereferenced.
-
Incoming link from: 3. Generic powerset traversal and erasure1
3. Read-only iterator traversal and interoperable equality PPL-SPEC-001597 Prefix increment and decrement shall move the stored position by one underlying step and return a reference to the same wrapper. Postfix forms shall make the same movement and return a wrapper holding the preceding position. Copies shall thereafter move independently. Forward and reverse traversal shall follow the underlying sequence order without modifying its elements.
Equality shall compare the underlying positions; inequality shall be its Boolean complement. Mutable and constant wrappers of the same container type shall support both operand orders, with comparison through the corresponding constant position. Comparisons shall require positions in an underlying comparison domain, including the same sequence when required by that iterator. Movement shall remain within the underlying bidirectional range: increment of its end and decrement of its begin shall not be admitted. Decrement of end shall be admitted for a nonempty range. The conditions of 🔗 1. Read-only iterator types, borrowed positions and value operations shall apply.
-
5. Constraint-relation textual output and stream failures PPL-SPEC-000545 Stream output and ascii_dump(s) shall emit exactly the stored assertion names in the order IS_DISJOINT, STRICTLY_INTERSECTS, IS_INCLUDED, SATURATES, separated by `` & `` when more than one is present. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 1. Constraint-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
-
10. Generator-relation textual output and stream failures PPL-SPEC-000550 Stream output and ascii_dump(s) shall emit exactly the stored assertion as SUBSUMES for the singleton subsumption assertion. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 6. Generator-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
-
Incoming links from: 1. Internal geometric-row sequences and valid bookkeeping 1. Internal rectangular coefficient matrices and valid use 1. Internal rectangular coefficient matrices and valid use 5. Row assignment, whole-row swaps and destruction 16. GCD normalization of raw coefficient vectors 18. Whole-row linear combinations across row storage 21. Dense-row ASCII export and reload 22. Sparse-row ASCII export, stored entries and validation8
1. Internal coefficient-row values and valid use PPL-SPEC-000281 Dense_Row and Sparse_Row shall represent a finite coefficient vector (a0, …, an − 1) with independently declared logical size n. Size zero shall be valid. A row shall impose no mandatory constant or hidden coordinate. The affine expression interpretation shall instead belong to 🔗 1. Affine value, numerical prerequisites and shared zero. Dense storage shall retain every logical position; sparse storage shall permit implicit and explicitly stored zeroes with the same coefficient value, while exposing the stored-position distinction.
Operations shall require live valid rows, admitted sizes and indices, active library initialization where coefficient constants or scratch storage are used, and synchronization under 🔗 3. Thread initialization, default state and finalization. Successful arithmetic shall require all evaluated coefficient steps/results to be representable in the selected profile. Allocation/numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete row; unchanged sources shall survive failure. A modified target shall remain destructible, without a universal rollback guarantee.
-
2. Dense zero construction, size and reserved capacity PPL-SPEC-000282 Default construction shall create a zero-sized row. Sized construction shall create exactly the requested number of zero coefficients. Construction with explicit capacity shall require size <= capacity <= max_size() and reserve that capacity without making additional logical coefficients. The size-only form shall initially reserve its requested size. max_size() shall return numeric_limits<size_t>::max() / sizeof(Coefficient); resource availability shall remain a separate condition from this reported limit.
-
4. Owning row copies, sized copies and storage conversion PPL-SPEC-000284 Ordinary row copies shall preserve size and every coefficient, own independent storage and survive source mutation/destruction. Dense copies shall retain source capacity unless supplied another admitted capacity. A copy with specified size/capacity shall retain the common source prefix, discard removed positions and zero-extend added positions. Explicit dense capacity shall be at least result size; sparse compatibility capacity shall be ignored. Cross-storage construction shall preserve that same complete coefficient vector. Dense-to-sparse construction may omit zero entries; sparse-to-dense construction shall materialize implicit zeroes. Const-rvalue forms selecting copy constructors shall retain the source value.
-
5. Row assignment, whole-row swaps and destruction PPL-SPEC-000285 Successful copy assignment shall replace the complete vector, return the target, preserve its distinct source and admit self-assignment. Cross-storage assignment shall preserve values while retaining the target's row type. Copies shall remain independently mutable. Whole-row swaps shall exchange full vectors, including their sizes and owned storage; mixed dense/sparse swaps shall convert storage while exchanging vector values. Self-swaps shall retain value. iter_swap for two vector positions shall swap the owning dense rows. Destruction shall release owned coefficient and backing storage.
Replacement allocation failure shall preserve the source; target-state guarantees shall follow 🔗 1. Internal coefficient-row values and valid use.
For trivially destructible coefficient types, Dense_Row transfer construction from a non-const rvalue shall acquire the complete owned storage without allocating or throwing and leave its source empty and reusable. References to dense elements shall follow their storage; distinct-owner transfers shall invalidate element iterators.
For other coefficient types, dense construction from rvalues shall retain independent, source-preserving copy behavior. Dense assignment from rvalues shall retain independent, source-preserving copy behavior for every coefficient type; self-assignment shall preserve the value.
Sparse_Row construction and assignment from rvalues shall retain independent, source-preserving copy behavior, including logical extent and explicit stored zeroes. Its copy declarations shall prevent new backing-tree transfer operations from implicitly changing the row-level interface.
-
6. Dense resizing and reuse of reserved storage PPL-SPEC-000286 Resizing shall retain the common prefix, discard removed coefficients and initialize newly introduced coefficients to zero. Removed values shall not reappear after regrowth. resize(n) shall retain current capacity when sufficient. Otherwise, with prior capacity c and maximum capacity M, it shall grow capacity to max(n, min(M, c + floor(c/2))), evaluating the sum without overflow. Thus construction from zero capacity and large one-shot expansions shall allocate the requested extent; repeated small growth shall reserve fewer than half as many spare slots as the requested extent at each reallocation. Retaining capacity after shrinking or an explicit reservation shall remain permitted. resize(n,c) shall require admitted n <= c and set capacity exactly c; zero capacity shall release backing storage. shrink(n) shall require n <= size() and retain capacity. expand_within_capacity(n) shall require size() <= n <= capacity and add zeroes without replacing backing storage. Position changes/reallocation shall invalidate affected borrowed references and iterators.
-
12. Insertion and replacement with argument-value independence PPL-SPEC-000292 Insertion shall require i < size() and return the indexed position. An explicit value shall replace that coefficient using its entry value, including when borrowed from another entry of the same row. No duplicate key shall be created. A value-free insertion shall retain an existing value, or create a stored zero in a missing sparse position. Dense value-free insertion shall return the existing logical slot unchanged. Hints shall have the validity and result-independence specified by 🔗 11. Indexed row search, lower bounds and hint independence. Sparse insertions may reorganize storage and invalidate earlier borrowed positions.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
-
14. Coordinate insertion and deletion preserve coefficient association PPL-SPEC-000294 add_zeroes_and_shift(n,i) shall require i <= size() and admitted nonoverflowing result size/keys. It shall insert n zero positions before i and shift every old position at or after i upward by n. Zero insertion shall preserve the vector. delete_element_and_shift(i) shall require i < size(), remove just that coefficient and shift all later indices down by one. Dense deletion shall retain capacity. Implicit sparse zeroes shall stay implicit unless already explicitly represented. Dense shifts/deletions and sparse deletions shall invalidate prior iterators. Sparse insertion of zero positions shall preserve stored-entry iterator values and update affected indices, retaining their coefficient association.
For erase_and_reindex(index_map,new_size), index_map shall contain size() entries. Selected coordinates shall be marked not_a_dimension(); the remaining images shall enumerate [0,new_size) in order. The result shall be the stable subsequence of retained coefficients with the specified size. Dense rows shall retain capacity. Sparse rows shall retain surviving explicit stored zeroes without materializing implicit zeroes. The operation shall invalidate ordinary iterators and coefficient references. If a sparse erasure allocation fails, the row shall remain valid at its old size and numbering, with possibly some selected stored entries already erased.
-
21. Dense-row ASCII export and reload PPL-SPEC-000301 ascii_dump(s) shall emit the logical size followed by all coefficients in index order, using size n a0 ... syntax and a terminating newline. ascii_load(s) shall accept a complete compatible representation with an admitted size and representable coefficients, replace size/values and return true. Size zero shall be admitted. A malformed keyword, missing size or missing/malformed coefficient shall return false; trailing input shall be left for subsequent parsing. No rollback shall be promised after failure; owned resources and surviving target destruction shall follow 🔗 1. Internal coefficient-row values and valid use. The zero-argument dump and print forms shall write this representation to the designated diagnostic stream.
-
22. Sparse-row ASCII export, stored entries and validation PPL-SPEC-000302 Sparse ASCII export shall report logical size, stored-element count and ascending indexed coefficients, including explicitly stored zeroes, in size n elements k [ i ]= a ... syntax with a terminating newline. Loading a complete compatible representation shall replace logical extent and stored entries and return true. Size zero with zero stored entries shall be valid. Malformed or missing keywords, counts, indices and coefficients, counts greater than the logical extent, and repeated, out-of-order or out-of-extent indices shall report false rather than successful construction of an invalid row. Trailing input shall remain available. No rollback shall be promised on failure; target ownership shall follow 🔗 1. Internal coefficient-row values and valid use. Diagnostic dump/print forms shall use this reloadable representation.
-
23. Row invariants and memory-accounting queries PPL-SPEC-000303 OK() shall report satisfaction of row structural invariants without changing values. Dense invariants shall include size <= capacity <= max_size() and backing-storage consistency; OK(n) shall additionally compare logical size with n. Sparse invariants shall require every stored index below logical size; its compatibility OK(capacity) shall ignore that argument.
Memory queries shall return nonnegative accounting estimates without changing values. For both row types, total shall equal sizeof(row) + external. Dense external accounting shall include actual reserved coefficient slots and external storage owned by live coefficients. Sparse external accounting shall follow its coefficient tree. Compatibility capacity arguments shall not change the reported current storage; neither query shall promise exact allocator bookkeeping or available memory.
-
Incoming links from: 1. Transition encoding and ranking interpretation 2. MS termination test outcomes 3. MS affine ranking witnesses 4. Normalized MS affine ranking spaces 5. MS affine quasi-ranking spaces 6. PR termination test outcomes 7. PR affine ranking witnesses 8. PR affine ranking spaces 1. Exact strict mixed-integer feasibility witnesses 1. Mixed integer constraint and dimension additions 2. Mixed integer integrality additions 3. Mixed integer objective and mode updates 1. Reloadable mixed integer solver representations 2. Mixed integer diagnostics, display and storage 1. Mixed integer satisfiability 1. Mixed integer satisfiability 2. Mixed integer optimization outcomes 3. Mixed integer objective evaluation 4. Mixed integer feasible witness access 5. Mixed integer optimal witnesses and values 6. Mixed integer pricing controls 7. Point-coordinate integrality predicate 8. Fractional branching-variable selection 1. Integer-supported strict MIP admission 1. Exact strict mixed-integer feasibility 1. Strict-row support and admission kernels 1. Uniform strict-margin denominator 2. Exact general strict mixed-integer optimization 1. Mixed integer problem values 2. Trivial mixed integer construction and dimensions 3. Mixed integer construction from constraints 4. Mixed integer copying, exchange and reset 5. Mixed integer descriptor views and iterators 1. Parametric integer coordinate growth 2. Parametric coordinate selection and descriptor views 3. Parametric constraint refinement 1. Parametric solution display 2. Reloadable parametric solver representations 3. Parametric diagnostics and storage accounting 1. Parametric solver outcomes and satisfiability 1. Parametric solver outcomes and satisfiability 2. Parametric solution-tree access 3. Parametric cutting and pivot controls 4. Parametric big-parameter designation 1. Parametric tree interpretation and artificial scope 2. Parametric node guards and artificial-parameter views 3. Parametric tree ownership associations 4. Parametric tree cloning and lifetime 5. Artificial parameter construction and value operations 6. Artificial parameter persistence and diagnostics 7. Reloadable parametric tree structure 8. Parametric solution leaves and coordinate values 9. Parametric decision nodes and branches 10. Parametric tree diagnostics, display and memory 1. Parametric integer problem meaning 2. Parametric integer construction and dimensions 3. Parametric integer copying, exchange and reset57
1. Optimization and ranking valid use PPL-SPEC-001466 Solver and ranking interfaces shall use the selected coefficient profile without loss of mathematical information when every intermediate arithmetic operation meets that profile's range and exactness conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; coordinate indices shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, iterators and streams shall remain live and valid throughout each operation.
A completed mathematical result shall satisfy the applicable solver or ranking contract. Arithmetic, allocation and cancellation exceptions may propagate; exceptional completion shall not constitute a feasibility or termination conclusion. Surviving owned resources shall remain destructible, without a general rollback or further-query guarantee. Separate output coefficients shall refer to distinct writable objects and shall not alias input expression or generator storage. Borrowed views shall not survive a mutation, replacement, destruction or query that can invalidate their backing representation. Accesses that can change solver state, trees or caches shall be externally synchronized. Solver heuristics shall affect search choices rather than the meaning of successfully completed results.
-
1. Callback input protocol, lookahead and single-character putback PPL-SPEC-001573 A c_streambuf shall begin without cached input or unget history and shall release its own buffer state on destruction without owning the derived transport. A read callback shall borrow its output array for that call only, return a count in the requested range, write exactly that prefix and consume the corresponding source prefix. Positive partial results shall have the same remaining logical input and future availability as successive one-byte reads. Zero for a positive request shall be the same failure as a one-byte request in that entry state, without making later transfer availability depend on the requested size. A later client operation may succeed after such refusal.
Peeking shall retain the next byte without logically consuming it; repeated peeks shall return that byte. Single and bulk reads shall consume cached input first and then callbacks until the request is met or the callback returns zero. They shall distinguish every unsigned-byte value from EOF and return the actual count. Counts shall be nonnegative, and positive requests shall have sufficient output storage; a zero request shall access no storage or callback and preserve cached input and unget history.
A successful single or nonempty bulk read shall make its final byte available for one unget. Explicit putback shall instead supply its requested byte. Putback shall fail without changing an already pending byte; no-history unget shall fail without inventing input. Read failure may discard old history. The default callback shall provide no input. Direct streambuf operations shall propagate callback exceptions; partial effects before an exception shall not be rolled back, and a cached byte already transferred need not be restored.
-
2. Callback output, synchronization and failure propagation PPL-SPEC-001574 A c_streambuf write callback shall borrow its input array only for the call, return a count in the requested range and transfer exactly that prefix. Successive positive partial transfers shall be accepted until the request is complete or zero reports refusal. A callback result of zero for a positive request shall have the same failure and subsequent transfer availability as a one-byte request in that entry state; positive results shall preserve the same subsequent accepted byte sequences as successive one-byte writes. Positive requests shall have sufficient readable storage; counts shall be nonnegative. A zero request shall transfer nothing and call no write callback, admitting a null pointer.
Single-character output shall report the supplied byte on success and EOF on refusal. An overflow request containing EOF shall synchronize, returning non-EOF exactly when synchronization succeeds. sync() shall return the synchronization callback's result. Defaults shall refuse output and report successful synchronization. Output and synchronization shall preserve cached input and unget history. Direct operations shall propagate callback exceptions without promising rollback of previously transferred output. Standard istream/ostream state and exception masks shall govern use through those streams.
-
Incoming link from: 4. Borrowed stdio output and synchronization1
3. Borrowed stdio input and putback PPL-SPEC-001575 stdiobuf(file) shall borrow a nonnull open FILE* without closing it on destruction. The caller shall keep it open, provide permissions for requested operations, and observe stdio update-stream sequencing rules. Input shall use the file's byte sequence, distinguish every unsigned byte from EOF, and return the actual number read into the supplied prefix. Bulk counts shall be nonnegative and the supplied output array shall cover the requested count. Peeking shall leave its byte pending in the file through stdio putback. A successful read shall retain its last byte for one unget; a failed read may discard that history. Explicit putback shall request the specified byte even without prior history, using stdio's ungetc result. No-history unget shall fail without inventing a byte. Additional putback capacity beyond stdio's guarantee shall not be required. Input failures shall remain visible through EOF/short counts and the file's stdio state.
-
4. Borrowed stdio output and synchronization PPL-SPEC-001576 Under the file-lifetime and stdio sequencing conditions in 🔗 3. Borrowed stdio input and putback, bulk output through stdiobuf shall write the supplied byte prefix and return stdio's actual transferred count. Counts shall be nonnegative and the readable input array shall cover the request. Ordinary single-byte overflow shall return the stdio byte-write result. EOF overflow shall flush the file and return non-EOF exactly on success; sync() shall return the result of flushing. The adapter shall not close the file. Failures shall be observable as short counts, EOF or failed synchronization; standard ostream state and exception masks shall apply when used through an ostream. No rollback of transferred bytes shall be required.
-
6. Indirect-sort failure and cooperative interruption states PPL-SPEC-000536 Under 🔗 5. Indirect sorting establishes a distinct prefix without resizing, failures while preparing or sorting the private index sequence shall preserve every indexed value and associated record. This shall include recoverable index-storage allocation failure and exceptions from the ordering comparator. Temporary index storage shall be released on every exceptional return.
Outside library assertion evaluation, cooperative abandonment shall be checked before index preparation, at intervals of at most 1024 ordering comparisons, and again before the first indexed-value mutation. A reported cooperative interruption shall therefore preserve every indexed value and associated record. A caller-owned abandonment request shall remain set until the caller clears it; this comparison-count interval shall not imply an elapsed-time bound.
An exception from the uniqueness comparator may occur after the indexed values have been sorted. It need not preserve their former order or establish a compact distinct prefix, but shall retain live owners and the complete value permutation and paired associations. A throwing swap shall be outside the algorithm's admitted swap precondition.
-
2. Empty, default-element and fill construction PPL-SPEC-000582 Default construction shall produce an empty sequence. Size construction shall produce exactly the specified number of value-initialized values, using the vector element-initialization rules. Fill construction shall produce that many element copies of its argument, according to T copy semantics, and preserve the argument. Zero size shall be admitted. Successfully constructed elements shall belong to the new owner, and construction failure shall destroy every element already constructed for that incomplete owner. Parameterized copy construction shall construct each destination element from its corresponding const source element and the supplied additional argument, without default-constructing replacement elements. It shall preserve source order and values and clean up partial destination construction on failure.
-
3. Implicit copies, moves and destruction preserve element ownership PPL-SPEC-000583 The implicitly provided copy construction and assignment shall preserve the source sequence and create distinct element objects according to T copy semantics. Copy assignment shall admit self-assignment and return its target. For element types with independent owning copies, the copied values shall remain usable after source mutation or destruction.
The implicitly provided move construction and assignment shall transfer the source vector's storage and sequence to the target, releasing the assignment target's prior elements. Their source shall remain valid for destruction, clearing and reuse; its prior size or contents shall not be promised after a non-self move. Self-move assignment shall leave a valid owner. Destruction shall destroy all retained elements and release the allocated vector storage.
-
Incoming link from: 12. Recoverable element-construction failures preserve surviving owners1
5. Reservation transfers element owners and preserves the sequence PPL-SPEC-000585 Reservation at or below current capacity shall preserve the sequence, capacity, element locations and existing borrows. A successful larger reservation shall establish capacity at least the requested count while preserving size and every element value. Element ownership shall transfer without deep copying retained resources. For nonthrowing move construction, reservation may move-construct the retained elements directly into new backing storage, without constructing intermediate default elements. A nontrivial copy-only type whose noexcept copy satisfies the move-construction trait shall retain the swap path. Other element types shall use default-constructed live replacement slots and unqualified ordinary swaps with standard overloads available. A particular growth factor or exact capacity shall not be promised.
With the nonthrowing moves or swaps of 🔗 1. Owned element sequence and valid swapping-vector use, a recoverable allocation or replacement-element construction failure shall preserve the original sequence, capacity and element locations and release the incomplete replacement storage.
-
Incoming link from: 12. Recoverable element-construction failures preserve surviving owners1
6. Resizing retains the prefix and initializes added elements PPL-SPEC-000586 A successful resize shall establish the requested size, preserve the common prefix and discard the removed suffix. The no-argument form shall value-initialize each added element. The fill form shall initialize each added element as a copy of the argument's value on entry. A live argument borrowed from a retained element shall be admitted, including when growth reallocates storage. Added copies shall have T copy semantics and shall not change the argument's value.
Shrinking shall retain allocated capacity. Growing shall reserve storage as needed, without copying the retained elements for relocation. A recoverable failure during growth shall preserve the preceding logical sequence; capacity and element locations may have changed after a successful preliminary reservation.
-
Incoming link from: 12. Recoverable element-construction failures preserve surviving owners1
7. Appending copies the argument value and popping removes the suffix PPL-SPEC-000587 A successful push_back(x) shall append one element copy of the argument's entry value and preserve all preceding values. A live argument borrowed from an existing element shall be admitted, including when insertion reallocates storage. The resulting sequence shall have size increased by one, with T copy semantics for its new element. A recoverable construction/allocation failure shall preserve the prior logical sequence; preliminary reservation may have changed capacity and element locations.
pop_back() shall require a nonempty sequence, destroy exactly the last element and preserve every preceding value and allocated capacity.
Internal disposable owners may opt into nonthrowing transfer construction. When growth is needed, reserve_consume(n) shall allocate a replacement buffer before transferring any live owner. It shall destroy the old transient owners after committing the replacement. push_back_consume(x) shall require an independent donor that is destroyed or restored before further descriptor use. Prepared transfers of participating descriptor types shall allocate no descriptor backend. Nonparticipating element types shall retain the established reserve and swap paths.
-
11. Allocated-memory accounting includes spare slots and live payloads PPL-SPEC-000591 When T supplies external_memory_in_bytes(), the wrapper's external-memory query shall return allocated element capacity multiplied by sizeof(T), plus the external memory reported by every live element. It shall preserve sequence, size, capacity and ownership. The count shall describe owned allocation payload, excluding allocator bookkeeping, and shall not predict future allocation success. In particular, clearing shall remove live-element payload from the count while retaining the capacity term.
-
12. Recoverable element-construction failures preserve surviving owners PPL-SPEC-000592 For admitted element operations with ordinary source-preserving copy semantics, recoverable construction failures shall destroy every newly created element that does not become part of a successful result and release temporary replacement storage. Failed construction of the wrapper shall release its partial vector and elements. Failed reserve shall satisfy 🔗 5. Reservation transfers element owners and preserves the sequence; failed append/resize shall satisfy 🔗 6. Resizing retains the prefix and initializes added elements and 🔗 7. Appending copies the argument value and popping removes the suffix.
Copy assignment may leave a partially updated element sequence when an element assignment throws, subject to the element type's own valid-state guarantees; it shall not promise universal rollback. Every surviving wrapper shall remain valid for destruction and clearing, and all remaining element ownership shall follow the selected element type's failure guarantees.
-
1. Temporary-cache values, leases and element prerequisites PPL-SPEC-000891 The internal temporary mechanism shall manage live objects of the selected type T, either through a pool-backed lease or a local value holder. Each selected operation shall require the element construction, destruction and resource capabilities it actually invokes; copying or moving T shall not be required merely to obtain, use or return a pooled item. Element destruction shall not throw. Clients shall retain T's own numerical/runtime prerequisites. No additional global PPL initialization shall be required for unrelated element types.
An active pool lease shall give its caller exclusive use of that item's element value until release. A released item shall belong to the cache, and the caller shall not keep accessing it through an old reference. Pool operations that affect a common free list shall not overlap without caller synchronization. Context/teardown conditions shall retain 🔗 12. Cache contexts, teardown and retained storage lifetime.
-
2. Slow-copy trait selection and built-in GMP classifications PPL-SPEC-000892 Slow_Copy<T> shall classify ordinary types as false unless a supported specialization selects otherwise. Its GMP integer and rational specializations shall classify mpz_class and mpq_class as true. The classification shall select storage strategy under 🔗 9. Dirty temporary storage strategy; it shall not itself construct, copy, move or initialize an element object. A selected user specialization shall be visible before the corresponding temporary-holder instantiation.
-
3. Obtaining a fresh or retained pool item PPL-SPEC-000893 Temp_Item<T>::obtain() shall return a reference to a live item exclusively leased from the calling context's pool. If no cached item is available, it shall allocate a new item and value-initialize its T object. Otherwise it shall remove one cached item from the free pool without reconstructing, copying or resetting its T value. Different simultaneously active leases shall refer to different items. No ordering among several available cached items shall be required. Allocation or element-construction failure shall retain 🔗 11. Allocation and element-construction failure cleanup.
-
4. Returning a lease without destroying its value PPL-SPEC-000894 Temp_Item<T>::release(item) shall return one currently active lease to the calling context's free pool without destroying or resetting its T object or allocating another item. Its value shall remain owned by the cache for later reuse or cleanup. The caller shall release each lease exactly once, shall not release an already cached/dead item, and shall cease access through its old lease. A serialized cross-context handoff shall be admitted when T permits it and the item is returned to a live destination context under 🔗 12. Cache contexts, teardown and retained storage lifetime; returning an item shall not depend on an inaccessible origin-thread identifier.
-
Incoming link from: 7. Reference-holder acquisition, access and scope cleanup1
5. Qualified item reference and admitted borrowing PPL-SPEC-000895 Temp_Item<T>::item() shall return a reference with the declared T& qualification to the same owned object on each call during that item's active lease. For a modifiable T, writes through this reference shall be visible through the lease and to later admitted reuse of that object. The accessor shall not allocate, copy, reconstruct or release the item. The returned reference shall not authorize access after release, holder destruction or actual object cleanup.
-
6. Pool-item construction and ownership restrictions PPL-SPEC-000896 Clients shall acquire Temp_Item<T> objects through obtain and return them through release. Ordinary client default construction, copy construction and assignment shall be inaccessible; no supported move operation shall transfer a leased item implicitly. The cache shall own item destruction, and a leased item shall not be deleted directly by its caller. Stable live item identity shall be retained through admitted use and return until actual cache cleanup.
-
7. Reference-holder acquisition, access and scope cleanup PPL-SPEC-000897 A Temp_Reference_Holder<T> shall acquire exactly one pool item on successful construction and return it on destruction, including ordinary exception unwinding. Its item() shall return the leased object under 🔗 5. Qualified item reference and admitted borrowing. Holder destruction shall not destroy the retained T or allocate another item. Each separate default construction shall acquire its own lease. Copy construction, assignment and moving shall be inaccessible. A returned value reference shall remain borrowed only while that holder is live and retains its lease. Calling item() on a temporary reference holder shall be ill-formed.
-
8. Local value-holder construction and lifetime PPL-SPEC-000898 Temp_Value_Holder<T> shall own one local T object, default initialized as a normal member. A class type's default constructor shall run; a fundamental type shall not gain an initial-value guarantee from this holder. Its item() shall return a reference with the declared T& qualification to that same local object. Destruction shall destroy that owned object rather than cache it. The holder itself shall perform no separate pool allocation, copy or move, while retaining resources and construction failures intrinsic to T. Copy construction, assignment and moving shall be inaccessible.
-
9. Dirty temporary storage strategy PPL-SPEC-000899 For a selected T, Dirty_Temp<T> shall use the Temp_Reference_Holder<T> interface when Slow_Copy<T>::value is true and Temp_Value_Holder<T> when false. It shall retain the chosen holder's ownership, initialization, borrowing and failure rules without adding an element copy, move or numeric initialization stage. The result shall be a dirty temporary; clients shall establish the value required by their computation rather than assume a fresh numerical zero.
-
10. Dirty-temporary declaration macro and lexical lifetime PPL-SPEC-000900 PPL_DIRTY_TEMP(T, id) shall declare a corresponding local Dirty_Temp<T> holder and a T& named id bound to its item(). The type shall be supplied as one preprocessor argument; a type with commas shall use a suitable alias. The caller shall provide a usable fresh identifier and declaration scope, including the generated holder name, and terminate the invocation as a declaration. The macro shall preserve the selected holder lifetime through that lexical scope, including unwinding; id shall not authorize an escaping reference beyond it. The macro shall not copy or implicitly initialize the value beyond 🔗 9. Dirty temporary storage strategy.
-
Incoming link from: 3. Obtaining a fresh or retained pool item1
11. Allocation and element-construction failure cleanup PPL-SPEC-000901 If a fresh pool item cannot be allocated, or its T construction throws, the exception shall propagate without leaking the incomplete item's storage or adding an incomplete item to the free pool. Previously active items and cached values shall remain usable and unchanged. Element-owned subresources shall follow the element constructor's own C++ cleanup obligations. A failed holder construction shall not acquire an active lease. A failed local value-holder construction shall likewise retain its element's cleanup protocol. A later successful attempt shall remain possible; obtaining an already cached item shall not require a fresh element construction or item allocation.
-
12. Cache contexts, teardown and retained storage lifetime PPL-SPEC-000902 Each Temp_Item<T> specialization shall maintain an independent free pool. In a thread-safe configuration it shall be thread-local; otherwise it shall be shared static storage requiring serialized conflicting operations. Cached free items shall be destroyed, with their owned values/resources, when that pool's thread or static context is destroyed. Outstanding active leases shall remain the caller's return responsibility and shall not be mistaken for cached free items. Calls shall not use a pool after its teardown has begun or completed.
An element-permitted lease handoff may outlive the originating thread and be returned to another live context after synchronization; free-pool cleanup shall not destroy that outstanding lease. Cache storage shall not be cleared merely because a separate PPL initialization owner is finalized. These rules shall not relax T's own initialization, thread-affinity or value-lifetime restrictions.
-
1. Generic threshold-watcher traits and admitted value protocol PPL-SPEC-000851 Threshold_Watcher<Traits> shall use the selected trait's Threshold and Delta types, current-value provider get(), nonthrowing strict comparison less_than and conversion from_delta. Threshold shall be default constructible, have nonthrowing copy construction, assignment and destruction, and satisfy its own value/resource needs. get() shall produce a value/reference bindable to a const threshold reference for the duration of a check. Conversion shall assign the selected absolute threshold from the supplied delta. Default construction, current-value provision and conversion may report exceptions.
The comparison shall provide a coherent strict order over the admitted current/pending domain, including false on equal values. The trait shall provide a writable check_function slot accepting, converting to and invocable as void (*)(), initially null with no pending events and owned by the watcher protocol while events remain. This generic mechanism shall require no timer availability or global PPL initialization beyond its selected traits' needs. Thread/lifetime conditions shall retain 🔗 12. Watcher notification lifetimes and exclusive use.
-
2. Flag-notification watcher construction PPL-SPEC-000852 Successful flag-form construction shall own one handler bound to the supplied holder and flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, compute/validate the event threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. Construction shall not install the flag or query its priority merely to register the event. The holder/flag shall remain borrowed notification objects. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and a compatible flag. Its synchronous notification shall use release compare-and-exchange to fill only a null holder. It shall not dereference an existing request, query priorities, or replace a nonnull request. Both notification objects shall outlive the watcher; a published flag shall also outlive its readers. Cancellation shall precede clearing or releasing its binding. The same threshold validation, registration failure cleanup and queue exclusivity conditions shall apply.
-
3. Function-notification watcher construction PPL-SPEC-000853 Successful function-form construction shall own one handler retaining the supplied callback under 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure, compute/validate its threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. The callback shall be live and nonnull when its event can dispatch. Construction shall not invoke it. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
-
4. Threshold conversion and already-reached rejection PPL-SPEC-000854 Construction shall default-construct a local threshold, invoke the selected from_delta conversion, then obtain the current value and accept the result only if the current value is strictly before that threshold under the admitted comparison. A converted threshold equal to or before the current value shall throw std::invalid_argument and shall not register an event. Exceptions from default construction, conversion or current-value provision shall propagate with 🔗 10. Construction failure cleanup and existing-event preservation. The generic watcher shall not infer another numeric interpretation of a user-defined delta or absolute threshold.
-
5. Per-trait event ordering and multiplicity PPL-SPEC-000855 Watchers shall share their trait's pending queue within the storage policy in 🔗 12. Watcher notification lifetimes and exclusive use: one per thread for an opted-in thread-safe trait, otherwise one shared queue per trait. Each successful construction shall add one event, preserving all existing watchers and nondecreasing threshold order under 🔗 7. Sorted insertion and equivalent-deadline multiplicity. Equivalent future thresholds shall be admitted as distinct events; no relative dispatch order among equivalent events shall be required. Different trait instantiations shall have independent queues and hook slots. Registration shall not dispatch existing events.
-
6. Published checking function and empty-queue transitions PPL-SPEC-000856 After successful event registration, the trait's check_function slot shall point to that instantiation's checking action. It shall remain published while any event is pending and become null when the final pending event is canceled or successfully dispatched. Failed construction shall preserve the previous slot value under 🔗 10. Construction failure cleanup and existing-event preservation. Clients shall invoke a published hook only while its queue remains nonempty under the exclusive-use protocol; retaining an old nonnull pointer shall not authorize calling an emptied queue.
-
7. Due-event dispatch and successful expiration PPL-SPEC-000857 A published check shall obtain the current object from one get() call and inspect pending events in threshold order. While that observed current object is not strictly before the first pending threshold, it shall invoke the event's bound action. Only after that action returns normally shall it mark the watcher expired and remove its pending event. Thus an event exactly at the current threshold shall be due. Processing shall stop at the first future event or an empty queue, retaining 🔗 6. Published checking function and empty-queue transitions.
If a trait returns a reference to mutable current state, later comparisons in the same dispatch shall observe any admitted serial changes to that object; a value returned by get() shall instead remain the retained value for that check. This mechanism shall not promise elapsed-time notification or invoke the current-value provider separately per event.
-
8. Action exceptions and partially completed dispatch PPL-SPEC-000858 If a notification action throws, dispatch shall propagate that exception without marking or removing the throwing event. Earlier events already notified successfully shall remain expired and removed; later events shall remain pending. The throwing event's callback effects shall not be rolled back. A later admitted check may invoke it again, or destruction may cancel it. The queue and published hook shall remain consistent with the events still pending, and no handler shall leak.
-
9. Watcher destruction, cancellation and handler ownership PPL-SPEC-000859 Destruction of an unexpired watcher shall cancel its pending event; destruction of an already expired watcher shall not remove another event or notify again. Both shall destroy the watcher-owned handler exactly once. Cancellation shall not invoke the handler or modify external flag objects, and shall retain the active/free queue ownership of 🔗 9. Active-event erasure and successor preservation. Destruction shall retain the admitted nonthrowing trait operations and exclusive-use conditions.
-
10. Construction failure cleanup and existing-event preservation PPL-SPEC-000860 A reported failure while allocating the handler, default-constructing or converting a threshold, obtaining current state, rejecting an already reached threshold, or allocating its pending node shall release the incomplete watcher-owned handler and any temporary resources acquired for that construction. It shall preserve all previously pending watchers, their notification state and the previously published checking hook. The same trait instantiation shall permit later successful construction and dispatch/cancellation. The nonthrowing copy/assignment/destruction/ comparison prerequisites shall remain those of 🔗 1. Generic threshold-watcher traits and admitted value protocol.
-
11. Noncopyable watcher lifetime identity PPL-SPEC-000861 A watcher shall retain one lifetime identity for its expired flag, handler and pending position. Copy construction and assignment shall be inaccessible; no public move construction/assignment or default construction shall be supplied. Clients shall keep its address and lifetime stable while an event can reference that state. Separate watcher objects shall be constructed through their own notification constructors.
-
Incoming links from: 1. Generic threshold-watcher traits and admitted value protocol 5. Per-trait event ordering and multiplicity 1. Computational-weight value and current-state binding 2. Exact scaled-weight conversion and representability 3. Absolute threshold formation and modular aliases 4. Strict circular ordering of computational weights 5. Computational-weight instrumentation outside profiling mode 6. Assertion-scope instrumentation suppression 7. Caller-owned abandonment request and exception object 8. Cooperative abandonment checkpoint ordering and propagation10
12. Watcher notification lifetimes and exclusive use PPL-SPEC-000862 Construction, destruction and checks for one trait's shared queue shall not overlap concurrently or reenter that queue's dispatch. Notification actions shall retain the valid handler/flag/function bindings of 🔗 1. Polymorphic event-action interface and virtual destruction, 🔗 2. Flag-handler binding and binding-preserving copies, 🔗 3. Strict-priority flag installation, 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure and shall not destroy a watcher whose handler or expiration state is being accessed. The trait's current-value result shall remain valid through its use. Clients shall not replace a queue's hook while its events remain.
In a thread-safe configuration, a trait may opt into per-thread queues with static constexpr bool thread_local_queue = true. Its current-value state and checking slot shall then also be thread-local. Weightwatch_Traits shall use this policy. Watchers and their borrowed bindings shall remain in their constructing thread and be destroyed before that thread exits. Other threads may independently compute, register, cancel and check their own queues. Exclusivity and nonreentrancy shall apply separately to each queue. Traits without that opt-in, and ordinary non-thread-safe configurations, shall retain the shared-state synchronization requirements above.
-
Incoming links from: 3. Selected-coordinate integer restriction of bounded-difference values 4. Bounded-integer wrapping and guarded evolution of difference shapes 3. Selected-coordinate integer restriction of octagonal values 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 3. Index insertion and inherited ordered-set operations 4. Coordinate-set dimension and maximum dimension6
1. Public coordinate-index set and value lifecycle PPL-SPEC-000021 The public C++ interface shall expose Variables_Set as a public derivative of std::set<dimension_type>. Its stored value shall be a finite set of distinct indices enumerated in increasing numerical order. A coordinate-valid set shall contain only indices i < Variable : : max_space_dimension(). The empty set shall be coordinate-valid. A set shall select coordinates without imposing an ambient dimension on an object that consumes the selection.
The inherited C++20 std::set<dimension_type> interface shall remain available subject to the overloads actually declared by Variables_Set. Base-class constructors and assignment overloads shall not be implicitly added to the public derived interface. Construction from arbitrary iterator ranges shall be performed by default construction followed by inherited range insertion. Raw-index base operations may store any dimension_type value; they shall not validate coordinate admissibility. Before using the set as a coordinate selection or calling a member that requires coordinate validity, clients shall establish the validity of every stored index, for example using OK().
Implicit copy construction and copy assignment shall have the C++20 value and exception behavior of the std::set base. Successful copies shall contain exactly the source indices with independently owned nodes. Implicit moves shall transfer the value according to the standard base-container rules; moved-from objects shall remain valid with the state permitted by those rules. Destruction shall release owned nodes. A Variables_Set shall not be deleted through a pointer to its nonvirtual base destructor.
Operations on existing objects shall require live container objects. Callers shall obey the supported library/thread regime, serialize modifications of a shared instance and prevent unsynchronized modification while another call observes or copies it. No automatic invalid-lifetime or concurrent-use detection shall be required.
-
2. Empty, singleton and inclusive-range construction PPL-SPEC-000022 Successful default construction shall create an empty Variables_Set. Successful construction from a valid Variable v shall create exactly {v.id()}. Successful construction from valid variables v and w shall create exactly {i ∣ v.id() ≤ i ≤ w.id()} when v.id() <= w.id() and the empty set otherwise. Both endpoints shall be included. No ambient dimension or additional indices shall be introduced.
Failure to allocate storage shall propagate the applicable C++ exception and release resources acquired for the incomplete object. Inputs shall remain unchanged. No successfully constructed destination shall be returned on failure.
-
3. Index insertion and inherited ordered-set operations PPL-SPEC-000023 For a live Variables_Set, successful insert(v) with a valid Variable shall add exactly v.id(). Inserting an already present index shall not create a duplicate. The declared overload shall coexist with the inherited C++20 std::set<dimension_type> insertion overloads. Raw insertion shall store the supplied index value without constructing or validating a Variable.
Inherited insertion, emplacement, extraction, merging, erasure, clearing, lookup, bounds, comparison and iteration shall have the C++20 semantics of the base container. Forward traversal shall enumerate each stored index once in increasing order; reverse traversal shall enumerate them in decreasing order. Insertion shall preserve existing element references and iterators. Erasure shall invalidate references and iterators to erased elements according to the base-container rules. Callers shall satisfy the standard preconditions for iterator ranges, hints, node ownership and allocator compatibility. A node's key may be changed only while detached, under the inherited node-handle rules. Coordinate use of inserted or changed keys shall additionally require the validity conditions of 🔗 1. Public coordinate-index set and value lifecycle.
Failed single-element insert allocation shall propagate std::bad_alloc without changing the set. Range insertion and other inherited operations shall have their standard operation-specific exception guarantees; no transactional rollback of an entire partially completed range insertion shall be implied.
-
5. Inherited set swap and element ownership PPL-SPEC-000025 For live Variables_Set objects satisfying the inherited allocator compatibility preconditions, inherited member swap shall exchange their complete stored sets with the C++20 base-container semantics. A successful self-swap shall preserve the value. References and iterators to stored elements shall remain associated with those elements in the receiving container, subject to the standard exception for past-the-end iterators. Swap shall not require coordinate validity of raw stored indices.
-
6. Coordinate-set diagnostic output and formatter prerequisites PPL-SPEC-000026 Diagnostic output shall observe a coordinate-valid set without modifying its indices. With compatible ordinary character formatting and successful output, operator<< shall write "{", each selected Variable in increasing index order preceded by one space, a comma after every Variable except the last, and the final text " }". Thus an empty set shall write "{ }". Variable text shall be produced by the active Variable formatter at each write. The operator shall return the supplied stream reference. It shall not add a newline or request a flush. print() shall perform this output to std::cerr.
Calls shall require the library/thread initialization protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization to have established a valid active Variable formatter under 🔗 7. Active Variable formatter and initialized thread state. Formatter dispatch shall follow 🔗 8. Variable names, formatter dispatch and output failures. Clients shall synchronize formatter changes, shared streams and shared-set access under the supported thread regime. The formatter shall not mutate the printed set during output. Stream formatting and error reporting shall follow ordinary C++ insertion semantics. Formatter exceptions and stream exceptions shall propagate; ordinary nonthrowing stream failures shall remain observable through the stream state. Partial output may remain after failure, while the set shall remain unchanged.
-
7. Reloadable coordinate-set text export PPL-SPEC-000027 For a live Variables_Set and a stream with decimal integer formatting, zero pending field width and the classic C locale, successful ascii_dump(s) shall write a newline, "variables( ", the number of stored indices, " )", a newline, and then each raw stored index in increasing order followed by one space. An empty set shall have no index payload. The operation shall append no additional characters or explicit flush after this sequence. It shall leave the set unchanged and shall not invoke the Variable formatter and shall also permit raw indices that fail coordinate validity. The no-argument overload shall write the same representation to std::cerr under those formatting conditions.
For coordinate-valid input and compatible producer/consumer formatting, successful loading of this representation under 🔗 8. Coordinate-set text loading and partial failure state shall preserve the selected indices and enclosing dimension. The format shall not promise compatibility with every library version or with arbitrary incompatible locale, numeric base or formatting settings. Stream failure shall follow C++ stream state and exception-mask semantics; partial output may remain and the source set shall remain unchanged.
-
Incoming link from: 7. Reloadable coordinate-set text export1
8. Coordinate-set text loading and partial failure state PPL-SPEC-000028 ascii_load(s) shall first clear the destination's existing indices. With whitespace-skipping extraction enabled, decimal integer conversion and the classic C locale, it shall accept an opening token "variables(", a nonnegative dimension_type count, a closing token ")" and exactly that count of nonnegative indices below Variable::max_space_dimension(). On successful loading it shall return true and contain exactly the set of extracted indices. Duplicate payload indices shall be collapsed and payload order need not be sorted. Tokens following the declared payload shall remain available to the caller. Loading shall not invoke the Variable formatter.
Missing, wrong, unextractable or out-of-range required fields shall return false unless the stream's exception mask causes an exception. A false result shall leave the destination empty if the header failed, or containing exactly the successfully inserted prefix of payload indices if a payload extraction failed. Allocation or stream exceptions shall propagate; the old value shall not be restored, and successfully inserted prefix indices may remain. The destination shall remain a live base-container object available for inspection, clear, reassignment and destruction. No unchanged-state guarantee shall be implied.
A true result shall certify a coordinate-valid set with exactly the loaded indices and their enclosing dimension as checked by 🔗 10. Coordinate-validity checking of raw indices.
-
Incoming link from: 8. Coordinate-set text loading and partial failure state1
10. Coordinate-validity checking of raw indices PPL-SPEC-000030 For any live Variables_Set satisfying its base-container invariants, OK() shall return true exactly when every stored raw index is strictly less than Variable::max_space_dimension(). It shall return true for an empty set. An index equal to the maximum dimension, one greater than that limit, or not_a_dimension() shall make the result false. Invalid raw coordinate indices shall be a defined check outcome and shall not cause std::length_error. The check shall leave every stored index unchanged.
-
Incoming link from: 5. Forgetting one coordinate without removing it1
2. Variable value identity and lifetime operations PPL-SPEC-000012 The public Variable type shall represent one Cartesian coordinate by its nonnegative identifier, with limits defined by 🔗 3. Variable construction, coordinate queries and bounds. Its meaning shall depend only on that identifier, independently of C++ object names, other variables and the current output function. Operations on existing variables shall require live valid objects; construction shall require valid source objects only where a source is supplied.
Implicit copy and move construction shall create a variable with the source's identifier and shall preserve the source. Implicit copy and move assignment shall set the target's identifier to the source's entry identifier, return a reference to the target and preserve a distinct source. Self-assignment shall preserve the identifier. Each variable shall remain an independent value. These value operations and destruction shall require no external storage allocation; destruction shall not alter another variable. Callers shall prevent unsynchronized access to an object while another operation changes its value.
-
3. Variable construction, coordinate queries and bounds PPL-SPEC-000013 Let S = not_a_dimension(). The query Variable::max_space_dimension() shall return S − 1. Construction from i shall succeed exactly for 0 ≤ i < S − 1, subject to ordinary C++ runtime conditions, and shall create a variable with id() == i and space_dimension() == i+1. In particular, the greatest admitted identifier shall be S − 2; its space dimension shall be S − 1.
An identifier equal to S − 1 or S shall be rejected with std::length_error without producing a variable. Range rejection shall not rely on wrapping i+1. Exact exception-message text is not prescribed. Queries on a live valid variable shall leave its identifier unchanged and return the exact identifier and enclosing-space dimension. These operations shall not depend on the active formatter or allocate coordinate storage.
-
5. Variable exchange and self-exchange PPL-SPEC-000015 For live valid variables x and y, both x.m_swap(y) and swap(x, y) shall exchange their entry identifiers exactly and leave both variables valid. When both arguments designate the same variable, its identifier shall remain unchanged. Exchange shall allocate no storage and shall not depend on formatted names or the active output function.
-
6. Variable validity and memory accounting PPL-SPEC-000016 For every live valid variable, OK() shall return true without changing its value. The representation invariant checked by OK() shall be id() < max_space_dimension(). external_memory_in_bytes() shall return zero and total_memory_in_bytes() shall return sizeof(Variable): variables shall own no separately allocated coordinate storage. These queries shall leave the identifier and formatter state unchanged and shall allocate no storage. No operation shall require constructing an invalid object to use this diagnostic.
-
Incoming links from: 1. Human-readable bounded-difference presentation 1. Human-readable box presentation 14. Readable congruence and system output 12. Readable constraint and system output 3. Thread initialization, default state and finalization 14. Human-readable affine output and formatter dispatch 1. Human-readable octagonal presentation 8. Coordinate-map diagnostic printing and output failures 6. Coordinate-set diagnostic output and formatter prerequisites 8. Variable names, formatter dispatch and output failures10
7. Active Variable formatter and initialized thread state PPL-SPEC-000017 The public output_function_type shall denote a function accepting an output stream and a Variable value, returning void. set_output_function(p) shall store exactly p without invoking it; get_output_function() shall return the pointer currently stored for the applicable runtime context. Neither operation shall allocate storage or change any variable identifier.
The applicable initialization and thread-entry protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall establish the default output function before variable insertion is used. In a thread-safe build the stored pointer shall be thread-local. Otherwise it shall be shared within the process, and callers shall serialize formatter changes and uses. Callers shall also synchronize shared-stream access and mutable callback state as needed.
Storing a null pointer shall be permitted, and a subsequent getter shall return null; insertion shall require a nonnull callable pointer. The caller shall retain any callback dependencies for its use period and restore a callable pointer before subsequent insertion. Setting a formatter shall not acquire ownership of callback dependencies. This interface shall not diagnose every violation of initialization, callback-lifetime or concurrency preconditions.
-
8. Variable names, formatter dispatch and output failures PPL-SPEC-000018 For a live valid variable with identifier i, let q = ⌊i ⁄ 26⌋ and r = i − 26q. Successful direct use of default_output_function shall insert the uppercase character at position r in ABCDEFGHIJKLMNOPQRSTUVWXYZ. If q is nonzero, it shall then insert q as an unsigned integer using the stream's current formatting; otherwise it shall insert no suffix. Character and integer insertions shall honor their applicable stream formatting and locale. The function shall add no separator, newline or explicit flush, and shall not change the active formatter.
Under 🔗 7. Active Variable formatter and initialized thread state, IO_Operators::operator<< shall invoke the currently active output function exactly once with the supplied stream and variable value, and shall return that same stream reference on normal return. Each insertion shall obtain the pointer active for that call. A callback may change the formatter for subsequent calls; insertion shall not restore the old pointer or undo callback changes to the stream. Direct default formatting shall not consult the active pointer.
Output shall not change the variable identifier. Stream failures shall follow the stream's state and exception-mask rules. Callback exceptions and applicable C++ resource exceptions shall propagate; partial output and callback changes to formatter or stream state shall remain observable, with no output rollback promised. Callbacks shall satisfy the stream, lifetime and synchronization preconditions and shall not invalidate an object accessed by the call.
-
1. Normalized nonnegative microsecond interval values PPL-SPEC-000821 Time shall represent an exact nonnegative integral number of microseconds, with maximum value 106 LONG_MAX + 999999. A valid completed value shall have whole seconds in [0, LONG_MAX] and a residual microsecond count in [0, 999999]. This raw value interface shall be available independently of operating-system watchdog-timer support and shall not require PPL initialization or floating-point state.
Constructor inputs shall satisfy their stated nonnegative argument preconditions. Concurrent access shall retain ordinary C++ object synchronization requirements. An interval value shall not itself promise elapsed-time measurement, timer resolution or notification scheduling.
-
2. Zero and centisecond construction PPL-SPEC-000822 Default construction shall produce the zero interval. Construction from a nonnegative long centisecond count c shall produce exactly 10000c microseconds in normalized form. Every nonnegative long centisecond value, including LONG_MAX, shall be representable by this conversion. Construction shall retain the allocation-free value protocol of 🔗 9. Allocation-free value operations and fatal range policy.
-
3. Second/microsecond normalization and excessive results PPL-SPEC-000823 For nonnegative long arguments s and m, two-argument construction shall represent exactly 106s + m microseconds when that result is within 🔗 1. Normalized nonnegative microsecond interval values. Microseconds at or above one million shall be carried into whole seconds and reduced to a residual less than one million. If this nonnegative mathematical result exceeds the representable maximum, construction shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy, without signed arithmetic overflow or a constructed C++ exception.
-
4. Independent value copies and assignment PPL-SPEC-000824 Copy construction and assignment shall preserve the exact interval value in independent scalar state. Rvalue construction/assignment shall retain the same value semantics, leaving the source value unchanged. Self-assignment shall preserve the interval. Assignment shall return the target object. No copy shall share owned duration state or require allocation, and ordinary destruction shall require no external resource cleanup.
-
5. Whole-second, residual-microsecond and validity queries PPL-SPEC-000825 For a valid completed interval, seconds() shall return its whole second count and microseconds() its normalized residual, so their mathematical combination equals the exact value. OK() shall test the stored normalization conditions: nonnegative whole seconds and a residual in [0, 999999]. The queries shall preserve the value and require no allocation. They shall not provide a memory-safe validity check for arbitrary corrupted storage or remove constructor preconditions.
-
6. Exact interval ordering and equality PPL-SPEC-000826 The six comparison operators shall compare exact total-microsecond values. Equality shall hold exactly for the same duration, regardless of which admitted normalization inputs produced it. Strict and nonstrict order shall have their ordinary mathematical meanings and inequality shall negate equality. Comparing valid values shall not change either operand, allocate or depend on the current clock.
-
7. Exact addition, aliasing and representability failure PPL-SPEC-000827 For valid operands with a representable sum, compound addition shall replace the target by their exact total-microsecond sum, normalized into seconds and residual microseconds, and return the target object. Adding an object to itself shall use its value on entry. Free addition shall produce the same exact value without changing either input.
If the exact sum exceeds 🔗 1. Normalized nonnegative microsecond interval values, both forms shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy before signed arithmetic overflow, without constructing a C++ exception. A valid microsecond carry shall be included in that representability decision.
-
8. Saturating nonnegative interval subtraction PPL-SPEC-000828 For valid operands, compound subtraction shall replace the target by max(0, x − y), using their exact values on entry, and return the target object. A needed microsecond borrow shall preserve that exact nonnegative result. Self-subtraction shall yield zero. Free subtraction shall return the same value without modifying either input. Subtraction shall remain within the normalized value domain and shall not allocate or signal an arithmetic-range failure for valid operands.
-
9. Allocation-free value operations and fatal range policy PPL-SPEC-000829 Admitted Time construction, copying, queries, comparisons, addition and subtraction shall use no heap allocation, floating-point arithmetic, PPL initialization or operating-system timer operation. Unrepresentable normalization/addition shall report its fatal condition by calling std::abort; it shall not allocate or construct a C++ exception in an attempt to report that condition. No recovery or owned- resource cleanup after process termination shall be promised by this value interface. The caller shall retain any surrounding signal/thread context restrictions.
-
1. Watchdog platform availability and initialization prerequisites PPL-SPEC-000871 Watchdog timers shall be available when the configured platform provides the required setitimer, sigaction and pthread_sigmask operations. In that configuration, clients shall retain the library/class initialization and exclusive signal-ownership protocols of 🔗 11. Process timer ownership and signal-safe callbacks, 🔗 18. Class initialization and preceding signal action and 🔗 19. Class finalization and pending-notification cleanup. If any required operation is unavailable, all construction forms shall throw std::logic_error and shall neither publish a notification nor modify the supplied flag holder, regardless of the supplied duration. Construction may also report a resource failure while creating its exception object.
-
2. Flag-form watchdog registration PPL-SPEC-000872 On an available, correctly initialized platform, successful volatile flag-form construction shall own one handler bound to the supplied holder/flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, register one pending event for its admitted duration, and leave those external notification objects borrowed. Registration shall neither install the flag nor query its priority as a notification. At expiration, priority selection shall use the then-current holder and flag. The flag's priority operation shall satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and compatible flag. Expiration shall only record a notification in non-thread-local handler storage. At a subsequent ordinary checkpoint in the constructing thread, release compare-and-exchange shall install the flag only when the holder is null. No existing request shall be dereferenced, replaced, or compared by priority. Among multiple eligible atomic watchdogs the most recently constructed binding shall be tried first. Selected pending atomic notifications shall precede computational-threshold checks, retaining the snapshot rule in 🔗 1. Computational-weight value and current-state binding. This publication need not use a lock-free borrowed holder because it takes place outside signal context.
Construction, checkpoints and destruction shall use the single watchdog owner/signal-receiving thread. Holder and flag shall remain alive through destruction; a published flag shall additionally outlive its readers. Cancellation may discard an unconsumed notification and shall not clear an already published request. The caller shall cancel before clearing the holder or releasing its flag. A failed construction shall leave no notification binding or pending event behind.
-
3. Function-form watchdog registration PPL-SPEC-000873 On an available, correctly initialized platform, successful function-form construction shall own one handler retaining the supplied function under 🔗 4. Function-handler target binding and copies, register one pending event and not invoke that function merely to register it. A pending callback shall be nonnull, live and satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Dispatch shall invoke that bound function exactly once for its successfully completed event. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
-
4. Positive watchdog duration and exact nominal units PPL-SPEC-000874 When native timers are available, both construction forms shall accept a positive long duration in centiseconds and interpret its nominal value as c ⁄ 100 seconds. A zero or negative duration shall throw std::invalid_argument without registering an event; construction cleanup shall retain 🔗 8. Failed watchdog construction and surviving events. Large positive durations through LONG_MAX shall retain their full logical value under 🔗 7. Logical deadlines and bounded physical timer checkpoints, subject to supported resource or timer-system-call failures. Timer resolution, signal delivery and masked operations shall retain 🔗 11. Process timer ownership and signal-safe callbacks.
-
5. Stable watcher and notification lifetimes PPL-SPEC-000875 An available-platform watchdog shall not be default constructible, copy constructible, move constructible or assignable. Its stable live address shall retain its expiration state and event identity until destruction. Borrowed holder/flag/function objects shall remain valid whenever the event may notify. Clients shall not end a live watchdog's lifetime from its callback or concurrently with signal dispatch; the masking/exclusive-use protocol shall govern admitted cancellation.
-
6. Ordered event multiplicity and existing-event preservation PPL-SPEC-000876 Each successful constructor shall add one distinct event to the shared queue. Equal logical deadlines shall retain all registered events; their relative callback order shall be unspecified. An earlier or later insertion shall preserve every other event's logical deadline and bound notification. Registration and cancellation shall not notify unrelated events merely because the queue or physical timer has changed.
-
Incoming link from: 4. Positive watchdog duration and exact nominal units1
7. Logical deadlines and bounded physical timer checkpoints PPL-SPEC-000877 The first event shall establish a relative logical time base. Later registration shall account for elapsed time observed from the armed timer and retain the requested relative duration in its full logical deadline. Each nonzero physical timer request shall be at most one day (86400 seconds), using an intermediate checkpoint when a logical interval is longer. A checkpoint before a pending event's deadline shall not notify it; subsequent checkpoints shall preserve the remaining interval and other event deadlines. Bounded requests shall not imply that every kernel accepts them or guarantee exact elapsed deadlines across arbitrary signal-masked one-shot expiration periods.
-
8. Failed watchdog construction and surviving events PPL-SPEC-000878 When construction reports a supported recoverable exception, it shall release its allocated handler and not leave the failed event pending. Previously live watchdogs shall remain usable with their logical notifications/deadlines preserved. This shall cover invalid duration, handler/node allocation failure, signal-block failure, timer-read failure, invalid successful timer read and timer-arm failure, including a failure while reporting another error. The constructor shall restore its internal critical-section state and caller signal mask before propagation, subject to the fatal restoration rule of 🔗 12. Signal-mask transactions and fatal restoration failures. Internal freed nodes may remain owned by the shared queue's reuse pool.
-
9. Nonthrowing destruction and ordinary cancellation PPL-SPEC-000879 ~Watchdog() shall not throw. It shall destroy its owned handler exactly once while its timer signal is blocked, before restoring the caller's signal mask. An unexpired watchdog shall remove its own event without notifying it; an expired watchdog shall not remove or notify another event. Cancellation of a nonleading or equal-deadline event shall preserve remaining deadlines; canceling the first event shall schedule the next one or stop the timer when no event remains. If a next deadline is already due, cancellation shall schedule a short nonzero checkpoint rather than dispatch a notification from the destructor. System-call failure and fatal masking outcomes shall retain 🔗 10. Cancellation failure and retained-checkpoint fallback and 🔗 12. Signal-mask transactions and fatal restoration failures.
-
10. Cancellation failure and retained-checkpoint fallback PPL-SPEC-000880 If cancellation cannot read a valid timer interval, rearm the next event or stop the last timer, it shall still erase the canceled event without propagating that system-call exception. The previous physical timer/bookkeeping shall remain as a checkpoint for remaining events; its later signal shall notify only events whose logical deadlines are due and schedule others for their remaining duration. A failed last-event stop may leave a physical notification, which shall not invoke a canceled handler. Later cancellation/insertion shall remain consistent with the retained checkpoint rather than assume it equals the first remaining event's deadline.
-
11. Process timer ownership and signal-safe callbacks PPL-SPEC-000881 The facility shall reserve ITIMER_PROF/SIGPROF, or ITIMER_REAL/SIGALRM on Cygwin, GNU Hurd and profiling builds. One thread shall own all watchdog operations and receive the selected signal; every other thread shall keep it blocked. These restrictions shall also apply to a thread-safe PPL build, and clients shall not independently replace/use the owned timer or signal while the facility owns them. Callbacks and priority queries of the function/volatile-flag forms shall use only operations valid in asynchronous signal context. The atomic-holder form shall instead record a non-TLS notification in signal context and defer holder publication to ordinary owner code. They shall not throw, construct/destroy watchdogs or reenter their queue. Signal resolution, delivery delays and arbitrary prolonged masked operations shall not imply a hard elapsed-time guarantee.
-
12. Signal-mask transactions and fatal restoration failures PPL-SPEC-000882 Construction and cancellation shall block the selected signal while updating shared queue/timer state and restore the caller's exact previous mask afterward, including unrelated blocked signals. Failure to block the signal shall propagate from construction with 🔗 8. Failed watchdog construction and surviving events. The same failure during noexcept cancellation, or any failure to restore the mask, shall invoke std::terminate rather than continue with unprotected state or a newly retained mask. Pending delivery released by mask restoration shall see a consistent published queue and timer state.
-
Incoming link from: 17. Timer-read validity and context-specific error channels1
13. Stale timer-notification suppression PPL-SPEC-000883 On timeout entry, if a successful timer-state read yields a valid nonzero remaining interval, the notification shall be treated as stale and shall return without advancing the logical clock or notifying a replacement event. If the read fails or is invalid, dispatch shall use the timeout fallback of 🔗 14. Due-event signal dispatch and successful one-shot expiration; this fallback shall not promise to preserve a still-armed replacement deadline when the signal was in fact stale. A valid zero interval shall be processed as an actual timeout. Replacing a timer shall not assume that a previously pending signal has been retracted.
-
Incoming link from: 13. Stale timer-notification suppression1
14. Due-event signal dispatch and successful one-shot expiration PPL-SPEC-000884 An actual timeout outside an active timer transaction shall advance the logical clock by the accounted last requested span, inspect events in deadline order and invoke each event whose deadline is no later than that clock. After its signal-safe action returns, dispatch shall mark it expired and remove it. A future event shall remain pending and be scheduled for its remaining logical interval. When no event remains, the logical alarm shall become inactive. An empty-queue signal shall not invoke a handler. The errno and fatal rearm outcomes shall retain 🔗 16. Fatal signal-context timer-rearm failure and 🔗 20. Timeout and signal-mask errno preservation.
-
15. Deferred timeout accounting inside a transaction PPL-SPEC-000885 If an actual timeout is processed while the internal transaction state is active, it shall defer event dispatch by arming a short nonzero checkpoint. The previously consumed timeout span shall remain included in the elapsed-time accounting for that later dispatch; repeated replacement/chunk histories shall not lose the consumed span. A deferred checkpoint by itself shall not notify a future event. Failure to arm this checkpoint shall retain 🔗 16. Fatal signal-context timer-rearm failure.
-
16. Fatal signal-context timer-rearm failure PPL-SPEC-000886 When timeout dispatch or transaction deferral cannot rearm the required timer, it shall call std::abort. It shall not report that failure by constructing or throwing a C++ exception in signal context. Earlier successfully completed callbacks in that dispatch shall retain their effects up to process termination. This fatal policy shall not be replaced by silently leaving future pending events unscheduled.
-
17. Timer-read validity and context-specific error channels PPL-SPEC-000887 A valid timer interval shall have nonnegative seconds representable by long and microseconds in [0, 1000000). A failed timer read shall not be interpreted as a successful sample. During construction, a successful read outside this range shall report std::runtime_error with 🔗 8. Failed watchdog construction and surviving events. During cancellation it shall use 🔗 10. Cancellation failure and retained-checkpoint fallback, and during signal entry it shall use the fallback in 🔗 13. Stale timer-notification suppression. Successful zero and boundary-valid intervals shall retain their ordinary context meaning.
-
Incoming link from: 1. Watchdog platform availability and initialization prerequisites1
18. Class initialization and preceding signal action PPL-SPEC-000888 On an available platform, class initialization shall establish a one-shot timer protocol (zero repeated interval), install the watchdog signal action for the selected signal and preserve its preceding action for later restoration. Failed installation shall report its system-call failure. The caller/library shall provide balanced initialization and finalization, without independently repeated initialization or live watchdogs before setup. If later library initialization fails after this signal action was acquired but before any timer/event was acquired, its internal rollback shall restore the preceding action without modifying an unrelated existing interval timer.
-
19. Class finalization and pending-notification cleanup PPL-SPEC-000889 On an available platform, finalization shall require no live pending watchdog events. With the selected signal blocked, it shall stop the owned timer, mark the logical alarm inactive, discard an owned pending notification and restore the preceding signal action. It shall restore the caller's exact mask and preserve errno when it returns. Failure to block, stop the timer, install the discard action, restore the preceding action or restore the mask shall invoke std::terminate. A stale notification from a canceled timer shall not escape later to the preceding client handler.
-
Incoming link from: 14. Due-event signal dispatch and successful one-shot expiration1
20. Timeout and signal-mask errno preservation PPL-SPEC-000890 Whenever timeout dispatch returns normally, it shall restore its entry errno, including a stale-signal return, callback effects and successful read/rearm calls that change errno. Signal-mask acquisition and restoration shall preserve the errno with which those individual mask operations were entered. Finalization shall preserve its entry errno on return under 🔗 19. Class finalization and pending-notification cleanup. This shall not turn a reported constructor system-call failure into an unchanged-errno promise.
-
Incoming links from: 3. Java native failure and pending-exception protocol 4. Java owned wrappers and borrowed views2
2. Java library initialization and finalization PPL-SPEC-001689 After loading the configured JNI library, initialize_library shall establish native library state and the Java class cache before supported operations. finalize_library shall release that cache, the calling thread's variable stringifier and deterministic-timeout state, and the native initialization owner. A later initialization shall establish a new valid period of use.
Clients shall release owned objects, cease using borrowed views, and end worker thread participation before finalization. Requests shall alternate valid initialization and finalization; duplicate library requests are outside this protocol. Participating workers shall obey 🔗 6. Thread entry and shared-facility use.
-
3. Java native failure and pending-exception protocol PPL-SPEC-001690 Supported JNI numerical entry points shall contain native exceptions. Native invalid_argument, domain_error, length_error, logic_error and overflow_error shall become the corresponding Java binding exceptions. Supported native interruption shall become Timeout_Exception. Allocation failure shall become a Java exception describing out-of-memory failure; other standard and unexpected native exceptions shall become RuntimeException with a diagnostic.
A Java exception already pending after a host callback or object creation shall be returned to Java without replacement by a translated native exception. Argument-conversion callbacks shall complete before native access to a receiver that they may release; released receivers shall be rejected. Host-runtime termination and undefined behavior are outside the failure model.
-
4. Java owned wrappers and borrowed views PPL-SPEC-001691 An owned numerical wrapper shall release its native allocation through explicit free or managed finalization, without a later cleanup deleting that allocation again. Copy construction shall produce an independent native object. Borrowed-wrapper cleanup shall not delete the underlying owned object.
Factories shall bind view owners before allocating native cursor storage, or retain native results in an exception-safe owner until all fallible publication steps complete. Failed JNI allocation or native computation shall leave no stranded native result. Replacing a ranking-function output shall release its previous value while preserving ownership of the output wrapper.
MIP and partial-function wrappers shall reject native access after release. Powerset cursors and disjuncts shall retain their owner, validate its current generation, and reject stale use; disjuncts shall be read-only and copying one shall produce an independent writable object. Cursor operations shall reject boundary and foreign-owner misuse. Mutating or potentially normalizing a powerset shall invalidate its dependent views except for the documented cursor returned by single removal. Stable metadata queries shall preserve them.
PIP tree views shall retain their problem owner and reject access after owner release or a mutation invalidating the captured tree generation. View cleanup shall leave independently owned problems usable. Managed cleanup timing is controlled by the JVM. Clients shall obey 🔗 2. Java library initialization and finalization and the operation-specific borrowing and synchronization prerequisites.
-
5. Scoped JNI modified UTF-8 character release PPL-SPEC-001707 UTF_Chars_Lease shall adopt one non-null result of a successful GetStringUTFChars call. The JNI environment, Java string and character pointer shall identify that same acquisition, and shall remain valid on the acquiring thread until the lease is destroyed. The adopted acquisition shall have no other owner responsible for release.
Destruction shall call ReleaseStringUTFChars exactly once with the adopted environment, string and pointer, both at ordinary scope exit and during C++ exception unwinding. The lease shall neither copy the characters nor allocate storage. Copy construction and copy assignment shall be unavailable. Releasing the characters shall preserve any pending Java exception.
Coefficient import, Java-customized variable output and Java text wrapping shall adopt each successfully acquired character pointer before any subsequent throwing native operation. Coefficient import shall return the value parsed from the acquired decimal characters. The variable formatter shall retain the characters through output. Text wrapping shall release them before allocating the returned Java string. Failed acquisition shall not create a lease and shall retain the entry point's existing JNI failure behavior.
-
2. OCaml managed native ownership PPL-SPEC-001693 Owned domain, MIP and PIP problem handles shall register a custom finalizer which releases the owned native object exactly once when the OCaml runtime finalizes the handle. Independent copies shall own independent allocations. A marked borrowed native pointer shall not be deleted by its wrapper finalizer.
Factories shall allocate managed native owners before constructing native objects or owned conversion temporaries. Native slots shall contain null or their owned pointer before they can be observed by a finalizer or client. Native-only construction may defer the null-slot write to its failure path before exception translation or any further managed allocation. No subsequent OCaml allocation shall be needed to publish a newly owned native pointer. C++ failures during construction or multi-result computation shall leave no unowned native allocation; partially initialized managed owners shall be safe to finalize.
Borrowed powerset iterators and read-only disjuncts shall keep their owner in GC-scanned storage and check its generation before native access. PIP tree views shall keep their problem owner reachable and reject generation-invalid access. View collection shall not delete the owner's native allocation. Clients shall respect the library lifecycle and operation-specific view invalidation rules. No collection time or prompt finalization is promised.
-
Incoming link from: 4. OCaml operation-option correspondence1
3. OCaml native exception translation PPL-SPEC-001694 Native exceptions raised by supported OCaml numerical entry points shall be contained. bad_alloc shall raise Out_of_memory and invalid_argument shall raise Invalid_argument. Native overflow, domain, length, logic and runtime errors shall raise the corresponding declared PPL_arithmetic_overflow, PPL_domain_error, PPL_length_error, PPL_logic_error and PPL_internal_error exceptions with diagnostics. Other standard exceptions shall raise PPL_unknown_standard_exception; unexpected native exceptions shall raise PPL_unexpected_error. Supported timeout exceptions shall reset the triggering binding-owned timer and raise PPL_timeout_exception.
Native handlers and scoped native resources shall finish cleanup before the host exception is raised. If native unwinding leaves local root records from exited frames, the bridge shall restore the prior root chain before any runtime allocation. Diagnostic creation shall preserve the exception type and message when allocation succeeds. Allocation failure during translation shall be reported through the OCaml runtime after native cleanup. Raising an exception does not promise rollback beyond an operation's contract. Well-typed host representations, lifecycle, range and synchronization preconditions apply.
-
2. Prolog success failure and exception outcomes PPL-SPEC-001696 A true numerical predicate shall succeed; a false numerical predicate shall fail normally. Result-producing predicates shall unify the documented output terms on success. Incompatible output bindings shall cause ordinary failure, without changing that into a numerical falsehood or promising rollback of foreign mutations. Newly allocated owned results whose output cannot be unified shall be released.
Malformed arguments and supported native failures shall be reported through the selected engine's Prolog exception mechanism. Native exception unwinding shall be contained at the foreign boundary. Error terms shall distinguish the common invalid-argument/type/range, arithmetic-overflow, allocation, native logic/runtime and supported interruption categories according to the engine adapter. Ordinary false queries shall not be used to conceal those errors.
-
Incoming link from: 2. Prolog success failure and exception outcomes1
3. Prolog owned domain and MIP handles PPL-SPEC-001697 Constructors shall return an opaque typed handle owning the new domain or MIP object. Copy constructors shall create an independent owned object. Deletion shall release the object and invalidate all aliases of its identity. Native access shall first check live owner identity and required native type; malformed, stale, unknown and wrong-type handles shall raise invalid-argument errors through 🔗 2. Prolog success failure and exception outcomes.
Owner identities shall not wrap or be reused, including across finalization and reinitialization. Registry exhaustion shall reject construction rather than revive an old identity. MIP clear, swap and normal updates shall preserve live problem handles. Finalization shall release registered owned objects. A failed constructor/copy output unification shall discard the unpublished allocation. Term collection and backtracking alone shall not delete a foreign owned object.
-
4. Prolog powerset iterator and disjunct validity PPL-SPEC-001698 Powerset iterator and disjunct access shall validate live owner identity, required native type and captured owner generation. Potentially normalizing queries and mutations shall invalidate dependent views; documented stable metadata queries shall preserve them. Swap shall invalidate views of both owners. Borrowed disjuncts shall be read-only; copying one shall produce an independent writable object.
Traversal shall reject end dereference, advancement past the end, movement before the beginning and operations combining different owners. Range removal shall reject reversed ranges. Single removal shall refresh its returned cursor while invalidating other captured cursors and views. Stale iterators shall remain explicitly deletable without dereferencing their former native node until library finalization. Failed view-output unification shall not leak a registry object. Invalid uses shall raise invalid-argument errors.
-
Incoming link from: 2. Prolog success failure and exception outcomes1
5. Prolog PIP owner and tree generations PPL-SPEC-001699 PIP problem and tree handles shall validate live typed owner identity before native access. A tree view shall additionally match the current problem generation and required node kind. Mutations, clear, swap of either operand, problem deletion and finalization shall invalidate prior tree views. Repeated stable solution queries shall preserve valid current-generation identities.
Unknown, malformed, stale and wrong-kind handles shall raise invalid-argument errors. Owner and view identity counters shall reject exhaustion rather than wrap; finalization/reinitialization and native-address reuse shall not revive old terms. Registry storage for old tree generations shall be reclaimed when invalidated. Failed constructor/copy/view output unification shall discard unpublished owned resources without deleting an independently owned object.
-
6. Prolog library lifecycle protocol PPL-SPEC-001700 ppl_initialize shall establish the common native state if it is not already initialized; a repeated request shall succeed harmlessly. ppl_finalize shall release binding-owned interruption resources and registered objects and leave the interface uninitialized; a repeated request shall also be harmless. A subsequent initialization shall permit a new valid period of use without making old handles valid. Fixed interface atom names cached during initialization shall remain valid across the engine's atom and string garbage collection.
Each engine adapter shall invoke initialization through its documented loading hook or require explicit initialization before numerical predicate use. After finalization, clients shall use only lifecycle operations until the next initialization. The protocol does not require diagnosis of every violation of these call-state preconditions.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
6. C deterministic timeout lifecycle PPL-SPEC-001553 Supported deterministic requests shall use the native positive scaled computational-weight increment, its admitted circular threshold domain and cooperative checkpoints. Replacing shall cancel the preceding deterministic setting before admitting the replacement; reset shall release its C-owned watcher and notification state. A deterministic interruption shall release that deterministic watcher before reporting the timeout category. It shall not remain active merely because the signal-timeout cleanup path was selected instead. Reset shall clear only the C-owned deterministic request and preserve unrelated borrowed interruption requests. In thread-safe C configurations, each initialized thread shall own its independent watcher, threshold queue, checker and budget counter. Setting, canceling or expiring one thread's budget shall not alter another's. Thread and library finalization shall release the calling thread's remaining C-owned deterministic state before native teardown; a later thread session shall inherit no pending C deterministic timeout.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming link from: 12. Watcher notification lifetimes and exclusive use1
1. Polymorphic event-action interface and virtual destruction PPL-SPEC-000815 Handler shall be an abstract interface with const action dispatch and virtual destruction. Calling act() through a live base reference shall dispatch to the selected derived handler. Deleting an owned derived handler through a base pointer shall run its derived destruction and release its wrapper exactly once. A borrowed handler shall not become owned merely by being passed to a pending event.
Construction, dispatch and destruction shall require the selected external callback/flag objects and synchronization to remain valid. These wrappers shall not themselves require global PPL initialization or timer availability. A caller invoking actions in a signal handler or shared threshold-watcher context shall retain that surrounding interface's operation and thread/signal restrictions.
-
2. Flag-handler binding and binding-preserving copies PPL-SPEC-000816 Handler_Flag construction shall bind the supplied holder reference and flag object without invoking a priority query, installing the flag or taking ownership of either external object. Copy construction and rvalue construction shall preserve those same bindings; later actions shall observe the holder's current value rather than a pointer-value snapshot made during construction. Ordinary assignment of this reference-binding wrapper shall not be supported.
The holder shall be a live volatile pointer to const Flag_Base and Flag* shall convert to Flag_Base*. For a nonnull holder, the existing pointee shall belong to the compatible Flag object family, so the implementation's declared base-to-flag cast is well formed and valid. The flag/holder and any nonnull pointee shall outlive their actual access. Wrapper destruction shall not delete or alter them.
-
3. Strict-priority flag installation PPL-SPEC-000817 On act(), a null bound holder shall be set to the bound flag address without querying flag priorities. For a nonnull valid holder, the action shall install the bound flag exactly when the existing flag's observed priority is strictly lower than the bound flag's observed priority. Equal or higher existing priority shall preserve the existing pointer. Priority queries shall supply comparable values consistent with that call's decision; they shall not themselves rebind the holder. External priority changes between calls shall be observed by later actions.
The operation shall not own/delete flags or allocate a wrapper. If a priority query reports an exception, it shall propagate through ordinary C++ dispatch without an assignment by the handler to the holder; any side effects of the query itself shall remain its own contract.
-
4. Function-handler target binding and copies PPL-SPEC-000818 Handler_Function construction shall store the supplied function pointer without invoking it. Copy and rvalue construction shall retain the same target. Ordinary assignment shall not be supported. A null pointer may be stored and destroyed without invocation, but shall not be an admitted action target. The callable code shall remain valid at invocation. Construction/copy/destruction shall not call or own the function or allocate auxiliary callback state.
-
5. Function action dispatch and callback failure PPL-SPEC-000819 With a live nonnull target, Handler_Function::act() shall call the stored function exactly once per invocation and return normally exactly when that call returns normally. A callback exception shall propagate with its identity and previously performed callback effects; no rollback of arbitrary callback state shall be required. The wrapper shall remain bound to the same target and permit a later admitted call. No invocation shall silently replace the callback with another target or delete its external state.
-
Incoming link from: 8. Cooperative abandonment checkpoint ordering and propagation1
5. Interruptible thread registration and request lifetime PPL-SPEC-001733 Within the library/thread lifecycle of 🔗 3. Thread initialization, default state and finalization, make_interruptible shall return a callable that initializes PPL thread state, registers the calling thread for interruption, invokes the wrapped callable with forwarded arguments and unregisters the thread before finalizing thread state. Return values and exceptions shall propagate to the caller. The registration shall also end during exception unwinding. A registration lifetime shall not overlap another PPL thread-initialization lifetime on the same thread.
interrupt_thread shall serialize lookup against registration and removal. It shall return false when the supplied thread has no active registration. Otherwise it shall replace the thread's registration-scoped request and return true. A null request withdraws that request. Unregistering shall also withdraw the request. Both operations shall leave the separate caller-owned slot in 🔗 7. Caller-owned abandonment request and exception object intact. Acceptance does not guarantee that a checkpoint will occur before normal completion. At an abandonment checkpoint the requested Throwable follows 🔗 8. Cooperative abandonment checkpoint ordering and propagation. A non-null supplied object remains caller-owned and shall outlive all possible accesses by the target thread; requesters shall synchronize its lifetime and any concurrent calls themselves. The registry and its mutex shall remain alive until all registered calls and requesters have completed. Internal registration guards shall not be copied, moved or assigned.
-
1. Threshold-ordered pending events and caller prerequisites PPL-SPEC-000801 Pending_List<Traits> shall own a sequence of active event nodes and a separate pool of reusable inactive nodes. Each active event shall contain an owned threshold value and borrowed handler/expired-flag bindings. Traits::less_than shall define a stable strict weak order on admitted threshold values. Threshold copy construction, assignment, destruction and that comparison shall not throw; selected threshold operations shall satisfy their own validity and resource prerequisites.
Clients shall synchronize access and retain the noncopying owning-list conditions of 🔗 5. Empty owning-list construction and remaining-node destruction. Active node positions shall belong to one list and remain valid only until their event is erased or their owner destroyed. Handlers and flags shall remain alive while their event is active or a borrowed reference is accessed. Inactive pooled nodes may retain old pointer values without accessing those external objects; their old external bindings need not outlive the pool. The queue shall not require global PPL initialization beyond the selected threshold's own needs. Any enclosing watcher interface shall retain its additional thread/signal restrictions.
-
2. Pending-element construction and embedded-link lifetime PPL-SPEC-000802 Pending_Element construction shall copy the supplied threshold and bind the supplied handler and flag by reference identity. It shall not invoke the handler, modify the flag or retain a reference to the caller's threshold object. The selected threshold shall satisfy 🔗 1. Threshold-ordered pending events and caller prerequisites.
The newly constructed element's inherited links shall require binding into a valid ring before traversal, unlinking or destruction, retaining 🔗 2. Embedded-node construction and link initialization. Queue insertion shall establish that binding before exposing the element. A directly constructed element shall be attached by its caller before destruction; completed linked-element destruction shall retain the nonthrowing threshold lifetime and embedded- node contract.
-
3. Element attribute reassignment without relinking PPL-SPEC-000803 assign shall replace the owned threshold value and borrowed handler/ flag bindings with the supplied attributes, preserving the element's existing link position. It shall not allocate an event node, invoke a handler or reset either flag. The supplied threshold may alias this element's current threshold; self-value assignment shall retain its meaning. Callers reassigning active elements shall preserve the pending list's ordering before using its ordinary operations. Pooled elements shall be rebound before exposure as new active events.
-
4. Threshold, handler and expired-flag reference access PPL-SPEC-000804 deadline() shall return a const reference to the owned threshold; handler() shall return a const reference to the bound handler; expired_flag() shall return a mutable reference to the bound Boolean even through a const element wrapper. Access shall preserve all attributes and links. A reference to the threshold shall require the node and threshold object to remain alive, and shall observe any later admitted reassignment. Handler/flag references shall retain the external object's lifetime independently of the element wrapper. Invoking or modifying a returned external object shall be a caller action, not an automatic queue notification.
-
5. Pending-element attribute checker scope PPL-SPEC-000805 For an admitted completed element, OK() shall return true without modifying attributes or links. It shall not validate threshold positivity, current-time expiry, external handler policy or list sorting. Its use shall not dereference a handler or flag merely to validate their stored pointer values. This element checker shall not establish the inherited ring's structural validity or make a stale active-event position usable.
-
6. Queue construction and complete active/free ownership cleanup PPL-SPEC-000806 Construction shall create a valid empty active sequence and empty free pool. Destruction shall release every owned active and pooled node and its threshold exactly once. It shall not delete borrowed handlers or flags, invoke notification actions or change external expired flags. Independent queue owners shall have independent nodes and lifetimes. No supported owner copy/assignment shall be required under 🔗 1. Threshold-ordered pending events and caller prerequisites.
-
Incoming link from: 5. Per-trait event ordering and multiplicity1
7. Sorted insertion and equivalent-deadline multiplicity PPL-SPEC-000807 Successful insertion shall add exactly one active event with the supplied attributes and return its live position. Traversing the active sequence shall produce nondecreasing threshold order under the supplied strict weak comparison. Every previously active event shall remain with its prior threshold, handler, flag and node identity. Distinct events with equivalent thresholds shall all remain present; their relative order shall not be required by this interface. Insertion shall not act on handlers or modify external flags. Threshold values need not be positive or related to a clock merely to use this internal queue.
-
8. Insertion with borrowed active attributes PPL-SPEC-000808 An insertion's threshold argument may borrow the threshold of an already active element; insertion shall preserve that source and copy its value into the new event. Handlers and flags may be shared among several active events. Their reference identities and preexisting flag values shall remain unchanged by insertion. These aliases shall not permit reuse of erased positions as active-event sources or destruction of external objects still referenced by active events.
-
Incoming link from: 9. Watcher destruction, cancellation and handler ownership1
9. Active-event erasure and successor preservation PPL-SPEC-000809 Erasure shall require a live active position belonging to this queue. It shall remove exactly that event from the active sequence, preserve every other event and its ordering/identity, and return the removed event's next active position or this queue's end. It shall retain the removed node in the reusable pool without destroying its threshold, notifying its handler or changing its flag. The removed position shall cease to denote an active event even while the underlying node remains allocated. Erasure shall not allocate.
-
10. Recycled-node insertion and allocation-free reuse PPL-SPEC-000810 When inactive nodes are available, insertion shall reuse one of them rather than allocate a new node. It shall replace every event attribute before linking the reused node into the sorted active sequence. The old external handler/flag bindings shall not be accessed during reuse. No particular selection order among available free nodes shall be required. Without an inactive node, insertion shall allocate a new properly aligned event node. Threshold operation costs shall remain those of the admitted nonthrowing threshold type.
-
11. Active-event iterator ranges and borrowed traversal PPL-SPEC-000811 iterator and const_iterator shall retain the corresponding embedded-list iterator types and 🔗 7. Embedded-list iterator borrowing and valid linked positions, 🔗 8. Embedded-list position binding and lifetime, 🔗 9. Embedded-list typed element access, 🔗 10. Embedded-list bidirectional traversal and 🔗 11. Embedded-list position equality. The public nonconst begin/end members shall bound exactly the active sequence; free nodes shall never appear in that range. End shall be comparable and support retreat when nonempty, but not dereference. Positions shall preserve node identity under other event insertion/erasure, subject to 🔗 1. Threshold-ordered pending events and caller prerequisites. Clients shall not change embedded links or break active threshold ordering through the borrowed element access.
-
12. Active emptiness independent of retained pool storage PPL-SPEC-000812 empty() shall return true exactly when no active events remain. An empty active sequence shall have equal begin/end positions even if inactive node storage is retained. Emptiness shall not imply that all allocated event nodes have been released. The query shall not notify handlers, modify flags or change the active/free node ownership.
-
13. Queue node checks and threshold-order validation PPL-SPEC-000813 For safely inspectable active/free rings, OK() shall require both embedded lists' element checks and nondecreasing active threshold order. An empty active list shall pass when its active/free node checks pass. Free nodes shall not require threshold sorting. Checking shall not invoke handlers, dereference expired external bindings, modify flags or change ownership. Corrupted embedded links shall remain outside the checker domain; this operation shall not provide memory-safe diagnosis of arbitrary ownership corruption. Clients may check and repair a threshold-order violation before resuming ordinary queue operations.
-
14. Insertion-allocation failure preservation and retry PPL-SPEC-000814 With the nonthrowing threshold and comparison prerequisites of 🔗 1. Threshold-ordered pending events and caller prerequisites, a reported event-node allocation failure shall leave the active sequence, free pool, all existing event attributes, handler bindings and flag values unchanged. No incomplete event node shall remain owned or linked. The same queue shall permit a later successful insertion and ordinary erasure. Erasure and insertion using an available pooled node shall not require an event-node allocation. These guarantees shall not promise recovery from violated threshold or linking preconditions.
-
5. Integer feasibility of parametric compatibility contexts PPL-SPEC-001741 A native context shall include a constant column. Each row shall denote an inequality whose constant is in column zero and whose remaining coefficients multiply nonnegative integer coordinates. The affine row value shall be required to be nonnegative. The additional row, when supplied, shall have the same logical width and shall be conjoined with the context. A completed query shall return true exactly when that system has a nonnegative integer solution. A rational solution that fails an integrality constraint shall not justify true. Explicitly stored zeroes and differing physical row capacities shall not alter the result.
The const-input entry points shall preserve the context and any additional row. The destructive entry point may modify and extend its working tableau. A compatibility workspace shall own its scratch storage and shall be noncopyable. Nested queries shall use distinct workspaces. Restoring a context shall replace the logical rows, including zeroing retained coordinates absent from the source. Reuse may retain inactive row allocations and sparse entries holding zero. After failure or interruption, another query shall rebuild or reinitialize the scratch state before relying on it.
When direct bounded arithmetic has not been proved representable, complete rational pivot rows shall be evaluated exactly and the common positive factor of their numerators and denominator shall be cancelled before admission. Comparison-only products shall retain exact order without requiring them to fit a stored coefficient. When a reduced numerator or denominator cannot be stored, the protected entry points and the workspace overload accepting a const context and an additional row shall replay the original unchanged context in owned unbounded rational working storage. Replay shall preserve reconstructed original-variable column order and enforce integer feasibility of those variables using cuts. It shall not widen the public solution-tree coefficient type.
Only the internal working-range condition shall trigger replay. Allocation failures and client abandonment exceptions, including client overflow exceptions, shall propagate. Scratch from an unsuccessful query shall not establish any feasibility result.
-
6. Indirect-sort failure and cooperative interruption states PPL-SPEC-000536 Under 🔗 5. Indirect sorting establishes a distinct prefix without resizing, failures while preparing or sorting the private index sequence shall preserve every indexed value and associated record. This shall include recoverable index-storage allocation failure and exceptions from the ordering comparator. Temporary index storage shall be released on every exceptional return.
Outside library assertion evaluation, cooperative abandonment shall be checked before index preparation, at intervals of at most 1024 ordering comparisons, and again before the first indexed-value mutation. A reported cooperative interruption shall therefore preserve every indexed value and associated record. A caller-owned abandonment request shall remain set until the caller clears it; this comparison-count interval shall not imply an elapsed-time bound.
An exception from the uniqueness comparator may occur after the indexed values have been sorted. It need not preserve their former order or establish a compact distinct prefix, but shall retain live owners and the complete value permutation and paired associations. A throwing swap shall be outside the algorithm's admitted swap precondition.
-
1. Generic threshold-watcher traits and admitted value protocol PPL-SPEC-000851 Threshold_Watcher<Traits> shall use the selected trait's Threshold and Delta types, current-value provider get(), nonthrowing strict comparison less_than and conversion from_delta. Threshold shall be default constructible, have nonthrowing copy construction, assignment and destruction, and satisfy its own value/resource needs. get() shall produce a value/reference bindable to a const threshold reference for the duration of a check. Conversion shall assign the selected absolute threshold from the supplied delta. Default construction, current-value provision and conversion may report exceptions.
The comparison shall provide a coherent strict order over the admitted current/pending domain, including false on equal values. The trait shall provide a writable check_function slot accepting, converting to and invocable as void (*)(), initially null with no pending events and owned by the watcher protocol while events remain. This generic mechanism shall require no timer availability or global PPL initialization beyond its selected traits' needs. Thread/lifetime conditions shall retain 🔗 12. Watcher notification lifetimes and exclusive use.
-
2. Flag-notification watcher construction PPL-SPEC-000852 Successful flag-form construction shall own one handler bound to the supplied holder and flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, compute/validate the event threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. Construction shall not install the flag or query its priority merely to register the event. The holder/flag shall remain borrowed notification objects. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and a compatible flag. Its synchronous notification shall use release compare-and-exchange to fill only a null holder. It shall not dereference an existing request, query priorities, or replace a nonnull request. Both notification objects shall outlive the watcher; a published flag shall also outlive its readers. Cancellation shall precede clearing or releasing its binding. The same threshold validation, registration failure cleanup and queue exclusivity conditions shall apply.
-
3. Function-notification watcher construction PPL-SPEC-000853 Successful function-form construction shall own one handler retaining the supplied callback under 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure, compute/validate its threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. The callback shall be live and nonnull when its event can dispatch. Construction shall not invoke it. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
-
4. Threshold conversion and already-reached rejection PPL-SPEC-000854 Construction shall default-construct a local threshold, invoke the selected from_delta conversion, then obtain the current value and accept the result only if the current value is strictly before that threshold under the admitted comparison. A converted threshold equal to or before the current value shall throw std::invalid_argument and shall not register an event. Exceptions from default construction, conversion or current-value provision shall propagate with 🔗 10. Construction failure cleanup and existing-event preservation. The generic watcher shall not infer another numeric interpretation of a user-defined delta or absolute threshold.
-
5. Per-trait event ordering and multiplicity PPL-SPEC-000855 Watchers shall share their trait's pending queue within the storage policy in 🔗 12. Watcher notification lifetimes and exclusive use: one per thread for an opted-in thread-safe trait, otherwise one shared queue per trait. Each successful construction shall add one event, preserving all existing watchers and nondecreasing threshold order under 🔗 7. Sorted insertion and equivalent-deadline multiplicity. Equivalent future thresholds shall be admitted as distinct events; no relative dispatch order among equivalent events shall be required. Different trait instantiations shall have independent queues and hook slots. Registration shall not dispatch existing events.
-
6. Published checking function and empty-queue transitions PPL-SPEC-000856 After successful event registration, the trait's check_function slot shall point to that instantiation's checking action. It shall remain published while any event is pending and become null when the final pending event is canceled or successfully dispatched. Failed construction shall preserve the previous slot value under 🔗 10. Construction failure cleanup and existing-event preservation. Clients shall invoke a published hook only while its queue remains nonempty under the exclusive-use protocol; retaining an old nonnull pointer shall not authorize calling an emptied queue.
-
7. Due-event dispatch and successful expiration PPL-SPEC-000857 A published check shall obtain the current object from one get() call and inspect pending events in threshold order. While that observed current object is not strictly before the first pending threshold, it shall invoke the event's bound action. Only after that action returns normally shall it mark the watcher expired and remove its pending event. Thus an event exactly at the current threshold shall be due. Processing shall stop at the first future event or an empty queue, retaining 🔗 6. Published checking function and empty-queue transitions.
If a trait returns a reference to mutable current state, later comparisons in the same dispatch shall observe any admitted serial changes to that object; a value returned by get() shall instead remain the retained value for that check. This mechanism shall not promise elapsed-time notification or invoke the current-value provider separately per event.
-
8. Action exceptions and partially completed dispatch PPL-SPEC-000858 If a notification action throws, dispatch shall propagate that exception without marking or removing the throwing event. Earlier events already notified successfully shall remain expired and removed; later events shall remain pending. The throwing event's callback effects shall not be rolled back. A later admitted check may invoke it again, or destruction may cancel it. The queue and published hook shall remain consistent with the events still pending, and no handler shall leak.
-
9. Watcher destruction, cancellation and handler ownership PPL-SPEC-000859 Destruction of an unexpired watcher shall cancel its pending event; destruction of an already expired watcher shall not remove another event or notify again. Both shall destroy the watcher-owned handler exactly once. Cancellation shall not invoke the handler or modify external flag objects, and shall retain the active/free queue ownership of 🔗 9. Active-event erasure and successor preservation. Destruction shall retain the admitted nonthrowing trait operations and exclusive-use conditions.
-
10. Construction failure cleanup and existing-event preservation PPL-SPEC-000860 A reported failure while allocating the handler, default-constructing or converting a threshold, obtaining current state, rejecting an already reached threshold, or allocating its pending node shall release the incomplete watcher-owned handler and any temporary resources acquired for that construction. It shall preserve all previously pending watchers, their notification state and the previously published checking hook. The same trait instantiation shall permit later successful construction and dispatch/cancellation. The nonthrowing copy/assignment/destruction/ comparison prerequisites shall remain those of 🔗 1. Generic threshold-watcher traits and admitted value protocol.
-
11. Noncopyable watcher lifetime identity PPL-SPEC-000861 A watcher shall retain one lifetime identity for its expired flag, handler and pending position. Copy construction and assignment shall be inaccessible; no public move construction/assignment or default construction shall be supplied. Clients shall keep its address and lifetime stable while an event can reference that state. Separate watcher objects shall be constructed through their own notification constructors.
-
Incoming links from: 1. Generic threshold-watcher traits and admitted value protocol 5. Per-trait event ordering and multiplicity 1. Computational-weight value and current-state binding 2. Exact scaled-weight conversion and representability 3. Absolute threshold formation and modular aliases 4. Strict circular ordering of computational weights 5. Computational-weight instrumentation outside profiling mode 6. Assertion-scope instrumentation suppression 7. Caller-owned abandonment request and exception object 8. Cooperative abandonment checkpoint ordering and propagation10
12. Watcher notification lifetimes and exclusive use PPL-SPEC-000862 Construction, destruction and checks for one trait's shared queue shall not overlap concurrently or reenter that queue's dispatch. Notification actions shall retain the valid handler/flag/function bindings of 🔗 1. Polymorphic event-action interface and virtual destruction, 🔗 2. Flag-handler binding and binding-preserving copies, 🔗 3. Strict-priority flag installation, 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure and shall not destroy a watcher whose handler or expiration state is being accessed. The trait's current-value result shall remain valid through its use. Clients shall not replace a queue's hook while its events remain.
In a thread-safe configuration, a trait may opt into per-thread queues with static constexpr bool thread_local_queue = true. Its current-value state and checking slot shall then also be thread-local. Weightwatch_Traits shall use this policy. Watchers and their borrowed bindings shall remain in their constructing thread and be destroyed before that thread exits. Other threads may independently compute, register, cancel and check their own queues. Exclusivity and nonreentrancy shall apply separately to each queue. Traits without that opt-in, and ordinary non-thread-safe configurations, shall retain the shared-state synchronization requirements above.
-
1. Optional profiler selection and instrumentation protocol PPL-SPEC-001598 Computational-weight profiling shall be selected by nonzero PPL_PROFILE_ADD_WEIGHT together with NDEBUG. Assertion builds shall retain ordinary weight instrumentation even when the profiling flag is nonzero; profiling-disabled release builds shall retain 🔗 5. Computational-weight instrumentation outside profiling mode. Profiler implementation definitions and automatic calibration shall be present only in the selected profiling configuration. The profiler declaration shall be included after Weightwatch_Traits is complete, with the time declarations required by its interface.
In profiling mode, WEIGHT_BEGIN() shall call Weight_Profiler::begin(). Each expansion of WEIGHT_ADD(d) or WEIGHT_ADD_MUL(d, f) shall own a function-static profiling point identified by that expansion's file and line. The first execution shall evaluate and capture d as the point's Delta; later executions of that expansion shall reuse it. WEIGHT_ADD shall end a one-iteration sample; WEIGHT_ADD_MUL shall evaluate f once per execution, convert it to unsigned int, and end that many iterations. Expressions and their conversions shall be defined. Deltas intended to vary between calls shall use distinct explicit profiling points instead.
The profiler shall borrow its file-name string through its last output or destruction. Calls using the shared clock boundary, calibration and statistics shall be serialized, including in a thread-safe library build. A successful POSIX calling-thread CPU clock shall be available. Timing calls shall occur in the same thread over each interval. Admitted statistics shall remain representable in their unsigned int sample/iteration counters; timing differences shall remain representable in the clock arithmetic. No numerical-library initialization prerequisite shall be imposed by the profiler itself. The ordinary weight counter shall retain 🔗 1. Computational-weight value and current-state binding.
-
Incoming link from: 3. Profiler sample classification and weighted statistics1
2. Profiler clock boundaries and zero-iteration weight accounting PPL-SPEC-001599 begin() shall replace the shared timestamp with the calling thread CPU time. For end(n) with n > 0, the profiler shall add δn to Weightwatch_Traits::weight using that unsigned counter's modular arithmetic, read a new timestamp, and use the preceding shared boundary as the interval start. A nanosecond-field rollover shall retain the elapsed time across the seconds boundary. After subtracting the calibrated overhead a, it shall supply the elapsed nanoseconds e and per-iteration value x = e ⁄ n to 🔗 3. Profiler sample classification and weighted statistics. Timing arithmetic shall use double and its rounding; adjusted times need not be nonnegative.
For end(0), the profiler shall refresh the shared timestamp without changing the weight, sample counts, iteration counts or accumulated statistics. It shall perform no division by zero or statistical arithmetic for that call. The next sample shall start at the refreshed boundary, so an interval with no iterations shall not be attributed to subsequent work. All calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
-
Incoming link from: 2. Profiler clock boundaries and zero-iteration weight accounting1
3. Profiler sample classification and weighted statistics PPL-SPEC-001600 Construction shall capture the source location, delta and timing thresholds, and initialize both the valid and discarded statistical classes to zero. It shall leave the shared timing boundary and computational weight unchanged. For each positive-count sample from 🔗 2. Profiler clock boundaries and zero-iteration weight accounting, let x = e ⁄ n. The sample shall be discarded exactly when x < m or (M > 0 ∧ x > M), where m and M are the minimum and maximum thresholds. Equality with either active threshold shall be valid; a nonpositive maximum threshold shall disable the upper test.
In the selected class, the sample count shall increase by one and the iteration count N by n. The elapsed-time sum S shall increase by e, and the weighted square sum Q by ex. The first sample shall set both extrema to x; later samples shall retain the minimum and maximum per-iteration values. The other class shall remain unchanged. Classification shall not suppress the computational-weight increment. Statistics shall use double arithmetic with its rounding. The output mean shall be S ⁄ N, and valid-sample population variance Q ⁄ N − (S ⁄ N)2, the iteration-weighted statistics. Floating rounding can make the computed variance negative; no exact-time or nonnegative rounded variance guarantee shall be imposed. 🔗 1. Optional profiler selection and instrumentation protocol shall apply.
-
Incoming link from: 5. Computational-weight instrumentation outside profiling mode1
4. Profiler reports, lifetime output and startup calibration PPL-SPEC-001601 output_stats() shall write to std::cout without clearing the stored statistics. Its prefix shall identify the borrowed file and line followed by Weight_Profiler. An unvisited point shall report never reached.. A nonempty valid class shall report samples, iterations, per-iteration extrema, mean, variance and square root of variance. A nonempty discarded class shall report thresholds, samples, iterations, extrema and mean. Both classes shall be reported when nonempty, valid first, with a terminating flushed newline. Numerical formatting shall follow the stream's current state. Stream failures shall follow standard stream behavior; destruction shall call this output operation subject to ordinary nonthrowing-destructor rules.
Automatic initialization in the selected configuration shall set the shared adjustment to tune_adjustment()'s return value. That internal calibration shall begin a shared interval, set the adjustment to zero, and perform 1000 one-iteration measurements at a function-static point with zero delta and zero thresholds. It shall return that point's stored valid minimum. Its statistics shall remain available for the point's destruction report. Calibration shall not change the computational weight. Direct subsequent calls shall again zero the adjustment, append 1000 measurements to that same point, and return its retained minimum; they shall not install the returned adjustment themselves. Calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
-
Incoming links from: 2. Flag-form watchdog registration 1. Optional profiler selection and instrumentation protocol2
1. Computational-weight value and current-state binding PPL-SPEC-000863 Weightwatch_Traits::Threshold and Delta shall denote unsigned long long. The computational-weight counter shall initially be zero and get() shall return a const reference to its current counter, without copying or allocating. The returned reference shall observe later admitted serial updates. In a thread-safe configuration, that counter/reference shall belong to the calling thread and shall not be used after that thread exits or from another thread. The checking slot shall initially be null and retain the watcher-owned protocol in 🔗 6. Published checking function and empty-queue transitions. In a thread-safe build the counter, checking slot and Threshold_Watcher<Weightwatch_Traits> queue shall all belong to the calling thread. Each watcher and its borrowed notification bindings shall be used and destroyed in that thread before it exits. Other threads may independently compute, register, cancel and dispatch their own budgets.
In a thread-safe build, the checking slot shall be a function-pointer proxy: assignment, conversion to void (*)(), invocation and independent copied snapshots shall retain their ordinary meanings. Assigning a local snapshot shall not change the live slot. A live-slot assignment shall not alter another thread's hook or the signal-notification gate. Direct field-address/type-trait compatibility with former raw/shared fields is not required; clients shall be rebuilt with matching library headers. Library and clients shall agree on the bool/function-pointer atomic capability selection; a compatible C++ ABI alone shall not permit mixing dispatcher modes. Clients shall not overwrite their checker while its queue contains events.
At an owner checkpoint that selects pending atomic-watchdog work, that work shall be published before checking computational thresholds. A notification arriving after the checkpoint's dispatch snapshot may be processed at the next checkpoint. With always-lock-free notification and function-pointer atomics, unexpired timers shall not install an extra checkpoint callback. Otherwise, ordinary owner code shall use a deferred per-thread hook; the signal action shall not access thread-local objects or call a potentially locking atomic operation.
-
2. Exact scaled-weight conversion and representability PPL-SPEC-000864 compute_delta(u, s) shall return the exact integer u2s when that result is representable in Delta. For u == 0 it shall return zero for every unsigned scale. For nonzero u, an excessive shift or a scaled result larger than Delta's maximum shall throw std::invalid_argument rather than wrap. The function shall not change the current counter or checking slot. Returning a zero delta shall not imply that an already reached watcher threshold is admissible under 🔗 4. Threshold conversion and already-reached rejection.
-
3. Absolute threshold formation and modular aliases PPL-SPEC-000865 from_delta(out, d) shall assign the unsigned modular sum of the current weight and the supplied delta to out. It shall admit out aliasing the delta object or the current counter and evaluate the sum from their values before assignment. It shall neither register an event nor invoke a notification. This arithmetic conversion shall not itself validate whether the result is future under 🔗 4. Strict circular ordering of computational weights; watcher construction shall perform that check under 🔗 4. Threshold conversion and already-reached rejection.
-
Incoming link from: 3. Absolute threshold formation and modular aliases1
4. Strict circular ordering of computational weights PPL-SPEC-000866 Let N be the number of value bits in Threshold and let d be the unsigned modular difference of b and a, in [0, 2N). less_than(a, b) shall return true exactly when 0 < d < 2N − 1. Equal weights shall compare false; values separated by exactly a half-range shall not acquire an arbitrary orientation. An admitted queue/check history shall keep its current and pending thresholds within a common circular interval shorter than a half-range so that this comparison gives the coherent strict ordering required by 🔗 1. Generic threshold-watcher traits and admitted value protocol. The function shall not allocate, notify or change its operands/backend state.
-
Incoming link from: 1. Optional profiler selection and instrumentation protocol1
5. Computational-weight instrumentation outside profiling mode PPL-SPEC-000867 In the normal computational-weight configuration (PPL_PROFILE_ADD_WEIGHT == 0), WEIGHT_BEGIN() shall not change the counter. Outside the assertion suppression of 🔗 6. Assertion-scope instrumentation suppression, WEIGHT_ADD(d) shall add the value of its supplied expression and WEIGHT_ADD_MUL(d, f) shall add the product of the values of both supplied expressions. Each supplied expression shall be evaluated once; the caller shall supply arithmetic expressions with defined evaluation, conversion and multiplication. Accumulation shall retain unsigned modular arithmetic and shall not itself dispatch pending notifications. The same admitted expressions shall have the same mathematical effect in assertion and nonassertion builds.
An explicitly enabled release-build Weight_Profiler configuration shall follow 🔗 1. Optional profiler selection and instrumentation protocol through 🔗 4. Profiler reports, lifetime output and startup calibration.
-
6. Assertion-scope instrumentation suppression PPL-SPEC-000868 In builds without NDEBUG, In_Assert shall maintain a nesting count in the calling thread (or the sole configured global context). Its construction shall enter assertion evaluation and destruction shall leave it. asserting() shall be true exactly while that count is nonzero. Balanced nested scopes, including exception unwinding, shall restore the previous state. During such a scope, computational-weight increment macros shall neither increment the counter nor evaluate their increment expressions, and maybe_abandon() shall return without checking thresholds or caller-owned requests. Clients shall retain properly nested, noncopied guard lifetimes. In_Assert shall not be required to exist in builds with NDEBUG.
-
Incoming link from: 5. Interruptible thread registration and request lifetime1
7. Caller-owned abandonment request and exception object PPL-SPEC-000869 Throwable shall provide a const virtual throw_me() action and virtual destruction. abandon_expensive_computations shall initially be null and shall retain a borrowed pointer to a caller-owned live Throwable. The client shall keep the request object alive through all admitted reads/actions, publish it under the configured synchronization and execution-context rules, and clear/replace the slot before ending that lifetime. The library shall not own/delete the object or clear a request after invoking it. In a thread-safe configuration the request slot shall be thread-local and atomic; the ordinary configuration shall use its declared volatile pointer protocol. Cross-thread publication shall target the intended live slot under the caller's synchronization; thread-local storage shall not turn a write to another thread's own slot into a request for the computing thread.
-
Incoming link from: 5. Interruptible thread registration and request lifetime1
8. Cooperative abandonment checkpoint ordering and propagation PPL-SPEC-000870 Outside 🔗 6. Assertion-scope instrumentation suppression, maybe_abandon() shall first invoke the nonnull computational-weight checking hook. If that action returns, it shall select the current registration-scoped request in a thread-safe build 🔗 5. Interruptible thread registration and request lifetime, if one is present, or read the current caller-owned abandonment slot. It shall invoke the selected nonnull object's const throw_me() action. The read shall observe admitted serial request changes made by the hook. A throwing hook shall propagate its exception and prevent the later action for that invocation. A throwing request action shall likewise propagate. Neither path shall clear a request, undo callback effects or take ownership of its object. A null hook/request shall be skipped. The checkpoint shall not promise a fixed elapsed-time interruption bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.
-
5. C signal timeout lifecycle PPL-SPEC-001552 Supported signal-timeout requests shall arm the native watchdog for the positive centisecond duration under its thread/signal ownership prerequisites. Replacing a timeout shall cancel the preceding signal timeout before admitting and arming its replacement; failure after cancellation shall not restore the old one. Reset shall release the C-owned signal watchdog and its binding-owned notification state. A delivered signal interruption shall report the timeout category and release that signal timeout before notification. Thread-safe C configurations shall reject the unsupported request without arming it. C library finalization shall release any remaining C-owned signal watchdog before native watchdog finalization.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming link from: 12. Watcher notification lifetimes and exclusive use1
1. Polymorphic event-action interface and virtual destruction PPL-SPEC-000815 Handler shall be an abstract interface with const action dispatch and virtual destruction. Calling act() through a live base reference shall dispatch to the selected derived handler. Deleting an owned derived handler through a base pointer shall run its derived destruction and release its wrapper exactly once. A borrowed handler shall not become owned merely by being passed to a pending event.
Construction, dispatch and destruction shall require the selected external callback/flag objects and synchronization to remain valid. These wrappers shall not themselves require global PPL initialization or timer availability. A caller invoking actions in a signal handler or shared threshold-watcher context shall retain that surrounding interface's operation and thread/signal restrictions.
-
2. Flag-handler binding and binding-preserving copies PPL-SPEC-000816 Handler_Flag construction shall bind the supplied holder reference and flag object without invoking a priority query, installing the flag or taking ownership of either external object. Copy construction and rvalue construction shall preserve those same bindings; later actions shall observe the holder's current value rather than a pointer-value snapshot made during construction. Ordinary assignment of this reference-binding wrapper shall not be supported.
The holder shall be a live volatile pointer to const Flag_Base and Flag* shall convert to Flag_Base*. For a nonnull holder, the existing pointee shall belong to the compatible Flag object family, so the implementation's declared base-to-flag cast is well formed and valid. The flag/holder and any nonnull pointee shall outlive their actual access. Wrapper destruction shall not delete or alter them.
-
3. Strict-priority flag installation PPL-SPEC-000817 On act(), a null bound holder shall be set to the bound flag address without querying flag priorities. For a nonnull valid holder, the action shall install the bound flag exactly when the existing flag's observed priority is strictly lower than the bound flag's observed priority. Equal or higher existing priority shall preserve the existing pointer. Priority queries shall supply comparable values consistent with that call's decision; they shall not themselves rebind the holder. External priority changes between calls shall be observed by later actions.
The operation shall not own/delete flags or allocate a wrapper. If a priority query reports an exception, it shall propagate through ordinary C++ dispatch without an assignment by the handler to the holder; any side effects of the query itself shall remain its own contract.
-
4. Function-handler target binding and copies PPL-SPEC-000818 Handler_Function construction shall store the supplied function pointer without invoking it. Copy and rvalue construction shall retain the same target. Ordinary assignment shall not be supported. A null pointer may be stored and destroyed without invocation, but shall not be an admitted action target. The callable code shall remain valid at invocation. Construction/copy/destruction shall not call or own the function or allocate auxiliary callback state.
-
5. Function action dispatch and callback failure PPL-SPEC-000819 With a live nonnull target, Handler_Function::act() shall call the stored function exactly once per invocation and return normally exactly when that call returns normally. A callback exception shall propagate with its identity and previously performed callback effects; no rollback of arbitrary callback state shall be required. The wrapper shall remain bound to the same target and permit a later admitted call. No invocation shall silently replace the callback with another target or delete its external state.
-
1. Threshold-ordered pending events and caller prerequisites PPL-SPEC-000801 Pending_List<Traits> shall own a sequence of active event nodes and a separate pool of reusable inactive nodes. Each active event shall contain an owned threshold value and borrowed handler/expired-flag bindings. Traits::less_than shall define a stable strict weak order on admitted threshold values. Threshold copy construction, assignment, destruction and that comparison shall not throw; selected threshold operations shall satisfy their own validity and resource prerequisites.
Clients shall synchronize access and retain the noncopying owning-list conditions of 🔗 5. Empty owning-list construction and remaining-node destruction. Active node positions shall belong to one list and remain valid only until their event is erased or their owner destroyed. Handlers and flags shall remain alive while their event is active or a borrowed reference is accessed. Inactive pooled nodes may retain old pointer values without accessing those external objects; their old external bindings need not outlive the pool. The queue shall not require global PPL initialization beyond the selected threshold's own needs. Any enclosing watcher interface shall retain its additional thread/signal restrictions.
-
2. Pending-element construction and embedded-link lifetime PPL-SPEC-000802 Pending_Element construction shall copy the supplied threshold and bind the supplied handler and flag by reference identity. It shall not invoke the handler, modify the flag or retain a reference to the caller's threshold object. The selected threshold shall satisfy 🔗 1. Threshold-ordered pending events and caller prerequisites.
The newly constructed element's inherited links shall require binding into a valid ring before traversal, unlinking or destruction, retaining 🔗 2. Embedded-node construction and link initialization. Queue insertion shall establish that binding before exposing the element. A directly constructed element shall be attached by its caller before destruction; completed linked-element destruction shall retain the nonthrowing threshold lifetime and embedded- node contract.
-
3. Element attribute reassignment without relinking PPL-SPEC-000803 assign shall replace the owned threshold value and borrowed handler/ flag bindings with the supplied attributes, preserving the element's existing link position. It shall not allocate an event node, invoke a handler or reset either flag. The supplied threshold may alias this element's current threshold; self-value assignment shall retain its meaning. Callers reassigning active elements shall preserve the pending list's ordering before using its ordinary operations. Pooled elements shall be rebound before exposure as new active events.
-
4. Threshold, handler and expired-flag reference access PPL-SPEC-000804 deadline() shall return a const reference to the owned threshold; handler() shall return a const reference to the bound handler; expired_flag() shall return a mutable reference to the bound Boolean even through a const element wrapper. Access shall preserve all attributes and links. A reference to the threshold shall require the node and threshold object to remain alive, and shall observe any later admitted reassignment. Handler/flag references shall retain the external object's lifetime independently of the element wrapper. Invoking or modifying a returned external object shall be a caller action, not an automatic queue notification.
-
5. Pending-element attribute checker scope PPL-SPEC-000805 For an admitted completed element, OK() shall return true without modifying attributes or links. It shall not validate threshold positivity, current-time expiry, external handler policy or list sorting. Its use shall not dereference a handler or flag merely to validate their stored pointer values. This element checker shall not establish the inherited ring's structural validity or make a stale active-event position usable.
-
6. Queue construction and complete active/free ownership cleanup PPL-SPEC-000806 Construction shall create a valid empty active sequence and empty free pool. Destruction shall release every owned active and pooled node and its threshold exactly once. It shall not delete borrowed handlers or flags, invoke notification actions or change external expired flags. Independent queue owners shall have independent nodes and lifetimes. No supported owner copy/assignment shall be required under 🔗 1. Threshold-ordered pending events and caller prerequisites.
-
Incoming link from: 5. Per-trait event ordering and multiplicity1
7. Sorted insertion and equivalent-deadline multiplicity PPL-SPEC-000807 Successful insertion shall add exactly one active event with the supplied attributes and return its live position. Traversing the active sequence shall produce nondecreasing threshold order under the supplied strict weak comparison. Every previously active event shall remain with its prior threshold, handler, flag and node identity. Distinct events with equivalent thresholds shall all remain present; their relative order shall not be required by this interface. Insertion shall not act on handlers or modify external flags. Threshold values need not be positive or related to a clock merely to use this internal queue.
-
8. Insertion with borrowed active attributes PPL-SPEC-000808 An insertion's threshold argument may borrow the threshold of an already active element; insertion shall preserve that source and copy its value into the new event. Handlers and flags may be shared among several active events. Their reference identities and preexisting flag values shall remain unchanged by insertion. These aliases shall not permit reuse of erased positions as active-event sources or destruction of external objects still referenced by active events.
-
Incoming link from: 9. Watcher destruction, cancellation and handler ownership1
9. Active-event erasure and successor preservation PPL-SPEC-000809 Erasure shall require a live active position belonging to this queue. It shall remove exactly that event from the active sequence, preserve every other event and its ordering/identity, and return the removed event's next active position or this queue's end. It shall retain the removed node in the reusable pool without destroying its threshold, notifying its handler or changing its flag. The removed position shall cease to denote an active event even while the underlying node remains allocated. Erasure shall not allocate.
-
10. Recycled-node insertion and allocation-free reuse PPL-SPEC-000810 When inactive nodes are available, insertion shall reuse one of them rather than allocate a new node. It shall replace every event attribute before linking the reused node into the sorted active sequence. The old external handler/flag bindings shall not be accessed during reuse. No particular selection order among available free nodes shall be required. Without an inactive node, insertion shall allocate a new properly aligned event node. Threshold operation costs shall remain those of the admitted nonthrowing threshold type.
-
11. Active-event iterator ranges and borrowed traversal PPL-SPEC-000811 iterator and const_iterator shall retain the corresponding embedded-list iterator types and 🔗 7. Embedded-list iterator borrowing and valid linked positions, 🔗 8. Embedded-list position binding and lifetime, 🔗 9. Embedded-list typed element access, 🔗 10. Embedded-list bidirectional traversal and 🔗 11. Embedded-list position equality. The public nonconst begin/end members shall bound exactly the active sequence; free nodes shall never appear in that range. End shall be comparable and support retreat when nonempty, but not dereference. Positions shall preserve node identity under other event insertion/erasure, subject to 🔗 1. Threshold-ordered pending events and caller prerequisites. Clients shall not change embedded links or break active threshold ordering through the borrowed element access.
-
12. Active emptiness independent of retained pool storage PPL-SPEC-000812 empty() shall return true exactly when no active events remain. An empty active sequence shall have equal begin/end positions even if inactive node storage is retained. Emptiness shall not imply that all allocated event nodes have been released. The query shall not notify handlers, modify flags or change the active/free node ownership.
-
13. Queue node checks and threshold-order validation PPL-SPEC-000813 For safely inspectable active/free rings, OK() shall require both embedded lists' element checks and nondecreasing active threshold order. An empty active list shall pass when its active/free node checks pass. Free nodes shall not require threshold sorting. Checking shall not invoke handlers, dereference expired external bindings, modify flags or change ownership. Corrupted embedded links shall remain outside the checker domain; this operation shall not provide memory-safe diagnosis of arbitrary ownership corruption. Clients may check and repair a threshold-order violation before resuming ordinary queue operations.
-
14. Insertion-allocation failure preservation and retry PPL-SPEC-000814 With the nonthrowing threshold and comparison prerequisites of 🔗 1. Threshold-ordered pending events and caller prerequisites, a reported event-node allocation failure shall leave the active sequence, free pool, all existing event attributes, handler bindings and flag values unchanged. No incomplete event node shall remain owned or linked. The same queue shall permit a later successful insertion and ordinary erasure. Erasure and insertion using an available pooled node shall not require an event-node allocation. These guarantees shall not promise recovery from violated threshold or linking preconditions.
-
1. Normalized nonnegative microsecond interval values PPL-SPEC-000821 Time shall represent an exact nonnegative integral number of microseconds, with maximum value 106 LONG_MAX + 999999. A valid completed value shall have whole seconds in [0, LONG_MAX] and a residual microsecond count in [0, 999999]. This raw value interface shall be available independently of operating-system watchdog-timer support and shall not require PPL initialization or floating-point state.
Constructor inputs shall satisfy their stated nonnegative argument preconditions. Concurrent access shall retain ordinary C++ object synchronization requirements. An interval value shall not itself promise elapsed-time measurement, timer resolution or notification scheduling.
-
2. Zero and centisecond construction PPL-SPEC-000822 Default construction shall produce the zero interval. Construction from a nonnegative long centisecond count c shall produce exactly 10000c microseconds in normalized form. Every nonnegative long centisecond value, including LONG_MAX, shall be representable by this conversion. Construction shall retain the allocation-free value protocol of 🔗 9. Allocation-free value operations and fatal range policy.
-
3. Second/microsecond normalization and excessive results PPL-SPEC-000823 For nonnegative long arguments s and m, two-argument construction shall represent exactly 106s + m microseconds when that result is within 🔗 1. Normalized nonnegative microsecond interval values. Microseconds at or above one million shall be carried into whole seconds and reduced to a residual less than one million. If this nonnegative mathematical result exceeds the representable maximum, construction shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy, without signed arithmetic overflow or a constructed C++ exception.
-
4. Independent value copies and assignment PPL-SPEC-000824 Copy construction and assignment shall preserve the exact interval value in independent scalar state. Rvalue construction/assignment shall retain the same value semantics, leaving the source value unchanged. Self-assignment shall preserve the interval. Assignment shall return the target object. No copy shall share owned duration state or require allocation, and ordinary destruction shall require no external resource cleanup.
-
5. Whole-second, residual-microsecond and validity queries PPL-SPEC-000825 For a valid completed interval, seconds() shall return its whole second count and microseconds() its normalized residual, so their mathematical combination equals the exact value. OK() shall test the stored normalization conditions: nonnegative whole seconds and a residual in [0, 999999]. The queries shall preserve the value and require no allocation. They shall not provide a memory-safe validity check for arbitrary corrupted storage or remove constructor preconditions.
-
6. Exact interval ordering and equality PPL-SPEC-000826 The six comparison operators shall compare exact total-microsecond values. Equality shall hold exactly for the same duration, regardless of which admitted normalization inputs produced it. Strict and nonstrict order shall have their ordinary mathematical meanings and inequality shall negate equality. Comparing valid values shall not change either operand, allocate or depend on the current clock.
-
7. Exact addition, aliasing and representability failure PPL-SPEC-000827 For valid operands with a representable sum, compound addition shall replace the target by their exact total-microsecond sum, normalized into seconds and residual microseconds, and return the target object. Adding an object to itself shall use its value on entry. Free addition shall produce the same exact value without changing either input.
If the exact sum exceeds 🔗 1. Normalized nonnegative microsecond interval values, both forms shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy before signed arithmetic overflow, without constructing a C++ exception. A valid microsecond carry shall be included in that representability decision.
-
8. Saturating nonnegative interval subtraction PPL-SPEC-000828 For valid operands, compound subtraction shall replace the target by max(0, x − y), using their exact values on entry, and return the target object. A needed microsecond borrow shall preserve that exact nonnegative result. Self-subtraction shall yield zero. Free subtraction shall return the same value without modifying either input. Subtraction shall remain within the normalized value domain and shall not allocate or signal an arithmetic-range failure for valid operands.
-
9. Allocation-free value operations and fatal range policy PPL-SPEC-000829 Admitted Time construction, copying, queries, comparisons, addition and subtraction shall use no heap allocation, floating-point arithmetic, PPL initialization or operating-system timer operation. Unrepresentable normalization/addition shall report its fatal condition by calling std::abort; it shall not allocate or construct a C++ exception in an attempt to report that condition. No recovery or owned- resource cleanup after process termination shall be promised by this value interface. The caller shall retain any surrounding signal/thread context restrictions.
-
1. Watchdog platform availability and initialization prerequisites PPL-SPEC-000871 Watchdog timers shall be available when the configured platform provides the required setitimer, sigaction and pthread_sigmask operations. In that configuration, clients shall retain the library/class initialization and exclusive signal-ownership protocols of 🔗 11. Process timer ownership and signal-safe callbacks, 🔗 18. Class initialization and preceding signal action and 🔗 19. Class finalization and pending-notification cleanup. If any required operation is unavailable, all construction forms shall throw std::logic_error and shall neither publish a notification nor modify the supplied flag holder, regardless of the supplied duration. Construction may also report a resource failure while creating its exception object.
-
2. Flag-form watchdog registration PPL-SPEC-000872 On an available, correctly initialized platform, successful volatile flag-form construction shall own one handler bound to the supplied holder/flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, register one pending event for its admitted duration, and leave those external notification objects borrowed. Registration shall neither install the flag nor query its priority as a notification. At expiration, priority selection shall use the then-current holder and flag. The flag's priority operation shall satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and compatible flag. Expiration shall only record a notification in non-thread-local handler storage. At a subsequent ordinary checkpoint in the constructing thread, release compare-and-exchange shall install the flag only when the holder is null. No existing request shall be dereferenced, replaced, or compared by priority. Among multiple eligible atomic watchdogs the most recently constructed binding shall be tried first. Selected pending atomic notifications shall precede computational-threshold checks, retaining the snapshot rule in 🔗 1. Computational-weight value and current-state binding. This publication need not use a lock-free borrowed holder because it takes place outside signal context.
Construction, checkpoints and destruction shall use the single watchdog owner/signal-receiving thread. Holder and flag shall remain alive through destruction; a published flag shall additionally outlive its readers. Cancellation may discard an unconsumed notification and shall not clear an already published request. The caller shall cancel before clearing the holder or releasing its flag. A failed construction shall leave no notification binding or pending event behind.
-
3. Function-form watchdog registration PPL-SPEC-000873 On an available, correctly initialized platform, successful function-form construction shall own one handler retaining the supplied function under 🔗 4. Function-handler target binding and copies, register one pending event and not invoke that function merely to register it. A pending callback shall be nonnull, live and satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Dispatch shall invoke that bound function exactly once for its successfully completed event. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
-
4. Positive watchdog duration and exact nominal units PPL-SPEC-000874 When native timers are available, both construction forms shall accept a positive long duration in centiseconds and interpret its nominal value as c ⁄ 100 seconds. A zero or negative duration shall throw std::invalid_argument without registering an event; construction cleanup shall retain 🔗 8. Failed watchdog construction and surviving events. Large positive durations through LONG_MAX shall retain their full logical value under 🔗 7. Logical deadlines and bounded physical timer checkpoints, subject to supported resource or timer-system-call failures. Timer resolution, signal delivery and masked operations shall retain 🔗 11. Process timer ownership and signal-safe callbacks.
-
5. Stable watcher and notification lifetimes PPL-SPEC-000875 An available-platform watchdog shall not be default constructible, copy constructible, move constructible or assignable. Its stable live address shall retain its expiration state and event identity until destruction. Borrowed holder/flag/function objects shall remain valid whenever the event may notify. Clients shall not end a live watchdog's lifetime from its callback or concurrently with signal dispatch; the masking/exclusive-use protocol shall govern admitted cancellation.
-
6. Ordered event multiplicity and existing-event preservation PPL-SPEC-000876 Each successful constructor shall add one distinct event to the shared queue. Equal logical deadlines shall retain all registered events; their relative callback order shall be unspecified. An earlier or later insertion shall preserve every other event's logical deadline and bound notification. Registration and cancellation shall not notify unrelated events merely because the queue or physical timer has changed.
-
Incoming link from: 4. Positive watchdog duration and exact nominal units1
7. Logical deadlines and bounded physical timer checkpoints PPL-SPEC-000877 The first event shall establish a relative logical time base. Later registration shall account for elapsed time observed from the armed timer and retain the requested relative duration in its full logical deadline. Each nonzero physical timer request shall be at most one day (86400 seconds), using an intermediate checkpoint when a logical interval is longer. A checkpoint before a pending event's deadline shall not notify it; subsequent checkpoints shall preserve the remaining interval and other event deadlines. Bounded requests shall not imply that every kernel accepts them or guarantee exact elapsed deadlines across arbitrary signal-masked one-shot expiration periods.
-
8. Failed watchdog construction and surviving events PPL-SPEC-000878 When construction reports a supported recoverable exception, it shall release its allocated handler and not leave the failed event pending. Previously live watchdogs shall remain usable with their logical notifications/deadlines preserved. This shall cover invalid duration, handler/node allocation failure, signal-block failure, timer-read failure, invalid successful timer read and timer-arm failure, including a failure while reporting another error. The constructor shall restore its internal critical-section state and caller signal mask before propagation, subject to the fatal restoration rule of 🔗 12. Signal-mask transactions and fatal restoration failures. Internal freed nodes may remain owned by the shared queue's reuse pool.
-
9. Nonthrowing destruction and ordinary cancellation PPL-SPEC-000879 ~Watchdog() shall not throw. It shall destroy its owned handler exactly once while its timer signal is blocked, before restoring the caller's signal mask. An unexpired watchdog shall remove its own event without notifying it; an expired watchdog shall not remove or notify another event. Cancellation of a nonleading or equal-deadline event shall preserve remaining deadlines; canceling the first event shall schedule the next one or stop the timer when no event remains. If a next deadline is already due, cancellation shall schedule a short nonzero checkpoint rather than dispatch a notification from the destructor. System-call failure and fatal masking outcomes shall retain 🔗 10. Cancellation failure and retained-checkpoint fallback and 🔗 12. Signal-mask transactions and fatal restoration failures.
-
10. Cancellation failure and retained-checkpoint fallback PPL-SPEC-000880 If cancellation cannot read a valid timer interval, rearm the next event or stop the last timer, it shall still erase the canceled event without propagating that system-call exception. The previous physical timer/bookkeeping shall remain as a checkpoint for remaining events; its later signal shall notify only events whose logical deadlines are due and schedule others for their remaining duration. A failed last-event stop may leave a physical notification, which shall not invoke a canceled handler. Later cancellation/insertion shall remain consistent with the retained checkpoint rather than assume it equals the first remaining event's deadline.
-
11. Process timer ownership and signal-safe callbacks PPL-SPEC-000881 The facility shall reserve ITIMER_PROF/SIGPROF, or ITIMER_REAL/SIGALRM on Cygwin, GNU Hurd and profiling builds. One thread shall own all watchdog operations and receive the selected signal; every other thread shall keep it blocked. These restrictions shall also apply to a thread-safe PPL build, and clients shall not independently replace/use the owned timer or signal while the facility owns them. Callbacks and priority queries of the function/volatile-flag forms shall use only operations valid in asynchronous signal context. The atomic-holder form shall instead record a non-TLS notification in signal context and defer holder publication to ordinary owner code. They shall not throw, construct/destroy watchdogs or reenter their queue. Signal resolution, delivery delays and arbitrary prolonged masked operations shall not imply a hard elapsed-time guarantee.
-
12. Signal-mask transactions and fatal restoration failures PPL-SPEC-000882 Construction and cancellation shall block the selected signal while updating shared queue/timer state and restore the caller's exact previous mask afterward, including unrelated blocked signals. Failure to block the signal shall propagate from construction with 🔗 8. Failed watchdog construction and surviving events. The same failure during noexcept cancellation, or any failure to restore the mask, shall invoke std::terminate rather than continue with unprotected state or a newly retained mask. Pending delivery released by mask restoration shall see a consistent published queue and timer state.
-
Incoming link from: 17. Timer-read validity and context-specific error channels1
13. Stale timer-notification suppression PPL-SPEC-000883 On timeout entry, if a successful timer-state read yields a valid nonzero remaining interval, the notification shall be treated as stale and shall return without advancing the logical clock or notifying a replacement event. If the read fails or is invalid, dispatch shall use the timeout fallback of 🔗 14. Due-event signal dispatch and successful one-shot expiration; this fallback shall not promise to preserve a still-armed replacement deadline when the signal was in fact stale. A valid zero interval shall be processed as an actual timeout. Replacing a timer shall not assume that a previously pending signal has been retracted.
-
Incoming link from: 13. Stale timer-notification suppression1
14. Due-event signal dispatch and successful one-shot expiration PPL-SPEC-000884 An actual timeout outside an active timer transaction shall advance the logical clock by the accounted last requested span, inspect events in deadline order and invoke each event whose deadline is no later than that clock. After its signal-safe action returns, dispatch shall mark it expired and remove it. A future event shall remain pending and be scheduled for its remaining logical interval. When no event remains, the logical alarm shall become inactive. An empty-queue signal shall not invoke a handler. The errno and fatal rearm outcomes shall retain 🔗 16. Fatal signal-context timer-rearm failure and 🔗 20. Timeout and signal-mask errno preservation.
-
15. Deferred timeout accounting inside a transaction PPL-SPEC-000885 If an actual timeout is processed while the internal transaction state is active, it shall defer event dispatch by arming a short nonzero checkpoint. The previously consumed timeout span shall remain included in the elapsed-time accounting for that later dispatch; repeated replacement/chunk histories shall not lose the consumed span. A deferred checkpoint by itself shall not notify a future event. Failure to arm this checkpoint shall retain 🔗 16. Fatal signal-context timer-rearm failure.
-
16. Fatal signal-context timer-rearm failure PPL-SPEC-000886 When timeout dispatch or transaction deferral cannot rearm the required timer, it shall call std::abort. It shall not report that failure by constructing or throwing a C++ exception in signal context. Earlier successfully completed callbacks in that dispatch shall retain their effects up to process termination. This fatal policy shall not be replaced by silently leaving future pending events unscheduled.
-
17. Timer-read validity and context-specific error channels PPL-SPEC-000887 A valid timer interval shall have nonnegative seconds representable by long and microseconds in [0, 1000000). A failed timer read shall not be interpreted as a successful sample. During construction, a successful read outside this range shall report std::runtime_error with 🔗 8. Failed watchdog construction and surviving events. During cancellation it shall use 🔗 10. Cancellation failure and retained-checkpoint fallback, and during signal entry it shall use the fallback in 🔗 13. Stale timer-notification suppression. Successful zero and boundary-valid intervals shall retain their ordinary context meaning.
-
Incoming link from: 1. Watchdog platform availability and initialization prerequisites1
18. Class initialization and preceding signal action PPL-SPEC-000888 On an available platform, class initialization shall establish a one-shot timer protocol (zero repeated interval), install the watchdog signal action for the selected signal and preserve its preceding action for later restoration. Failed installation shall report its system-call failure. The caller/library shall provide balanced initialization and finalization, without independently repeated initialization or live watchdogs before setup. If later library initialization fails after this signal action was acquired but before any timer/event was acquired, its internal rollback shall restore the preceding action without modifying an unrelated existing interval timer.
-
19. Class finalization and pending-notification cleanup PPL-SPEC-000889 On an available platform, finalization shall require no live pending watchdog events. With the selected signal blocked, it shall stop the owned timer, mark the logical alarm inactive, discard an owned pending notification and restore the preceding signal action. It shall restore the caller's exact mask and preserve errno when it returns. Failure to block, stop the timer, install the discard action, restore the preceding action or restore the mask shall invoke std::terminate. A stale notification from a canceled timer shall not escape later to the preceding client handler.
-
Incoming link from: 14. Due-event signal dispatch and successful one-shot expiration1
20. Timeout and signal-mask errno preservation PPL-SPEC-000890 Whenever timeout dispatch returns normally, it shall restore its entry errno, including a stale-signal return, callback effects and successful read/rearm calls that change errno. Signal-mask acquisition and restoration shall preserve the errno with which those individual mask operations were entered. Finalization shall preserve its entry errno on return under 🔗 19. Class finalization and pending-notification cleanup. This shall not turn a reported constructor system-call failure into an unchanged-errno promise.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
1. C library and thread lifecycle PPL-SPEC-001515 ppl_initialize shall initialize native library state, published symbolic constants and the calling thread's C variable formatter. ppl_finalize shall release C-owned interruption objects and its native library-initialization owner and restore the preceding native variable formatter. Initialization and finalization shall return zero on success and invalid-argument status for duplicate lifecycle requests. Reinitialization after a completed finalization shall succeed. Independently owned client objects shall be released before finalization.
New participating threads shall enter and leave using the thread functions in supported configurations. The initializing thread shall use the library lifecycle rather than duplicate thread entry or exit. Thread finalization shall restore that thread's preceding native formatter. Shared lifecycle and interruption ownership shall obey the native synchronization prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C rounding and irrational precision controls PPL-SPEC-001518 Rounding controls shall apply the native PPL rounding mode or restore the calling thread's saved preceding mode. The precision query shall assign the current irrational-result precision, and setting shall apply the native admission and precision semantics. These controls shall not change exact integer or rational values. Calls involving floating arithmetic shall satisfy the applicable native rounding and thread-entry prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming links from: 1. C generated domain values and conversions 2. C generated domain observations 3. C generated system extraction ownership 4. C generated domain transformations 5. C generated affine transformations 6. C generated dimension arrays and maps 7. C generated convergence operations 8. C finite-disjunction ownership and traversal 9. C partition result ownership 10. C affine-ranking outcomes and coefficient spaces 11. C bounded integer wrapping 12. C selected domains and generated dependencies 1. C mixed integer problem values 2. C mixed integer descriptors and borrowing 3. C mixed integer incremental updates 4. C mixed integer solution outcomes and witnesses 5. C mixed integer controls, validity and memory 1. C variable formatting and callback failures 2. C textual output and allocated buffers 3. C line wrapping and pointer failure result 4. C reloadable FILE representations 1. C parametric problem values and ownership 2. C parametric descriptors and parameter lists 3. C parametric incremental updates 4. C parametric outcomes and borrowed solution trees 5. C parametric controls, big parameter and memory 6. C solution-tree kind, guards, children and values 7. C artificial-parameter expression and coefficient queries 8. C artificial-parameter sequence traversal 1. C library and thread lifecycle 2. C failures and installed error notification 3. C version, dimensions and published constants 4. C rounding and irrational precision controls 5. C signal timeout lifecycle 6. C deterministic timeout lifecycle 1. C constraint systems 2. C generator systems 3. C congruence systems 4. C grid generator systems 5. C descriptor-system iterator lifetimes 1. C coefficient ownership, conversion and bounds 2. C affine expression values and updates 3. C affine expression queries 4. C linear constraint values 5. C linear constraint queries 6. C polyhedral generator values 7. C polyhedral generator queries 8. C rational congruence values 9. C rational congruence queries 10. C grid generator values 11. C grid generator queries51
1. C handles, arguments and successful outcomes PPL-SPEC-001514 C clients shall use the installed <ppl_c.h> declarations with compatible native and GMP libraries. Input handles shall denote live objects of the declared type. Mutable handles shall denote writable objects; a borrowed const handle shall not be modified or deleted. Output addresses shall be non-null and writable. Arrays shall contain their declared number of elements; a zero count shall require no element access. Iterators shall have valid positions in the same live container. Caller synchronization, thread entry and floating-point prerequisites shall follow the native operations.
A nonnegative function result shall have the meaning assigned by its operation: zero status, boolean result, enumeration or flags. Negative results shall denote failures. Successful mathematical results shall preserve the corresponding native operation's exactness, approximation direction, inconclusive outcomes and admitted witnesses. Failed operations shall not imply a completed mathematical result or unspecified rollback. Unless explicitly guaranteed, output parameters shall be used only after success.
-
Incoming links from: 3. Exact ordinary integral coefficient arithmetic 8. Coefficient scaling and truncated division by powers of two 1. Integral coefficient representation access and sign comparison 2. Coefficient negation and absolute-value assignment 3. Coefficient remainder assignment and exact division 4. Coefficient greatest common divisor and least common multiple 5. Extended integral greatest common divisor 6. Integral product accumulation and subtraction 7. Nonnegative integer square-root assignment 8. Reduction of an integral coefficient pair 9. Integral parity, additive inverses and extremum assignment11
2. Finite coefficient construction, copying and comparison PPL-SPEC-000042 A default-constructed Coefficient shall have value zero. Construction from a representable native integral input and copying from a live coefficient shall preserve the source integer value. The common native input forms covered here are char, signed char, unsigned char, short, unsigned short, int, unsigned int, long and unsigned long. Copy assignment shall replace the target value with the source's entry value, return a reference to the target and preserve a distinct source. Self-copy assignment shall preserve the value. Later mutation of a value shall not change a distinct copy. Destruction of one value shall not invalidate another value or a separately owned copy of a constant.
For live finite coefficient values, equality and ordering comparisons shall agree with equality and ordering of their mathematical integers and shall preserve the operands. These obligations shall hold independently of object identity and the current floating-point rounding direction.
Construction and use shall satisfy the applicable initialized-thread protocol in 🔗 3. Thread initialization, default state and finalization. Callers shall prevent concurrent access to an object while another operation changes it. This contract's integral-input guarantee requires the input value to be representable in the selected profile.
-
6. Coefficient zero and one constant access PPL-SPEC-000046 Within the calling thread's active initialization lifetime, Coefficient_zero() and Coefficient_one() shall return coefficients with values zero and one, respectively, through Coefficient_traits::const_reference as defined by 🔗 1. Configured integral coefficient type and return trait. Repeated access shall preserve those values.
When the trait is a reference, repeated calls on the same thread within that lifetime shall refer to the same corresponding constant object. The caller shall not mutate that borrowed object or retain its use beyond the applicable initialized-thread lifetime. When the trait returns a value, the returned coefficient shall be an independent value. Making and modifying a value copy of either constant shall leave the constant unchanged.
Initialization and finalization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. In a thread-safe configuration, reference-returning constant storage shall belong to the calling thread and access by an initialized worker shall preserve another initialized thread's constants. Reinitialization shall not revive borrowed references from a preceding lifetime.
-
7. Coefficient constant-stage acquisition and release PPL-SPEC-000047 The internal coefficient-constant initialization stage shall be entered only when that thread has no active instance of the stage. In the mpz profile, successful Coefficient_constants_initialize() shall acquire and publish one owned zero coefficient and one owned unit coefficient for that thread. Neither pointer shall be published until both objects have been constructed. If supported recoverable construction failure occurs, partial acquisitions shall be destroyed, both published pointers shall remain null and a later initialization attempt shall be permitted.
Coefficient_constants_finalize() shall require the initialized stage and completion of all dependent uses. It shall release both owned objects and clear both published pointers. The bounded profiles shall require no owned constant-stage allocation; their initialization and finalization functions shall perform no stage-resource operation. Their accessor storage shall follow 🔗 6. Coefficient zero and one constant access.
The enclosing initialization transaction shall acquire and release this stage in dependency order under 🔗 3. Thread initialization, default state and finalization. Callers shall not interleave independent stage ownership protocols for the same thread.
-
2. Conversion worker queue and shutdown protocol PPL-SPEC-001735 Threadsafe_Queue shall serialize access to its FIFO. A successful try_pop shall assign and remove the oldest queued item; an empty queue shall return false without assigning an item. empty is a synchronized observation rather than a reservation. These operations require the element type's used copy/move operations to complete successfully when a completed queue action is required.
The pool shall select at least one worker. If starting a worker fails, the constructor shall stop and join every worker it has started before propagating the exception.
For a successfully constructed pool, submissions made before finalize or destruction shall be queued. Workers shall repeatedly claim and invoke queued work. finalize shall request stopping once the queue is drained; destruction shall request that stop and join every worker before returning. Work submitted before stopping shall be invoked once when work and queue operations complete normally. No submission may race with or follow the stop request. Work must not allow an exception to escape its worker entry point. The queue and pool shall not be copied, moved or assigned.
-
Incoming links from: 3. Congruence creation from affine operand differences 4. Equality-constraint conversion and explicit modulus construction 8. Explicit modulus replacement and multiplicative modulus syntax 9. Scaling expression and modulus together 10. Sign, constant-residue and common-factor normalization 11. Congruence semantic equivalence 12. Rational affine substitution preimage of a congruence 16. Congruence-system meaning and construction 17. Owned congruence systems, storage conversion and descriptor equality 21. Common-modulus normalization of congruence systems 6. Java mathematical representations and operation options11
1. Affine congruence meaning and valid numerical use PPL-SPEC-000141 For dimension d, integer coefficient expression E(x) = b + ∑d − 1i = 0aixi and nonnegative modulus m, a Congruence shall denote the rational valuations satisfying E(x) = 0 when m = 0, and E(x) ⁄ m ∈ ℤ when m > 0. Coordinates themselves need not be integral. is_equality() and is_proper_congruence() shall distinguish these cases exactly. is_tautological() shall report whether all rational valuations satisfy the relation; is_inconsistent() shall report whether none do. With a nonzero homogeneous coefficient neither predicate shall hold. For a constant expression, the first shall equal its equality/divisibility truth and the second its negation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization; the caller shall synchronize access overlapping modification of an object. Both dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, arithmetic, normalization, comparison and transformation guarantees shall require every evaluated coefficient step and result to be representable in the selected numerical profile. Unchecked completion shall not prove this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release its owned resources; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without a universal rollback guarantee.
-
2. Default congruence and shared zero-dimensional values PPL-SPEC-000142 Default construction shall produce a dimension-zero equality with expression zero and use the requested representation. zero_dim_false() shall return a borrowed dimension-zero inconsistent equality. zero_dim_integrality() shall return a borrowed dimension-zero tautological proper congruence with modulus one. Shared constants shall remain usable until their initialized owning thread is finalized; owned copies shall be independent values.
-
16. Congruence-system meaning and construction PPL-SPEC-000156 A Congruence_System shall denote the conjunction of its retained congruences over rational coordinates. An empty conjunction shall be true. Default construction shall have dimension zero and no rows; the dimensioned empty constructor shall retain its supplied admitted dimension. A singleton constructor from a congruence shall copy that relation and its dimension. Construction from an equality constraint shall make its modulus-zero singleton; inequalities shall throw std::invalid_argument. Construction from a constraint system shall extract its equality rows and retain its ambient dimension, omitting inequalities.
All constructors shall use requested storage, with default_representation equal to SPARSE. zero_dim_empty() shall borrow a dimension-zero inconsistent singleton, not an empty conjunction, until owning-thread finalization. Initialization, synchronization and numerical/failure preconditions shall follow 🔗 1. Affine congruence meaning and valid numerical use.
-
Incoming links from: 4. Bounded-integer wrapping and guarded evolution of difference shapes 2. Relational construction from affine operands 6. Constraint dimensions and explicit coordinate transformations 7. Constraint kind, coefficients and borrowed expression access 9. Semantic equivalence and exact descriptor identity 10. Conversion of equality congruences to constraints 14. Constraint-system conjunction, construction and shared contradiction 15. Constraint-system owned values and representation conversion 20. Extracting equality constraints from a congruence system 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 6. Java mathematical representations and operation options11
1. Constraint relation meaning and numerical prerequisites PPL-SPEC-000101 A Constraint of dimension d shall describe one relation on rational valuations x ∈ ℚd. With its exposed expression E(x) = b + ∑d − 1i = 0aixi, its three types shall mean E(x) = 0, E(x) ≥ 0 and E(x) > 0, respectively. A coefficient belonging to an internal strictness representation shall not be exposed as a coordinate of this relation.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize any access overlapping modification of the same object. Both DENSE and SPARSE storage shall be supported and default_representation shall be SPARSE. Computed construction, conversion, normalization, dimension transformation and comparison guarantees shall require representability of every evaluated coefficient arithmetic step in the selected coefficient profile. Unchecked completion shall not establish this precondition. Allocation and configured numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete constraint. Distinct, unchanged sources shall survive a reported failure; otherwise a modified destination shall remain destructible, without a universal unchanged-state guarantee.
-
3. Default and shared zero-dimensional constraints PPL-SPEC-000103 Default construction with optional representation shall yield a dimension-zero nonstrict tautology with expression zero. The requested representation shall be used. zero_dim_false() shall return a borrowed dimension-zero inconsistent equality; zero_dim_positivity() shall return a borrowed dimension-zero nonstrict tautology with a positive constant term. Shared objects shall remain usable until their owning initialized thread is finalized. Copying a shared object shall create an independently owned value.
-
14. Constraint-system conjunction, construction and shared contradiction PPL-SPEC-000114 A Constraint_System shall denote the conjunction of its constraints over its declared rational coordinate space. An empty conjunction shall be true. An empty public range shall not mean an inconsistent set. Conversely, zero_dim_empty() shall return a borrowed, dimension-zero system containing an inconsistent equality and denoting the empty set of valuations. That shared system shall remain alive until its owning initialized thread is finalized.
Default construction shall create a dimension-zero system with no constraints. Construction from one constraint shall create its singleton conjunction and use that constraint's public dimension. Both shall use the requested representation; default_representation shall be SPARSE. Construction shall own its stored values independently of the source. Use shall satisfy 🔗 1. Constraint relation meaning and numerical prerequisites's initialization, synchronization, arithmetic and failure prerequisites.
-
Incoming link from: 12. Watcher notification lifetimes and exclusive use1
1. Polymorphic event-action interface and virtual destruction PPL-SPEC-000815 Handler shall be an abstract interface with const action dispatch and virtual destruction. Calling act() through a live base reference shall dispatch to the selected derived handler. Deleting an owned derived handler through a base pointer shall run its derived destruction and release its wrapper exactly once. A borrowed handler shall not become owned merely by being passed to a pending event.
Construction, dispatch and destruction shall require the selected external callback/flag objects and synchronization to remain valid. These wrappers shall not themselves require global PPL initialization or timer availability. A caller invoking actions in a signal handler or shared threshold-watcher context shall retain that surrounding interface's operation and thread/signal restrictions.
-
2. Flag-handler binding and binding-preserving copies PPL-SPEC-000816 Handler_Flag construction shall bind the supplied holder reference and flag object without invoking a priority query, installing the flag or taking ownership of either external object. Copy construction and rvalue construction shall preserve those same bindings; later actions shall observe the holder's current value rather than a pointer-value snapshot made during construction. Ordinary assignment of this reference-binding wrapper shall not be supported.
The holder shall be a live volatile pointer to const Flag_Base and Flag* shall convert to Flag_Base*. For a nonnull holder, the existing pointee shall belong to the compatible Flag object family, so the implementation's declared base-to-flag cast is well formed and valid. The flag/holder and any nonnull pointee shall outlive their actual access. Wrapper destruction shall not delete or alter them.
-
3. Strict-priority flag installation PPL-SPEC-000817 On act(), a null bound holder shall be set to the bound flag address without querying flag priorities. For a nonnull valid holder, the action shall install the bound flag exactly when the existing flag's observed priority is strictly lower than the bound flag's observed priority. Equal or higher existing priority shall preserve the existing pointer. Priority queries shall supply comparable values consistent with that call's decision; they shall not themselves rebind the holder. External priority changes between calls shall be observed by later actions.
The operation shall not own/delete flags or allocate a wrapper. If a priority query reports an exception, it shall propagate through ordinary C++ dispatch without an assignment by the handler to the holder; any side effects of the query itself shall remain its own contract.
-
4. Function-handler target binding and copies PPL-SPEC-000818 Handler_Function construction shall store the supplied function pointer without invoking it. Copy and rvalue construction shall retain the same target. Ordinary assignment shall not be supported. A null pointer may be stored and destroyed without invocation, but shall not be an admitted action target. The callable code shall remain valid at invocation. Construction/copy/destruction shall not call or own the function or allocate auxiliary callback state.
-
5. Function action dispatch and callback failure PPL-SPEC-000819 With a live nonnull target, Handler_Function::act() shall call the stored function exactly once per invocation and return normally exactly when that call returns normally. A callback exception shall propagate with its identity and previously performed callback effects; no rollback of arbitrary callback state shall be required. The wrapper shall remain bound to the same target and permit a later admitted call. No invocation shall silently replace the callback with another target or delete its external state.
-
Incoming links from: 2. Independent backend construction, copying and affine arithmetic 3. Raw coefficient access, zero ranges, gcd and support filtering 4. Range scaling and exact affine elimination 5. Backend equality, comparison and common-variable queries 6. Owned raw iterator handles and borrowed coefficient positions 7. Backend row export, serialization, diagnostics and accounting6
1. Internal affine value, coefficient storage and dispatch prerequisites PPL-SPEC-001622 For Row equal to Dense_Row or Sparse_Row, a live Linear_Expression_Impl<Row> of dimension d shall own d + 1 coefficient slots. Slot zero shall contain the constant; slot i + 1 shall contain the coefficient of Variable(i). Dense storage shall retain zero slots; valid sparse expression storage shall contain no explicit zero entries. Trailing zero coordinates shall retain the ambient dimension. representation() shall return DENSE or SPARSE accordingly, and max_space_dimension() shall equal Row::max_size()-1.
Calls shall satisfy the initialization, synchronization, coefficient-range and resource conditions of 🔗 1. Affine value, numerical prerequisites and shared zero. Raw slot indices shall be in [0, d + 1) and half-open windows shall satisfy 0 ≤ s ≤ e ≤ d + 1. A new dimension shall fit the selected backend's maximum; its increment for the constant slot shall be representable. Internal coordinate transformations shall receive in-dimension variables, valid distinct permutation cycles, and growth within that maximum.
An argument dispatched through Linear_Expression_Interface shall have one of these two concrete backend types. Dispatch shall preserve the operation's meaning for every dense/sparse pairing. Setters and dimension transformations shall implement the coefficient effects of 🔗 5. Ambient dimension queries and trailing-coordinate resizing, 🔗 6. Coefficient access, replacement and zero predicates and 🔗 12. Explicit coefficient-coordinate transformations on these admitted inputs. A const access shall borrow its coefficient according to the selected traits; reads beyond the homogeneous dimension through coefficient(v) shall return zero. Mutations shall invalidate borrowed positions according to their storage.
The internal row_data() accessor shall borrow the complete read-only row only from a live lvalue expression. Mutable and const temporary expression owners shall be rejected. A row borrow shall not outlive its owner or a mutation that invalidates the underlying coefficient storage.
coefficient_is_owned(n) shall identify a reference to a stored coefficient in assertion builds when coefficient arguments use reference traits, without changing the expression. With value traits or assertions disabled it shall return false. Internal scalar-independence preconditions shall apply in every build mode; that diagnostic predicate shall not replace them.
-
2. Independent backend construction, copying and affine arithmetic PPL-SPEC-001623 Default construction shall create the zero expression of dimension zero; coefficient and variable construction shall implement 🔗 2. Zero, constant, variable and dimensioned construction. The sizing constructor's Boolean argument shall distinguish its overload and shall not alter its meaning: it shall create the zero expression of the admitted requested dimension. Ordinary, cross-storage and interface-based copy construction shall produce independent coefficients. A dimensioned copy shall retain the selected prefix and zero-extend as necessary. Private construct helpers shall establish those same copied values. Destruction shall release the owned row without changing a distinct source.
Backend affine additions, subtractions, multiplication, truncating division, negation, normalization and coordinate updates shall implement the value rules of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization. Expression addition and subtraction shall admit self operands. Whole-expression combinations and scaled accumulations shall receive a distinct source; their scalar arguments shall be independent of modified target coefficients. Multiplication and division factors shall likewise be independent of the target. Division shall receive a nonzero divisor. Scaled variable accumulation shall retain the variable's dimension even for a zero factor; zero-factor scaled expression accumulation shall preserve the target's current dimension and value.
The prerequisites of 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites shall apply. Each operation that returns a backend reference shall return its target. Distinct sources shall retain their values and dimensions.
-
3. Raw coefficient access, zero ranges, gcd and support filtering PPL-SPEC-001624 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get(i) shall return the raw coefficient ai; set(i,n) shall replace it by the entry value of n, removing a sparse entry when zero. is_zero() shall test every slot; all_homogeneous_terms_are_zero() shall exclude slot zero.
For an admitted window [s, e), all_zeroes shall test every slot, num_zeroes shall count zero slots, and gcd shall return the nonnegative greatest common divisor of those coefficients. An empty or all-zero window shall have gcd zero. The positive gcd shall be representable in the selected coefficient type. first_nonzero(s,e) and last_nonzero(s,e) shall return the least and greatest nonzero slot, respectively, or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero for the all-zero vector.
all_zeroes(vars) shall test precisely the selected homogeneous coefficients. all_zeroes_except(vars,s,e) shall test the window after excluding the selected variable coefficients; slot zero shall never be excluded by a variable set. Empty windows shall satisfy both universal predicates. has_a_free_dimension_helper(indices) shall retain exactly those input raw indices whose coefficients are zero, inserting no new indices. Variable sets and raw indices shall be within the respective admitted extent. All queries shall preserve the expression.
-
4. Range scaling and exact affine elimination PPL-SPEC-001625 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, mul_assign(c,s,e) shall multiply exactly the raw slots in [s, e) by c; zero shall clear that window. exact_div_assign(c,s,e) shall divide those slots exactly by a nonzero c that divides every selected coefficient. negate(s,e) shall negate precisely those slots. Every operation shall retain dimension and all coefficients outside its window.
For distinct target x and source y, range linear_combine shall assign xi : = c1xi + c2yi from entry values for s ≤ i < e, with nonzero scalars. linear_combine_lax shall admit zero scalars as well. Both windows shall fit their respective expressions. Whole-expression forms shall use the maximum input dimension and zero-extend absent coordinates. Scalar arguments shall be live and independent of modified target coefficients. The source shall retain its value and dimension. Empty windows shall preserve the target; valid sparse results shall contain no explicit zeros.
The raw-index elimination overload shall require equal dimensions, a distinct source and nonzero pivot coefficients xk, yk. With g = gcd(|xk|, |yk|) > 0, it shall replace every target coefficient by (yk ⁄ g)xi − (xk ⁄ g)yi. The selected pivot shall become zero. The variable overload shall use raw index v.space_dimension(). All evaluated coefficient arithmetic, including normalization factors, shall meet the selected profile's representability conditions.
-
Incoming link from: 1. Descriptor collection identity and affine comparison1
5. Backend equality, comparison and common-variable queries PPL-SPEC-001626 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, full is_equal_to(y) shall require equal dimensions and equal raw coefficient vectors. Range equality shall compare only the admitted common window. Scaled range equality shall test c1xi = c2yi at every selected slot, including when either scalar is zero. Each evaluated scaled product shall be representable. Empty-window equality shall hold.
compare(y) shall compare homogeneous coefficients in increasing variable order, treating absent trailing coefficients as zero, and compare the constant only if all homogeneous coefficients agree. It shall return -2 or 2 for the first homogeneous difference, -1 or 1 for a constant-only difference, and zero for equal zero-extended affine values. Consequently, different declared dimensions containing only additional zero coefficients may compare as zero while failing full dimension-sensitive equality.
have_a_common_variable(y,first,last) shall hold exactly when some variable in the admitted half-open variable range has nonzero coefficients in both operands. Constants shall be irrelevant. All queries shall preserve their operands and shall have the same meaning through typed and interface dispatch.
-
6. Owned raw iterator handles and borrowed coefficient positions PPL-SPEC-001627 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, begin() and end() shall allocate independent polymorphic iterator handles delimiting the nonzero homogeneous coefficients in increasing variable order. lower_bound(v) shall allocate a handle at the first such variable at least v, or at end. The search variable shall be within the dimension or its one-past position. The caller shall delete each allocated handle through its virtual interface. The handles shall borrow the live expression's row without owning it.
Direct nested-iterator construction shall require a row of at least one slot and a starting raw index 1 ≤ i ≤ row.size(). It shall borrow that row at the first nonzero slot at or after i, or at end. The row shall outlive every such handle.
clone() shall allocate an independent handle at the same borrowed position. Advancing or destroying one handle shall preserve another handle's position and the coefficients. Dereference, variable() and index() shall require a live non-end position; index shall be variable().id()+1. Increment shall move to the next nonzero homogeneous coefficient, admitting arrival at end. Decrement shall require a preceding nonzero homogeneous coefficient and shall move to it, including from end. Constant slot zero shall be excluded.
Equality shall compare positions in the same row and concrete iterator type. Expression mutation shall invalidate borrowed positions as declared for the row; the caller shall obtain new handles afterward. Allocation failures shall propagate without changing the expression or existing handles. The internal zero-skipping helpers shall implement this traversal without changing values.
-
Incoming link from: 6. Sparse equality and line pivot selection1
7. Backend row export, serialization, diagnostics and accounting PPL-SPEC-001628 Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get_row(r) shall replace a dense or sparse output with an independent copy of the complete raw coefficient vector. The copy shall include its logical extent, all constant and trailing zero slots, and shall not borrow the backend's coefficient storage.
ascii_dump(stream) shall emit size, the raw slot count, and every coefficient in slot order, using the producer grammar of 🔗 13. Reloadable ASCII export and replacement loading. ascii_load(stream) shall implement that raw grammar: require its exact size keyword and a nonzero raw count, replace the row and read exactly that many coefficients. Normal malformed or truncated extraction shall return false; resource and stream exceptions shall propagate. A rejected or throwing load may leave a partially replaced row; only destruction shall be required until the caller restores a valid value. A following token shall remain available after a complete record. The selected coefficient input grammar, stream formatting and exception masks shall retain their ordinary behavior.
print(stream) and the free stream insertion shall implement the affine format and variable formatter dispatch of 🔗 14. Human-readable affine output and formatter dispatch; insertion shall return its stream. Source values shall be preserved by export and print. OK() shall return false for a row of size zero, and sparse OK() shall also reject any explicit stored zero, with its documented diagnostic to std::cerr. This local check shall not inspect unrelated domain state. external_memory_in_bytes() shall report the owned row's external storage; total_memory_in_bytes() shall add sizeof(*this).
-
Incoming links from: 1. Closed bounded-difference support hull of geometric generators 3. Cartesian enclosure of a polyhedral generator system 4. Generator-distance admission, workspaces and dispatch 5. Stored ordering of polyhedral generators 2. Construction of nonzero lines and rays 3. Construction of rational points and closure points 11. Geometric equivalence and stored generator identity 15. Generator-system hull meaning and construction 16. Owned generator systems and storage conversion 17. Generator insertion and coefficient ownership transfer 1. Closed octagonal support hull of geometric generators 6. Java mathematical representations and operation options12
1. Generator kinds and numerical prerequisites PPL-SPEC-000181 A Generator shall describe one of four geometric objects in a declared ambient dimension: an included rational point, a rational closure point, a ray direction or a line direction. For homogeneous integer coefficients ai and positive divisor d, point and closure-point coordinates shall be ai ⁄ d. A line shall admit arbitrary real multiples of its nonzero direction; a ray shall admit nonnegative real multiples. Closure points shall retain their distinct kind and shall not assert boundary inclusion. Internal divisor/strictness fields shall not become public coordinates.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization and require caller synchronization for overlapping modification of an object. Dense and sparse storage shall be supported, with default_representation equal to SPARSE. Computed construction, normalization, transformation and comparison guarantees shall require representability of every evaluated coefficient step/result in the selected profile. Unchecked completion shall not prove those preconditions. Allocation and numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete generator; distinct unchanged sources shall survive failures, while modified destinations shall remain destructible without universal rollback.
-
4. Default generator and shared zero-dimensional origins PPL-SPEC-000184 Default construction shall create the dimension-zero included origin using requested storage. zero_dim_point() and zero_dim_closure_point() shall return borrowed dimension-zero origins of their respective distinct types, with positive divisor. Shared values shall remain alive until owning-thread finalization. Owned copies shall retain their values independently.
-
Incoming link from: 3. Cartesian enclosure of a polyhedral generator system1
15. Generator-system hull meaning and construction PPL-SPEC-000195 A Generator_System with lines L, rays R, included points P and closure points C shall generate exactly the real vectors
∑p ∈ Pλpp + ∑c ∈ Cγcc + ∑r ∈ Rρrr + ∑l ∈ Lτll,where λp, γc, ρr ≥ 0, τl ∈ ℝ, ∑pλp + ∑cγc = 1 and ∑pλp > 0. Thus a system without an included supporting point shall generate the empty set, even when directions or closure points are stored. Its meaning shall be a generated hull, not a conjunction of point membership conditions.
Default construction shall have dimension zero and no rows. Singleton construction shall own a copy of its generator and adopt its dimension. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton included origin generating the universe of the zero-dimensional space until owning-thread finalization. Use/failure prerequisites shall follow 🔗 1. Generator kinds and numerical prerequisites.
-
Incoming links from: 2. Construction of nonzero grid-line directions 3. Exact rational parameter construction including zero steps 11. Value-preserving scaling to a common positive divisor 12. Grid-generator equivalence and stored identity 15. Grid-generator-system integer-affine span and construction 16. Owned grid-generator systems and representation comparison 17. Grid-generator insertion, zero steps and ownership transfer 6. Java mathematical representations and operation options8
1. Grid-generator values and integer versus continuous displacement PPL-SPEC-000221 A Grid_Generator shall describe a rational included point, a rational parameter displacement vector, or a continuous line direction, in its public ambient dimension. For a point or parameter with numerators ai and positive divisor d, coordinates shall be ai ⁄ d. Parameters shall retain their exact rational step, including sign and magnitude; integer multiples of that step shall contribute to a generated grid. Lines shall contribute arbitrary real multiples of their direction. Hidden divisor fields shall not be public coordinates.
Both storage representations shall be supported; default_representation shall be SPARSE. Initialization and synchronization shall follow 🔗 3. Thread initialization, default state and finalization. Computed construction, transformation, scaling and comparison guarantees shall require all evaluated coefficient steps/results to be representable in the selected profile; unchecked completion shall not prove that condition. Allocation/numerical exceptions may propagate. Failed construction shall release resources owned by the incomplete grid generator; distinct unchanged sources shall survive failures, while modified targets shall remain destructible without universal rollback.
-
4. Rational grid-point construction, defaults and shared origin PPL-SPEC-000224 grid_point(e,d,r) shall construct the rational point with coordinates ai ⁄ d, ignoring the expression constant, retaining dimension and using requested storage. A negative nonzero divisor shall reverse numerator signs and become positive; common factors may be removed while preserving rational coordinates. Zero divisor shall throw std::invalid_argument. A divisor borrowed from the unchanged input expression shall use its entry value.
Omitted expression/divisor arguments shall denote the dimension-zero origin and divisor one. Representation-only and expression/representation forms shall use divisor one. Default construction shall produce that origin using requested storage. zero_dim_point() shall borrow the zero-dimensional origin until owning-thread finalization; owned copies shall be independent.
-
15. Grid-generator-system integer-affine span and construction PPL-SPEC-000235 For lines L, parameters Q and included points P, a Grid_Generator_System shall generate the real vectors
∑l ∈ Lτll + ∑q ∈ Qkqq + ∑p ∈ Pzpp, τl ∈ ℝ, kq, zp ∈ ℤ, ∑p ∈ Pzp = 1.Without a point the generated grid shall be empty, even with stored nonzero lines/parameters. Integer affine combinations of multiple points shall not be replaced by convex combinations. Default construction shall make a zero-dimensional system with no rows; an explicit dimension constructor shall retain its supplied admitted dimension. Singleton construction shall copy its generator and dimension, including a zero parameter. Ordinary insertion shall separately follow 🔗 17. Grid-generator insertion, zero steps and ownership transfer. Requested storage shall be used, with default SPARSE. zero_dim_univ() shall borrow the singleton zero-dimensional origin until owning-thread finalization. Numerical/use/failure prerequisites shall follow 🔗 1. Grid-generator values and integer versus continuous displacement.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 6. Coefficient zero and one constant access 1. Compound-domain values and valid use 1. Rational-grid values, coefficient profile and valid use 2. Explicit whole-library initialization and finalization 2. Explicit whole-library initialization and finalization 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 1. Polyhedral values, coefficient profile and valid use 1. Optimization and ranking valid use 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state27
1. Initialization owners and automatic C++ initialization PPL-SPEC-000031 The public C++ header shall establish an initialization owner in each participating translation unit unless PPL_NO_AUTOMATIC_INITIALIZATION is defined before that translation unit first includes <ppl.hh>. The first successfully constructed Init owner shall establish shared library facilities and initialize its calling thread. Additional owners shall retain that initialized lifetime without reinitializing its existing thread state. Destruction of an owner while another owner remains shall preserve the shared facilities. Destruction of the last owner shall finalize the owning thread and release shared initialization facilities.
The first-owner construction and last-owner destruction shall be serialized by the caller and shall occur on the same thread. All other participating threads shall complete their PPL use and thread finalization before last-owner destruction. Every PPL object or borrowed view whose validity depends on the initialized facilities shall cease to be used, and every required owned-object cleanup shall finish, before those facilities are finalized. A later initialized lifetime shall not revive objects or views from an earlier lifetime.
The owner counter, saved-rounding storage, automatic-owner pointers and irrational-precision storage shall be statically zero-initialized. The optional rounding-verifier function pointers shall be statically initialized to their designated probes. Their definitions shall enforce constant initialization with constinit. Runtime owner and thread setup shall establish the numerical state specified by this protocol.
Explicit Init guards shall be used only within this ownership protocol. The number of simultaneously live owners shall remain representable by unsigned int. Callers shall not copy, move or assign Init or Thread_Init guards. Automatic initialization shall not by itself initialize worker threads. Thread entry and exit shall follow 🔗 3. Thread initialization, default state and finalization.
If first-owner construction reports a supported recoverable exception, it shall release resources acquired for the failed construction, restore the preceding variable formatter, irrational precision and rounding state, and leave no initialization owner contributed by the failed construction. If setup replaced a signal handler, failure shall restore its preceding action without discarding the caller's pending notifications or changing the caller's timer.
-
2. Explicit whole-library initialization and finalization PPL-SPEC-000032 When automatic initialization is disabled by PPL_NO_AUTOMATIC_INITIALIZATION before public-header inclusion, initialize() shall acquire one library initialization owner on its first successful call without an existing explicit owner. Repeated calls while that owner exists shall preserve it and its active thread state, rather than acquire additional owners or reset the formatter, numerical constants or precision. finalize() shall release that explicit owner. A call to finalize() shall require an existing explicit owner; a sequence of repeated initialize() calls shall require only one matching finalize().
The explicit owner shall obey the first/last-owner, dependent-object cleanup and same-thread conditions of 🔗 1. Initialization owners and automatic C++ initialization. After successful finalize(), a later initialize() shall establish a fresh initialized lifetime. Supported recoverable failure in initialize() shall release resources acquired for the failed owner and shall permit a later call to attempt initialization afresh.
When the header provides automatic initialization, initialize(), finalize(), thread_initialize() and thread_finalize() shall be no-ops; the automatic owner and explicit Thread_Init guards shall govern those lifetimes instead.
-
Incoming links from: 1. Bounded-difference values, numerical profiles and valid use 3. Box bounded-integer wrapping, overflow choices and guard refinement 3. Box extrapolation with selected limiting constraints 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products 2. Least box enclosure of nonnegative real-time progression 3. Selected-coordinate integer-point normalization of boxes 2. Constraint and congruence exports of box values 3. Affine boundedness, extrema and witnesses on boxes 1. Cartesian box values, coordinate identity and valid use 1. Ordered coefficient-map values and valid tree use 2. Finite coefficient construction, copying and comparison 6. Coefficient zero and one constant access 7. Coefficient constant-stage acquisition and release 1. Compound-domain values and valid use 1. Affine congruence meaning and valid numerical use 1. Constraint relation meaning and numerical prerequisites 20. Distance scratch storage, admissible overlaps and numeric conditions 1. Extended-number row meaning and construction states 1. Generator kinds and numerical prerequisites 1. Grid-generator values and integer versus continuous displacement 1. Rational-grid values, coefficient profile and valid use 1. Initialization owners and automatic C++ initialization 5. Interruptible thread registration and request lifetime 1. Affine value, numerical prerequisites and shared zero 1. Directed native integral conversion to native floating-point storage 1. Octagonal values, numerical profiles and valid use 9. Distance workspace protocol and admissible overlaps 8. Coordinate-map diagnostic printing and output failures 1. Polyhedral values, coefficient profile and valid use 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 1. Optimization and ranking valid use 3. Selection and ownership of irrational rational precision 6. Coordinate-set diagnostic output and formatter prerequisites 7. Active Variable formatter and initialized thread state42
3. Thread initialization, default state and finalization PPL-SPEC-000033 While a library initialization owner remains alive, each additional thread using PPL thread-specific facilities shall establish exactly one active thread initialization lifetime before those facilities are used. A directly constructed Thread_Init guard shall establish that lifetime and shall finalize it when the guard is destroyed on the same thread. A direct guard shall not overlap an already active PPL thread-initialization lifetime on that thread and shall not be copied, moved or assigned.
In a client compiled with automatic initialization disabled, thread_initialize() shall establish a thread lifetime if none is owned by that entry protocol. Repeated calls while that protocol owns an active lifetime shall preserve its constants, precision and formatter. thread_finalize() shall require and end that protocol-owned active lifetime. Direct guards and these entry points shall not be mixed for the same active lifetime. The thread initialized by the first library owner shall have an active protocol-owned thread lifetime when last-owner destruction begins.
Successful thread initialization shall establish the numerical constants used by expressions, constraints, congruences, generators, their systems and polyhedra, set irrational_precision() to 128, and select Variable::default_output_function as the active variable formatter, as specified by 🔗 7. Active Variable formatter and initialized thread state. When configured rounding control is available, it shall save and replace the calling thread's rounding direction as specified by 🔗 4. Rounding-state exchange during an initialized thread lifetime. In a thread-safe configuration these states shall belong to the calling thread and shall be isolated from the corresponding state of other initialized threads. In a configuration without thread support, clients shall use one initialized thread and shall not create overlapping thread-initialization lifetimes.
Before finalization, all PPL use and required owned-object cleanup depending on that thread's initialized state shall finish. Finalization shall release the thread-owned initialization resources and restore its saved rounding direction when rounding control is configured. Reentry after completed finalization shall establish fresh default state; it shall not revive earlier objects or views. If thread construction reports a supported recoverable exception, resources acquired for the incomplete lifetime shall be released, and the preceding variable formatter, irrational precision and rounding state shall be restored.
-
4. Rounding-state exchange during an initialized thread lifetime PPL-SPEC-000034 On a configured platform with floating-point rounding control, successful thread initialization shall save the calling thread's preceding rounding direction and establish upward rounding, the direction used for ROUND_DIRECT computations. During that active thread lifetime, restore_pre_PPL_rounding() shall restore the direction saved at thread initialization, and set_rounding_for_PPL() shall reestablish upward rounding. Repeated calls shall not replace the saved preceding direction. Normal thread finalization shall restore that saved direction.
Each exchange shall affect only the calling thread's rounding direction in a thread-safe configuration. The caller shall invoke these functions within a valid initialized thread lifetime and shall call set_rounding_for_PPL() before resuming PPL computations that require its rounding state after the preceding state has been restored or the client has otherwise changed rounding. The exchange shall not promise preservation or restoration of unrelated floating-point status flags, trap masks or other environment state.
When the selected configuration has no floating-point rounding control, set_rounding_for_PPL() and restore_pre_PPL_rounding() shall perform no rounding-state operation. Their presence shall not make an unsupported floating-point computation supported.
-
Incoming link from: 8. Cooperative abandonment checkpoint ordering and propagation1
5. Interruptible thread registration and request lifetime PPL-SPEC-001733 Within the library/thread lifecycle of 🔗 3. Thread initialization, default state and finalization, make_interruptible shall return a callable that initializes PPL thread state, registers the calling thread for interruption, invokes the wrapped callable with forwarded arguments and unregisters the thread before finalizing thread state. Return values and exceptions shall propagate to the caller. The registration shall also end during exception unwinding. A registration lifetime shall not overlap another PPL thread-initialization lifetime on the same thread.
interrupt_thread shall serialize lookup against registration and removal. It shall return false when the supplied thread has no active registration. Otherwise it shall replace the thread's registration-scoped request and return true. A null request withdraws that request. Unregistering shall also withdraw the request. Both operations shall leave the separate caller-owned slot in 🔗 7. Caller-owned abandonment request and exception object intact. Acceptance does not guarantee that a checkpoint will occur before normal completion. At an abandonment checkpoint the requested Throwable follows 🔗 8. Cooperative abandonment checkpoint ordering and propagation. A non-null supplied object remains caller-owned and shall outlive all possible accesses by the target thread; requesters shall synchronize its lifetime and any concurrent calls themselves. The registry and its mutex shall remain alive until all registered calls and requesters have completed. Internal registration guards shall not be copied, moved or assigned.
-
Incoming links from: 3. Expression-view predicates, coefficient ranges and support filtering 1. Internal affine value, coefficient storage and dispatch prerequisites 7. Affine addition, subtraction and negation 8. Integral scalar multiplication and coefficient-wise division 9. Explicit scaled accumulation, combination and elimination 10. Coefficient normalization and sign normalization 1. Internal coefficient-row values and valid use 1. Augmented coefficient products and numerical prerequisites 6. Java mathematical representations and operation options9
1. Affine value, numerical prerequisites and shared zero PPL-SPEC-000071 A live Linear_Expression of space dimension d, with homogeneous coefficients ai and inhomogeneous term b, shall denote the function E(x) = b + ∑d − 1i = 0aixi on rational valuations. The constant term shall not occupy a coordinate. Trailing zero coefficients shall remain part of the declared ambient dimension.
Use shall satisfy 🔗 3. Thread initialization, default state and finalization. The caller shall synchronize access to an object while another operation modifies it. The valid representations shall be DENSE and SPARSE; default_representation shall be SPARSE. zero() shall return a borrowed, constant expression of dimension zero and value zero. The returned object shall remain alive until its owning initialized thread is finalized.
The computed arithmetic guarantees of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization shall require every evaluated coefficient arithmetic step and result to be representable in the selected coefficient profile. Checked arithmetic may report overflow; unchecked completion shall not prove that this precondition held. Allocation failures may propagate. Failed construction shall release resources owned by the incomplete expression. Distinct, unchanged operands shall remain valid after a reported failure. Other modified objects shall be destructible; no universal rollback is promised.
-
Incoming links from: 9. Native interval-affine image 9. Native interval-affine image 1. Conservative interval-linear-form inequality refinement 2. Generalized interval-linear-form comparisons 1. Dependency invalidation 1. Native interval-affine image 1. Native interval-affine image 2. Conservative interval-linear-form inequality refinement 3. Generalized interval-linear-form comparisons9
1. Interval-linear-form meaning and numerical prerequisites PPL-SPEC-000921 For a selected interval type C, a live Linear_Form<C> of dimension d, with coefficient intervals Ai and constant interval B, shall represent the interval-affine expression B + ∑d − 1i = 0Aixi. At each real valuation x, it shall denote the set of sums obtained by choosing each coefficient and the constant independently from their intervals. Repeated use of an interval object shall not establish correlations between those choices. The constant shall occupy no variable coordinate. The declared dimension shall retain trailing zero coefficients.
C shall provide the interval construction, copying, predicates and arithmetic required by the selected operation. Stored values shall satisfy its initialization, canonical-value and metadata prerequisites. Each successful arithmetic operation shall retain the interval operations' enclosure guarantees and selected numerical-profile conditions; no common optimality or finite-bound guarantee shall be inferred. Native floating-point arithmetic shall require the selected supported boundary format and its rounding-state prerequisites. Storage access shall add no numerical rounding requirement. Shared-facility initialization shall be required where the selected coefficient operation, expression conversion or output formatter requires it; unrelated storage shall add no initialization owner.
Callers shall synchronize access against overlapping modification and obey shared-temporary restrictions in the selected configuration. Allocation and coefficient exceptions may propagate. Failed construction shall release resources owned by the incomplete form. Unchanged operands shall remain unchanged; modified destinations shall remain destructible, with no universal rollback guarantee.
-
Incoming links from: 6. Injective coordinate remapping 2. Empty partial-map construction 3. Injective insertion and failure atomicity 4. Exact partial-map lookup and unchanged absent output 5. Exact empty-codomain query 6. Largest image and defined empty-map failure 7. Independent copies, assignment and owned-storage cleanup 8. Coordinate-map diagnostic printing and output failures 9. Move construction and empty source 10. Move assignment and empty source 2. Pointset-powerset projection and coordinate mapping11
1. Public partial coordinate-map type and valid use PPL-SPEC-000001 The public C++ interface shall expose Partial_Function as a value type representing a finite injective partial map M from dimension indices to dimension indices. Each mapped source shall have exactly one image, and distinct mapped sources shall have distinct images. Neither a stored source nor a stored image shall equal the reserved value not_a_dimension(), the maximum value of dimension_type. An unmapped index shall have no image.
The map shall impose no implicit ambient dimension, contiguity of mapped indices, or requirement that its images cover a contiguous range. Limits on achievable storage shall remain distinct from the index type's value range and from the coordinate limits of numerical objects consuming a map. In particular, the insertion range shall not be narrowed to the smaller range accepted by Variable formatting.
Operations on existing objects shall require live, valid maps. Successful moves between distinct objects shall leave the source as a valid empty map, as defined by 🔗 9. Move construction and empty source and 🔗 10. Move assignment and empty source. Within the library's supported thread-use contexts, callers shall prevent unsynchronized mutation of an instance while another call observes, copies or prints it, and shall serialize mutations of that instance. No additional concurrent-use regime shall be inferred from the type being a value type.
-
8. Coordinate-map diagnostic printing and output failures PPL-SPEC-000008 Printing shall observe a valid map under 🔗 1. Public partial coordinate-map type and valid use without changing its represented mapping. Calls shall require the library and calling thread's applicable initialization protocol to have established a valid active Variable output function under 🔗 7. Active Variable formatter and initialized thread state and 🔗 3. Thread initialization, default state and finalization. Callers shall obey the supported thread regime and synchronize changes to the active formatter and access to a shared stream; the formatter shall not mutate the printed map during the call.
When the map is empty and output succeeds, print shall write the literal text "empty", a newline and a flush. For a nonempty map whose source and image indices are all constructible as Variable objects, successful output shall process pairs in increasing source order. For each pair it shall write the source Variable using the Variable formatter active for that write, the literal separator " --> ", the image Variable using the formatter active for its write, and a trailing newline. Each Variable write shall use the formatter then active in the calling thread where formatting state is thread-specific; names shall not be fixed independently of it. A callback's permitted change to that formatting state may therefore affect subsequent Variable writes. Text insertions shall honor the stream's current formatting state. Specified literals identify the inserted character sequences, not a canonical byte layout independent of that state. Printing shall not promise restoration of formatting state changed by a formatter.
A map index outside Variable's accepted identifier range shall be permitted to cause std::length_error during printing, without changing the map. Stream, formatter and resource failures may also propagate their C++ exceptions. Stream failure without an enabled exception shall be observable through the stream state; a normal void return shall not alone establish complete output. After any such failure the output may be partial, but the map shall remain valid and unchanged. Exact diagnostic messages are not prescribed.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
9. Move construction and empty source PPL-SPEC-000009 Move construction from a valid map under 🔗 1. Public partial coordinate-map type and valid use shall create a distinct valid map with exactly the source's mapping on entry and shall leave the source as a valid empty map. The source shall support the same queries, insertions, assignments and destruction as any other empty map. Subsequent valid changes to either object shall not change the other's map.
If construction of the destination's empty storage fails, resources acquired for the incomplete destination shall be released and the source shall remain unchanged and valid. After the empty storage has been constructed, transferring the represented map shall not allocate storage or throw.
The move constructor's exception specification shall be nonthrowing exactly when default construction of its configured storage containers is nonthrowing, as expressed by the declaration below. The debug codomain container shall contribute to that condition only when present.
-
Incoming link from: 1. Public partial coordinate-map type and valid use1
10. Move assignment and empty source PPL-SPEC-000010 Move assignment between distinct valid maps under 🔗 1. Public partial coordinate-map type and valid use shall replace the target's mapping with exactly the source's mapping on entry and leave the source as a valid empty map. Both maps shall support subsequent queries, insertions, assignments and destruction. Subsequent changes to either map shall not change the other's represented value.
Self-move-assignment shall leave the map unchanged. Move assignment shall return a reference to its target, including self-move-assignment. It shall not allocate storage or throw. Storage retained by an empty map shall remain owned by that map and shall not imply the presence of any mapped pair.
-
1. Threshold-ordered pending events and caller prerequisites PPL-SPEC-000801 Pending_List<Traits> shall own a sequence of active event nodes and a separate pool of reusable inactive nodes. Each active event shall contain an owned threshold value and borrowed handler/expired-flag bindings. Traits::less_than shall define a stable strict weak order on admitted threshold values. Threshold copy construction, assignment, destruction and that comparison shall not throw; selected threshold operations shall satisfy their own validity and resource prerequisites.
Clients shall synchronize access and retain the noncopying owning-list conditions of 🔗 5. Empty owning-list construction and remaining-node destruction. Active node positions shall belong to one list and remain valid only until their event is erased or their owner destroyed. Handlers and flags shall remain alive while their event is active or a borrowed reference is accessed. Inactive pooled nodes may retain old pointer values without accessing those external objects; their old external bindings need not outlive the pool. The queue shall not require global PPL initialization beyond the selected threshold's own needs. Any enclosing watcher interface shall retain its additional thread/signal restrictions.
-
2. Pending-element construction and embedded-link lifetime PPL-SPEC-000802 Pending_Element construction shall copy the supplied threshold and bind the supplied handler and flag by reference identity. It shall not invoke the handler, modify the flag or retain a reference to the caller's threshold object. The selected threshold shall satisfy 🔗 1. Threshold-ordered pending events and caller prerequisites.
The newly constructed element's inherited links shall require binding into a valid ring before traversal, unlinking or destruction, retaining 🔗 2. Embedded-node construction and link initialization. Queue insertion shall establish that binding before exposing the element. A directly constructed element shall be attached by its caller before destruction; completed linked-element destruction shall retain the nonthrowing threshold lifetime and embedded- node contract.
-
3. Element attribute reassignment without relinking PPL-SPEC-000803 assign shall replace the owned threshold value and borrowed handler/ flag bindings with the supplied attributes, preserving the element's existing link position. It shall not allocate an event node, invoke a handler or reset either flag. The supplied threshold may alias this element's current threshold; self-value assignment shall retain its meaning. Callers reassigning active elements shall preserve the pending list's ordering before using its ordinary operations. Pooled elements shall be rebound before exposure as new active events.
-
4. Threshold, handler and expired-flag reference access PPL-SPEC-000804 deadline() shall return a const reference to the owned threshold; handler() shall return a const reference to the bound handler; expired_flag() shall return a mutable reference to the bound Boolean even through a const element wrapper. Access shall preserve all attributes and links. A reference to the threshold shall require the node and threshold object to remain alive, and shall observe any later admitted reassignment. Handler/flag references shall retain the external object's lifetime independently of the element wrapper. Invoking or modifying a returned external object shall be a caller action, not an automatic queue notification.
-
5. Pending-element attribute checker scope PPL-SPEC-000805 For an admitted completed element, OK() shall return true without modifying attributes or links. It shall not validate threshold positivity, current-time expiry, external handler policy or list sorting. Its use shall not dereference a handler or flag merely to validate their stored pointer values. This element checker shall not establish the inherited ring's structural validity or make a stale active-event position usable.
-
6. Queue construction and complete active/free ownership cleanup PPL-SPEC-000806 Construction shall create a valid empty active sequence and empty free pool. Destruction shall release every owned active and pooled node and its threshold exactly once. It shall not delete borrowed handlers or flags, invoke notification actions or change external expired flags. Independent queue owners shall have independent nodes and lifetimes. No supported owner copy/assignment shall be required under 🔗 1. Threshold-ordered pending events and caller prerequisites.
-
Incoming link from: 5. Per-trait event ordering and multiplicity1
7. Sorted insertion and equivalent-deadline multiplicity PPL-SPEC-000807 Successful insertion shall add exactly one active event with the supplied attributes and return its live position. Traversing the active sequence shall produce nondecreasing threshold order under the supplied strict weak comparison. Every previously active event shall remain with its prior threshold, handler, flag and node identity. Distinct events with equivalent thresholds shall all remain present; their relative order shall not be required by this interface. Insertion shall not act on handlers or modify external flags. Threshold values need not be positive or related to a clock merely to use this internal queue.
-
8. Insertion with borrowed active attributes PPL-SPEC-000808 An insertion's threshold argument may borrow the threshold of an already active element; insertion shall preserve that source and copy its value into the new event. Handlers and flags may be shared among several active events. Their reference identities and preexisting flag values shall remain unchanged by insertion. These aliases shall not permit reuse of erased positions as active-event sources or destruction of external objects still referenced by active events.
-
Incoming link from: 9. Watcher destruction, cancellation and handler ownership1
9. Active-event erasure and successor preservation PPL-SPEC-000809 Erasure shall require a live active position belonging to this queue. It shall remove exactly that event from the active sequence, preserve every other event and its ordering/identity, and return the removed event's next active position or this queue's end. It shall retain the removed node in the reusable pool without destroying its threshold, notifying its handler or changing its flag. The removed position shall cease to denote an active event even while the underlying node remains allocated. Erasure shall not allocate.
-
10. Recycled-node insertion and allocation-free reuse PPL-SPEC-000810 When inactive nodes are available, insertion shall reuse one of them rather than allocate a new node. It shall replace every event attribute before linking the reused node into the sorted active sequence. The old external handler/flag bindings shall not be accessed during reuse. No particular selection order among available free nodes shall be required. Without an inactive node, insertion shall allocate a new properly aligned event node. Threshold operation costs shall remain those of the admitted nonthrowing threshold type.
-
11. Active-event iterator ranges and borrowed traversal PPL-SPEC-000811 iterator and const_iterator shall retain the corresponding embedded-list iterator types and 🔗 7. Embedded-list iterator borrowing and valid linked positions, 🔗 8. Embedded-list position binding and lifetime, 🔗 9. Embedded-list typed element access, 🔗 10. Embedded-list bidirectional traversal and 🔗 11. Embedded-list position equality. The public nonconst begin/end members shall bound exactly the active sequence; free nodes shall never appear in that range. End shall be comparable and support retreat when nonempty, but not dereference. Positions shall preserve node identity under other event insertion/erasure, subject to 🔗 1. Threshold-ordered pending events and caller prerequisites. Clients shall not change embedded links or break active threshold ordering through the borrowed element access.
-
12. Active emptiness independent of retained pool storage PPL-SPEC-000812 empty() shall return true exactly when no active events remain. An empty active sequence shall have equal begin/end positions even if inactive node storage is retained. Emptiness shall not imply that all allocated event nodes have been released. The query shall not notify handlers, modify flags or change the active/free node ownership.
-
13. Queue node checks and threshold-order validation PPL-SPEC-000813 For safely inspectable active/free rings, OK() shall require both embedded lists' element checks and nondecreasing active threshold order. An empty active list shall pass when its active/free node checks pass. Free nodes shall not require threshold sorting. Checking shall not invoke handlers, dereference expired external bindings, modify flags or change ownership. Corrupted embedded links shall remain outside the checker domain; this operation shall not provide memory-safe diagnosis of arbitrary ownership corruption. Clients may check and repair a threshold-order violation before resuming ordinary queue operations.
-
14. Insertion-allocation failure preservation and retry PPL-SPEC-000814 With the nonthrowing threshold and comparison prerequisites of 🔗 1. Threshold-ordered pending events and caller prerequisites, a reported event-node allocation failure shall leave the active sequence, free pool, all existing event attributes, handler bindings and flag values unchanged. No incomplete event node shall remain owned or linked. The same queue shall permit a later successful insertion and ordinary erasure. Erasure and insertion using an available pooled node shall not require an event-node allocation. These guarantees shall not promise recovery from violated threshold or linking preconditions.
-
1. Temporary-cache values, leases and element prerequisites PPL-SPEC-000891 The internal temporary mechanism shall manage live objects of the selected type T, either through a pool-backed lease or a local value holder. Each selected operation shall require the element construction, destruction and resource capabilities it actually invokes; copying or moving T shall not be required merely to obtain, use or return a pooled item. Element destruction shall not throw. Clients shall retain T's own numerical/runtime prerequisites. No additional global PPL initialization shall be required for unrelated element types.
An active pool lease shall give its caller exclusive use of that item's element value until release. A released item shall belong to the cache, and the caller shall not keep accessing it through an old reference. Pool operations that affect a common free list shall not overlap without caller synchronization. Context/teardown conditions shall retain 🔗 12. Cache contexts, teardown and retained storage lifetime.
-
2. Slow-copy trait selection and built-in GMP classifications PPL-SPEC-000892 Slow_Copy<T> shall classify ordinary types as false unless a supported specialization selects otherwise. Its GMP integer and rational specializations shall classify mpz_class and mpq_class as true. The classification shall select storage strategy under 🔗 9. Dirty temporary storage strategy; it shall not itself construct, copy, move or initialize an element object. A selected user specialization shall be visible before the corresponding temporary-holder instantiation.
-
3. Obtaining a fresh or retained pool item PPL-SPEC-000893 Temp_Item<T>::obtain() shall return a reference to a live item exclusively leased from the calling context's pool. If no cached item is available, it shall allocate a new item and value-initialize its T object. Otherwise it shall remove one cached item from the free pool without reconstructing, copying or resetting its T value. Different simultaneously active leases shall refer to different items. No ordering among several available cached items shall be required. Allocation or element-construction failure shall retain 🔗 11. Allocation and element-construction failure cleanup.
-
4. Returning a lease without destroying its value PPL-SPEC-000894 Temp_Item<T>::release(item) shall return one currently active lease to the calling context's free pool without destroying or resetting its T object or allocating another item. Its value shall remain owned by the cache for later reuse or cleanup. The caller shall release each lease exactly once, shall not release an already cached/dead item, and shall cease access through its old lease. A serialized cross-context handoff shall be admitted when T permits it and the item is returned to a live destination context under 🔗 12. Cache contexts, teardown and retained storage lifetime; returning an item shall not depend on an inaccessible origin-thread identifier.
-
Incoming link from: 7. Reference-holder acquisition, access and scope cleanup1
5. Qualified item reference and admitted borrowing PPL-SPEC-000895 Temp_Item<T>::item() shall return a reference with the declared T& qualification to the same owned object on each call during that item's active lease. For a modifiable T, writes through this reference shall be visible through the lease and to later admitted reuse of that object. The accessor shall not allocate, copy, reconstruct or release the item. The returned reference shall not authorize access after release, holder destruction or actual object cleanup.
-
6. Pool-item construction and ownership restrictions PPL-SPEC-000896 Clients shall acquire Temp_Item<T> objects through obtain and return them through release. Ordinary client default construction, copy construction and assignment shall be inaccessible; no supported move operation shall transfer a leased item implicitly. The cache shall own item destruction, and a leased item shall not be deleted directly by its caller. Stable live item identity shall be retained through admitted use and return until actual cache cleanup.
-
7. Reference-holder acquisition, access and scope cleanup PPL-SPEC-000897 A Temp_Reference_Holder<T> shall acquire exactly one pool item on successful construction and return it on destruction, including ordinary exception unwinding. Its item() shall return the leased object under 🔗 5. Qualified item reference and admitted borrowing. Holder destruction shall not destroy the retained T or allocate another item. Each separate default construction shall acquire its own lease. Copy construction, assignment and moving shall be inaccessible. A returned value reference shall remain borrowed only while that holder is live and retains its lease. Calling item() on a temporary reference holder shall be ill-formed.
-
8. Local value-holder construction and lifetime PPL-SPEC-000898 Temp_Value_Holder<T> shall own one local T object, default initialized as a normal member. A class type's default constructor shall run; a fundamental type shall not gain an initial-value guarantee from this holder. Its item() shall return a reference with the declared T& qualification to that same local object. Destruction shall destroy that owned object rather than cache it. The holder itself shall perform no separate pool allocation, copy or move, while retaining resources and construction failures intrinsic to T. Copy construction, assignment and moving shall be inaccessible.
-
9. Dirty temporary storage strategy PPL-SPEC-000899 For a selected T, Dirty_Temp<T> shall use the Temp_Reference_Holder<T> interface when Slow_Copy<T>::value is true and Temp_Value_Holder<T> when false. It shall retain the chosen holder's ownership, initialization, borrowing and failure rules without adding an element copy, move or numeric initialization stage. The result shall be a dirty temporary; clients shall establish the value required by their computation rather than assume a fresh numerical zero.
-
10. Dirty-temporary declaration macro and lexical lifetime PPL-SPEC-000900 PPL_DIRTY_TEMP(T, id) shall declare a corresponding local Dirty_Temp<T> holder and a T& named id bound to its item(). The type shall be supplied as one preprocessor argument; a type with commas shall use a suitable alias. The caller shall provide a usable fresh identifier and declaration scope, including the generated holder name, and terminate the invocation as a declaration. The macro shall preserve the selected holder lifetime through that lexical scope, including unwinding; id shall not authorize an escaping reference beyond it. The macro shall not copy or implicitly initialize the value beyond 🔗 9. Dirty temporary storage strategy.
-
Incoming link from: 3. Obtaining a fresh or retained pool item1
11. Allocation and element-construction failure cleanup PPL-SPEC-000901 If a fresh pool item cannot be allocated, or its T construction throws, the exception shall propagate without leaking the incomplete item's storage or adding an incomplete item to the free pool. Previously active items and cached values shall remain usable and unchanged. Element-owned subresources shall follow the element constructor's own C++ cleanup obligations. A failed holder construction shall not acquire an active lease. A failed local value-holder construction shall likewise retain its element's cleanup protocol. A later successful attempt shall remain possible; obtaining an already cached item shall not require a fresh element construction or item allocation.
-
12. Cache contexts, teardown and retained storage lifetime PPL-SPEC-000902 Each Temp_Item<T> specialization shall maintain an independent free pool. In a thread-safe configuration it shall be thread-local; otherwise it shall be shared static storage requiring serialized conflicting operations. Cached free items shall be destroyed, with their owned values/resources, when that pool's thread or static context is destroyed. Outstanding active leases shall remain the caller's return responsibility and shall not be mistaken for cached free items. Calls shall not use a pool after its teardown has begun or completed.
An element-permitted lease handoff may outlive the originating thread and be returned to another live context after synchronization; free-pool cleanup shall not destroy that outstanding lease. Cache storage shall not be cleared merely because a separate PPL initialization owner is finalized. These rules shall not relax T's own initialization, thread-affinity or value-lifetime restrictions.
-
1. Generic threshold-watcher traits and admitted value protocol PPL-SPEC-000851 Threshold_Watcher<Traits> shall use the selected trait's Threshold and Delta types, current-value provider get(), nonthrowing strict comparison less_than and conversion from_delta. Threshold shall be default constructible, have nonthrowing copy construction, assignment and destruction, and satisfy its own value/resource needs. get() shall produce a value/reference bindable to a const threshold reference for the duration of a check. Conversion shall assign the selected absolute threshold from the supplied delta. Default construction, current-value provision and conversion may report exceptions.
The comparison shall provide a coherent strict order over the admitted current/pending domain, including false on equal values. The trait shall provide a writable check_function slot accepting, converting to and invocable as void (*)(), initially null with no pending events and owned by the watcher protocol while events remain. This generic mechanism shall require no timer availability or global PPL initialization beyond its selected traits' needs. Thread/lifetime conditions shall retain 🔗 12. Watcher notification lifetimes and exclusive use.
-
2. Flag-notification watcher construction PPL-SPEC-000852 Successful flag-form construction shall own one handler bound to the supplied holder and flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, compute/validate the event threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. Construction shall not install the flag or query its priority merely to register the event. The holder/flag shall remain borrowed notification objects. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and a compatible flag. Its synchronous notification shall use release compare-and-exchange to fill only a null holder. It shall not dereference an existing request, query priorities, or replace a nonnull request. Both notification objects shall outlive the watcher; a published flag shall also outlive its readers. Cancellation shall precede clearing or releasing its binding. The same threshold validation, registration failure cleanup and queue exclusivity conditions shall apply.
-
3. Function-notification watcher construction PPL-SPEC-000853 Successful function-form construction shall own one handler retaining the supplied callback under 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure, compute/validate its threshold under 🔗 4. Threshold conversion and already-reached rejection, and register exactly one pending event. The callback shall be live and nonnull when its event can dispatch. Construction shall not invoke it. Failure shall retain 🔗 10. Construction failure cleanup and existing-event preservation.
-
4. Threshold conversion and already-reached rejection PPL-SPEC-000854 Construction shall default-construct a local threshold, invoke the selected from_delta conversion, then obtain the current value and accept the result only if the current value is strictly before that threshold under the admitted comparison. A converted threshold equal to or before the current value shall throw std::invalid_argument and shall not register an event. Exceptions from default construction, conversion or current-value provision shall propagate with 🔗 10. Construction failure cleanup and existing-event preservation. The generic watcher shall not infer another numeric interpretation of a user-defined delta or absolute threshold.
-
5. Per-trait event ordering and multiplicity PPL-SPEC-000855 Watchers shall share their trait's pending queue within the storage policy in 🔗 12. Watcher notification lifetimes and exclusive use: one per thread for an opted-in thread-safe trait, otherwise one shared queue per trait. Each successful construction shall add one event, preserving all existing watchers and nondecreasing threshold order under 🔗 7. Sorted insertion and equivalent-deadline multiplicity. Equivalent future thresholds shall be admitted as distinct events; no relative dispatch order among equivalent events shall be required. Different trait instantiations shall have independent queues and hook slots. Registration shall not dispatch existing events.
-
6. Published checking function and empty-queue transitions PPL-SPEC-000856 After successful event registration, the trait's check_function slot shall point to that instantiation's checking action. It shall remain published while any event is pending and become null when the final pending event is canceled or successfully dispatched. Failed construction shall preserve the previous slot value under 🔗 10. Construction failure cleanup and existing-event preservation. Clients shall invoke a published hook only while its queue remains nonempty under the exclusive-use protocol; retaining an old nonnull pointer shall not authorize calling an emptied queue.
-
7. Due-event dispatch and successful expiration PPL-SPEC-000857 A published check shall obtain the current object from one get() call and inspect pending events in threshold order. While that observed current object is not strictly before the first pending threshold, it shall invoke the event's bound action. Only after that action returns normally shall it mark the watcher expired and remove its pending event. Thus an event exactly at the current threshold shall be due. Processing shall stop at the first future event or an empty queue, retaining 🔗 6. Published checking function and empty-queue transitions.
If a trait returns a reference to mutable current state, later comparisons in the same dispatch shall observe any admitted serial changes to that object; a value returned by get() shall instead remain the retained value for that check. This mechanism shall not promise elapsed-time notification or invoke the current-value provider separately per event.
-
8. Action exceptions and partially completed dispatch PPL-SPEC-000858 If a notification action throws, dispatch shall propagate that exception without marking or removing the throwing event. Earlier events already notified successfully shall remain expired and removed; later events shall remain pending. The throwing event's callback effects shall not be rolled back. A later admitted check may invoke it again, or destruction may cancel it. The queue and published hook shall remain consistent with the events still pending, and no handler shall leak.
-
9. Watcher destruction, cancellation and handler ownership PPL-SPEC-000859 Destruction of an unexpired watcher shall cancel its pending event; destruction of an already expired watcher shall not remove another event or notify again. Both shall destroy the watcher-owned handler exactly once. Cancellation shall not invoke the handler or modify external flag objects, and shall retain the active/free queue ownership of 🔗 9. Active-event erasure and successor preservation. Destruction shall retain the admitted nonthrowing trait operations and exclusive-use conditions.
-
10. Construction failure cleanup and existing-event preservation PPL-SPEC-000860 A reported failure while allocating the handler, default-constructing or converting a threshold, obtaining current state, rejecting an already reached threshold, or allocating its pending node shall release the incomplete watcher-owned handler and any temporary resources acquired for that construction. It shall preserve all previously pending watchers, their notification state and the previously published checking hook. The same trait instantiation shall permit later successful construction and dispatch/cancellation. The nonthrowing copy/assignment/destruction/ comparison prerequisites shall remain those of 🔗 1. Generic threshold-watcher traits and admitted value protocol.
-
11. Noncopyable watcher lifetime identity PPL-SPEC-000861 A watcher shall retain one lifetime identity for its expired flag, handler and pending position. Copy construction and assignment shall be inaccessible; no public move construction/assignment or default construction shall be supplied. Clients shall keep its address and lifetime stable while an event can reference that state. Separate watcher objects shall be constructed through their own notification constructors.
-
Incoming links from: 1. Generic threshold-watcher traits and admitted value protocol 5. Per-trait event ordering and multiplicity 1. Computational-weight value and current-state binding 2. Exact scaled-weight conversion and representability 3. Absolute threshold formation and modular aliases 4. Strict circular ordering of computational weights 5. Computational-weight instrumentation outside profiling mode 6. Assertion-scope instrumentation suppression 7. Caller-owned abandonment request and exception object 8. Cooperative abandonment checkpoint ordering and propagation10
12. Watcher notification lifetimes and exclusive use PPL-SPEC-000862 Construction, destruction and checks for one trait's shared queue shall not overlap concurrently or reenter that queue's dispatch. Notification actions shall retain the valid handler/flag/function bindings of 🔗 1. Polymorphic event-action interface and virtual destruction, 🔗 2. Flag-handler binding and binding-preserving copies, 🔗 3. Strict-priority flag installation, 🔗 4. Function-handler target binding and copies and 🔗 5. Function action dispatch and callback failure and shall not destroy a watcher whose handler or expiration state is being accessed. The trait's current-value result shall remain valid through its use. Clients shall not replace a queue's hook while its events remain.
In a thread-safe configuration, a trait may opt into per-thread queues with static constexpr bool thread_local_queue = true. Its current-value state and checking slot shall then also be thread-local. Weightwatch_Traits shall use this policy. Watchers and their borrowed bindings shall remain in their constructing thread and be destroyed before that thread exits. Other threads may independently compute, register, cancel and check their own queues. Exclusivity and nonreentrancy shall apply separately to each queue. Traits without that opt-in, and ordinary non-thread-safe configurations, shall retain the shared-state synchronization requirements above.
-
Incoming links from: 3. Selected-coordinate integer restriction of bounded-difference values 4. Bounded-integer wrapping and guarded evolution of difference shapes 3. Selected-coordinate integer restriction of octagonal values 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 3. Index insertion and inherited ordered-set operations 4. Coordinate-set dimension and maximum dimension6
1. Public coordinate-index set and value lifecycle PPL-SPEC-000021 The public C++ interface shall expose Variables_Set as a public derivative of std::set<dimension_type>. Its stored value shall be a finite set of distinct indices enumerated in increasing numerical order. A coordinate-valid set shall contain only indices i < Variable : : max_space_dimension(). The empty set shall be coordinate-valid. A set shall select coordinates without imposing an ambient dimension on an object that consumes the selection.
The inherited C++20 std::set<dimension_type> interface shall remain available subject to the overloads actually declared by Variables_Set. Base-class constructors and assignment overloads shall not be implicitly added to the public derived interface. Construction from arbitrary iterator ranges shall be performed by default construction followed by inherited range insertion. Raw-index base operations may store any dimension_type value; they shall not validate coordinate admissibility. Before using the set as a coordinate selection or calling a member that requires coordinate validity, clients shall establish the validity of every stored index, for example using OK().
Implicit copy construction and copy assignment shall have the C++20 value and exception behavior of the std::set base. Successful copies shall contain exactly the source indices with independently owned nodes. Implicit moves shall transfer the value according to the standard base-container rules; moved-from objects shall remain valid with the state permitted by those rules. Destruction shall release owned nodes. A Variables_Set shall not be deleted through a pointer to its nonvirtual base destructor.
Operations on existing objects shall require live container objects. Callers shall obey the supported library/thread regime, serialize modifications of a shared instance and prevent unsynchronized modification while another call observes or copies it. No automatic invalid-lifetime or concurrent-use detection shall be required.
-
6. Coordinate-set diagnostic output and formatter prerequisites PPL-SPEC-000026 Diagnostic output shall observe a coordinate-valid set without modifying its indices. With compatible ordinary character formatting and successful output, operator<< shall write "{", each selected Variable in increasing index order preceded by one space, a comma after every Variable except the last, and the final text " }". Thus an empty set shall write "{ }". Variable text shall be produced by the active Variable formatter at each write. The operator shall return the supplied stream reference. It shall not add a newline or request a flush. print() shall perform this output to std::cerr.
Calls shall require the library/thread initialization protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization to have established a valid active Variable formatter under 🔗 7. Active Variable formatter and initialized thread state. Formatter dispatch shall follow 🔗 8. Variable names, formatter dispatch and output failures. Clients shall synchronize formatter changes, shared streams and shared-set access under the supported thread regime. The formatter shall not mutate the printed set during output. Stream formatting and error reporting shall follow ordinary C++ insertion semantics. Formatter exceptions and stream exceptions shall propagate; ordinary nonthrowing stream failures shall remain observable through the stream state. Partial output may remain after failure, while the set shall remain unchanged.
-
Incoming link from: 5. Forgetting one coordinate without removing it1
2. Variable value identity and lifetime operations PPL-SPEC-000012 The public Variable type shall represent one Cartesian coordinate by its nonnegative identifier, with limits defined by 🔗 3. Variable construction, coordinate queries and bounds. Its meaning shall depend only on that identifier, independently of C++ object names, other variables and the current output function. Operations on existing variables shall require live valid objects; construction shall require valid source objects only where a source is supplied.
Implicit copy and move construction shall create a variable with the source's identifier and shall preserve the source. Implicit copy and move assignment shall set the target's identifier to the source's entry identifier, return a reference to the target and preserve a distinct source. Self-assignment shall preserve the identifier. Each variable shall remain an independent value. These value operations and destruction shall require no external storage allocation; destruction shall not alter another variable. Callers shall prevent unsynchronized access to an object while another operation changes its value.
-
Incoming links from: 1. Human-readable bounded-difference presentation 1. Human-readable box presentation 14. Readable congruence and system output 12. Readable constraint and system output 3. Thread initialization, default state and finalization 14. Human-readable affine output and formatter dispatch 1. Human-readable octagonal presentation 8. Coordinate-map diagnostic printing and output failures 6. Coordinate-set diagnostic output and formatter prerequisites 8. Variable names, formatter dispatch and output failures10
7. Active Variable formatter and initialized thread state PPL-SPEC-000017 The public output_function_type shall denote a function accepting an output stream and a Variable value, returning void. set_output_function(p) shall store exactly p without invoking it; get_output_function() shall return the pointer currently stored for the applicable runtime context. Neither operation shall allocate storage or change any variable identifier.
The applicable initialization and thread-entry protocol of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall establish the default output function before variable insertion is used. In a thread-safe build the stored pointer shall be thread-local. Otherwise it shall be shared within the process, and callers shall serialize formatter changes and uses. Callers shall also synchronize shared-stream access and mutable callback state as needed.
Storing a null pointer shall be permitted, and a subsequent getter shall return null; insertion shall require a nonnull callable pointer. The caller shall retain any callback dependencies for its use period and restore a callable pointer before subsequent insertion. Setting a formatter shall not acquire ownership of callback dependencies. This interface shall not diagnose every violation of initialization, callback-lifetime or concurrency preconditions.
-
8. Variable names, formatter dispatch and output failures PPL-SPEC-000018 For a live valid variable with identifier i, let q = ⌊i ⁄ 26⌋ and r = i − 26q. Successful direct use of default_output_function shall insert the uppercase character at position r in ABCDEFGHIJKLMNOPQRSTUVWXYZ. If q is nonzero, it shall then insert q as an unsigned integer using the stream's current formatting; otherwise it shall insert no suffix. Character and integer insertions shall honor their applicable stream formatting and locale. The function shall add no separator, newline or explicit flush, and shall not change the active formatter.
Under 🔗 7. Active Variable formatter and initialized thread state, IO_Operators::operator<< shall invoke the currently active output function exactly once with the supplied stream and variable value, and shall return that same stream reference on normal return. Each insertion shall obtain the pointer active for that call. A callback may change the formatter for subsequent calls; insertion shall not restore the old pointer or undo callback changes to the stream. Direct default formatting shall not consult the active pointer.
Output shall not change the variable identifier. Stream failures shall follow the stream's state and exception-mask rules. Callback exceptions and applicable C++ resource exceptions shall propagate; partial output and callback changes to formatter or stream state shall remain observable, with no output rollback promised. Callbacks shall satisfy the stream, lifetime and synchronization preconditions and shall not invalidate an object accessed by the call.
-
1. Watchdog platform availability and initialization prerequisites PPL-SPEC-000871 Watchdog timers shall be available when the configured platform provides the required setitimer, sigaction and pthread_sigmask operations. In that configuration, clients shall retain the library/class initialization and exclusive signal-ownership protocols of 🔗 11. Process timer ownership and signal-safe callbacks, 🔗 18. Class initialization and preceding signal action and 🔗 19. Class finalization and pending-notification cleanup. If any required operation is unavailable, all construction forms shall throw std::logic_error and shall neither publish a notification nor modify the supplied flag holder, regardless of the supplied duration. Construction may also report a resource failure while creating its exception object.
-
2. Flag-form watchdog registration PPL-SPEC-000872 On an available, correctly initialized platform, successful volatile flag-form construction shall own one handler bound to the supplied holder/flag under 🔗 2. Flag-handler binding and binding-preserving copies and 🔗 3. Strict-priority flag installation, register one pending event for its admitted duration, and leave those external notification objects borrowed. Registration shall neither install the flag nor query its priority as a notification. At expiration, priority selection shall use the then-current holder and flag. The flag's priority operation shall satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
In a thread-safe build an additional overload shall borrow an atomic pointer holder and compatible flag. Expiration shall only record a notification in non-thread-local handler storage. At a subsequent ordinary checkpoint in the constructing thread, release compare-and-exchange shall install the flag only when the holder is null. No existing request shall be dereferenced, replaced, or compared by priority. Among multiple eligible atomic watchdogs the most recently constructed binding shall be tried first. Selected pending atomic notifications shall precede computational-threshold checks, retaining the snapshot rule in 🔗 1. Computational-weight value and current-state binding. This publication need not use a lock-free borrowed holder because it takes place outside signal context.
Construction, checkpoints and destruction shall use the single watchdog owner/signal-receiving thread. Holder and flag shall remain alive through destruction; a published flag shall additionally outlive its readers. Cancellation may discard an unconsumed notification and shall not clear an already published request. The caller shall cancel before clearing the holder or releasing its flag. A failed construction shall leave no notification binding or pending event behind.
-
3. Function-form watchdog registration PPL-SPEC-000873 On an available, correctly initialized platform, successful function-form construction shall own one handler retaining the supplied function under 🔗 4. Function-handler target binding and copies, register one pending event and not invoke that function merely to register it. A pending callback shall be nonnull, live and satisfy 🔗 11. Process timer ownership and signal-safe callbacks. Dispatch shall invoke that bound function exactly once for its successfully completed event. Failure shall retain 🔗 8. Failed watchdog construction and surviving events.
-
4. Positive watchdog duration and exact nominal units PPL-SPEC-000874 When native timers are available, both construction forms shall accept a positive long duration in centiseconds and interpret its nominal value as c ⁄ 100 seconds. A zero or negative duration shall throw std::invalid_argument without registering an event; construction cleanup shall retain 🔗 8. Failed watchdog construction and surviving events. Large positive durations through LONG_MAX shall retain their full logical value under 🔗 7. Logical deadlines and bounded physical timer checkpoints, subject to supported resource or timer-system-call failures. Timer resolution, signal delivery and masked operations shall retain 🔗 11. Process timer ownership and signal-safe callbacks.
-
5. Stable watcher and notification lifetimes PPL-SPEC-000875 An available-platform watchdog shall not be default constructible, copy constructible, move constructible or assignable. Its stable live address shall retain its expiration state and event identity until destruction. Borrowed holder/flag/function objects shall remain valid whenever the event may notify. Clients shall not end a live watchdog's lifetime from its callback or concurrently with signal dispatch; the masking/exclusive-use protocol shall govern admitted cancellation.
-
6. Ordered event multiplicity and existing-event preservation PPL-SPEC-000876 Each successful constructor shall add one distinct event to the shared queue. Equal logical deadlines shall retain all registered events; their relative callback order shall be unspecified. An earlier or later insertion shall preserve every other event's logical deadline and bound notification. Registration and cancellation shall not notify unrelated events merely because the queue or physical timer has changed.
-
Incoming link from: 4. Positive watchdog duration and exact nominal units1
7. Logical deadlines and bounded physical timer checkpoints PPL-SPEC-000877 The first event shall establish a relative logical time base. Later registration shall account for elapsed time observed from the armed timer and retain the requested relative duration in its full logical deadline. Each nonzero physical timer request shall be at most one day (86400 seconds), using an intermediate checkpoint when a logical interval is longer. A checkpoint before a pending event's deadline shall not notify it; subsequent checkpoints shall preserve the remaining interval and other event deadlines. Bounded requests shall not imply that every kernel accepts them or guarantee exact elapsed deadlines across arbitrary signal-masked one-shot expiration periods.
-
8. Failed watchdog construction and surviving events PPL-SPEC-000878 When construction reports a supported recoverable exception, it shall release its allocated handler and not leave the failed event pending. Previously live watchdogs shall remain usable with their logical notifications/deadlines preserved. This shall cover invalid duration, handler/node allocation failure, signal-block failure, timer-read failure, invalid successful timer read and timer-arm failure, including a failure while reporting another error. The constructor shall restore its internal critical-section state and caller signal mask before propagation, subject to the fatal restoration rule of 🔗 12. Signal-mask transactions and fatal restoration failures. Internal freed nodes may remain owned by the shared queue's reuse pool.
-
9. Nonthrowing destruction and ordinary cancellation PPL-SPEC-000879 ~Watchdog() shall not throw. It shall destroy its owned handler exactly once while its timer signal is blocked, before restoring the caller's signal mask. An unexpired watchdog shall remove its own event without notifying it; an expired watchdog shall not remove or notify another event. Cancellation of a nonleading or equal-deadline event shall preserve remaining deadlines; canceling the first event shall schedule the next one or stop the timer when no event remains. If a next deadline is already due, cancellation shall schedule a short nonzero checkpoint rather than dispatch a notification from the destructor. System-call failure and fatal masking outcomes shall retain 🔗 10. Cancellation failure and retained-checkpoint fallback and 🔗 12. Signal-mask transactions and fatal restoration failures.
-
10. Cancellation failure and retained-checkpoint fallback PPL-SPEC-000880 If cancellation cannot read a valid timer interval, rearm the next event or stop the last timer, it shall still erase the canceled event without propagating that system-call exception. The previous physical timer/bookkeeping shall remain as a checkpoint for remaining events; its later signal shall notify only events whose logical deadlines are due and schedule others for their remaining duration. A failed last-event stop may leave a physical notification, which shall not invoke a canceled handler. Later cancellation/insertion shall remain consistent with the retained checkpoint rather than assume it equals the first remaining event's deadline.
-
11. Process timer ownership and signal-safe callbacks PPL-SPEC-000881 The facility shall reserve ITIMER_PROF/SIGPROF, or ITIMER_REAL/SIGALRM on Cygwin, GNU Hurd and profiling builds. One thread shall own all watchdog operations and receive the selected signal; every other thread shall keep it blocked. These restrictions shall also apply to a thread-safe PPL build, and clients shall not independently replace/use the owned timer or signal while the facility owns them. Callbacks and priority queries of the function/volatile-flag forms shall use only operations valid in asynchronous signal context. The atomic-holder form shall instead record a non-TLS notification in signal context and defer holder publication to ordinary owner code. They shall not throw, construct/destroy watchdogs or reenter their queue. Signal resolution, delivery delays and arbitrary prolonged masked operations shall not imply a hard elapsed-time guarantee.
-
12. Signal-mask transactions and fatal restoration failures PPL-SPEC-000882 Construction and cancellation shall block the selected signal while updating shared queue/timer state and restore the caller's exact previous mask afterward, including unrelated blocked signals. Failure to block the signal shall propagate from construction with 🔗 8. Failed watchdog construction and surviving events. The same failure during noexcept cancellation, or any failure to restore the mask, shall invoke std::terminate rather than continue with unprotected state or a newly retained mask. Pending delivery released by mask restoration shall see a consistent published queue and timer state.
-
Incoming link from: 17. Timer-read validity and context-specific error channels1
13. Stale timer-notification suppression PPL-SPEC-000883 On timeout entry, if a successful timer-state read yields a valid nonzero remaining interval, the notification shall be treated as stale and shall return without advancing the logical clock or notifying a replacement event. If the read fails or is invalid, dispatch shall use the timeout fallback of 🔗 14. Due-event signal dispatch and successful one-shot expiration; this fallback shall not promise to preserve a still-armed replacement deadline when the signal was in fact stale. A valid zero interval shall be processed as an actual timeout. Replacing a timer shall not assume that a previously pending signal has been retracted.
-
Incoming link from: 13. Stale timer-notification suppression1
14. Due-event signal dispatch and successful one-shot expiration PPL-SPEC-000884 An actual timeout outside an active timer transaction shall advance the logical clock by the accounted last requested span, inspect events in deadline order and invoke each event whose deadline is no later than that clock. After its signal-safe action returns, dispatch shall mark it expired and remove it. A future event shall remain pending and be scheduled for its remaining logical interval. When no event remains, the logical alarm shall become inactive. An empty-queue signal shall not invoke a handler. The errno and fatal rearm outcomes shall retain 🔗 16. Fatal signal-context timer-rearm failure and 🔗 20. Timeout and signal-mask errno preservation.
-
15. Deferred timeout accounting inside a transaction PPL-SPEC-000885 If an actual timeout is processed while the internal transaction state is active, it shall defer event dispatch by arming a short nonzero checkpoint. The previously consumed timeout span shall remain included in the elapsed-time accounting for that later dispatch; repeated replacement/chunk histories shall not lose the consumed span. A deferred checkpoint by itself shall not notify a future event. Failure to arm this checkpoint shall retain 🔗 16. Fatal signal-context timer-rearm failure.
-
16. Fatal signal-context timer-rearm failure PPL-SPEC-000886 When timeout dispatch or transaction deferral cannot rearm the required timer, it shall call std::abort. It shall not report that failure by constructing or throwing a C++ exception in signal context. Earlier successfully completed callbacks in that dispatch shall retain their effects up to process termination. This fatal policy shall not be replaced by silently leaving future pending events unscheduled.
-
17. Timer-read validity and context-specific error channels PPL-SPEC-000887 A valid timer interval shall have nonnegative seconds representable by long and microseconds in [0, 1000000). A failed timer read shall not be interpreted as a successful sample. During construction, a successful read outside this range shall report std::runtime_error with 🔗 8. Failed watchdog construction and surviving events. During cancellation it shall use 🔗 10. Cancellation failure and retained-checkpoint fallback, and during signal entry it shall use the fallback in 🔗 13. Stale timer-notification suppression. Successful zero and boundary-valid intervals shall retain their ordinary context meaning.
-
Incoming link from: 1. Watchdog platform availability and initialization prerequisites1
18. Class initialization and preceding signal action PPL-SPEC-000888 On an available platform, class initialization shall establish a one-shot timer protocol (zero repeated interval), install the watchdog signal action for the selected signal and preserve its preceding action for later restoration. Failed installation shall report its system-call failure. The caller/library shall provide balanced initialization and finalization, without independently repeated initialization or live watchdogs before setup. If later library initialization fails after this signal action was acquired but before any timer/event was acquired, its internal rollback shall restore the preceding action without modifying an unrelated existing interval timer.
-
19. Class finalization and pending-notification cleanup PPL-SPEC-000889 On an available platform, finalization shall require no live pending watchdog events. With the selected signal blocked, it shall stop the owned timer, mark the logical alarm inactive, discard an owned pending notification and restore the preceding signal action. It shall restore the caller's exact mask and preserve errno when it returns. Failure to block, stop the timer, install the discard action, restore the preceding action or restore the mask shall invoke std::terminate. A stale notification from a canceled timer shall not escape later to the preceding client handler.
-
Incoming link from: 14. Due-event signal dispatch and successful one-shot expiration1
20. Timeout and signal-mask errno preservation PPL-SPEC-000890 Whenever timeout dispatch returns normally, it shall restore its entry errno, including a stale-signal return, callback effects and successful read/rearm calls that change errno. Signal-mask acquisition and restoration shall preserve the errno with which those individual mask operations were entered. Finalization shall preserve its entry errno on return under 🔗 19. Class finalization and pending-notification cleanup. This shall not turn a reported constructor system-call failure into an unchanged-errno promise.
-
1. Optional profiler selection and instrumentation protocol PPL-SPEC-001598 Computational-weight profiling shall be selected by nonzero PPL_PROFILE_ADD_WEIGHT together with NDEBUG. Assertion builds shall retain ordinary weight instrumentation even when the profiling flag is nonzero; profiling-disabled release builds shall retain 🔗 5. Computational-weight instrumentation outside profiling mode. Profiler implementation definitions and automatic calibration shall be present only in the selected profiling configuration. The profiler declaration shall be included after Weightwatch_Traits is complete, with the time declarations required by its interface.
In profiling mode, WEIGHT_BEGIN() shall call Weight_Profiler::begin(). Each expansion of WEIGHT_ADD(d) or WEIGHT_ADD_MUL(d, f) shall own a function-static profiling point identified by that expansion's file and line. The first execution shall evaluate and capture d as the point's Delta; later executions of that expansion shall reuse it. WEIGHT_ADD shall end a one-iteration sample; WEIGHT_ADD_MUL shall evaluate f once per execution, convert it to unsigned int, and end that many iterations. Expressions and their conversions shall be defined. Deltas intended to vary between calls shall use distinct explicit profiling points instead.
The profiler shall borrow its file-name string through its last output or destruction. Calls using the shared clock boundary, calibration and statistics shall be serialized, including in a thread-safe library build. A successful POSIX calling-thread CPU clock shall be available. Timing calls shall occur in the same thread over each interval. Admitted statistics shall remain representable in their unsigned int sample/iteration counters; timing differences shall remain representable in the clock arithmetic. No numerical-library initialization prerequisite shall be imposed by the profiler itself. The ordinary weight counter shall retain 🔗 1. Computational-weight value and current-state binding.
-
Incoming link from: 3. Profiler sample classification and weighted statistics1
2. Profiler clock boundaries and zero-iteration weight accounting PPL-SPEC-001599 begin() shall replace the shared timestamp with the calling thread CPU time. For end(n) with n > 0, the profiler shall add δn to Weightwatch_Traits::weight using that unsigned counter's modular arithmetic, read a new timestamp, and use the preceding shared boundary as the interval start. A nanosecond-field rollover shall retain the elapsed time across the seconds boundary. After subtracting the calibrated overhead a, it shall supply the elapsed nanoseconds e and per-iteration value x = e ⁄ n to 🔗 3. Profiler sample classification and weighted statistics. Timing arithmetic shall use double and its rounding; adjusted times need not be nonnegative.
For end(0), the profiler shall refresh the shared timestamp without changing the weight, sample counts, iteration counts or accumulated statistics. It shall perform no division by zero or statistical arithmetic for that call. The next sample shall start at the refreshed boundary, so an interval with no iterations shall not be attributed to subsequent work. All calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
-
Incoming link from: 2. Profiler clock boundaries and zero-iteration weight accounting1
3. Profiler sample classification and weighted statistics PPL-SPEC-001600 Construction shall capture the source location, delta and timing thresholds, and initialize both the valid and discarded statistical classes to zero. It shall leave the shared timing boundary and computational weight unchanged. For each positive-count sample from 🔗 2. Profiler clock boundaries and zero-iteration weight accounting, let x = e ⁄ n. The sample shall be discarded exactly when x < m or (M > 0 ∧ x > M), where m and M are the minimum and maximum thresholds. Equality with either active threshold shall be valid; a nonpositive maximum threshold shall disable the upper test.
In the selected class, the sample count shall increase by one and the iteration count N by n. The elapsed-time sum S shall increase by e, and the weighted square sum Q by ex. The first sample shall set both extrema to x; later samples shall retain the minimum and maximum per-iteration values. The other class shall remain unchanged. Classification shall not suppress the computational-weight increment. Statistics shall use double arithmetic with its rounding. The output mean shall be S ⁄ N, and valid-sample population variance Q ⁄ N − (S ⁄ N)2, the iteration-weighted statistics. Floating rounding can make the computed variance negative; no exact-time or nonnegative rounded variance guarantee shall be imposed. 🔗 1. Optional profiler selection and instrumentation protocol shall apply.
-
Incoming link from: 5. Computational-weight instrumentation outside profiling mode1
4. Profiler reports, lifetime output and startup calibration PPL-SPEC-001601 output_stats() shall write to std::cout without clearing the stored statistics. Its prefix shall identify the borrowed file and line followed by Weight_Profiler. An unvisited point shall report never reached.. A nonempty valid class shall report samples, iterations, per-iteration extrema, mean, variance and square root of variance. A nonempty discarded class shall report thresholds, samples, iterations, extrema and mean. Both classes shall be reported when nonempty, valid first, with a terminating flushed newline. Numerical formatting shall follow the stream's current state. Stream failures shall follow standard stream behavior; destruction shall call this output operation subject to ordinary nonthrowing-destructor rules.
Automatic initialization in the selected configuration shall set the shared adjustment to tune_adjustment()'s return value. That internal calibration shall begin a shared interval, set the adjustment to zero, and perform 1000 one-iteration measurements at a function-static point with zero delta and zero thresholds. It shall return that point's stored valid minimum. Its statistics shall remain available for the point's destruction report. Calibration shall not change the computational weight. Direct subsequent calls shall again zero the adjustment, append 1000 measurements to that same point, and return its retained minimum; they shall not install the returned adjustment themselves. Calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
-
Incoming links from: 2. Flag-form watchdog registration 1. Optional profiler selection and instrumentation protocol2
1. Computational-weight value and current-state binding PPL-SPEC-000863 Weightwatch_Traits::Threshold and Delta shall denote unsigned long long. The computational-weight counter shall initially be zero and get() shall return a const reference to its current counter, without copying or allocating. The returned reference shall observe later admitted serial updates. In a thread-safe configuration, that counter/reference shall belong to the calling thread and shall not be used after that thread exits or from another thread. The checking slot shall initially be null and retain the watcher-owned protocol in 🔗 6. Published checking function and empty-queue transitions. In a thread-safe build the counter, checking slot and Threshold_Watcher<Weightwatch_Traits> queue shall all belong to the calling thread. Each watcher and its borrowed notification bindings shall be used and destroyed in that thread before it exits. Other threads may independently compute, register, cancel and dispatch their own budgets.
In a thread-safe build, the checking slot shall be a function-pointer proxy: assignment, conversion to void (*)(), invocation and independent copied snapshots shall retain their ordinary meanings. Assigning a local snapshot shall not change the live slot. A live-slot assignment shall not alter another thread's hook or the signal-notification gate. Direct field-address/type-trait compatibility with former raw/shared fields is not required; clients shall be rebuilt with matching library headers. Library and clients shall agree on the bool/function-pointer atomic capability selection; a compatible C++ ABI alone shall not permit mixing dispatcher modes. Clients shall not overwrite their checker while its queue contains events.
At an owner checkpoint that selects pending atomic-watchdog work, that work shall be published before checking computational thresholds. A notification arriving after the checkpoint's dispatch snapshot may be processed at the next checkpoint. With always-lock-free notification and function-pointer atomics, unexpired timers shall not install an extra checkpoint callback. Otherwise, ordinary owner code shall use a deferred per-thread hook; the signal action shall not access thread-local objects or call a potentially locking atomic operation.
-
2. Exact scaled-weight conversion and representability PPL-SPEC-000864 compute_delta(u, s) shall return the exact integer u2s when that result is representable in Delta. For u == 0 it shall return zero for every unsigned scale. For nonzero u, an excessive shift or a scaled result larger than Delta's maximum shall throw std::invalid_argument rather than wrap. The function shall not change the current counter or checking slot. Returning a zero delta shall not imply that an already reached watcher threshold is admissible under 🔗 4. Threshold conversion and already-reached rejection.
-
3. Absolute threshold formation and modular aliases PPL-SPEC-000865 from_delta(out, d) shall assign the unsigned modular sum of the current weight and the supplied delta to out. It shall admit out aliasing the delta object or the current counter and evaluate the sum from their values before assignment. It shall neither register an event nor invoke a notification. This arithmetic conversion shall not itself validate whether the result is future under 🔗 4. Strict circular ordering of computational weights; watcher construction shall perform that check under 🔗 4. Threshold conversion and already-reached rejection.
-
Incoming link from: 3. Absolute threshold formation and modular aliases1
4. Strict circular ordering of computational weights PPL-SPEC-000866 Let N be the number of value bits in Threshold and let d be the unsigned modular difference of b and a, in [0, 2N). less_than(a, b) shall return true exactly when 0 < d < 2N − 1. Equal weights shall compare false; values separated by exactly a half-range shall not acquire an arbitrary orientation. An admitted queue/check history shall keep its current and pending thresholds within a common circular interval shorter than a half-range so that this comparison gives the coherent strict ordering required by 🔗 1. Generic threshold-watcher traits and admitted value protocol. The function shall not allocate, notify or change its operands/backend state.
-
Incoming link from: 1. Optional profiler selection and instrumentation protocol1
5. Computational-weight instrumentation outside profiling mode PPL-SPEC-000867 In the normal computational-weight configuration (PPL_PROFILE_ADD_WEIGHT == 0), WEIGHT_BEGIN() shall not change the counter. Outside the assertion suppression of 🔗 6. Assertion-scope instrumentation suppression, WEIGHT_ADD(d) shall add the value of its supplied expression and WEIGHT_ADD_MUL(d, f) shall add the product of the values of both supplied expressions. Each supplied expression shall be evaluated once; the caller shall supply arithmetic expressions with defined evaluation, conversion and multiplication. Accumulation shall retain unsigned modular arithmetic and shall not itself dispatch pending notifications. The same admitted expressions shall have the same mathematical effect in assertion and nonassertion builds.
An explicitly enabled release-build Weight_Profiler configuration shall follow 🔗 1. Optional profiler selection and instrumentation protocol through 🔗 4. Profiler reports, lifetime output and startup calibration.
-
6. Assertion-scope instrumentation suppression PPL-SPEC-000868 In builds without NDEBUG, In_Assert shall maintain a nesting count in the calling thread (or the sole configured global context). Its construction shall enter assertion evaluation and destruction shall leave it. asserting() shall be true exactly while that count is nonzero. Balanced nested scopes, including exception unwinding, shall restore the previous state. During such a scope, computational-weight increment macros shall neither increment the counter nor evaluate their increment expressions, and maybe_abandon() shall return without checking thresholds or caller-owned requests. Clients shall retain properly nested, noncopied guard lifetimes. In_Assert shall not be required to exist in builds with NDEBUG.
-
Incoming link from: 5. Interruptible thread registration and request lifetime1
7. Caller-owned abandonment request and exception object PPL-SPEC-000869 Throwable shall provide a const virtual throw_me() action and virtual destruction. abandon_expensive_computations shall initially be null and shall retain a borrowed pointer to a caller-owned live Throwable. The client shall keep the request object alive through all admitted reads/actions, publish it under the configured synchronization and execution-context rules, and clear/replace the slot before ending that lifetime. The library shall not own/delete the object or clear a request after invoking it. In a thread-safe configuration the request slot shall be thread-local and atomic; the ordinary configuration shall use its declared volatile pointer protocol. Cross-thread publication shall target the intended live slot under the caller's synchronization; thread-local storage shall not turn a write to another thread's own slot into a request for the computing thread.
-
Incoming link from: 5. Interruptible thread registration and request lifetime1
8. Cooperative abandonment checkpoint ordering and propagation PPL-SPEC-000870 Outside 🔗 6. Assertion-scope instrumentation suppression, maybe_abandon() shall first invoke the nonnull computational-weight checking hook. If that action returns, it shall select the current registration-scoped request in a thread-safe build 🔗 5. Interruptible thread registration and request lifetime, if one is present, or read the current caller-owned abandonment slot. It shall invoke the selected nonnull object's const throw_me() action. The read shall observe admitted serial request changes made by the hook. A throwing hook shall propagate its exception and prevent the later action for that invocation. A throwing request action shall likewise propagate. Neither path shall clear a request, undo callback effects or take ownership of its object. A null hook/request shall be skipped. The checkpoint shall not promise a fixed elapsed-time interruption bound.
-
Incoming links from: 3. Java native failure and pending-exception protocol 4. Java owned wrappers and borrowed views2
2. Java library initialization and finalization PPL-SPEC-001689 After loading the configured JNI library, initialize_library shall establish native library state and the Java class cache before supported operations. finalize_library shall release that cache, the calling thread's variable stringifier and deterministic-timeout state, and the native initialization owner. A later initialization shall establish a new valid period of use.
Clients shall release owned objects, cease using borrowed views, and end worker thread participation before finalization. Requests shall alternate valid initialization and finalization; duplicate library requests are outside this protocol. Participating workers shall obey 🔗 6. Thread entry and shared-facility use.
-
8. Native Java floating-point environment lifetime PPL-SPEC-001730 When PPL_CAN_CONTROL_FPU is true, successful construction of Java_FPU_Guard shall save the calling thread's floating-point environment and establish the rounding required by PPL. Failure to save the environment shall throw std::runtime_error before changing the rounding direction. Destruction shall restore the saved environment on normal return and exception unwinding, subject to the host's successful floating-point environment operations. The guard shall be constructed after Java argument conversions that may execute host code and before the native floating-point numerical operation. The lifetime shall remain on the same thread. Copy construction and copy assignment shall be unavailable. When FPU control is unavailable the guard shall perform no FPU changes and shall not make unsupported floating-point operations valid.