Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Situated results, completeness and provenance

Authorities: the corresponding contract is carried verbatim in Authorities — this chapter is pedagogical and does not replace it.

In FormaSL, a computational result is interpreted from the contract producing it and the conditions under which it was obtained. A query answer, an analytical estimate, an inference consequence and a conformance judgment can present similar contents, but perform different semantic functions. To use those results in new operations, the language keeps the qualifications needed to determine what was produced, under which basis, what it depends on and to what extent it is concluded.

The situated results architecture gathers that information in a common semantic interface. That interface is dimensional and open: each operation defines its results’ own content and status, while the dimensions relevant to composition remain available or reconstructible. Each family defines the organization of its results and the corresponding realization.

The contract of a result

A ResultContract determines the meaning and guarantees of what an application can produce. It includes a semantic status contract (StandingContract), a contract for the content (PayloadContract), the obligations relative to the interpretation basis and dependencies, the completeness criterion, the policy for partial results, the admitted semantic outcomes and the binding conditions to assurance artifacts.

Those parts do not need to appear as identical fields in all results. One operation can preserve determined information directly; another can reference it by stable identities. The contract defines which information remains materially necessary to interpret the result and how it can be recovered.

Results keep the reference to the exact revision of the producing contract. When an application is revised, historical results remain interpreted under the revision that produced them. Reusing a name or a data structure in another version does not retroactively change the status, the completion criteria or the guarantees of an earlier result.

Content and semantic status

The content (payload) is the information produced according to the operation: selected records, an estimated value, a derived relation or the findings of an evaluation. The semantic status (standing) determines what that content means and which uses the contract authorizes.

A query can produce a QueryAnswer; an analysis, an AnalyticalValue; an inference, a SemanticConsequence; a validation, a ValidationFinding or a ConformanceJudgment. Other contracts can produce applicability judgments and hypothetical results. Those examples represent an open family of statuses, whose definitions belong to the responsible operations.

Consider the information that a pumping station presents pressure below a determined limit. It can appear as a measured value in an observation, as an element of a query answer, as the conclusion of a rule or as the content of a Claim issued by an operator. The textual similarity of the value does not identify those acts. The query answers a question under a determined basis; the inference expresses a consequence under a theory; the Claim constitutes an attributable assertion.

A computational operation, therefore, produces results under its own contract. The passage of a result to the condition of assertion, decision or observation depends on an appropriate transition, with the authorship, authority or acquisition conditions required.

Identity of results and fragments

Not every temporary value produced during an evaluation needs to acquire independent semantic identity. Identity becomes necessary when a result will be designated by other operations, communicated, revised, used as evidence or associated with an assurance artifact.

In those situations, the contract offers a stable reference to the result or the relevant fragment. A query answer can contain several items with different dependencies; the reference to one of them must respect the identity, equivalence and ordering criteria defined by the query. The occasional position of that item in a runtime list or in a serialized representation only works as a semantic designator if the contract itself recognizes it as such.

Two results with equal values can have different origins, bases and identities. Likewise, the identifier of an execution or the cryptographic digest of a representation does not, by itself, constitute the result’s semantic identity. That information can join the correspondence and verification, according to the applicable contract.

Interpretation bases

The Interpretation Basis identifies the elements determining the result’s meaning. Its dimensions have typed roles: a source revision, a theory or rule, a normative contract, the considered scope and frame, a closure regime, a hypothetical context or a temporal reference can join that basis according to the operation.

A hydraulic pressure analysis, for example, can depend on the revision of a model, the interval of measurements and the admitted system of units. A conformance judgment can also depend on a policy and the revision of the applied restrictions. The result’s basis keeps what is needed to interpret those outputs after the current data, models or policies have changed.

Interpretation basis and specific dependency are different roles. A theory can establish the general regime under which an inference happens and, at the same time, one of its sentences can be a material premise of a determined conclusion. The result can reference the same artifact in both roles without treating them as equivalent.

Temporal qualifications also remain differentiated. The validity time of information, the observation instant, the moment it became known, the decision time and the record of a transaction can be relevant to distinct results. The indication of a source version does not replace those temporal roles.

Typed dependencies

A result can depend on several elements, each for a different reason. FormaSL uses typed dependency roles to recover that relation without reducing it to an undifferentiated list of identifiers.

Among the pertinent roles are source origin or lineage, derivation premise, support or evidence, interpretation dependency, hypothetical dependency, normative basis, transformation or representation lineage, causal dependency and the binding to operational execution records. That family stays open to specialized contracts.

For example, a failure-risk estimate of a pump can use measurements as analytical inputs, a model as interpretation basis and an earlier inspection as additional evidence. A later rule can consume that estimate as a premise, preserving the role by which it participates in the inference. If a judgment depends only on determined measurement intervals, the dependencies can be associated with the pertinent fragments, according to the result contract.

The existence of a dependency does not automatically identify its causal nature. A measurement can precede a failure and still not establish that it caused it. Likewise, circular relations between records do not produce, by their circularity alone, independent evidence or proof. The introduction of causal relations and support guarantees follows the contracts authorizing those meanings.

Provenance, derivation and operational trace

Semantic provenance describes how the content depends on origin information, selections, transformations and other operations under the producing contract. It allows reconstructing a result’s lineage and, when pertinent, the contributions that gave origin to each fragment.

A derivation makes an inference relation explicit according to rules and premises. An operational trace (runtime trace) records aspects of the processing performed by execution mechanisms. Those artifacts can establish useful correspondences, but have distinct functions. A change of execution plan can alter the operational trace without modifying the declarative provenance required by the query’s or inference’s contract.

It is also possible to record the lineage of a result’s representation: when it was serialized, published, projected or transported and through which transformations it passed. That representation history can be relevant to auditing and communication, but does not replace the semantic origin of the assertions or conclusions the representation carries.

The operations’ contracts determine the provenance mechanisms adequate to preserve or reconstruct the material lineage, including references, derivation structures and correspondences between fragments.

Completeness relative to a criterion

Semantic completeness describes whether a result satisfies the completion criterion defined by the producing contract under a determined interpretation basis. It is a property of the result, not only of the ending of an execution.

The contract distinguishes the conceptual roles CompleteUnder(Criterion, Basis), IncompleteUnder(Criterion, Basis, GapOrReason) and CompletenessUndetermined(Criterion, Basis, Reason). The first indicates that completion was established for the identified criterion and basis; the second expresses a determined incompleteness; the third indicates that a result exists, but the available information does not allow establishing whether its completion criterion was satisfied.

A query can completely traverse the records available in a source state and still that source may not contain observations from all expected sensors. Query completeness over its basis and observational coverage of the domain are different criteria. A consumer requiring full coverage must verify it through the appropriate contract, even when the query’s answer is complete under the search criterion.

The introduction of a complete result requires the evidence admitted by the completeness contract. Depending on the operation, that evidence can result from a structural verification, a certificate checked by a validator, an attestation from a trusted producer under determined conditions or a rule deriving completeness from subresults. An indicator emitted by the runtime only has that force when the contract admits it under the corresponding guarantee.

Partial results and execution termination

An execution can end normally, be interrupted, exhaust its gas budget, suffer an external failure or be canceled. Those are processing events. The availability and completeness of semantic results are determined separately.

Not every interrupted execution produces an interpretable partial result. The producer’s partial-results policy establishes whether a usable artifact exists and what its status is. A query can offer a known subset under an explicit incompleteness condition; an analysis can produce an interval or a lower bound; another operation can have no semantic result defined before concluding the required work.

When a partial result exists, it keeps the binding to the execution and the pertinent reason for its incompleteness. Gas exhaustion, in particular, records the limitation of the work performed and does not turn into proof of absence of answers, fixpoint completion or negative judgment.

A consuming operation can use incomplete information when its own contract admits that input. To publish a complete result depending on it, it must establish that the missing part is irrelevant to its completion criterion; otherwise, the dependency on the incompleteness stays visible in the next result.

Absence, unknownness and negative judgments

FormaSL differentiates the states that can arise when an operation does not present an affirmative answer. Their meanings belong to the contracts producing them.

  • Empty (EMPTY) describes a collection without members under the queried criterion and basis.
  • Unknown (UNKNOWN) indicates that the available basis does not determine the requested content or status.
  • Unobserved (UNOBSERVED) indicates absence of pertinent observation under the declared observational basis.
  • Hidden (HIDDEN) indicates unavailability to the observer due to visibility or disclosure conditions.
  • Not applicable (NOT_APPLICABLE) is a concluded judgment situating the target outside the contract’s domain of application.
  • Unresolved (UNRESOLVED) indicates a material semantic condition still without resolution under the operation’s contract.
  • Inconclusive (INCONCLUSIVE) identifies a performed judgment that established neither the foreseen affirmative nor negative position.

Non-existence (NONEXISTENT) and a negative or false result require, in turn, a basis with sufficient scope, closure and authority for the contract to establish them. Not locating an element in a query is not automatically equivalent to demonstrating that it does not exist in the modeled world.

The absence of a qualified proof also has a specific meaning. A search that produced no proof can have exhausted its resources or operated under an incomplete exploration regime. Only an appropriate consequence relation and completion condition allow turning the absence of proof into a judgment about non-implication.

Those distinctions accompany the passage between operations. The result of an execution failure does not automatically acquire the status of a negative semantic judgment; restricted visibility also does not redefine the existence of the origin information. When a disclosure policy needs to hide the difference between inaccessible and nonexistent information, the restriction will be an explicitly governed transformation for that view.

Conflicts and results about incompatible information

Conflicts between Claims, observations or evaluations can join the basis of a computation. A producer materially depending on that conflict preserves its presence and the involved positions, or applies a transformation whose contract specifies how the divergence was treated.

A query can present incompatible assertions. An evaluation can select information according to a declared criterion or produce a result remaining valid for all admissible alternatives. A decision can adjudicate the conflict under a determined authority. Those behaviors have different meanings and bases.

The later result keeps reconstructible what the operation did with the conflict. Choosing a position for a specific purpose does not erase the other Claims nor rewrite their history. The existence of conflict also does not automatically turn the result into a runtime failure or unknownness.

Witnesses, proofs and assurance artifacts

Some results are accompanied by artifacts offering additional information about their production or verifiability. The assurance contract identifies the artifact’s class, the target it refers to, the claimed guarantee and the applicable verifier or trusted basis.

A witness can present an object satisfying a determined condition. A derivation records the application of rules. A proof or a proof object must be interpreted before the formal system and the rules giving it validity. A certificate expresses verifiable guarantees according to a specific claim schema and validator. Traces, provenance, explanations and reports have their own contracts.

A derivation can be turned into a proof when an adequate verification establishes that it satisfies the intended formal rules. A witness can ground a certificate under the appropriate validator. Provenance indicates dependencies; an explanation presents information destined for understanding; a report communicates results. The guarantee attributed to each artifact is determined by its class and by the contract authorizing its use.

FormaSL keeps the bindings between those artifacts and the corresponding results without imposing a single representation of proofs, certificates or explanations on all operations.

Execution, receipts and accountability

An execution occurrence identifies the concrete processing performed. An ExecutionReceipt can record that occurrence’s identity, the realization and provider employed, the input context or snapshot, the resources’ state, the termination condition and references to the outputs and execution records.

The receipt documents the operational event under the emitter’s guarantees and its verifier. The integrity of a receipt can establish that a determined mechanism attested an execution and an output digest; the semantic correctness of the result depends on the verifications and bridges required by the corresponding contract.

Accountability keeps roles such as producing operation, invocation, executor, requesting agent and possible issuer of a later Claim. Those roles can belong to different agents. The computational result does not receive an assertion issuer merely for having been produced, just as the execution’s identity does not replace the identity of a semantically referenciable result.

Communication, use and adoption

A result can be communicated, received and used in new evaluations. Those occurrences add circulation and use history without by themselves changing the semantic status, the basis or the origin of the transported material.

The reception of an inference consequence lets another agent query or use it, according to its admission contract. Adoption as one’s own assertion constitutes a distinct transition: an agent can issue a new Claim about the content, with its own identity, issuer and attribution basis, keeping the relation with the result that motivated it.

The same distinction holds for Claims crossing systems. Retransmission keeps the original act of assertion; a new attributable issuance introduces another Claim. Acceptance, use, communication and re-assertion can coexist as distinct occurrences related to the same content.

Consumption by other applications

A consuming application examines the result according to the expected input’s contract. Static formation is one condition of that passage; admissibility also considers the effective semantic status, the interpretation basis, the required dependencies, completeness, assurance guarantees and disclosure restrictions.

The compatibility between producer and consumer contracts can be established for an unconditional linkage or through a branching selecting admissible outcomes. A particular result can satisfy an input even when the producer contract also admits other outcomes requiring different treatment.

The historically relevant passage keeps the contracts’ revisions and the basis under which it was admitted. A later revision of a consuming operation does not change the meaning of the earlier composition. The continuity contracts determine how to preserve or transform information when a result is projected, aggregated or communicated in another format.

A path of situated results

Consider the monitoring of water quality in a supply network. Sensors and collection teams provide measurements associated with stations, times, procedures and acquisition references. A query selects samples of a determined period; an analysis calculates indicators; an evaluation confronts those indicators with the applicable quality criteria.

The query can be complete for the records present in the selected source revision. However, if a station failed to provide measurements during part of the required period, the queried set may not satisfy the observational coverage contract. An analysis depending on that coverage can return an incomplete result or a result with undetermined completeness, according to the available information and its partiality policy.

The evaluation keeps the relevant dependencies: the data it actually used, the analysis revision, the normative criteria and the coverage condition. If the requirements for a definitive judgment are satisfied, it produces the corresponding outcome under its basis. If material evidence is missing, the result keeps the status of unknownness, absence of observation or inconclusiveness applicable to the case; each condition is interpreted by the responsible contract.

An operator can receive that result and decide to request a new collection. That decision constitutes a governed occurrence, related to the information used. The execution of the collection can generate an operational receipt and, later, a new observation. Each new result keeps its identity, its interpretation basis and its relation to the earlier path.

With that, queries, analyses, evaluations and decisions can use shared information without confusing what was observed, calculated, concluded, communicated or decided. Completeness and provenance accompany the results sufficiently to determine their following uses.

Semantic continuity describes the preservation of material information across operations and representations. Semantic operations and transitions presents the producers and transitions that can use results. Semantic applications and composition develops the contracts between consumers and producers. Contexts, time and spatiality deepens the temporal, contextual and spatial bases that can participate in each result’s interpretation.