prag-main-files
The groupant beside prag/src/main.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
| component | label | where |
|---|---|---|
| approximant | partial source model | forward |
| ast | partial | ../syntax.json |
| composition | partial source model | composition |
| cost | partial source model | cost |
| descriptant | partial source model | epoch-memory |
| invariant | partial source model | invariant |
| tests | finite observations | checks |
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 |
|---|---|---|---|
prag-main-files-behavior-complement | behavior_complement | partial source model | behavior-complement |
prag-main-files-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
Model text
forward
Read supplied CoNLL-U, lowercase lemmas, default absent POS/tag to X; roles emits one-based role rows. World computes requested document keys, retains whole matching documents, obtains pre-sentence summaries with six recent events, then emits only requested IDs in original order.
Domain: finite supplied valid token/tree/label data or isolated saved run files as scoped above. Observation: returned values, named errors, serialized TSV/JSON and public path composition. Operator: the scoped production functions at the manifest source hash. Approximation semantics: partial source-derived behavioral relation, exact on specified fixtures; no numerical approximation cap.
invariant
Literal headers persist even on empty selection. World restriction equals full-output ID subsequence when document keys are stable and inputs valid. Output preserves input order, while contextual reading sorts document keys and sentence numbers.
cost
O(input bytes + N log N + delegated frame/context work + output bytes); retains filtered words and output buffer. Reading still parses entire input even with --only.
behavior-complement
Future context, cross-document context, dropping earlier sentences merely because their IDs were not selected, and lowercase normalization omitted at this adapter are excluded on the supplied fixtures. Universe: scoped inputs paired with candidate observations. This inner exclusion model concerns code behavior, not just test failure; outside the stated assumptions remains unknown.
reverse-reconstruction
Roles/world are many-to-one observations: original surface casing, unselected documents, many tree details and overwritten output contents cannot be recovered. Compatible inputs must reproduce ordering, selected IDs and context summaries; ID filtering alone does not identify those inputs. Target relation is {(y,x): F(x)=y} within the domain; no implemented complete preimage solver or injectivity claim.
composition
Preserve shared schema class, source voice, document identity/order and transport descriptor across producer/consumer boundaries. File headers and filtering wrap delegated library computation. Test fragments use public APIs; source module exports alone establish availability only.
checks
Five binary and two library wave17_models tests exercise literal options/numbers, Unicode segmentation, supplied CoNLL-U role positions, restricted/full world equality, saved-call metadata, schema/serialization/gate and public role/world wiring. Debug and release are each repeated twice; named outcomes compared. Main duplicate-key first-wins mutation and library transport substitution are compiled rejection controls. See file-root receipts.md.
epoch-memory
2026-10-30: prospective inspection identified false Claude provenance in gate_report. The old binary fails the Codex transport assertion; repair centralizes descriptor without renaming opus APIs. Compatibility accepts interleaved options, duplicate overwrite and --prefixed values; this behavior is intentionally preserved. No optimization or task-score gain claimed.
limitations
Supplied fixtures are finite; no proof of linguistic correctness, complete exported API coverage or live dispatch. Environment-derived model/effort and role-alone selection are not varied. Syntax projection omits macro bodies and semantic resolution; groupant source hash binds exact bytes.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/prag/src/main.rs.groupant/files.groupant/