---
title: "mova-beaver-library — Mova code model"
description: "Mova code model of tools/beaver/src/library.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/tools/beaver/src/library.rs.groupant/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · **Groupants**

This page as HTML: <https://groupants.elamur.ai/free/en/mova/tools/beaver/src/library.rs.groupant/>

# mova-beaver-library

The groupant beside tools/beaver/src/library.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/beaver/src/library.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/beaver/src/library.rs)
- **repository folder:** [`tools/beaver/src/library.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/beaver/src/library.rs.groupant)

> **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 | [Forward approximant](#forward-approximant) |
| **Ast** | partial | `syntax.json` |
| **Composition** | partial | [Composition](#composition) |
| **Cost** | partial | [Cost](#cost) |
| **Descriptant** | present | [Descriptant](#descriptant) |
| **Invariant** | partial | [Invariant](#invariant) |
| **Tests** | finite evidence | `tests.md` |

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

| relation | 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) |

## Model text


### Descriptant

What the Beaver knows of the library and the site, read from existing indexes: works.tsv, authors.tsv, citations.tsv, slugs.tsv and release.tsv, and the h1 of author, topic and concept pages; phrase indexes by first word; the paper page's reference list; the e-print lookup. Source: `tools/beaver/src/library.rs`.

### Forward approximant

load: works -> by_arxiv/by_doi; release+slugs+page file -> page/by_url; first authors -> (surname, year) -> folders; titles of page works (full and short) -> titles; unique mixed-case one-word names -> names; author/topic/concept h1 -> authors/cats with variants.

### Invariant

Only works with a published page source are internal targets; a variant of a topic or concept is the whole name, a multi-word part or a plural/singular of a multi-word name, or a distinctive single word; UD/UPOS spelled-out names are marked ud.

### Cost

About one second on the 2026-11-07 library (63k works, 15k author pages, one pass over 2.7M citation rows for the selected papers).

### Composition

Read by find.rs and run.rs; mirrors the site's deepdive::Lib::load for page discovery.

### Behavior complement

Not done: no network, no writes, no index of its own on disk, no alias table for authors or topics. Evidence status: source-derived model with finite checks.

### Reverse reconstruction

From a phrase entry the folder or page and the phrase words are recoverable; the page's full text is not.

### tests.md


cargo test --release --offline --manifest-path tools/beaver/Cargo.toml (2026-11-07): 9 unit tests and 4 end-to-end tests on a fake site tree. Negative control 2026-11-07: switching off heading masking turned the masking test red; restored. Pilot 2026-11-07 on five real deep dives: 13 inserts, 5 Sol calls, all pages re-attached.

## History


#### 2026-11-07 · document

##### Epoch 2026-11-07 (created)

Created with the Beaver for the operator's ask of 2026-11-07 (too few internal and external links in the research site's paper texts).

## Provenance

- **source SHA-256:** `7bf88be5ec63faaf…`
- **repository commit:** `c755aaec0159`
