Mental model
FormaSL keeps several distinctions that are easy to collapse in an ordinary data model. Keeping them separate makes the result of a check or run interpretable.
Source authority and realization are different planes
.fsl semantic source: vocabulary, claims, applications, compositions
.fsp realization source: explicit bindings for named applications or stages
A realization plan is not a configuration override for a semantic program. The
plan must bind against the exact checked basis selected by the .fsl source; a
revision mismatch or an unknown target is rejected. Binding a plan does not
execute an external provider.
A claim is an attributable assertion, not truth
module mental_model {
type Name
relation Greets {
role greeter: Name
role greeted: Name
}
assert claim greeting : Greets(greeter: "world", greeted: "formasl") { by : $doc }
}
The source says that issuer $doc asserted the Greets occurrence. It does
not establish that the occurrence is true outside the program, and it does not
turn a later query answer into a new claim. Source claims and derived
consequences have different provenance and different uses.
Check, inspect, run, and realize have different jobs
source inputs
│
├── check ───► CheckedProgram or typed diagnostics
│ │
│ ├── inspect ───► curated declarations / claims / applications / subtypes
│ │
│ ├── run ───────► typed application outcomes under explicit gas
│ │
│ └── realize ───► exact FSP bindings or typed diagnostics
│
└── no command here writes an external world or rewrites source claims
- Check accepts or rejects the full explicit source set. It does not prove that every admitted application has a complete reference execution bridge.
- Inspect is a structured projection of a checked program, not an internal debug dump.
- Run evaluates selected applications and preserves their result standing: complete, rejected, resource exhausted, or unsupported are not synonyms.
- Realize validates exact bindings. It is not provider execution, persistence, or a background scheduler.
Vocabulary comes from the standard library, situated in space
The stdlib/sources/std/ tree ships shared vocabulary modules —
std::forma::* and std::world::* (time, space, party, money, observation,
normative, security, and more). They are ordinary .fsl sources with ordinary
admission rules: pass them explicitly, and import selectively.
std::world::space in particular supplies the spatial referents and
qualitative constitutive laws (Place, Region, SpatialContains,
SpatialOverlaps, …) that situated programs use to say where something
holds, not just that it holds. A claim over a spatial relation is still a
claim — an issuer’s assertion with provenance — and a spatial containment
derived by the module’s own rules is still a derived consequence with its own
provenance. Spatiality changes the vocabulary available to your claims and
queries; it does not change the trust boundary between source authority,
derived consequence, and external fact.
The checker rejects incoherent surface input
Formation errors are errors, not repair requests. For example, a role range
whose lower bound exceeds its upper bound is rejected as MALFORMED_RANGE:
module bad_range {
type N
relation R {
role x: N {
occurs 3..1 counting N
}
}
}
The tool does not exchange 3..1, choose a default, or silently remove the
range. See Errors and troubleshooting for how to act on the typed
diagnostic.
Result standing is part of the result
The following pairs must not be treated as interchangeable:
| Distinction | Why it matters |
|---|---|
| Claim vs. truth | A claim carries an issuer; truth is not manufactured by source syntax. |
| Derived consequence vs. source claim | Rule output is computed under a stated reasoning route and does not rewrite source authority. |
FIXPOINT_REACHED vs. OUT_OF_GAS | A bounded run that did not finish is not a negative answer. |
R3 COMPLETE_UNDER_GOALS vs. witness-budget exhaustion | The existential route reports its completion boundary rather than collapsing it into a Boolean. |
| Validation vs. admission vs. authorization vs. decision | They are distinct application families with distinct typed outcomes. |
| Execution request vs. execution effect vs. observation | The reference runner can record a request or report observation standing without claiming an external effect occurred. |
| Realization binding vs. provider invocation | A plan binds exact capabilities; it does not perform outside work. |
| Text presentation vs. machine JSON | JSON is the integration surface; terminal text is not a wire contract. |
The reference runner is deliberately bounded
Some application families are complete within a defined reference route, some are projections or preparation records, and incorporation has no public semantic bridge. The runner reports this distinction in its typed outcome rather than pretending that all admitted syntax has the same operational meaning. Read Support and limitations before treating a result as a domain decision or an external action.
A useful authoring loop
- Write a small, explicit source set.
- Run
formasl checkand repair the specific diagnostic. - Use
inspectto confirm the checked shape. - Run one named application with an explicit gas budget.
- Request revision-1 JSON before integrating program output elsewhere.
- Add an
.fspplan only when you need explicit capability binding.
The Language guide describes the current surface forms; the Toolchain reference gives exact command applicability and exit behavior.