Skip to content

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.

TermMeaningSee
AcceptedAn object or record that has passed structural validation, kernel replay, and axiom policy checks and been persisted in the store.Objects
ActivityThe 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
AliasA mutable human-readable name in aliases.json pointing to an immutable 64-hex lema.core/v4 object ID.Records
ArtifactA compiled, self-contained lema.vm-app/v1 execution bundle containing LemaIR bytecode, lema.exec/v2 metadata, and guarantee receipts.Execution Manifest
AssumedThe evidence tier ( Not checked ) covering the trusted computing base (Lean kernel, VM, OS) and explicit theorem premises (DhCommutes, Fermat, CrashIntegrity).Trusted Base
Authoring bundleAn immutable lema.authoring/v2 record preserving the .lema or .lean source inputs, symbolic bindings, and contract selections used to elaborate a module.Records
Axiom policyThe 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 mapAn immutable lema.binding-map/v1 record mapping symbolic import names (Received.<alias>) to lema.bundle/v1 IDs.Records
BlockStoreThe verified copy-on-write 4 KiB sector file store (Lema.Cap.BlockStore) using alternating LEMABLK1 superblocks and two-barrier commits.Standard Library
BundleAn immutable lema.bundle/v1 record grouping exported aliases under local member names for downstream import.Records
CapabilityAn unforgeable, index-addressed authority granted in lema-cap.json (lema.cap-config/v1) and invoked through Prog commands (AppCmd).Primitives
Change reportAn 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
CheckpointA self-contained .lemabundle archive (lema.checkpoint/v1) exported by lema export and replayed on import by lema import.Records
ClosureThe 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 selectionAn 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 syntaxThe Pythonic .lema authoring and review surface (def, law, contract, select) defined in crates/lema-core/src/view.rs.Contract Syntax
DeclarationA lema.core/v4 object ("kind": "declaration") representing a named definition or abbreviation.Objects
DomainA Layer 0 capability resource scope (crates/lema-cap/src/layer0.rs) owning a handle table, regions, rings, and a shared byte budget (SharedBudget).Primitives
DraftThe untrusted candidate set of canonical objects produced by elaboration before source-free kernel replay admits them into a governed store.Authoring Rules
ElaborateThe 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
ExchangeThe 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 recordAn immutable lema.exec/v2 store record resolved from a lema.exec-source/v2 manifest.Execution Manifest
Fixed floorThe unconfigurable ban on sorryAx, native_decide (Lean.ofReduceBool, Lean.trustCompiler), unsafe, partial, and user-declared axioms.Axiom Policy
GenerationThe monotonically increasing version counter on a project reference in refs.json used for optimistic concurrency control.Records
Guarantee receiptAn 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 latchA 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 candidateA 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
IDA 64-character lowercase hexadecimal SHA-256 digest computed over a domain separator prefix and canonical JSON bytes.Objects
Idempotency keyA 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 replaySource-free verification of lema.core/v4 objects in a fresh Lean 4.34.1 kernel process (crates/lema-lean-check).Objects
LawA universally quantified theorem or contract requirement (law name(...) in .lema syntax).Contract Syntax
Layer -1 / Layer 0 / Layer 1The three-layer capability architecture: OS host (Layer -1), resource/memory/queue substrate (Layer 0), and LC\x02 wire-framed typed capabilities (Layer 1).Primitives
LedgerThe append-only ledger.jsonl file in the runtime output directory logging reserve, complete, and resolved events for every sandboxed call.Runtime Configuration
Lema CloudThe 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
LemaHubThe read-only, statement-first web view of projects published on Lema Cloud, one static site per published revision, with name search.LemaHub
LemaIRThe 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
NamespaceA lema.core/v4 object ("kind": "namespace") encoding a hierarchical name prefix.Objects
ObjectAn immutable lema.core/v4 JSON document (namespace, external, statement, template, proof, satisfaction, declaration, record, or family).Objects
ObligationAn unproven statement or "status": "open" lema.contract/v1 selection tracked on a lema.revision/v1 record.Records
OpenThe 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
PolicyAn immutable lema.policy/v1 record specifying axiom limits, obligation gates, required VM guarantee profiles, protected aliases, and review thresholds for a reference.Records
Project referenceA named branch pointer in refs.json (such as main) binding an active policy, head revision, and generation.Records
ProofA lema.core/v4 object ("kind": "proof") whose term inhabits a statement object’s proposition.Objects
RealizationA 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
ReceiptThe store-persisted verification record proving when and under which axiom footprint and kernel digest an object or VM guarantee was accepted.Objects
Received.* bindingThe synthetic namespace through which a module accesses upstream store dependencies declared in bindings or lema.binding-map/v1.Authoring Rules
RegionA 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
ReleaseAn immutable lema.release/v1 record sealing a verified revision, snapshot, policy, guarantee receipts, reviews, and compiled lema.vm-app/v1 artifact.Records
Restricted LeanThe 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
RevisionAn immutable lema.revision/v1 commit record linking parent revisions, a lema.snapshot/v2, intent message, and obligation statuses.Records
RingA Layer 0 bounded submission/completion queue (Ring, Ring.call) with monotonic ticket identifiers and cancellation fencing.Primitives
Runtime configurationThe lema.runtime-linux/v2 JSON file (runtime.json) configuring host sandboxing, binary SHA-256 pins, and the output ledger directory.Runtime Configuration
SatisfactionA lema.core/v4 object ("kind": "satisfaction") proving that concrete slot fillings and realizations satisfy a parameterized template object.Objects
Secret bundleA 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
ServeThe composite server capability family (serve, Lema.Cap.ServeVerified) that runs an inbound TLS 1.3 + HTTP/1.1 + SecretPolicy request-handling sub-run.Primitives
ServerThe lema serve daemon listening on a local Unix domain socket and serving the store JSON protocol.Server API
SnapshotAn immutable lema.snapshot/v2 record capturing a project’s exported entries, binding map, authoring bundle, and assets.Records
StoreThe content-addressed repository on disk (.lema/store) holding lema.core/v4 objects, receipts, and governance records.Objects, Records
SubmitThe API operation (submit / import) that validates and kernel-replays pre-constructed lema.core/v4 objects directly into a store.Server API
TestedThe 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
WorkspaceA 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
WitnessA 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