math-curriculum-sampling
The groupant beside math/src/curric.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
Wrapping splitmix of SEED xor FNV(salt:id) determines key; stable sort keys then take k of cloned items.
Epoch 2026-10-31: prospective model before bounded synthetic tests; production behavior unchanged. Source scope bytes[1367,2123). No corpus prep/load or held grading; arbitrary malformed numeric normalization not certified. Not every branch in this fragment executed.
approximant
Forward relation
Wrapping splitmix of SEED xor FNV(salt:id) determines key; stable sort keys then take k of cloned items.
Domain: Any cloneable finite slice; id callback may be effectful and is called once/item.
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
k=0 excludes nonempty output; k>n cannot invent items. Key collision does not deduplicate.
Ordering: Clone/key all items before sorting/take, even k=0.
Cost: O(n log n)+hash bytes+cloning; O(n) keyed values. u64 wrapping explicit.
composition
Composition and epoch memory
prep later deduplicates ids after sampling, so sample length not necessarily written row count.
Source scope bytes[1367,2123). No corpus prep/load or held grading; arbitrary malformed numeric normalization not certified. Not every branch in this fragment executed.
Partial syntax and finite tests do not establish all caller assumptions.
models
behavior_complement
k=0 excludes nonempty output; k>n cannot invent items. Key collision does not deduplicate.
reverse_reconstruction
Output prefix admits any compatible tail of keys; equal keys admit original order variations only when output remains consistent.
failure_precedence
Clone/key all items before sorting/take, even k=0.
representation_transport
prep later deduplicates ids after sampling, so sample length not necessarily written row count.
resource_boundary
O(n log n)+hash bytes+cloning; O(n) keyed values. u64 wrapping explicit.
domain_boundary
Any cloneable finite slice; id callback may be effectful and is called once/item.
tests
Evidence, 2026-10-31
Selected actual-source checks: cargo test -p math --lib curric::. Exact commands, numeric statuses, normalized outcomes, compiled assertion controls and restoration receipts are in the external wave28 mathcontrol run.
Source scope bytes[1367,2123). No corpus prep/load or held grading; arbitrary malformed numeric normalization not certified. Not every branch in this fragment executed.
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/src/curric.rs.groupant/sampling.groupant/