---
title: "world-family-scoped-rules — Mova code model"
description: "Mova code model of world/src/family.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/scoped-rules.groupant/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · **Groupants**

This page as HTML: <https://groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/scoped-rules.groupant/>

# 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

- **kind:** groupant_fragment
- **status:** partial source bound model
- **source:** [`world/src/family.rs`](https://github.com/ElamurAI/mova-free/blob/main/world/src/family.rs)
- **source SHA-256:** `1adc6d432b9de7ea…`
- **covers:** 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. (bytes 48875–50266)
- **part of:** [world-family](https://md.groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/)
- **repository folder:** [`world/src/family.rs.groupant/scoped-rules.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/family.rs.groupant/scoped-rules.groupant)
- **repository commit:** `855da7bd4a7b`

> **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](#approximant) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial | [composition](#composition) |
| **cost** | partial | [cost](#cost) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | [invariant](#invariant) |
| **tests** | partial bounded parent tests | [tests](#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](#behavior-complement) |
| `reverse_reconstruction` | reverse_reconstruction | partial source derived model | [reverse_reconstruction](#reverse-reconstruction) |
| `world_family_scoped_rules_invariants` | world_family_scoped_rules_invariants | partial source derived model | [world_family_scoped_rules_invariants](#world-family-scoped-rules-invariants) |
| `world_family_scoped_rules_resource_cost` | world_family_scoped_rules_resource_cost | partial source derived model | [world_family_scoped_rules_resource_cost](#world-family-scoped-rules-resource-cost) |
| `world_family_scoped_rules_representation_join` | world_family_scoped_rules_representation_join | partial source derived model | [world_family_scoped_rules_representation_join](#world-family-scoped-rules-representation-join) |
| `world_family_scoped_rules_domain_partition` | world_family_scoped_rules_domain_partition | partial source derived model | [world_family_scoped_rules_domain_partition](#world-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](https://md.groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/scoped-rules.groupant/#cost).

### 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](https://md.groupants.elamur.ai/free/en/mova/world/src/family.rs.groupant/#tests). 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.
