---
title: "world-worldbook — 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/"
---
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/>

# world-worldbook

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
- **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…`
- **repository folder:** [`world/src/worldbook.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/worldbook.rs.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** | executed bounded checks | [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_invariants` | world_worldbook_invariants | partial source derived model | [world_worldbook_invariants](#world-worldbook-invariants) |
| `world_worldbook_resource_cost` | world_worldbook_resource_cost | partial source derived model | [world_worldbook_resource_cost](#world-worldbook-resource-cost) |
| `world_worldbook_representation_join` | world_worldbook_representation_join | partial source derived model | [world_worldbook_representation_join](#world-worldbook-representation-join) |
| `world_worldbook_domain_partition` | world_worldbook_domain_partition | partial source derived model | [world_worldbook_domain_partition](#world-worldbook-domain-partition) |

## Parts

- [world-worldbook-brain-projection](https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/brain-projection.groupant/)
- [world-worldbook-compression](https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/compression.groupant/)
- [world-worldbook-book-writing](https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/book-writing.groupant/)

## Model text


### descriptant

#### world-worldbook

build_all parses topic sentences, merges key=(lower subject,predicate,lower text), first attrs plus unique(sourcekey,sentence) cites. principles groups triples of first8 sorted lemmas, >=min distinct first-cite keys and>=2source kinds, clean whole6..35word representative,<=8cites. write ranks support/cites/text and caps notes3/full1/mini. brain_body counts every cited pre-Sources line but emits first12/part. Compression learned depth decisions plus one index-order function-word restoration pass.

##### 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

build_all parses topic sentences, merges key=(lower subject,predicate,lower text), first attrs plus unique(sourcekey,sentence) cites. principles groups triples of first8 sorted lemmas, >=min distinct first-cite keys and>=2source kinds, clean whole6..35word representative,<=8cites. write ranks support/cites/text and caps notes3/full1/mini. brain_body counts every cited pre-Sources line but emits first12/part. Compression learned depth decisions plus one index-order function-word restoration pass.

Domain: Synthetic words/Markdown/list/tempfile outputs only; no corpus/parser/model/teacher/manual/site/full-school execution.

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

Merge order restored by source index after threads;1-based citations/heads, byte-length returns and kb*1024 budget. Valid tree heads required, depth boundedL even cycles. Root kept but one-pass function restoration not fixed point. Topic base first-byte capitalization needs nonempty ASCII-leading text.

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

### cost

Multiple full source scans and frequency maps, delegated parse, up toO(L^2) tree traversals,<=56lemma triples/fact, group/rank sorting and complete Markdown output. Writer compares freshly built citation sets; unchecked counters/budget arithmetic, no timing claim.

### composition

family gather principles(min5)->write->brain_body, count can exceed retained lines. know perception counts unique known gap sources. tabular decisions overridden by grammar; teacher/model files outside tested paths.

### models

### behavior_complement

Shared lemma triples not entailment or independent-source proof. Merge uses text not object. writer pd=false excludes quote; parsed pd flag broadly includes CC BY prefixes, no legal guarantee. mini floor5/main floor10 may exceed byte budgets. Empty compression '.', stands_alone empty true; malformed heads/topic slicing can panic.

### reverse_reconstruction

Compressed output admits deleted subtrees and many decision lists/parses. Markdown loses fact attrs/lemmas/extra cites. Brain body admits arbitrary omitted13th+ lines with same count and sections after Sources. Principle representative admits many shared-lemma support sets.

### world_worldbook_invariants

Merge order restored by source index after threads;1-based citations/heads, byte-length returns and kb*1024 budget. Valid tree heads required, depth boundedL even cycles. Root kept but one-pass function restoration not fixed point. Topic base first-byte capitalization needs nonempty ASCII-leading text.

### world_worldbook_resource_cost

Multiple full source scans and frequency maps, delegated parse, up toO(L^2) tree traversals,<=56lemma triples/fact, group/rank sorting and complete Markdown output. Writer compares freshly built citation sets; unchecked counters/budget arithmetic, no timing claim.

### world_worldbook_representation_join

family gather principles(min5)->write->brain_body, count can exceed retained lines. know perception counts unique known gap sources. tabular decisions overridden by grammar; teacher/model files outside tested paths.

### world_worldbook_domain_partition

Synthetic words/Markdown/list/tempfile outputs only; no corpus/parser/model/teacher/manual/site/full-school execution.

### tests

#### Finite actual-code evidence — 2026-10-31

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"]

Selected CPU command: CARGO_BUILD_JOBS=2 CARGO_TARGET_DIR=ISOLATED_TARGET cargo test --offline --locked -p world --lib --example retention_probe [--release] wave29_worldlearn -- --test-threads=1

15 selected cases passed twice debug and twice release with identical sorted names/outcomes, exits0. control-worldbook: compiled source mutation failed with exit101; source restored byte-for-byte and15positive tests passed. No live teacher, corpus, state activation, GPU, or full-school run. Temporary synthetic files use unique process-id paths and are removed after passing tests.

Compression/outcome/brain/standalone/list/writer/mini helpers tested; build/principles/teacher/gather/site/passenger read chains unexecuted. No surrogate.

Source SHA256: c5e5076ae351ed730c39ff7c283374fa0592a62af03fe7f86b09a28c3f984a67. Syntax generated independently twice and compared; lexical only, no semantic proof or CUDA compilation. Strict whole-crate Clippy was not repeated merely to reproduce existing dependency/source lints; Cargo warnings retained in receipts.
