Parma Polyhedra Library requirements
C++ generators and generator systems
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.

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.

PPL-SPEC-000183
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.

  • PPL-LLR-000015
    5. Distinct meanings of geometric generators PPL-LLR-000015

    Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • 1. Coordinate identity and ambient dimension PPL-LLR-000011

    Geometric descriptors shall identify coordinates within a finite-dimensional ambient vector space and shall preserve coordinate identity when their declared dimension is increased without an explicit coordinate transformation.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      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.

  • 6. Thread entry and shared-facility use PPL-LLR-000438

    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.

    • PPL-HLR-000008
      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.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-000184
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.

PPL-SPEC-000185
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.

  • PPL-LLR-000015
    5. Distinct meanings of geometric generators PPL-LLR-000015

    Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • 1. Coordinate identity and ambient dimension PPL-LLR-000011

    Geometric descriptors shall identify coordinates within a finite-dimensional ambient vector space and shall preserve coordinate identity when their declared dimension is increased without an explicit coordinate transformation.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • 3. Preservation by representation-only changes PPL-LLR-000303

    For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed operation specified to change only the representation of a numerical object shall preserve the object's concrete meaning and space dimension. Any change to its precision or represented set shall instead be governed by an explicitly stated semantic operation.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      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.

  • 3. Failure and resource safety PPL-LLR-000133

    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.

    • PPL-HLR-000008
      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.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-000186
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.

PPL-SPEC-000187
7. Generator dimensions and dimensioned copying PPL-SPEC-000187

space_dimension() shall report public ambient dimension and max_space_dimension() the expression dimension limit. Requested/result sizes shall not exceed that limit. Dimensioned copies and set_space_dimension(n) shall retain lower-index coordinates, zero-extend new coordinates or discard removed trailing coordinates. Normalization may rescale an equivalent direction or numerator/divisor tuple. Kind and storage shall remain unchanged. Resizing a line or ray shall require a nonzero retained direction; removal that can collapse a direction shall instead follow 🔗 9. Removing generator coordinates and collapsed directions. Dimensioned copies without explicit storage shall retain source storage.

PPL-SPEC-000188
8. Generator coordinate permutation and zero insertion PPL-SPEC-000188

Swapping two in-dimension coordinates shall exchange their coefficients. A cycle of distinct in-dimension variables shall move each coefficient to the following listed coordinate, wrapping last to first; empty/singleton cycles shall preserve the generator. shift_space_dimensions(v,n) shall require v.id() <= space_dimension() and an admitted result dimension; it shall insert n zero coordinate slots before that position and increase dimension by n. A zero shift shall preserve value.

These operations shall preserve kind and storage, and preserve applicable rational point coordinates or direction values according to their stated coordinate correspondence. Equivalent normalization may change stored scales. Divisor and internal strictness fields shall not become coordinates.

PPL-SPEC-000189
9. Removing generator coordinates and collapsed directions PPL-SPEC-000189

remove_space_dimensions(vars) shall require selected indices within the public dimension, discard those coefficients and compact surviving coordinates in their original order. Points and closure points shall retain their kind and rational remaining coordinates and return true. A line or ray whose retained direction is nonzero shall retain its geometric direction kind and return true. If its entire direction is removed, it shall become the included origin in the remaining coordinate space and return false. Removing no coordinates shall be admitted. Storage shall be retained and normalization may rescale equivalent tuples.

PPL-SPEC-000190
10. Generator type, coefficients, divisor and borrowed expression PPL-SPEC-000190

Borrowed coefficient and expression accessors shall require an lvalue receiver, with corresponding const && overloads deleted in every coefficient profile. Copying a borrowed expression view shall not extend the owning descriptor's lifetime.

The kind predicates and type() shall identify the four public kinds exactly; is_line_or_ray() shall identify the two directional kinds. coefficient(v) shall expose a homogeneous numerator/direction coefficient for an in-dimension variable and otherwise throw std::invalid_argument. divisor() shall return a positive divisor for a point or closure point and otherwise throw std::invalid_argument.

expression() shall borrow a read-only affine adapter with the public dimension and homogeneous coefficients, constant term zero, and no hidden strictness coordinate. It shall not encode the point divisor as a constant. The owner shall remain alive and unchanged for uses covered here. Copying that view to a Linear_Expression shall make an independent value. Configured coefficient references shall borrow their owner until mutation or destruction. Queries shall preserve source value.

PPL-SPEC-000191
11. Geometric equivalence and stored generator identity PPL-SPEC-000191

is_equivalent_to and generator equality shall compare equal-dimension, equal-kind geometric objects independently of storage and internal topology. Point and closure-point comparisons shall use exact rational coordinates and keep their kinds distinct. Ray directions shall compare equivalent exactly for positive proportionality; line directions shall admit either nonzero proportionality sign. Different dimensions or kinds shall compare unequal. Inequality expressions shall negate equivalence.

is_equal_to shall compare the complete stored normalized descriptor, including topology and fields, independently of dense/sparse storage. Positive identity shall imply equivalence; negative identity shall not imply geometric inequality. Queries shall preserve operands. Arithmetic prerequisites in 🔗 1. Generator kinds and numerical prerequisites shall apply.

PPL-SPEC-000192
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.

  • PPL-LLR-000015
    5. Distinct meanings of geometric generators PPL-LLR-000015

    Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      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.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-000193
13. Readable generator, type and system output PPL-SPEC-000193

Generator output shall use l(...), r(...), p(...) and c(...) for its respective kind. Inside, it shall print the homogeneous numerator or direction using active variable formatting and the coefficient sign/unit conventions of 🔗 14. Human-readable affine output and formatter dispatch. A zero tuple shall print 0. For point/closure divisor other than one it shall append / and that divisor, putting parentheses around a nonzero numerator expression. Type output shall print LINE, RAY, POINT or CLOSURE_POINT exactly.

System output shall print its public iterator range separated by ", ", or false when there are no generators. Operators shall return the supplied stream, add no newline and preserve source values. Each type's print() shall use that output on std::cerr. Formatting coefficient negations shall satisfy the selected arithmetic profile's preconditions.

  • PPL-LLR-000015
    5. Distinct meanings of geometric generators PPL-LLR-000015

    Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      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.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-000194
14. Generator and system invariants and memory accounting PPL-SPEC-000194

OK() shall report the checked representation invariants of its generator or system. Values produced by successful operations under their valid-input and arithmetic preconditions shall satisfy them. Each type's total memory count shall equal its sizeof plus its external memory count. Queries shall preserve geometric fields, kind, dimension and storage. Counts shall not promise allocator overhead, process resident memory or dense/sparse size ordering.

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.

PPL-SPEC-000196
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.

PPL-SPEC-000197
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.

PPL-SPEC-000198
18. System dimensions, coordinate truncation and container emptiness PPL-SPEC-000198

max_space_dimension() shall report the generator limit and space_dimension() the declared ambient dimension. For admitted dimension n, resizing shall zero-extend new coordinates or discard removed trailing coordinates in every generator. Points/closure points shall retain the corresponding remaining rational coordinates; lines/rays whose directions collapse to zero shall be removed. The resulting generated hull shall have the corresponding coordinate image, including when no supporting point was present. Representation shall be retained.

empty() shall report absence of stored generators, not geometric emptiness of a direction-only or closure-only generated hull. clear() shall remove all generators and reset dimension zero while retaining storage. An empty system may be resized to positive ambient dimension.

  • PPL-LLR-000015
    5. Distinct meanings of geometric generators PPL-LLR-000015

    Generator descriptors shall preserve the mathematical distinction between included points, closure points, rays, lines and grid parameters: closure points need not be included points, rays admit nonnegative displacement, lines admit arbitrary real displacement, and grid parameters admit integer displacement.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • 1. Coordinate identity and ambient dimension PPL-LLR-000011

    Geometric descriptors shall identify coordinates within a finite-dimensional ambient vector space and shall preserve coordinate identity when their declared dimension is increased without an explicit coordinate transformation.

    • PPL-HLR-000001
      1. Numerical and geometric foundations PPL-HLR-000001

      PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      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.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-000199
19. Read-only forward iteration over public generators PPL-SPEC-000199

begin() and end() shall delimit a generator collection with the system's public dimension and the same generated hull. It may suppress a closure point immediately followed by an included point at the same rational coordinates. No public iteration order or duplicate multiplicity shall be promised. Dereference/member access shall borrow a retained generator.

Iterator copy/assignment shall preserve borrowed system and position with independent later navigation. Prefix increment shall return the advanced iterator; postfix shall return its entry-position copy. Comparison shall require iterators into the same unchanged system. Defaults shall admit copying, assignment and destruction before valid-position assignment. Modification/destruction shall invalidate iterators and borrowed rows.

PPL-SPEC-000200
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.