Elamur Groupants⌕
☰

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

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
approximantpartialmodel.md
astpartialsyntax.json
compositionpartialComposition
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
heading_hierarchyheading_hierarchypartial source derived modelheading_hierarchy
item_splititem_splitpartial source derived modelitem_split
metadata_firstmetadata_firstpartial source derived modelmetadata_first
fence_scopefence_scopepartial source derived modelfence_scope

Parts

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:

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+linesmetadata keys+linesheadings) 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.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/tools/treebanks/src/readme.rs.groupant/