The model has three normative levels. HLRs express library capabilities and qualities. LLRs express precise software behavior, mathematical obligations, implementation constraints or lifecycle-process obligations without binding them to particular interface signatures. Software specifications define interface contracts for types, operations, protocols or modules.
Only SW_SPEC nodes may contain product code, signatures, pseudocode or code examples, in any field. Their INTERFACE field is normative, as is STATEMENT. Implementation bodies remain in the source tree. RATIONALE, SOURCE and COMMENT are informative. VERIFICATION_CRITERIA describe acceptance evidence and must not silently introduce additional obligations.
SECTION and TEXT nodes organize and explain the model; they are not an additional requirement level. Directory structure and nesting imply no refinement relation.
Use the document's reStructuredText markup consistently in narrative fields, including STATEMENT, INTERFACE, RATIONALE, VERIFICATION_CRITERIA, SOURCE and COMMENT. Keep plain titles, UIDs, metadata choices and relation declarations free of presentation markup. Leave native StrictDoc inline UID links outside code and mathematics so that their targets remain checked and navigable.
Use double-backtick inline literals for programming-language type and member names, parameters, keywords, literals, expressions, exception types and file names or paths referenced in prose. Distinguish a named program operation from an ordinary English word; for example, a word describing a collection of mappings is not automatically a member-name reference. Declaration and example blocks in SW_SPEC use the appropriate code-block language, without nested inline markup inside the block.
Use the inline :math: role for mathematical objects, variables, sets, functions and formulas. Use the .. math:: directive, with a blank line and indented content, for displayed formulas where display aids reading. Mathematics uses supported LaTeX-style notation; do not assume arbitrary LaTeX packages or macros are supported by every export. When a mathematical symbol corresponds to a program parameter's value, keep that correspondence and any entry-value or current-value distinction clear. Formatting must not change quantification, preconditions, postconditions or the meaning of an expression. Natural mathematical prose need not be replaced by formulas.
For a quoted programming-language string literal, the quotation marks delimit the literal and are not part of the denoted output unless the literal itself contains them. Preserve significant spaces and escapes. If a specified string starts or ends with spaces, put the complete quoted literal inside the inline literal markup, or describe the spaces explicitly; do not put bare leading or trailing whitespace immediately inside reStructuredText literal delimiters.
Mathematical notation is available at all three levels. Styling a name or file reference as an inline literal does not permit product code, signatures, pseudocode or code examples in HLRs or LLRs; those remain confined to SW_SPEC. For presentation-only edits, preserve the actual declaration/code characters, identifiers, metadata, links and contract meaning. Check rendered literals and mathematics as well as successful structural export.
Each normative node has one owning definition and an immutable UID. HLRs use PPL-HLR- followed by six decimal digits; LLRs use PPL-LLR- followed by six decimal digits; software specifications use PPL-SPEC- followed by six decimal digits. Identifiers are globally unique, never reused, and carry no component, parent, configuration or release meaning.
Moving or retitling a node preserves its UID. Splitting, merging or changing its level creates new UIDs and retires the old nodes with an explanation. MID, if maintained by StrictDoc, is a tooling identifier; public references use UID. No OWNER field is used.
STATUS is DRAFT, IN_REVIEW, APPROVED or RETIRED. Approval means reviewed content, not complete decomposition, implementation or verification.
COMPONENT identifies exactly one primary semantic subject from the controlled vocabulary. It is not an implementation-directory name or an ownership field. A requirement spanning several areas uses the most appropriate common subject; LIBRARY_WIDE is reserved for actual library-wide obligations.
APPLICABILITY uses the controlled facets in the vocabulary document. VERIFICATION_METHODS selects Test, Analysis, Inspection or Review. Criteria explain what evidence would demonstrate the obligation. Approval requires COMPONENT, APPLICABILITY, VERIFICATION_METHODS, RATIONALE and meaningful VERIFICATION_CRITERIA even though the grammar permits their absence in a draft.
Software specifications require VISIBILITY, which is Public or Internal. LANGUAGE identifies the language of the specified interface rather than its implementation. Its values are CPP, C, Java, OCaml or Prolog. It is required when the contract contains language-specific code, declarations or interface semantics. A language-neutral protocol or artifact contract may omit LANGUAGE only with an explicit justification in COMMENT; its normative INTERFACE must still be complete. Configuration, command-line and installation protocols must not be labelled CPP merely because they concern or are implemented by C++ code. Executable shell source is language-specific code, not a neutral protocol; an interface language outside the current vocabulary requires explicit vocabulary review before it can be used.
INTERFACE remains mandatory for every software specification. A justified LANGUAGE omission does not remove software behavior, its required Specifies links, or its verification obligations, and does not turn it into a directly verified process obligation. Conditional LANGUAGE checks require content review beyond the grammar. HLRs and LLRs contain no code; interface declaration excerpts belong only in software specifications.
An HLR has no refinement parent. LLRs link upward to HLRs using Parent with role Refines. Software specifications link to LLRs using Parent with role Specifies. Reverse display roles are Refined by and Specified by. Approved LLRs and software specifications require at least one parent.
Multiple parents are allowed. Only adjacent levels may be linked in the refinement graph. Maintain upward links only, without duplicate reverse declarations. Parent and child may have different components. Each edge must cover some valid common applicability context; an approved child must have an approved parent in every applicable context.
This parent-approval condition applies when approving a child. It does not prevent drafting software specifications whose parents are still DRAFT. Approval of parent wording does not require its children or their verification evidence to be complete; those coverage and verification decisions remain separate.
Cross-references for shared terminology or contracts do not count as refinement. Links assert intended refinement, not proof that the child set fully discharges the parent. Coverage is reviewed separately.
Use native StrictDoc inline UID links for prose references to other normative nodes, including references that invoke another node's obligations. These links allow target checking and navigation; they do not replace Refines or Specifies parent links or create another refinement level.
State any condition limiting a required guarantee in normative LLR scope or explicitly incorporate the condition there. An LLR may delegate precise operation-specific input and computational-arithmetic preconditions to its software-specification contracts, but must state that conditional scope normatively. The specifications make those conditions precise in STATEMENT or INTERFACE without weakening the required capability or guarantee or excluding a required supported context.
RATIONALE, SOURCE, COMMENT and explanatory TEXT nodes cannot introduce an exception to a normative guarantee. They may explain conditions already stated or explicitly incorporated by that guarantee. A condition attached to a numerical-result clause does not automatically qualify an unconditional value meaning, coefficient-layout convention or separate rejection obligation.
Keep mathematical definitions and representation invariants separate from computed-result guarantees. Value meanings, coordinate conventions and the mathematical effect of removing actually redundant information remain unconditional. State or explicitly incorporate input, computational-arithmetic and iteration preconditions only for the computed-result clauses that depend on them. A leading qualifier must not accidentally weaken an independent definition, layout convention, rejection or failure obligation. Required capabilities and numerical guarantees within their stated scope remain intact.
For unchecked arithmetic, apparent completion does not establish that stated computational preconditions hold. Computational overflow violating those preconditions is not an acceptable successful exact result. Preserve sound positive-result and witness guarantees within their normative scope. The existence of a precondition does not by itself require detection or rejection of its violation; specify those obligations where they are required rather than inferring them for unchecked profiles.
For each LLR, record its verification allocation and justification in COMMENT. Use VERIFICATION_CRITERIA to identify the acceptance evidence needed for each obligation and applicable context.
Obligations allocated to software interfaces or behavior are refined by SW_SPEC nodes. Process obligations may be verified directly through reviewed records of the relevant activities and their results, without an artificial interface specification. A decision that no SW_SPEC child is needed requires review of the actual obligation and its allocation; neither missing children nor a choice of Inspection or Review establishes that decision.
Implementation-wide conformance constraints may require direct source-analysis and inspection evidence even when they introduce no interface contract. Record and justify that allocation explicitly. For example, checking coding subset conformance requires examination of the applicable implementation and generated code; the existence of a coding policy or an assessment document alone is insufficient. Direct verification does not waive the obligation to conform or any actual interface or behavior obligation.
An LLR containing both software-contract and process obligations requires the corresponding SW_SPEC refinement and direct process evidence for their respective parts. Review coverage per obligation and applicable context so that accepting one part does not conceal a gap in another.
Review the allocation before declaring its decomposition coverage complete. When a software specification addresses both a component obligation and applicable cross-cutting obligations allocated to software contracts, maintain the corresponding Specifies links to all of those LLRs. A primary functional parent alone does not establish coverage of the other obligations.
Keep VERIFICATION_CRITERIA as acceptance criteria. Assess evidence against the identified obligations, PPL version, configurations, activity scope, methods and results. Keep execution logs and review history out of requirement and specification fields. SOURCE records provenance; COMMENT explains substantive technical matters and the verification allocation.
Approval of requirement wording, completeness of its allocation and verification completion are separate decisions. A justified direct allocation can complete decomposition coverage without SW_SPEC children; verification is complete only when acceptable evidence has been reviewed for every applicable obligation and context.
Keep software specifications authoritative in StrictDoc. Use Doxygen's @satisfies command in implementation documentation and @verifies in test documentation, naming the exact SW_SPEC UID. These edges associate implementation or verification contributions with interface contracts; they do not add a refinement level or replace Specifies links. Do not target HLRs or LLRs with these tags, and do not copy requirement definitions into product comments using \requirement.
Attach implementation tags to the canonical class or member documentation. A documented declaration identifies the implementation whose definition may be elsewhere; do not duplicate its tags merely because a definition is inline or in a separate source file. Distinct implementation contributors may each carry a tag when their contribution is clear. Associate implicitly supplied special members at the class documentation and explain the allocation rather than adding declarations or fictitious functions solely for traceability.
Add a Doxygen comment where an associated symbol has none. Test tags identify behavior actually checked by that test, with a short contribution description. Keep code and test comments focused on technical behavior and associations, without drafting history, execution logs or current review/conformance status. Keep a tag's short description on the same physical line as its command; place longer explanations in a separate paragraph. Do not tag a test merely because it calls the operation incidentally. A test association is independent of execution, results, completeness of verification and acceptance of the evidence.
For publication, import only SW_SPEC nodes as Doxygen native requirements and preserve their UIDs. Doxygen generates the reverse requirement-to-implementation/test listing; do not hand-maintain a parallel association registry. Source comments link back to the authoritative StrictDoc publication. Use its UID resolver for requirement destinations so document moves do not invalidate links. SOURCE fields remain provenance. Reassess the edges when specifications, implementation or tests change.
The presence of Doxygen satisfied or verified links does not establish that all clauses, applicability contexts or verification methods are covered. Publication and association checks do not establish requirement approval or implementation conformance.
Alternatives within one facet are combined by OR. Distinct facets are combined by AND. Omitting a facet means any valid value for that facet in the contexts addressed by the requirement. ALL stands alone and imposes no facet restriction. Missing APPLICABILITY means incomplete metadata, not ALL.
Contexts can describe a build, a produced interface or link artifact, a template instantiation, the values of an operation's arguments, or relevant lifecycle activities. They are not all configuration switches. Only supported combinations are meaningful.
A requirement about a facility applies to its defined subject and supported use contexts; ALL does not require every optional facility to be enabled in every build. Requirements about absence, rejection or fallback may explicitly select unavailable-feature tokens. Missing evidence never means inapplicable.
An applicability expression must have at least one valid context. Adding a new facet or value requires a documented semantic need and review. Do not encode every compiler, operating system or optimization flag preemptively.
Use the existing authoritative BibTeX entries in doc/ppl.bib, relative to the PPL source root. Website bibliography downloads and rendered entries are generated from this file; make corrections in the source bibliography. The separate doc/ppl_citations.bib records known publications citing the PPL and the research underpinning it.
Consult papers linked from the published bibliography at https://bugseng.com/ppl/documentation/bibliography/. The PPL website also publishes copies of many of these papers under https://bugseng.com/ppl/documentation/. Do not infer a paper's identity from its filename alone.
BIBLIOGRAPHY is a String field. Each nonblank line contains an exact BibTeX key, the literal separator " | ", and a passage locator. Preserve key spelling, case and punctuation. For an adopted definition, theorem or algorithm, cite its section, definition, theorem, algorithm or printed pages. Explicitly label PDF page indices when used. Whole-work citations are allowed for background and must be identified as such; they do not establish the passage supporting an adopted mathematical claim. Verify a locator against the identified work and edition rather than deriving it from another reference or a filename.
Prefer the relevant journal publication when it covers the cited material. Use an earlier conference paper or report only for distinct needed details, and explain that choice in RATIONALE or COMMENT. Check applicable errata and record the corrections relevant to the adopted result. A journal citation alone does not establish that the cited version contains the needed material. Do not substitute editions, keys or passage locators automatically.
Identify governing language, coding and lifecycle standards by their exact document identifiers, editions, amendments and corrigenda, and identify the provisions on which an obligation or applicability decision relies. The journal preference for research results does not replace a governing standard with a secondary publication. Verify the governing texts, compatibility and canonical bibliography entries before approving the affected content. Report unresolved reference questions during review, not in requirement fields. Do not invent keys or silently add an entry from a different bibliography.
BIBLIOGRAPHY is required when the obligation relies on a published result. SOURCE records non-bibliographic provenance, such as a design decision, existing manual section, issue or implementation observation. Source locations identify provenance, not Doxygen satisfaction links or accepted verification. An implementation observation or background-only reference does not replace the required scholarly or normative-reference review.
Write an obligation with a defined subject, conditions and observable or mathematical result. Prefer one independently reviewable obligation per node. Do not claim universal exactness where the configured arithmetic or selected algorithm only provides a conservative approximation or inconclusive answer.
Requirements and specifications describe the product or the actual process obligation. Their rationale, sources and comments contain substantive technical explanations, provenance and verification allocations. Exclude drafting history, progress reports, execution logs, pending-decision lists, review-gap lists and current review or conformance-status commentary from these fields.
Communicate missing coverage, unresolved decisions, reference problems and verification deficiencies in review discussion or chat. Resolve substantive scope and precision decisions before approval. Review approved-content changes and their impact on linked requirements, specifications and evidence. Preserve retired history and stable identifiers.