Elamur Groupants⌕
☰

math-solver-cli-lean-routes

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

componentlabelwhere
approximantpartialapproximant
astpartial../syntax.json
compositionpartialcomposition
descriptantpresentdescriptant
invariantpartialinvariant
testspartial bounded evidencetests

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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
failure_precedencefailure_precedencepartial source derived modelfailure_precedence
representation_transportrepresentation_transportpartial source derived modelrepresentation_transport
resource_boundaryresource_boundarypartial source derived modelresource_boundary
domain_boundarydomain_boundarypartial source derived modeldomain_boundary

Model text

descriptant

Source-bound description

Prep reads theorem JSONL, excludes Putnam prefix, samples, writes assembled sorry sources and invokes lake; retains when output lacks error without explicit status enforcement. Controls invoke Lean; run delegates retries/accounting.

Epoch 2026-10-31: prospective model before bounded synthetic tests; production behavior unchanged. Source scope bytes[80338,85911). Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression. Not every branch in this fragment executed.

approximant

Forward relation

Prep reads theorem JSONL, excludes Putnam prefix, samples, writes assembled sorry sources and invokes lake; retains when output lacks error without explicit status enforcement. Controls invoke Lean; run delegates retries/accounting.

Domain: All Lean routes unexecuted; source model only, external project/tool/resources assumed.

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-error text in prep does not exclude failed subprocess. run skips ids with prior error-free level4 records even if unverified.

Ordering: Prep assemble/write/process/text-filter→JSONL write; run load/filter→Vmm→solve::run_lean.

Cost: Dataset load+up to candidate count Lean180s checks; teacher runs retries by batches; no execution measured.

composition

Composition and epoch memory

Prep bypasses lean::check ban to elaborate sorry intentionally; runtime check has distinct strict policy.

Source scope bytes[80338,85911). Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression. Not every branch in this fragment executed.

Partial syntax and finite tests do not establish all caller assumptions.

models

behavior_complement

No-error text in prep does not exclude failed subprocess. run skips ids with prior error-free level4 records even if unverified.

reverse_reconstruction

Retained theorem set admits different subprocess statuses producing same no-error text. Reported proof counts lose proof bodies and failure history.

failure_precedence

Prep assemble/write/process/text-filter→JSONL write; run load/filter→Vmm→solve::run_lean.

representation_transport

Prep bypasses lean::check ban to elaborate sorry intentionally; runtime check has distinct strict policy.

resource_boundary

Dataset load+up to candidate count Lean180s checks; teacher runs retries by batches; no execution measured.

domain_boundary

All Lean routes unexecuted; source model only, external project/tool/resources assumed.

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.

Source scope bytes[80338,85911). Large effect branches source-modeled only; controls command avoided because potentially expensive Fermat expression. Not every branch in this fragment executed.

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/lean-routes.groupant/