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

# math-steps

The groupant beside math/src/steps.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
- **status:** partial source bound model
- **source:** [`math/src/steps.rs`](https://github.com/ElamurAI/mova-free/blob/main/math/src/steps.rs)
- **source SHA-256:** `e5cb6a8faf439e29…`
- **repository folder:** [`math/src/steps.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/math/src/steps.rs.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** | executed bounded checks | [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) |
| `stack_conservation` | stack_conservation | partial source derived model | [stack_conservation](#stack-conservation) |
| `numeric_domain` | numeric_domain | partial source derived model | [numeric_domain](#numeric-domain) |
| `adapter_semantics` | adapter_semantics | partial source derived model | [adapter_semantics](#adapter-semantics) |
| `environment_boundary` | environment_boundary | partial source derived model | [environment_boundary](#environment-boundary) |

## Parts

- [math-steps-transition](https://md.groupants.elamur.ai/free/en/mova/math/src/steps.rs.groupant/transition.groupant/)
- [math-steps-gold-adapters](https://md.groupants.elamur.ai/free/en/mova/math/src/steps.rs.groupant/gold-adapters.groupant/)
- [math-steps-binding](https://md.groupants.elamur.ai/free/en/mova/math/src/steps.rs.groupant/binding.groupant/)

## Model text


### descriptant

#### math-steps

Text-order transition search, gold adapters and question binding.

Epoch 2026-10-31: source-derived partial model; prospective hypotheses retained before changes. Existing behavior unchanged except test helper path extraction. New bounded fixtures avoid annotated text/model/corpus/teacher paths. Child scopes use the parent syntax projection; lexical AST has no macro expansion or semantic resolution. Numeric thresholds and adapter differences are observations, not mathematical correctness proofs.

### approximant

#### Forward relation

prepare truncates aligned quantities/descriptions. SHIFT/SKIP consume input, Reduce/Far combine top with distance1..3 after legal guards. Beam tries20 action forms for <=3N+2 rounds, final filter finite nonnegative near-integer. Oracle uses disjoint 64-bit leaf masks.

##### Domain

Valid replay actions, aligned arrays and n<=64 are required. Each Shift/Skip advances next; reduction lowers stack length. ACTIONS increments; environment knobs affect features/search. Exact tree evaluation differs from f64 search.

##### Executable approximant gap

No useful measured percentage surrogate is supplied for these categorical parse/search/effect observations. Supported future caps are 1%, 2%, 5%, 10% only, requiring an explicit metric and reference comparison. No speed or accuracy guarantee follows.

### invariant

#### Invariants and cost

Valid replay actions, aligned arrays and n<=64 are required. Each Shift/Skip advances next; reduction lowers stack length. ACTIONS increments; environment knobs affect features/search. Exact tree evaluation differs from f64 search.

##### Cost

For B beam,N numbers,F features,C clone size: O(N*(B*F+20B*C+20B log(20B))) plus feature generation. Gold parsing O(tokens*N + exact rational work); no benchmark.

Allocation failure, deep recursion, malformed public structures and universal numerical bounds are not verified.

### composition

#### Scoped composition

Text-order transition search, gold adapters and question binding.

prepare truncates aligned quantities/descriptions. SHIFT/SKIP consume input, Reduce/Far combine top with distance1..3 after legal guards. Beam tries20 action forms for <=3N+2 rounds, final filter finite nonnegative near-integer. Oracle uses disjoint 64-bit leaf masks.

describe uses en annotation and arith quantities; Prob is consumed by qworld and deduct. Oracle/replay joins trees to actions; exact_answer checks rational values separately from f64 search. Adapter acceptance does not imply search reachability.

### models

## Typed relations

### behavior_complement

Oracle excludes repeated leaves; calculators reject mismatched declared exact values. legal excludes zero division/negative subtraction. Direct replay trusts caller and can panic. Python-subset parser does not execute Python.

### reverse_reconstruction

One tree can have multiple valid reduction schedules/unused skipped inputs. Scalar answers and index-erasing shape are many-to-one. Greedy duplicate-valued leaf matching cannot recover original occurrence uniquely.

### stack_conservation

Valid prefix stack length=Shift count-Reduce/Far count; representative=max text index.

### numeric_domain

Final1e-6 f64 near-integer filter is distinct from exact_answer rational value.

### adapter_semantics

Calculator prefers latest previous result value; Python // is converted to rational /, not floor.

### environment_boundary

UNITHARD,NOLEX,MAXVIOL,VOTE_T,VOTES,IGNORE_V environment values are part of behavior.

### tests

#### Source execution evidence

Safe command: cargo test -p math --lib wave28 -- --test-threads=1

Named outcomes (twice debug, twice release; sorted names equal; exits0):

```text
test steps::wave28::calculator_validation_and_script_bounds ... ok
test steps::wave28::equation_oracle_and_exact_replay ... ok
```

One compiled assertion control for this source: compilation0, false expectation test101, exact byte restore, focused positive rerun0. These are actual source assertions, not copied implementations or semantic proof. Controls ran before rustfmt-only test-block formatting.

No annotation/describe, nonempty beam training, binding training, environment variation or corpus. Private synthetic Prob, oracle/replay, equation/calculator/script parsing and empty predict exercised.

Strict math lib Clippy reports113 pre-existing production lints. No executable percentage surrogate, speed claim, model/corpus/teacher/GPU/full-school or held-out execution.
