Elamur Groupants⌕
☰

math-tests-understand

The groupant beside math/tests/understand.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
astpartialsyntax.json
compositionpartialcomposition
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
effect_boundaryeffect_boundarypartial source derived modeleffect_boundary
skip_observationskip_observationpartial source derived modelskip_observation
temporary_resourcetemporary_resourcepartial source derived modeltemporary_resource
validation_scopevalidation_scopepartial source derived modelvalidation_scope

Model text

descriptant

math-tests-understand

Model-gated English fixtures and bounded missing-path guard.

Epoch 2026-10-31: source-derived partial model; prospective hypotheses retained before changes. Existing behavior unchanged except test helper path extraction. New bounded fixtures avoid annotated text/model/corpus/teacher paths. Child scopes use the parent syntax projection; lexical AST has no macro expansion or semantic resolution. Numeric thresholds and adapter differences are observations, not mathematical correctness proofs.

approximant

Forward relation

load resolves path then load_path existence check; missing returns None before Annotator load; present invokes loader and expect. Original tests return on None; frozen TSV read occurs only after successful load.

Domain

Original passing early-return tests are skips, not semantic evidence. New test creates fresh empty temp dir, asserts absent child then removes; no environment mutation.

Executable approximant gap

No useful measured percentage surrogate is supplied for these categorical parse/search/effect observations. Supported future caps are 1%, 2%, 5%, 10% only, requiring an explicit metric and reference comparison. No speed or accuracy guarantee follows.

invariant

Invariants and cost

Original passing early-return tests are skips, not semantic evidence. New test creates fresh empty temp dir, asserts absent child then removes; no environment mutation.

Cost

Metadata check and diagnostic; synthetic test adds directory create/remove. Full original model/annotation/frozen-fixture costs unexecuted.

Allocation failure, deep recursion, malformed public structures and universal numerical bounds are not verified.

composition

Scoped composition

Model-gated English fixtures and bounded missing-path guard.

load resolves path then load_path existence check; missing returns None before Annotator load; present invokes loader and expect. Original tests return on None; frozen TSV read occurs only after successful load.

load_path guards actual Understander load before ans/eval; original full fixtures and suite remain unexecuted. Missing-file guard coverage is not English understanding.

models

Typed relations

behavior_complement

Missing path excludes loading/evaluation/suite read; existing invalid model may panic, untested.

reverse_reconstruction

None compatible with absent paths and other exists=false causes; output cannot recover model state or parsed text.

effect_boundary

Existence precedes model load, frozen TSV follows successful load.

skip_observation

Four original tests may pass by skip; none ran.

temporary_resource

create_dir is exclusive; prior directory causes failure. Negative assertion control may need cleanup.

validation_scope

Only exact wave28_missing_path_skips_before_model_load integration filter ran.

tests

Source execution evidence

Safe command: cargo test -p math --test understand wave28_missing_path_skips_before_model_load -- --exact --test-threads=1

Named outcomes (twice debug, twice release; sorted names equal; exits0):

test wave28_missing_path_skips_before_model_load ... ok

One compiled assertion control for this source: compilation0, false expectation test101, exact byte restore, focused positive rerun0. These are actual source assertions, not copied implementations or semantic proof. Controls ran before rustfmt-only test-block formatting.

Only actual load_path missing-file branch. Original four English/model/frozen-suite tests excluded.

Strict math lib Clippy reports113 pre-existing production lints. No executable percentage surrogate, speed claim, model/corpus/teacher/GPU/full-school or held-out execution.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/math/tests/understand.rs.groupant/