Vocabulary
Built-in phrase
json
{
"id": "integer-greater",
"canonical": "is greater than",
"forms": ["is greater than"],
"category": "integer_relation",
"operation": "greater_than",
"participants": [
{"name": "left", "type": "int64"},
{"name": "right", "type": "int64"},
{"name": "result", "type": "boolean"}
]
}Phrase: is greater than
Type: int64, int64 -> boolean
Operation: greater_than
Failure: a list in either operand produces a type diagnostic.
Phrase implemented by a Stated function
json
{
"id": "doubled-value",
"canonical": "the doubled value of",
"forms": ["the doubled value of"],
"category": "integer_concept",
"operation": "produce",
"participants": [
{"name": "value", "type": "int64"},
{"name": "result", "type": "int64"}
],
"realization": {
"kind": "composed",
"definition": "integer-double",
"bindings": [{"formal": "input", "actual": "value"}]
}
}Phrase: the doubled value of
Type: int64 -> int64
Function: integer-double
Complete function body:
text
Return the sum of the input value and the input value using checked addition.Failure: a result outside int64 returns execution_overflow.
Package rules
- Every phrase declares exact aliases, a category, typed participants, and an operation or function.
- Distinct declarations with the same visible phrase produce a
referencediagnostic. - Function argument bindings use participant names, not word order.
- Every function body is checked when the package loads.
- Missing bodies, recursive call cycles, invalid bindings, wrong result types, and writes to read-only inputs stop compilation.
- Each function call receives new local values and storage.
- Project source cannot add vocabulary declarations.
Deferred case
The package declares hash set storage. Direct execution returns execution_deferred. Go generation returns backend_unsupported.
ALL INSTALLED PHRASES | LIBRARY AUTHORING | INTEGER-DOUBLE SOURCE