Parma Polyhedra Library requirements
PPL additional validation rules

PPL additional validation rules

0. Structural checks provided by StrictDoc
STATEMENT:

Load the entire requirements tree with its shared grammar. Require valid SDoc syntax, declared fields and element types, correct field types and enumerated choices, valid relation roles, resolvable links and unique identifiers. Reject cyclic refinement.

These checks are exercised by a standalone StrictDoc HTML export. The grammar does not express every project rule below.

0. Identifier and graph checks beyond the grammar
STATEMENT:

Require the exact UID patterns ^PPL-HLR-[0-9]{6}$, ^PPL-LLR-[0-9]{6}$ and ^PPL-SPEC-[0-9]{6}$ for their respective node types. Check uniqueness across levels and persistence/nonreuse against history.

Reject parents on HLRs, non-HLR parents or roles other than Refines on LLRs, and non-LLR parents or roles other than Specifies on SW_SPEC nodes. Require at least one parent for approved LLR and SW_SPEC nodes. Reject duplicate edges, explicit downward relations and unsupported relation types.

Check native inline UID links used by normative prose references as well as parent-link targets. A navigable cross-reference does not establish refinement or substitute for a required parent edge.

A reviewed direct-verification allocation may justify an LLR having no SW_SPEC children, as specified below. Decomposition coverage does not by itself establish verification or invalidate otherwise reviewed wording.

0. Direct verification and decomposition coverage
STATEMENT:

Review each LLR's COMMENT allocation against all obligations in its statement, and check that VERIFICATION_CRITERIA identify suitable acceptance evidence. Require SW_SPEC refinement for obligations allocated to software interfaces or behavior. Allow direct verification of process obligations without a SW_SPEC child only when the allocation is justified and reviewed.

For implementation-wide conformance constraints that introduce no interface contract, require an explicit justification of direct source-analysis or inspection allocation. Check that the criteria assess actual implementation and generated artifacts wherever the obligation requires their conformance; an administrative record alone does not establish that conformance.

For a mixed LLR, account for its software-contract and directly verified parts separately in each applicable context. Do not treat a process clause, selected verification method, absent SW_SPEC child, or accepted evidence for one part as an exemption for the remaining obligations.

Check the actual allocation, not merely the presence of COMMENT. For software specifications, include applicable cross-cutting LLRs allocated to their contracts as well as the primary component LLR. Verify that all required Specifies links exist and assess the allocation's completeness.

Keep allocation completeness separate from verification completion. A reviewed direct allocation with suitable criteria can complete decomposition coverage, but verification requires acceptable evidence for all applicable obligations and contexts. Check the assessed PPL version, relevant configurations and activity scope, methods, results and acceptance decisions. Acceptance criteria and allocations are not evidence of completed verification.

0. Metadata and applicability checks beyond the grammar
STATEMENT:

Require exactly one registered COMPONENT when it is supplied; require it on approval. Reject unknown APPLICABILITY tokens, duplicates, ALL combined with other tokens, and expressions with no supported context.

For an approved node require nonempty APPLICABILITY, VERIFICATION_METHODS, RATIONALE and VERIFICATION_CRITERIA. For each parent edge require a nonempty intersection of valid contexts. For each approved child's context require at least one approved parent applicable in that context. Count only the intersection towards coverage.

For each SW_SPEC, require VISIBILITY and a nonempty normative INTERFACE. Review that interface rather than its implementation language. Require LANGUAGE when the contract contains language-specific code, declarations or interface semantics, and check that its value matches that interface language. The permitted values remain CPP, C, Java, OCaml and Prolog. Allow omission only for a complete language-neutral protocol or artifact contract whose COMMENT explicitly justifies it. Reject omission that conceals a language-specific interface, or a supplied language label chosen merely because that language implements the protocol. Executable shell source is language-specific; it requires vocabulary review rather than a neutral label. Language-neutral contracts retain their Specifies links, behavioral criteria and software evidence obligations; they are not direct-process allocations. These conditional content checks go beyond the grammar's optional field.

Check that template-scalar, global-coefficient and modeled-width facets are not confused. In particular, MODELED_INT_BITS_128 does not imply a native 128-bit scalar or a 128-bit global-coefficient configuration. Validate INT128_AVAILABLE against its documented capability predicate in each assessed build context.

0. Bibliography checks beyond the grammar
STATEMENT:

For every BIBLIOGRAPHY record check the exact key against the authoritative BibTeX file and require the separator and a nonempty locator. Check adopted mathematical results against the stated passage, including the work's version and any applicable erratum. Require claim-specific passages for adopted definitions, theorems and algorithms; a whole-work background citation is insufficient for that purpose. Distinguish printed pages from PDF page indices and verify that a locator belongs to the cited edition.

Check the journal-first preference by editorial review against the actual needed material, including applicable errata. A key's existence or a journal publication label is insufficient. Verify the supporting passage and canonical entry before approving the affected content.

If an older publication supplies distinct needed material, require a written explanation. Do not reject a reference merely because no local PDF exists. Do not rewrite keys, infer local filenames or silently reconcile the two existing PPL bibliographies.

For normative standards, check the exact document identifier, edition, amendments, corrigenda and governing provisions against the authoritative texts. Establish language and standards compatibility before approving the affected content. Research-publication preferences do not authorize substituting commentary for the governing normative text. Do not invent a canonical key for a missing standards entry.

Structural validation does not replace these editorial checks.

0. Content and approval checks
STATEMENT:

Inspect all HLR and LLR fields for product code, signatures, pseudocode and code examples; move such content into SW_SPEC. Check that each obligation belongs at its stated level and that verification criteria do not add hidden software, implementation or process obligations. Exclude drafting narratives, progress reports, execution logs, pending-decision lists, review-gap lists and current review or conformance-status commentary from requirements, specifications and their informative fields. Communicate deficiencies and unresolved questions in review discussion or chat, and resolve substantive questions before approval.

Review narrative fields for consistent code and mathematical markup under the authoring conventions. Distinguish program names and literals from mathematical symbols and ordinary prose; keep parameter/value correspondence and entry-state meanings unchanged. Check significant whitespace, quoting and escapes in output literals. Inspect rendered inline literals, formulas and language-tagged code blocks, and reject malformed markup or unsupported notation rather than accepting a structural export alone. Keep native UID links navigable and presentation markup out of titles, metadata and relation targets. A presentation-only change must preserve declarations, identifiers, metadata, parent links and normative meaning; syntax highlighting is not evidence of code conformance.

Check that every condition limiting a guarantee is stated or explicitly incorporated in normative LLR scope. Where an LLR delegates operation-specific preconditions, check that the software specification states them normatively and preserves the required capability, supported contexts and guarantees. Reject an exception introduced only through RATIONALE, SOURCE, COMMENT or explanatory TEXT. Keep conditions on numerical-result clauses separate from unconditional value meanings, layout conventions and rejection obligations.

Check both directions of scope consistency: mathematical definitions and representation invariants must not depend on computational success, while computed-result guarantees must explicitly state or incorporate the input, computational-arithmetic and iteration preconditions on which they depend. Keep the mathematical effect of removing actually redundant information unconditional. Review each clause rather than applying a blanket exception to a whole node; retain required availability, exactness within scope and independent rejection and failure obligations.

For numerical evidence, establish the applicable input and computational- arithmetic preconditions, including any conditions on intermediate values. Do not infer them from small inputs or successful-looking unchecked execution. Unchecked computational overflow violating those preconditions is not accepted as a successful exact result. Check error detection or rejection only against the obligations that actually require it; do not invent validation of every precondition violation.

Review the meanings of exactness, approximation, inconclusive outcomes, invalid input and numerical limits. Check correspondence between parent and child meanings, beyond the existence of the link.

Keep the approval sequence consistent with the parent rules: DRAFT software specifications can be authored before parent approval; child approval requires the applicable parent approval. Do not make approval of parent wording depend on completed child decomposition or accepted implementation evidence. Resolve the parent's substantive scope decisions while keeping those separate gates explicit.

These semantic properties require human review, appropriate analysis and executable evidence.

0. Publication, traceability and evidence checks
STATEMENT:

Check every @satisfies and @verifies target against an existing SW_SPEC UID, and check that the documented symbol makes the described contribution. Check that implicitly supplied special-member associations identify their class rather than fictitious declarations. Reject duplicate annotations of the same declaration/definition contribution and incidental-use test links.

For a documentation run, export only SW_SPEC UIDs as native Doxygen requirements. Keep HLR/LLR navigation separate from trace endpoints. Check requirement titles, stable StrictDoc UID-resolver destinations, source-comment links, generated reverse associations, and source navigation. Include the relevant test files and enable extraction of their anonymous-namespace, static and package-private contributors; match preprocessing to the documented configuration and check that no association silently disappears through preprocessing or extraction settings. SOURCE references remain provenance rather than formal implementation or test associations.

Review each test's actual checks and the scope stated in its Doxygen comment. Check that short tag descriptions remain complete on the command's physical line and that longer explanations render as coherent paragraphs. Assess all required criteria and applicable contexts even if every specification has a verified link. Doxygen's satisfied/verified indicators measure association presence, not complete coverage, successful execution, reviewed evidence or implementation conformance. Requirement approval and verification acceptance remain separate decisions.

Direct process and conformance-assessment evidence remains associated with its LLR. It does not require a native Doxygen requirement entry or a fabricated interface specification. A justified direct allocation removes the need for a SW_SPEC child without replacing the required evidence. Formal Doxygen implementation and test associations remain at the software-specification level.

Approval of a baseline, completeness of its decomposition, completeness of its code/test associations and successful test execution are separate gates.