world-lessons-render
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
| component | label | where |
|---|---|---|
| approximant | partial source model | forward |
| ast | partial | ../syntax.json |
| composition | partial source model | composition |
| cost | partial source model | cost |
| descriptant | partial source model | epoch-memory |
| invariant | partial source model | invariant |
| tests | partial source model | checks |
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 |
|---|---|---|---|
world-lessons-render-behavior-complement | behavior_complement | partial source model | behavior-complement |
world-lessons-render-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
world-lessons-render-coupling | constraint_relation | partial source model | coupling |
Model text
forward
Scan each opening brace to its first closing brace, resolve word before numeric binding, then expression fallback; supported numeric suffixes call numbers helpers. Word pronouns use fixed FEMALE membership. Finally normalize articles before leading unsigned digits.
behavior-complement
U is templates, maps and output Options on bounded helper inputs. Absent success includes unknown placeholders, unknown suffixes and an opening brace without closing brace. A stray closing brace remains literal.
reverse-reconstruction
B(text) retains all templates/maps giving the normalized text. Literal an 8 and template a {n} with n=8 may collide; original articles and unused bindings cannot be reconstructed uniquely.
coupling
Word bindings shadow numbers of the same name. Pronoun forms are accepted for every word binding, not only names. Number-word helper semantics and very large numeric forms are external limitations.
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
Repeated scans and copies scale with template plus expanded output, expression evaluation and number conversion; map lookup logarithmic in bindings. No measured acceleration.
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.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/world/src/lessons.rs.groupant/render.groupant/