Elamur GroupantsโŒ•
โ˜ฐ

world-lessons

The groupant beside world/src/lessons.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
approximantpartial source modelforward
astpartialsyntax.json
compositionpartial source modelcomposition
costpartial source modelcost
descriptantpartial source modelepoch-memory
invariantpartial source modelinvariant
testspartial source modelchecks

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
world-lessons-behavior-complementbehavior_complementpartial source modelbehavior-complement
world-lessons-reverse-reconstructionreverse_reconstructionpartial source modelreverse-reconstruction
world-lessons-couplingconstraint_relationpartial source modelcoupling

Parts

Model text

model

Lesson model, 2026-10-30

forward

Supplied text -> Lesson -> seeded binding attempts -> expression answer plus filled template. Shared numeric map connects lets, conditions, answer and substitution; the selected partition determines template identity. all() and main_args add filesystem/CLI paths not executed in this slice.

behavior-complement

U comprises bounded pure supplied-input call traces and observations. Inner complement excludes success violating any shared-map constraint, nonnegative answer gate or selected partition. Union of independent fragment complements would lose wiring constraints; no claim about opaque filesystem behavior.

reverse-reconstruction

Compose converse relations through a shared Lesson, numeric environment and RNG trajectory. Preserve every compatible rejected-attempt trace. Drawn stores only text and answer, so neither source lesson nor partition nor latent numbers are uniquely recoverable.

coupling

Public parse, eval, Lesson::{draw,exercises,test,exam}, Rng and Drawn support pure joins. school::lessons adapts Drawn to Problem(text,a=answer,b=0,Add), learns only exercises and scores test/exam; inspected only. A native parent join should preserve these exact text/answer pairs and validate the actual school answer projection. No teacher, parser, live course or retained-state improvement is claimed.

invariant

Successful observations obey the declared forward relation with the same supplied state and order. Failure is explicit; no hidden label or retained-state guarantee is introduced.

cost

Compose parse O(bytes) once and draw bounds per requested sample. No optimization proposed; checked arithmetic and i128 range operations add bounded per-operation work while preserving ordinary valid draws. No timing or speedup claim.

composition

Evaluation and substitution share numeric bindings; field labels choose template containers. Child relations must agree on intermediate state, not merely final counts. Partial syntax binds the source; macro contents are opaque.

epoch-memory

Initial review predicted arithmetic overflow and finite-pool boundary failures. Old native code failed six named witnesses: overflow, empty templates, name exhaustion, full-width range, reversed range and seed overflow. Narrow repairs retain public signatures; finite observations do not establish arbitrary-input totality. See file evidence.md for hashes and repeated results.

checks

Eight wave12_models tests plus two existing lesson tests. Independent 19 by 19 by 7 arithmetic cases, precedence/eager failure literals, partition/substitution fixtures and exactly 2000 rejected RNG draws. Runtime guard mutations must fail named assertions. Evidence is finite; no whole-world or live course claim.

evidence

Native lesson evidence, 2026-10-30

External raw logs: $MOVA_DATA/runs/octopus-wave12-lessons-2026-10-30/.

Ten focused lessons:: tests pass twice in debug and twice in release; normalized named results are identical. Eight new wave12_models tests include 2527 finite arithmetic cases. Six old-code boundary witnesses fail. A compiled production + to - mutant fails arithmetic_finite_oracle at an equality assertion; exact source restoration passes all ten tests.

No live parser, teacher, course, held-out assessment, persistence or whole-world lint execution. Recursive expression depth and arbitrary number-formatting limits are not repaired or certified. Syntax is a deterministic partial projection; macro bodies are opaque.

SHA-256 bindings:

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/world/src/lessons.rs.groupant/