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

# mova-elephant-main

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

| 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

The elephant command line: the store (init, add, retract, tamp, view, status, compare, lists, plan, reprogram, suspects), English (ask, serve, client) and the loop (work, work-summary). Source: `tools/elephant/src/main.rs`.

### Forward approximant

Dispatch on the arguments; writing store commands and work take STORE/writer.lock; serve and work hold their own singleton locks.

### Invariant

Two writers never act on one store at once.

### Cost

As the commands it runs.

### Composition

Parent: elephant.

### Behavior complement

Parses arguments only; no behaviour of its own beyond dispatch and locks. Evidence status: source-derived model with finite checks, not a proof.

### Reverse reconstruction

The argv names the command.

### Tests

#### Checks

Exercised by the probes of 2026-11-06 (init, add, tamp, view, compare, suspects, ask, serve, client).
These are finite fixtures and measurements; not a proof.

## History


#### 2026-11-06 · document

##### Epoch 2026-11-06

First model, written with the source (the Elephant made incremental and an animal on Mova).

## Provenance

- **source SHA-256:** `efdff43da40eeac0…`
- **repository commit:** `f55191f0d47f`
