-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
The binding-generation infrastructure shall restrict numerical-domain instantiations in non-C++ language interfaces to those selected by configuration. Selecting no domain instantiations shall retain the selected interface's domain-independent facilities without exposing unselected domain instantiations.
-
12. C selected domains and generated dependencies PPL-SPEC-001565 The configured domain selection shall determine generated C declarations and implementations consistently. Core descriptor, optimizer and lifecycle objects shall remain available with no numerical-domain instantiations. An exposed operation shall have its required argument and result types. C all-ranking functions shall be generated only when the required polyhedron output type is selected; one-witness and decision families shall retain their supported selection policy. Generation shall preserve the declared native-domain and C-handle correspondence and installed declarations shall match the linked definitions.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
For every supported facility exposed by a configured non-C++ language interface, conversion of inputs and operation parameters and production of returned results shall preserve the corresponding native facility's declared mathematical semantics, including its exactness, approximation and inconclusiveness guarantees.
-
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.
-
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.
-
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.
-
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.
-
Incoming link from: 6. Java mathematical representations and operation options1
1. Java integral coefficient exchange PPL-SPEC-001688 Coefficient shall hold the integer supplied through its integer, decimal string or BigInteger constructor, and copying and getBigInteger shall preserve that value. toString shall return its decimal representation. bits shall return the configured native coefficient width, or zero for unbounded native coefficients.
For a valid coefficient representable by the native coefficient type, conversion through a supported native operation and back to Java shall preserve its integral value, including its sign and zero. Conversion shall use the full decimal value, without narrowing it through int or long. In an unbounded configuration this includes integers outside both primitive ranges. Native arithmetic retains its configured range and policy; Java's BigInteger does not extend that range. Checked out-of-range conversion shall use 🔗 3. Java native failure and pending-exception protocol.
-
6. Java mathematical representations and operation options PPL-SPEC-001728 For valid supported Java values, native exchange shall preserve variable indices, representable coefficients and the mathematical meaning of expression trees, constraints, congruences, generators, grid generators and artificial parameters. Expression sums, differences, integer products and negation shall retain their operands' meanings. Constraint direction, congruence modulus, generator kind and divisor, and artificial-parameter numerator and denominator shall be preserved. Coefficient exchange obeys 🔗 1. Java integral coefficient exchange. Native affine, constraint, congruence, generator and grid-generator meanings are specified by 🔗 1. Affine value, numerical prerequisites and shared zero, 🔗 1. Constraint relation meaning and numerical prerequisites, 🔗 1. Affine congruence meaning and valid numerical use, 🔗 1. Generator kinds and numerical prerequisites and 🔗 1. Grid-generator values and integer versus continuous displacement, respectively. Returned mathematical objects may be normalized and need not preserve the input expression-tree shape.
Conversion of a finite acyclic expression into native form shall preserve operator grouping and apply the configured coefficient rules at each node. This conversion and copying through built-in Java expression nodes shall use stack space independent of tree depth. Construction and cloning shall retain the documented ownership of copied operands.
System and variable-set conversion shall retain the represented collection; artificial-parameter sequences shall retain their order. Relation objects shall encode the native predicates (subsumption; disjointness, strict intersection, inclusion and saturation). Boxed primitives, Pair fields and By_Reference values shall preserve the values or object references assigned to them.
Named Java enumeration values for relation symbols, integer widths, representations and overflow policies, optimization modes, solver results and MIP/PIP control parameters shall denote the corresponding native choices. Choosing a complexity or overflow policy shall not strengthen the native operation's exactness guarantee. Nonnegative integral arguments converted to an unsigned native type shall be rejected if negative or outside that type's range; failures follow 🔗 3. Java native failure and pending-exception protocol. Native dimension and object validity preconditions remain applicable.
-
7. Java dimension limits and exact native counts PPL-SPEC-001729 For an unsigned integral native type, java_dimension_limit shall return the smaller of the supplied native limit and the greatest Java long value. java_unsigned_value shall return the exact supplied count when representable by Java long and otherwise throw std::overflow_error. check_java_dimension_growth shall check the current dimension and both successive increments against that effective limit without unsigned wraparound. It shall throw std::length_error if the resulting dimension is inadmissible, before either increment is applied to the numerical object.
JNI count queries for PIP parameter dimensions, constraints and artificial parameters shall return the corresponding native cardinalities. They require valid problem/node handles; wrapper failures follow 🔗 3. Java native failure and pending-exception protocol. A constraint count already represented by a signed iterator difference shall be representable by Java long; other unsigned count conversion uses the checked conversion above.
-
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.
-
1. OCaml mathematical representation exchange PPL-SPEC-001692 For well-formed values of the exposed algebraic types, conversion to native objects shall preserve zero-based variable identities, signed integral Z.t coefficients within the configured native range, affine expression meaning, equality and strict/non-strict inequality meaning, and generator kind. Returned values shall denote the native result; syntactic tree shape and normalization need not be preserved.
Conversion of finite acyclic expressions to native objects shall preserve operator grouping and apply the configured coefficient rules at each node. Native stack usage shall be independent of expression depth. The expression values used during traversal shall remain valid under the OCaml runtime's lifetime and collection rules.
A point or closure point with expression coordinates ai and nonzero divisor d denotes coordinates ai ⁄ d. Lines and rays denote the native direction described by the expression. Grid generators and congruences shall preserve their native rational-divisor and integral-modulus meanings. Native validity and operation-specific topology and arithmetic preconditions apply. A Z.t may be immediate or heap allocated; the binding shall use its value rather than assume either memory layout.
-
4. OCaml operation-option correspondence PPL-SPEC-001731 For well-typed public OCaml values, conversion of operation options shall select the native choice with the same documented meaning: empty/universe, bounded integer width (8, 16, 32, 64 or 128 bits), unsigned or two's-complement signed representation, wrapping/undefined/impossible overflow, minimization or maximization, and polynomial/simplex/unrestricted complexity. MIP pricing and PIP cutting/pivot names and values shall select their corresponding native control parameters. These options retain the native operation's mathematical preconditions and exactness or approximation guarantees. Values forged outside the public OCaml type definitions are outside this conversion contract; supported boundary failures follow 🔗 3. OCaml native exception translation.
-
1. Prolog mathematical term exchange PPL-SPEC-001695 For each configured supported Prolog engine, supported integral terms, affine expressions, constraints, congruences and generators shall be interpreted with their documented native mathematical meaning. '$VAR'(I) shall denote the zero-based coordinate I. Unary negation, addition, subtraction and integral scalar multiplication shall preserve affine meaning. Relations shall preserve equality and strict/non-strict order. Point and closure-point coordinates shall be divided by the supplied nonzero divisor; lines and rays denote directions. Returned terms may be normalized but shall denote the native result.
Values shall be representable by both the engine and configured native coefficient type. A bounded engine does not acquire arbitrary-size integers from GMP in the native library. Malformed or nonlinear expressions and invalid native objects shall follow 🔗 2. Prolog success failure and exception outcomes.
-
7. Prolog operation-option correspondence PPL-SPEC-001732 Option terms shall select the identically named native meanings: true or false, universe or empty, bits_8, bits_16, bits_32, bits_64 or bits_128, unsigned or signed_2_complement, and overflow_wraps, overflow_undefined or overflow_impossible. min and max select optimization direction; polynomial, simplex and any select complexity. The documented pricing, cutting and pivot atoms shall select the corresponding native solver controls. Unsupported option terms shall be rejected through 🔗 2. Prolog success failure and exception outcomes; policies retain native preconditions and guarantees.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
The binding configuration and generation process shall enforce the type dependencies required by exposed operations. It shall reject an inconsistent requested domain selection or omit operations whose required result types are not selected, according to the affected interface's documented configuration rules.
-
12. C selected domains and generated dependencies PPL-SPEC-001565 The configured domain selection shall determine generated C declarations and implementations consistently. Core descriptor, optimizer and lifecycle objects shall remain available with no numerical-domain instantiations. An exposed operation shall have its required argument and result types. C all-ranking functions shall be generated only when the required polyhedron output type is selected; one-witness and decision families shall retain their supported selection policy. Generation shall preserve the declared native-domain and C-handle correspondence and installed declarations shall match the linked definitions.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. Optional component configuration protocol PPL-SPEC-001702 Configuration shall distinguish build-machine generation tools from headers, libraries and runtime facilities required by selected target components. Explicit requests and automatic detection shall follow their documented failure or disabling policies. Diagnostics and the configured interface/tool set shall identify unavailable prerequisites; disabled components shall not be advertised as enabled. If a specifically named interface cannot be built, configuration shall fail. The default and --enable-interfaces=all shall select the available interfaces.
Selected foreign interfaces shall have compatible runtime development facilities and executable generation tools, including the required M4 and Java header-generation facilities. Optional solver input/checking libraries shall follow their declared selection policies. When requirements documentation is selected, a missing or too-old StrictDoc shall disable requirements HTML export with an explanatory warning rather than fail a library build. Unperformed target-execution checks shall remain distinct from successful checks in cross configurations.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
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.
Each interruption facility exposed by a supported language interface shall define and observe its availability, parameter restrictions, thread and signal ownership preconditions, replacement and reset effects, and cleanup after notification. Unsupported requests shall be rejected through the interface's declared error mechanism without arming the unsupported facility. The effects of successful or rejected replacements and resets on existing interruption settings shall be explicit. An interruption shall be distinguishable from a completed numerical outcome.
-
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.
-
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.
-
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.