onto-store-shape
The groupant beside onto/src/store.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 |
| cost | partial | cost |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | executed bounded checks | 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 |
offset_domain | offset_domain | partial source derived model | offset_domain |
reference_domain | reference_domain | partial source derived model | reference_domain |
semantic_gap | semantic_gap | partial source derived model | semantic_gap |
failure_order | failure_order | partial source derived model | failure_order |
Model text
descriptant
onto-store-shape
For each CSR off require len=rows+1,start0,end=total,monotone; validate UTF8/refs
Epoch 2026-10-31
Specialized source fragment bytes [988,8930); shared parent AST. Excludes unrelated parent operations and added test module.
approximant
Scoped forward
For each CSR off require len=rows+1,start0,end=total,monotone; validate UTF8/refs
Domain
This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:
String offsets must char boundaries
mem<nw,senses<n,edge.to<n,LU refs bounded
Keys/lexfiles/inverse CSR/cycles not checked
Scalar lengths→offsets→UTF8→word/concept refs→edge/LU refs
No executable percentage surrogate established.
invariant
Local observations
Invalid offset/reference excludes Ok; valid shape does not exclude inverse-edge mismatch
String offsets must char boundaries
mem<nw,senses<n,edge.to<n,LU refs bounded
Keys/lexfiles/inverse CSR/cycles not checked
Scalar lengths→offsets→UTF8→word/concept refs→edge/LU refs
cost
Scoped cost
O(offsets+references+string boundary checks), no graph reachability traversal.
Restriction to this operator's traversed inputs; parent total is not charged to every fragment. No standalone measurement.
composition
Parent join
shape supplies the parent relation: For each CSR off require len=rows+1,start0,end=total,monotone; validate UTF8/refs
Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.
models
behavior_complement
Invalid offset/reference excludes Ok; valid shape does not exclude inverse-edge mismatch
reverse_reconstruction
Ok preimage entire set of shape-consistent graphs; not unique/sorted/DAG ontology
offset_domain
String offsets must char boundaries
reference_domain
mem<nw,senses<n,edge.to<n,LU refs bounded
semantic_gap
Keys/lexfiles/inverse CSR/cycles not checked
failure_order
Scalar lengths→offsets→UTF8→word/concept refs→edge/LU refs
tests
Evidence
Parent tests.md identifies selected actual-code checks. Fragment is a source-scoped partial model; parent finite fixtures do not establish exhaustive branch coverage or every local equation.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/onto/src/store.rs.groupant/shape.groupant/