math-frozen-calc-harness
The groupant beside math/tests/vmm_calc.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 |
Model text
descriptant
Source-bound description
eval parse then calc20s. run skips comments/blanks, indexes first3columns, ERR accepts any error; otherwise evaluate expected and compare exact strings. Red retains id/expr/want/got. sha writes PID tempfile, invokes sha256sum, removes without subprocess status validation. Original tests use100 frozen cases.
Epoch 2026-10-31: prospective model before bounded synthetic tests; production behavior unchanged. Original frozen100case tests, controls and sha helper unexecuted.
approximant
Forward relation
eval parse then calc20s. run skips comments/blanks, indexes first3columns, ERR accepts any error; otherwise evaluate expected and compare exact strings. Red retains id/expr/want/got. sha writes PID tempfile, invokes sha256sum, removes without subprocess status validation. Original tests use100 frozen cases.
Domain: Only synthetic1+2,1/0,2*3; frozen tests not selected. No teacher call in source.
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
Wrong synthetic expectation excludes green row; short row or invalid expected expression panics instead of classified red.
Ordering: Expression first; ERR skips expected evaluation; successful nonERR then expected eval and text comparison.
Cost: O(TSV+evaluations+red bytes); arbitrary arithmetic delegated, sha adds process/I/O.
composition
Composition and epoch memory
Same calc interpreter evaluates both sides, not an independent mathematical oracle; synthetic expected values direct.
Original frozen100case tests, controls and sha helper unexecuted.
Partial syntax and finite tests do not establish all caller assumptions.
models
behavior_complement
Wrong synthetic expectation excludes green row; short row or invalid expected expression panics instead of classified red.
reverse_reconstruction
Red tuples admit alternate extra columns/trimmed expectation whitespace; counts cannot recover cases. Exact result text admits many expressions.
failure_precedence
Expression first; ERR skips expected evaluation; successful nonERR then expected eval and text comparison.
representation_transport
Same calc interpreter evaluates both sides, not an independent mathematical oracle; synthetic expected values direct.
resource_boundary
O(TSV+evaluations+red bytes); arbitrary arithmetic delegated, sha adds process/I/O.
domain_boundary
Only synthetic1+2,1/0,2*3; frozen tests not selected. No teacher call in source.
tests
Evidence, 2026-10-31
Selected actual-source checks: cargo test -p math --test vmm_calc wave28_synthetic_rows. Exact commands, numeric statuses, normalized outcomes, compiled assertion controls and restoration receipts are in the external wave28 mathcontrol run.
Original frozen100case tests, controls and sha helper unexecuted.
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/tests/vmm_calc.rs.groupant/