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

# treebanks-readme

The groupant beside tools/treebanks/src/readme.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
- **status:** partial source bound model
- **source:** [`tools/treebanks/src/readme.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/treebanks/src/readme.rs)
- **source SHA-256:** `9e7132debe8f2da0…`
- **repository folder:** [`tools/treebanks/src/readme.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/treebanks/src/readme.rs.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 | `model.md` |
| **ast** | partial | `syntax.json` |
| **composition** | partial | [Composition](#composition) |
| **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) |
| `heading_hierarchy` | heading_hierarchy | partial source derived model | [heading_hierarchy](#heading-hierarchy) |
| `item_split` | item_split | partial source derived model | [item_split](#item-split) |
| `metadata_first` | metadata_first | partial source derived model | [metadata_first](#metadata-first) |
| `fence_scope` | fence_scope | partial source derived model | [fence_scope](#fence-scope) |

## Parts

- [treebanks-readme-citation-year](https://md.groupants.elamur.ai/free/en/mova/tools/treebanks/src/readme.rs.groupant/citation-year.groupant/)

## Model text


### descriptant

#### Descriptant

parse stores lines, toggles fence state, collects first machine metadata block with first case-insensitive key, then detects ATX/setext/caps/bare changelog outside fence/meta. body ends at next same-or-higher heading or metadata start. items scans paragraphs/lists, bib brace depth capped at 80 lines, and unmarked reference starts after period with year/word/case guards. docs_page strips exact Jekyll markers/front matter and statistics suffix.

##### Epoch 2026-10-31

Prospective source reading identified conditional input alignment, information loss and failure order before tests. Existing production code is retained; added tests use actual helpers. Finite results update this source-bound model, not all parser/corpus semantics.

No executable percentage surrogate has a justified observation metric for these categorical/effectful APIs. Future profiles require metric, domain and real-reference evidence at caps 1/2/5/10%; no higher cap. Syntax is partial lexical Rust projection without macro expansion or semantic resolution.

### approximant

## Forward approximant

parse stores lines, toggles fence state, collects first machine metadata block with first case-insensitive key, then detects ATX/setext/caps/bare changelog outside fence/meta. body ends at next same-or-higher heading or metadata start. items scans paragraphs/lists, bib brace depth capped at 80 lines, and unmarked reference starts after period with year/word/case guards. docs_page strips exact Jekyll markers/front matter and statistics suffix.

### Composition

Child fragments model one narrow helper each; their correctness alone does not establish orchestration.

The containing source wires this scoped relation to its callers. Treeagree proposal→gate→commit and treebanks parse→match→collect→render are actual joins; parsecmp is an independent diagnostic path. The external group model distinguishes these tags.

### catalog

## Typed models for treebanks-readme

Subject: source SHA-256 `c5a5a281432502fb19e16e2351cd5876f307fe244a19a15076495c6ad84213d5`; manifest supplies exact source/byte scope. Domain: admitted states in forward model, nonoverflow arithmetic and successful allocations. Observation: one terminating invocation, except explicitly described file trace. Source-derived partial relations; named finite tests constrain selected cases only. Each entry holds arguments and environment fixed except its stated intervention.

### behavior_complement

Fenced lines cannot become headings; first metadata duplicate wins case-insensitively. However items only skips fence delimiters, so fenced bodies may still become items.

Operator: inner exclusion on admitted domain. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### reverse_reconstruction

Readme retains line texts modulo CR endings, while section/item projections lose whitespace and markers; raw and text item representations define different fibers. Metadata alone cannot reconstruct duplicate keys or full document.

Operator: compatible antecedent relation, retaining ambiguity. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### heading_hierarchy

Setext changelog is promoted to level1; all-caps non-top names become level2; body includes lower-level sections.

Operator: specialized observation relation under the stated fixed inputs. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### item_split

A year line only starts unmarked citation after period, unindented uppercase start, >=6 words, no continuation prefix and no current list marker.

Operator: specialized observation relation under the stated fixed inputs. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### metadata_first

Missing meta key and explicitly empty value both return empty; meta_range retains their structural distinction only with meta vector.

Operator: specialized observation relation under the stated fixed inputs. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### fence_scope

Fence kinds toggle one boolean, not matching delimiter/type/length; no CommonMark conformance claim.

Operator: specialized observation relation under the stated fixed inputs. Evidence: source branch derivation plus tests.md; unexercised branches remain hypotheses. Oracle: evaluate the scoped actual helper on admissible fixtures and compare this observation. No universal proof.

### tests

#### Bounded evidence — 2026-10-31

Source `tools/treebanks/src/readme.rs` at SHA-256 `c5a5a281432502fb19e16e2351cd5876f307fe244a19a15076495c6ad84213d5`. Selected actual-source tests in `treebanks`:

- `readme::tests::metadata_and_sections`
- `readme::tests::metadata_variants`
- `readme::tests::setext_and_caps_headings`
- `readme::tests::reference_items`
- `readme::tests::split_unmarked_citations_in_refs`
- `readme::tests::docs_family`

These names passed twice in debug and twice in release; the complete treebank/comparison slice has 25 target-qualified names and identical sorted outcomes in all four runs. Ten compiled behavior mutations (one per owned source) failed named runtime assertions; exact original/restored SHA-256 equality and positive reruns were checked. Zero assertion-only mutants, zero surviving exploratory mutants, zero production fixes. Fresh raw logs, numeric exits, commands and mutation hashes are external in the wave33 trees receipt set.

##### Scope and gaps

Only named finite assertions cover selected inputs; other branches and invalid-domain behavior remain source-derived. No corpus, network, downloads, annotation model, live teacher, full release build or site execution. The treebanks join is entirely in memory and parsecmp uses a tiny uniquely named temporary directory. Treeagree Registry::load uses the embedded UD registry. Tests are finite CPU observations, not universal semantic proof, title-match quality estimates or corpus accuracy.

### invariant-and-cost

#### Invariant and cost

O(bytes+lines*metadata keys+lines*headings) parse/body/items checks can be quadratic in line/headings counts; bib parse delegated, temporary strings O(bytes). No filesystem effects.

Fenced lines cannot become headings; first metadata duplicate wins case-insensitively. However items only skips fence delimiters, so fenced bodies may still become items.

The complement and specialized catalog constrain preserved coordinates and effect boundaries. Empty/malformed domains are only guaranteed where explicitly admitted. No whole-program cost bound follows from a helper bound.
