Mova0.6 pre-release

Training and rebuilding Mova

Get the data first: train/get-corpus.sh 0.4 downloads the open Mova corpus 0.4 (books, treebanks, dictionary, math scripts, contrast sets; see corpus/open) from research.elamur.ai/download/0/0.4/, checks its SHA-256 and unpacks it into corpus/open/. The guides below assume that layout. The current corpus, 0.5, comes with train/get-corpus.sh (or mova fetch 0.5 corpus), see Mova 0.5 — the release files.

Mova is a Hybrid Combinatorial–Operational System written in Rust, with a Combinatorial Small Language Model at its core. These guides focus on readable Markdown seeds, compiled Rust tables and the CPU learning path. The optional neural GPU parser has its own training guide. Retraining combines seed edits, learned parameters and measurements. Each guide is written for a person and an AI coding agent working in this repository.

Gist

The big picture: three levels

Knowledge sits on three levels: global (seeds compiled into global), domain modules (en, math, world, latex, ...) and the context of the current task (the readers inside world, math, prag, ...). The levels are described in Architecture.

The key rule: the context level never invents knowledge. Level 3 combines facts from the text with links from level 1. When it cannot explain a step that way, it reports a gap, such as "verb gnaw has no class" or "state proud: unknown whether this is trouble or relief". Do not fix a gap by making level 3 memorize more. Fix it by adding a seed to level 1 (or a domain module) and rebuilding. layers wires the levels together. It routes a query to the global level, then to a domain module, and escalates when neither covers it. Every routing decision is logged with its score and threshold.

Seeds -> build.rs -> Rust tables

global/seeds/**/*.md  --(global/build.rs)-->  OUT_DIR/global.rs
   ```principle  ```concept  ```category              PRINCIPLES, CONCEPTS, LINKS, RELATIONS,
   ```link  ```verbs  ```relation                     fn verb_class(lemma) -> Option<(class, effect)>

Determinism

Mova must produce the same output for the same input every time; a gain that the next run cannot reproduce does not count. Use BTreeMap/BTreeSet or sorted vectors wherever order decides anything, run the baseline and the change twice each (cmp run1.txt run2.txt) before comparing, and report the test score once. The rules are in Training Mova.

Every judgment explained

When to use which guide

you want to ...read
teach Mova a new fact, verb class, relation or valueAdd a seed
retrain the English tagger and parser on your treebankRetrain the English tagger and parser
read another UD flavour, or write a conversion ruleMova's UD dialect and converters
solve or evaluate arithmetic word problems (SVAMP, GSM8K)Word problems: exact core, step solver, world scripts, world reader, SVAMP / GSM8K
work on bAbI, StepGame, SpartQA story worldsStory worlds: bAbI, StepGame, SpartQA
run the book and fairy-tale reading experimentsReading tales: world read, reader-, and qagen
adapt Mova to your own domain end to endAdapting Mova to your own domain

Steps (first session)

  1. Install stable Rust (edition 2024). The crates form one Cargo workspace: cargo build --release at the root builds them all into target/release/. To work on one crate, pass -p <crate> or --manifest-path, or cd into it.

  2. Build and test the global level. It takes seconds and has no dependencies:

    cargo test --release --manifest-path global/Cargo.toml
    
  3. Build the English module. It is the base of prag, world, math, coref and qagen:

    cargo build --release --manifest-path en/Cargo.toml
    cargo test --release --manifest-path en/Cargo.toml --lib seeds_all_parse
    
  4. Pick the guide for your task from the table above.

Example: what "explained" looks like

The global crate's own tests show the idea. A falling apple leads to harm through four declared links. An apple lying on a table produces nothing (a negative control):

let c = global::consequences("An apple fell on Newton's head.");
assert!(c.iter().any(|x| x.starts_with("fall → accelerate → impact → pain → harm")));
assert!(global::consequences("An apple lies on the table.").is_empty());

Pitfalls

This page in Markdown https://md.mova.elamur.ai/free/en/docs/train/