Elamur GroupantsโŒ•
โ˜ฐ

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

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_worldbook_compression_invariantsworld_worldbook_compression_invariantspartial source derived modelworld_worldbook_compression_invariants
world_worldbook_compression_resource_costworld_worldbook_compression_resource_costpartial source derived modelworld_worldbook_compression_resource_cost
world_worldbook_compression_representation_joinworld_worldbook_compression_representation_joinpartial source derived modelworld_worldbook_compression_representation_join
world_worldbook_compression_domain_partitionworld_worldbook_compression_domain_partitionpartial source derived modelworld_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.

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

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/world/src/worldbook.rs.groupant/compression.groupant/