world-qud-preparation
The groupant beside world/src/qud.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-qud-preparation-behavior-complement | behavior_complement | partial source model | behavior-complement |
world-qud-preparation-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
world-qud-preparation-first-choice | constraint_relation | partial source model | first-choice |
world-qud-preparation-projection-loss | constraint_relation | partial source model | projection-loss |
Model text
forward
Content excludes LIGHT, wh and auxiliary/copular tokens. Listed pronouns resolve to last subject. First head-zero root, first subject child and first wh token determine metadata; sets lose multiplicity. Last updates only after tracking.
invariant
Content/words contain no multiplicities; first root/subject/wh choices retain token order. LIGHT/aux/cop/wh cannot enter through content alone, although resolved pronouns can add last subject.
cost
Linear input scan plus ordered-map/set insertion and string comparisons; root cost states composition. No timing claim.
composition
This fragment shares source and state with its siblings; root composition specifies ordering and latent dependencies. It is not an independent replacement API.
epoch-memory
Predicted latest eligible and partial persistence; 46,656 bounded histories confirm. Generic-hedge prose overstates implementation: Who+maybe is complete. No production repair or continuous approximation metric proposed.
checks
Five native tests: 46,656 six-step histories (279,936 transitions), uncertainty interaction, empty-content slot gate, four polarity preimages, ordered givenness. Fragment scopes are defined by source byte ranges; root evidence distinguishes executed helper tests from inspection-only branches.
behavior-complement
Within the scoped input/output universe, violating first-choice or projection-loss is excluded by the source model. This inner constraint family does not claim a complete complement.
reverse-reconstruction
Converse retains all inputs compatible with the scoped output and fixed dependencies; projections and discarded candidates generally create multiple antecedents. No single inverse is claimed.
first-choice
Permuting equal lemma sets can change first root/wh; no semantic tree validation.
projection-loss
Duplicate content and surface variants collapse; reasons may retain pronoun forms.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/world/src/qud.rs.groupant/preparation.groupant/