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
| component | label | where |
|---|---|---|
| approximant | partial | approximant |
| ast | partial | ../syntax.json |
| cost | symbolic source derived | invariant |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | executed bounded checks | tests |
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.
| id | type | label | where |
|---|---|---|---|
behavior_complement | behavior_complement | partial source derived model | behavior_complement |
reverse_reconstruction | reverse_reconstruction | partial source derived model | reverse_reconstruction |
admission_order | admission_order | partial source derived model | admission_order |
verification_optional | verification_optional | partial source derived model | verification_optional |
value_render | value_render | partial source derived model | value_render |
delegation | delegation | partial source derived model | delegation |
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/