Elamur Groupants⌕
☰

world-family-scoped-rules

The groupant beside world/src/family.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
compositionpartialcomposition
costpartialcost
descriptantpresentdescriptant
invariantpartialinvariant
testspartial bounded parent teststests

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
world_family_scoped_rules_invariantsworld_family_scoped_rules_invariantspartial source derived modelworld_family_scoped_rules_invariants
world_family_scoped_rules_resource_costworld_family_scoped_rules_resource_costpartial source derived modelworld_family_scoped_rules_resource_cost
world_family_scoped_rules_representation_joinworld_family_scoped_rules_representation_joinpartial source derived modelworld_family_scoped_rules_representation_join
world_family_scoped_rules_domain_partitionworld_family_scoped_rules_domain_partitionpartial source derived modelworld_family_scoped_rules_domain_partition

Model text

descriptant

world-family-scoped-rules

D_tale(sc)=rules(sc); D_other=rules(filter scope=general). Add(r,s) appends iff no equal r; Remove deletes all equal; Replace(a,b) maps each a to b at same index/scope.

Modeling epoch 2026-10-31

Prospective source/branch/cost hypotheses were saved externally before source edits. This partial source-derived model retains observed boundaries rather than claiming complete verification. No live channel, exploration, pool/negative-file persistence or state transition evidence; no surrogate.

approximant

Forward relation

D_tale(sc)=rules(sc); D_other=rules(filter scope=general). Add(r,s) appends iff no equal r; Remove deletes all equal; Replace(a,b) maps each a to b at same index/scope.

Domain: Finite scoped Rule lists including duplicates and arbitrary scope strings.

No executable percent surrogate: these categorical/effect observations lack a useful approximation metric. Future supported caps1/2/5/10% need a defined domain/metric and real reference evidence; no error or speed bound is claimed.

invariant

Replace length/order/scopes preserved; Add equality ignores scope; no mutation of caller vector.

Cost component: cost.md.

cost

O(R*A) comparisons/clones, allocated output; no filesystem within in_domain/apply_scoped.

composition

Rule::machine emits domain; scoped_line swaps first field. parse_rules permissive atom parsing is inherited, not validated here.

models

behavior_complement

Adding equal domain rule under general cannot promote it. Replacement proposal scope cannot downgrade existing general rule. Absent remove leaves others unchanged.

reverse_reconstruction

Remove fiber consists of output with any inserted equal-rule entries/scopes. Replace fiber chooses which new positions came from old; Add may be identity or removal of appended final rule in preimage.

world_family_scoped_rules_invariants

Replace length/order/scopes preserved; Add equality ignores scope; no mutation of caller vector.

world_family_scoped_rules_resource_cost

O(R*A) comparisons/clones, allocated output; no filesystem within in_domain/apply_scoped.

world_family_scoped_rules_representation_join

Rule::machine emits domain; scoped_line swaps first field. parse_rules permissive atom parsing is inherited, not validated here.

world_family_scoped_rules_domain_partition

Finite scoped Rule lists including duplicates and arbitrary scope strings.

tests

Scoped evidence

Parent selected test names: ["family::wave29_worldlearn::scoped_change_preserves_position_and_domain", "family::wave29_worldlearn::split_fence_and_label_pair_direction"]. These finite tests touch only the named behaviors, not every statement in this fragment. See parent evidence. control-family: compiled source mutation failed with exit101; source restored byte-for-byte and15positive tests passed.

Scope bytes [48875,50266) are bound to the shared parent syntax projection and full source hash. No live channel, exploration, pool/negative-file persistence or state transition evidence; no surrogate.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/scoped-rules.groupant/