---
title: "roundtrip-report-ranking — Mova code model"
description: "Mova code model of tools/roundtrip/src/report.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/tools/roundtrip/src/report.rs.groupant/ranking.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/tools/roundtrip/src/report.rs.groupant/ranking.groupant/>

# roundtrip-report-ranking

The groupant beside tools/roundtrip/src/report.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_fragment
- **status:** partial source bound model
- **source:** [`tools/roundtrip/src/report.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/roundtrip/src/report.rs)
- **source SHA-256:** `ad92d6e8baee2f83…`
- **covers:** Equal-set ranking (bytes 12491–13785)
- **part of:** [roundtrip-report](https://md.groupants.elamur.ai/free/en/mova/tools/roundtrip/src/report.rs.groupant/)
- **repository folder:** [`tools/roundtrip/src/report.rs.groupant/ranking.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/roundtrip/src/report.rs.groupant/ranking.groupant)
- **repository commit:** `48f2e6f74146`

> **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` |
| **cost** | partial | [invariant-and-cost](#invariant-and-cost) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | [invariant-and-cost](#invariant-and-cost) |
| **tests** | 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) |
| `zero_denominator` | zero_denominator | partial source derived model | [zero_denominator](#zero-denominator) |
| `equal_set_weight` | equal_set_weight | partial source derived model | [equal_set_weight](#equal-set-weight) |
| `rank_ties` | rank_ties | partial source derived model | [rank_ties](#rank-ties) |
| `format_loss` | format_loss | partial source derived model | [format_loss](#format-loss) |

## Model text


### descriptant

#### Equal-set ranking

2026-10-31 epoch: source scope bytes [12491,13785); Mean costs divide by total set count including zero-sentence sets; Meta rows omitted and remaining keys sorted by descending total_cmp plus key.

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

#### Equal-set ranking

Mean costs divide by total set count including zero-sentence sets; Meta rows omitted and remaining keys sorted by descending total_cmp plus key.

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-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

For Equal-set ranking, excluded transitions violate the stated scoped rule: Mean costs divide by total set count including zero-sentence sets; Meta rows omitted and remaining keys sorted by descending total_cmp plus key. 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-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

Fix outputs and post-state of ranking; compatible antecedents are all scoped inputs/pre-state satisfying: Mean costs divide by total set count including zero-sentence sets; Meta rows omitted and remaining keys sorted by descending total_cmp plus key. 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.

### zero_denominator

Subject: roundtrip-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

per ignores numerator when n=0 and returns positive0; normal token denominator uses max(1), so malformed nonzero items with zero tokens remain visible.

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.

### equal_set_weight

Subject: roundtrip-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

Each set contributes per(bits,sents)/max(set_count,1); absent cell contributes zero implicitly. This is not corpus sentence-weighted averaging.

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.

### rank_ties

Subject: roundtrip-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

Descending total_cmp cost then ordered (Layer,Class) defines ties, including signed zero/NaN supplied externally; finite fixtures do not guarantee nonfinite semantic suitability.

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.

### format_loss

Subject: roundtrip-report-ranking, source hash ad92d6e8baee2f83f1fb90c2fcb7ca638e9312a525c7e3c37857525dd9584899, transition observation.

TSV bits round to1 decimal, chrF to4; examples replace backticks, while set names/tabs/newlines remain unescaped.

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

Mean costs divide by total set count including zero-sentence sets; Meta rows omitted and remaining keys sorted by descending total_cmp plus key.

For C cells and output B bytes, set scans fixed classes/layers plus C; ranked collects O(C) rows and sorts O(C log C), examples sorts each kind map. Output storage O(B); numeric f64 formatting retains rounding/nonfinite behavior from supplied tallies.

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