FORMA / FormaSL

A language to represent and operate.

FormaSL declares the domain, records statements and distinguishes queries, inference, analysis, transformation and decisions. Here are its mechanisms and documented examples.

01 / Types, relations and ClaimsFORMA

Declare the domain

Types define categories. Relations specify the roles participants may occupy. Claims record attributable acts of assertion. The language keeps these responsibilities separate.

01type
02relation
03assert claim
04match
02 / Reference codeFORMA

See the contract in source form

These examples illustrate declarations, queries, rules and transformations from documented files. They are excerpts, not executable code in this browser.

FORMA / .FSLIllustrative example · Does not run FormaSL
examples/F02-nary-semantic-roles/canonical.fsl
module semantic_roles {
    type Agent
    type Artifact
    type Project
    type Environment

    relation Assignment {
        role assignee: Agent
        role artifact: Artifact
        role project: Project
        role environment: Environment
    }

    assert claim a1 : Assignment(
        assignee: $alice,
        artifact: $dataset,
        project: $atlas,
        environment: $production
    ) { by : $registry }
}
CONCEPTUAL DEMONSTRATION

Four roles. One relation.

Assignment brings four typed participants into one occurrence. A Claim records the attributable statement.

Illustrative example · Does not run FormaSL
03 / FormaSL operation familiesFORMA

Operations with distinct meanings

match queries relations; rule and infer derive consequences; analyze computes results and models; transform constructs new structures; validate, admit, authorize and decide govern criteria and responsibility; scenario and composition support hypothetical evaluation and controlled combination.

type / relation

Define categories and relation roles.

assert claim

Introduce an identifiable attributable statement.

match

Query patterns, paths and aggregations.

rule / infer

Derive consequences under declared theories.

analyze

Run analysis, statistics and models, including graph algorithms and GNNs.

transform

Construct structures from declared correspondences.

validate / admit

Evaluate criteria and govern admission.

authorize / decide

Keep authorization distinct from accountable decisions.

scenario

Evaluate hypothetical conditions.

composition

Combine operations with explicit dependencies.

04 / Execution and limitsFORMA

From source to evaluation

Source code can be checked and inspected before an operation is run. A budget called gas bounds logical work. Incomplete execution is not the same as a false conclusion. A decision does not mean an external action took place.

checkCheck
inspectInspect
realizeBind
runEvaluate

View technical source ↗