Rational grids
- PPL-SPEC-001075 Best bounded-difference enclosure of rational grids (Specified by)
- PPL-SPEC-001050 Cartesian enclosure of a rational grid (Specified by)
- PPL-SPEC-001656 Common-modulus normalization of congruence systems (Specified by)
- PPL-SPEC-001287 Exact rational affine image (Specified by)
- PPL-SPEC-001288 Exact rational affine preimage (Specified by)
- PPL-SPEC-001289 Generalized variable affine image (Specified by)
- PPL-SPEC-001290 Generalized variable affine preimage (Specified by)
- PPL-SPEC-001291 Generalized expression affine image (Specified by)
- PPL-SPEC-001292 Generalized expression affine preimage (Specified by)
- PPL-SPEC-001293 Bounded affine image abstraction (Specified by)
- PPL-SPEC-001294 Bounded affine preimage abstraction (Specified by)
- PPL-SPEC-001307 Congruence widening and finite delay (Specified by)
- PPL-SPEC-001308 Generator widening and finite delay (Specified by)
- PPL-SPEC-001309 Representation-selected default grid widening (Specified by)
- PPL-SPEC-001310 Congruence-limited extrapolations (Specified by)
- PPL-SPEC-001311 Grid convergence certificates (Specified by)
- PPL-SPEC-001312 Grid construction from boxes (Specified by)
- PPL-SPEC-001313 Grid construction from bounded-difference shapes (Specified by)
- PPL-SPEC-001314 Grid construction from octagonal shapes (Specified by)
- PPL-SPEC-001315 Grid construction from polyhedra (Specified by)
- PPL-SPEC-001295 Free-coordinate extension (Specified by)
- PPL-SPEC-001296 Zero-coordinate extension (Specified by)
- PPL-SPEC-001297 Ordered Cartesian concatenation (Specified by)
- PPL-SPEC-001298 Selected-coordinate existential projection (Specified by)
- PPL-SPEC-001299 Prefix-coordinate existential projection (Specified by)
- PPL-SPEC-001300 Injective coordinate remapping (Specified by)
- PPL-SPEC-001301 Conditional coordinate replication (Specified by)
- PPL-SPEC-001302 Least-grid folding of coordinate alternatives (Specified by)
- PPL-SPEC-001303 Integer-time-elapse grid abstraction (Specified by)
- PPL-SPEC-001304 Exact integer-coordinate restriction (Specified by)
- PPL-SPEC-001305 Bounded-integer wrapping abstraction (Specified by)
- PPL-SPEC-001306 Grid topological closure (Specified by)
- PPL-SPEC-001271 Copying bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001272 Recycling bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001273 Copying insertion of a single rational-grid generator (Specified by)
- PPL-SPEC-001274 Single congruence addition and refinement (Specified by)
- PPL-SPEC-001275 Copying congruence-system addition and refinement (Specified by)
- PPL-SPEC-001276 Recycling congruence-system addition (Specified by)
- PPL-SPEC-001277 Strict addition of a single linear constraint (Specified by)
- PPL-SPEC-001278 Copying and recycling strict constraint-system addition (Specified by)
- PPL-SPEC-001279 Conservative refinement by linear constraints (Specified by)
- PPL-SPEC-001280 Equality-constraint extraction and minimization (Specified by)
- PPL-SPEC-001251 Exact grid equality and inequality (Specified by)
- PPL-SPEC-001252 Equality-compatible grid hashing (Specified by)
- PPL-SPEC-001253 Exact grid containment (Specified by)
- PPL-SPEC-001254 Exact strict grid containment (Specified by)
- PPL-SPEC-001255 Exact grid disjointness (Specified by)
- PPL-SPEC-001256 Exact grid relation with a congruence (Specified by)
- PPL-SPEC-001257 Exact grid relation with a linear constraint (Specified by)
- PPL-SPEC-001258 Exact grid subsumption of grid generators (Specified by)
- PPL-SPEC-001259 Exact grid subsumption of polyhedral generators (Specified by)
- PPL-SPEC-001265 Exact directional boundedness of affine expressions on grids (Specified by)
- PPL-SPEC-001266 Exact rational-grid supremum and attainment (Specified by)
- PPL-SPEC-001267 Exact rational-grid infimum and attainment (Specified by)
- PPL-SPEC-001268 Point witnesses for rational-grid maximization (Specified by)
- PPL-SPEC-001269 Point witnesses for rational-grid minimization (Specified by)
- PPL-SPEC-001270 Exact affine-image frequency and closest value on rational grids (Specified by)
- PPL-SPEC-001281 Exact rational-grid intersection (Specified by)
- PPL-SPEC-001282 Least containing rational grid (Specified by)
- PPL-SPEC-001283 Conditional exact rational-grid union (Specified by)
- PPL-SPEC-001284 Least-grid abstraction of set difference (Specified by)
- PPL-SPEC-001285 Context-preserving grid simplification (Specified by)
- PPL-SPEC-001286 Coordinate cylindrification (Specified by)
- PPL-SPEC-001607 Grid internal status value ownership and prerequisites (Specified by)
- PPL-SPEC-001608 Grid internal status flag queries and transitions (Specified by)
- PPL-SPEC-001609 Grid internal status consistency predicate (Specified by)
- PPL-SPEC-001610 Grid internal status signed-keyword export (Specified by)
- PPL-SPEC-001611 Grid internal status signed-keyword loading and rejection (Specified by)
- PPL-SPEC-001260 Human-readable rational-grid presentation (Specified by)
- PPL-SPEC-001261 Reloadable rational-grid record export (Specified by)
- PPL-SPEC-001262 Compatible rational-grid record loading and failure state (Specified by)
- PPL-SPEC-001263 Owned rational-grid memory accounting (Specified by)
- PPL-SPEC-001264 Rational-grid representation invariant query (Specified by)
- PPL-SPEC-001241 Rational-grid values, coefficient profile and valid use (Specified by)
- PPL-SPEC-001242 Dimensioned empty and universe grid construction (Specified by)
- PPL-SPEC-001243 Owned grid copying, assignment and destruction (Specified by)
- PPL-SPEC-001244 Whole grid value exchange (Specified by)
- PPL-SPEC-001245 Exact grid construction from congruence systems (Specified by)
- PPL-SPEC-001246 Exact grid construction from generator systems (Specified by)
- PPL-SPEC-001247 Grid construction from equality constraint systems (Specified by)
- PPL-SPEC-001248 Ambient and affine grid dimensions (Specified by)
- PPL-SPEC-001249 Exact foundational grid classification (Specified by)
- PPL-SPEC-001250 Borrowed congruence and generator views of grid values (Specified by)
- PPL-SPEC-001165 Best octagonal enclosure of rational grids (Specified by)
A rational grid shall denote the solutions of a finite system of rational linear congruences, including the empty grid and the universe grid in every supported space dimension.
Grid membership combines affine equalities and periodic restrictions; it is not restricted to the integer points of a convex polyhedron.
Verification covers grid value types, congruence interpretation and distinguished elements. Related obligations: 🔗 11. Preservation of integer points in integer restriction.
Use exact congruence calculations to check affine subspaces, discrete periodic sets, rational offsets and inconsistent systems. Include empty and universe grids in zero dimensions.
BagnaraDHMZ07 | whole work (background)
doc/definitions.dox: Rational Grids; Congruences and Congruence Relations. src/Grid_defs.hh: grid domain semantics.
- PPL-SPEC-001075 Best bounded-difference enclosure of rational grids (Specified by)
- PPL-SPEC-001271 Copying bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001272 Recycling bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001273 Copying insertion of a single rational-grid generator (Specified by)
- PPL-SPEC-001280 Equality-constraint extraction and minimization (Specified by)
- PPL-SPEC-001251 Exact grid equality and inequality (Specified by)
- PPL-SPEC-001253 Exact grid containment (Specified by)
- PPL-SPEC-001254 Exact strict grid containment (Specified by)
- PPL-SPEC-001255 Exact grid disjointness (Specified by)
- PPL-SPEC-001256 Exact grid relation with a congruence (Specified by)
- PPL-SPEC-001257 Exact grid relation with a linear constraint (Specified by)
- PPL-SPEC-001258 Exact grid subsumption of grid generators (Specified by)
- PPL-SPEC-001259 Exact grid subsumption of polyhedral generators (Specified by)
- PPL-SPEC-001265 Exact directional boundedness of affine expressions on grids (Specified by)
- PPL-SPEC-001266 Exact rational-grid supremum and attainment (Specified by)
- PPL-SPEC-001267 Exact rational-grid infimum and attainment (Specified by)
- PPL-SPEC-001268 Point witnesses for rational-grid maximization (Specified by)
- PPL-SPEC-001269 Point witnesses for rational-grid minimization (Specified by)
- PPL-SPEC-001270 Exact affine-image frequency and closest value on rational grids (Specified by)
- PPL-SPEC-001607 Grid internal status value ownership and prerequisites (Specified by)
- PPL-SPEC-001608 Grid internal status flag queries and transitions (Specified by)
- PPL-SPEC-001609 Grid internal status consistency predicate (Specified by)
- PPL-SPEC-001610 Grid internal status signed-keyword export (Specified by)
- PPL-SPEC-001611 Grid internal status signed-keyword loading and rejection (Specified by)
- PPL-SPEC-001260 Human-readable rational-grid presentation (Specified by)
- PPL-SPEC-001261 Reloadable rational-grid record export (Specified by)
- PPL-SPEC-001262 Compatible rational-grid record loading and failure state (Specified by)
- PPL-SPEC-001263 Owned rational-grid memory accounting (Specified by)
- PPL-SPEC-001264 Rational-grid representation invariant query (Specified by)
- PPL-SPEC-001241 Rational-grid values, coefficient profile and valid use (Specified by)
- PPL-SPEC-001245 Exact grid construction from congruence systems (Specified by)
- PPL-SPEC-001246 Exact grid construction from generator systems (Specified by)
- PPL-SPEC-001248 Ambient and affine grid dimensions (Specified by)
- PPL-SPEC-001249 Exact foundational grid classification (Specified by)
- PPL-SPEC-001250 Borrowed congruence and generator views of grid values (Specified by)
- PPL-SPEC-001165 Best octagonal enclosure of rational grids (Specified by)
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, successful conversion between a grid's congruence description and its generator description shall preserve the represented grid, with grid parameters retaining integer displacement and grid lines retaining arbitrary real displacement.
The two descriptions must agree on periodicity as well as affine geometry.
Verification covers grid representation conversion and generator interpretation. Related obligations: 🔗 3. Preservation by representation-only changes, 🔗 4. Sound conversion between numerical abstractions.
Independently derive dual descriptions of rational grids containing points, periodic parameters and continuous directions. Check conversion in both directions, redundant descriptions and grids without generating points.
BagnaraDHMZ07 | whole work (background)
doc/definitions.dox: Points, Parameters and Lines; The Grid Generator Representation; Minimized Grid Representations. src/Grid_defs.hh: grid representations. src/Grid_conversion.cc: representation conversion.
- PPL-SPEC-001271 Copying bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001272 Recycling bulk insertion of rational-grid generators (Specified by)
- PPL-SPEC-001273 Copying insertion of a single rational-grid generator (Specified by)
- PPL-SPEC-001274 Single congruence addition and refinement (Specified by)
- PPL-SPEC-001275 Copying congruence-system addition and refinement (Specified by)
- PPL-SPEC-001276 Recycling congruence-system addition (Specified by)
- PPL-SPEC-001281 Exact rational-grid intersection (Specified by)
- PPL-SPEC-001282 Least containing rational grid (Specified by)
- PPL-SPEC-001283 Conditional exact rational-grid union (Specified by)
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for dimension-compatible grids, a successful intersection shall denote their exact set intersection and a successful grid hull shall denote the least rational grid containing both inputs.
The least containing grid can include points absent from the union, so the hull must not be interpreted as exact disjunction.
Verification covers grid intersection and hull operations. Related obligations: 🔗 8. Abstract set-difference semantics.
Compute simple periodic intersections and containing grids by exact arithmetic on residues and rational generators. Include incompatible periods, shifted grids, continuous directions and empty operands.
doc/definitions.dox: Rational Grids; Operations on Rational Grids. src/Grid_defs.hh: intersection and upper-bound contracts.
- PPL-SPEC-001287 Exact rational affine image (Specified by)
- PPL-SPEC-001288 Exact rational affine preimage (Specified by)
- PPL-SPEC-001289 Generalized variable affine image (Specified by)
- PPL-SPEC-001290 Generalized variable affine preimage (Specified by)
- PPL-SPEC-001291 Generalized expression affine image (Specified by)
- PPL-SPEC-001292 Generalized expression affine preimage (Specified by)
Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a valid deterministic rational affine transformation, successful grid image and inverse-image operations shall denote the exact image and exact inverse image of the input grid under that transformation.
Affine transformations must preserve the appropriate combination of equalities, periods and continuous directions.
Verification covers grid affine-image and inverse-image operations, retaining this exactness requirement. Related obligations: 🔗 6. Sound affine forward and backward transfers.
Compute images and preimages independently from rational congruences and generators. Include rational scaling, translations, constant assignments, noninvertible maps and empty grids.
BagnaraDHMZ07 | whole work (background)
doc/definitions.dox: Affine Images and Preimages for Grids. src/Grid_defs.hh: affine image and preimage contracts.
- PPL-SPEC-001307 Congruence widening and finite delay (Specified by)
- PPL-SPEC-001308 Generator widening and finite delay (Specified by)
- PPL-SPEC-001309 Representation-selected default grid widening (Specified by)
- PPL-SPEC-001310 Congruence-limited extrapolations (Specified by)
- PPL-SPEC-001311 Grid convergence certificates (Specified by)
- PPL-SPEC-001463 Product component widening and convergence scope (Specified by)
PPL shall provide widening facilities for rational grids. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall contain its input grids and shall stabilize its prescribed iteration on ascending sequences satisfying the stated inclusion and finite-delay conditions.
Grid joins alone do not ensure finite stabilization of ascending iterations. Congruence- and generator-based widening need the same stated soundness and convergence obligations.
The cited proceedings article provides background on the grid construction.
Verification covers grid widening operations, representation choices and inclusion or delay preconditions. Related obligations: 🔗 1. Rational-grid meaning, 🔗 2. Equivalent grid representations, 🔗 3. Grid intersection and grid hull, 🔗 6. Compound extrapolation and finite convergence.
Review the convergence argument for each supported grid widening and check containment during independently described ascending iterations. Include changing periods, affine equalities, empty and universe grids, alternate representations and exhaustion of a finite delay budget.
BagnaraDHMZ07 | Whole work (background on grid operations).
doc/definitions.dox: Grid Widening Operators; Grid Widening with Tokens. src/Grid_defs.hh: congruence, generator and default grid widening. src/Grid_widenings.cc: supported grid widening algorithms.