Glossary
Definitions of core terms across Lema's store, contract syntax, verification pipeline, capability layers, and register VM.
This glossary defines the technical terms used across Lema’s documentation, CLI, API, and store records.
| Term | Meaning | See |
|---|---|---|
| Accepted | An object or record that has passed structural validation, kernel replay, and axiom policy checks and been persisted in the store. | Objects |
| Activity | The lema serve daemon’s ephemeral record of what it served (reads, writes and each job’s transitions), each event attributed to a workspace and an actor, read with activity.list or lema activity. Never stored or replicated. | Server API |
| Actor | (1) In governance (actors.json), a store actor: a registered identity with a bearer token that moves references, records reviews or adds actors. (2) In concurrency (Actor, ActorJournal), a stateful message-passing state machine executed under the actors family. | Records, Primitives |
| Alias | A mutable human-readable name in aliases.json pointing to an immutable 64-hex lema.core/v4 object ID. | Records |
| Artifact | A compiled, self-contained lema.vm-app/v1 execution bundle containing LemaIR bytecode, lema.exec/v2 metadata, and guarantee receipts. | Execution Manifest |
| Assumed | The evidence tier ( Not checked ) covering the trusted computing base (Lean kernel, VM, OS) and explicit theorem premises (DhCommutes, Fermat, CrashIntegrity). | Trusted Base |
| Authoring bundle | An immutable lema.authoring/v2 record preserving the .lema or .lean source inputs, symbolic bindings, and contract selections used to elaborate a module. | Records |
| Axiom policy | The set of foundational axioms (a subset of propext, Quot.sound, Classical.choice above the fixed floor) permitted by a store or lema.policy/v1 record. | Axiom Policy |
| Binding map | An immutable lema.binding-map/v1 record mapping symbolic import names (Received.<alias>) to lema.bundle/v1 IDs. | Records |
| BlockStore | The verified copy-on-write 4 KiB sector file store (Lema.Cap.BlockStore) using alternating LEMABLK1 superblocks and two-barrier commits. | Standard Library |
| Bundle | An immutable lema.bundle/v1 record grouping exported aliases under local member names for downstream import. | Records |
| Capability | An unforgeable, index-addressed authority granted in lema-cap.json (lema.cap-config/v1) and invoked through Prog commands (AppCmd). | Primitives |
| Change report | An immutable lema.change-report/v1 record produced by lema diff that classifies changes between snapshots into seven semantic categories (rename, exports, rebind, substitute, evolve, policy, material). | Records |
| Checked | (1) The evidence tier ( Not checked ) for theorems verified by the Lean 4.34.1 kernel. (2) A lema.contract/v1 selection status ("status": "checked") whose witness proof has been verified by Store::check_witness. | Trusted Base, Records |
| Checkpoint | A self-contained .lemabundle archive (lema.checkpoint/v1) exported by lema export and replayed on import by lema import. | Records |
| Closure | The topologically ordered set of all lema.core/v4 objects transitively referenced (refs) by one or more root objects. | Objects |
| Contract | (1) In .lema syntax, a multi-law specification record (contract Name(...)). (2) In Core, a stateful protocol state machine Contract E R. | Contract Syntax, Program Core |
| Contract selection | An immutable lema.contract/v1 record (select in .lema) binding a contract or law to concrete implementation arguments with status open, checked, or waived. | Records |
| Contract syntax | The Pythonic .lema authoring and review surface (def, law, contract, select) defined in crates/lema-core/src/view.rs. | Contract Syntax |
| Declaration | A lema.core/v4 object ("kind": "declaration") representing a named definition or abbreviation. | Objects |
| Domain | A Layer 0 capability resource scope (crates/lema-cap/src/layer0.rs) owning a handle table, regions, rings, and a shared byte budget (SharedBudget). | Primitives |
| Draft | The untrusted candidate set of canonical objects produced by elaboration before source-free kernel replay admits them into a governed store. | Authoring Rules |
| Elaborate | The sandboxed process of parsing .lema or .lean source, inferring implicit arguments and tactic proofs in Lean 4.34.1, and exporting lema.core/v4 objects. | Authoring Rules |
| Exchange | The composite client capability family (exchange, Lema.Cap.SecretExchange) that executes a pinned TLS 1.3 + HTTP/1.1 + SecretPolicy request-response sub-run. | Primitives |
| Execution record | An immutable lema.exec/v2 store record resolved from a lema.exec-source/v2 manifest. | Execution Manifest |
| Fixed floor | The unconfigurable ban on sorryAx, native_decide (Lean.ofReduceBool, Lean.trustCompiler), unsafe, partial, and user-declared axioms. | Axiom Policy |
| Generation | The monotonically increasing version counter on a project reference in refs.json used for optimistic concurrency control. | Records |
| Guarantee receipt | An immutable lema.vm-guarantee/v1 record certifying that a compiled LemaIR call graph passed static analysis profiles (ConstantTime, SecretFlow.*, NoBigIntPrimitives, and others). | Execution Manifest |
| HALTED latch | A fail-closed marker file (<output>/HALTED or <shared_lock>.HALTED) written when the native sandbox runtime detects a pin mismatch or uncleaned call reservation. | Runtime Configuration |
| Held candidate | A revision Lema Cloud has admitted for a hosted project but not published, because the reference’s policy does not let the pushing account publish (422 review_required). An account that may publish fetches it with lema fetch --revision and pushes it. | Lema Cloud and LemaHub |
| ID | A 64-character lowercase hexadecimal SHA-256 digest computed over a domain separator prefix and canonical JSON bytes. | Objects |
| Idempotency key | A client-supplied token (LEMA-PUBLICATION-v1\0) ensuring retried mutating API calls return the original result without duplicating work. | Server API |
| Implementation | (1) Executable declarations selected by a lema.contract/v1 record. (2) In Core, a handler Impl E F R interpreting abstract effects E into lower-level effects F. | Program Core |
| Kernel replay | Source-free verification of lema.core/v4 objects in a fresh Lean 4.34.1 kernel process (crates/lema-lean-check). | Objects |
| Law | A universally quantified theorem or contract requirement (law name(...) in .lema syntax). | Contract Syntax |
| Layer -1 / Layer 0 / Layer 1 | The three-layer capability architecture: OS host (Layer -1), resource/memory/queue substrate (Layer 0), and LC\x02 wire-framed typed capabilities (Layer 1). | Primitives |
| Ledger | The append-only ledger.jsonl file in the runtime output directory logging reserve, complete, and resolved events for every sandboxed call. | Runtime Configuration |
| Lema Cloud | The hosted Lema store at api.cloud.lema-lang.org that keeps projects’ references and history for invited accounts, re-admitting every pushed revision before publishing it. In a private pilot. | Lema Cloud and LemaHub |
| LemaHub | The read-only, statement-first web view of projects published on Lema Cloud, one static site per published revision, with name search. | LemaHub |
| LemaIR | The typed intermediate representation (lema.ir/v1, crates/lema-ir) compiled from lema.core/v4 declarations and executed by the register VM (crates/lema-vm). | Execution Manifest |
| Namespace | A lema.core/v4 object ("kind": "namespace") encoding a hierarchical name prefix. | Objects |
| Object | An immutable lema.core/v4 JSON document (namespace, external, statement, template, proof, satisfaction, declaration, record, or family). | Objects |
| Obligation | An unproven statement or "status": "open" lema.contract/v1 selection tracked on a lema.revision/v1 record. | Records |
| Open | The initial status ("status": "open") of a lema.contract/v1 selection that has been type-checked and recorded in the store but does not yet have a witness proof. | Records |
| Policy | An immutable lema.policy/v1 record specifying axiom limits, obligation gates, required VM guarantee profiles, protected aliases, and review thresholds for a reference. | Records |
| Project reference | A named branch pointer in refs.json (such as main) binding an active policy, head revision, and generation. | Records |
| Proof | A lema.core/v4 object ("kind": "proof") whose term inhabits a statement object’s proposition. | Objects |
| Realization | A mapping ({"from": "<id>", "to": "<id>"}) in a satisfaction object or lema.contract/v1 record that binds an abstract interface projection to a concrete declaration. | Objects |
| Receipt | The store-persisted verification record proving when and under which axiom footprint and kernel digest an object or VM guarantee was accepted. | Objects |
| Received.* binding | The synthetic namespace through which a module accesses upstream store dependencies declared in bindings or lema.binding-map/v1. | Authoring Rules |
| Region | A Layer 0 budget-charged byte buffer (crates/lema-cap/src/layer0.rs) supporting borrow-checked Slice views and a busy lock during in-flight I/O. | Primitives |
| Release | An immutable lema.release/v1 record sealing a verified revision, snapshot, policy, guarantee receipts, reviews, and compiled lema.vm-app/v1 artifact. | Records |
| Restricted Lean | The deterministic subset of Lean 4 accepted by Lema’s authoring pipeline (total definitions, structures, single inductive families, no unsafe, no partial, no metaprogramming). | Authoring Rules |
| Revision | An immutable lema.revision/v1 commit record linking parent revisions, a lema.snapshot/v2, intent message, and obligation statuses. | Records |
| Ring | A Layer 0 bounded submission/completion queue (Ring, Ring.call) with monotonic ticket identifiers and cancellation fencing. | Primitives |
| Runtime configuration | The lema.runtime-linux/v2 JSON file (runtime.json) configuring host sandboxing, binary SHA-256 pins, and the output ledger directory. | Runtime Configuration |
| Satisfaction | A lema.core/v4 object ("kind": "satisfaction") proving that concrete slot fillings and realizations satisfy a parameterized template object. | Objects |
| Secret bundle | A versioned secret-<version>.bundle file (lema.secret-bundle/v1) created by lema secret bundle that binds raw secret bytes to roles and TLS trust anchors. | Runtime Configuration |
| Serve | The composite server capability family (serve, Lema.Cap.ServeVerified) that runs an inbound TLS 1.3 + HTTP/1.1 + SecretPolicy request-handling sub-run. | Primitives |
| Server | The lema serve daemon listening on a local Unix domain socket and serving the store JSON protocol. | Server API |
| Snapshot | An immutable lema.snapshot/v2 record capturing a project’s exported entries, binding map, authoring bundle, and assets. | Records |
| Store | The content-addressed repository on disk (.lema/store) holding lema.core/v4 objects, receipts, and governance records. | Objects, Records |
| Submit | The API operation (submit / import) that validates and kernel-replays pre-constructed lema.core/v4 objects directly into a store. | Server API |
| Tested | The evidence tier ( Not checked ) for properties validated by static analysis, differential oracle tests, and test vectors. | Trusted Base |
| Waived | (1) A lema.contract/v1 selection status ("status": "waived") carrying a written reason in place of a proof. (2) A revision obligation closed without proof by lema commit --waive KEY=REASON, recorded as {obligation, waiver} in the revision’s discharged array; only an actor listed under the policy’s waive may bring it into a reference. | Records |
| Workspace | A durable, mutable working state inside the store (workspaces.json, lema.workspaces/v1): a snapshot, the revision last committed, and a generation every change advances. default is a project’s own; each agent can have another. Not the Lema Desktop card area, which is the canvas. | Semantic version control |
| Witness | A proof or satisfaction object ID (by) verified by Store::check_witness to discharge a lema.contract/v1 selection or individual contract law. | Records |
Lema v0.3.2 · Updated 29 October 2026 · Version and compatibility