Numerical foundations
- PPL-SPEC-001629 Complete-tree cursor positions, topology and occupied-node search (Specified by)
- PPL-SPEC-000041 Configured integral coefficient type and return trait (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000043 Exact ordinary integral coefficient arithmetic (Specified by)
- PPL-SPEC-000048 Coefficient scaling and truncated division by powers of two (Specified by)
- PPL-SPEC-000052 Coefficient negation and absolute-value assignment (Specified by)
- PPL-SPEC-000056 Integral product accumulation and subtraction (Specified by)
- PPL-SPEC-000425 Forward elimination and augmented equality/line rank (Specified by)
- PPL-SPEC-000426 Back substitution through a triangular nonconstant basis (Specified by)
- PPL-SPEC-000427 Simplification of equality and line subsystems (Specified by)
- PPL-SPEC-000428 Sorting rows together with their saturation records (Specified by)
- PPL-SPEC-000429 Adding processed rows for new coordinate axes (Specified by)
- PPL-SPEC-001649 Sparse equality and line pivot selection (Specified by)
- PPL-SPEC-000418 Row-wise normalization and certificate invalidation (Specified by)
- PPL-SPEC-000842 Native integer accumulated products and intermediate overflow (Specified by)
- PPL-SPEC-000831 Exact same-storage native integer arithmetic (Specified by)
- PPL-SPEC-000837 Native integer arithmetic with exact powers of two (Specified by)
- PPL-SPEC-001663 Native integer overflow primitives (Specified by)
- PPL-SPEC-000296 GCD normalization of raw coefficient vectors (Specified by)
- PPL-SPEC-000297 Support-aware callback combinations (Specified by)
- PPL-SPEC-000298 Whole-row linear combinations across row storage (Specified by)
- PPL-SPEC-000299 Range-limited linear combinations preserve outside coordinates (Specified by)
- PPL-SPEC-001639 Native integral checked-number value move (Specified by)
- PPL-SPEC-001640 Consuming coefficient relocation (Specified by)
- PPL-SPEC-000511 Exact named arithmetic on unbounded integer storage (Specified by)
- PPL-SPEC-000512 Exact unbounded integer product accumulation (Specified by)
- PPL-SPEC-000515 Unbounded integer arithmetic with powers of two (Specified by)
For each supported integer coefficient profile, successful addition, subtraction and multiplication shall produce the mathematical integer result whenever that result is representable in the profile.
Mathematical domain operations depend on coefficient arithmetic preserving meaning. Representability limits and resource failures remain distinct from successful calculation.
Verification covers coefficient arithmetic and its exact-result and arithmetic-precondition contracts. Related obligations: 🔗 5. Integer quotient and remainder semantics, 🔗 6. Exact rational arithmetic, 🔗 1. Meaning of successful exact and approximate results.
Compare results with independently computed arbitrary-precision integer results for zero, positive and negative operands, cancellation and representable boundary cases. Exercise every supported coefficient profile; do not interpret unchecked overflow cases as evidence for exactness.
README.configure.md: section 4, Enabling the Use of Alternative Coefficient Types. src/Coefficient_types.hh: coefficient profile and bounded-integer policy. configure.ac: coefficient selection.
- PPL-SPEC-001523 C coefficient ownership, conversion and bounds (Specified by)
- PPL-SPEC-000045 Checked coefficient overflow and result-policy dispatch (Specified by)
- PPL-SPEC-000048 Coefficient scaling and truncated division by powers of two (Specified by)
- PPL-SPEC-000244 Floating-to-integral range detection and reusable destinations (Specified by)
- PPL-SPEC-000165 Integral scalar conversion range outcomes (Specified by)
- PPL-SPEC-000166 Rational conversion at and beyond integral endpoints (Specified by)
- PPL-SPEC-000052 Coefficient negation and absolute-value assignment (Specified by)
- PPL-SPEC-000053 Coefficient remainder assignment and exact division (Specified by)
- PPL-SPEC-000054 Coefficient greatest common divisor and least common multiple (Specified by)
- PPL-SPEC-000055 Extended integral greatest common divisor (Specified by)
- PPL-SPEC-000056 Integral product accumulation and subtraction (Specified by)
- PPL-SPEC-000058 Reduction of an integral coefficient pair (Specified by)
- PPL-SPEC-000555 Bounded integer coefficient policy configuration (Specified by)
- PPL-SPEC-000128 Exception classification of numerical result codes (Specified by)
- PPL-SPEC-000919 Exact scalar numerator and denominator extraction (Specified by)
For coefficient profiles that promise overflow checking, a requested coefficient calculation whose integer result is outside the representable range shall report overflow rather than report a wrapped or truncated value as a successful exact result.
Checked bounded arithmetic is intended to permit bounded storage without silently corrupting the mathematical computation.
Verification covers checked-coefficient overflow reporting and its observable failure outcomes. Related obligations: 🔗 1. Exact integral coefficient calculations, 🔗 5. Integer quotient and remainder semantics.
Use an independent unbounded-integer oracle to generate results immediately inside and outside both range limits. Confirm that representable results succeed and out-of-range results reach the documented failure outcome.
README.configure.md: section 4, checked and unchecked coefficients. src/Coefficient_types.hh: Bounded_Integer_Coefficient_Policy. src/Coefficient_inlines.hh: overflow handling.
- PPL-SPEC-001142 Rectilinear distance of bounded-difference closed-bound tables (Specified by)
- PPL-SPEC-001143 Euclidean distance of bounded-difference closed-bound tables (Specified by)
- PPL-SPEC-001144 Maximum-coordinate distance of bounded-difference closed-bound tables (Specified by)
- PPL-SPEC-001145 Bounded-difference distance normalization, boundaries and workspaces (Specified by)
- PPL-SPEC-001052 Rectilinear distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001053 Euclidean distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001054 Maximum-coordinate distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001197 Complete checked-wrapper placement construction without a handler (Specified by)
- PPL-SPEC-000754 Pointwise upward matrix conversion (Specified by)
- PPL-SPEC-000767 Rectilinear distance between bound-entry arrays (Specified by)
- PPL-SPEC-000768 Euclidean distance between bound-entry arrays (Specified by)
- PPL-SPEC-000769 Maximum-coordinate distance between bound-entry arrays (Specified by)
- PPL-SPEC-000657 Pointwise upward conversion of extended-number rows (Specified by)
- PPL-SPEC-000521 Finite native floating addition of an accumulated product (Specified by)
- PPL-SPEC-000522 Finite native floating subtraction of an accumulated product (Specified by)
- PPL-SPEC-000523 Configured native accumulation precision and truthful result relations (Specified by)
- PPL-SPEC-000481 Finite native floating-point addition and subtraction (Specified by)
- PPL-SPEC-000482 Finite native floating-point multiplication (Specified by)
- PPL-SPEC-000483 Finite native floating-point division by a nonzero value (Specified by)
- PPL-SPEC-000484 Rounding, result classes and state for finite native binary arithmetic (Specified by)
- PPL-SPEC-000202 Directed conversion to adjacent finite normal floating-point bounds (Specified by)
- PPL-SPEC-000203 Directed conversion in the subnormal and underflow range (Specified by)
- PPL-SPEC-000205 Floating conversion overflow thresholds and computed-value classes (Specified by)
- PPL-SPEC-000504 Finite native addition and subtraction of a power of two (Specified by)
- PPL-SPEC-000505 Finite native multiplication and division by a power of two (Specified by)
- PPL-SPEC-000506 Truncated native floating quotient before storage rounding (Specified by)
- PPL-SPEC-000509 Rounded nonnegative native residue modulo a power of two (Specified by)
- PPL-SPEC-000242 Directed finite floating-to-integral rounding within range (Specified by)
- PPL-SPEC-000244 Floating-to-integral range detection and reusable destinations (Specified by)
- PPL-SPEC-000163 Directed rational-to-integral conversion within range (Specified by)
- PPL-SPEC-000166 Rational conversion at and beyond integral endpoints (Specified by)
- PPL-SPEC-000341 Directed native integral conversion to native floating-point storage (Specified by)
- PPL-SPEC-000344 Directed narrowing between finite native floating-point formats (Specified by)
- PPL-SPEC-000346 Range limits in conversion of finite native scalars to floating point (Specified by)
- PPL-SPEC-000832 Directed native integer division and delegated truncation (Specified by)
- PPL-SPEC-000838 Directed native integer division by powers of two (Specified by)
- PPL-SPEC-000840 Directed native integer square-root assignment (Specified by)
- PPL-SPEC-000124 Rounding-direction intent, composition and inspection (Specified by)
- PPL-SPEC-000125 Inversion of a supported rounding bound direction (Specified by)
- PPL-SPEC-000126 Mapping a bound direction to the platform FPU encoding (Specified by)
- PPL-SPEC-000527 Numeric text input into integral destinations (Specified by)
- PPL-SPEC-000528 Numeric text input into supported native floating destinations (Specified by)
- PPL-SPEC-001230 Octagonal distance normalization, boundaries and workspaces (Specified by)
- PPL-SPEC-001231 Rectilinear distance of octagonal closed-bound tables (Specified by)
- PPL-SPEC-001232 Euclidean distance of octagonal closed-bound tables (Specified by)
- PPL-SPEC-001233 Maximum-coordinate distance of octagonal closed-bound tables (Specified by)
- PPL-SPEC-000774 Pointwise upward representation conversion (Specified by)
- PPL-SPEC-000796 Rectilinear distance of physical octagonal entry arrays (Specified by)
- PPL-SPEC-000797 Euclidean distance of physical octagonal entry arrays (Specified by)
- PPL-SPEC-000798 Maximum-coordinate distance of physical octagonal entry arrays (Specified by)
- PPL-SPEC-000799 Distance workspace protocol and admissible overlaps (Specified by)
- PPL-SPEC-001641 Weakly relational extended-number policies (Specified by)
- PPL-SPEC-001642 Interval and scalar view adapters (Specified by)
- PPL-SPEC-001643 Borrowed or converted distance operands (Specified by)
- PPL-SPEC-000501 Directed and delegated square root of a finite native value (Specified by)
- PPL-SPEC-000502 Finite rational square root at the selected irrational precision (Specified by)
- PPL-SPEC-000503 Selection and ownership of irrational rational precision (Specified by)
- PPL-SPEC-000513 Directed unbounded integer division and explicit delegated convention (Specified by)
- PPL-SPEC-000515 Unbounded integer arithmetic with powers of two (Specified by)
- PPL-SPEC-000262 Directed canonical rational conversion to an unbounded integer (Specified by)
- PPL-SPEC-000264 Directed finite native floating-point conversion to mpz storage (Specified by)
- PPL-SPEC-001196 Finite native floating-point placement construction of an unbounded integer (Specified by)
- PPL-SPEC-000519 Directed unbounded integer square roots (Specified by)
When a supported numerical operation promises a downward or upward bound on a defined real result, a successful downward-bound result shall not exceed that result and a successful upward-bound result shall not be less than it.
Directed numerical bounds are the foundation of sound interval and weakly relational approximations. The guarantee is conditional on the operation and numeric policy supporting the requested direction.
Verification covers directed arithmetic and bound-producing conversions, distinguishing their supported directions and profiles. Related obligations: 🔗 14. Directional bounds, extrema and attainment, 🔗 1. Meaning of successful exact and approximate results.
Compare directed results with exact rational or independently established high-precision results. Include inexact values, cancellation, subnormal values where supported, range boundaries and admitted infinite bounds. Check both directions separately.
src/Rounding_Dir_defs.hh: rounding directions. src/checked_defs.hh: checked arithmetic and conversions. src/checked_float_inlines.hh: directed floating-point operations. src/WRD_coefficient_types_defs.hh: extended-number policies.
- PPL-SPEC-001197 Complete checked-wrapper placement construction without a handler (Specified by)
- PPL-SPEC-000918 Exact coefficient ratio followed by upward scalar conversion (Specified by)
- PPL-SPEC-000324 Typed special-value assignment to native floating-point storage (Specified by)
- PPL-SPEC-000201 Supported exact integer and rational conversion to native floating storage (Specified by)
- PPL-SPEC-000202 Directed conversion to adjacent finite normal floating-point bounds (Specified by)
- PPL-SPEC-000203 Directed conversion in the subnormal and underflow range (Specified by)
- PPL-SPEC-000204 Delegated and exactness requests for floating-point conversion (Specified by)
- PPL-SPEC-000205 Floating conversion overflow thresholds and computed-value classes (Specified by)
- PPL-SPEC-000241 Supported finite native floating-to-integral scalar conversion (Specified by)
- PPL-SPEC-000242 Directed finite floating-to-integral rounding within range (Specified by)
- PPL-SPEC-000243 Delegated floating-to-integral truncation and exactness requests (Specified by)
- PPL-SPEC-000244 Floating-to-integral range detection and reusable destinations (Specified by)
- PPL-SPEC-000161 Exact conversion between native and checked integral scalars (Specified by)
- PPL-SPEC-000162 Exact conversion from an unbounded integer to integral storage (Specified by)
- PPL-SPEC-000163 Directed rational-to-integral conversion within range (Specified by)
- PPL-SPEC-000164 Truncated rational-to-integral conversion and lazy relation requests (Specified by)
- PPL-SPEC-000165 Integral scalar conversion range outcomes (Specified by)
- PPL-SPEC-000166 Rational conversion at and beyond integral endpoints (Specified by)
- PPL-SPEC-000341 Directed native integral conversion to native floating-point storage (Specified by)
- PPL-SPEC-000342 Delegated and exactness native integral conversion to native floating point (Specified by)
- PPL-SPEC-000343 Exact native floating-point assignment to the same or a wider native format (Specified by)
- PPL-SPEC-000344 Directed narrowing between finite native floating-point formats (Specified by)
- PPL-SPEC-000345 Delegated and exactness native floating-point narrowing (Specified by)
- PPL-SPEC-000346 Range limits in conversion of finite native scalars to floating point (Specified by)
- PPL-SPEC-000124 Rounding-direction intent, composition and inspection (Specified by)
- PPL-SPEC-000527 Numeric text input into integral destinations (Specified by)
- PPL-SPEC-000528 Numeric text input into supported native floating destinations (Specified by)
- PPL-SPEC-000091 Exact rational assignment from rational and integral sources (Specified by)
- PPL-SPEC-000092 Exact rational assignment of finite native floating-point values (Specified by)
- PPL-SPEC-000098 Rational canonical-form inspection and coefficient component extraction (Specified by)
- PPL-SPEC-000919 Exact scalar numerator and denominator extraction (Specified by)
- PPL-SPEC-001641 Weakly relational extended-number policies (Specified by)
- PPL-SPEC-001643 Borrowed or converted distance operands (Specified by)
- PPL-SPEC-000261 Exact native integral and unbounded integer assignment to mpz storage (Specified by)
- PPL-SPEC-000262 Directed canonical rational conversion to an unbounded integer (Specified by)
- PPL-SPEC-000263 Delegated and exactness rational conversion to an unbounded integer (Specified by)
- PPL-SPEC-000264 Directed finite native floating-point conversion to mpz storage (Specified by)
- PPL-SPEC-000265 Delegated finite floating-point conversion and exactness into mpz storage (Specified by)
- PPL-SPEC-001196 Finite native floating-point placement construction of an unbounded integer (Specified by)
When a supported numerical conversion distinguishes exact and inexact success, an exact-success outcome shall preserve the source value and an inexact-success outcome shall satisfy the conversion's stated approximation direction.
Conversion precision is part of the mathematical result and cannot be inferred merely from completion of the conversion.
Verification covers numerical conversion values and precision outcomes. Related obligations: 🔗 6. Exact rational arithmetic, 🔗 1. Meaning of successful exact and approximate results.
Check conversions among supported integer, rational and floating-point profiles using values that are exactly representable, values between representable numbers and values at range limits. Independently verify both the converted value and the precision classification.
src/Result_defs.hh: result classifications. src/checked_defs.hh: conversion contracts. src/checked_inlines.hh: conversion operations.
- PPL-SPEC-000044 Coefficient quotient and remainder with truncation toward zero (Specified by)
- PPL-SPEC-000048 Coefficient scaling and truncated division by powers of two (Specified by)
- PPL-SPEC-000053 Coefficient remainder assignment and exact division (Specified by)
- PPL-SPEC-000832 Directed native integer division and delegated truncation (Specified by)
- PPL-SPEC-000833 Exact native truncated quotient and remainder (Specified by)
- PPL-SPEC-000838 Directed native integer division by powers of two (Specified by)
- PPL-SPEC-000839 Centered and nonnegative native integer dyadic residues (Specified by)
- PPL-SPEC-000095 Truncated rational quotient and signed rational remainder (Specified by)
- PPL-SPEC-000513 Directed unbounded integer division and explicit delegated convention (Specified by)
- PPL-SPEC-000514 Exact truncated unbounded integer quotient and remainder (Specified by)
- PPL-SPEC-000515 Unbounded integer arithmetic with powers of two (Specified by)
- PPL-SPEC-000516 Exact centered and nonnegative unbounded integer residues (Specified by)
PPL shall provide integer quotient and remainder operations for its supported integer numeric profiles, with defined quotient-rounding and remainder-sign conventions. For valid operands within the selected arithmetic preconditions, completed operations shall satisfy their specified convention and the corresponding dividend-reconstruction identity.
Division and remainder conventions differ for negative operands. Exact coefficient addition and multiplication alone do not define these arithmetic foundations.
Verification covers integer division and remainder operations, their rounding conventions, valid operand ranges and reported outcomes. Related obligations: 🔗 1. Exact integral coefficient calculations, 🔗 2. Detection of checked coefficient overflow, 🔗 1. Meaning of successful exact and approximate results.
Compare quotient and remainder pairs with independent integer calculations for every supported convention. Include every sign combination, exact and inexact division, zero dividends and representable range boundaries. Exclude a zero divisor and other documented invalid operand combinations from successful-result checks; assess any promised rejection or failure separately.
src/checked_defs.hh: integer division and remainder operations. src/checked_int_inlines.hh: bounded integer quotient and remainder. src/checked_mpz_inlines.hh: unbounded integer operations.
For numeric profiles supporting exact rational values, PPL shall provide addition, subtraction, multiplication and division by a nonzero rational. For valid operands within the arithmetic and resource preconditions, successfully completed operations shall produce the exact mathematical rational result.
Exact rational arithmetic supports domain bounds, optimization results and independent numerical reasoning. A rational-valued operation is distinct from an integer coefficient profile.
The scalar facet selects rational-valued use contexts; it does not introduce a global rational coefficient configuration.
Verification covers rational numeric value types and exact rational arithmetic operations. Related obligations: 🔗 1. Exact integral coefficient calculations, 🔗 4. Meaning of numerical conversion outcomes, 🔗 1. Meaning of successful exact and approximate results.
Compare results with independently reduced numerator-and-denominator calculations. Include negative values, cancellation, nonintegral quotients, equivalent unreduced fractions and large representable operands. Check that canonicalization preserves rational value and treat zero-denominator requests according to their separate preconditions and failure contracts.
src/checked_mpq_inlines.hh: exact rational operations and normalization. src/Checked_Number_defs.hh: supported rational values and arithmetic. src/Result_defs.hh: arithmetic outcome classifications.