Elamur Groupants⌕
☰

math-qworld-cells

The groupant beside math/src/qworld.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
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
context_before_operationcontext_before_operationpartial source derived modelcontext_before_operation
query_selectionquery_selectionpartial source derived modelquery_selection

Model text

descriptant

math-qworld-cells

For each nonconstant quantity, compute inherited owner/thing, update last_owner/last_thing, then choose op. '=' assigns cell=v; '+'/'-' update old-or-zero by ±v; 'r' leaves the cell map immediately unchanged but records the command/log and retains the context changes.

Epoch 2026-10-31: replaced duplicate catalog sentences with concrete exclusions, compatible-antecedent examples and two distinct scoped behavioral views. Source and prior execution evidence are unchanged; this revision ran no tests.

approximant

Scoped forward relation

For each nonconstant quantity, compute inherited owner/thing, update last_owner/last_thing, then choose op. '=' assigns cell=v; '+'/'-' update old-or-zero by ±v; 'r' leaves the cell map immediately unchanged but records the command/log and retains the context changes.

This source-derived relation is partial; no executable percentage surrogate or replacement is supplied.

invariant

Scoped domain and invariants

Aligned quantities/descriptions are required. Original leaf indices remain in commands. Exact Q arithmetic preserves values but noun normalization supplies no dimensional guarantee.

Cost

Context normalization scans strings; cell updates use BTreeMap O(log cells) plus rational costs. Query may scan commands repeatedly and sort for template fallbacks.

models

behavior_complement

A rate command cannot immediately assign/add/subtract a cell. It can affect the owner/thing of later ownerless/unitless quantities, so a no-effect-on-later-state relation is excluded. Const-prefixed quantities are skipped before context updates.

reverse_reconstruction

Set8;Set3 and Set99;Set3 share final cell3. A rate naming owner Sam/thing apple followed by a bare Set3 can share final cells with an explicit Sam/apple Set3, while command histories differ. Final state cannot recover the context-carrying rate.

context_before_operation

If a rate supplies a nonpronoun subject and nonempty thing, last_owner/last_thing change before the r branch. The next empty-subject/unit description inherits these values despite the rate's zero immediate cell delta.

query_selection

ask tries target difference before action difference, class sum, share and state. The target-difference branch uses ? and may return None without trying subsequent branches; State template delegates this entire ordering.

tests

Scoped evidence

Exact overwrite and final state/ratio only; not every query precedence branch.

Named actual source fixtures: qworld::wave28::{exact_world_overwrites_and_labels_duplicates}.

Parent tests.md records commands and paired profiles. No additional coverage inferred from parent fixtures outside this byte range; source-scoped numeric/parse properties remain partial.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/math/src/qworld.rs.groupant/cells.groupant/