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

# world-ans-metric

The groupant beside world/src/ans.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:** [`world/src/ans.rs`](https://github.com/ElamurAI/mova-free/blob/main/world/src/ans.rs)
- **source SHA-256:** `d8d94c891e347d2b…`
- **covers:** baseline restricts to requested sections and keeps earliest maximal lemma overlap, unlike event ranking preference. LCS uses one-row DP; rouge_l tokenizes lowercase ASCII alphanumerics, returns zero for empty input, otherwise harmonic LCS precision/recall. rouge_q maximizes over nonblank references. (bytes 64146–65803)
- **part of:** [world-ans](https://md.groupants.elamur.ai/free/en/mova/world/src/ans.rs.groupant/)
- **repository folder:** [`world/src/ans.rs.groupant/metric.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/ans.rs.groupant/metric.groupant)
- **repository commit:** `855da7bd4a7b`

> **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](#forward) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial source model | [wave34-composition](#wave34-composition) |
| **cost** | partial source model | [cost](#cost) |
| **descriptant** | partial source model | [epoch-memory](#epoch-memory) |
| **invariant** | partial source model | [wave34-invariant-correction](#wave34-invariant-correction) |
| **tests** | partial source model | [checks](#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 |
|---|---|---|---|
| `world-ans-metric-behavior-complement` | behavior_complement | partial source model | [behavior-complement](#behavior-complement) |
| `world-ans-metric-reverse-reconstruction` | reverse_reconstruction | partial source model | [reverse-reconstruction](#reverse-reconstruction) |
| `world-ans-metric-token-fiber` | reverse_reconstruction | partial source model | [token-fiber](#token-fiber) |
| `world-ans-metric-bounded-oracle` | constraint_relation | partial source model | [bounded-oracle](#bounded-oracle) |

## Parts

- [world-ans-metric-lcs-row](https://md.groupants.elamur.ai/free/en/mova/world/src/ans.rs.groupant/metric.groupant/lcs-row.groupant/)

## Model text


Partial source model, 2026-10-30. Each typed view shares this source revision, scope, assumptions and checks unless narrowed below. Observation is one finite helper call, not full conversation. Source-derived relations remain hypotheses supported by bounded correspondence; no general semantic proof.

### forward

baseline restricts to requested sections and keeps earliest maximal lemma overlap, unlike event ranking preference. LCS uses one-row DP; rouge_l tokenizes lowercase ASCII alphanumerics, returns zero for empty input, otherwise harmonic LCS precision/recall. rouge_q maximizes over nonblank references.

### invariant

Supplied worlds require valid one-based event sentence anchors and consistent entity/state references. Book retrieval returns unique increasing in-range zero-based indices. Answer helpers do not mutate worlds. Copy gate acceptance establishes neither factual correctness nor a general copyright guarantee. Partial syntax is not semantic analysis.

### cost

Baseline scans eligible sentence lexical expansions. LCS n*m updates, m+1 usize cells. Token allocations scale with bytes.

### composition

Question parsing feeds subject/anchor resolution, then intent dispatch and formatting. Lexical analyses, entity snapshots and P/B records are unmodeled semantic dependencies. Ranking and dispatch share calls: do not double-count costs. Metric evaluation does not establish answer accuracy. Native tests supply World and Frame directly to ranking/why; full parse-to-answer and other intent branches remain outside executed correspondence.

### epoch-memory

Initial wave8 source review and native checks. Preserve ordering, ambiguity and external dependency gaps. No useful approximation metric is supplied for categorical dispatch, so executable Rust approximants remain absent. Tests are not fast surrogates. See root evidence.md for repeated profiles and compiled controls.

### checks

cargo test -p world --lib wave8_models -- --test-threads=1; repeat with --release before -p. Only named native helpers exercised; no live parser/teacher. Fragments use whole-file partial syntax projections plus source byte envelopes, not inferred types, expanded macros or semantic AST.

### behavior-complement

Universe U is admissible supplied inputs paired with categorical observations of scoped relation R below. The source-derived inner exclusion hypothesis rejects observations violating local priorities, thresholds or constructor outputs. Unmodeled branches and dependencies remain unknown; U minus a partial model is not a certified complement of the entire Rust file.

### reverse-reconstruction

B(y)={x in the declared domain:R(x,y)} retains all compatible latent tokens, scores, ties and states. Equal text or score does not identify a unique input/history. This is a relational specification, not an inverse solver. Native finite fibers give scoped evidence, not completeness outside their domain.

### token-fiber

KING and king have same tokens; apostrophe splits unlike bookans words. LCS length loses matching witnesses.

### bounded-oracle

Binary sequences lengths 0..4 give 31*31=961 pairs. Independent subset enumeration checks maximum subsequence length without duplicating DP recurrence.

### wave34-invariant-correction

The older invariant paragraph includes book retrieval and copy-gate statements belonging to another source. Those are retained as historical overreach, superseded here: ans helpers are read-only over supplied World/Frame; event anchors must be valid one-based sentence indices; None has empty text independently of anchor. Ranking tie order and number conversion are scoped local observations. No book retrieval or copy-gate invariant is claimed for this source.

### wave34-composition

baseline is a sibling path and does not invoke LCS. rouge_l tokenizes each string, handles empty streams, consumes lcs-row and converts its integer to harmonic precision/recall. rouge_q filters blank references then maximizes scores. LCS preimages must preserve token order and repeated positions, while tokenization adds further byte-level ambiguity; the score is not semantic answer accuracy.
