onto-hs-chunks
The groupant beside onto/src/hs.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 |
continuation | continuation | partial source derived model | continuation |
negation | negation | partial source derived model | negation |
main_selection | main_selection | partial source derived model | main_selection |
level_boundary | level_boundary | partial source derived model | level_boundary |
Model text
descriptant
onto-hs-chunks
(tokens,exclude,cont,level)→ordered branch features; parenthesis restores exclude/cont
Epoch 2026-10-31
Specialized source fragment bytes [31095,54284); shared parent AST. Excludes unrelated parent operations and added test module.
approximant
Scoped forward
(tokens,exclude,cont,level)→ordered branch features; parenthesis restores exclude/cont
Domain
This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:
Bare NP inherits Of/Has/Purpose/Exclude at level
not toggles neg0 except noun-list exclusion
First maximal-level Item else Head
u8 colon depth requires<=255 to avoid overflow
No executable percentage surrogate established.
invariant
Local observations
whether excludes distinguishing feat; excluded nouns cannot become Head/Item
Bare NP inherits Of/Has/Purpose/Exclude at level
not toggles neg0 except noun-list exclusion
First maximal-level Item else Head
u8 colon depth requires<=255 to avoid overflow
cost
Scoped cost
Token index vectors and repeated noun-group/tail scans can take O(T²) time and copying; state vectors O(colon levels), features O(emissions). Parenthesis state cloning adds O(levels) per nested chunk. Recursive tail depth/resource exhaustion unbounded outside finite domain.
Symbolic accounting; no timing claim or whole-system speed bound.
composition
Parent join
chunks supplies the parent relation: (tokens,exclude,cont,level)→ordered branch features; parenthesis restores exclude/cont
Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.
models
behavior_complement
whether excludes distinguishing feat; excluded nouns cannot become Head/Item
reverse_reconstruction
Many filler/punctuation variants yield same features with same branch states
continuation
Bare NP inherits Of/Has/Purpose/Exclude at level
negation
not toggles neg0 except noun-list exclusion
main_selection
First maximal-level Item else Head
level_boundary
u8 colon depth requires<=255 to avoid overflow
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/hs.rs.groupant/chunks.groupant/