Elamur GroupantsโŒ•
โ˜ฐ

roundtrip-world

The groupant beside tools/roundtrip/src/world.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
approximantpartialmodel.md
astpartialsyntax.json
compositionpartialComposition
costpartialinvariant-and-cost
descriptantpresentdescriptant
invariantpartialinvariant-and-cost
testsbounded checkstests

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
global_local_linksglobal_local_linkspartial source derived modelglobal_local_links
dedup_projectiondedup_projectionpartial source derived modeldedup_projection
pronoun_tiespronoun_tiespartial source derived modelpronoun_ties
sentence_xorsentence_xorpartial source derived modelsentence_xor

Parts

Model text

descriptant

roundtrip-world

2026-10-31 prospective epoch retained externally before edits.

encode_by globalizes sentence-local links, records empties, deduplicates Fact key strings, registers role entities and remaps links through kept indices. Pronoun class uses count then earliest occurrence. decode emits one frame/event with attributes on first mention and optional refer; residual patches/inserts/XOR starts reconstruct sentence-local frames.

No annotator/model loading, live corpus, full suite, teacher, GPU or persistent-learning evidence. No executable percentage surrogate: categorical codecs/effects need a useful metric before future caps 1/2/5/10%.

Exact recovery with residual is a diagnostic codec observation. It is not evidence of normal generative equivalence, semantic understanding or persistent learning. Production source is preserved; only isolated tests are appended where needed.

approximant

Forward relation

encode_by globalizes sentence-local links, records empties, deduplicates Fact key strings, registers role entities and remaps links through kept indices. Pronoun class uses count then earliest occurrence. decode emits one frame/event with attributes on first mention and optional refer; residual patches/inserts/XOR starts reconstruct sentence-local frames.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Composition

Source children delimit real function scopes, sharing syntax. Real pipeline joins R4 frame reconstruction to Realizer then R3 tree script and R2 token decode; report consumes aggregated tally. Independent path/CLI branches are not fictitious codec callers.

catalog

behavior_complement

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

Repeated Fact keys cannot create extra world events; Event repetitions remain separate. decode_plain never restores next/quoted by itself. Dedup key is a formatted subset, not injective full-frame identity or logical equivalence.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

reverse_reconstruction

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

For encoder-produced residual and matching decoder flags, decode_exact(w,r,nsents) witnesses original sentences. World alone identifies many histories differing in repetition, mention pronouns, attributes, sentence boundaries and next links; no unique original or persistent knowledge state follows.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

globalize adds sentence offset to quote/cause/next/link; localize uses wrapping_sub. Valid sentence-local indices and nonoverflowing totals are required for intended coordinate interpretation.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

dedup_projection

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

fact_key includes kind/verb/neg/role ids/frame attrs/oblique ids but omits TAM, pronouns, links and mention modifiers. Distinct facts may collide; inserts preserve original frames regardless.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

pronoun_ties

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

Pronoun classes count kept role mentions only, ties earliest observed; refer additionally requires recency, unique role identity, empty attrs and resolver agreement unless unresolved own pronoun.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

sentence_xor

Subject: roundtrip-world, source hash 46d4429a5127b1a462d90e5d350a0f440d440a6781edeab42a01d3bf124a3675; transition observation.

decode starts is heuristic link grouping; R4 toggles symmetric difference with original starts, inserts recover removed frames, empties restore zero-frame sentences. nsents is external required input.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.

Status: partial source-derived model.

tests

Native evidence

17 exact named checks total (16 library, one CLI helper), each twice debug and twice release, numeric exits zero and sorted outcomes identical. Native metadata and raw receipts are in the external wave32 rt_core run directory. No optional model tests execute. lib.rs has compile/representation evidence only.

Four compiled production controls alter class precedence, Block grouping, world boundary XOR and frame lemma patching. Each fails its named runtime assertion (exit101), restores exact source SHA256 and passes restored check (exit0). No assertion-only mutants, survivors or bug repairs. These controls do not establish complete coverage.

Two fresh syntax projections agree for each of nine sources. Production bytes are preserved as exact base prefixes. Format only appended test modules before final native receipts. CLI spec helper errors precede any reader; actual model-loading pipeline is excluded.

invariant-and-cost

Invariant and cost

Repeated Fact keys cannot create extra world events; Event repetitions remain separate. decode_plain never restores next/quoted by itself. Dedup key is a formatted subset, not injective full-frame identity or logical equivalence.

For encoder-produced residual and matching decoder flags, decode_exact(w,r,nsents) witnesses original sentences. World alone identifies many histories differing in repetition, mention pronouns, attributes, sentence boundaries and next links; no unique original or persistent knowledge state follows.

Let F frames, E entities, Q quote links, B cloned payload bytes, S=nsents and Z=r.empties.len(). Ordered maps add logarithmic lookups; starts can scan O(F^2*(Qmax+1)); decode_in position searches can be quadratic. decode_exact additionally scans the linear empties vector for each requested sentence: O(S*Z+S) time and O(S) output vector storage, independent of F. For S all-empty sentences, F=E=Q=0 and Z=S, yet contains performs S(S+1)/2 equality checks and emits S empty vectors. Deep frame/entity clones add B and recursion cost; no fixed capacity or allocation guarantee.

Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.

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