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

# math-solver-orchestration-batching

The groupant beside math/src/solve.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_fragment
- **status:** partial source bound model
- **source:** [`math/src/solve.rs`](https://github.com/ElamurAI/mova-free/blob/main/math/src/solve.rs)
- **source SHA-256:** `e6b60f9cdd4e36eb…`
- **covers:** Cost/time divided by max(n,1), token integer division. Append under local Mutex. Chunks max(batch,1), workers max(par,1), atomic claims, sort records by id. parse_answers keeps last JSON answer per id, skips null. (bytes 2107–3906)
- **part of:** [math-solver-orchestration](https://md.groupants.elamur.ai/free/en/mova/math/src/solve.rs.groupant/)
- **repository folder:** [`math/src/solve.rs.groupant/batching.groupant`](https://github.com/ElamurAI/mova-free/tree/main/math/src/solve.rs.groupant/batching.groupant)
- **repository commit:** `48f2e6f74146`

> **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](#approximant) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial | [composition](#composition) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | [invariant](#invariant) |
| **tests** | partial bounded 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.

| id | 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) |
| `failure_precedence` | failure_precedence | partial source derived model | [failure_precedence](#failure-precedence) |
| `representation_transport` | representation_transport | partial source derived model | [representation_transport](#representation-transport) |
| `resource_boundary` | resource_boundary | partial source derived model | [resource_boundary](#resource-boundary) |
| `domain_boundary` | domain_boundary | partial source derived model | [domain_boundary](#domain-boundary) |

## Model text


### descriptant

#### Source-bound description

Cost/time divided by max(n,1), token integer division. Append under local Mutex. Chunks max(batch,1), workers max(par,1), atomic claims, sort records by id. parse_answers keeps last JSON answer per id, skips null.

Epoch 2026-10-31: prospective model before bounded synthetic tests; production behavior unchanged. Source scope bytes[2107,3906). Teacher/Lean loops and append-failure path unexecuted; no accuracy claim. Not every branch in this fragment executed.

### approximant

#### Forward relation

Cost/time divided by max(n,1), token integer division. Append under local Mutex. Chunks max(batch,1), workers max(par,1), atomic claims, sort records by id. parse_answers keeps last JSON answer per id, skips null.

Domain: Finite batches; token sum/counters unchecked; callback/poison panic possible.

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

Empty problems excludes callback work. Null answer excluded from parsed map insertion, but missing id may become empty key.

Ordering: Claim chunk→callback→append output vector; sort only after threads join. parse answer string/null/JSON representation.

Cost: O(problems+records log records)+callback work and JSON serialization; worker count not upper-clamped.

### composition

#### Composition and epoch memory

run_a/run_b callback append order independent of final returned sorting; per-Run lock not cross-process protection.

Source scope bytes[2107,3906). Teacher/Lean loops and append-failure path unexecuted; no accuracy claim. Not every branch in this fragment executed.

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

### models

### behavior_complement

Empty problems excludes callback work. Null answer excluded from parsed map insertion, but missing id may become empty key.

### reverse_reconstruction

Shared tokens lose remainder, sorted records lose worker schedule. Last-answer map admits arbitrary earlier duplicate values.

### failure_precedence

Claim chunk→callback→append output vector; sort only after threads join. parse answer string/null/JSON representation.

### representation_transport

run_a/run_b callback append order independent of final returned sorting; per-Run lock not cross-process protection.

### resource_boundary

O(problems+records log records)+callback work and JSON serialization; worker count not upper-clamped.

### domain_boundary

Finite batches; token sum/counters unchecked; callback/poison panic possible.

### tests

#### Evidence, 2026-10-31

Selected actual-source checks: `cargo test -p math --lib solve::wave28`. Exact commands, numeric statuses, normalized outcomes, compiled assertion controls and restoration receipts are in the external wave28 mathcontrol run.

Source scope bytes[2107,3906). Teacher/Lean loops and append-failure path unexecuted; no accuracy claim. 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.
