Elamur GroupantsโŒ•
โ˜ฐ

layers-lib-global-math

The groupant beside layers/src/lib.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
admission_orderadmission_orderpartial source derived modeladmission_order
verification_optionalverification_optionalpartial source derived modelverification_optional
value_rendervalue_renderpartial source derived modelvalue_render
delegationdelegationpartial source derived modeldelegation

Model text

descriptant

layers-lib-global-math

Exact calculator and independent-check admission, plus principle/consequence delegation.

Epoch 2026-10-31

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

approximant

Scoped forward relation

Trim query; parse; eval with Limits5seconds; collect substitutions; reject independent check disagreement; return exact value and optional check reason.

Domain and gap

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

invariant

Scoped invariant

Parsing precedes eval; independent check evaluated only after success.

Cost

Calculator parse/eval/independent check delegated with Limits5seconds; no strict bound on all callbacks or complete checking guarantee.

models

Scoped typed relations

behavior_complement

Parse/eval failure or explicit independent-check disagreement excludes a global answer. Absence of an independent check does not exclude acceptance.

reverse_reconstruction

Same exact value admits distinct expressions; failed admission includes parse/eval/check failure. No unique original expression recovery.

admission_order

Parsing precedes eval; independent check evaluated only after success.

verification_optional

No independent check Some does not reject; only Some with !ok rejects.

value_render

Result uses v.exact(), distinct from mlab f64 display.

delegation

principles/consequences call global module, not the calculator.

tests

Evidence scope

Parent selected tests: tests::global_math_first, tests::domain_by_coverage_and_escalation, tests::explain_mode_only_when_asked, tests::garbage_is_not_math, wave30_tests::finite_ties_declines_and_threshold. 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/layers/src/lib.rs.groupant/global-math.groupant/