---
title: "world-worldbook-compression — Mova code model"
description: "Mova code model of world/src/worldbook.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/compression.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/worldbook.rs.groupant/compression.groupant/>

# world-worldbook-compression

The groupant beside world/src/worldbook.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/worldbook.rs`](https://github.com/ElamurAI/mova-free/blob/main/world/src/worldbook.rs)
- **source SHA-256:** `541583ecec59c642…`
- **covers:** depth follows1-based heads<=Lhops. Stable depth sort; keep[root]=true, keep[child]=keep[head] AND predict(attrs). One surface-index pass reactivates function/negation child of currently kept head. Select forms in source order, normalize punctuation and append period. (bytes 89383–94437)
- **part of:** [world-worldbook](https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/)
- **repository folder:** [`world/src/worldbook.rs.groupant/compression.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/worldbook.rs.groupant/compression.groupant)
- **repository commit:** `48f2e6f74146`

> **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_worldbook_compression_invariants` | world_worldbook_compression_invariants | partial source derived model | [world_worldbook_compression_invariants](#world-worldbook-compression-invariants) |
| `world_worldbook_compression_resource_cost` | world_worldbook_compression_resource_cost | partial source derived model | [world_worldbook_compression_resource_cost](#world-worldbook-compression-resource-cost) |
| `world_worldbook_compression_representation_join` | world_worldbook_compression_representation_join | partial source derived model | [world_worldbook_compression_representation_join](#world-worldbook-compression-representation-join) |
| `world_worldbook_compression_domain_partition` | world_worldbook_compression_domain_partition | partial source derived model | [world_worldbook_compression_domain_partition](#world-worldbook-compression-domain-partition) |

## Model text


### descriptant

#### world-worldbook-compression

depth follows1-based heads<=Lhops. Stable depth sort; keep[root]=true, keep[child]=keep[head] AND predict(attrs). One surface-index pass reactivates function/negation child of currently kept head. Select forms in source order, normalize punctuation and append period.

##### 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. Compression/outcome/brain/standalone/list/writer/mini helpers tested; build/principles/teacher/gather/site/passenger read chains unexecuted. No surrogate.

### approximant

#### Forward relation

depth follows1-based heads<=Lhops. Stable depth sort; keep[root]=true, keep[child]=keep[head] AND predict(attrs). One surface-index pass reactivates function/negation child of currently kept head. Select forms in source order, normalize punctuation and append period.

Domain: Heads0..L, valid acyclic tree for connectedness, finite in-memory List, no model load.

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

For valid acyclic tree, every kept child had kept parent when activated; content order unchanged. word attrs depth cap4/children3 and relative side/half lose structure.

Cost component: [cost.md](https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/compression.groupant/#cost).

### cost

O(L^2) depth/kids plus O(L log L) sort, O(L*ruleconditions) prediction, O(L+output) memory.

### composition

learned_fact rejects<3word compression; root existence does not ensure grammatical sentence. Tabular predictions overridden by final function pass.

### models

### behavior_complement

Drop-all still keeps roots/direct function words. Empty gives '.'. Function child before a later-restored parent may stay dropped because no revisit: no transitive function closure guarantee.

### reverse_reconstruction

Text admits arbitrary deleted branches with compatible kept attrs, different lists giving same decisions, and whitespace/punctuation variants normalized away.

### world_worldbook_compression_invariants

For valid acyclic tree, every kept child had kept parent when activated; content order unchanged. word attrs depth cap4/children3 and relative side/half lose structure.

### world_worldbook_compression_resource_cost

O(L^2) depth/kids plus O(L log L) sort, O(L*ruleconditions) prediction, O(L+output) memory.

### world_worldbook_compression_representation_join

learned_fact rejects<3word compression; root existence does not ensure grammatical sentence. Tabular predictions overridden by final function pass.

### world_worldbook_compression_domain_partition

Heads0..L, valid acyclic tree for connectedness, finite in-memory List, no model load.

### tests

#### Scoped evidence

Parent selected test names: ["worldbook::wave29_worldlearn::brain_projection_counts_beyond_twelve_and_stops_sources", "worldbook::wave29_worldlearn::compression_root_function_words_and_empty", "worldbook::wave29_worldlearn::list_roundtrip_and_bounded_writer_citations", "worldbook::wave29_worldlearn::mini_zero_budget_keeps_floor_and_first_note"]. 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/worldbook.rs.groupant/#tests). control-worldbook: compiled source mutation failed with exit101; source restored byte-for-byte and15positive tests passed.

Scope bytes [89383,94437) are bound to the shared parent syntax projection and full source hash. Compression/outcome/brain/standalone/list/writer/mini helpers tested; build/principles/teacher/gather/site/passenger read chains unexecuted. No surrogate.
