math-solver-cli
The groupant beside math/src/bin/mathsolve.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 | approximant |
| ast | partial | syntax.json |
| composition | partial | composition |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | partial bounded 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 |
failure_precedence | failure_precedence | partial source derived model | failure_precedence |
representation_transport | representation_transport | partial source derived model | representation_transport |
resource_boundary | resource_boundary | partial source derived model | resource_boundary |
domain_boundary | domain_boundary | partial source derived model | domain_boundary |
Parts
Model text
descriptant
Source-bound description
Require command then create run directory before dispatch. flag returns first following argument; numeric parse failures often default. Local calc/plan delegate engine. run skips error-free existing ids; c excludes current held level from memory. memory writes JSONL then DuckDB. steps/arith train/assess; Lean and hints invoke processes/teacher.
Epoch 2026-10-31: prospective model before bounded synthetic tests; production behavior unchanged. Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression.
approximant
Forward relation
Require command then create run directory before dispatch. flag returns first following argument; numeric parse failures often default. Local calc/plan delegate engine. run skips error-free existing ids; c excludes current held level from memory. memory writes JSONL then DuckDB. steps/arith train/assess; Lean and hints invoke processes/teacher.
Domain: Synthetic flags and isolated local calc only; no corpus/model/held/DB/teacher/Lean. Some empty report ratios can be NaN.
Executable Rust approximant unsupported: categorical/effect observations have no useful percentage metric yet. Future caps1/2/5/10% only; no automatic substitution.
invariant
Invariant and cost
No command excludes directory creation, unknown nonempty command does not. Pure flags/local calc establish no corpus/DB/teacher behavior.
Ordering: Create dir before dispatch; run reads records/levels before validating A/B. memory writes JSONL before DuckDB and does not enforce subprocess success.
Cost: Flags O(args); training multiplies datasets, epochs, folds and candidate counts; complete datasets retained. No common work limit.
composition
Composition and epoch memory
CLI applies held split exclusion outside run_c; curric selections→solve→memos. Local calc has no teacher branch.
Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression.
Partial syntax and finite tests do not establish all caller assumptions.
models
behavior_complement
No command excludes directory creation, unknown nonempty command does not. Pure flags/local calc establish no corpus/DB/teacher behavior.
reverse_reconstruction
Flag value admits all argument vectors with same earliest name/value; later duplicates lost. Report aggregates cannot reconstruct records/order.
failure_precedence
Create dir before dispatch; run reads records/levels before validating A/B. memory writes JSONL before DuckDB and does not enforce subprocess success.
representation_transport
CLI applies held split exclusion outside run_c; curric selections→solve→memos. Local calc has no teacher branch.
resource_boundary
Flags O(args); training multiplies datasets, epochs, folds and candidate counts; complete datasets retained. No common work limit.
domain_boundary
Synthetic flags and isolated local calc only; no corpus/model/held/DB/teacher/Lean. Some empty report ratios can be NaN.
tests
Evidence, 2026-10-31
Selected actual-source checks: cargo test -p math --bin mathsolve wave28; isolated calc smoke. Exact commands, numeric statuses, normalized outcomes, compiled assertion controls and restoration receipts are in the external wave28 mathcontrol run.
Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression.
No live teacher/API, trained model, corpus/held-out, GPU, DB or expensive benchmark run. Parent syntax generated twice identically. Scope remains partial.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/math/src/bin/mathsolve.rs.groupant/