Elamur GroupantsโŒ•
โ˜ฐ

roundtrip-class-classify

The groupant beside tools/roundtrip/src/class.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
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
precedence_partitionprecedence_partitionpartial source derived modelprecedence_partition
scope_preconditionscope_preconditionpartial source derived modelscope_precondition
resource_boundaryresource_boundarypartial source derived modelresource_boundary
observation_projectionobservation_projectionpartial source derived modelobservation_projection

Model text

descriptant

Classification predicate order

2026-10-31 epoch: source scope bytes [6563,8760); First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches.

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

approximant

Classification predicate order

First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches.

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.

catalog

behavior_complement

Subject: roundtrip-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

For Classification predicate order, excluded transitions violate the stated scoped rule: First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches. This is an inner source-derived exclusion under the domain, not a complement of arbitrary unseen runtime behavior.

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-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

Fix outputs and post-state of classify; compatible antecedents are all scoped inputs/pre-state satisfying: First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches. Fields outside this byte scope are held fixed; discarded fields remain ambiguous.

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.

precedence_partition

Subject: roundtrip-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

Tag CD with lemma NOT belongs to Neg unless punctuation; MD with numeric relation is Quantity. Test precedence_and_bits exercises conflicting predicates.

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.

scope_precondition

Subject: roundtrip-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

Classification predicate order requires the coordinate/state assumptions of this fragment; inspect its exact byte range. First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches. Invalid arbitrary state is outside the reconstruction law.

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.

resource_boundary

Subject: roundtrip-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

Classification predicate order: allocations/clones and recursion/scans within this scope are retained. Parent cost bound is conservative for this subroutine: of_word O(B) lowercase plus fixed-list comparisons. lit_bits O(B); perm_bits O(k), O(1) extra state. pos_bits requires n<usize::MAX; floating conversion/log rounding is retained. Dictionary and OnceLock state affect lemma_bits.

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.

observation_projection

Subject: roundtrip-class-classify, source hash 1b8466551077c2f42748e0d08084307cc8bbaff3f62fbe2597eced4b75221f36, transition observation.

Observe only outputs/state produced by Classification predicate order, holding caller state fixed. First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches. Downstream aggregation is not an injective observation of this scope.

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

Scoped evidence

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.

Coverage is limited to this fragment's reached branches; parent tests do not prove every scoped branch.

invariant-and-cost

Scoped invariant and cost

First-match class partition on tag, relation and lowercase lemma; reverse fibers exclude all preceding matches.

of_word O(B) lowercase plus fixed-list comparisons. lit_bits O(B); perm_bits O(k), O(1) extra state. pos_bits requires n<usize::MAX; floating conversion/log rounding is retained. Dictionary and OnceLock state affect lemma_bits.

The parent bound is conservative; unrelated parent effects are excluded from this fragment.

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