Elamur GroupantsโŒ•
โ˜ฐ

mlab-interp-calls

The groupant beside mlab/src/interp.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.

Facts

Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.

Components

componentlabelwhere
approximantpartialapproximant
astpartial../syntax.json
costsymbolic source derivedinvariant
descriptantpresentdescriptant
invariantpartialinvariant
testsexecuted bounded checkstests

Obernants

The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
arity_orderarity_orderpartial source derived modelarity_order
depth_budgetdepth_budgetpartial source derived modeldepth_budget
capture_projectioncapture_projectionpartial source derived modelcapture_projection
output_projectionoutput_projectionpartial source derived modeloutput_projection

Model text

descriptant

mlab-interp-calls

User/builtin/anonymous dispatch, argument arity and frame lifecycle.

Epoch 2026-10-31

Half-open source bytes [31774,37102); bound by parent source hash and scoped byte hash. Model covers only this fragment; parent composition explains joins.

approximant

Scoped forward relation

Named user wins builtin; builtin fault increments first numerical result; anonymous functions zip args to params over captured values; user frame executes then collects requested outputs.

Domain and gap

Source-generated states within resource limits. Categorical relation has no executable percent surrogate.

invariant

Scoped invariant

Excess user inputs precede excess outputs, then depth.

Cost

Argument/capture cloning plus body/builtin costs; depth at most256 for admitted returned calls, with saved frames and pooled VM state. No total runtime bound.

models

Scoped typed relations

behavior_complement

Excess inputs exclude entering a user frame; excessive outputs precede depth checks. User-name match excludes builtin execution. Anonymous capture excludes parameters from copied free variables.

reverse_reconstruction

Output vector admits multiple functions and arguments; requested output count and definitions restrict the preimage but do not recover discarded locals.

arity_order

Excess user inputs precede excess outputs, then depth.

depth_budget

enter increments and rejects >256 while restoring count.

capture_projection

Captured free values are creation-time snapshots; missing parameters remain undefined.

output_projection

Collect at most max(nargout,1); missing required output errors, optional missing first output stops.

tests

Evidence scope

Parent selected tests: wave30_parse_runtime_and_output_state, wave30_bounded_state_and_fallback, parse_error_runs_nothing. This fragment shares parent syntax and finite checks; no separate test count or complete fragment coverage claim. Assertion-control association and unexecuted paths are in parent tests.md and source-test-map.json.

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/mlab/src/interp.rs.groupant/calls.groupant/