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

# math-qread

The groupant beside math/src/qread.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/qread.rs`](https://github.com/ElamurAI/mova-free/blob/main/math/src/qread.rs)
- **source SHA-256:** `8389b8d58f681217…`
- **repository folder:** [`math/src/qread.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/math/src/qread.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) |
| **cost** | partial | [invariant](#invariant) |
| **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) |
| `coordinate_partition` | coordinate_partition | partial source derived model | [coordinate_partition](#coordinate-partition) |
| `numeric_threshold` | numeric_threshold | partial source derived model | [numeric_threshold](#numeric-threshold) |
| `temporal_effect` | temporal_effect | partial source derived model | [temporal_effect](#temporal-effect) |
| `failure_precedence` | failure_precedence | partial source derived model | [failure_precedence](#failure-precedence) |

## Parts

- [math-qread-affine](https://md.groupants.elamur.ai/free/en/mova/math/src/qread.rs.groupant/affine.groupant/)
- [math-qread-constraints](https://md.groupants.elamur.ai/free/en/mova/math/src/qread.rs.groupant/constraints.groupant/)
- [math-qread-gate](https://md.groupants.elamur.ai/free/en/mova/math/src/qread.rs.groupant/gate.groupant/)

## Model text


### descriptant

#### math-qread

Affine chronological quantities with provenance and separate strict gate.

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.

##### Wave34 descendant epoch

Five scoped descendants deepen the existing trees; prior models are retained. Synthetic direct-helper fixtures now constrain the new relations, including state/solver and provenance branches formerly source-only. See [current evidence](https://md.groupants.elamur.ai/free/en/mova/math/src/qread.rs.groupant/#wave34-evidence); finite checks do not certify English interpretation or general accuracy.

### approximant

#### Forward relation

Lin addition prunes |coefficient|<=1e-12. State event accumulation sums Set/Add and subtracts Sub only for t<=upto, excluding Is/Rel. However direct-state, relation, moved-after-relation and initial-unknown decisions inspect the full event history without upto filtering; this is not a general prefix-state semantics. Four passes solve equations with one remaining unknown. Query orders unsupported syntax, rates, comparisons, event sums then state. Answer evaluates leaves; abstain must be called separately.

##### Domain

Valid leaf indices preserve occurrence provenance through compounds; owner relations depth3 and rate amount depth2. Set is additive here. Annotation heads and bounded disjoint unknown/leaf spaces are caller assumptions.

##### 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 leaf indices preserve occurrence provenance through compounds; owner relations depth3 and rate amount depth2. Set is additive here. Annotation heads and bounded disjoint unknown/leaf spaces are caller assumptions.

##### Cost

O(repeated token/event scans + four equation substitution passes + ordered-map clone work + provenance sorting); annotation cost separate, no timing claim.

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


##### Reviewed interaction boundary

State event accumulation sums Set/Add and subtracts Sub only for t<=upto, excluding Is/Rel. However direct-state, relation, moved-after-relation and initial-unknown decisions inspect the full event history without upto filtering; this is not a general prefix-state semantics.

### composition

#### Scoped composition

Affine chronological quantities with provenance and separate strict gate.

Lin addition prunes |coefficient|<=1e-12. State event accumulation sums Set/Add and subtracts Sub only for t<=upto, excluding Is/Rel. However direct-state, relation, moved-after-relation and initial-unknown decisions inspect the full event history without upto filtering; this is not a general prefix-state semantics. Four passes solve equations with one remaining unknown. Query orders unsupported syntax, rates, comparisons, event sums then state. Answer evaluates leaves; abstain must be called separately.

Affine values and leaf provenance feed state/constraints, then query expression and separate abstain gate. Gate success is not proof the dependency annotation was right. Set semantics differ from qworld and must not be substituted.

##### Reviewed interaction boundary

State event accumulation sums Set/Add and subtracts Sub only for t<=upto, excluding Is/Rel. However direct-state, relation, moved-after-relation and initial-unknown decisions inspect the full event history without upto filtering; this is not a general prefix-state semantics.

##### Wave34 refinement

Immediate scoped children now own deeper descendants and wave34-composition.md interaction models. These refine existing scopes without changing production bytes; costs must not double-count overlapping parent/child descriptions. See wave34-evidence.md for current finite observations and limits.

### models

## Typed relations

### behavior_complement

Gate excludes acceptance for the first failing absent answer/expression, unread, positivity, integer, coefficient, source cardinality/duplicate/required-number predicate. It has no universal explicit NaN rejection.

### reverse_reconstruction

All event histories with selected solved affine expression evaluating to output are compatible; compounds and canceled terms prevent unique reconstruction.

### coordinate_partition

Unknowns<2^20; leaf j=2^20+j; initial unknown1000+k may collide for large inputs. Admit bounded noncolliding keys.

### numeric_threshold

Pruning1e-12, coefficient gate1e-9, integer gate1e-6 differ; not an analytic relative-error certificate.

### temporal_effect

Derived transfers enter state but are excluded from event sums; outside piles excluded from all-owner totals. State event accumulation sums Set/Add and subtracts Sub only for t<=upto, excluding Is/Rel. However direct-state, relation, moved-after-relation and initial-unknown decisions inspect the full event history without upto filtering; this is not a general prefix-state semantics.

### failure_precedence

Unread outranks positivity, coefficient reuse outranks cardinality; failure can retain partial world and logs.

### 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 qread::wave28::affine_provenance_and_gate_order ... ok
test qread::wave28::empty_query_and_compound_provenance ... 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 Annotator, read_sent, nonempty query/state/solve constraints or English fixtures executed. Tests cover Lin, compound and abstain only.

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.

##### Wave34 current source

Earlier receipts above are historical. Current source-bound checks and compiled production controls are recorded in [wave34 evidence](https://md.groupants.elamur.ai/free/en/mova/math/src/qread.rs.groupant/#wave34-evidence).

### wave34-evidence

#### Wave34 bounded evidence — 2026-10-31

Source SHA-256: 8389b8d58f68121743d6346e638601297c3725483f4b9fcd2eb8cd47ef2d028a. Five new descendants refine existing scoped parents, with six typed views each (behavior complement first, reverse reconstruction second). The full original source bytes are preserved; only cfg(test) fixtures are appended. Previous evidence remains historical to its recorded source snapshot.

Ten exact math/lib helper tests across calc and qread pass twice debug and twice release (40 successful named invocations), with identical sorted target-qualified outcomes. This file contributes five selected tests. Actual-source tests use only bounded synthetic expressions/events/provenance; no annotation model, corpus, SVAMP, teacher, full suite or network is invoked.

Three compiled production mutants reject by named runtime assertions: residue subtraction, state subtraction and partitioned provenance reuse. Each restored source hash equals its exact backup; the named positive rerun passes. No compile failure or assertion-only edit is counted as a killed behavior mutant. Detailed raw logs, commands, numeric statuses, backup identities and source-test map are retained in external receipt set octopus-wave34-math-2026-10-31.

Each source syntax projection was freshly materialized twice and compared byte-identically before installation; descendants share the file artifact. Partial lexical syntax is not semantic AST or proof. Event construction from language, broader rate queries, consistency/completeness of the solver, huge numeric domains, allocation failures and universal numerical accuracy remain untested. No executable percentage surrogate or timing claim.
