mova-hard-cases-main
The groupant beside tools/hard-cases/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
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 |
| ast | partial | syntax.json |
| composition | partial | Composition |
| cost | partial | Cost |
| descriptant | present | Descriptant |
| invariant | partial | Invariant |
| tests | finite evidence | 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 |
reverse_reconstruction | reverse_reconstruction | partial source derived model | reverse_reconstruction |
Model text
Descriptant
CLI of mova-hard-cases: list, wave, lane, guard, harvest, witness, eel, sample, measure, recheck, watch. Source: tools/hard-cases/src/main.rs.
Forward approximant
args -> Config::load -> command -> pretty JSON on stdout or error with nonzero exit.
Invariant
Every command reads one configuration; no command starts a teacher call (wave, harvest and judge read and write files; eel runs the engine once; guard and watch loop until STOP).
Cost
That of the chosen command.
Composition
Binary entry; parent hard-cases.
behavior_complement
No shell, no arbitrary executable arguments: executables come from the pinned configuration. Evidence status: source-derived model with finite checks, not a proof.
reverse_reconstruction
The printed JSON is the command's report; inputs are recoverable from the configuration and lane files.
Tests
cargo test --manifest-path tools/hard-cases/Cargo.toml --offline (2026-11-04: 9 unit tests, two identical runs) Finite fixtures and live samples; not a proof.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/tools/hard-cases/src/main.rs.groupant/