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

Semantic invariants

Normative authority: the integral normative text of this foundation is carried verbatim in Foundations — this chapter is pedagogical and does not replace it.

The semantic invariants establish the distinctions FormaSL preserves when representing information, performing operations and composing results. They give continuity to the world model’s commitments: each element keeps its category, its identity and the qualifications needed for other operations to interpret it correctly.

An invariant defines a property of meaning, not a mandatory storage form. Different pieces of information can use the same physical structure as long as their semantic differences remain recoverable. In the same way, distinct representations can realize the same semantic contract.

The invariants apply to the boundaries where information changes representation, participates in a computation, crosses components or comes to play another role. When there is a category change or the loss of a relevant qualification, the operation’s contract expressly determines that transformation.

Truth judgments, occurrence, authority, relevance, compatibility and conflict resolution use declared information or contracts. External mechanisms can provide them through interfaces with defined guarantees, keeping the basis of each judgment identifiable.

Identity and semantic category

Each piece of information represented in FormaSL belongs to a semantic category, such as Claim, evaluation, observation, decision or derived result. These categories guide how the information can be used. A transformation keeps its origin category or performs an explicitly defined change in the contract.

Semantic identity also remains distinct from names, identifiers, memory addresses, records and serializations. An element can receive another representation without acquiring a new identity. Complementarily, two elements with equal representations can remain semantically distinct.

Consider two crews performing independent inspections of the same railway composition. Both can conclude the equipment is fit for circulation and record equivalent contents. They are two attributable claims, with their own histories and issuers. The equality of contents allows comparing them, but does not turn the two acts of assertion into one.

Assertions, evaluations and communication

A Claim identifies a situated, attributable act of assertion. The asserted content, the issuer and the pertinent qualifications compose its interpretation. The truth of the content and the evaluations made by other agents are semantic questions distinct from the Claim’s existence.

A single Claim can circulate through several systems. Issuance, transmission, reception, acceptance, use and retransmission have different roles. Reception records the information’s arrival at a recipient; acceptance expresses that recipient’s position; use characterizes its participation in another operation. Each stage keeps its identity when it is relevant to the information’s history.

Computation follows the same discipline. A query, inference, aggregation or validation produces a result defined by the performed operation. That result keeps its computational nature. When an agent assumes it as an assertion, a new attributable act arises, related to the computation it originated from.

The agent or component producing a result can also be different from the authority responsible for an assertion or decision. The roles of producer, issuer, executor and authority are determined by their respective contracts.

Context, time and visibility

Semantic information can be qualified by the context in which it applies, the interpretation frame, an agent’s perspective and different temporal roles. The invariants preserve those qualifications across the operations depending on them.

An authorization valid for a railway stretch, for example, can involve a validity interval, an operational jurisdiction and a set of circulation conditions. A query limited to another stretch can omit it from its results without changing its existence. The filter determines the answer’s scope; the record keeps its own semantic status.

Visibility follows the same distinction. Information can be hidden from an agent, not yet observed, unknown or not applicable to the evaluation. FormaSL keeps distinguishable, when represented, the states of falsity, unknownness, absence of observation, hiding, non-existence and non-applicability.

In the treatment of time, each role keeps its meaning even when two times coincide. The observation instant, the time an information becomes known, its validity period, the moment of a decision and the record of a transaction can participate in different operations.

Frames also have their own contracts. The compatibility between two frames indicates a compatibility relation; the transformation between them is an operation with identifiable conditions and results.

The revision of information joins that historical continuity. Changing, replacing or withdrawing a position changes its state or applicability, while the earlier semantic event stays distinguishable from a history in which it never existed.

Conflict and hypotheses

Incompatible assertions, evaluations and observations can coexist in the semantic model. Conflict is information available for query and analysis. An operation that selects, reconciles, revises or adjudicates positions records the corresponding transition and keeps the basis needed to interpret it.

That property also regulates the inferences performed over conflicting information. The conclusions depend on the semantic rules of the operation used; the existence of incompatibility between premises does not authorize conclusions without relation to them.

Hypothetical contexts add another evaluation modality. A scenario can assume a railway line will stay unavailable during part of the day and calculate circulation alternatives. The premises belong to the scenario and the results depending on them keep that dependency.

The later adoption of a hypothetical result in a decision or assertion requires the corresponding semantic transition. The new use keeps the information’s hypothetical origin identifiable. A hypothesis, unknown information and a future forecast play different roles and remain distinguishable.

Governance and authority

FormaSL represents capabilities, permissions, obligations, prohibitions, judgments and decisions as normative relations with their own functions. Their interpretation depends on the applicable policies, authorities, scopes and conditions.

Validation examines a target under a validation contract. Conformance characterizes meeting that contract’s restrictions. Admission determines whether a candidate can cross a determined governed boundary. Authorization describes an agent’s position towards an action or capability. Decision records the attributable act that assumes, selects or adjudicates a result under a declared basis.

These relations can integrate the same operational process. A composition can meet the technical requirements of an inspection, depend on admission to use a determined track and require the maneuver to be conducted by an authorized agent. The technical judgment, the candidate’s admission and the agent’s authorization keep their own grounds and effects.

The model also distinguishes an eligibility evaluation from the historical act establishing a decision. A valid negative result keeps its nature as a judgment; a failure of the evaluation mechanism is a different operational condition.

The semantic authority of a source, the authority of a record, the language’s formation rules and the operational permission to write are separate responsibilities. A permission to write data determines modification capability on the corresponding surface; the issuing of claims and decisions depends on its own authority basis.

Actions, occurrences and observations

States, changes, events, actions and processes have distinct semantic categories. The model makes it possible to represent them and relate them according to their contracts, including when they refer to possible or not-yet-observed events.

A decision can authorize an action, which can be forwarded to an executing system. Execution produces information according to its interface’s guarantees. External events, the effects attributed to a cause and the later observations are related by their own contracts.

For example, sending a command to release a track and confirming the command was processed describe execution stages. A later inspection can produce an observation about the track’s conditions. If an event is treated as an effect of the command, the pertinent causal relation integrates that interpretation.

The invariants preserve these passages: decision, execution, occurrence, effect and observation keep their meanings, even when they appear chained in a single process. The reference to a possible event also keeps its condition of reference until an epistemic or contractual basis establishes what is known about its occurrence.

Provenance, dependencies and reasoning artifacts

The origin of information and the relations connecting it to later results can be relevant to its interpretation. FormaSL distinguishes provenance, derivation, support, causality, temporal precedence, lineage and hypothetical dependency.

These bindings answer different questions. Provenance identifies the origin of information; derivation relates a result to the operations and premises used; support records grounds of an evaluation; causality expresses the appropriate relation between causes and occurrences. Lineage tracks transformations over time.

When a conclusion uses sensor observations, operational rules and earlier evaluations, its material dependencies remain reconstructible according to the operation’s contract. That reconstruction can use references or other support artifacts, respecting each participant’s access conditions. Traceability does not mean unrestricted visibility.

The reasoning artifacts also keep their functions. A derivation presents inference relations; a proof has the obligations proper to a proof object; a certificate declares guarantees under a contract; a trace records aspects of an execution; an explanation organizes information for interpretation. These artifacts can relate to each other without automatically assuming one another’s function.

Types, classification and substitution

FormaSL keeps three levels separate: the formation rules of the language’s constructs, the judgments established by type contracts, and the situated classifications of domain entities.

A Claim about an organization’s category belongs to the semantic world and can be evaluated or contested. The compiler’s judgment about a type belongs to the language’s contract. Each has its own criteria and participates in the corresponding operations.

Specialization, inheritance and subtyping also represent distinct relations. When a type is accepted as a substitute for another, the substitution keeps the semantic guarantees required by the target type’s consumer. Structural similarity can participate in the compatibility analysis, according to the contract, but does not by itself determine substitutability.

The typing judgments deal with the formation and use of constructs. Conformance with policies, admission and authorization belong to the governance operations described earlier.

Semantic source, realization and execution

The invariants follow information through FormaSL’s layers. The .fsl source establishes the authoritative semantic contract and data of the corpus. Its inclusion in the source determines that origin authority, while truth, issuer competence and domain judgments depend on the corresponding contracts.

The .fsp files define realization aspects. A realization binding can select resources, storage mechanisms, execution paths and operational policies. The meaning of the .fsl contract remains identifiable throughout those choices. Static weaving resolves bindings between requirements and providers within that separation.

Execution evaluates previously defined contracts against the available state and resources. Runtime results and storage writes have operational status; incorporation into the authoritative semantic source is its own transition.

FormaSL’s logical representation uses graphs and metagraphs. Its physical realization can employ tables, key-value structures, indexes, native graphs or other substrates. The conformance of those alternatives depends on preserving the semantic contracts, including identity, relations, roles and relevant qualifications. Common computational operations can also be delegated to specialized mechanisms under the same separation of responsibilities.

Bounded computation and completeness

The execution budget, called gas, establishes a deterministic limit of logical computational work. The operation keeps its meaning while the budget bounds the work available to perform it.

An execution can end with a complete result or reach the limit before satisfying its completion conditions. When that difference participates in the interpretation, the result keeps its completeness state. A partial set of results, for example, remains partial when serving as input to another operation.

The budget contract also considers the work actually performed. Charging only an external iteration does not establish a sufficient limit when that iteration can contain combinatorial work without a corresponding bound.

Thus budget consumption, completion, absence of result, false value and absence of proof remain semantically distinct situations when relevant.

Preservation across composition

The invariants hold both for isolated operations and for their composition. A query can feed an inference; the result can participate in a validation and later ground a decision. At each boundary, the categories and qualifications the next operation depends on remain reconstructible.

A transformation’s contract can preserve information, explicitly change its meaning, derive new properties, restrict scope or discard qualifications when that loss is part of the operation. Preservation depends on the required semantic use, and can happen directly, by reference, or through keeping the inputs needed for derivation.

That discipline constitutes the link between the invariants and semantic continuity. The invariants determine which differences FormaSL recognizes and preserves; continuity defines how the relevant information crosses the operations and how its transformations can be reconstructed.