world-school-teaching-table
The groupant beside world/src/school.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-school-teaching-table-behavior-complement | behavior_complement | partial source model | behavior-complement |
world-school-teaching-table-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
world-school-teaching-table-coupling | constraint_relation | partial source model | coupling |
world-school-teaching-table-observation-fiber | information_loss | partial source model | observation-fiber |
Model text
forward
Elementary teach brackets PRACTICE corrections with immutable TEST scoring and writes logs/state. Table replay sums sign(effect)*quantity per thing, then removes nonpositive totals after the whole journal. Truth treats known put verbs as + and everything else as -. Hints use first matching lesson/earlier cue. Orchestration is source inspected only.
invariant
Replay preserves signed running totals until final projection, not per-event clamping. say_event requires small positive counts for NUMBER indexing. Table scene scores include correction-era behavior and are not held-out retention.
cost
J events/K kinds: O(J log K) replay and O(K) storage; table repeatedly replays and may query global knowledge. Teacher/log/filesystem costs opaque. Sums/products must fit i64.
composition
The supplied journal takes four apples then puts three: final empty table; a per-step-clamp alternative yields three. Describe preserves key order. teach/test/table_lesson, knowledge lookup and triggers are unexecuted.
epoch-memory
2026-10-30 initial school source-bound epoch. Prospective model: keep O(1) arithmetic/partition cost, widen aggregation scalars, and expose actual codecs without filesystem effects. Old native witnesses found unchecked operation, score, marginal vote, partition and duplicate-vote arithmetic; legacy serialization synthesized zero accumulators. Review found that dropping explicit zero accumulators also changed the prediction table. Both activation directions now have named tests. No speedup, approximate-error profile or general semantic proof is claimed. Unchecked update/world arithmetic retains representability premises.
checks
cargo test -p world --lib school::wave12_models -- --test-threads=1. Root evidence.md binds exact source/evidence hashes, repeated debug/release outcomes and a compiled production mutation. Named fixture domains appear in composition. Syntax is a source-bound partial projection; macros remain opaque. No semantic AST or live school execution.
behavior-complement
Subject/revision: manifest hash and byte scope. Universe: supplied finite inputs, fixed dependencies, successful allocation and the explicit arithmetic premises of this scope. Inner absent-behavior relation: Nonpositive final totals cannot remain in replay. Magnitude of an effect cannot scale its sign contribution. The model rejects per-event clamping for the take-four/put-three witness; invalid counts and live teacher behavior are outside scope. These are source-derived constraints with finite named witnesses where indicated; external behavior remains unknown.
reverse-reconstruction
Subject/revision: manifest hash. Operator: compatible preimage/converse, holding dependencies and admissibility fixed. Observed positive table admits all journals with equal positive totals plus arbitrary nonpositive hidden totals and cancelling events. Debt and chronology are lost; no unique journal recovery. Partial relational description, not a complete inverse search or a unique causal history.
coupling
Subject/revision: manifest hash. Constraint relation on stage identities and ordered intermediate states: The supplied journal takes four apples then puts three: final empty table; a per-step-clamp alternative yields three. Describe preserves key order. teach/test/table_lesson, knowledge lookup and triggers are unexecuted. Supplied native joins and source inspection are distinct evidence.
observation-fiber
Subject/revision: manifest hash. Domain: scoped inputs with the declared observation. The information-loss relation equates inputs whose observation agrees: Effects with equal sign are equivalent under replay. Unknown zero effects can mimic balanced events. Truth unknown-as-take differs from replay unknown-as-zero. Finite tests do not establish unrestricted completeness.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/world/src/school.rs.groupant/teaching-table.groupant/